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:
@ -315,6 +315,8 @@ rtld_hidden_def (_dl_starting_up)
|
||||
(except those which cannot be added for some reason). */
|
||||
struct rtld_global _rtld_global =
|
||||
{
|
||||
/* Get architecture specific initializer. */
|
||||
#include <dl-procruntime.c>
|
||||
/* Generally the default presumption without further information is an
|
||||
* executable stack but this is not true for all platforms. */
|
||||
._dl_stack_flags = DEFAULT_STACK_PERMS,
|
||||
|
Reference in New Issue
Block a user