mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
4d1c633545
When there are more than one input sections with the same section name, SECNAME, linker picks the first one to define __start_SECNAME and __stop_SECNAME symbols. When the first input section is removed by comdat group, we need to check if there is still an output section with section name SECNAME. PR ld/23591 * ldlang.c (undef_start_stop): Lookup section in output with the same name. * testsuite/ld-elf/pr23591.d: New file. * testsuite/ld-elf/pr23591a.s: Likewise. * testsuite/ld-elf/pr23591b.s: Likewise. * testsuite/ld-elf/pr23591c.s: Likewise.
15 lines
243 B
ArmAsm
15 lines
243 B
ArmAsm
.ifdef UNDERSCORE
|
|
.hidden ___start___sancov_cntrs
|
|
.else
|
|
.hidden __start___sancov_cntrs
|
|
.endif
|
|
.text
|
|
.globl _start
|
|
.type _start, %function
|
|
_start:
|
|
.ifdef UNDERSCORE
|
|
.dc.a ___start___sancov_cntrs
|
|
.else
|
|
.dc.a __start___sancov_cntrs
|
|
.endif
|