Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

Building enclave for x64

Komarek__David
Beginner
215 Views

Hello,

I tried to build my enclave for x64 and I got the following warning:

The enclave contains an import table

But when I build the same enclave for x86 I don't get any warning or error.

Both of these version of enclaves link same libraries.

Here is list of all libraries that are linked against my enclave:

sgx_trts.lib;sgx_tstdc.lib;sgx_tcrypto.lib;sgx_tservice.lib;sgx_tcxx.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;comdlg32.lib;advapi32.lib

SGX libraries are linked from C:/Program Files (x86)/Intel/IntelSGXSDK/bin/x64; (Win32 for 32 bit platform).

Could you please provide me some explenation what I am doing wrong?

Regards,

David K.

0 Kudos
1 Reply
Francisco_C_Intel
215 Views

Linking against

kernel32.lib;user32.lib;gdi32.lib;winspool.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;comdlg32.lib;advapi32.lib

Means your enclave will likely depend on various system DLLs. Please remove these (and any system calls your enclave may have).

 

Thanks,

Francisco

Reply