From 918cdb0b9fd928ee85c00efeac17ec304b26d375 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 12 Dec 2019 14:16:52 -0500 Subject: [PATCH 1/2] omit ignored flag: -Os The -O0 at the end is winning... --- sgx-aes/Enclave/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgx-aes/Enclave/Makefile b/sgx-aes/Enclave/Makefile index 81f86d5..ab04e6a 100644 --- a/sgx-aes/Enclave/Makefile +++ b/sgx-aes/Enclave/Makefile @@ -6,7 +6,7 @@ SIGNER = sgx_sign LINUX_SGX = ~/sgx-step-dpl/linux-sgx/common/inc INCLUDE += -I$(SGX_SDK)/include/ -I$(SGX_SDK)/include/tlibc -I$(SGX_SDK)/include/ipp -Iinternal/ -T_CFLAGS = $(CFLAGS) -maes -fvisibility=hidden -fpie -fstack-protector -g -Os -mavx2 -march=haswell -Wpsabi -maes -O0 +T_CFLAGS = $(CFLAGS) -maes -fvisibility=hidden -fpie -fstack-protector -g -mavx2 -march=haswell -Wpsabi -maes -O0 U_CFLAGS = $(CFLAGS) -fvisibility=hidden -fpie -fstack-protector -g AR_FLAGS = rcs OBJECTS = encl.o From 2741ae9f0bcdfe098320b756f3840c8fcba68600 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 12 Dec 2019 14:15:35 -0500 Subject: [PATCH 2/2] omit duplicate flag: maes --- sgx-aes/Enclave/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgx-aes/Enclave/Makefile b/sgx-aes/Enclave/Makefile index ab04e6a..af69021 100644 --- a/sgx-aes/Enclave/Makefile +++ b/sgx-aes/Enclave/Makefile @@ -6,7 +6,7 @@ SIGNER = sgx_sign LINUX_SGX = ~/sgx-step-dpl/linux-sgx/common/inc INCLUDE += -I$(SGX_SDK)/include/ -I$(SGX_SDK)/include/tlibc -I$(SGX_SDK)/include/ipp -Iinternal/ -T_CFLAGS = $(CFLAGS) -maes -fvisibility=hidden -fpie -fstack-protector -g -mavx2 -march=haswell -Wpsabi -maes -O0 +T_CFLAGS = $(CFLAGS) -fvisibility=hidden -fpie -fstack-protector -g -mavx2 -march=haswell -Wpsabi -maes -O0 U_CFLAGS = $(CFLAGS) -fvisibility=hidden -fpie -fstack-protector -g AR_FLAGS = rcs OBJECTS = encl.o