This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: STT_GNU_IFUNC dependency on ELFOSABI_LINUX [Re: Add support for STT_GNU_IFUNC?]
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Nick Clifton <nickc at redhat dot com>, "H.J. Lu" <hjl dot tools at gmail dot com>, binutils at sourceware dot org, Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Date: Mon, 15 Feb 2010 14:55:18 -0800
- Subject: Re: STT_GNU_IFUNC dependency on ELFOSABI_LINUX [Re: Add support for STT_GNU_IFUNC?]
- References: <6dc9ffc80904200944v77680623i123be7edbda5f2d3@mail.gmail.com> <49ECA7B7.7040401@redhat.com> <6dc9ffc80904230847s581adc1h5bc7077d548c2995@mail.gmail.com> <49F9C7FB.4070102@redhat.com> <20100215222224.GA21545@host0.dyn.jankratochvil.net>
-----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-----