diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-02-28 11:50:41 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-02-28 11:50:41 +0100 |
commit | 73fc4e28b9464f0e13edc719a5372839970e7ddb (patch) | |
tree | 62b7c150b29bccc23cda28ac57f60d2d1a973481 /elf/Makefile | |
parent | 1fe00d3eb602a0754873b536dc92fb6226759ee4 (diff) | |
download | glibc-73fc4e28b9464f0e13edc719a5372839970e7ddb.zip glibc-73fc4e28b9464f0e13edc719a5372839970e7ddb.tar.gz glibc-73fc4e28b9464f0e13edc719a5372839970e7ddb.tar.bz2 |
Linux: Consolidate auxiliary vector parsing (redo)
And optimize it slightly.
This is commit 8c8510ab2790039e58995ef3a22309582413d3ff revised.
In _dl_aux_init in elf/dl-support.c, use an explicit loop
and -fno-tree-loop-distribute-patterns to avoid memset.
Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile index 281551d..c96924e 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -160,6 +160,11 @@ ifeq (yes,$(have-loop-to-function)) CFLAGS-rtld.c += -fno-tree-loop-distribute-patterns endif +ifeq (yes,$(have-loop-to-function)) +# Likewise, during static library startup, memset is not yet available. +CFLAGS-dl-support.c = -fno-tree-loop-distribute-patterns +endif + # Compile rtld itself without stack protection. # Also compile all routines in the static library that are elided from # the shared libc because they are in libc.a in the same way. |