about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-06-02 19:56:35 +0000
committerRoland McGrath <roland@gnu.org>2003-06-02 19:56:35 +0000
commit0f501b7f2a40ffaabb89dc35724aad11db2846c9 (patch)
tree52c424d7ea09f31bb74ef13ab58a21501fa7467c /sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym
parent4a5f21e4417e29f3f781294b345a7c60abcbec29 (diff)
downloadglibc-0f501b7f2a40ffaabb89dc35724aad11db2846c9.tar.gz
glibc-0f501b7f2a40ffaabb89dc35724aad11db2846c9.tar.xz
glibc-0f501b7f2a40ffaabb89dc35724aad11db2846c9.zip
Replace hard-coded offsets into struct sigcontext with generated file.
	* sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
	* sysdeps/unix/sysv/linux/ia64/Makefile
	[$(subdir) = stdlib] (gen-as-const-headers): Add it.
	* sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
	defining SC_* macros here.
Diffstat (limited to 'sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym')
-rw-r--r--sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym16
1 files changed, 16 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym b/sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym
new file mode 100644
index 0000000000..943e68a667
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym
@@ -0,0 +1,16 @@
+#include <stddef.h>
+#include <sys/ucontext.h>
+
+--
+SC_NAT		offsetof (struct sigcontext, sc_nat)
+SC_BSP		offsetof (struct sigcontext, sc_ar_bsp)
+SC_RNAT		offsetof (struct sigcontext, sc_ar_rnat)
+SC_UNAT		offsetof (struct sigcontext, sc_ar_unat)
+SC_FPSR		offsetof (struct sigcontext, sc_ar_fpsr)
+SC_PFS		offsetof (struct sigcontext, sc_ar_pfs)
+SC_LC		offsetof (struct sigcontext, sc_ar_lc)
+SC_PR		offsetof (struct sigcontext, sc_pr)
+SC_BR		offsetof (struct sigcontext, sc_br)
+SC_GR		offsetof (struct sigcontext, sc_gr)
+SC_FR		offsetof (struct sigcontext, sc_fr)
+SC_MASK		offsetof (struct sigcontext, sc_mask)