Merge pull request #755 from TanekLiang/master

[bsp] insert keep section .rti_fn* in GCC link file
This commit is contained in:
Bernard Xiong 2017-07-02 15:25:11 +08:00 committed by GitHub
commit 315a616436
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 = .;