[stage2] Fix the ordering of rules in linker script
This commit is contained in:
@@ -15,13 +15,32 @@ SECTIONS
|
||||
PROVIDE(__start__ = 0xFFF00000);
|
||||
. = __start__;
|
||||
. = ALIGN(32);
|
||||
.text :
|
||||
|
||||
.crt0 :
|
||||
{
|
||||
. = ALIGN(32);
|
||||
/* .init */
|
||||
KEEP( *(.text.start) )
|
||||
KEEP( *(.init) )
|
||||
. = ALIGN(4);
|
||||
} >main
|
||||
|
||||
.chainloader :
|
||||
{
|
||||
. = ALIGN(32);
|
||||
PROVIDE (__chainloader_start = .);
|
||||
KEEP(*(.chainloader.text.start))
|
||||
build/chainloader.o(.text*)
|
||||
build/chainloader.o(.rodata*)
|
||||
build/chainloader.o(.data*)
|
||||
. = ALIGN(8);
|
||||
build/chainloader.o(.bss* COMMON)
|
||||
. = ALIGN(8);
|
||||
PROVIDE (__chainloader_end = .);
|
||||
} >low_iram AT>main
|
||||
|
||||
.text :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
|
||||
/* .text */
|
||||
*(.text)
|
||||
@@ -102,20 +121,6 @@ SECTIONS
|
||||
. = ALIGN(4);
|
||||
} >main
|
||||
|
||||
.chainloader :
|
||||
{
|
||||
. = ALIGN(32);
|
||||
PROVIDE (__chainloader_start = .);
|
||||
KEEP(*(.chainloader.text.start))
|
||||
build/chainloader.o(.text*)
|
||||
build/chainloader.o(.rodata*)
|
||||
build/chainloader.o(.data*)
|
||||
. = ALIGN(8);
|
||||
build/chainloader.o(.bss*)
|
||||
. = ALIGN(32);
|
||||
PROVIDE (__chainloader_end = .);
|
||||
} >low_iram AT>main
|
||||
|
||||
.bss :
|
||||
{
|
||||
__bss_start__ = ALIGN(32);
|
||||
|
||||
Reference in New Issue
Block a user