diff options
| author | Dario Bartussek <[email protected]> | 2021-03-27 14:26:43 +0100 |
|---|---|---|
| committer | Dario Bartussek <[email protected]> | 2021-03-27 14:26:43 +0100 |
| commit | 50c52b5f220575f0c5127be623dd53a8c381f7fa (patch) | |
| tree | 2e888ad5b5a3fcb39119f7bd303c51b759649d43 | |
| parent | Basic example for compiling Rust for the 3DS as elf (diff) | |
| download | rust_3ds-50c52b5f220575f0c5127be623dd53a8c381f7fa.tar.xz rust_3ds-50c52b5f220575f0c5127be623dd53a8c381f7fa.zip | |
Updated main to actually produce a start function
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | compile.sh | 4 | ||||
| -rw-r--r-- | src/main.rs | 2 |
3 files changed, 6 insertions, 3 deletions
@@ -4,4 +4,5 @@ Cargo.lock -3ds.map +rust_3ds.map +rust_3ds.s @@ -1,3 +1,5 @@ cargo fmt -RUSTFLAGS="-C link-args=-T3dsx.ld -C link-args=-Map=3ds.map" cargo xbuild --target 3ds.json +RUSTFLAGS="-C link-args=-T3dsx.ld -C link-args=-Map=rust_3ds.map" cargo xbuild --target 3ds.json + +llvm-objdump -d -C target/3ds/debug/rust_3ds > rust_3ds.s diff --git a/src/main.rs b/src/main.rs index 029937f..716751a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ use core::panic::PanicInfo; #[no_mangle] -pub extern "C" fn pre_main() -> ! { +pub extern "C" fn _start() -> ! { loop {} } |