add .text.startup section
This commit is contained in:
parent
76d1c52cb2
commit
de1ed2978b
3 changed files with 12 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
OUTPUT_ARCH( "riscv" )
|
||||
ENTRY(_start)
|
||||
|
||||
MEMORY
|
||||
{
|
||||
|
@ -14,6 +13,7 @@ SECTIONS
|
|||
{
|
||||
/* . = ALIGN(4); */
|
||||
_text = .;
|
||||
*(.text.startup)
|
||||
*(.text*)
|
||||
*(.rodata*)
|
||||
_etext = .;
|
||||
|
|
|
@ -1,9 +1,17 @@
|
|||
.global _start
|
||||
|
||||
.section .text.startup # start vector
|
||||
j _start
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
|
||||
.text
|
||||
_start:
|
||||
|
||||
addi a0, zero, 0x134
|
||||
addi a1, zero, 0x0
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
|
|
Loading…
Add table
Reference in a new issue