This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH,HURD] Recognize GNU/Hurd-specific binaries
Roland McGrath, le Sun 19 Jun 2011 10:48:12 -0700, a écrit :
> > Ground issue is this:
> > http://sourceware.org/bugzilla/show_bug.cgi?id=10549
> > gcc/glibc now uses GNU-specific extensions to the ELF format (GNU_IFUNC,
> > GNU_UNIQUE). For such cases, binutils now emits binaries with the
> > GNU/Linux-specific ELFOSABI_LINUX on GNU/Linux, and should also emit
> > binaries with the GNU/Hurd-specific ELFOSABI_HURD on GNU/Hurd.
>
> I am not convinced that the addition of an ELFOSABI_HURD makes any sense.
> ELFOSABI_LINUX today really doesn't mean anything about an "OS", it just
> means the presence of these GNU ELF extensions. I don't see why we
> shouldn't use that flag uniformly across all kinds of GNU systems.
Well, it frightens me a bit to add something called "LINUX" in all GNU
systems: what if somebody adds something there that we don't want to add
to some GNU system? What if we want to add something for GNU/Hurd that
Linux people do not want to add?
I know that the dynamic linker is currently mostly shared, but the very
fact that ELFOSABI_LINUX and ELFOSABI_HURD are already separate in
binutils worries me.
Samuel