From: H.J. Lu Date: Tue, 3 Feb 2015 16:24:50 +0000 (-0800) Subject: Add a testcase for PR ld/14918 X-Git-Tag: gdb-7.10-release~1751 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9910b1c8f3b0821944303fbcb4ef4c8872cf4e08;p=platform%2Fupstream%2Fbinutils.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 7bc1ea6..8351d6f 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 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]+\] +#...