Rename entrypoint to _start

This matches the default.
This commit is contained in:
bjorn3
2024-03-10 13:59:44 +01:00
parent 0111bcfd48
commit 8e11205784
6 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
ENTRY(ustart)
ENTRY(_start)
OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64")
SECTIONS {
+2 -2
View File
@@ -20,8 +20,8 @@ static MAP: Map = Map {
core::arch::global_asm!(
"
.globl ustart
ustart:
.globl _start
_start:
// Setup a stack.
ldr x8, ={number}
ldr x0, ={fd}
+1 -1
View File
@@ -1,4 +1,4 @@
ENTRY(ustart)
ENTRY(_start)
OUTPUT_FORMAT(elf32-i386)
SECTIONS {
+3 -3
View File
@@ -15,9 +15,9 @@ static MAP: Map = Map {
};
core::arch::global_asm!(
"
.globl ustart
ustart:
"
.globl _start
_start:
# Setup a stack.
mov eax, {number}
mov ebx, {fd}
+1 -1
View File
@@ -1,4 +1,4 @@
ENTRY(ustart)
ENTRY(_start)
OUTPUT_FORMAT(elf64-x86-64)
SECTIONS {
+2 -2
View File
@@ -17,8 +17,8 @@ static MAP: Map = Map {
core::arch::global_asm!(
"
.globl ustart
ustart:
.globl _start
_start:
# Setup a stack.
mov rax, {number}
mov rdi, {fd}