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
--- /dev/null
+#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
--- /dev/null
+ .globl foo
+foo:
+ mov bar(%rip), %rax
--- /dev/null
+ .globl _start
+_start:
+ ret