mirror of
https://github.com/pret/ds_disassembly_tools.git
synced 2026-03-21 18:04:11 -05:00
7 lines
589 B
Bash
7 lines
589 B
Bash
#!/usr/bin/env bash
|
|
|
|
OV=$1
|
|
|
|
echo "sed -r -f <(grep -wE \"(thumb|arm)_func_start\" overlays/${OV}/module_${OV}.dump.s | grep -oE \"\w+$\" | xargs | sed -r -e 's/ FUN_/|/g' -e 's/^(MOD'${OV}')_/s\/\(FUN\|\1\)_\(/' -e 's/$/\)\/ov'${OV}'_\\2\/g/') overlays/${OV}/module_${OV}.dump.s > overlays/${OV}/module_${OV}.s"
|
|
sed -r -f <(grep -wE "(thumb|arm)_func_start" overlays/${OV}/module_${OV}.dump.s | grep -oE "\w+$" | xargs | sed -r -e 's/ FUN_/|/g' -e 's/^(MOD'${OV}'|FUN)_/s\/\(FUN\|\1\)_\(/' -e 's/$/\)\/ov'${OV}'_\\2\/g/') overlays/${OV}/module_${OV}.dump.s > overlays/${OV}/module_${OV}.s
|