summaryrefslogtreecommitdiff
path: root/bfd/elf64-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
commit43c00276a715a8cb02f9f8c4e77b4566eb2ce868 (patch)
tree9f76f0aac3abbe0b30c6f97a140f79046c8954c8 /bfd/elf64-hppa.c
parent82b8334b74c746a776ad47ab9ccfd1bbd5ed7b35 (diff)
downloadbinutils-redhat-43c00276a715a8cb02f9f8c4e77b4566eb2ce868.tar.gz
For elf32-hppa-linux, objects can have OSABI=Linux or OSABI=SysV; check for
both.
Diffstat (limited to 'bfd/elf64-hppa.c')
-rw-r--r--bfd/elf64-hppa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index 9523862e35..88403f5221 100644
--- a/bfd/elf64-hppa.c
+++ b/bfd/elf64-hppa.c
@@ -380,7 +380,10 @@ elf64_hppa_object_p (abfd)
i_ehdrp = elf_elfheader (abfd);
if (strcmp (bfd_get_target (abfd), "elf64-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