diff options
author | Renlin Li <renlin.li@arm.com> | 2017-12-11 15:33:18 +0000 |
---|---|---|
committer | Renlin Li <renlin.li@arm.com> | 2017-12-11 15:42:47 +0000 |
commit | 4c5ae11b42433dbffc33fbde75c9e415594504d8 (patch) | |
tree | 083809de805049eccdd86f0207498b02c1d5e996 /binutils | |
parent | 3c0aa29aab3949363f8b23d062c2e0cb1ccf017a (diff) | |
download | binutils-gdb-4c5ae11b42433dbffc33fbde75c9e415594504d8.tar.gz |
[Binutils][Objdump]Check symbol section information while search a mapping symbol backward.
When checking mapping symbols backwardly, the section which defines the symbol
is not considerted. This patch fixes this by moving the section checking code
into get_sym_code_type () function which is shared by forward and backword
mapping symbol searching.
opcodes/
2017-12-11 Petr Pavlu <petr.pavlu@arm.com>
Renlin Li <renlin.li@arm.com>
* aarch64-dis.c (print_insn_aarch64): Move symbol section check ...
(get_sym_code_type): Here.
binutils/
2017-12-11 Renlin Li <renlin.li@arm.com>
* testsuite/binutils-all/aarch64/objdump.d: New.
* testsuite/binutils-all/aarch64/objdump.s: New.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/aarch64/objdump.d | 19 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/aarch64/objdump.s | 9 |
3 files changed, 33 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4f29d19c315..f820280dccc 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2017-12-11 Renlin Li <renlin.li@arm.com> + + * testsuite/binutils-all/aarch64/objdump.d: New. + * testsuite/binutils-all/aarch64/objdump.s: New. + 2017-12-08 Nick Clifton <nickc@redhat.com> * objcopy.c (copy_relocations_in_section): Use the orelocations diff --git a/binutils/testsuite/binutils-all/aarch64/objdump.d b/binutils/testsuite/binutils-all/aarch64/objdump.d new file mode 100644 index 00000000000..4aca57bae4d --- /dev/null +++ b/binutils/testsuite/binutils-all/aarch64/objdump.d @@ -0,0 +1,19 @@ +#PROG: objcopy +#objdump: -d +#name: Check that the disassembler properly dump instruction and data. + +.*: +file format .*aarch64.* + +Disassembly of section \.text: + +0+000 <l1>: + 0: d503201f nop + +0+004 <l2>: + 4: d503201f nop + 8: 00c0ffee \.word 0x00c0ffee + +Disassembly of section .fini: + +0+000 <\.fini>: + 0: 0000dead \.word 0x0000dead diff --git a/binutils/testsuite/binutils-all/aarch64/objdump.s b/binutils/testsuite/binutils-all/aarch64/objdump.s new file mode 100644 index 00000000000..68de7037f77 --- /dev/null +++ b/binutils/testsuite/binutils-all/aarch64/objdump.s @@ -0,0 +1,9 @@ +.text +l1: + nop +l2: + nop +.word 0xc0ffee + +.section .fini, "x" +.word 0xdead |