Skip to content

Commit

Permalink
Modify loaderscript to increase the size of bss region (#94)
Browse files Browse the repository at this point in the history
* Modify loaderscript to to increase the size of bss region

* Update host.ld
  • Loading branch information
IveanEx authored Dec 2, 2024
1 parent eabe6f9 commit 4d4151d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions target/sim/sw/host/runtime/host.ld
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ ENTRY(_start)

MEMORY
{
DRAM (rwxa) : ORIGIN = 0x80000000, LENGTH = 0x80000000
/* DRAM (rwxa) : ORIGIN = 0x80000000, LENGTH = 0x80000000 */
DRAM (rwxa) : ORIGIN = 0x80000000, LENGTH = 0x100000
}

SECTIONS
Expand All @@ -15,11 +16,11 @@ SECTIONS
.appl :
{
/*TODO colluca: place stack at end of DRAM*/
__stack_pointer$ = . + 0x70000;
__stack_pointer$ = ORIGIN(DRAM) + LENGTH(DRAM) - 8;
*(.text.startup)
*(.text .text.*)
__SDATA_BEGIN__ = .;
__global_pointer$ = . + 0x7f0;
__global_pointer$ = . + 0x800;
*(.sdata)
*(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2) *(.srodata .srodata.*)
*(.sdata .sdata.* .gnu.linkonce.s.*)
Expand Down

0 comments on commit 4d4151d

Please sign in to comment.