aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2014-07-15 10:08:55 +0100
committerJiong Wang <jiong.wang@arm.com>2014-07-15 10:08:55 +0100
commitd6f18fe6cac35e68f86bda603620ebacaf59b1e6 (patch)
treee54fbae6eeea3e001251e851f639dbdb0daa740e /ld
parentea7cc5bfc8ed2c139aeb50afe5652f8c4bb4d81a (diff)
downloadgdb-d6f18fe6cac35e68f86bda603620ebacaf59b1e6.zip
gdb-d6f18fe6cac35e68f86bda603620ebacaf59b1e6.tar.gz
gdb-d6f18fe6cac35e68f86bda603620ebacaf59b1e6.tar.bz2
[AArch64] Fix ld testcase linker script glitch.
Specify -T relocs.ld for emit-relocs-local-addend.d to be consistent will all other emit-relocs* testcases ld/testsuite/ * ld-aarch64/emit-relocs-local-addend.d: Use target linker script.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog4
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-local-addend.d14
2 files changed, 11 insertions, 7 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 7ad3dca..fbc9862 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2014-07-15 Jiong Wang <jiong.wang@arm.com>
+
+ * ld-aarch64/emit-relocs-local-addend.d: Use target linker script.
+
2014-07-10 Will Newton <will.newton@linaro.org>
* ld-arm/arm-elf.exp (armelftests_nonacl): Move Cortex-A8 fix
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-local-addend.d b/ld/testsuite/ld-aarch64/emit-relocs-local-addend.d
index 1739e64..9d652c2 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-local-addend.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-local-addend.d
@@ -1,16 +1,16 @@
#source: emit-relocs-local-addend-foo.s
#source: emit-relocs-local-addend-bar.s
-#ld: -e0 --emit-relocs
+#ld: -T relocs.ld -e0 --emit-relocs
#readelf: -r
Relocation section '\.rela\.text' at offset 0x102f8 contains 4 entries:
Offset Info Type Sym\. Value Sym\. Name \+ Addend
-000000400000 000200000113 R_AARCH64_ADR_PRE 0000000000400018 \.rodata \+ 0
-000000400004 000200000115 R_AARCH64_ADD_ABS 0000000000400018 \.rodata \+ 0
-00000040000c 000200000113 R_AARCH64_ADR_PRE 0000000000400018 \.rodata \+ 10
-000000400010 000200000115 R_AARCH64_ADD_ABS 0000000000400018 \.rodata \+ 10
+000000010000 000200000113 R_AARCH64_ADR_PRE 0000000000010018 \.rodata \+ 0
+000000010004 000200000115 R_AARCH64_ADD_ABS 0000000000010018 \.rodata \+ 0
+00000001000c 000200000113 R_AARCH64_ADR_PRE 0000000000010018 \.rodata \+ 10
+000000010010 000200000115 R_AARCH64_ADD_ABS 0000000000010018 \.rodata \+ 10
Relocation section '\.rela\.rodata' at offset 0x10358 contains 2 entries:
Offset Info Type Sym\. Value Sym. Name \+ Addend
-000000400020 000200000101 R_AARCH64_ABS64 0000000000400018 \.rodata \+ 0
-000000400030 000200000101 R_AARCH64_ABS64 0000000000400018 \.rodata \+ 10
+000000010020 000200000101 R_AARCH64_ABS64 0000000000010018 \.rodata \+ 0
+000000010030 000200000101 R_AARCH64_ABS64 0000000000010018 \.rodata \+ 10