Renamed assembly initialization code to _entry instead of _start, to avoid confusing with start() C function

This commit is contained in:
Imbus 2025-06-26 03:08:28 +02:00
parent dc3de0135e
commit d62f9ddd85
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -1,5 +1,5 @@
OUTPUT_ARCH(riscv) OUTPUT_ARCH( "riscv" )
ENTRY(_start) ENTRY( _entry ) /* See: entry.S */
SECTIONS SECTIONS
{ {