about summary refs log tree commit diff
path: root/sysdeps/i386/i686/mempcpy.S
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-08-08 09:27:55 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-08-10 10:29:29 -0300
commitc73c96a4a1af1326df7f96eec58209e1e04066d8 (patch)
tree4e0f960751da0b6a4d948d2e6137c834dedc8001 /sysdeps/i386/i686/mempcpy.S
parent51cb52214fcd72849c640b12f5099ed3ac776181 (diff)
downloadglibc-c73c96a4a1af1326df7f96eec58209e1e04066d8.tar.gz
glibc-c73c96a4a1af1326df7f96eec58209e1e04066d8.tar.xz
glibc-c73c96a4a1af1326df7f96eec58209e1e04066d8.zip
i686: Fix build with --disable-multiarch
Since i686 provides the fortified wrappers for memcpy, mempcpy,
memmove, and memset on the same string implementation, the static
build tries to optimized it by not tying the fortified wrappers
to string routine (to avoid pulling the fortify function if
they are not required).

Checked on i686-linux-gnu building with different option:
default and --disable-multi-arch plus default, --disable-default-pie,
--enable-fortify-source={2,3}, and --enable-fortify-source={2,3}
with --disable-default-pie.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'sysdeps/i386/i686/mempcpy.S')
-rw-r--r--sysdeps/i386/i686/mempcpy.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/i386/i686/mempcpy.S b/sysdeps/i386/i686/mempcpy.S
index 26f8501e7d..14d9dd681a 100644
--- a/sysdeps/i386/i686/mempcpy.S
+++ b/sysdeps/i386/i686/mempcpy.S
@@ -27,7 +27,7 @@
 #define LEN	SRC+4
 
 	.text
-#if defined PIC && IS_IN (libc)
+#if defined SHARED && IS_IN (libc)
 ENTRY_CHK (__mempcpy_chk)
 	movl	12(%esp), %eax
 	cmpl	%eax, 16(%esp)