mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-02 06:43:00 +00:00
pie: x86-32 -- Build parasite code without PIC
There is no rip addressing in 32bit code but PIE code require GOT tables and friend which we better escape for performance sake. So lets use pc relocations it should do the trick. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
816c802176
commit
b07bbf8152
1 changed files with 6 additions and 1 deletions
|
|
@ -36,7 +36,12 @@ restorer-libs-e += $(SYSCALL-LIB)
|
|||
#
|
||||
CFLAGS := $(filter-out -pg,$(CFLAGS))
|
||||
|
||||
cflags-y += -DCR_NOGLIBC -fpie -Wa,--noexecstack -fno-stack-protector
|
||||
ifneq ($(filter-out i386 ia32, $(ARCH)),)
|
||||
cflags-y += -DCR_NOGLIBC -fpie -Wa,--noexecstack -fno-stack-protector
|
||||
else
|
||||
cflags-y += -DCR_NOGLIBC -fno-pic -Wa,--noexecstack -fno-stack-protector
|
||||
endif
|
||||
|
||||
ifeq ($(SRCARCH), arm)
|
||||
cflags-y += -marm
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue