Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Building enclave for x64

Komarek__David
Beginner
482 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
482 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

0 Kudos
Reply