* objdump.c (disassemble_data): Handle unknown endianness.

This commit is contained in:
David Edelsohn 1996-01-23 17:58:32 +00:00
parent 2b20fd720f
commit 38aa863c90
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Tue Jan 23 09:53:54 1996 Doug Evans <dje@charmed.cygnus.com>
* objdump.c (disassemble_data): Handle unknown endianness.
Mon Jan 22 16:46:43 1996 Doug Evans <dje@charmed.cygnus.com>
Add new option --show-raw-insn.

View File

@ -863,8 +863,12 @@ disassemble_data (abfd)
disasm_info.mach = bfd_get_mach (abfd);
if (bfd_big_endian (abfd))
disasm_info.endian = BFD_ENDIAN_BIG;
else
else if (bfd_little_endian (abfd))
disasm_info.endian = BFD_ENDIAN_LITTLE;
else
/* ??? Aborting here seems too drastic. We could default to big or little
instead. */
disasm_info.endian = BFD_ENDIAN_UNKNOWN;
for (section = abfd->sections;
section != (asection *) NULL;