Re: sigsp on Hurd/x86_64

2023-05-12 Thread Sergey Bugaev
Hello, On Fri, May 12, 2023 at 10:15 PM Bruno Haible wrote: > make no sense to me. After this statement, sigsp is > either 0x > or 0x0010. > > If aligning SP is intended, the line should read > > sigsp = (void *) ((uintptr_t) sigsp & -16UL); Indeed -- thank you

sigsp on Hurd/x86_64

2023-05-12 Thread Bruno Haible
Hi, In the file glibc/sysdeps/mach/hurd/x86/trampoline.c lines 199..204 #ifdef __x86_64__ /* Align SP at 16 bytes. Coupled with the fact that sigreturn_addr is 16-byte aligned within the stackframe struct, this ensures that it ends up on a 16-byte aligned address, as required by the