Skip to content
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

[0.2] Backports #4006

Merged
merged 11 commits into from
Nov 7, 2024
Prev Previous commit
Next Next commit
Fix alignment of uc_ucontext fields on arm64 android (#3894)
[ change `core` to `::core` and move ucontext_t to s_no_extra_traits for
  backport - Trevor ]
(backport <#3894>)
(cherry picked from commit 707d32c)
  • Loading branch information
CUB3D authored and tgross35 committed Nov 7, 2024
commit fabc6d10a4ab1c3bca79da0ee2038d4c27532765
6 changes: 4 additions & 2 deletions src/unix/linux_like/android/b64/aarch64/align.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ s_no_extra_traits! {
pub struct max_align_t {
priv_: [f32; 8]
}
}

s! {
#[allow(missing_debug_implementations)]
pub struct ucontext_t {
pub uc_flags: ::c_ulong,
pub uc_link: *mut ucontext_t,
pub uc_stack: ::stack_t,
pub uc_sigmask: ::sigset_t,
pub __pad: [u8; 1024 / 8 - ::core::mem::size_of::<::sigset_t>()],
pub uc_mcontext: mcontext_t,
}
}

s! {
#[repr(align(16))]
pub struct mcontext_t {
pub fault_address: ::c_ulonglong,
Expand Down