mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-24 09:43:36 +08:00
8dfb7cbf84
* testsuite/ld-elf/pr21964-1a.c (foo): Renamed to ... (foo1): This. * testsuite/ld-elf/pr21964-1b.c: Rewrite. * testsuite/ld-elf/pr21964-1c.c: New file. * testsuite/ld-elf/pr21964-2c.c: Likewise. * testsuite/ld-elf/pr21964-2a.c (foo): Renamed to ... (foo1): This. * testsuite/ld-elf/pr21964-2b.c: Rewrite. * testsuite/ld-elf/shared.exp: Update PR ld/21964 tests.
13 lines
268 B
C
13 lines
268 B
C
extern int __start___verbose[];
|
|
extern int __stop___verbose[];
|
|
int
|
|
foo1 (void)
|
|
{
|
|
static int my_var __attribute__((used, section("__verbose"))) = 5;
|
|
if (__start___verbose == __stop___verbose
|
|
&& __start___verbose[0] != 5)
|
|
return -1;
|
|
else
|
|
return 0;
|
|
}
|