summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/tcc77x/boot.lds
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tcc77x/boot.lds')
-rw-r--r--firmware/target/arm/tcc77x/boot.lds5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/tcc77x/boot.lds b/firmware/target/arm/tcc77x/boot.lds
index 890c4ec785..2fd6964d57 100644
--- a/firmware/target/arm/tcc77x/boot.lds
+++ b/firmware/target/arm/tcc77x/boot.lds
@@ -14,7 +14,11 @@ STARTUP(target/arm/tcc77x/crt0.o)
MEMORY
{
+#ifdef TCCBOOT
DRAM : ORIGIN = DRAMORIG + DRAMSIZE - 0x100000, LENGTH = 0x100000
+#else
+ DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
+#endif
IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
}
@@ -34,6 +38,7 @@ SECTIONS
*(.idata)
*(.data*)
*(.rodata.*)
+ *(.rodata)
. = ALIGN(0x4);
_dataend = . ;
} > DRAM