x86: Run PR ld/19636 tests with -z dynamic-undefined-weak
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 11 Oct 2017 20:32:20 +0000 (13:32 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 11 Oct 2017 20:36:19 +0000 (13:36 -0700)
commit853ee16fcdf7e60f297b3456353b3a69f4822bec
treee70ed9c5e9c5455d1837c9891bdd8720db4cf386
parent4f9d99066edcefab0e5868d20cb9ddaa7b76da52
x86: Run PR ld/19636 tests with -z dynamic-undefined-weak

"-z dynamic-undefined-weak" makes undefined weak symbols dynamic, but
undefined weak symbols are still resolved to 0 at link-time if there
is no dynamic linker in executable.

* testsuite/ld-i386/i386.exp: Run pr19636-1j, pr19636-1k,
pr19636-1l, pr19636-3h and pr19636-3i.
* testsuite/ld-i386/pr19636-1j.d: New file.
* testsuite/ld-i386/pr19636-1k.d: Likewise.
* testsuite/ld-i386/pr19636-1l.d: Likewise.
* testsuite/ld-i386/pr19636-3h.d: Likewise.
* testsuite/ld-i386/pr19636-3i.d: Likewise.
* testsuite/ld-x86-64/pr19636-1h.d: Likewise.
* testsuite/ld-x86-64/pr19636-1i.d: Likewise.
* testsuite/ld-x86-64/pr19636-1j.d: Likewise.
* testsuite/ld-x86-64/pr19636-2j.d: Likewise.
* testsuite/ld-x86-64/pr19636-2k.d: Likewise.
* testsuite/ld-x86-64/pr19636-2l.d: Likewise.
* testsuite/ld-x86-64/pr19636-2m.d: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run pr19636-1h, pr19636-1i,
pr19636-1j, pr19636-2j, pr19636-2k, pr19636-2l and pr19636-2m.
15 files changed:
ld/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr19636-1j.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr19636-1k.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr19636-1l.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr19636-3h.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr19636-3i.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr19636-1h.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr19636-1i.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr19636-1j.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr19636-2j.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr19636-2k.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr19636-2l.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr19636-2m.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp