* objdump.c (disassemble_bytes): Clear aux->reloc before printing
authorNick Clifton <nickc@redhat.com>
Mon, 8 Feb 2010 14:33:22 +0000 (14:33 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 8 Feb 2010 14:33:22 +0000 (14:33 +0000)
        a new address, so as not to reuse a previous, non-related reloc.

        * gas/arm/arm-it-auto.d, gas/arm/bl-local-v4t.d,
        gas/arm/blx-local.d, gas/arm/thumb-w-good.d: Update expected
        results.

binutils/ChangeLog
binutils/objdump.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/arm-it-auto.d
gas/testsuite/gas/arm/bl-local-v4t.d
gas/testsuite/gas/arm/blx-local.d
gas/testsuite/gas/arm/thumb-w-good.d
gas/testsuite/gas/arm/wince.d

index ede4c6de667523e72c1f4a740fea6bcfcd4bba3a..33bfd3ec26cb2d1a98fd8ee4fa94ae2e574ae859 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-08  Christophe Lyon  <christophe.lyon@st.com>
+
+       * objdump.c (disassemble_bytes): Clear aux->reloc before printing
+       a new address, so as not to reuse a previous, non-related reloc.
+
 2010-02-02  H.J. Lu  <hongjiu.lu@intel.com>
 
        * readelf.c (get_note_type): Handle NT_X86_XSTATE.
index b53d4ebe92c4ac1bd546c77ca19e07b884aa325b..41d0b4eb3aa633f5b8bf9d66c88b0f31086ea3d7 100644 (file)
@@ -1516,6 +1516,9 @@ disassemble_bytes (struct disassemble_info * inf,
       previous_octets = octets;
       octets = 0;
 
+      /* Make sure we don't use relocs from previous instructions.  */
+      aux->reloc = NULL;
+
       /* If we see more than SKIP_ZEROES octets of zeroes, we just
         print `...'.  */
       for (z = addr_offset * opb; z < stop_offset * opb; z++)
@@ -1619,8 +1622,6 @@ disassemble_bytes (struct disassemble_info * inf,
                      inf->flags |= INSN_HAS_RELOC;
                      aux->reloc = **relppp;
                    }
-                 else
-                   aux->reloc = NULL;
                }
 
              octets = (*disassemble_fn) (section->vma + addr_offset, inf);
index 43a7813484a9016772d6955635b90b968421266a..d875cfeba00f011395767906c149e59b2cb74f71 100644 (file)
@@ -1,3 +1,11 @@
+2010-02-08  Christophe Lyon  <christophe.lyon@st.com>
+
+       * gas/arm/arm-it-auto.d: Update expected results.
+       * gas/arm/bl-local-v4t.d: Likewise.
+       * gas/arm/blx-local.d: Likewise.
+       * gas/arm/thumb-w-good.d: Likewise.
+       * gas/arm/wince.d: Likewise.
+
 2010-02-08  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
 
        * gas/ppc/titan.d, * gas/ppc/titan.s: New test.
index 68d5d4ac1475e815858e958fddbaa05e4954c016..bfdd9d64d4aded06989f05b654a8c9adb8d12e14 100644 (file)
@@ -71,11 +71,11 @@ Disassembly of section .text:
 0000008c <main\+0x8c> bf18             it      ne
 0000008e <main\+0x8e> 200d             movne   r0, #13
 00000090 <main\+0x90> f... f...        bl      0000000. <f.*>
-00000094 <f\+0x94> bd10        pop     {r4, pc}
-00000096 <f\+0x96> f... f...   bl      0000000. <f.*>
-0000009a <f\+0x9a> bfb8        it      lt
-0000009c <f\+0x9c> 2000        movlt   r0, #0
-0000009e <f\+0x9e> 4348        muls    r0, r1
-000000a0 <f\+0xa0> bfb8        it      lt
-000000a2 <f\+0xa2> 2000        movlt   r0, #0
-000000a4 <f\+0xa4> 4348        muls    r0, r1
+00000094 <main\+0x94> bd10             pop     {r4, pc}
+00000096 <main\+0x96> f... f...        bl      0000000. <f.*>
+0000009a <main\+0x9a> bfb8             it      lt
+0000009c <main\+0x9c> 2000             movlt   r0, #0
+0000009e <main\+0x9e> 4348             muls    r0, r1
+000000a0 <main\+0xa0> bfb8             it      lt
+000000a2 <main\+0xa2> 2000             movlt   r0, #0
+000000a4 <main\+0xa4> 4348             muls    r0, r1
index 767d9ce4784175386402df2bdb6f0a01e4618244..959f6b2babfb892c1414ab65acb5c42255b255ff 100644 (file)
@@ -7,13 +7,13 @@
 .*: +file format .*arm.*
 Disassembly of section .text:
 0+00 <[^>]*> f7ff fffe         bl      00+18 <[^>]*>   0: R_ARM_THM_CALL       foo2
-0+1c <[^>]*> d004              beq.n   00+28 <[^>]*>
-0+1e <[^>]*> e003              b.n     00+28 <[^>]*>
-0+20 <[^>]*> f000 f808         bl      00+34 <[^>]*>
-0+24 <[^>]*> f000 f802         bl      00+2c <[^>]*>
-0+28 <[^>]*> 46c0              nop                     ; \(mov r8, r8\)
-0+2a <[^>]*> 46c0              nop                     ; \(mov r8, r8\)
-0+2c <[^>]*> 46c0              nop                     ; \(mov r8, r8\)
+0+04 <[^>]*> d004              beq.n   00+10 <[^>]*>
+0+06 <[^>]*> e003              b.n     00+10 <[^>]*>
+0+08 <[^>]*> f000 f808         bl      00+1c <[^>]*>
+0+0c <[^>]*> f000 f802         bl      00+14 <[^>]*>
+0+10 <[^>]*> 46c0              nop                     ; \(mov r8, r8\)
+0+12 <[^>]*> 46c0              nop                     ; \(mov r8, r8\)
+0+14 <[^>]*> 46c0              nop                     ; \(mov r8, r8\)
        ...
-0+30 <[^>]*> e1a00000  nop                     ; \(mov r0, r0\)
-0+34 <[^>]*> e1a00000  nop                     ; \(mov r0, r0\)
+0+18 <[^>]*> e1a00000  nop                     ; \(mov r0, r0\)
+0+1c <[^>]*> e1a00000  nop                     ; \(mov r0, r0\)
index 5aae7bada61368c21a5f45d20c8442d453e3582e..2f9a90dfa427aa15ee2317250ce88fd982442f2d 100644 (file)
@@ -23,7 +23,7 @@ Disassembly of section .text:
 0+2c <[^>]*> 0afffffc  beq     00000024 <fooundefthumb>
 0+30 <[^>]*> eafffffb  b       00000024 <fooundefthumb>
 0+34 <[^>]*> 0bfffffe  bleq    00000020 <foo>  34: R_ARM_JUMP24        foo
-0+58 <[^>]*> 0afffffe  beq     00000020 <foo>  38: R_ARM_JUMP24        foo
-0+5c <[^>]*> eafffffe  b       00000020 <foo>  3c: R_ARM_JUMP24        foo
-0+60 <[^>]*> e1a00000  nop                     ; \(mov r0, r0\)
-0+64 <[^>]*> e1a00000  nop                     ; \(mov r0, r0\)
+0+38 <[^>]*> 0afffffe  beq     00000020 <foo>  38: R_ARM_JUMP24        foo
+0+3c <[^>]*> eafffffe  b       00000020 <foo>  3c: R_ARM_JUMP24        foo
+0+40 <[^>]*> e1a00000  nop                     ; \(mov r0, r0\)
+0+44 <[^>]*> e1a00000  nop                     ; \(mov r0, r0\)
index 645a951faadb0598bd0759dcec56a9be2d0afcb0..d41493f9498d51c17af5c2b6e024d3688cc240dd 100644 (file)
@@ -6,4 +6,4 @@
 
 Disassembly of section .text:
 00000000 <.text> f7ff fffe     bl      00000000 <foo>
-00000004 <foo\+0x4> f3ef 8000  mrs     r0, CPSR
+00000004 <.text\+0x4> f3ef 8000        mrs     r0, CPSR
index 1608db98db34f280733995869675bbf1f6e114c1..4f6535aace92f22c92160456ef0e94d8b2e15af1 100644 (file)
@@ -13,18 +13,18 @@ Disassembly of section .text:
                        0: ARM_32       global_data
 0+004 <global_sym> e1a00000    nop                     ; \(mov r0, r0\)
 0+008 <global_sym\+0x4> e1a00000       nop                     ; \(mov r0, r0\)
-0+000c <global_sym\+0x8> e1a00000      nop                     ; \(mov r0, r0\)
+0+00c <global_sym\+0x8> e1a00000       nop                     ; \(mov r0, r0\)
 0+010 <global_sym\+0xc> eafffffb       b       f+ff8 <global_sym\+0xf+ff4>
                        10: ARM_26D     global_sym\+0xf+ffc
-0+018 <global_sym\+0x14> ebfffffa      bl      f+ff4 <global_sym\+0xf+ff0>
+0+014 <global_sym\+0x10> ebfffffa      bl      f+ff4 <global_sym\+0xf+ff0>
                        14: ARM_26D     global_sym\+0xf+ffc
-0+01c <global_sym\+0x18> 0afffff9      beq     f+ff0 <global_sym\+0xf+fec>
+0+018 <global_sym\+0x14> 0afffff9      beq     f+ff0 <global_sym\+0xf+fec>
                        18: ARM_26D     global_sym\+0xf+ffc
-0+020 <global_sym\+0x1c> eafffff8      b       0+008 <global_sym\+0x4>
-0+024 <global_sym\+0x20> ebfffff7      bl      0+008 <global_sym\+0x4>
-0+028 <global_sym\+0x24> 0afffff6      beq     0+008 <global_sym\+0x4>
-0+02c <global_sym\+0x28> eafffff5      b       0+008 <global_sym\+0x4>
-0+030 <global_sym\+0x2c> ebfffff4      bl      0+008 <global_sym\+0x4>
-0+034 <global_sym\+0x30> e51f0034      ldr     r0, \[pc, #-52\]        ; 0+008 <global_sym\+0x4>
-0+038 <global_sym\+0x34> e51f0038      ldr     r0, \[pc, #-56\]        ; 0+008 <global_sym\+0x4>
-0+03c <global_sym\+0x38> e51f003c      ldr     r0, \[pc, #-60\]        ; 0+008 <global_sym\+0x4>
+0+01c <global_sym\+0x18> eafffff8      b       0+004 <global_sym>
+0+020 <global_sym\+0x1c> ebfffff7      bl      0+004 <global_sym>
+0+024 <global_sym\+0x20> 0afffff6      beq     0+004 <global_sym>
+0+028 <global_sym\+0x24> eafffff5      b       0+004 <global_sym>
+0+02c <global_sym\+0x28> ebfffff4      bl      0+004 <global_sym>
+0+030 <global_sym\+0x2c> e51f0034      ldr     r0, \[pc, #-52\]        ; 0+004 <global_sym>
+0+034 <global_sym\+0x30> e51f0038      ldr     r0, \[pc, #-56\]        ; 0+004 <global_sym>
+0+038 <global_sym\+0x34> e51f003c      ldr     r0, \[pc, #-60\]        ; 0+004 <global_sym>
This page took 0.032463 seconds and 4 git commands to generate.