-
Notifications
You must be signed in to change notification settings - Fork 0
/
liftasli.sh
24 lines (24 loc) · 1.24 KB
/
liftasli.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
if [ $# -lt 3 ]
then
echo "Usage: ./lift.sh [c file to be lifted] [name of adt file produced] [name of relf file produced]"
exit 1
fi
aarch64-linux-gnu-gcc -fno-plt -fno-pic "$1"
bap "$1".out -d adt:"$2" --primus-lisp-semantics=disable \
--asli-prelude=$ASLI_PATH/prelude.asl \
--asli-specs=$ASLI_PATH/mra_tools/arch/regs.asl \
--asli-specs=$ASLI_PATH/mra_tools/types.asl \
--asli-specs=$ASLI_PATH/mra_tools/arch/arch.asl \
--asli-specs=$ASLI_PATH/mra_tools/arch/arch_instrs.asl \
--asli-specs=$ASLI_PATH/mra_tools/arch/arch_decode.asl \
--asli-specs=$ASLI_PATH/mra_tools/support/aes.asl \
--asli-specs=$ASLI_PATH/mra_tools/support/barriers.asl \
--asli-specs=$ASLI_PATH/mra_tools/support/debug.asl \
--asli-specs=$ASLI_PATH/mra_tools/support/feature.asl \
--asli-specs=$ASLI_PATH/mra_tools/support/hints.asl \
--asli-specs=$ASLI_PATH/mra_tools/support/interrupts.asl \
--asli-specs=$ASLI_PATH/mra_tools/support/memory.asl \
--asli-specs=$ASLI_PATH/mra_tools/support/stubs.asl \
--asli-specs=$ASLI_PATH/tests/override.asl
readelf -r -s -W "$1".out > "$3"
#rm "$1".out