mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-26 18:53:29 +08:00
b5f14a6dff
match an existing output section, but an unused output section statement does match, use it. * emultempl/pe.em (_place_orphan): Likewise. * emultempl/pep.em (_place_orphan): Likewise. * ld-elf/orphan4.d: New. * ld-elf/orphan4.ld: New. * ld-elf/orphan4.s: New.
14 lines
363 B
Plaintext
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);
|
|
}
|
|
}
|