mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
74ffa56673
This compile-time test requires a target C compiler to run. It fails on many targets where ELF backend linkers incorrectly check bfd_link_pic for TLS relocations, which should check bfd_link_executable instead. PR ld/22263 * testsuite/ld-elf/pr22263-1.rd: New file. * testsuite/ld-elf/pr22263-1a.c: Likewise. * testsuite/ld-elf/pr22263-1b.c: Likewise. * testsuite/ld-elf/tls.exp: Likewise.
13 lines
110 B
C
13 lines
110 B
C
extern __thread int *foo;
|
|
|
|
static int x;
|
|
|
|
extern void bar (void);
|
|
|
|
int
|
|
_start ()
|
|
{
|
|
foo = &x;
|
|
return 0;
|
|
}
|