binutils-gdb/ld/testsuite/ld-elf/pr21964-3a.c
Alan Modra 36b8fda5d6 Make __start/__stop symbols dynamic and add testcase
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.
2018-01-30 10:09:07 +10:30

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;
}