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

updates to the stratafier to gain control earlier by loading libstrata.so as...

updates to the stratafier to gain control earlier by loading libstrata.so as the first shared library.  should be backwards compatible for statically linked programs.

Former-commit-id: 271a1ec1b16525ac77d0bb27aef00685f02db83e
parent 667d1f74
No related branches found
No related tags found
No related merge requests found
......@@ -439,6 +439,18 @@ mkdir $newdir
# store the original executable as a.ncexe
cp $orig_exe $newdir/$newname.ncexe
#
# setup libstrata.so. We'll setup two versions, one with symbols so we can debug, and a stripped, faster-loading version.
# by default, use the faster version. copy in the .symbosl version for debugging
#
cp $STRATA_HOME/lib/libstrata.so $newdir/libstrata.so.symbols
cp $STRATA_HOME/lib/libstrata.so $newdir/libstrata.so.nosymbols
strip $newdir/libstrata.so.nosymbols
cp $newdir/libstrata.so.nosymbols $newdir/libstrata.so
# also, add newdir to the ld-library path for analysis.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/$newdir
# make sure we overwrite out output file one way or another
......
......@@ -22,6 +22,7 @@ shift;
command="
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$datapath
STRATA_LOG=detectors
STRATA_WATCHDOG=0
STRATA_NUM_HANDLE=0
......
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