-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
disasm_load.sh
executable file
·30 lines (22 loc) · 2.36 KB
/
disasm_load.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Generates listings for binary objects so that codezoom.py can do its thing
# Called by verilate.sh
PREFIX="../xous-core"
riscv-none-elf-objdump -h $PREFIX/target/riscv32imac-unknown-xous-elf/release/loader > listings/load.lst
riscv-none-elf-nm -r --size-sort --print-size $PREFIX/target/riscv32imac-unknown-xous-elf/release/loader | rustfilt >> listings/load.lst
riscv-none-elf-objdump $PREFIX/target/riscv32imac-unknown-xous-elf/release/loader -S -d | rustfilt >> listings/load.lst
riscv-none-elf-objdump -h $PREFIX/target/riscv32imac-unknown-xous-elf/release/xous-kernel > listings/kernel.lst
riscv-none-elf-nm -r --size-sort --print-size $PREFIX/target/riscv32imac-unknown-xous-elf/release/xous-kernel | rustfilt >> listings/kernel.lst
riscv-none-elf-objdump $PREFIX/target/riscv32imac-unknown-xous-elf/release/xous-kernel -S -d | rustfilt >> listings/kernel.lst
riscv-none-elf-objdump -h $PREFIX/target/riscv32imac-unknown-xous-elf/release/cram-console > listings/console.lst
riscv-none-elf-nm -r --size-sort --print-size $PREFIX/target/riscv32imac-unknown-xous-elf/release/cram-console | rustfilt >> listings/console.lst
riscv-none-elf-objdump $PREFIX/target/riscv32imac-unknown-xous-elf/release/cram-console -S -d | rustfilt >> listings/console.lst
riscv-none-elf-objdump -h $PREFIX/target/riscv32imac-unknown-xous-elf/release/xous-ticktimer > listings/ticktimer.lst
riscv-none-elf-nm -r --size-sort --print-size $PREFIX/target/riscv32imac-unknown-xous-elf/release/xous-ticktimer | rustfilt >> listings/ticktimer.lst
riscv-none-elf-objdump $PREFIX/target/riscv32imac-unknown-xous-elf/release/xous-ticktimer -S -d | rustfilt >> listings/ticktimer.lst
riscv-none-elf-objdump -h $PREFIX/target/riscv32imac-unknown-xous-elf/release/xous-log > listings/log.lst
riscv-none-elf-nm -r --size-sort --print-size $PREFIX/target/riscv32imac-unknown-xous-elf/release/xous-log | rustfilt >> listings/log.lst
riscv-none-elf-objdump $PREFIX/target/riscv32imac-unknown-xous-elf/release/xous-log -S -d | rustfilt >> listings/log.lst
riscv-none-elf-objdump -h $PREFIX/target/riscv32imac-unknown-xous-elf/release/xous-names > listings/names.lst
riscv-none-elf-nm -r --size-sort --print-size $PREFIX/target/riscv32imac-unknown-xous-elf/release/xous-names | rustfilt >> listings/names.lst
riscv-none-elf-objdump $PREFIX/target/riscv32imac-unknown-xous-elf/release/xous-names -S -d | rustfilt >> listings/names.lst