Should rename ELFOSABI_LINUX into ELFOSABI_GNU, and drop ELFOSABI_HURD

Samuel Thibault samuel.thibault@ens-lyon.org
Mon Jul 4 09:00:00 GMT 2011
Matt Rice, le Sun 03 Jul 2011 23:42:10 -0700, a écrit :
> On Sun, Jul 3, 2011 at 6:40 AM, Thomas Schwinge <thomas@schwinge.name> wrote:
> > Hallo!
> >
> > On Thu, 30 Jun 2011 10:48:02 +0100, Nick Clifton <nickc@redhat.com> wrote:
> >>  > [ELFOSABI_GNU]
> >>
> >> Approved - please apply.
> >
> > Applied, with the following additional changed:
> 
> Hi, It isn't immediately obvious to me how to fix it but this patch
> broke gdb compilation,
> 
> ELFOSABI_HURD and ELFOSABI_LINUX caused the respective i386gnu-tdep.c
> and i386-linux-tdep.c implementations to be used.  Not sure what to
> replace that with, with these being the same and/or missing.

I believe it should be turned into just one case (ELFOSABI_GNU), and
then use generic_elf_osabi_sniff_abi_tag_sections, as is done for
ELFOSABI_NONE, to distinguish between LINUX and HURD.

Samuel



More information about the Binutils mailing list