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:
Cyrill Gorcunov 2015-06-05 00:04:06 +03:00 committed by Pavel Emelyanov
parent 816c802176
commit b07bbf8152

View file

@ -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