Set display_endian based on target endianism.
authorNick Clifton <nickc@redhat.com>
Thu, 6 May 1999 07:41:56 +0000 (07:41 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 6 May 1999 07:41:56 +0000 (07:41 +0000)
binutils/ChangeLog
binutils/objdump.c

index 2b9fa66a4d424f24fade0630dd4600c35c43da84..6f19b862c6a953b396dbe13bbda93220bfe517f8 100644 (file)
@@ -1,3 +1,8 @@
+1999-05-06  Nick Clifton  <nickc@cygnus.com>
+
+       * objdump.c (disassemble_data): Set display_endian based on target
+       endianism.
+
 1999-05-05  Catherine Moore  <clm@cygnus.com>
 
        * dlltool.c (interwork): Remove.
index 3f9e8c4c3f6f22b82a6dbc0f148b4da456e6956e..811dd0eff1ab9aa8d325e6b25c30d6756ad60261 100644 (file)
@@ -1560,9 +1560,9 @@ disassemble_data (abfd)
   disasm_info.arch = bfd_get_arch (abfd);
   disasm_info.mach = bfd_get_mach (abfd);
   if (bfd_big_endian (abfd))
-    disasm_info.endian = BFD_ENDIAN_BIG;
+    disasm_info.display_endian = disasm_info.endian = BFD_ENDIAN_BIG;
   else if (bfd_little_endian (abfd))
-    disasm_info.endian = BFD_ENDIAN_LITTLE;
+    disasm_info.display_endian = disasm_info.endian = BFD_ENDIAN_LITTLE;
   else
     /* ??? Aborting here seems too drastic.  We could default to big or little
        instead.  */