Currently, the Intel SGX-SDK patch and aep_trampoline.S use global variables to store the current TCS. This may not work in a multi-threaded environment (e.g., Gramine).
Best would be better to properly refactor to avoid the usage of a stored tcs variable in AEP interception in aep_trampoline.S and debug functionality in enclave.c.
Currently, the Intel SGX-SDK patch and
aep_trampoline.Suse global variables to store the current TCS. This may not work in a multi-threaded environment (e.g., Gramine).Best would be better to properly refactor to avoid the usage of a stored tcs variable in AEP interception in
aep_trampoline.Sand debug functionality inenclave.c.