For elf32-hppa-linux, objects can have OSABI=Linux or OSABI=SysV; check for

both.
This commit is contained in:
Nick Clifton 2003-08-21 14:00:06 +00:00
parent 3673a93e66
commit 6c21aa7634
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-08-21 Randolph Chung <tausq@debian.org>
* elf32-hppa.c (elf32_hppa_object_p): For elf32-hppa-linux, objects
can have OSABI=Linux or OSABI=SysV. Check for both.
* elf64-hppa.c (elf64_hppa_object_p): Likewise.
2003-08-21 Nick Clifton <nickc@redhat.com>
* po/sv.po: Updated Swedish translation.

View File

@ -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

View File

@ -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