summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-05 00:52:23 +0700
committerhathach <[email protected]>2024-04-05 00:52:23 +0700
commit34870d34818332657e79bc5c41775f48f2debf1f (patch)
tree563f4dc5c5ba52bf5b7dffd8cca663d0c6ba6a3e
parent594833374c812ccb8b7bac404b7bc7c0fbd56ccf (diff)
update linker for lpc18, move bss to ramloc40 to have more space for .data in ramloc32
-rw-r--r--hw/bsp/lpc18/boards/lpcxpresso18s37/lpc1837.ld4
-rw-r--r--hw/bsp/lpc18/boards/mcb1800/lpc1857.ld4
2 files changed, 4 insertions, 4 deletions
diff --git a/hw/bsp/lpc18/boards/lpcxpresso18s37/lpc1837.ld b/hw/bsp/lpc18/boards/lpcxpresso18s37/lpc1837.ld
index f12c1760c..f1a3add8f 100644
--- a/hw/bsp/lpc18/boards/lpcxpresso18s37/lpc1837.ld
+++ b/hw/bsp/lpc18/boards/lpcxpresso18s37/lpc1837.ld
@@ -296,7 +296,7 @@ SECTIONS
PROVIDE(__end_bss_RamAHB_ETB16 = .) ;
} > RamAHB_ETB16 AT> RamAHB_ETB16
- /* MAIN BSS SECTION */
+ /* MAIN BSS SECTION: EDIT change to RamLoc40 */
.bss : ALIGN(4)
{
_bss = .;
@@ -309,7 +309,7 @@ SECTIONS
PROVIDE(__end_bss_RAM = .) ;
PROVIDE(__end_bss_RamLoc32 = .) ;
PROVIDE(end = .);
- } > RamLoc32 AT> RamLoc32
+ } > RamLoc40 AT> RamLoc40 /* > RamLoc32 AT> RamLoc32 */
/* NOINIT section for RamLoc40 */
.noinit_RAM2 (NOLOAD) : ALIGN(4)
diff --git a/hw/bsp/lpc18/boards/mcb1800/lpc1857.ld b/hw/bsp/lpc18/boards/mcb1800/lpc1857.ld
index 9a67e8946..837dec364 100644
--- a/hw/bsp/lpc18/boards/mcb1800/lpc1857.ld
+++ b/hw/bsp/lpc18/boards/mcb1800/lpc1857.ld
@@ -247,7 +247,7 @@ SECTIONS
PROVIDE(__end_bss_RAM5 = .) ;
} > RamAHB_ETB16
- /* MAIN BSS SECTION */
+ /* MAIN BSS SECTION: EDIT change to RamLoc40 */
.bss : ALIGN(4)
{
_bss = .;
@@ -256,7 +256,7 @@ SECTIONS
. = ALIGN(4) ;
_ebss = .;
PROVIDE(end = .);
- } > RamLoc32
+ } > RamLoc40 /* RamLoc32 */
/* NOINIT section for RamLoc40 */
.noinit_RAM2 (NOLOAD) : ALIGN(4)