Add ld-x86-64/pie2 test
* testsuite/ld-x86-64/pie2.d: New file. * testsuite/ld-x86-64/pie2.s: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run pie2.
This commit is contained in:
parent
338c190a92
commit
126697d1e4
4 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* testsuite/ld-x86-64/pie2.d: New file.
|
||||
* testsuite/ld-x86-64/pie2.s: Likewise.
|
||||
* testsuite/ld-x86-64/x86-64.exp: Run pie2.
|
||||
|
||||
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/19969
|
||||
|
|
3
ld/testsuite/ld-x86-64/pie2.d
Normal file
3
ld/testsuite/ld-x86-64/pie2.d
Normal file
|
@ -0,0 +1,3 @@
|
|||
#as: --64
|
||||
#ld: -pie -melf_x86_64
|
||||
#error: .*relocation R_X86_64_32 against symbol `foo' can not be used when making a shared object; recompile with -fPIC
|
8
ld/testsuite/ld-x86-64/pie2.s
Normal file
8
ld/testsuite/ld-x86-64/pie2.s
Normal file
|
@ -0,0 +1,8 @@
|
|||
.text
|
||||
.global _start
|
||||
_start:
|
||||
.long foo
|
||||
.data
|
||||
.globl foo
|
||||
foo:
|
||||
.byte 0
|
|
@ -249,6 +249,7 @@ run_dump_test "pr14215"
|
|||
run_dump_test "pr14207"
|
||||
run_dump_test "gotplt1"
|
||||
run_dump_test "pie1"
|
||||
run_dump_test "pie2"
|
||||
run_dump_test "largecomm-1a"
|
||||
run_dump_test "largecomm-1b"
|
||||
run_dump_test "largecomm-1c"
|
||||
|
|
Loading…
Reference in a new issue