aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2016-03-07 15:40:50 +0000
committerJiong Wang <jiong.wang@arm.com>2016-03-07 15:40:50 +0000
commit18f822a08fd5cb8fed8b0b318e7945545c255081 (patch)
tree8a6ee313b3871291eaf8a34d79bd94ae75deac68 /ld
parentf86f586366275bbb5ae77520eb990769f05a3030 (diff)
downloadgdb-18f822a08fd5cb8fed8b0b318e7945545c255081.zip
gdb-18f822a08fd5cb8fed8b0b318e7945545c255081.tar.gz
gdb-18f822a08fd5cb8fed8b0b318e7945545c255081.tar.bz2
[AArch64] Create .got section if _GLOBAL_OFFSET_TABLE_ referenced
2016-03-07 Jiong Wang <jiong.wang@arm.com> bfd/ * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got section if the symbol "_GLOBAL_OFFSET_TABLE_" referenced. ld/ * testsuite/ld-aarch64/implicit_got_section_1.s: New test source file. * testsuite/ld-aarch64/implicit_got_section_1.d: New test expected result. * testsuite/ld-aarch64/aarch64-elf.exp: Run new test.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/testsuite/ld-aarch64/aarch64-elf.exp1
-rw-r--r--ld/testsuite/ld-aarch64/implicit_got_section_1.d5
-rw-r--r--ld/testsuite/ld-aarch64/implicit_got_section_1.s3
4 files changed, 16 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index d325c81..c42042c 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2016-03-07 Jiong Wang <jiong.wang@arm.com>
+
+ * testsuite/ld-aarch64/implicit_got_section_1.s: New test source file.
+ * testsuite/ld-aarch64/implicit_got_section_1.d: New test expected
+ result.
+ * testsuite/ld-aarch64/aarch64-elf.exp: Run new test.
+
2016-03-06 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-i386/i386.exp: Link tmpdir/copyreloc-main.o
diff --git a/ld/testsuite/ld-aarch64/aarch64-elf.exp b/ld/testsuite/ld-aarch64/aarch64-elf.exp
index 37ce48c..b9c4133 100644
--- a/ld/testsuite/ld-aarch64/aarch64-elf.exp
+++ b/ld/testsuite/ld-aarch64/aarch64-elf.exp
@@ -229,6 +229,7 @@ run_dump_test "gc-tls-relocs"
run_dump_test "gc-plt-relocs"
run_dump_test "gc-relocs-257-dyn"
run_dump_test "gc-relocs-257"
+run_dump_test "implicit_got_section_1"
run_dump_test "pr17415"
run_dump_test "tprel_g2_overflow"
run_dump_test "tprel_add_lo12_overflow"
diff --git a/ld/testsuite/ld-aarch64/implicit_got_section_1.d b/ld/testsuite/ld-aarch64/implicit_got_section_1.d
new file mode 100644
index 0000000..1ad24fe
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/implicit_got_section_1.d
@@ -0,0 +1,5 @@
+#source: implicit_got_section_1.s
+#ld: -e0
+#readelf: -r
+
+There are no relocations in this file.
diff --git a/ld/testsuite/ld-aarch64/implicit_got_section_1.s b/ld/testsuite/ld-aarch64/implicit_got_section_1.s
new file mode 100644
index 0000000..8d80748
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/implicit_got_section_1.s
@@ -0,0 +1,3 @@
+ .text
+test:
+ .word _GLOBAL_OFFSET_TABLE_ - .