Skip to content

Commit

Permalink
app: fix linker warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jovanbulck committed Sep 17, 2024
1 parent 26518e8 commit 3fc7b46
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/aep-redirect/Enclave/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ OUTPUT_T = $(ENCLAVE).so
OUTPUT_T_UNSIG = $(ENCLAVE).unsigned.so
OUTPUT_U = lib$(ENCLAVE)_proxy.a
LIB_DIRS = -L $(SGX_SDK)/lib$(LIB_SUFX)/
LD_FLAGS += -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles \
LD_FLAGS += -z noexecstack -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles \
-Wl,--whole-archive -Wl,--start-group $(ENCLAVE_LIBS) -Wl,--end-group \
-Wl,--no-whole-archive -Wl,--start-group $(ENCLAVE_LIB_PARTS) -Wl,--end-group \
-Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined \
Expand Down
1 change: 1 addition & 0 deletions app/aep-redirect/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
LIBSGXSTEP_DIR = ../..
LIBSGXSTEP = $(LIBSGXSTEP_DIR)/libsgxstep
URTS_LIB_PATH = $(LIBSGXSTEP_DIR)/linux-sgx/psw/urts/linux
-include $(LIBSGXSTEP)/Makefile.config

ifeq ($(SGX_SDK),)
SGX_SDK = /opt/intel/sgxsdk
Expand Down
2 changes: 1 addition & 1 deletion app/bench/Enclave/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ OUTPUT_T = $(ENCLAVE).so
OUTPUT_T_UNSIG = $(ENCLAVE).unsigned.so
OUTPUT_U = lib$(ENCLAVE)_proxy.a
LIB_DIRS = -L$(SGX_SDK)/lib$(LIB_SUFX)/
LD_FLAGS += -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles \
LD_FLAGS += -z noexecstack -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles \
-Wl,--whole-archive -Wl,--start-group $(ENCLAVE_LIBS) -Wl,--end-group \
-Wl,--no-whole-archive -Wl,--start-group $(ENCLAVE_LIB_PARTS) -Wl,--end-group \
-Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined \
Expand Down
2 changes: 1 addition & 1 deletion app/foreshadow/Enclave/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ OUTPUT_T = $(ENCLAVE).so
OUTPUT_T_UNSIG = $(ENCLAVE).unsigned.so
OUTPUT_U = lib$(ENCLAVE)_proxy.a
LIB_DIRS = -L$(SGX_SDK)/lib$(LIB_SUFX)/
LD_FLAGS += -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles \
LD_FLAGS += -z noexecstack -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles \
-Wl,--whole-archive -Wl,--start-group $(ENCLAVE_LIBS) -Wl,--end-group \
-Wl,--no-whole-archive -Wl,--start-group $(ENCLAVE_LIB_PARTS) -Wl,--end-group \
-Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined \
Expand Down
2 changes: 1 addition & 1 deletion app/lvi/Enclave/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ OUTPUT_T = $(ENCLAVE).so
OUTPUT_T_UNSIG = $(ENCLAVE).unsigned.so
OUTPUT_U = lib$(ENCLAVE)_proxy.a
LIB_DIRS = -L $(SGX_SDK)/lib$(LIB_SUFX)/
LD_FLAGS += -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles \
LD_FLAGS += -z noexecstack -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles \
-Wl,--whole-archive -Wl,--start-group $(ENCLAVE_LIBS) -Wl,--end-group \
-Wl,--no-whole-archive -Wl,--start-group $(ENCLAVE_LIB_PARTS) -Wl,--end-group \
-Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined \
Expand Down
1 change: 1 addition & 0 deletions app/lvi/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
LIBSGXSTEP_DIR = ../..
LIBSGXSTEP = $(LIBSGXSTEP_DIR)/libsgxstep
URTS_LIB_PATH = $(LIBSGXSTEP_DIR)/linux-sgx/psw/urts/linux
-include $(LIBSGXSTEP)/Makefile.config

ifeq ($(SGX_SDK),)
SGX_SDK = /opt/intel/sgxsdk
Expand Down
2 changes: 1 addition & 1 deletion app/memcmp/Enclave/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ OUTPUT_T = $(ENCLAVE).so
OUTPUT_T_UNSIG = $(ENCLAVE).unsigned.so
OUTPUT_U = lib$(ENCLAVE)_proxy.a
LIB_DIRS = -L$(SGX_SDK)/lib$(LIB_SUFX)/
LD_FLAGS += -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles \
LD_FLAGS += -z noexecstack -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles \
-Wl,--whole-archive -Wl,--start-group $(ENCLAVE_LIBS) -Wl,--end-group \
-Wl,--no-whole-archive -Wl,--start-group $(ENCLAVE_LIB_PARTS) -Wl,--end-group \
-Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined \
Expand Down

0 comments on commit 3fc7b46

Please sign in to comment.