Skip to content

Commit 1e6c006

Browse files
committed
rsp.ld: allows for multiple overlay of BSS
This allows different commands in an overlay to use the BSS memory with different layouts.
1 parent 111028e commit 1e6c006

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

Diff for: rsp.ld

+17-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,23 @@ SECTIONS
4242

4343
. = ALIGN(8);
4444

45-
.bss : {
46-
KEEP(*(.bss))
47-
*(.bss.*)
45+
OVERLAY : {
46+
.bss {
47+
KEEP(*(.bss))
48+
*(.bss.*)
49+
}
50+
.bssovl1 {
51+
KEEP(*(.bssovl1))
52+
*(.bssovl1.*)
53+
}
54+
.bssovl2 {
55+
KEEP(*(.bssovl2))
56+
*(.bssovl2.*)
57+
}
58+
.bssovl3 {
59+
KEEP(*(.bssovl3))
60+
*(.bssovl3.*)
61+
}
4862
} > ram_data AT > rom_dmem
4963

5064
/DISCARD/ : { *(.MIPS.abiflags) }

0 commit comments

Comments
 (0)