mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
string: Disable stack protector for memset in early static initialization
For ports that use the default memset, the compiler might generate early calls before the stack protector is initialized (for instance, riscv with -fstack-protector-all on _dl_aux_init). Checked on riscv64-linux-gnu-rv64imafdc-lp64d. Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
parent
dfa3394a60
commit
77c6a2717d
@ -270,6 +270,7 @@ CFLAGS-memcpy.c += $(no-stack-protector)
|
|||||||
CFLAGS-wordcopy.c += $(no-stack-protector)
|
CFLAGS-wordcopy.c += $(no-stack-protector)
|
||||||
# Called during static initialization
|
# Called during static initialization
|
||||||
CFLAGS-strncmp.c += $(no-stack-protector)
|
CFLAGS-strncmp.c += $(no-stack-protector)
|
||||||
|
CFLAGS-memset.c += $(no-stack-protector)
|
||||||
|
|
||||||
CFLAGS-argz-next.c += $(config-cflags-wno-ignored-attributes)
|
CFLAGS-argz-next.c += $(config-cflags-wno-ignored-attributes)
|
||||||
CFLAGS-basename.c += $(config-cflags-wno-ignored-attributes)
|
CFLAGS-basename.c += $(config-cflags-wno-ignored-attributes)
|
||||||
|
Loading…
Reference in New Issue
Block a user