You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2020/05/05 02:41:11 UTC

[GitHub] [incubator-teaclave-sgx-sdk] volcano0dr commented on issue #232: support cargo test

volcano0dr commented on issue #232:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/232#issuecomment-623804958


   > 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`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org