From 741f4c710929e3cf866e64293449e07226cc234f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 18 Jan 2024 15:51:36 +0100 Subject: noMMU ELF needs -fpie/pie --- mk/vars.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mk') diff --git a/mk/vars.mk b/mk/vars.mk index 87a622c25..d99634443 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -218,6 +218,10 @@ TARGET_CFLAGS+= -static TARGET_CXXFLAGS+= -static TARGET_LDFLAGS+= -static endif +else +TARGET_CFLAGS+= -fpie +TARGET_CXXFLAGS+= -fpie +TARGET_LDFLAGS+= -fpie -pie endif ifneq ($(ADK_TARGET_USE_SSP),) -- cgit v1.2.3