[bsp] insert keep section .rti_fn* in GCC link file

This commit is contained in:
tanek liang 2017-07-01 15:59:23 +08:00
parent a2d56fb5d9
commit 165868c46c
1 changed files with 7 additions and 0 deletions

View File

@ -88,6 +88,13 @@ SECTIONS
__vsymtab_end = .; __vsymtab_end = .;
. = ALIGN(4); . = ALIGN(4);
/* section information for initial. */
. = ALIGN(4);
__rt_init_start = .;
KEEP(*(SORT(.rti_fn*)))
__rt_init_end = .;
. = ALIGN(4);
. = ALIGN(4); . = ALIGN(4);
_etext = .; _etext = .;