]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
This commit was manufactured by cvs2svn to create branch 'binutils-
authornobody <>
Tue, 10 Jan 2012 20:18:19 +0000 (20:18 +0000)
committernobody <>
Tue, 10 Jan 2012 20:18:19 +0000 (20:18 +0000)
2_22-branch'.

Cherrypick from master 2012-01-10 20:18:18 UTC H.J. Lu <hjl.tools@gmail.com> 'Remove ABI_64_P check on R_X86_64_PCXX':
    ld/testsuite/ld-x86-64/ilp32-10.d
    ld/testsuite/ld-x86-64/ilp32-10.s
    ld/testsuite/ld-x86-64/ilp32-4.s

ld/testsuite/ld-x86-64/ilp32-10.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/ilp32-10.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/ilp32-4.s [new file with mode: 0644]

diff --git a/ld/testsuite/ld-x86-64/ilp32-10.d b/ld/testsuite/ld-x86-64/ilp32-10.d
new file mode 100644 (file)
index 0000000..43d9fbd
--- /dev/null
@@ -0,0 +1,3 @@
+#as: --x32
+#ld: -shared -melf32_x86_64
+#error: .*relocation R_X86_64_PC32 against undefined symbol `bar' can not be used when making a shared object; recompile with -fPIC
diff --git a/ld/testsuite/ld-x86-64/ilp32-10.s b/ld/testsuite/ld-x86-64/ilp32-10.s
new file mode 100644 (file)
index 0000000..70e4a90
--- /dev/null
@@ -0,0 +1,3 @@
+       .globl foo
+foo:
+       mov bar(%rip), %rax
diff --git a/ld/testsuite/ld-x86-64/ilp32-4.s b/ld/testsuite/ld-x86-64/ilp32-4.s
new file mode 100644 (file)
index 0000000..5f270c7
--- /dev/null
@@ -0,0 +1,3 @@
+       .globl _start
+_start:
+       ret