aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr20093-1.d
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-05-13 10:59:32 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-05-13 11:07:02 -0700
commit2168b2688ae343a61c467450068503295a5e3deb (patch)
tree5ea6df0bc1d59129657f33172000d30e91cad252 /ld/testsuite/ld-x86-64/pr20093-1.d
parentd2edc834f769d9d05756c66f01c3bf05349a7fb7 (diff)
downloadgdb-2168b2688ae343a61c467450068503295a5e3deb.zip
gdb-2168b2688ae343a61c467450068503295a5e3deb.tar.gz
gdb-2168b2688ae343a61c467450068503295a5e3deb.tar.bz2
Don't convert GOTPCREL relocation against large section
bfd/ PR ld/20093 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Don't convert GOTPCREL relocation against large section. ld/ PR ld/20093 * testsuite/ld-x86-64/pr20093-1.d: New file. * testsuite/ld-x86-64/pr20093-1.s: Likewise. * testsuite/ld-x86-64/pr20093-2.d: Likewise. * testsuite/ld-x86-64/pr20093-2.s: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run pr20093-1 and pr20093-2.
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr20093-1.d')
-rw-r--r--ld/testsuite/ld-x86-64/pr20093-1.d11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr20093-1.d b/ld/testsuite/ld-x86-64/pr20093-1.d
new file mode 100644
index 0000000..de81443
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr20093-1.d
@@ -0,0 +1,11 @@
+#as: --64
+#ld: -pie -melf_x86_64
+#objdump: -dw
+
+.*: +file format .*
+
+
+Disassembly of section .text:
+
+[a-f0-9]+ <_start>:
+[ ]*[a-f0-9]+: 48 8b 05 ([0-9a-f]{2} ){4} * mov 0x[a-f0-9]+\(%rip\),%rax # [a-f0-9]+ <_DYNAMIC\+0x[a-f0-9]+>