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.
This commit is contained in:
H.J. Lu 2015-02-03 08:24:50 -08:00
parent 2d3ea0d5ba
commit 9910b1c8f3
4 changed files with 20 additions and 0 deletions

View File

@ -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.

View File

@ -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.

View File

@ -0,0 +1,5 @@
int
main ()
{
return 0;
}

View File

@ -0,0 +1,4 @@
#failif
#...
0x0+1 \(NEEDED\) +Shared library: \[libgcc_s.so.[0-9]+\]
#...