[M2351] Fix GCC linker file 'cannot move location counter backwards' issue

pull/7302/head
cyliangtw 2017-09-20 14:08:21 +08:00 committed by ccli8
parent ba9e5fdc29
commit 18ca9b5e6c
1 changed files with 2 additions and 1 deletions

View File

@ -263,10 +263,11 @@ SECTIONS
__end__ = .;
end = __end__;
*(.heap*);
. += (ORIGIN(RAM_INTERN) + LENGTH(RAM_INTERN) - .);
__HeapLimit = .;
} > RAM_INTERN
__HeapLimit = ORIGIN(RAM_INTERN) + LENGTH(RAM_INTERN);
PROVIDE(__heap_size = SIZEOF(.heap));
PROVIDE(__mbed_sbrk_start = ADDR(.heap));
PROVIDE(__mbed_krbs_start = ADDR(.heap) + SIZEOF(.heap));