mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-18 14:53:32 +08:00
f3012016f0
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.
9 lines
88 B
C
9 lines
88 B
C
extern int foo __attribute ((weak));
|
|
|
|
int
|
|
_start (void)
|
|
{
|
|
if (&foo)
|
|
return foo;
|
|
}
|