Skip to content

Commit

Permalink
Merge pull request pine64#19 from Virus-V/master
Browse files Browse the repository at this point in the history
fix issue pine64#18
  • Loading branch information
chinawrj authored Nov 26, 2020
2 parents 25fb041 + 71e5f5e commit a5006ee
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions components/bl602/bl602/evb/ld/flash.ld
Original file line number Diff line number Diff line change
Expand Up @@ -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) :
Expand Down
17 changes: 17 additions & 0 deletions components/bl602/bl602/evb/ld/ram.ld
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
{
Expand Down

0 comments on commit a5006ee

Please sign in to comment.