]> git.lizzy.rs Git - rust.git/commit
Change linker for x86_64-fortanix-unknown-sgx to rust-lld
authorParth Sane <parthsane@gmail.com>
Mon, 2 Dec 2019 12:22:45 +0000 (17:52 +0530)
committerParth Sane <parthsane@gmail.com>
Tue, 3 Dec 2019 09:14:14 +0000 (14:44 +0530)
commit54b206034fe50b2234ab8ddb15214f723fe8d951
treebec85b917497520836a6dba7e2c9242bfbf4b7ec
parent4af3ee8ee2a2bc1286b021db7600ba990359cf3f
Change linker for x86_64-fortanix-unknown-sgx to rust-lld

For SGX, the relocation using the relocation table is done by
the code in rust/src/libstd/sys/sgx/abi/reloc.rs and this code
should not require relocation. Setting RelaxELFRelocations flag
if allows this to happen, hence adding a Target Option for it.
src/librustc_codegen_llvm/back/write.rs
src/librustc_codegen_llvm/llvm/ffi.rs
src/librustc_codegen_ssa/back/linker.rs
src/librustc_target/spec/mod.rs
src/librustc_target/spec/x86_64_fortanix_unknown_sgx.rs
src/rustllvm/PassWrapper.cpp