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/08/01 01:58:30 UTC

[GitHub] [incubator-teaclave-sgx-sdk] xu-cheng opened a new pull request #260: Fix switchless sample code

xu-cheng opened a new pull request #260:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/260


   In order to use the switchless feature of the SGX, the app binary needs
   to be linked with the following flags.
   
   ```
   -Wl,--whole-archive -lsgx_uswitchless -Wl,--no-whole-archive
   ````
   
   Noted that there is currently no proper way to pass custom link flags to
   all the binaries in a cargo project. As such, the `link_args` macro need
   to be set for each of Rust files with `main` methods.
   
   References:
   
   * Build flags used in Intel SGX sample code: https://github.com/intel/linux-sgx/blob/ce4a18d9a0963b14f717cc7462241cfadd233f55/SampleCode/Switchless/Makefile#L104
   * Rust tracking issue on `link_args`: https://github.com/rust-lang/rust/issues/29596
   * PR for `cargo:rustc-link-arg-bins` in cargo build script: https://github.com/rust-lang/cargo/pull/8441


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


[GitHub] [incubator-teaclave-sgx-sdk] dingelish merged pull request #260: Fix switchless sample code

Posted by GitBox <gi...@apache.org>.
dingelish merged pull request #260:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/260


   


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


[GitHub] [incubator-teaclave-sgx-sdk] dingelish commented on pull request #260: Fix switchless sample code

Posted by GitBox <gi...@apache.org>.
dingelish commented on pull request #260:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/260#issuecomment-668173241


   thanks!


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