This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: STT_GNU_IFUNC dependency on ELFOSABI_LINUX [Re: Add support for STT_GNU_IFUNC?]


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

On 02/15/2010 02:22 PM, Jan Kratochvil wrote:
> Mark Kettenis moreover defends STT_GNU_IFUNC should be recognized as valid not
> only for GNU (Linux) but also at least for BSD and Solaris.  In his words:
> 	http://sourceware.org/ml/gdb-patches/2010-02/msg00355.html

Mark's argument is wrong.  Most of the implementation resides in the
dynamic linker.  Solaris, for once, is unlikely ever to support this.
And no other OS does AFAIK.

If there should be another OS with this support it might define a
different constant.  That is what the OS-specific range is for, no
coordination with any other OS vendor.

Therefore the only possible implementation for handle IFUNC is to
precede every test with

   ->e_ident[EI_OSABI] == ELFOSABI_LINUX

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

iEYEARECAAYFAkt50NYACgkQ2ijCOnn/RHRubwCfQvb9yABKTuCPQJRpFNwmGdh+
9J4AoLSXoOm/brZ2adiBnduTSY0ni6HB
=qgvP
-----END PGP SIGNATURE-----


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