This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] FT32 linker script now parameterized for flash and RAM size.
- From: James Bowman <jamesbowman at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 9 Sep 2015 16:47:45 -0000
- Subject: [binutils-gdb] FT32 linker script now parameterized for flash and RAM size.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ea4a7f9986ed4614d8ffb85ccd4fa4bb49b6d420
commit ea4a7f9986ed4614d8ffb85ccd4fa4bb49b6d420
Author: jamesbowman <jamesb@excamera.com>
Date: Wed Sep 9 09:44:44 2015 -0700
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
Diff:
---
ld/ChangeLog | 5 +++++
ld/scripttempl/ft32.sc | 7 +++++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index b68dcf8..1d894c1 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-09 James Bowman <james.bowman@ftdichip.com>
+
+ * scripttempl/ft32.sc: default linker script RAM and
+ FLASH size symbols
+
2015-09-09 Nick Clifton <nickc@redhat.com>
* po/zh_CN.po: Updated simplified Chinese translation.
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
{