x86-64: Save APX registers in ld.so trampoline
commitdfb05f8e704edac70db38c4c8ee700769d91a413
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Feb 2024 15:17:10 +0000 (16 07:17 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 25 Feb 2024 17:22:15 +0000 (25 09:22 -0800)
tree6e31525cb20b29933e3209868d92610e5919a347
parent0a4d6c825405bb0dd5058566b01f12704cfc3731
x86-64: Save APX registers in ld.so trampoline

Add APX registers to STATE_SAVE_MASK so that APX registers are saved in
ld.so trampoline.  This fixes BZ #31371.

Also update STATE_SAVE_OFFSET and STATE_SAVE_MASK for i386 which will
be used by i386 _dl_tlsdesc_dynamic.
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
sysdeps/x86/sysdep.h