Skip to content

Commit 7ee06b6

Browse files
committed
fix(sgx): do not use rbx register in asm!()
error: invalid register rbx: rbx is used internally by LLVM and cannot be used as an operand for inline asm So, we pull in a newer `sgx` crate version, which has this fixed. See: rust-lang/rust#84658 (comment) and: https://github.com/rust-lang/rust/pull/84658/files#diff-d7283132d97a993fad4e2d491ac883dbce4e17fe248cdf37fa3f9334e2a5a115 Signed-off-by: Harald Hoyer <[email protected]>
1 parent 683c6a5 commit 7ee06b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/shim-sgx/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/shim-sgx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sgx-heap = { path = "../sgx-heap" }
1414
sallyport = { git = "https://github.com/enarx/sallyport", rev = "efccf0f" }
1515
rcrt1 = { git = "https://github.com/enarx/rcrt1", rev = "2205dc7" }
1616
compiler_builtins = { version = "0.1", default-features = false, features = [ "mem" ] }
17-
sgx = { git = "https://github.com/enarx/sgx", rev = "5292e53", features = [ "asm" ] }
17+
sgx = { git = "https://github.com/enarx/sgx", rev = "4bb50e55bc8717c5bc2a98d680bf1be436cda8de", features = [ "asm" ] }
1818
goblin = { version = "0.3", default-features = false, features = [ "elf64" ] }
1919
crt0stack = { version = "0.1", default-features = false }
2020
libc = { version = "0.2", default-features = false }

0 commit comments

Comments
 (0)