mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
152d792f47
* ldlang.h (enum section_type): Add overlay_section. * ldlang.c (lang_add_section): Handle flags for overlay_section as per normal_section. (lang_size_sections_1): When setting lma, detect overlays by os->sectype rather than by looking for overlapping vmas. (lang_enter_overlay_section): Use overlay_section type. (lang_leave_overlay): Set first overlay section to normal. ld/testsuite/ * ld-spu/ovl.lnk: Use OVERLAY keyword.
15 lines
199 B
Plaintext
15 lines
199 B
Plaintext
SECTIONS
|
|
{
|
|
. = SIZEOF_HEADERS;
|
|
.text : { *(.text) *(.stub) }
|
|
|
|
OVERLAY 0x400 :
|
|
{
|
|
.ov_a1 { *(.ov_a1) }
|
|
.ov_a2 { *(.ov_a2) }
|
|
}
|
|
|
|
.data : { *(.data) *(.ovtab) }
|
|
.bss : { *(.bss) }
|
|
}
|