[PATCH] [PR libc/18801] PIE binary with STT_GNU_IFUNC symbol and TEXTREL segfaults on x86_64
Paul Pluzhnikov
ppluzhnikov@google.com
Tue Aug 11 22:38:00 GMT 2015
On Tue, Aug 11, 2015 at 3:31 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> No. I am proposing that linker issues an error if there is TEXTREL
> with IFUNC unless "-z now'" is used, assuming that this doesn't
> require changes to ld.so nor SELinux.
Ah, ok. But that *doesn't* help current crash at all: "-z now" will
force IFUNC resolver (if any) to be called, and that call will fail
since we are currently removing execute protections.
(This is in fact the situation we've discovered the crash in originally.)
--
Paul Pluzhnikov
More information about the Libc-alpha
mailing list