diff mbox

[XTF] build: append -fno-pic to CFLAGS

Message ID 20170731172057.29360-1-wei.liu2@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Wei Liu July 31, 2017, 5:20 p.m. UTC
It appears that Stretch's gcc has this on by default, which causes the
generating of several get_pc_thunk's, which breaks xsa-192 test.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
 build/common.mk | 1 +
 1 file changed, 1 insertion(+)

Comments

Andrew Cooper July 31, 2017, 5:38 p.m. UTC | #1
On 31/07/17 18:20, Wei Liu wrote:
> It appears that Stretch's gcc has this on by default, which causes the
> generating of several get_pc_thunk's, which breaks xsa-192 test.
>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>

Reviewed and committed.  Thanks.

~Andrew
diff mbox

Patch

diff --git a/build/common.mk b/build/common.mk
index f1de800..4ce6abf 100644
--- a/build/common.mk
+++ b/build/common.mk
@@ -28,6 +28,7 @@  COMMON_CFLAGS += -fno-common -fno-asynchronous-unwind-tables -fno-strict-aliasin
 COMMON_CFLAGS += -fno-stack-protector -ffreestanding
 COMMON_CFLAGS += -mno-red-zone -mno-sse
 COMMON_CFLAGS += -Wno-unused-parameter -Winline
+COMMON_CFLAGS += -fno-pic
 
 COMMON_AFLAGS-x86_32 := -m32
 COMMON_AFLAGS-x86_64 := -m64