]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
i386: Don't define multiarch __memmove_chk in libc.a [BZ #21791]
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 2 Aug 2017 15:32:00 +0000 (08:32 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 2 Aug 2017 15:34:34 +0000 (08:34 -0700)
There is no need to define multiarch __memmove_chk in libc.a since they
aren't used at all.

[BZ #21791]
* sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
(MEMCPY_CHK): Define only if SHARED is defined.
* sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
Likewise.
* sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
Likewise.

ChangeLog
sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
sysdeps/i386/i686/multiarch/memcpy-ssse3.S

index 20826ea98c58d6e62f3e4006be12306467022642..337d37e87ffb4c3927bbfbd404bc5013f91e43f1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,2 +1,11 @@
+2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #21791]
+       * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
+       (MEMCPY_CHK): Define only if SHARED is defined.
+       * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
+       Likewise.
+       * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
+       Likewise.
 
 See ChangeLog.18 for earlier changes.
index 2fe2072cb18ee437b62c6e20d97c1785720c5c72..fd3f499baa67c3f9fca359735f7a32323bf83a79 100644 (file)
@@ -56,7 +56,7 @@
 # define RETURN        RETURN_END; CFI_PUSH (%ebx)
 
        .section .text.sse2,"ax",@progbits
-# if !defined USE_AS_BCOPY
+# if !defined USE_AS_BCOPY && defined SHARED
 ENTRY (MEMCPY_CHK)
        movl    12(%esp), %eax
        cmpl    %eax, 16(%esp)
index 687e08314772d96734aeea0397713f323c5c69e6..46d6597055d0296dab87bc14f0ea41829bb3aa5d 100644 (file)
 #endif
 
        .section .text.ssse3,"ax",@progbits
-#if !defined USE_AS_BCOPY
+#if !defined USE_AS_BCOPY && defined SHARED
 ENTRY (MEMCPY_CHK)
        movl    12(%esp), %eax
        cmpl    %eax, 16(%esp)
index 53e8a6ca1db616c75e5b95b4166fb305ce579a88..8b33153d214b64b92746bd509141663cbdb5450b 100644 (file)
@@ -89,7 +89,7 @@
 # endif
 
        .section .text.ssse3,"ax",@progbits
-# if !defined USE_AS_BCOPY
+# if !defined USE_AS_BCOPY && defined SHARED
 ENTRY (MEMCPY_CHK)
        movl    12(%esp), %eax
        cmpl    %eax, 16(%esp)