aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-hppa.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-08-21 14:00:06 +0000
committerNick Clifton <nickc@redhat.com>2003-08-21 14:00:06 +0000
commit6c21aa7634555aae9d4df64b073146bef5ae0734 (patch)
treebe7d57e2f536fceb2d44392cc8aee57ca6d377e0 /bfd/elf32-hppa.c
parent3673a93e66c4d3c6b5ea3d31062a0f8d2388bd1e (diff)
downloadgdb-6c21aa7634555aae9d4df64b073146bef5ae0734.zip
gdb-6c21aa7634555aae9d4df64b073146bef5ae0734.tar.gz
gdb-6c21aa7634555aae9d4df64b073146bef5ae0734.tar.bz2
For elf32-hppa-linux, objects can have OSABI=Linux or OSABI=SysV; check for
both.
Diffstat (limited to 'bfd/elf32-hppa.c')
-rw-r--r--bfd/elf32-hppa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c
index 3c03a06..924f7af 100644
--- a/bfd/elf32-hppa.c
+++ b/bfd/elf32-hppa.c
@@ -924,7 +924,10 @@ elf32_hppa_object_p (bfd *abfd)
i_ehdrp = elf_elfheader (abfd);
if (strcmp (bfd_get_target (abfd), "elf32-hppa-linux") == 0)
{
- if (i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_LINUX)
+ /* GCC on hppa-linux produces binaries with OSABI=Linux,
+ but the kernel produces corefiles with OSABI=SysV. */
+ if (i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_LINUX &&
+ i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_NONE) /* aka SYSV */
return FALSE;
}
else