]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/testsuite/ld-elf/shared.exp
Add a compile-time test for PR ld/22269
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 20 Oct 2017 16:47:08 +0000 (09:47 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 20 Oct 2017 16:47:08 +0000 (09:47 -0700)
commitf3012016f008030b48597b578a5fb1e550907374
treea4c943958b95e2b92a3d740391c5cb082cf0b9fd
parentd5833c62d93e8176b70e8509ab36cc38801c3ebd
Add a compile-time test for PR ld/22269

This compile-time test requires a target C compiler to run.  It fails
on many targets where ELF backend linkers fail to check undefined weak
symbol in static PIE via UNDEFWEAK_NO_DYNAMIC_RELOC.

PR ld/22269
* testsuite/ld-elf/pr22269-1.rd: New file.
* testsuite/ld-elf/pr22269-1.c: Likewise.
* testsuite/ld-elf/shared.exp: Run pr22269-1.
ld/ChangeLog
ld/testsuite/ld-elf/pr22269-1.c [new file with mode: 0644]
ld/testsuite/ld-elf/pr22269-1.rd [new file with mode: 0644]
ld/testsuite/ld-elf/shared.exp