binutils-gdb/ld/testsuite/ld-powerpc/startstop.s
Alan Modra b80e421f91 PR27451, -z start_stop_gc for powerpc64
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.
2021-03-02 21:49:56 +10:30

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