diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1996-01-23 17:58:32 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1996-01-23 17:58:32 +0000 |
commit | 38aa863c90c26886ddf0de41ef634c4a2ceef8e5 (patch) | |
tree | 8f3b421f22b659bf4f9863e105ff854825b4d1df | |
parent | 2b20fd720f3eec6ac67be5923bb313d888d7c904 (diff) | |
download | gdb-38aa863c90c26886ddf0de41ef634c4a2ceef8e5.zip gdb-38aa863c90c26886ddf0de41ef634c4a2ceef8e5.tar.gz gdb-38aa863c90c26886ddf0de41ef634c4a2ceef8e5.tar.bz2 |
* objdump.c (disassemble_data): Handle unknown endianness.
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/objdump.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 6ee8818..e23e8a9 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -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. diff --git a/binutils/objdump.c b/binutils/objdump.c index 3279eb7..19b1243 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -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; |