This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Proposal for STT_GNU_IFUNC and R_*_IRELATIVE


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]