Re: [PATCH 3/4] hurd: Fix sc_i386_thread_state layout

2023-05-15 Thread Samuel Thibault
Applied, thanks! Sergey Bugaev, le lun. 15 mai 2023 11:33:22 +0300, a ecrit: > 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 >

[PATCH 3/4] hurd: Fix sc_i386_thread_state layout

2023-05-15 Thread Sergey Bugaev
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