Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sgx_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ static void *_load_libsgx_uae_service()
if ( l_libsgx_uae_service == 0 ) {
#ifdef _WIN32
h_libsgx_uae_service= LoadLibrary("libsgx_uae_service.dll");
#elif SGX_HW_SIM
h_libsgx_uae_service= dlopen("libsgx_uae_service_sim.so", RTLD_GLOBAL|RTLD_NOW);
#else
h_libsgx_uae_service= dlopen("libsgx_uae_service.so", RTLD_GLOBAL|RTLD_NOW);
#endif
Expand All @@ -184,6 +186,8 @@ static void *_load_libsgx_urts()
if ( l_libsgx_urts == 0 ) {
#ifdef _WIN32
h_libsgx_urts= LoadLibrary("libsgx_urts.dll");
#elif SGX_HW_SIM
h_libsgx_urts= dlopen("libsgx_urts_sim.so", RTLD_GLOBAL|RTLD_NOW);
#else
h_libsgx_urts= dlopen("libsgx_urts.so", RTLD_GLOBAL|RTLD_NOW);
#endif
Expand Down