Skip to content
Snippets Groups Projects
Commit ea0a4c2a authored by jdh8d's avatar jdh8d
Browse files

Added Diehard heap randomization integration

parent b239aa75
No related branches found
No related tags found
No related merge requests found
* text=auto !eol
/build-all.sh -text
/build_diehard.sh -text
/cfar_postgres_setup.sh -text
/clean-all.sh -text
/clean_diehard.sh -text
/get-peasoup-packages.sh -text
/irdb_vars -text
/postgres_setup.sh -text
......
......@@ -10,7 +10,7 @@ if [ "$PEASOUP_UMBRELLA_DIR" != "$FULL_BUILD_LOC" ]; then
exit 1;
fi
if [ `basename $BUILD_LOC` == "cfar_umbrella" ]; then
if [ `basename $FULL_BUILD_LOC` == "cfar_umbrella" ]; then
cfar_mode="--enable-cfar"
fi
......@@ -101,11 +101,16 @@ cd $IRDB_TRANSFORMS
scons || exit
if [ `basename $BUILD_LOC` == "cfar_umbrella" ]; then
mkdir -p lib
cd DieHard/src
make linux-gcc-x86-64
cd $PEASOUP_UMBRELLA_DIR
cp DieHard/src/libdiehard.so lib
cd $PEASOUP_UMBRELLA_DIR
if [ -d DieHard ]; then
./build_diehard.sh
fi
cd $PEASOUP_UMBRELLA_DIR
echo
echo
echo "Overall build complete."
echo
echo
#!/bin/bash
if [ ! -f DieHard/src/libdiehard.so ]; then
sed -i "s|/dev/urandom|/dev/cfar_urandom|" \
DieHard/src/archipelago/benchmarks/pine4.64/imap/src/osdep/unix/ssl_unix.c \
DieHard/src/include/rng/realrandomvalue.h \
DieHard/src/exterminator/src/realrandomvalue.h
cd DieHard/src
make linux-gcc-x86-64
fi
echo Diehard Build complete.
......@@ -48,3 +48,6 @@ if [ -d $ZIPR_HOME ]; then
cd $ZIPR_HOME
scons -c || exit
fi
cd $PEASOUP_UMBRELLA_DIR
./clean_diehard.sh
#!/bin/bash
\rm -f DieHard/src/libdiehard.so
echo Diehard cleaned.
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