Download Configurable Binary Instrumenter User Manual
Transcript
2 8 2.2 Build Instructions Libelf The LibElf can be found at: LibElf 0.8.132 1 2 3 ./configure --prefix=$HOME/libelf make make install Listing 2.2: Build Libelf 2.3 Libdwarf The LibDwarf can be found at: LibDwarf3 1 2 3 4 5 6 7 8 9 10 11 export CFLAGS="-I$HOME/libelf/include -fPIC" export CPPFLAGS="-I$HOME/libelf/include -fPIC" ./configure \ --prefix=$HOME/libdwarf \ --includedir=$HOME/libelf/include \ --libdir=$HOME/libelf/lib \ --enable-shared make cp libdwarf.so libdwarf.h dwarf.h libdwarf.a $HOME/libdwarf Listing 2.3: Build Libdwarf 2.4 1 2 3 Nasm ./configure --prefix=$HOME/nasm make make install Listing 2.4: Build NASM 1 export PATH=$PATH:$HOME/nasm/bin Listing 2.5: Add NASM to PATH 2.5 Dyninst 2 http://www.mr511.de/software/english.html 3 http://reality.sgiweb.org/davea/