diff options
author | Renlin Li <renlin.li@arm.com> | 2015-10-01 14:12:37 +0100 |
---|---|---|
committer | Renlin Li <renlin.li@arm.com> | 2015-10-01 14:27:56 +0100 |
commit | 73524045d3a3b95bb0437386bba2a1583791ea42 (patch) | |
tree | 7a9329af0ec686a4e63e5c394e91e870f2555875 /ld | |
parent | 0e1e4a751264ef12dce933e720152914c9ea5eb6 (diff) | |
download | gdb-73524045d3a3b95bb0437386bba2a1583791ea42.zip gdb-73524045d3a3b95bb0437386bba2a1583791ea42.tar.gz gdb-73524045d3a3b95bb0437386bba2a1583791ea42.tar.bz2 |
[BFD][AARCH64]Emit single AARCH64_MAP_INSN symbol for the whole plt.
bfd/
2015-10-01 Renlin Li <renlin.li@arm.com>
* elfnn-aarch64.c (elfNN_aarch64_output_plt_map): Remove.
(elfNN_aarch64_output_arch_local_syms): Emit AARCH64_MAP_INSN once.
ld/testsuite/
2015-10-01 Renlin Li <renlin.li@arm.com>
* ld-aarch64/plt_mapping_symbol.d: New.
* ld-aarch64/plt_mapping_symbol.s: New.
* ld-aarch64/aarch64-elf.exp: Run the new test.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/aarch64-elf.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/plt_mapping_symbol.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/plt_mapping_symbol.s | 6 |
4 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 9bfc823..fdf4b3c 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-10-01 Renlin Li <renlin.li@arm.com> + + * ld-aarch64/aarch64-elf.exp: Run the new test. + * ld-aarch64/plt_mapping_symbol.d: New. + * ld-aarch64/plt_mapping_symbol.s: New. + 2015-10-01 Alan Modra <amodra@gmail.com> * ld-x86-64/pr19013-x32.d: Update. diff --git a/ld/testsuite/ld-aarch64/aarch64-elf.exp b/ld/testsuite/ld-aarch64/aarch64-elf.exp index 955484e..6f00961 100644 --- a/ld/testsuite/ld-aarch64/aarch64-elf.exp +++ b/ld/testsuite/ld-aarch64/aarch64-elf.exp @@ -254,6 +254,8 @@ run_dump_test "relocs-1027-symbolic-func" run_dump_test "dt_textrel" +run_dump_test "plt_mapping_symbol" + set aarch64elflinktests { {"ld-aarch64/so with global symbol" "-shared" "" "" {copy-reloc-so.s} {} "copy-reloc-so.so"} diff --git a/ld/testsuite/ld-aarch64/plt_mapping_symbol.d b/ld/testsuite/ld-aarch64/plt_mapping_symbol.d new file mode 100644 index 0000000..3b86cff --- /dev/null +++ b/ld/testsuite/ld-aarch64/plt_mapping_symbol.d @@ -0,0 +1,10 @@ +#source: plt_mapping_symbol.s +#ld: -shared -T relocs.ld -e0 +#objdump: --syms --special-syms +#name: AArch64 mapping symbol for plt section test. +#... + +SYMBOL TABLE: +#... +[0]+10010 l .plt 0[0]+00 \$x +#... diff --git a/ld/testsuite/ld-aarch64/plt_mapping_symbol.s b/ld/testsuite/ld-aarch64/plt_mapping_symbol.s new file mode 100644 index 0000000..ac20482 --- /dev/null +++ b/ld/testsuite/ld-aarch64/plt_mapping_symbol.s @@ -0,0 +1,6 @@ + .text +test: + bl __tls_get_addr + nop + + .xword 0xffee |