aboutsummaryrefslogtreecommitdiff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2021-03-15 20:25:00 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-03-15 20:25:00 +0530
commit8b8f13b60d9587e91e8719239a9249b448bc1307 (patch)
tree07a0048ac8f8f651ca26e547c3bebc6a68db6b93 /elf/Makefile
parent941ea10f8099cb4fcc98c65249fc17a63fcff6a4 (diff)
downloadglibc-8b8f13b60d9587e91e8719239a9249b448bc1307.zip
glibc-8b8f13b60d9587e91e8719239a9249b448bc1307.tar.gz
glibc-8b8f13b60d9587e91e8719239a9249b448bc1307.tar.bz2
Build libc-start with stack protector for SHARED
This does not change the emitted code since __libc_start_main does not return, but is important for formal flags compliance. This also cleans up the cosmetic inconsistency in the stack protector flags in csu, especially the incorrect value of STACK_PROTECTOR_LEVEL. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile4
1 files changed, 0 insertions, 4 deletions
diff --git a/elf/Makefile b/elf/Makefile
index ba4689a..3b8e13e 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -83,10 +83,6 @@ endif
# 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.
-define elide-stack-protector
-$(if $(filter $(@F),$(patsubst %,%$(1),$(2))), $(no-stack-protector))
-endef
-
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))