diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-02-03 08:24:50 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-02-03 08:24:50 -0800 |
commit | 9910b1c8f3b0821944303fbcb4ef4c8872cf4e08 (patch) | |
tree | ebd751ddd844c201eb701b3b71852bc2a36135f5 /ld/testsuite | |
parent | 2d3ea0d5ba74fee0320766c4ceaa6d8f43a37a74 (diff) | |
download | gdb-9910b1c8f3b0821944303fbcb4ef4c8872cf4e08.zip gdb-9910b1c8f3b0821944303fbcb4ef4c8872cf4e08.tar.gz gdb-9910b1c8f3b0821944303fbcb4ef4c8872cf4e08.tar.bz2 |
Add a testcase for PR ld/14918
PR ld/14918
* ld-plugin/lto.exp (lto_link_elf_tests): Add PR ld/14918 test.
* ld-plugin/pr14918.c: New file.
* ld-plugin/pr14918.d: Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-plugin/lto.exp | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-plugin/pr14918.c | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-plugin/pr14918.d | 4 |
4 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 7bc1ea6..8351d6f 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2015-02-03 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/14918 + * ld-plugin/lto.exp (lto_link_elf_tests): Add PR ld/14918 test. + + * ld-plugin/pr14918.c: New file. + * ld-plugin/pr14918.d: Likewise. + 2015-01-29 H.J. Lu <hongjiu.lu@intel.com> * lib/ld-lib.exp (ar_simple_create): Move -rc before $aropts. diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp index d8e7a1e..f0643cc 100644 --- a/ld/testsuite/ld-plugin/lto.exp +++ b/ld/testsuite/ld-plugin/lto.exp @@ -247,6 +247,9 @@ set lto_link_elf_tests [list \ [list "PR ld/16746 (2)" \ "-O2 -flto -fuse-linker-plugin tmpdir/pr16746c.o tmpdir/pr16746a.o" "-O2 -flto" \ {dummy.c} {} "pr16746b.exe"] \ + [list "PR ld/14918" \ + "-flto" "-flto" \ + {pr14918.c} {{"readelf" {-d --wide} "pr14918.d"}} "pr14918.exe" "c"] \ ] # Check final symbols in executables. diff --git a/ld/testsuite/ld-plugin/pr14918.c b/ld/testsuite/ld-plugin/pr14918.c new file mode 100644 index 0000000..a9bce4a --- /dev/null +++ b/ld/testsuite/ld-plugin/pr14918.c @@ -0,0 +1,5 @@ +int +main () +{ + return 0; +} diff --git a/ld/testsuite/ld-plugin/pr14918.d b/ld/testsuite/ld-plugin/pr14918.d new file mode 100644 index 0000000..0b14948 --- /dev/null +++ b/ld/testsuite/ld-plugin/pr14918.d @@ -0,0 +1,4 @@ +#failif +#... + 0x0+1 \(NEEDED\) +Shared library: \[libgcc_s.so.[0-9]+\] +#... |