Add ld-x86-64/pic1 test

* testsuite/ld-x86-64/pic1.d: New file.
	* testsuite/ld-x86-64/pic1.s: Likewise.
	* testsuite/ld-x86-64/x86-64.exp: Run pic1.
This commit is contained in:
H.J. Lu 2016-04-20 11:13:38 -07:00
parent 126697d1e4
commit 03f2309aa2
4 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-x86-64/pic1.d: New file.
* testsuite/ld-x86-64/pic1.s: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run pic1.
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-x86-64/pie2.d: New file.

View File

@ -0,0 +1,3 @@
#as: --64
#ld: -shared -melf_x86_64
#error: .*relocation R_X86_64_32 against undefined symbol `foo' can not be used when making a shared object; recompile with -fPIC

View File

@ -0,0 +1,2 @@
.data
.long foo

View File

@ -250,6 +250,7 @@ run_dump_test "pr14207"
run_dump_test "gotplt1"
run_dump_test "pie1"
run_dump_test "pie2"
run_dump_test "pic1"
run_dump_test "largecomm-1a"
run_dump_test "largecomm-1b"
run_dump_test "largecomm-1c"