boards/riscv/mpfs: Remove reference to .vectors in linker scripts

There is no such section. Instead, place the object mpfs_head.o at the start of
the text.

Put mpfs_head.o directly into the arch library; there is no need to define
it separately in HEAD_ASRC.

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2022-01-17 11:10:55 +02:00 committed by Xiang Xiao
parent 6428c1fdc4
commit fc3167b584
6 changed files with 6 additions and 10 deletions

View File

@ -18,13 +18,9 @@
#
############################################################################
# Specify our HEAD assembly file. This will be linked as
# the first object file, so it will appear at address 0
HEAD_ASRC = mpfs_head.S
# Specify our general Assembly files
CMN_ASRCS += riscv_vectors.S riscv_exception_common.S riscv_testset.S
CMN_ASRCS += mpfs_head.S riscv_vectors.S riscv_exception_common.S riscv_testset.S
# Specify C code within the common directory to be included
CMN_CSRCS += riscv_initialize.c riscv_swint.c

View File

@ -59,7 +59,7 @@ SECTIONS
.text : {
_stext = ABSOLUTE(.);
*(.vectors)
mpfs_head.o
*(.text .text.*)
*(.f-ixup)
*(.gnu.warning)

View File

@ -33,7 +33,7 @@ SECTIONS
{
.text : {
_stext = ABSOLUTE(.);
*(.vectors)
mpfs_head.o
*(.text .text.*)
*(.fixup)
*(.gnu.warning)

View File

@ -32,7 +32,7 @@ SECTIONS
{
.text : {
_stext = ABSOLUTE(.);
*(.vectors)
mpfs_head.o
*(.text .text.*)
*(.fixup)
*(.gnu.warning)

View File

@ -33,7 +33,7 @@ SECTIONS
{
.text : {
_stext = ABSOLUTE(.);
*(.vectors)
mpfs_head.o
*(.text .text.*)
*(.fixup)
*(.gnu.warning)

View File

@ -32,7 +32,7 @@ SECTIONS
{
.text : {
_stext = ABSOLUTE(.);
*(.vectors)
mpfs_head.o
*(.text .text.*)
*(.fixup)
*(.gnu.warning)