Replace dlmalloc with tcmalloc
This commit is contained in:
		
							parent
							
								
									9bf2a77e16
								
							
						
					
					
						commit
						0490164a8f
					
				| @ -131,8 +131,12 @@ SGX_CXXFLAGS_T := $(SGX_CFLAGS_T) -std=c++11 -nostdinc++ -I$(SGX_SDK)/include/li | |||||||
| #  only the libaries that are explictly specified on the command line are 
 | #  only the libaries that are explictly specified on the command line are 
 | ||||||
| #  linked.
 | #  linked.
 | ||||||
| SGX_LFLAGS_T = $(SGX_COMMON_CFLAGS) -nostdlib -L$(SGX_LIBRARY_PATH) $(_Other_Link_Flags) \
 | SGX_LFLAGS_T = $(SGX_COMMON_CFLAGS) -nostdlib -L$(SGX_LIBRARY_PATH) $(_Other_Link_Flags) \
 | ||||||
| 	-Wl,--whole-archive -l$(Trts_Library_Name) -Wl,--no-whole-archive \
 | 	-Wl,--whole-archive -l$(Trts_Library_Name) -Wl,--no-whole-archive | ||||||
| 	-Wl,--start-group -lsgx_tcxx -lsgx_tstdc -l$(Crypto_Library_Name) -l$(Service_Library_Name) $(_Other_Enclave_Libs) -Wl,--end-group \
 | ifeq ($(SGX_MODE), HW) | ||||||
|  | SGX_LFLAGS_T += -Wl,--whole-archive -lsgx_tcmalloc -Wl,--no-whole-archive | ||||||
|  | endif | ||||||
|  | 
 | ||||||
|  | SGX_LFLAGS_T += -Wl,--start-group -lsgx_tcxx -lsgx_tstdc -l$(Crypto_Library_Name) -l$(Service_Library_Name) $(_Other_Enclave_Libs) -Wl,--end-group \
 | ||||||
| 	-Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined \
 | 	-Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined \
 | ||||||
| 	-Wl,-pie,-eenclave_entry -Wl,--export-dynamic  \
 | 	-Wl,-pie,-eenclave_entry -Wl,--export-dynamic  \
 | ||||||
| 	-Wl,--defsym,__ImageBase=0 \
 | 	-Wl,--defsym,__ImageBase=0 \
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user