mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
36b8fda5d6
bfd/ * elflink.c (bfd_elf_define_start_stop): Make __start and __stop symbols dynamic. ld/ * testsuite/ld-elf/pr21964-3a.c: New file. * testsuite/ld-elf/pr21964-3c.c: New file. * testsuite/ld-elf/shared.exp: Run new __start/__stop testcase.
12 lines
199 B
C
12 lines
199 B
C
extern int __start___verbose[];
|
|
extern int __stop___verbose[];
|
|
int
|
|
foo3 (void)
|
|
{
|
|
if (__start___verbose == __stop___verbose
|
|
|| __start___verbose[0] != 6)
|
|
return -1;
|
|
else
|
|
return 0;
|
|
}
|