diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-04-20 11:13:38 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-04-20 11:13:56 -0700 |
commit | 03f2309aa27e955b75634fc066b5d15d67e05321 (patch) | |
tree | 6dc7de1054bdfdecd3271dab2306e53c60b25a39 /ld | |
parent | 126697d1e4cb6e5936ecb62dafe57880717473ab (diff) | |
download | gdb-03f2309aa27e955b75634fc066b5d15d67e05321.zip gdb-03f2309aa27e955b75634fc066b5d15d67e05321.tar.gz gdb-03f2309aa27e955b75634fc066b5d15d67e05321.tar.bz2 |
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pic1.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pic1.s | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/x86-64.exp | 1 |
4 files changed, 12 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 0ce4e2d..74be8d4 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,11 @@ 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. * testsuite/ld-x86-64/pie2.s: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run pie2. diff --git a/ld/testsuite/ld-x86-64/pic1.d b/ld/testsuite/ld-x86-64/pic1.d new file mode 100644 index 0000000..9e4b957 --- /dev/null +++ b/ld/testsuite/ld-x86-64/pic1.d @@ -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 diff --git a/ld/testsuite/ld-x86-64/pic1.s b/ld/testsuite/ld-x86-64/pic1.s new file mode 100644 index 0000000..0adb503 --- /dev/null +++ b/ld/testsuite/ld-x86-64/pic1.s @@ -0,0 +1,2 @@ + .data + .long foo diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index b923fba..b48f3c7 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -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" |