This commit is contained in:
Michael Zhang 2024-02-22 23:21:05 -06:00
parent 411e2c0ae8
commit e9ad65f77f
3 changed files with 25 additions and 32 deletions

View file

@ -1,33 +1,23 @@
{ {
"arch": "aarch64", "arch": "aarch64",
"crt-objects-fallback": "false", "crt-objects-fallback": "false",
"data-layout": "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128", "data-layout": "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128",
"disable-redzone": true, "disable-redzone": true,
"features": "+v8a,+strict-align,+neon,+fp-armv8", "features": "+v8a,+strict-align,-neon,+fp-armv8",
"linker": "rust-lld", "linker": "rust-lld",
"linker-flavor": "gnu-lld", "linker-flavor": "gnu-lld",
"llvm-target": "aarch64-unknown-none", "llvm-target": "aarch64-unknown-none",
"max-atomic-width": 128, "max-atomic-width": 128,
"panic-strategy": "abort", "panic-strategy": "abort",
"pre-link-args": { "pre-link-args": {
"gnu": [ "gnu": ["--fix-cortex-a53-843419"],
"--fix-cortex-a53-843419" "gnu-lld": ["--fix-cortex-a53-843419", "-Taarch64-qemu.ld"],
], "ld.lld": ["-Taarch64-qemu.ld"]
"gnu-lld": [ },
"--fix-cortex-a53-843419", "relocation-model": "static",
"-Taarch64-qemu.ld" "stack-probes": {
], "kind": "inline"
"ld.lld": [ },
"-Taarch64-qemu.ld" "supported-sanitizers": ["kcfi", "kernel-address"],
] "target-pointer-width": "64"
},
"relocation-model": "static",
"stack-probes": {
"kind": "inline"
},
"supported-sanitizers": [
"kcfi",
"kernel-address"
],
"target-pointer-width": "64"
} }

0
debug.sh Normal file → Executable file
View file

5
run.sh
View file

@ -1,11 +1,14 @@
set -euo pipefail set -euo pipefail
cargo xbuild --target=aarch64-unknown-none.json cargo xbuild --target=aarch64-unknown-none.json
DEBUG=
# DEBUG="-s -S -d exec"
printf "Running with qemu...\n" printf "Running with qemu...\n"
set -x set -x
exec qemu-system-aarch64 \ exec qemu-system-aarch64 \
-machine virt \ -machine virt \
-s -S \ $DEBUG \
-m 1024M \ -m 1024M \
-cpu cortex-a53 \ -cpu cortex-a53 \
-nographic \ -nographic \