For elf32-hppa-linux, objects can have OSABI=Linux or OSABI=SysV; check for
both.
This commit is contained in:
parent
3673a93e66
commit
6c21aa7634
3 changed files with 14 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue