Compiling an Intel® Software Guard Extensions (Intel® SGX) Application with Position-Dependent Code
Content Type: Compatibility | Article ID: 000090873 | Last Reviewed: 05/23/2022
Is it possible to create an Intel® SGX application that refernces a static library, compiled as position-dependent code? Use case:
Porting a library means recompiling it from source where the -fPIC flag is mandatory. If you only have access to .a files of a library, using Gramine to wrap the whole application in an enclave is the best option although this is not the same as porting a library.