Merge pull request #19 from Virus-V/master

fix issue #18
This commit is contained in:
chinawrj 2020-11-26 13:30:05 +08:00 committed by GitHub
commit a5006ee592
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View File

@ -67,6 +67,23 @@ SECTIONS
*(.gnu.linkonce.r.*)
} > flash
.preinit_array :
{
. = ALIGN(4);
__preinit_array_start = .;
KEEP (*(.preinit_array))
__preinit_array_end = .;
} > flash
.init_array :
{
. = ALIGN(4);
__init_array_start = .;
KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*)))
KEEP (*(.init_array))
__init_array_end = .;
} > flash
/*put wifibss in the first place*/
.wifibss (NOLOAD) :

View File

@ -23,6 +23,23 @@ SECTIONS
*(.text .text.*)
*(.gnu.linkonce.t.*)
} >ram
.preinit_array :
{
. = ALIGN(4);
__preinit_array_start = .;
KEEP (*(.preinit_array))
__preinit_array_end = .;
} > ram
.init_array :
{
. = ALIGN(4);
__init_array_start = .;
KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*)))
KEEP (*(.init_array))
__init_array_end = .;
} > ram
.rodata :
{