Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-elf/orphan4.ld
2023-03-06 14:48:14 +01:00

14 lines
363 B
Plaintext

/* The .foo section doesn't specify *any* objects, but the object
we're linking has sections named ".foo". Make sure these sections
are linked into the .foo output section anyway. The bug that was
fixed was that a new .foo output section would be created at
address 0. */
SECTIONS {
.foo 0x00001000 : {
}
.text 0x00002000 : {
*(.text);
}
}