feat: Add better nm output

Demangle and sort by symbol address.
This commit is contained in:
Berkus Decker 2022-02-08 22:12:45 +02:00
parent a95d4e3fb0
commit 637304bdb3
1 changed files with 10 additions and 5 deletions

View File

@ -49,13 +49,18 @@ script = [
[tasks.gdb-cb]
disabled = true
[tasks.nm]
dependencies = ["build", "kernel-binary"]
script = [
"${NM} -- ${KERNEL_ELF} | sort"
]
[tasks.install-nm]
install_crate = { crate_name = "cargo-binutils", binary = "rust-nm", test_arg = ["--help"] }
[tasks.install-rustfilt]
install_crate = { crate_name = "rustfilt", binary = "rustfilt", test_arg = ["--help"] }
[tasks.nm]
dependencies = ["build", "kernel-binary", "install-nm", "install-rustfilt"]
script = [
"${NM} -- ${KERNEL_ELF} | sort -k 1 | rustfilt"
]
[tasks.sdcard]
dependencies = ["build", "kernel-binary"]
script_runner = "@duckscript"