Skip to content
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

libunwind changes needed to run code in sgx environment via rust-sgx. #57

Merged
merged 1 commit into from
Jun 2, 2020
Merged

libunwind changes needed to run code in sgx environment via rust-sgx. #57

merged 1 commit into from
Jun 2, 2020

Commits on May 26, 2020

  1. Changes needed for 'x86_64-fortanix-unknown-sgx' nightly target.

    Code is guarded via defines to enable only if 'RUST_SGX' is present.
    
    Main logic is in libunwind/src/AddressSpace.hpp
    We use 6 symbols to figure out where eh_frame / eh_frame_hdr is at runtime when loaded in an SGX enclave. (EH symbols + IMAGE base)
    These are set by 'fortanix-sgx-tools'.
    
    As notes:
    - Target above at the moment uses a pre-compiled libunwind.a from forked repo.
    - Goal of these changes is to use official llvm with patch.
    - Changes in rust-lang to use this are planned if/when this is accepted.
    - Ticket: fortanix/rust-sgx#174
    - Original ported changes: llvm/llvm-project@release/5.x...fortanix:release/5.x
    AdrianCX committed May 26, 2020
    Configuration menu
    Copy the full SHA
    2eeda8e View commit details
    Browse the repository at this point in the history