diff options
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/aarch64-elf.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/emit-relocs-530.d | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/emit-relocs-530.s | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/emit-relocs-92.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/emit-relocs-92.s | 10 |
6 files changed, 45 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index ce3b310d348..edf5b7a6cc7 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2015-08-19 Jiong Wang <jiong.wang@arm.com> + + * ld-aarch64/emit-relocs-530.s: New testcase. + * ld-aarch64/emit-relocs-92.s: Likewise. + * ld-aarch64/emit-relocs-530.d: New expectation file. + * ld-aarch64/emit-relocs-92.d: Likewise. + * ld-aarch64/aarch64-elf.exp: Run new testcases. + 2015-08-18 H.J. Lu <hongjiu.lu@intel.com> PR ld/18841 diff --git a/ld/testsuite/ld-aarch64/aarch64-elf.exp b/ld/testsuite/ld-aarch64/aarch64-elf.exp index 15247dc34a0..bb8f4c23965 100644 --- a/ld/testsuite/ld-aarch64/aarch64-elf.exp +++ b/ld/testsuite/ld-aarch64/aarch64-elf.exp @@ -68,6 +68,7 @@ run_dump_test "weak-undefined" run_dump_test "emit-relocs-28" run_dump_test "emit-relocs-86" run_dump_test "emit-relocs-86-overflow" +run_dump_test "emit-relocs-92" run_dump_test "emit-relocs-257" run_dump_test "emit-relocs-257-be" # 258 is tested in 257 @@ -120,6 +121,7 @@ run_dump_test "emit-relocs-312" run_dump_test "emit-relocs-313" run_dump_test "emit-relocs-529" run_dump_test "emit-relocs-529-overflow" +run_dump_test "emit-relocs-530" # test addend correctness when --emit-relocs specified for non-relocatable obj. run_dump_test "emit-relocs-local-addend" diff --git a/ld/testsuite/ld-aarch64/emit-relocs-530.d b/ld/testsuite/ld-aarch64/emit-relocs-530.d new file mode 100644 index 00000000000..fc70bccae98 --- /dev/null +++ b/ld/testsuite/ld-aarch64/emit-relocs-530.d @@ -0,0 +1,7 @@ +#source: emit-relocs-530.s +#ld: -T relocs.ld -e0 --emit-relocs +#objdump: -dr +#... +0000000000010000 <.text>: + 10000: 91001134 add x20, x9, #0x4 + 10000: R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC v2 diff --git a/ld/testsuite/ld-aarch64/emit-relocs-530.s b/ld/testsuite/ld-aarch64/emit-relocs-530.s new file mode 100644 index 00000000000..72af8b28444 --- /dev/null +++ b/ld/testsuite/ld-aarch64/emit-relocs-530.s @@ -0,0 +1,10 @@ + .global v1 + .global v2 + .section .tdata,"awT",%progbits +v1: + .word 0xdeaddead +v2: + .word 0xcafecafe + + .text + add x20, x9, #:dtprel_lo12_nc:v2 diff --git a/ld/testsuite/ld-aarch64/emit-relocs-92.d b/ld/testsuite/ld-aarch64/emit-relocs-92.d new file mode 100644 index 00000000000..0ff532b10f7 --- /dev/null +++ b/ld/testsuite/ld-aarch64/emit-relocs-92.d @@ -0,0 +1,8 @@ +#source: emit-relocs-92.s +#as: -mabi=ilp32 +#ld: -m [aarch64_choose_ilp32_emul] -e0 --emit-relocs +#objdump: -dr +#... +.* <.text>: + .*: 11001134 add w20, w9, #0x4 + .*: R_AARCH64_P32_TLSLD_ADD_DTPREL_LO12_NC v2 diff --git a/ld/testsuite/ld-aarch64/emit-relocs-92.s b/ld/testsuite/ld-aarch64/emit-relocs-92.s new file mode 100644 index 00000000000..14b62067503 --- /dev/null +++ b/ld/testsuite/ld-aarch64/emit-relocs-92.s @@ -0,0 +1,10 @@ + .global v1 + .global v2 + .section .tdata,"awT",%progbits +v1: + .word 0xdeaddead +v2: + .word 0xcafecafe + + .text + add w20, w9, #:dtprel_lo12_nc:v2 |