aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-05-06 07:41:56 +0000
committerNick Clifton <nickc@redhat.com>1999-05-06 07:41:56 +0000
commita8a9050d4a058030a65f2501755e76225609798d (patch)
tree3b02b8cfefe649f8f8ed7ae503e0ef55821b01b5 /binutils
parent9484f685a5ec3f43fdf766caf02393c516eeda6f (diff)
downloadfsf-binutils-gdb-a8a9050d4a058030a65f2501755e76225609798d.zip
fsf-binutils-gdb-a8a9050d4a058030a65f2501755e76225609798d.tar.gz
fsf-binutils-gdb-a8a9050d4a058030a65f2501755e76225609798d.tar.bz2
Set display_endian based on target endianism.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/objdump.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 2b9fa66..6f19b86 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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.
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 3f9e8c4..811dd0e 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -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. */