Support --as-needed in ifunc tests
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 8 Mar 2016 16:43:12 +0000 (08:43 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 8 Mar 2016 16:45:04 +0000 (08:45 -0800)
commit205ac185771460838370afb3a38d20228927b925
treeff9e458c0ab3a915b253c7aad96f358a1502fe3d
parent202ac193bbbecc96a4978d1ac3d17148253f9b01
Support --as-needed in ifunc tests

Since compiler may pass --as-needed to ld by default, link .o file
before .so file in ifunc tests.

PR ld/19774
* testsuite/ld-ifunc/ifunc.exp: Link tmpdir/pr18808a.o before
tmpdir/libpr18808.so.  Link tmpdir/pr18841a.o before
tmpdir/libpr18841b.so and tmpdir/libpr18841c.so.  Test
--as-needed for pr18841c.
ld/ChangeLog
ld/testsuite/ld-ifunc/ifunc.exp