This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH FT32] LD: default linker script memory size
- From: James Bowman <james dot bowman at ftdichip dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Sat, 5 Sep 2015 01:23:23 +0000
- Subject: [PATCH FT32] LD: default linker script memory size
- Authentication-results: sourceware.org; auth=none
For FT32, default linker script RAM and FLASH size symbols.
Please review.
Thanks, James
2015-09-04 James Bowman <james.bowman@ftdichip.com>
* ld/scripttempl/ft32.sc b/ld/scripttempl/ft32.sc: default linker script RAM
and FLASH size symbols
From: James Bowman <james.bowman@ftdichip.com>
Date: Fri, 4 Sep 2015 18:14:38 -0700
Subject: [PATCH] FT32 default linker script RAM and FLASH size symbols
---
ld/scripttempl/ft32.sc | 7 +++++--
1 file 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
{
--
1.7.9.5
--
James Bowman
FTDI Open Source Liaison