-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link openenclave project with sgxsdk project #4943
Comments
Are you using oeedger8r on your Enclave.edl or are you using sgxedger8r |
Hello, I'm using sgxedger8r on my Enclave.edl. |
Use oeedger8r on Enclave.edl, the ECALL function needs an argument |
You need to use oeedger8r for EDL files intended for use with openenclave. Since the enclave is written using OpenEnclave, on the host side, the EDL must be processed using oeedger8r. |
Thanks first! In fact, I have two EDL files, oe_result_t enclave_helloworld(oe_enclave_t* enclave); Now I'm trying to call this function in the host side in my sgx sdk project. Specifically, in the host side in the sgx sdk project, named // App.cpp in sgx sdk project
#include "helloworld_u.h" // generated by oeedger8r
...
enclave_helloworld() // what arg can I pass to this function?
... However, sgx sdk does not support struct |
On the host-side you need to link with liboehost.a. The
|
I'm try to link two projects, from which A is built on top of Open Enclave while B is built on top of SGX SDK. Specifically, B is executable and A is a library, and I want to call function
enclave_helloworld
in A from B. Unfortunately, I've encountered the following issue:Here is part of my
Enclave.edl
:And I'm working on a SGX server with Ubuntu 20.04. What can I do to link those projects successfully?
The text was updated successfully, but these errors were encountered: