mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-03 02:11:08 +00:00
e333759f77
The real i386_thread_state Mach structure has an alignment of 8 on x86_64. However, in struct sigcontext, the compiler was packing sc_gs (which is the first member of sc_i386_thread_state) into the same 8-byte slot as sc_error; this resulted in the rest of sc_i386_thread_state members having wrong offsets relative to each other, and the overall sc_i386_thread_state layout mismatching that of i386_thread_state. Fix this by explicitly adding the required padding members, and statically asserting that this results in the desired alignment. The same goes for sc_i386_float_state. Checked on x86_64-gnu. Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> Message-Id: <20230515083323.1358039-4-bugaevc@gmail.com> |
||
---|---|---|
.. | ||
bits | ||
htl | ||
____longjmp_chk.S | ||
__longjmp.S | ||
c++-types.data | ||
dl-tls-initialized.c | ||
Implies | ||
intr-msg.h | ||
ld.abilist | ||
libanl.abilist | ||
libBrokenLocale.abilist | ||
libc_malloc_debug.abilist | ||
libc.abilist | ||
libcrypt.abilist | ||
libdl.abilist | ||
libm.abilist | ||
libmvec.abilist | ||
libpthread.abilist | ||
libresolv.abilist | ||
librt.abilist | ||
localplt.data | ||
longjmp-ts.c | ||
Makefile | ||
shlib-versions | ||
sigreturn.c | ||
static-start.S | ||
tls.h | ||
tlsdesc.sym | ||
ucontext_i.sym | ||
Versions | ||
vm_param.h |