PATCH: Check EI_OSABI for ELF/HPPA.
Alan Modra
amodra@bigpond.net.au
Sat Jun 2 19:25:00 GMT 2001
On Sat, Jun 02, 2001 at 11:15:19AM -0700, H . J . Lu wrote:
> * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
> and ELFOSABI_HPUX.
OK.
> * elf64-hppa.c (elf64_hppa_object_p): Check ELFOSABI_LINUX
> and ELFOSABI_HPUX/EI_ABIVERSION.
OK, but it may be better to leave out the ABIVERSION check. The
OSABI byte is sufficient to distinguish the two varieties.
Thanks for fixing this. I've been aware of the problem for some time
but never got annoyed enough to fix it, as it only affects cross-tools
and can be worked around by giving the target explicitly on the
command line.
--
Alan Modra
More information about the Binutils
mailing list