From 165868c46cd990078d4f92eb304af1325741dcb4 Mon Sep 17 00:00:00 2001 From: tanek liang Date: Sat, 1 Jul 2017 15:59:23 +0800 Subject: [PATCH] [bsp] insert keep section .rti_fn* in GCC link file --- bsp/frdm-k64f/K64FN1M0xxx12.ld | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bsp/frdm-k64f/K64FN1M0xxx12.ld b/bsp/frdm-k64f/K64FN1M0xxx12.ld index 91516c744..099edca16 100644 --- a/bsp/frdm-k64f/K64FN1M0xxx12.ld +++ b/bsp/frdm-k64f/K64FN1M0xxx12.ld @@ -88,6 +88,13 @@ SECTIONS __vsymtab_end = .; . = ALIGN(4); + /* section information for initial. */ + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(4); + . = ALIGN(4); _etext = .;