bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/18801] PIE binary with STT_GNU_IFUNC symbol and TEXTREL segfault


From: tmsriram at google dot com
Subject: [Bug ld/18801] PIE binary with STT_GNU_IFUNC symbol and TEXTREL segfaults on x86_64
Date: Wed, 12 Aug 2015 15:42:46 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18801

--- Comment #10 from Sriraman Tallam <tmsriram at google dot com> ---
On Tue, Aug 11, 2015 at 11:08 PM, hjl.tools at gmail dot com
<address@hidden> wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=18801
>
> --- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
> Linker should refuse to generate binary with STT_GNU_IFUNC symbol and TEXTREL.

Isnt this similar to execstack in some sense?  I presume SELinux
disallows that too but that we do not completely ban that on
non-secure OS.

I dont understand this as much as you do but I like Paul's idea here:

"I think it would be nice to have behavior other than what's currently
happening. Either ld.so should support TEXTREL binaries with IFUNCs,
or it should refuse to run them.

I guess it could also try to make W+E page, and IF that fails, issue a
warning and change to current behavior. That way, a TEXTREL+IFUNC
binary will run correctly outside SELinux, will warn, then crash under
SELinux. A TEXTREL without IFUNC will also run correctly outside
SELinux, and will warn but still work under SELinux (i.e. almost same
as current behavior)."


>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]