mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
db99ecc08f
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.
8 lines
84 B
Raku
8 lines
84 B
Raku
OUTPUT_FORMAT("binary")
|
|
|
|
ENTRY(_main);
|
|
SECTIONS {
|
|
. = 0;
|
|
.setup : { *(.setup) }
|
|
}
|