-
Notifications
You must be signed in to change notification settings - Fork 98
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
[Check code with CI] aj/update-sgx-alloc #609
base: master
Are you sure you want to change the base?
Conversation
The code change here should be moved to fortanix/rust#16 |
snmalloc-edp/build.rs
Outdated
let sn_alloc_align = sn_alloc_align.expect("sn_alloc_align"); | ||
|
||
let mut get_u64_at_symbol = |sym: elf::symbol::Symbol| { | ||
assert_eq!(sym.st_size, 8); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: is there a constant we can use instead of 8
here? Or is there a Rust equivalent of sizeof uint64_t
? This applies for the two uses of a literal 8
two lines down as well.
Addressed most of the comments left by @arai-fortanix in the latest commit but the unit test seems to be failing. Once I resolve that issue, I will move snmalloc-edp over to the rust repository. |
106b8c3
to
9cf7ed2
Compare
Glue code for snmalloc allocator in SGX enclaves.