[patch] binary file endianness
Momchil Velikov
velco@fadata.bg
Sun May 21 02:33:00 GMT 2000
Geoff Keating wrote:
>
> Shouldn't it instead check to see whether the endianness is unknown?
>
> You still don't want to be linking a little-endian COFF with a
> big-endian ELF, I think.
Indeed. Here's the revised patch.
How about removing the inline checks for endianness
and calling _bfd_generic_verify_endian_match() instead ?
Regards,
-velco
2000-05-21 Momchil Velikov <velco@fadata.bg>
* elf32-mcore.c (mcore_elf_merge_private_bfd_data): Check endianness
only if it is known for both input and output bfds.
* libbfd.c (_bfd_generic_verify_endian_match): Likewise.
* elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
* elf32-ppc.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Check for input and
output bfd endiannes before checking bfd flavour.
More information about the Binutils
mailing list