mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
5590fba953
statement has an update_dot_tree expression, apply it to print_dot. (print_input_section): Do not update print_dot if it would move print_dot backwards. (lang_do_assignments_1): If the output section statement has an update_dot_tree expression apply it to dot. * ld-scripts/overlay-size.t (end_of_bss_overlays): Define. (end_of_text_overlays): Define. (end_of_data_overlays): Define. * ld-scripts/overlay-size-map.d: Add expected values for end_of_bss_overlays, end_of_text_overlays and end_of_data_overlays.
65 lines
1.2 KiB
Raku
65 lines
1.2 KiB
Raku
MEMORY
|
|
{
|
|
TEXTMEM (ARX) : ORIGIN = 0x10000, LENGTH = 32K
|
|
DATAMEM (AW) : ORIGIN = 0x20000, LENGTH = 32K
|
|
LOADMEM (AW) : ORIGIN = 0x30000, LENGTH = 32K
|
|
}
|
|
|
|
/* Map should be:
|
|
|
|
SIZE VMA LMA
|
|
.bss1 10 20000 20000
|
|
.bss2 30 20000 20010
|
|
.bss3 20 20000 20040
|
|
.mbss 230 20030 20060
|
|
|
|
.mtext 20 10000 30000
|
|
.text1 80 10020 30020
|
|
.text2 40 10020 300a0
|
|
.text3 20 10020 300e0
|
|
|
|
.data1 30 20260 30100
|
|
.data2 40 20260 30130
|
|
.data3 50 20260 30170 */
|
|
|
|
SECTIONS
|
|
{
|
|
OVERLAY :
|
|
{
|
|
.bss1 { *(.bss1) }
|
|
.bss2 { *(.bss2) }
|
|
.bss3 { *(.bss3) }
|
|
} > DATAMEM
|
|
|
|
end_of_bss_overlays = . ;
|
|
|
|
.mtext : { *(.mtext) } > TEXTMEM AT > LOADMEM
|
|
|
|
.mbss : AT (__load_stop_bss3)
|
|
{
|
|
*(.mbss)
|
|
. += 0x200;
|
|
} > DATAMEM
|
|
|
|
OVERLAY :
|
|
{
|
|
.text1 { *(.text1) }
|
|
.text2 { *(.text2) }
|
|
.text3 { *(.text3) }
|
|
} > TEXTMEM AT > LOADMEM
|
|
|
|
end_of_text_overlays = . ;
|
|
|
|
OVERLAY :
|
|
{
|
|
.data1 { *(.data1) }
|
|
.data2 { *(.data2) }
|
|
.data3 { *(.data3) }
|
|
} > DATAMEM AT > LOADMEM
|
|
|
|
end_of_data_overlays = . ;
|
|
|
|
. = 0x8000;
|
|
/DISCARD/ : { *(.reginfo) }
|
|
}
|