sysdeps/s390: Exclude fortified routines from being built with _FORTIFY_SOURCE
authorFrédéric Bérat <fberat@redhat.com>
Fri, 7 Jul 2023 14:20:48 +0000 (16:20 +0200)
committerFrédéric Bérat <fberat@redhat.com>
Mon, 10 Jul 2023 12:48:04 +0000 (14:48 +0200)
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.

sysdeps/s390/Makefile

index 1d687a218413864d1fc2195465d72c53d6d0d475..b793b26112130ff8e9861c8ef1c93a991a86127b 100644 (file)
@@ -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