_start works kinda

This commit is contained in:
nora 2023-09-29 20:31:19 +02:00
parent 8a033fc3df
commit 52b9c8fb38
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,8 @@
core::arch::global_asm!(
".global _start",
"_start:",
"mov rdi, 42",
"mov rax, 60",
"syscall"
);

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cargo run --manifest-path example-user/Cargo.toml cargo run --manifest-path example-user/Cargo.toml --target x86_64-unknown-linux-gnu