diff options
author | Florian Weimer <fweimer@redhat.com> | 2025-03-28 09:26:59 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2025-03-29 10:19:17 +0100 |
commit | 87ab0c7f7f7c4bc16cda782c703b61cd28f383a3 (patch) | |
tree | 1e256982f635ae05ccb00ca5dd3dd2e1127afc3d /sysdeps/pthread/sem_routines.c | |
parent | 60cd7123a6c4441a509c22cc1d5da60df2c1dfeb (diff) | |
download | glibc-87ab0c7f7f7c4bc16cda782c703b61cd28f383a3.zip glibc-87ab0c7f7f7c4bc16cda782c703b61cd28f383a3.tar.gz glibc-87ab0c7f7f7c4bc16cda782c703b61cd28f383a3.tar.bz2 |
x86: Use separate variable for TLSDESC XSAVE/XSAVEC state size (bug 32810)
Previously, the initialization code reused the xsave_state_full_size
member of struct cpu_features for the TLSDESC state size. However,
the tunable processing code assumes that this member has the
original XSAVE (non-compact) state size, so that it can use its
value if XSAVEC is disabled via tunable.
This change uses a separate variable and not a struct member because
the value is only needed in ld.so and the static libc, but not in
libc.so. As a result, struct cpu_features layout does not change,
helping a future backport of this change.
Fixes commit 9b7091415af47082664717210ac49d51551456ab ("x86-64:
Update _dl_tlsdesc_dynamic to preserve AMX registers").
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit 145097dff170507fe73190e8e41194f5b5f7e6bf)
Diffstat (limited to 'sysdeps/pthread/sem_routines.c')
0 files changed, 0 insertions, 0 deletions