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
<sourceware-bugzi...@sourceware.org> 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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to