about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-07-29 03:41:58 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-08-05 08:28:37 -0700
commit3b8d2eb7f8435c73692f55f95e9a0ef27015b6c3 (patch)
treeac98408e3de971e5f2960e29093b83da09f3bfe3
parent05a910f7b420c2b831f35ba90e61c80f001c0606 (diff)
downloadglibc-3b8d2eb7f8435c73692f55f95e9a0ef27015b6c3.tar.gz
glibc-3b8d2eb7f8435c73692f55f95e9a0ef27015b6c3.tar.xz
glibc-3b8d2eb7f8435c73692f55f95e9a0ef27015b6c3.zip
Compile {memcpy,strcmp}-sse2-unaligned.S only for libc
{memcpy,strcmp}-sse2-unaligned.S aren't needed in ld.so.

	* sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
	only for libc.
	* sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S4
-rw-r--r--sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S4
3 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a45eed6d3..cec13dc871 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
+	only for libc.
+	* sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
+
 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
 
 	* string/string.h: (mempcpy): Redirect to __mempcpy_inline.
diff --git a/sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S b/sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S
index c5450af25a..5693ba7395 100644
--- a/sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S
+++ b/sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S
@@ -16,6 +16,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#if IS_IN (libc)
+
 #include <sysdep.h>
 
 #include "asm-syntax.h"
@@ -169,3 +171,5 @@ L(between_5_8):
 	movl	%eax, -4(%rdi,%rdx)
 	jmp	L(return)
 END(__memcpy_sse2_unaligned)
+
+#endif
diff --git a/sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S b/sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S
index 20b65fa775..c6606b45f5 100644
--- a/sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S
+++ b/sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S
@@ -16,6 +16,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#if IS_IN (libc)
+
 #include "sysdep.h"
 
 ENTRY ( __strcmp_sse2_unaligned)
@@ -207,3 +209,5 @@ L(different):
 	subl	%ecx, %eax
 	ret
 END (__strcmp_sse2_unaligned)
+
+#endif