2001-06-02 H.J. Lu <hjl@gnu.org>
* elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX and ELFOSABI_HPUX. * elf64-hppa.c (elf64_hppa_object_p): Likewise.
This commit is contained in:
parent
1510318892
commit
24a5e75166
@ -1,3 +1,9 @@
|
||||
2001-06-02 H.J. Lu <hjl@gnu.org>
|
||||
|
||||
* elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
|
||||
and ELFOSABI_HPUX.
|
||||
* elf64-hppa.c (elf64_hppa_object_p): Likewise.
|
||||
|
||||
2001-06-02 H.J. Lu <hjl@gnu.org>
|
||||
|
||||
* aout-cris.c (MACHTYPE_OK): New. Defined.
|
||||
|
@ -1147,8 +1147,22 @@ static boolean
|
||||
elf32_hppa_object_p (abfd)
|
||||
bfd *abfd;
|
||||
{
|
||||
unsigned int flags = elf_elfheader (abfd)->e_flags;
|
||||
Elf_Internal_Ehdr * i_ehdrp;
|
||||
unsigned int flags;
|
||||
|
||||
i_ehdrp = elf_elfheader (abfd);
|
||||
if (strcmp (bfd_get_target (abfd), "elf32-hppa-linux") == 0)
|
||||
{
|
||||
if (i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_LINUX)
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_HPUX)
|
||||
return false;
|
||||
}
|
||||
|
||||
flags = i_ehdrp->e_flags;
|
||||
switch (flags & (EF_PARISC_ARCH | EF_PARISC_WIDE))
|
||||
{
|
||||
case EFA_PARISC_1_0:
|
||||
|
@ -358,8 +358,22 @@ static boolean
|
||||
elf64_hppa_object_p (abfd)
|
||||
bfd *abfd;
|
||||
{
|
||||
unsigned int flags = elf_elfheader (abfd)->e_flags;
|
||||
Elf_Internal_Ehdr * i_ehdrp;
|
||||
unsigned int flags;
|
||||
|
||||
i_ehdrp = elf_elfheader (abfd);
|
||||
if (strcmp (bfd_get_target (abfd), "elf64-hppa-linux") == 0)
|
||||
{
|
||||
if (i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_LINUX)
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_HPUX)
|
||||
return false;
|
||||
}
|
||||
|
||||
flags = i_ehdrp->e_flags;
|
||||
switch (flags & (EF_PARISC_ARCH | EF_PARISC_WIDE))
|
||||
{
|
||||
case EFA_PARISC_1_0:
|
||||
|
Loading…
Reference in New Issue
Block a user