[PATCH] make, pie: Don't forget to add parasite header into the binary

Cyrill Gorcunov gorcunov at openvz.org
Thu Nov 8 03:16:23 EST 2012


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 pie/Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/pie/Makefile b/pie/Makefile
index dcef8d5..d456176 100644
--- a/pie/Makefile
+++ b/pie/Makefile
@@ -31,7 +31,11 @@ $(RESTORER): $(LIB-OBJS)
 
 %.bin.o: %.o $(PIELDS)
 	$(E) "  GEN     " $@
+ifeq ($(@:.bin.o=),parasite)
+	$(Q) $(LD) --oformat=elf64-x86-64 -T $(PIELDS) -o $@ $< $(LIB-OBJS) $(PASM-OBJS)
+else
 	$(Q) $(LD) --oformat=elf64-x86-64 -T $(PIELDS) -o $@ $< $(LIB-OBJS)
+endif
 
 %.bin: %.bin.o
 	$(E) "  GEN     " $@
-- 
1.7.7.6



More information about the CRIU mailing list