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 * text=auto !eol
/build-all.sh -text /build-all.sh -text
/build_diehard.sh -text
/cfar_postgres_setup.sh -text /cfar_postgres_setup.sh -text
/clean-all.sh -text /clean-all.sh -text
/clean_diehard.sh -text
/get-peasoup-packages.sh -text /get-peasoup-packages.sh -text
/irdb_vars -text /irdb_vars -text
/postgres_setup.sh -text /postgres_setup.sh -text
......
...@@ -10,7 +10,7 @@ if [ "$PEASOUP_UMBRELLA_DIR" != "$FULL_BUILD_LOC" ]; then ...@@ -10,7 +10,7 @@ if [ "$PEASOUP_UMBRELLA_DIR" != "$FULL_BUILD_LOC" ]; then
exit 1; exit 1;
fi fi
if [ `basename $BUILD_LOC` == "cfar_umbrella" ]; then if [ `basename $FULL_BUILD_LOC` == "cfar_umbrella" ]; then
cfar_mode="--enable-cfar" cfar_mode="--enable-cfar"
fi fi
...@@ -101,11 +101,16 @@ cd $IRDB_TRANSFORMS ...@@ -101,11 +101,16 @@ cd $IRDB_TRANSFORMS
scons || exit scons || exit
cd $PEASOUP_UMBRELLA_DIR
if [ `basename $BUILD_LOC` == "cfar_umbrella" ]; then if [ -d DieHard ]; then
mkdir -p lib ./build_diehard.sh
cd DieHard/src
make linux-gcc-x86-64
cd $PEASOUP_UMBRELLA_DIR
cp DieHard/src/libdiehard.so lib
fi 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 ...@@ -48,3 +48,6 @@ if [ -d $ZIPR_HOME ]; then
cd $ZIPR_HOME cd $ZIPR_HOME
scons -c || exit scons -c || exit
fi 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.
Please register or to comment