glibc/sysdeps/i386/htl/tcb-offsets.sym
Samuel Thibault 02937d825a hurd: fix clearing SS_ONSTACK when longjmp-ing from sighandler
* sysdeps/i386/htl/Makefile: New file.
* sysdeps/i386/htl/tcb-offsets.sym: New file.
* sysdeps/mach/hurd/i386/Makefile [setjmp] (gen-as-const-headers): Add
signal-defines.sym.
* sysdeps/mach/hurd/i386/____longjmp_chk.S: Include tcb-offsets.h.
(____longjmp_chk): Harmonize with i386's __longjmp. Clear SS_ONSTACK
when jumping off the alternate stack.
* sysdeps/mach/hurd/i386/__longjmp.S: New file.
2020-06-06 20:24:30 +02:00

9 lines
305 B
Plaintext

#include <sysdep.h>
#include <tls.h>
#include <kernel-features.h>
MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
SYSINFO_OFFSET offsetof (tcbhead_t, sysinfo)
POINTER_GUARD offsetof (tcbhead_t, pointer_guard)
SIGSTATE_OFFSET offsetof (tcbhead_t, _hurd_sigstate)