de7f8cc8e0
* ldlang.c (IGNORE_SECTION): Remove check for zero size. (lang_check_section_addresses): Ignore zero size sections here. ld/testsuite/ChangeLog: * ld-scripts/empty-orphan.d, ld-scripts/empty-orphan.exp, ld-scripts/empty-orphan.s, ld-scripts/emtpy-orphan.t: New test.
21 lines
422 B
Raku
21 lines
422 B
Raku
MEMORY
|
|
{
|
|
default_mem : ORIGIN = 0x0, LENGTH = 0x100000
|
|
text_mem : ORIGIN = 0x60000000, LENGTH = 0x100
|
|
data_mem : ORIGIN = 0x70000000, LENGTH = 0x100
|
|
}
|
|
|
|
PHDRS
|
|
{
|
|
default_phdr PT_LOAD;
|
|
text_phdr PT_LOAD;
|
|
data_phdr PT_LOAD;
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
.text : { *(.text) } > text_mem : text_phdr
|
|
.data : { *(.data) } > data_mem : data_phdr
|
|
.bss : { *(.bss) } > data_mem : data_phdr
|
|
/* .orphan_data is an orphan */
|
|
}
|