mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
b80e421f91
PowerPC64 has its own gc_mark_dynamic_ref. bfd/ PR 27451 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized linker defined start/stop symbols when start_stop_gc. ld/ * testsuite/ld-powerpc/startstop.d, * testsuite/ld-powerpc/startstop.r, * testsuite/ld-powerpc/startstop.s: New test. * testsuite/ld-powerpc/powerpc.exp: Run it.
17 lines
225 B
ArmAsm
17 lines
225 B
ArmAsm
.weak __start_xx
|
|
.weak __stop_xx
|
|
|
|
.global _start
|
|
_start:
|
|
pld 3,__start_xx@got@pcrel
|
|
pld 4,__stop_xx@got@pcrel
|
|
|
|
.section xx,"a",unique,0
|
|
.byte 0
|
|
|
|
.section xx,"a",unique,1
|
|
.byte 1
|
|
|
|
.section xx,"a",unique,2
|
|
.byte 2
|