diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-07-29 03:41:58 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-08-03 14:32:47 -0700 |
commit | 723a5bd465082390bd9369d4f95ec11b32cf47dd (patch) | |
tree | 7edcdc445d848af2af1129e302afaed7ca3fda1c | |
parent | 3d497ce3d1ab11a363c543b42737a0696329ed40 (diff) | |
download | glibc-723a5bd465082390bd9369d4f95ec11b32cf47dd.tar.gz glibc-723a5bd465082390bd9369d4f95ec11b32cf47dd.tar.xz glibc-723a5bd465082390bd9369d4f95ec11b32cf47dd.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-- | sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S | 4 | ||||
-rw-r--r-- | sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S | 4 |
2 files changed, 8 insertions, 0 deletions
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 |