aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/s390
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-01-07 09:37:31 +0100
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-01-07 09:42:23 +0100
commit05d138ef07481b16f1aaee648798cc51182ec65e (patch)
tree1b3641bd6db26d0a000aa899b69b7107463b65e5 /sysdeps/s390
parent93a45ff1ca6d459618bb0cf93580c4b2809a4b61 (diff)
downloadglibc-05d138ef07481b16f1aaee648798cc51182ec65e.zip
glibc-05d138ef07481b16f1aaee648798cc51182ec65e.tar.gz
glibc-05d138ef07481b16f1aaee648798cc51182ec65e.tar.bz2
S/390: Make ucontext_t extendible.
Diffstat (limited to 'sysdeps/s390')
-rw-r--r--sysdeps/s390/Makefile4
-rw-r--r--sysdeps/s390/rtld-global-offsets.sym7
2 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/s390/Makefile b/sysdeps/s390/Makefile
index fdc6ee5..42978dc 100644
--- a/sysdeps/s390/Makefile
+++ b/sysdeps/s390/Makefile
@@ -3,3 +3,7 @@ ifeq (yes,$(build-shared))
sysdep_routines += v1-longjmp v1-sigjmp
endif
endif
+
+ifeq ($(subdir),csu)
+gen-as-const-headers += rtld-global-offsets.sym
+endif
diff --git a/sysdeps/s390/rtld-global-offsets.sym b/sysdeps/s390/rtld-global-offsets.sym
new file mode 100644
index 0000000..ff4e97f
--- /dev/null
+++ b/sysdeps/s390/rtld-global-offsets.sym
@@ -0,0 +1,7 @@
+#define SHARED 1
+
+#include <ldsodefs.h>
+
+#define rtld_global_ro_offsetof(mem) offsetof (struct rtld_global_ro, mem)
+
+RTLD_GLOBAL_RO_DL_HWCAP_OFFSET rtld_global_ro_offsetof (_dl_hwcap)