This repo is about creating two static libraries, libsgx_tcv.a and libsgx_ucv.a;
The idea is that the first lib runs in the enclave and the second doesn't -- is that correct ?
If 1. is correct, and I create a simple program (running outside the enclave) that links with the first lib (i.e., libsgx_tcv.a), does it mean that the CPU will switch in Enclave Mode each time I make a call to a function in that lib ?
Could you point me toward how to link static a library on SGX to have everything (lib and main file) executed in the enclave?
I have some quick questions:
This repo is about creating two static libraries,
libsgx_tcv.a
andlibsgx_ucv.a
;libsgx_tcv.a
), does it mean that the CPU will switch in Enclave Mode each time I make a call to a function in that lib ?