mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-06 11:20:32 +00:00
security: Enable '-fpie, -pie' options
To be sure hypervisor and DM are position independent and executable. Tracked-On: #1122 Signed-off-by: wenshelx <wenshengx.wang@intel.com> Acked-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
@@ -5,6 +5,7 @@ CFLAGS := -Wall
|
||||
CFLAGS += -I../../devicemodel/include
|
||||
CFLAGS += -I../../devicemodel/include/public
|
||||
CFLAGS += -I../../hypervisor/include
|
||||
CFLAGS += -fpie
|
||||
|
||||
ifeq ($(RELEASE),0)
|
||||
CFLAGS += -g -DMNGR_DEBUG
|
||||
@@ -13,6 +14,7 @@ endif
|
||||
LDFLAGS := -L$(OUT_DIR)
|
||||
LDFLAGS += -lacrn-mngr
|
||||
LDFLAGS += -lpthread
|
||||
LDFLAGS += -pie
|
||||
|
||||
.PHONY: all
|
||||
all: $(OUT_DIR)/libacrn-mngr.a $(OUT_DIR)/acrn_mngr.h $(OUT_DIR)/acrnctl $(OUT_DIR)/acrnd
|
||||
|
Reference in New Issue
Block a user