> though our initial PoC works, it has problem with ld from LLVM9, which > optimizes out ctors. related issues: mmastrac/rust-ctor#27 mmastrac/rust-ctor#43
Regarding the # [ctros] link issue, unused symbols are pruned, even if # [used] is used. After testing, the following method can be used to temporarily solve this problem: When linking test-enclave.a in your Makefile, use the whole-archice ld command line option `-Wl,-whole-archive -ltest-enclave -Wl,-no-whole-archive` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/232#issuecomment-623804958
