Link tmpdir/copyreloc-main.o before tmpdir/copyreloc-lib.so
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 6 Mar 2016 16:26:49 +0000 (08:26 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 6 Mar 2016 16:26:49 +0000 (08:26 -0800)
commit46175b4e04a91480b85420d9253adfa6c5ff5894
tree077fed6b6709648cd79576876f4b4f0128148b47
parentfb6a751f5f1fe7912e84dd90d06395c357da47c2
Link tmpdir/copyreloc-main.o before tmpdir/copyreloc-lib.so

Since compiler may pass --as-needed to ld by default, link
tmpdir/copyreloc-main.o before tmpdir/copyreloc-lib.so.

* testsuite/ld-i386/i386.exp: Link tmpdir/copyreloc-main.o
before tmpdir/copyreloc-lib.so and test --as-needed.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
ld/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-x86-64/x86-64.exp