* objdump.c (disassemble_data): Handle unknown endianness.
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 23 Jan 1996 17:58:32 +0000 (17:58 +0000)
committerDavid Edelsohn <dje.gcc@gmail.com>
Tue, 23 Jan 1996 17:58:32 +0000 (17:58 +0000)
binutils/ChangeLog
binutils/objdump.c

index 6ee88180f65448980d0b6bc0b8d3efe5b2bf855c..e23e8a986e713c588d595e3230dc417936ccb387 100644 (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.
index 3279eb72c2e3f950278f0d08e0a4bb394c89216e..19b1243985c29f559a39deb09559497872970a2b 100644 (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;