]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
build: Drop -no-pie from CFLAGS
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 3 Oct 2022 11:34:17 +0000 (12:34 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 3 Oct 2022 11:38:29 +0000 (12:38 +0100)
This is a GCC-only option which controls how GCC involves the linker, but we
don't use $(CC) for linking any more.

Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
build/common.mk

index c1f6074828bf77966a44151049d05624472ef024..df41fcc3e6a4363830ad1a9145544614d0ce1d6b 100644 (file)
@@ -24,9 +24,6 @@ cc-option = $(shell if [ -z "`echo 'int p=1;' | $(CC) $(1) -c -o /dev/null -x c
 
 ld-option = $(shell if $(LD) -v $(1) >/dev/null 2>&1; then echo y; else echo n; fi)
 
-# Disable PIE, but need to check if compiler supports it
-COMMON_CFLAGS-$(call cc-option,-no-pie) += -no-pie
-
 # Arrange for assembly files to have a proper .note.GNU-stack section added,
 # to silence warnings otherwise issued by GNU ld 2.39 and newer.
 COMMON_AFLAGS-$(call cc-option,-Wa$(comma)--noexecstack) += -Wa,--noexecstack