2 source ./boilerplate.sh
4 elfucli --input $BUILDDIR/putsmainsubglobal \
5 --reladd $BUILDDIR/sub_with_global.o \
6 --detour sub,sub_with_global \
7 --output $BUILDDIR/putsmainsubglobal-with-sub-with-global-detour
10 $BUILDDIR/putsmainsubglobal-with-sub-with-global-detour | grep -q "sub_with_global() is returning."