DynamoRIO / DynamoRIO/drmemory

Support DrMemory and DrSyscall-based cilents as static clients linked with static DR into app

Open
#1,125 3 comments 0 reactions 0 assignees View on GitHub
Component-Build Migrated Priority-Medium
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [euge...@google.com](https://code.google.com/u/101600367715055138223/) on February 05, 2013 03:27:57_

# Build DR

cmake -DDR_EXT_DRMGR_STATIC=ON -DDR_EXT_DRSYMS_STATIC=ON -DDR_EXT_DRUTIL_STATIC=ON -DDR_EXT_DRWRAP_STATIC=ON -DSTATIC_LIBRARY=ON -DCMAKE_BUILD_TYPE=Debug -DDEBUG=ON -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC ..
make && make install

# Build DrMemory

cmake -DDynamoRIO_DIR=`pwd`/../../dr/exports/cmake -DDR_EXT_DRSYSCALL_STATIC=ON -DCMAKE_BUILD_TYPE=Debug -DDEBUG=ON -DBUILD_TOOL_TESTS=OFF ..

make

...

Linking CXX shared library bin64/bin64/debug/libdrmemory.so
build/memory-sanitizer/msandr/dr/exports/lib64/debug/libdynamorio.a(libdynamorio.o): In function `reg_is_gpr':
build/memory-sanitizer/msandr/dr/core/x86/instr.c:4449: multiple definition of`reg_is_gpr'
CMakeFiles/drmemory.dir/drmemory/readwrite.c.o:build/memory-sanitizer/msandr/drmemory/drmemory/readwrite.c:820: first defined here
/usr/bin/ld: build/memory-sanitizer/msandr/dr/exports/lib64/debug/libdynamorio.a(libdynamorio.o): relocation R_X86_64_PC32 against symbol `dynamorio_app_take_over' can not be used when making a shared object; recompile with -fPIC

_Original issue: http://code.google.com/p/drmemory/issues/detail?id=1125_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.