wtf
This commit is contained in:
parent
411e2c0ae8
commit
e9ad65f77f
3 changed files with 25 additions and 32 deletions
|
@ -3,31 +3,21 @@
|
||||||
"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",
|
|
||||||
"-Taarch64-qemu.ld"
|
|
||||||
],
|
|
||||||
"ld.lld": [
|
|
||||||
"-Taarch64-qemu.ld"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"relocation-model": "static",
|
"relocation-model": "static",
|
||||||
"stack-probes": {
|
"stack-probes": {
|
||||||
"kind": "inline"
|
"kind": "inline"
|
||||||
},
|
},
|
||||||
"supported-sanitizers": [
|
"supported-sanitizers": ["kcfi", "kernel-address"],
|
||||||
"kcfi",
|
|
||||||
"kernel-address"
|
|
||||||
],
|
|
||||||
"target-pointer-width": "64"
|
"target-pointer-width": "64"
|
||||||
}
|
}
|
||||||
|
|
0
debug.sh
Normal file → Executable file
0
debug.sh
Normal file → Executable file
5
run.sh
5
run.sh
|
@ -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 \
|
||||||
|
|
Loading…
Reference in a new issue