mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
8877b5e517
* elflink.c (_bfd_elf_make_dynamic_reloc_section): Override sh_type according to is_rela. ld/testsuite/ * ld-elf/rel.c, ld-elf/relmain.c, ld-elf/relmain.out: New test. * ld-elf/shared.exp: Build and run it.
10 lines
201 B
C
10 lines
201 B
C
static int seven = 7;
|
|
static int *__attribute__((section("auto"))) auto_10 = &seven;
|
|
|
|
int
|
|
eight (void)
|
|
{
|
|
extern int *__start_auto[], *__stop_auto[];
|
|
return *auto_10 + __stop_auto - __start_auto;
|
|
}
|