mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
For elf32-hppa-linux, objects can have OSABI=Linux or OSABI=SysV; check for
both.
This commit is contained in:
@ -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>
|
2003-08-21 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* po/sv.po: Updated Swedish translation.
|
* po/sv.po: Updated Swedish translation.
|
||||||
|
@ -924,7 +924,10 @@ elf32_hppa_object_p (bfd *abfd)
|
|||||||
i_ehdrp = elf_elfheader (abfd);
|
i_ehdrp = elf_elfheader (abfd);
|
||||||
if (strcmp (bfd_get_target (abfd), "elf32-hppa-linux") == 0)
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -380,7 +380,10 @@ elf64_hppa_object_p (abfd)
|
|||||||
i_ehdrp = elf_elfheader (abfd);
|
i_ehdrp = elf_elfheader (abfd);
|
||||||
if (strcmp (bfd_get_target (abfd), "elf64-hppa-linux") == 0)
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user