diff mbox series

sysdeps/s390: Exclude fortified routines from being built with _FORTIFY_SOURCE

Message ID 20230707145425.535014-1-fberat@redhat.com
State New
Headers show
Series sysdeps/s390: Exclude fortified routines from being built with _FORTIFY_SOURCE | expand

Commit Message

Frederic Berat July 7, 2023, 2:54 p.m. UTC
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 | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

Comments

Andreas Schwab July 10, 2023, 9:36 a.m. UTC | #1
On Jul 07 2023, Frédéric Bérat wrote:

> 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.

Ok.
diff mbox series

Patch

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