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",
"crt-objects-fallback": "false",
"data-layout": "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128",
"disable-redzone": true,
"features": "+v8a,+strict-align,+neon,+fp-armv8",
"linker": "rust-lld",
"linker-flavor": "gnu-lld",
"llvm-target": "aarch64-unknown-none",
"max-atomic-width": 128,
"panic-strategy": "abort",
"pre-link-args": {
"gnu": [
"--fix-cortex-a53-843419"
],
"gnu-lld": [
"--fix-cortex-a53-843419",
"-Taarch64-qemu.ld"
],
"ld.lld": [
"-Taarch64-qemu.ld"
]
},
"relocation-model": "static",
"stack-probes": {
"kind": "inline"
},
"supported-sanitizers": [
"kcfi",
"kernel-address"
],
"target-pointer-width": "64"
"arch": "aarch64",
"crt-objects-fallback": "false",
"data-layout": "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128",
"disable-redzone": true,
"features": "+v8a,+strict-align,-neon,+fp-armv8",
"linker": "rust-lld",
"linker-flavor": "gnu-lld",
"llvm-target": "aarch64-unknown-none",
"max-atomic-width": 128,
"panic-strategy": "abort",
"pre-link-args": {
"gnu": ["--fix-cortex-a53-843419"],
"gnu-lld": ["--fix-cortex-a53-843419", "-Taarch64-qemu.ld"],
"ld.lld": ["-Taarch64-qemu.ld"]
},
"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
cargo xbuild --target=aarch64-unknown-none.json
DEBUG=
# DEBUG="-s -S -d exec"
printf "Running with qemu...\n"
set -x
exec qemu-system-aarch64 \
-machine virt \
-s -S \
$DEBUG \
-m 1024M \
-cpu cortex-a53 \
-nographic \