Renamed assembly initialization code to _entry instead of _start, to avoid confusing with start() C function
This commit is contained in:
parent
dc3de0135e
commit
d62f9ddd85
2 changed files with 4 additions and 4 deletions
4
entry.S
4
entry.S
|
@ -1,6 +1,6 @@
|
||||||
.section .text
|
.section .text
|
||||||
.globl _start
|
.globl _entry
|
||||||
_start:
|
_entry:
|
||||||
# Both call and j will work here, but since ra will be cleared,
|
# Both call and j will work here, but since ra will be cleared,
|
||||||
# we will need a jump instruction back (from _clear) to continue.
|
# we will need a jump instruction back (from _clear) to continue.
|
||||||
call _clear
|
call _clear
|
||||||
|
|
4
link.ld
4
link.ld
|
@ -1,5 +1,5 @@
|
||||||
OUTPUT_ARCH(riscv)
|
OUTPUT_ARCH( "riscv" )
|
||||||
ENTRY(_start)
|
ENTRY( _entry ) /* See: entry.S */
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue