risc-v/mpfs: Move the entry point to .start section

Remove the object linkage and use an explicit .start section
This commit is contained in:
Ville Juven 2022-06-10 13:35:50 +03:00 committed by Xiang Xiao
parent 2fa7ebc18f
commit 16286081e1
10 changed files with 18 additions and 18 deletions

View File

@ -38,7 +38,7 @@
.extern __trap_vec
.section .text
.section .start
.global __start
__start:

View File

@ -38,7 +38,7 @@
.extern __trap_vec
.section .text
.section .start
.global __start
/****************************************************************************

View File

@ -40,12 +40,12 @@ __ksram_size = LENGTH(ksram);
__ksram_end = ORIGIN(ksram) + LENGTH(ksram);
ENTRY(_stext)
EXTERN(_vectors)
EXTERN(__start)
SECTIONS
{
.text : {
_stext = ABSOLUTE(.);
*(.vectors)
*(.start .start.*)
*(.text .text.*)
*(.fixup)
*(.gnu.warning)

View File

@ -29,7 +29,7 @@ MEMORY
OUTPUT_ARCH("riscv")
ENTRY(_stext)
EXTERN(_vectors)
EXTERN(__start)
SECTIONS
{
.text.sbi : {
@ -59,7 +59,7 @@ SECTIONS
.text : {
_stext = ABSOLUTE(.);
mpfs_head.o
*(.start .start.*)
*(.text .text.*)
*(.f-ixup)
*(.gnu.warning)

View File

@ -32,12 +32,12 @@ __ksram_size = LENGTH(lim);
__ksram_end = ORIGIN(lim) + LENGTH(lim);
ENTRY(_stext)
EXTERN(_vectors)
EXTERN(__start)
SECTIONS
{
.text : {
_stext = ABSOLUTE(.);
mpfs_head.o
*(.start .start.*)
*(.text .text.*)
*(.fixup)
*(.gnu.warning)

View File

@ -33,7 +33,7 @@ __ksram_size = LENGTH(sram);
__ksram_end = ORIGIN(sram) + LENGTH(sram);
ENTRY(_stext)
EXTERN(_vectors)
EXTERN(__start)
SECTIONS
{
.filler_area : ALIGN(0x1000)
@ -61,7 +61,7 @@ SECTIONS
.text : {
_stext = ABSOLUTE(.);
mpfs_head.o
*(.start .start.*)
*(.text .text.*)
*(.fixup)
*(.gnu.warning)

View File

@ -46,12 +46,12 @@ __pgheap_start = ORIGIN(pgram);
__pgheap_size = LENGTH(pgram);
ENTRY(_stext)
EXTERN(_vectors)
EXTERN(__start)
SECTIONS
{
.text : {
_stext = ABSOLUTE(.);
*(.vectors)
*(.start .start.*)
*(.text .text.*)
*(.fixup)
*(.gnu.warning)

View File

@ -31,12 +31,12 @@ __ksram_size = LENGTH(sram);
__ksram_end = ORIGIN(sram) + LENGTH(sram);
ENTRY(_stext)
EXTERN(_vectors)
EXTERN(__start)
SECTIONS
{
.text : {
_stext = ABSOLUTE(.);
mpfs_head.o
*(.start .start.*)
*(.text .text.*)
*(.fixup)
*(.gnu.warning)

View File

@ -28,12 +28,12 @@ MEMORY
OUTPUT_ARCH("riscv")
ENTRY(_stext)
EXTERN(_vectors)
EXTERN(__start)
SECTIONS
{
.text : {
_stext = ABSOLUTE(.);
mpfs_head.o
*(.start .start.*)
*(.text .text.*)
*(.fixup)
*(.gnu.warning)

View File

@ -27,12 +27,12 @@ MEMORY
OUTPUT_ARCH("riscv")
ENTRY(_stext)
EXTERN(_vectors)
EXTERN(__start)
SECTIONS
{
.text : {
_stext = ABSOLUTE(.);
mpfs_head.o
*(.start .start.*)
*(.text .text.*)
*(.fixup)
*(.gnu.warning)