Skip to content

Instantly share code, notes, and snippets.

View tuxology's full-sized avatar
💭
Nothing

Suchakra Sharma tuxology

💭
Nothing
View GitHub Profile
@tuxology
tuxology / Makefile
Last active December 20, 2015 07:09
Gives address of a given symbol in the binary and size of the first instruction at that symbol address. depends on libbfd and libdistorm3. Distorm64 may work too
sym2addr:sym2addr.c
gcc -Wall -ggdb sym2addr.c -o sym2addr -lbfd -ldistorm3
clean:
rm -f sym2addr
@tuxology
tuxology / Makefile
Created May 17, 2013 21:16
Tracepoint to get integer values from mutatee + modifications for x86_64 libs
all: dyntp.so mutator mutatee
dyntp.so: dyntp.o
gcc -shared -fPIC -DPIC $^ -ldl -llttng-ust -O0 -o $@
dyntp.o: dyntp.c ust_test.h
gcc -I. -fno-strict-aliasing -Wall -g -O0 -c $< -fPIC -DPIC -o $@
mutator: mutator.o
g++ $^ -L/usr/lib64/dyninst -ldyninstAPI -o $@