This website requires JavaScript.
Explore
Help
Sign In
mirror
/
binutils-gdb
Watch
2
Star
0
Fork
0
You've already forked binutils-gdb
mirror of
https://sourceware.org/git/binutils-gdb.git
synced
2025-03-13 13:49:00 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
2c8e370829
binutils-gdb
/
ld
/
testsuite
/
ld-elf
/
pr22269-1.c
10 lines
100 B
C
Raw
Normal View
History
Unescape
Escape
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.
2017-10-21 00:47:08 +08:00
extern
int
foo
__attribute
(
(
weak
)
)
;
int
_start
(
void
)
{
if
(
&
foo
)
return
foo
;
Commit: Running the linker testsuite with clang * testsuite/config/default.exp: If not already set then create the CCC_OVERRIDE_OPTIONS environment variable to help when running the testsuite with clang. * testsuite/ld-elf/pr22269-1.c: Add a missing return statement. * testsuite/ld-elfvers/vers.exp: Add checks to detect if files were built before attempting to copy them.
2020-04-17 20:03:53 +08:00
return
0
;
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.
2017-10-21 00:47:08 +08:00
}
Reference in New Issue
Copy Permalink