
When placing an orphan input section, check ELF section header only for ELF output. PR ld/21884 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Check ELF section header only for ELF output. * testsuite/ld-elf/pr21884.d: New test. * testsuite/ld-elf/pr21884.t: Likewise. * testsuite/ld-elf/pr21884a.s: Likewise. * testsuite/ld-elf/pr21884b.s: Likewise.
5 lines
62 B
ArmAsm
5 lines
62 B
ArmAsm
.text
|
|
.globl _main
|
|
.type _main,%function
|
|
_main:
|
|
.dc.a bar
|