aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Bérat <fberat@redhat.com>2023-07-07 16:20:48 +0200
committerFrédéric Bérat <fberat@redhat.com>2023-07-10 14:48:04 +0200
commite30048fdc1878a65d9a1a13305d74b8de542bae9 (patch)
treefd0f308dee96a8f500193137cde57e11537dde50
parent7ff33eca6860648fb909df954da4996ce853d01d (diff)
downloadglibc-e30048fdc1878a65d9a1a13305d74b8de542bae9.tar
glibc-e30048fdc1878a65d9a1a13305d74b8de542bae9.tar.gz
glibc-e30048fdc1878a65d9a1a13305d74b8de542bae9.tar.bz2
glibc-e30048fdc1878a65d9a1a13305d74b8de542bae9.zip
sysdeps/s390: Exclude fortified routines from being built with _FORTIFY_SOURCE
Depending on build configuration, the [routine]-c.c files may be chosen to provide fortified routines implementation. While [routines].c implementation were automatically excluded, the [routines]-c.c ones were not. This patch fixes that by adding these file to the list to be filtered.
-rw-r--r--sysdeps/s390/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysdeps/s390/Makefile b/sysdeps/s390/Makefile
index 1d687a2184..b793b26112 100644
--- a/sysdeps/s390/Makefile
+++ b/sysdeps/s390/Makefile
@@ -94,6 +94,15 @@ sysdep_routines += memset memset-z900 \
rawmemchr rawmemchr-vx rawmemchr-c \
memccpy memccpy-vx memccpy-c \
memrchr memrchr-vx memrchr-c
+
+# Exclude fortified routines from being built with _FORTIFY_SOURCE
+routines_no_fortify += \
+ memmove-c \
+ stpcpy-c \
+ stpncpy-c \
+ strcat-c \
+ strncat-c \
+ # routines_no_fortify
endif
ifeq ($(subdir),wcsmbs)
@@ -116,4 +125,15 @@ sysdep_routines += wcslen wcslen-vx wcslen-c \
wmemchr wmemchr-vx wmemchr-c \
wmemset wmemset-vx wmemset-c \
wmemcmp wmemcmp-vx wmemcmp-c
+
+# Exclude fortified routines from being built with _FORTIFY_SOURCE
+routines_no_fortify += \
+ wcpcpy-c \
+ wcpncpy-c \
+ wcscat-c \
+ wcscpy-c \
+ wcsncat-c \
+ wcsncpy-c \
+ wmemset-c \
+ # routines_no_fortify
endif