about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-05-04 13:28:51 +0100
committerSam James <sam@gentoo.org>2024-05-04 13:28:51 +0100
commitc16871e662cd0f3370173d916864b19e69f1bc9a (patch)
tree83aaafe6c22ff85208f3975f9d6b5b819d6ceeb9
parentfa616ea3730cb42046d19f28d611be0bc390af7c (diff)
downloadglibc-c16871e662cd0f3370173d916864b19e69f1bc9a.tar.gz
glibc-c16871e662cd0f3370173d916864b19e69f1bc9a.tar.xz
glibc-c16871e662cd0f3370173d916864b19e69f1bc9a.zip
Revert "i686: Fix multiple definitions of __memmove_chk and __memset_chk"
This reverts commit ad92c483a4bd34db1cfb3eb625212ea64848244f.

I had the wrong cherry-pick reference (the commit content is right; it's
just referring to a base that isn't upstream), but let's revert and reapply
for clarity.

Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sysdeps/i386/i686/memmove.S2
-rw-r--r--sysdeps/i386/i686/memset.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/i386/i686/memmove.S b/sysdeps/i386/i686/memmove.S
index effd958120..f230359ad6 100644
--- a/sysdeps/i386/i686/memmove.S
+++ b/sysdeps/i386/i686/memmove.S
@@ -29,7 +29,7 @@
 #define SRC	DEST+4
 #define LEN	SRC+4
 
-#if defined SHARED && IS_IN (libc)
+#if defined PIC && IS_IN (libc)
 ENTRY_CHK (__memmove_chk)
 	movl	12(%esp), %eax
 	cmpl	%eax, 16(%esp)
diff --git a/sysdeps/i386/i686/memset.S b/sysdeps/i386/i686/memset.S
index ab06771ea0..f02f5a6df7 100644
--- a/sysdeps/i386/i686/memset.S
+++ b/sysdeps/i386/i686/memset.S
@@ -27,7 +27,7 @@
 #define LEN	CHR+4
 
         .text
-#if defined SHARED && IS_IN (libc)
+#if defined PIC && IS_IN (libc)
 ENTRY_CHK (__memset_chk)
 	movl	12(%esp), %eax
 	cmpl	%eax, 16(%esp)