-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
C-API-requestCategory: API requestCategory: API request
Description
lucet uses some of the fields of mcontext that were added recently for x86_64-unknown-linux-gnu. It'd be great to port those to x86_64-unknown-linux-musl. In particular:
libc/src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs
Lines 221 to 225 in 7b31ef3
| pub struct mcontext_t { | |
| pub gregs: [greg_t; 23], | |
| pub fpregs: *mut _libc_fpstate, | |
| __private: [u64; 8], | |
| } |
and
| pub const REG_RIP: ::c_int = 16; |
which were ported in ae06c2b and ac7f0fa. Lucet only need mcontext.gregs and REG_RIP to be defined (see here).
These are defined in musl with GNU_SOURCE:
Metadata
Metadata
Assignees
Labels
C-API-requestCategory: API requestCategory: API request