Fix GCC linker file 'cannot move location counter backwards' issue

pull/7631/head
cyliangtw 2017-09-20 14:08:21 +08:00 committed by Cruz Monrreal II
parent 16a6012d97
commit 2bf79ca1c2
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));