[CRIU] [PATCHv3 04/23] criu/pie: rename native.lib.a into pie.lib.a
Dmitry Safonov
dsafonov at virtuozzo.com
Fri Dec 9 10:19:30 PST 2016
As we have only one pie lib - no need to name it {native,compat}.
The next patch cleans Makefile.
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
criu/Makefile | 6 +++---
criu/pie/Makefile | 8 ++++----
criu/pie/Makefile.library | 16 ++++++++--------
3 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/criu/Makefile b/criu/Makefile
index 41ee7028b481..e580f1a137cd 100644
--- a/criu/Makefile
+++ b/criu/Makefile
@@ -42,12 +42,12 @@ $(ARCH-LIB):
#
# PIE library code.
-criu/pie/native.lib.a: $(ARCH-LIB)
+criu/pie/pie.lib.a: $(ARCH-LIB)
$(Q) $(MAKE) $(call build-as,Makefile.library,criu/pie) all
#
# PIE code blobs themseves.
-pie: criu/pie/native.lib.a compel/plugins/std.built-in.o
+pie: criu/pie/pie.lib.a compel/plugins/std.built-in.o
$(Q) $(MAKE) $(build)=criu/pie all
.PHONY: pie
@@ -56,7 +56,7 @@ criu/pie/%: pie
#
# CRIU executable
-PROGRAM-BUILTINS += criu/pie/native.lib.a
+PROGRAM-BUILTINS += criu/pie/pie.lib.a
PROGRAM-BUILTINS += images/built-in.o
PROGRAM-BUILTINS += $(obj)/built-in.o
PROGRAM-BUILTINS += $(ARCH-LIB)
diff --git a/criu/pie/Makefile b/criu/pie/Makefile
index 9ee1f7514c21..7d691d080668 100644
--- a/criu/pie/Makefile
+++ b/criu/pie/Makefile
@@ -103,17 +103,17 @@ endif
$(obj)/restorer.built-in.o: $(compel_std-native)
$(obj)/restorer.built-in.bin.o: $(obj)/restorer.built-in.o \
- $(obj)/native.lib.a $(compel_pack_lds-native)
+ $(obj)/pie.lib.a $(compel_pack_lds-native)
$(call msg-gen, $@)
- $(Q) $(LD) -r -T $(compel_pack_lds-native) -o $@ $< $(obj)/native.lib.a
+ $(Q) $(LD) -r -T $(compel_pack_lds-native) -o $@ $< $(obj)/pie.lib.a
# $1 - binary mode: native/compat
define gen-rule-built-in.bin.o
$(obj)/$(1).built-in.o: $(compel_std-$(1))
$(obj)/parasite-$(1).built-in.bin.o: $(obj)/$(1).built-in.o \
- $(obj)/$(1).lib.a $(compel_pack_lds-$(1))
+ $(obj)/pie.lib.a $(compel_pack_lds-$(1))
$$(call msg-gen, $$@)
- $(Q) $(LD) -r -T $(compel_pack_lds-$(1)) -o $$@ $$< $(obj)/$(1).lib.a
+ $(Q) $(LD) -r -T $(compel_pack_lds-$(1)) -o $$@ $$< $(obj)/pie.lib.a
endef
$(eval $(call map,gen-rule-built-in.bin.o,$(parasite_target)))
diff --git a/criu/pie/Makefile.library b/criu/pie/Makefile.library
index c011508c5a57..43da82929076 100644
--- a/criu/pie/Makefile.library
+++ b/criu/pie/Makefile.library
@@ -1,17 +1,17 @@
-target := native
+target := pie
CFLAGS := $(filter-out -DCONFIG_X86_64,$(CFLAGS))
CFLAGS += -fno-stack-protector -DCR_NOGLIBC
LDFLAGS += -z noexecstack
-CFLAGS_native += -fpie
+CFLAGS_pie += -fpie
ifeq ($(ARCH),x86)
ifeq ($(CONFIG_COMPAT),y)
target += compat
- native-lib-y += util-vdso-elf32.o
+ pie-lib-y += util-vdso-elf32.o
endif
- CFLAGS_native += -DCONFIG_X86_64
+ CFLAGS_pie += -DCONFIG_X86_64
CFLAGS_compat += -fno-pic -m32 -DCONFIG_X86_32
CFLAGS_util-vdso-elf32.o += -DCONFIG_VDSO_32
OBJS += ./$(ARCH_DIR)/memcpy.o
@@ -36,9 +36,9 @@ ifeq ($(SRCARCH),ppc64)
./$(ARCH_DIR)/memcmp_64.o ./$(ARCH_DIR)/misc.o
endif
-define gen-native-objs
-native-lib-y += $(1)
-CFLAGS_$(1) := $(CFLAGS_native)
+define gen-pie-objs
+pie-lib-y += $(1)
+CFLAGS_$(1) := $(CFLAGS_pie)
endef
compat-obj = $(basename $(notdir $(1)))-compat.o
@@ -47,7 +47,7 @@ compat-lib-y += $(dir ./$(call objectify,$(1)))compat/$(compat-obj)
CFLAGS_$(compat-obj) := $(CFLAGS_compat)
endef
-$(eval $(call map,gen-native-objs,$(OBJS)))
+$(eval $(call map,gen-pie-objs,$(OBJS)))
$(eval $(call map,gen-compat-objs,$(OBJS)))
#
--
2.10.2
More information about the CRIU
mailing list