diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-01-14 20:16:05 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-01-14 20:17:15 +0100 |
commit | 9ba202c78f0aa39f49929eee63c367847da72ee4 (patch) | |
tree | e292ce37276d20fcefc97f5441bc1e4edd4d8368 /elf/Makefile | |
parent | b693d75f0c611bce9b0ad984bad306121d42c535 (diff) | |
download | glibc-9ba202c78f0aa39f49929eee63c367847da72ee4.tar.gz glibc-9ba202c78f0aa39f49929eee63c367847da72ee4.tar.xz glibc-9ba202c78f0aa39f49929eee63c367847da72ee4.zip |
Add --with-rtld-early-cflags configure option
Reviewed-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile index 3df49742ff..e6a28b243b 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -167,6 +167,14 @@ CFLAGS-.o += $(call elide-stack-protector,.o,$(elide-routines.os)) CFLAGS-.op += $(call elide-stack-protector,.op,$(elide-routines.os)) CFLAGS-.os += $(call elide-stack-protector,.os,$(all-rtld-routines)) +# Add the requested compiler flags to the early startup code. +CFLAGS-dl-printf.os += $(rtld-early-cflags) +CFLAGS-dl-sysdep.os += $(rtld-early-cflags) +CFLAGS-dl-tunables.os += $(rtld-early-cflags) +CFLAGS-dl-write.os += $(rtld-early-cflags) +CFLAGS-dl-writev.os += $(rtld-early-cflags) +CFLAGS-rtld.os += $(rtld-early-cflags) + ifeq ($(unwind-find-fde),yes) routines += unwind-dw2-fde-glibc shared-only-routines += unwind-dw2-fde-glibc |