mbed library sources
Fork of mbed-src by
Diff: targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/NRF51822.ld
- Revision:
- 282:4abd2456cfa5
- Parent:
- 270:e2babe29baf8
diff -r 2aafb3236a60 -r 4abd2456cfa5 targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/NRF51822.ld --- a/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/NRF51822.ld Tue Aug 12 07:45:06 2014 +0100 +++ b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/NRF51822.ld Tue Aug 12 10:30:08 2014 +0100 @@ -43,8 +43,8 @@ KEEP(*(.Vectors)) *(.text*) - *(.init) - *(.fini) + KEEP(*(.init)) + KEEP(*(.fini)) /* .ctors */ *crtbegin.o(.ctors) @@ -62,7 +62,7 @@ *(.rodata*) - *(.eh_frame*) + KEEP(*(.eh_frame*)) } > FLASH @@ -89,22 +89,22 @@ . = ALIGN(4); /* preinit data */ PROVIDE_HIDDEN (__preinit_array_start = .); - *(.preinit_array) + KEEP(*(.preinit_array)) PROVIDE_HIDDEN (__preinit_array_end = .); . = ALIGN(4); /* init data */ PROVIDE_HIDDEN (__init_array_start = .); - *(SORT(.init_array.*)) - *(.init_array) + KEEP(*(SORT(.init_array.*))) + KEEP(*(.init_array)) PROVIDE_HIDDEN (__init_array_end = .); . = ALIGN(4); /* finit data */ PROVIDE_HIDDEN (__fini_array_start = .); - *(SORT(.fini_array.*)) - *(.fini_array) + KEEP(*(SORT(.fini_array.*))) + KEEP(*(.fini_array)) PROVIDE_HIDDEN (__fini_array_end = .); *(.jcr) @@ -149,4 +149,3 @@ /* Check if data + heap + stack exceeds RAM limit */ ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack") } -