Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(568)

Unified Diff: makefile

Issue 8589027: Add a tool for patching ELF libraries/executables offline (Closed) Base URL: https://seccompsandbox.googlecode.com/svn/trunk
Patch Set: Add to 'clean' target Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | patch_offline.cc » ('j') | patch_offline.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: makefile
diff --git a/makefile b/makefile
index 33cc265c2d54f89a5c97e327823c895cf84cf56a..d1f8cb0a16e4fb3af21745c1bae2b814283cc2c0 100644
--- a/makefile
+++ b/makefile
@@ -21,7 +21,7 @@ include $(DEP_FILES)
.SUFFIXES: .o64 .o32
-all: testbin timestats demo elf_loader_32 elf_loader_64
+all: testbin timestats demo elf_loader_32 elf_loader_64 patch_offline
clean:
-rm -f playground playground.o
@@ -33,6 +33,8 @@ clean:
-rm -f testbin32 testbin.o32
-rm -f timestats timestats.o
-rm -f run_tests_32 run_tests_64
+ -rm -f elf_loader_32 elf_loader_64
+ -rm -f patch_offline
-rm -f tests/test-list.h
-rm -f core core.* vgcore vgcore.* strace.log*
@@ -59,6 +61,9 @@ elf_loader_64: elf_loader.o64 $(OBJS64)
elf_loader_32: elf_loader.o32 $(OBJS32)
g++ -pie -m32 $^ -o $@
+patch_offline: patch_offline.o x86_decode.o
+ g++ $^ -o $@
+
demo: playground preload32.so preload64.so
./playground /bin/ls $(HOME)
« no previous file with comments | « no previous file | patch_offline.cc » ('j') | patch_offline.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698