mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
make: Disable stack executable bit
Otherwise crtools built with stack executable, in result kernel sets up current->personality |= READ_IMPLIES_EXEC; when our crtools get loaded into memory and mmap calls in restorer create VMAs with EXEC bit set. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
b0ea7a1a6b
commit
e6167b5aa6
@ -24,7 +24,7 @@ DEPS += $(patsubst %.o,%.d,$(POBJS))
|
|||||||
DEPS += $(patsubst %.o,%.d,$(ROBJS))
|
DEPS += $(patsubst %.o,%.d,$(ROBJS))
|
||||||
|
|
||||||
PIELDS := pie.lds.S
|
PIELDS := pie.lds.S
|
||||||
PIEFLAGS := -fpie
|
PIEFLAGS := -fpie -Wa,--noexecstack
|
||||||
ASMFLAGS := -D__ASSEMBLY__
|
ASMFLAGS := -D__ASSEMBLY__
|
||||||
|
|
||||||
$(PASM-OBJS): $(PASM-SRC) $(SYS-OBJ)
|
$(PASM-OBJS): $(PASM-SRC) $(SYS-OBJ)
|
||||||
|
@ -10,7 +10,7 @@ SYS-GEN := syscalls-x86-64.sh
|
|||||||
|
|
||||||
SYS-OBJ := $(patsubst %.S,%.o,$(SYS-ASM))
|
SYS-OBJ := $(patsubst %.S,%.o,$(SYS-ASM))
|
||||||
|
|
||||||
SYS-FLAGS := -fpie -Wstrict-prototypes -D__ASSEMBLY__ -nostdlib -fomit-frame-pointer
|
SYS-FLAGS := -fpie -Wstrict-prototypes -Wa,--noexecstack -D__ASSEMBLY__ -nostdlib -fomit-frame-pointer
|
||||||
|
|
||||||
$(SYS-ASM): $(SYS-GEN) $(SYS-DEF) $(SYS-ASM-COMMON) $(SYS-TYPES)
|
$(SYS-ASM): $(SYS-GEN) $(SYS-DEF) $(SYS-ASM-COMMON) $(SYS-TYPES)
|
||||||
$(E) " GEN " $@
|
$(E) " GEN " $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user