OSDN Git Service

2009-04-01 Christophe Lyon <christophe.lyon@st.com>
authorclyon <clyon>
Wed, 1 Apr 2009 15:45:13 +0000 (15:45 +0000)
committerclyon <clyon>
Wed, 1 Apr 2009 15:45:13 +0000 (15:45 +0000)
opcodes/
* arm-dis.c (print_insn): Print BE8 opcodes in little endianness.

ld/testsuite/
* ld-arm/arm-elf.exp: BE8 tests expect the same output as the
default ones.
* ld-arm/arm-be8.d: Print opcodes in little endian.
* ld-arm/farcall-thumb-arm-be8.d: Removed useless expected result.
* ld-arm/farcall-arm-arm-be8.d: Likewise.

opcodes/ChangeLog
opcodes/arm-dis.c

index a98f288..87c9fe5 100644 (file)
@@ -1,3 +1,7 @@
+2009-04-01  Christophe Lyon  <christophe.lyon@st.com>
+
+       * arm-dis.c (print_insn): Print BE8 opcodes in little endianness.
+
 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
 
        * arm-dis.c (print_insn): Also check section matches in backwards
index 3360b82..884b5ae 100644 (file)
@@ -4113,7 +4113,11 @@ print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little)
   if (force_thumb)
     is_thumb = TRUE;
 
-  info->display_endian = little ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG;
+  if (is_data)
+    info->display_endian = little ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG;
+  else
+    info->display_endian = little_code ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG;
+
   info->bytes_per_line = 4;
 
   if (is_data)