Commit 429da903 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

compel: criu -- Use std plugin directly

When compel build objects it provides ".compel.init" and
".compel.exit" setions for plugins init/exit routines
and when we link PIE code in criu we simply zap them
out but code still reference to them inside std
text (even if we don't call them) so dont drop them.

Eventually compel will be loading plugins by self but
for now it's good for testing purpose to refernce
the plugin inside criu code.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Reviewed-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 219a99c7
......@@ -13,7 +13,7 @@ restorer-obj-y += restorer.o
restorer-obj-y += ./$(ARCH_DIR)/restorer.o
ifeq ($(ARCH),x86)
restorer-obj-e += ./compel/arch/$(ARCH)/plugins/std/syscalls-64.o
restorer-obj-e += ./compel/plugins/std.built-in.o
ifeq ($(CONFIG_COMPAT),y)
restorer-obj-y += ./$(ARCH_DIR)/call32.o
......@@ -21,7 +21,7 @@ ifeq ($(ARCH),x86)
endif
native-obj-y += ./$(ARCH_DIR)/parasite-head-64.o
native-obj-e += ./compel/arch/$(ARCH)/plugins/std/syscalls-64.o
native-obj-e += ./compel/plugins/std.built-in.o
compat-obj-y += ./$(ARCH_DIR)/parasite-head-32.o
compat-obj-e += ./compel/plugins/std-32.built-in.o
......@@ -32,8 +32,8 @@ ifeq ($(ARCH),x86)
AFLAGS_parasite-head-32.d += -fno-pic -m32 -DCONFIG_X86_32
else
native-obj-y += ./$(ARCH_DIR)/parasite-head.o
native-obj-e += ./compel/arch/$(ARCH)/plugins/std/syscalls/syscalls.o
restorer-obj-e += ./compel/arch/$(ARCH)/plugins/std/syscalls/syscalls.o
native-obj-e += ./compel/plugins/std.built-in.o
restorer-obj-e += ./compel/plugins/std.built-in.o
endif
target += $(parasite_target) restorer
......
......@@ -3,6 +3,8 @@ SECTIONS
.text : {
*(.head.text)
*(.text*)
*(.compel.init)
*(.compel.exit)
}
.data : {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment