Proposal for STT_GNU_IFUNC and R_*_IRELATIVE

Ulrich Drepper drepper@redhat.com
Thu May 28 15:07:00 GMT 2009


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

H.J. Lu wrote:
> for static executables. It is called from elf-init.c. How can I
> report a bad relocation safetly?

[I assume you meant dl-init.c.]

And for sake of reducing strange effects: it would be best to to handle
this a bit different.  Implicitly relying on the programmer having a
newer glibc installed which using ifunc can cause problems.  If,
instead, you write a new code fragment which is placed into the .init
section (provided by the linker whenever ifunc symbols are used in
statically linked code), then this new init function could reference a
function in libc which doesn't exist in older versions.

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

iEYEARECAAYFAkoen3cACgkQ2ijCOnn/RHRmOgCeM6xpmcY3WEqxU28YbzSWDWB8
hf4AniMyukXNOgaxZXkztBVWBPVDi5oH
=Y9Gf
-----END PGP SIGNATURE-----



More information about the Libc-alpha mailing list