mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
x86: Move CET control to _dl_x86_feature_control [BZ #25887]
1. Include <dl-procruntime.c> to get architecture specific initializer in rtld_global. 2. Change _dl_x86_feature_1[2] to _dl_x86_feature_1. 3. Add _dl_x86_feature_control after _dl_x86_feature_1, which is a struct of 2 bitfields for IBT and SHSTK control This fixes [BZ #25887].
This commit is contained in:
@ -47,7 +47,27 @@
|
||||
# if !defined PROCINFO_DECL && defined SHARED
|
||||
._dl_x86_feature_1
|
||||
# else
|
||||
PROCINFO_CLASS unsigned int _dl_x86_feature_1[2]
|
||||
PROCINFO_CLASS unsigned int _dl_x86_feature_1
|
||||
# endif
|
||||
# ifndef PROCINFO_DECL
|
||||
= 0
|
||||
# endif
|
||||
# if !defined SHARED || defined PROCINFO_DECL
|
||||
;
|
||||
# else
|
||||
,
|
||||
# endif
|
||||
|
||||
# if !defined PROCINFO_DECL && defined SHARED
|
||||
._dl_x86_feature_control
|
||||
# else
|
||||
PROCINFO_CLASS struct dl_x86_feature_control _dl_x86_feature_control
|
||||
# endif
|
||||
# ifndef PROCINFO_DECL
|
||||
= {
|
||||
.ibt = cet_elf_property,
|
||||
.shstk = cet_elf_property
|
||||
}
|
||||
# endif
|
||||
# if !defined SHARED || defined PROCINFO_DECL
|
||||
;
|
||||
|
Reference in New Issue
Block a user