Skip to content
Snippets Groups Projects
Commit e42a37b8 authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Add script to setup binutils for testing

parent f6b6cdf3
No related branches found
No related tags found
No related merge requests found
#binutils_binaries="size strings readelf objdump cxxfilt ar"
binutils_binaries="objdump cxxfilt ar strip-new nm-new"
binutils_binaries="cxxfilt"
SCRIPT=$(readlink -f $0)
cd $(dirname $SCRIPT)
source binutils.spec
echo "Zafl $binutils_binaries"
for b in $binutils_binaries
do
zafl_dir="${b}_zafl"
if [ ! -d $zafl_dir ];
then
mkdir ${b}_zafl
fi
cp binutils-gdb/binutils/$b ${b}_zafl/
pushd $zafl_dir
echo "Remove any remnants of previous analysis runs"
rm -fr peasoup_exec*
echo "Building Zafl version of $b"
$PSZ ./$b ${b}.zafl -c move_globals=on -c zafl=on -o move_globals:--elftables -o zipr:--traceplacement:on -o zipr:true -o zafl:--stars
ln -s $SECURITY_TRANSFORMS_HOME/lib/libzafl.so .
if [ ! -d in ]; then
mkdir in
fi
echo "1" > in/1
popd
done
wget http://ftp.gnu.org/gnu/gzip/gzip-1.9.tar.gz
tar -zxf gzip*.tar.gz
wget http://ftp.gnu.org/gnu/bc/bc-1.07.tar.gz
tar -zxf bc*.tar.gz
git clone git://sourceware.org/git/binutils-gdb.git
pushd binutils-gdb
make clean distclean
rm -fr config.cache
rm -fr */config.cache
rm -fr */*/config.cache
./configure
make clean all
popd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment