From: H.J. Lu Date: Tue, 3 Feb 2015 16:24:50 +0000 (-0800) Subject: Add a testcase for PR ld/14918 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9910b1c8f3b0821944303fbcb4ef4c8872cf4e08;p=binutils-gdb.git 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. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 7bc1ea6c52f..8351d6fbdb2 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2015-02-03 H.J. Lu + + 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 * 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 d8e7a1e7392..f0643cc5453 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 00000000000..a9bce4a1445 --- /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 00000000000..0b149481704 --- /dev/null +++ b/ld/testsuite/ld-plugin/pr14918.d @@ -0,0 +1,4 @@ +#failif +#... + 0x0+1 \(NEEDED\) +Shared library: \[libgcc_s.so.[0-9]+\] +#...