+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
--- /dev/null
+#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
--- /dev/null
+.text
+l1:
+ nop
+l2:
+ nop
+.word 0xc0ffee
+
+.section .fini, "x"
+.word 0xdead
+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.
+
2017-12-03 Alan Modra <amodra@gmail.com>
* ppc-opc.c (extract_li20): Rewrite.
unsigned int type;
const char *name;
+ /* If the symbol is in a different section, ignore it. */
+ if (info->section != NULL && info->section != info->symtab[n]->section)
+ return FALSE;
+
es = *(elf_symbol_type **)(info->symtab + n);
type = ELF_ST_TYPE (es->internal_elf_sym.st_info);
addr = bfd_asymbol_value (info->symtab[n]);
if (addr > pc)
break;
- if ((info->section == NULL
- || info->section == info->symtab[n]->section)
- && get_sym_code_type (info, n, &type))
+ if (get_sym_code_type (info, n, &type))
{
last_sym = n;
found = TRUE;