aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/i386/Makefile
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2019-12-29 16:04:51 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-12-29 16:54:08 +0100
commita678c13b8f9fa67c6cffe6ecf4ba1d5e53479e1b (patch)
treecb62c6fb5a84d4cdcb6d46f78318fb1818481af3 /sysdeps/mach/hurd/i386/Makefile
parent344e755248ce02c0f8d095d11cc49e340703d926 (diff)
downloadglibc-a678c13b8f9fa67c6cffe6ecf4ba1d5e53479e1b.tar
glibc-a678c13b8f9fa67c6cffe6ecf4ba1d5e53479e1b.tar.gz
glibc-a678c13b8f9fa67c6cffe6ecf4ba1d5e53479e1b.tar.bz2
glibc-a678c13b8f9fa67c6cffe6ecf4ba1d5e53479e1b.zip
hurd: Add getcontext, makecontext, setcontext, swapcontext
Adapted from the Linux x86 functions. Not thoroughly tested, but manual testing as well as glibc tests look fine, and manual -lpthread testing also looks fine (within the given bounds for a new stack to be used with makecontext). This has also been in use in Debian since 2013.
Diffstat (limited to 'sysdeps/mach/hurd/i386/Makefile')
-rw-r--r--sysdeps/mach/hurd/i386/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/i386/Makefile b/sysdeps/mach/hurd/i386/Makefile
index 8404eb086c..2a7d138fff 100644
--- a/sysdeps/mach/hurd/i386/Makefile
+++ b/sysdeps/mach/hurd/i386/Makefile
@@ -106,3 +106,7 @@ ifeq ($(subdir),elf)
# callbacks whose parameters don't permit to get the context parameters.
check-execstack-xfail += ld.so libc.so libpthread.so
endif
+
+ifeq ($(subdir),stdlib)
+gen-as-const-headers += ucontext_i.sym
+endif