PATCH: Support STT_GNU_IFUNC in executables

Ulrich Drepper drepper@redhat.com
Tue May 26 21:28:00 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

H.J. Lu wrote:
> We have STT_GNU_IFUNC symbol definitions in executables, which leads
> to DT_TEXTREL. We need to turn on PROT_EXEC during relocation.

What?  No, this mustn't happen.  Why should there be text relocations?
Is this your R_*_IRELATIVE implementation?  It should not need text
relocations because it should use a GOT slot and an indirect jump.

It's absolutely impossible to introduce anything that requires
executable text.

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkocXmMACgkQ2ijCOnn/RHSk2gCgythSaTZDF201XRTLWo9XEreZ
Cf0An0ShX3StTvfx0RTJH/s9cmK2oSw4
=S6lq
-----END PGP SIGNATURE-----



More information about the Libc-alpha mailing list