mirror of git://sourceware.org/git/glibc.git
AArch64: Avoid memset ifunc in cpu-features.c [BZ #33112]
During early startup memcpy or memset must not be called since many targets use ifuncs for them which won't be initialized yet. Security hardening may use -ftrivial-auto-var-init=zero which inserts calls to memset. Redirect memset to memset_generic by including dl-symbol-redir-ifunc.h in cpu-features.c. This fixes BZ #33112. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
1061b75412
commit
681a24ae4d
|
@ -23,6 +23,7 @@
|
|||
#include <sys/prctl.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <dl-tunables-parse.h>
|
||||
#include <dl-symbol-redir-ifunc.h>
|
||||
|
||||
#define DCZID_DZP_MASK (1 << 4)
|
||||
#define DCZID_BS_MASK (0xf)
|
||||
|
|
Loading…
Reference in New Issue