]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Support --as-needed in i386/x86-64 tests
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 7 Mar 2016 17:03:24 +0000 (09:03 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 12 Jun 2016 04:40:12 +0000 (21:40 -0700)
commit5975f54c03809c5c26ab2b1dfbdd20b47e4e09b4
treeed6c3019749356379380dca6f5031c5eeae4f564
parentb7a91f9041ab2e528a81bca0baa6bbbde5961fe6
Support --as-needed in i386/x86-64 tests

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

PR ld/19774
* testsuite/ld-i386/i386.exp: Link tmpdir/pr18900.o before
tmpdir/pr18900.so and test --as-needed.  Link tmpdir/gotpc1.o
before tmpdir/got1d.so and test --as-needed.
* testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr18900.o before
tmpdir/pr18900.so and test --as-needed.
ld/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-x86-64/x86-64.exp