mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
Allow the flash and ram memory region sizes to be specified in the default FT32 linker script.
* scripttempl/ft32.sc (__PMSIZE_): If not defined, set to 256K. (__RAMSIZE): If not defined, set to 64K. (MEMORY): Set the flash region size to __PMSIZE and the ram region size to __RAMSIZE.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2016-07-04 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* scripttempl/ft32.sc (__PMSIZE_): If not defined, set to 256K.
|
||||||
|
(__RAMSIZE): If not defined, set to 64K.
|
||||||
|
(MEMORY): Set the flash region size to __PMSIZE and the ram region
|
||||||
|
size to __RAMSIZE.
|
||||||
|
|
||||||
2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
|
2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
|
||||||
|
|
||||||
* testsuite/ld-mips-elf/branch-misc-2.d: New test.
|
* testsuite/ld-mips-elf/branch-misc-2.d: New test.
|
||||||
|
@ -14,13 +14,16 @@ OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|||||||
OUTPUT_ARCH(${ARCH})
|
OUTPUT_ARCH(${ARCH})
|
||||||
${LIB_SEARCH_DIRS}
|
${LIB_SEARCH_DIRS}
|
||||||
|
|
||||||
|
/* Allow the command line to override the memory region sizes. */
|
||||||
|
__PMSIZE_ = DEFINED(__PMSIZE) ? __PMSIZE : 256K;
|
||||||
|
__RAMSIZE = DEFINED(__RAMSIZE) ? __RAMSIZE : 64K;
|
||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
/* Note - we cannot use "PROVIDE(len)" ... "LENGTH = len" as
|
flash (rx) : ORIGIN = 0, LENGTH = __PMSIZE
|
||||||
PROVIDE statements are not evaluated inside MEMORY blocks. */
|
ram (rw!x) : ORIGIN = 0x800000, LENGTH = __RAMSIZE
|
||||||
flash (rx) : ORIGIN = 0, LENGTH = 256K
|
|
||||||
ram (rw!x) : ORIGIN = 0x800000, LENGTH = 64K
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.text :
|
.text :
|
||||||
|
Reference in New Issue
Block a user