Skip to content

Export mcontext fields on x86_64-unknown-linux-musl #1553

Closed
@nmattia

Description

@nmattia

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:

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions