mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 12:57:13 -04:00
[simple-system] Add missing linker sections
Adding the "small" sections to the example linker script. This ensures that all sections of memory needing to be zeroed are captured. Fixes #1092 Signed-off-by: Tom Roberts <tomroberts@lowrisc.org>
This commit is contained in:
parent
f9f0cb1133
commit
2cb1efb953
1 changed files with 9 additions and 0 deletions
|
@ -47,12 +47,18 @@ SECTIONS
|
|||
|
||||
.rodata : {
|
||||
. = ALIGN(4);
|
||||
/* Small RO data before large RO data */
|
||||
*(.srodata)
|
||||
*(.srodata.*)
|
||||
*(.rodata);
|
||||
*(.rodata.*)
|
||||
} > ram
|
||||
|
||||
.data : {
|
||||
. = ALIGN(4);
|
||||
/* Small data before large data */
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.data);
|
||||
*(.data.*)
|
||||
} > ram
|
||||
|
@ -61,6 +67,9 @@ SECTIONS
|
|||
{
|
||||
. = ALIGN(4);
|
||||
_bss_start = .;
|
||||
/* Small BSS before large BSS */
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(COMMON)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue