diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-02-02 22:37:20 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-02-02 22:37:20 +0100 |
commit | 6c33b018438ee799c29486f21d43d8100bdbd597 (patch) | |
tree | da12c7d4846b74ddfe813887548afa4669c8a5ec /sysdeps/unix/sysv/linux/sys/rseq.h | |
parent | 80a08d0faa9b224019f895800c4d97de4e23e1aa (diff) | |
download | glibc-6c33b018438ee799c29486f21d43d8100bdbd597.tar.gz glibc-6c33b018438ee799c29486f21d43d8100bdbd597.tar.xz glibc-6c33b018438ee799c29486f21d43d8100bdbd597.zip |
Linux: Use ptrdiff_t for __rseq_offset
This matches the data size initial-exec relocations use on most targets. Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/sys/rseq.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/sys/rseq.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/rseq.h b/sysdeps/unix/sysv/linux/sys/rseq.h index db6c3cebf1..8533782cf4 100644 --- a/sysdeps/unix/sysv/linux/sys/rseq.h +++ b/sysdeps/unix/sysv/linux/sys/rseq.h @@ -21,6 +21,7 @@ /* Architecture-specific rseq signature. */ #include <bits/rseq.h> +#include <stddef.h> #include <stdint.h> #include <sys/cdefs.h> #include <bits/endian.h> @@ -172,7 +173,7 @@ struct rseq #endif /* __GLIBC_HAVE_KERNEL_RSEQ */ /* Offset from the thread pointer to the rseq area. */ -extern const int __rseq_offset; +extern const ptrdiff_t __rseq_offset; /* Size of the registered rseq area. 0 if the registration was unsuccessful. */ |