diff options
author | Nick Clifton <nickc@redhat.com> | 2005-03-01 15:18:44 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-03-01 15:18:44 +0000 |
commit | ce04548af9eafaa2034f081247a21ff3fcfede15 (patch) | |
tree | be5ab939f6d3c9eb1219b097fa1fa5ef177a3021 /gas | |
parent | b15c27d7c12d8c8d500a4f96693f6a7cff86aeaa (diff) | |
download | gdb-ce04548af9eafaa2034f081247a21ff3fcfede15.zip gdb-ce04548af9eafaa2034f081247a21ff3fcfede15.tar.gz gdb-ce04548af9eafaa2034f081247a21ff3fcfede15.tar.bz2 |
objdump.c: Fix coding for DISASSEMBLER_NEEDS_RELOC:
(struct objdump_disasm_info): Add 'reloc' field.
(disassemble_bytes): Fix check for when an insn has a reloc associated with it.
Improve comment explaining why the use of octets is wrong. Set the 'reloc'
field in objdump_disasm_info structure.
(objdump_print_addr): Use new 'reloc' field to lookup the correct address for
the symbol associated with the current instruction's relocation.
(disassemble_info): Initialise 'reloc' field.
gas/arm/inst.d: Allow for ARM ports which decode the reloc associated with
branches and so show the exact symbolic destination address rather than an
offset from the start of the section.
gas/arm/pic.d: Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/inst.d | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/pic.d | 2 |
3 files changed, 14 insertions, 5 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 12cf4aa..87bef55 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2005-03-01 Stig Petter Olsroed <stigpo@users.sourceforge.net> + Nick Clifton <nickc@redhat.com> + + * gas/arm/inst.d: Allow for ARM ports which decode the reloc + associated with branches and so show the exact symbolic + destination address rather than an offset from the start of the + section. + * gas/arm/pic.d: Likewise. + 2005-03-01 Alan Modra <amodra@bigpond.net.au> * gas/m68k/mcf-emac.d: Allow for 64-bit addresses. diff --git a/gas/testsuite/gas/arm/inst.d b/gas/testsuite/gas/arm/inst.d index 6067fe9..1b35684 100644 --- a/gas/testsuite/gas/arm/inst.d +++ b/gas/testsuite/gas/arm/inst.d @@ -159,13 +159,13 @@ Disassembly of section .text: 0+254 <[^>]*> e9c40300 ? stmib r4, {r8, r9}\^ 0+258 <[^>]*> ef123456 ? swi 0x00123456 0+25c <[^>]*> 2f000033 ? swics 0x00000033 -0+260 <[^>]*> ebfffffe ? bl 0+260 <[^>]*> +0+260 <[^>]*> ebfffffe ? bl 0[0123456789abcdef]+ <[^>]*> [ ]*260:.*_wombat.* -0+264 <[^>]*> 5bfffffe ? blpl 0+264 <[^>]*> +0+264 <[^>]*> 5bfffffe ? blpl 0[0123456789abcdef]+ <[^>]*> [ ]*264:.*ARM.*hohum -0+268 <[^>]*> eafffffe ? b 0+268 <[^>]*> +0+268 <[^>]*> eafffffe ? b 0[0123456789abcdef]+ <[^>]*> [ ]*268:.*_wibble.* -0+26c <[^>]*> dafffffe ? ble 0+26c <[^>]*> +0+26c <[^>]*> dafffffe ? ble 0[0123456789abcdef]+ <[^>]*> [ ]*26c:.*testerfunc.* 0+270 <[^>]*> e1a01102 ? mov r1, r2, lsl #2 0+274 <[^>]*> e1a01002 ? mov r1, r2 diff --git a/gas/testsuite/gas/arm/pic.d b/gas/testsuite/gas/arm/pic.d index 2697136..5db6a61 100644 --- a/gas/testsuite/gas/arm/pic.d +++ b/gas/testsuite/gas/arm/pic.d @@ -8,7 +8,7 @@ Disassembly of section .text: 00+0 <[^>]*> ebfffffe bl 00+0 <[^>]*> 0: R_ARM_PC24 foo -00+4 <[^>]*> ebfffffe bl 00+4 <[^>]*> +00+4 <[^>]*> ebfffffe bl 0[0123456789abcdef]+ <[^>]*> 4: R_ARM_PLT32 foo \.\.\. 8: R_ARM_ABS32 sym |