From 73524045d3a3b95bb0437386bba2a1583791ea42 Mon Sep 17 00:00:00 2001 From: Renlin Li Date: Thu, 1 Oct 2015 14:12:37 +0100 Subject: [BFD][AARCH64]Emit single AARCH64_MAP_INSN symbol for the whole plt. bfd/ 2015-10-01 Renlin Li * 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 * ld-aarch64/plt_mapping_symbol.d: New. * ld-aarch64/plt_mapping_symbol.s: New. * ld-aarch64/aarch64-elf.exp: Run the new test. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-aarch64/aarch64-elf.exp | 2 ++ ld/testsuite/ld-aarch64/plt_mapping_symbol.d | 10 ++++++++++ ld/testsuite/ld-aarch64/plt_mapping_symbol.s | 6 ++++++ 4 files changed, 24 insertions(+) create mode 100644 ld/testsuite/ld-aarch64/plt_mapping_symbol.d create mode 100644 ld/testsuite/ld-aarch64/plt_mapping_symbol.s (limited to 'ld') 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 + + * 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 * 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 -- cgit v1.1