From 5e770502e81e6bde08f55db6b0f66fbc1013850d Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Mon, 3 Oct 2022 12:34:17 +0100 Subject: [PATCH] build: Drop -no-pie from CFLAGS 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 Signed-off-by: Andrew Cooper --- build/common.mk | 3 --- 1 file changed, 3 deletions(-) diff --git a/build/common.mk b/build/common.mk index c1f6074..df41fcc 100644 --- a/build/common.mk +++ b/build/common.mk @@ -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 -- 2.39.5