From: nobody <> Date: Tue, 10 Jan 2012 20:18:19 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'binutils- X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0de60ecd78534fe58029fe021e802e55b3fff6fd;p=thirdparty%2Fbinutils-gdb.git This commit was manufactured by cvs2svn to create branch 'binutils- 2_22-branch'. Cherrypick from master 2012-01-10 20:18:18 UTC H.J. Lu '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 --- diff --git a/ld/testsuite/ld-x86-64/ilp32-10.d b/ld/testsuite/ld-x86-64/ilp32-10.d new file mode 100644 index 00000000000..43d9fbd4297 --- /dev/null +++ b/ld/testsuite/ld-x86-64/ilp32-10.d @@ -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 index 00000000000..70e4a908865 --- /dev/null +++ b/ld/testsuite/ld-x86-64/ilp32-10.s @@ -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 index 00000000000..5f270c74164 --- /dev/null +++ b/ld/testsuite/ld-x86-64/ilp32-4.s @@ -0,0 +1,3 @@ + .globl _start +_start: + ret