mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-01-14 11:45:05 +01:00
_start works kinda
This commit is contained in:
parent
8a033fc3df
commit
52b9c8fb38
2 changed files with 9 additions and 1 deletions
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
core::arch::global_asm!(
|
||||
".global _start",
|
||||
"_start:",
|
||||
"mov rdi, 42",
|
||||
"mov rax, 60",
|
||||
"syscall"
|
||||
);
|
||||
2
test.sh
2
test.sh
|
|
@ -1,3 +1,3 @@
|
|||
#!/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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue