mirror of https://github.com/ARMmbed/mbed-os.git
Adjust K66F GCC_ARM linker file
Move heap_0 after .data as it is also placed to m_data.pull/10950/head
parent
5ab714e604
commit
d7190c8af4
|
@ -210,14 +210,6 @@ SECTIONS
|
||||||
__CRASH_DATA_RAM_END__ = .; /* Define a global symbol at data end */
|
__CRASH_DATA_RAM_END__ = .; /* Define a global symbol at data end */
|
||||||
} > m_data
|
} > m_data
|
||||||
|
|
||||||
.heap_0 :
|
|
||||||
{
|
|
||||||
. = ALIGN(8);
|
|
||||||
__mbed_sbrk_start_0 = .;
|
|
||||||
. += (ORIGIN(m_data) + LENGTH(m_data) - .);
|
|
||||||
__mbed_krbs_start_0 = .;
|
|
||||||
} > m_data
|
|
||||||
|
|
||||||
__VECTOR_RAM = DEFINED(__ram_vector_table__) ? __VECTOR_RAM__ : ORIGIN(m_interrupts);
|
__VECTOR_RAM = DEFINED(__ram_vector_table__) ? __VECTOR_RAM__ : ORIGIN(m_interrupts);
|
||||||
__RAM_VECTOR_TABLE_SIZE_BYTES = DEFINED(__ram_vector_table__) ? (__interrupts_ram_end__ - __interrupts_ram_start__) : 0x0;
|
__RAM_VECTOR_TABLE_SIZE_BYTES = DEFINED(__ram_vector_table__) ? (__interrupts_ram_end__ - __interrupts_ram_start__) : 0x0;
|
||||||
|
|
||||||
|
@ -233,6 +225,14 @@ SECTIONS
|
||||||
__data_end__ = .; /* define a global symbol at data end */
|
__data_end__ = .; /* define a global symbol at data end */
|
||||||
} > m_data
|
} > m_data
|
||||||
|
|
||||||
|
.heap_0 :
|
||||||
|
{
|
||||||
|
. = ALIGN(8);
|
||||||
|
__mbed_sbrk_start_0 = .;
|
||||||
|
. += (ORIGIN(m_data) + LENGTH(m_data) - .);
|
||||||
|
__mbed_krbs_start_0 = .;
|
||||||
|
} > m_data
|
||||||
|
|
||||||
__DATA_END = __DATA_ROM + (__data_end__ - __data_start__);
|
__DATA_END = __DATA_ROM + (__data_end__ - __data_start__);
|
||||||
text_end = ORIGIN(m_text) + LENGTH(m_text);
|
text_end = ORIGIN(m_text) + LENGTH(m_text);
|
||||||
ASSERT(__DATA_END <= text_end, "region m_text overflowed with text and data")
|
ASSERT(__DATA_END <= text_end, "region m_text overflowed with text and data")
|
||||||
|
|
Loading…
Reference in New Issue