mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-09 02:24:45 +00:00
security: Enable '-fpie -pie' options
To be sure acrn debug tools are position independent and executable. Tracked-On: #1122 Signed-off-by: wenshelx <wenshengx.wang@intel.com> Acked-by: CHEN Gang <gang.c.chen@intel.com> Acked-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
@@ -14,6 +14,8 @@ CFLAGS += -m64 -D_GNU_SOURCE
|
||||
ifeq ($(RELEASE),0)
|
||||
CFLAGS += -DDEBUG_ACRN_CRASHLOG
|
||||
endif
|
||||
CFLAGS += -fpie
|
||||
LDFLAGS += -pie
|
||||
INCLUDE := -I $(BASEDIR)/common/include
|
||||
export INCLUDE
|
||||
export BUILDDIR
|
||||
@@ -43,6 +45,7 @@ ifeq ($(strip $(LIB_EXIST)),ltelemetry)
|
||||
EXTRA_LIBS += -ltelemetry
|
||||
endif
|
||||
export CFLAGS
|
||||
export LDFLAGS
|
||||
export EXTRA_LIBS
|
||||
|
||||
.PHONY:all
|
||||
|
||||
Reference in New Issue
Block a user