diff --git a/bin/zafl.sh b/bin/zafl.sh index 61177756391ed929a6a6cba6dda3db24c8ac483a..f9b85df030833aa5f9947046d09e6d993987a543 100755 --- a/bin/zafl.sh +++ b/bin/zafl.sh @@ -32,7 +32,10 @@ shift shift # default is rida -ida_or_rida=" -s meds_static=off -s rida=on " +#ida_or_rida=" -s meds_static=off -s rida=on " + +# default is ida +ida_or_rida=" " other_args="" # parse args diff --git a/test/gzip/test_gzip.sh b/test/gzip/test_gzip.sh index 70428f518ea83f92f3650fdcdd7605ca4bc7ec2c..5c070ac3e1388d8c3a79e70044e02ae36f840ff2 100755 --- a/test/gzip/test_gzip.sh +++ b/test/gzip/test_gzip.sh @@ -97,6 +97,12 @@ pushd ${session} setup +file /bin/gzip | grep "shared object" >/dev/null 2>&1 +if [ $? -eq 0 ]; then + echo "PIE detected -- this test only designed for non-PIE" + exit 1 +fi + # test setting of entry point via address ep=$( objdump -Mintel -d /bin/gzip | grep text | grep -v -i disassembly | cut -d' ' -f1 | sed 's/^00000000//g' ) build_zafl gzip.stars.entrypoint.${ep}.zafl -o zafl:--stars -o "zafl:--entrypoint=$ep"