aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorjamesbowman <jamesb@excamera.com>2015-09-09 09:44:44 -0700
committerjamesbowman <jamesb@excamera.com>2015-09-09 09:44:44 -0700
commitea4a7f9986ed4614d8ffb85ccd4fa4bb49b6d420 (patch)
tree6873535ad7a1b51f7d38d848b597bcf796546ae9 /ld/scripttempl
parent7bdf96efeede567ac4b8cd3fdaa665c0e5ba4785 (diff)
downloadgdb-ea4a7f9986ed4614d8ffb85ccd4fa4bb49b6d420.zip
gdb-ea4a7f9986ed4614d8ffb85ccd4fa4bb49b6d420.tar.gz
gdb-ea4a7f9986ed4614d8ffb85ccd4fa4bb49b6d420.tar.bz2
FT32 linker script now parameterized for flash and RAM size.
2015-09-09 James Bowman <james.bowman@ftdichip.com> ld/ * scripttempl/ft32.sc: default linker script RAM and FLASH size symbols
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/ft32.sc7
1 files changed, 5 insertions, 2 deletions
diff --git a/ld/scripttempl/ft32.sc b/ld/scripttempl/ft32.sc
index 8ceee44..5f5df22 100644
--- a/ld/scripttempl/ft32.sc
+++ b/ld/scripttempl/ft32.sc
@@ -14,10 +14,13 @@ OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
${LIB_SEARCH_DIRS}
+PROVIDE( __PMSIZE = 256K );
+PROVIDE( __RAMSIZE = 64K );
+
MEMORY
{
- flash (rx) : ORIGIN = 0, LENGTH = 256K
- ram (rw!x) : ORIGIN = 0x800000, LENGTH = 64K
+ flash (rx) : ORIGIN = 0, LENGTH = __PMSIZE
+ ram (rw!x) : ORIGIN = 0x800000, LENGTH = __RAMSIZE
}
SECTIONS
{