diff options
author | Florian Weimer <fweimer@redhat.com> | 2025-01-09 19:30:44 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2025-01-09 19:30:44 +0100 |
commit | d1da011118ad8e35002034128458355a2de570ef (patch) | |
tree | 697fb370500477b36b8b061f945bd413b86e4539 /sysdeps/i386 | |
parent | 9b71570c465a38cc19c3362526048c7dcfc999e6 (diff) | |
download | glibc-d1da011118ad8e35002034128458355a2de570ef.zip glibc-d1da011118ad8e35002034128458355a2de570ef.tar.gz glibc-d1da011118ad8e35002034128458355a2de570ef.tar.bz2 |
elf: Always define TLS_TP_OFFSET
This will be needed to compute __rseq_offset outside of the TLS
relocation machinery.
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
Diffstat (limited to 'sysdeps/i386')
-rw-r--r-- | sysdeps/i386/dl-tls.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/i386/dl-tls.h b/sysdeps/i386/dl-tls.h index eed1832..2dac81b 100644 --- a/sysdeps/i386/dl-tls.h +++ b/sysdeps/i386/dl-tls.h @@ -28,6 +28,9 @@ typedef struct dl_tls_index TLS block. */ #define TLS_DTV_OFFSET 0 +/* Static TLS offsets are relative to the unadjusted thread pointer. */ +#define TLS_TP_OFFSET 0 + #ifdef SHARED /* This is the prototype for the GNU version. */ extern void *___tls_get_addr (tls_index *ti) |