Why do we relax e_ident[EI_OSABI] in gdb?
parisc-linux,
Anyone have some ideas why we have this patch in gdb, and thus relax the EI_OSABI check?
bfd/elf64-hppa.c renamed from bfd/elf64-hppa.c~ +2 -1
@@ -372,7 +372,8 @@ i_ehdrp =elf_elfheader (abfd);if (strcmp (bfd_get_target (abfd),"elf64-hppa-linux" ) ==0 ) { -if (i_ehdrp->e_ident[EI_OSABI ] !=ELFOSABI_LINUX ) +if (i_ehdrp->e_ident[EI_OSABI ] !=ELFOSABI_LINUX && + i_ehdrp->e_ident[EI_OSABI ] !=ELFOSABI_NONE )return false; }else
bfd/elf32-hppa.c renamed from bfd/elf32-hppa.c~ +2 -1
@@ -1038,7 +1038,8 @@ i_ehdrp =elf_elfheader (abfd);if (strcmp (bfd_get_target (abfd),"elf32-hppa-linux" ) ==0 ) { -if (i_ehdrp->e_ident[EI_OSABI ] !=ELFOSABI_LINUX ) +if (i_ehdrp->e_ident[EI_OSABI ] !=ELFOSABI_LINUX && + i_ehdrp->e_ident[EI_OSABI ] !=ELFOSABI_NONE )return false; }else
===
c.
Quoted 2 lines · Carlos O'Donell
Anyone have some ideas why we have this patch in gdb, and thus relax the
EI_OSABIcheck?
Maybe this mail explains it?
http://lists.parisc-linux.org/hypermail/parisc-linux/2357.html
search for ELF_OSABI on lists.p-l.o turned up alot of hits. But looks like just one thread.
grant
Quoted 2 lines · Grant Grundler
Maybe this mail explains it?
http://lists.parisc-linux.org/hypermail/parisc-linux/2357.html
http://lists.parisc-linux.org/hypermail/parisc-linux/2377.html
This is a bit further down the "next thread" list and is Cary Coutant trying to clarify the intent of the fields.
grant
bfd/elf64-hppa.c line 376
Quoted 12 lines
Anyone have some ideas why we have this patch in gdb, and thus relax the
EI_OSABIcheck?bfd/elf64-hppa.c renamed from bfd/elf64-hppa.c~ +2
-1@@ -372,7 +372,8 @@ i_ehdrp =elf_elfheader (abfd);if (strcmp (bfd_get_target (abfd),"elf64-hppa-linux" ) ==0 ) { -if (i_ehdrp->e_ident[EI_OSABI ] !=ELFOSABI_LINUX ) +if (i_ehdrp->e_ident[EI_OSABI ] !=ELFOSABI_LINUX && + i_ehdrp->e_ident[EI_OSABI ] !=ELFOSABI_NONE )
well... take a look at
http://bugs.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=137316
but Grant's references explain it in more detail.
randolph