aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-06-29 18:56:18 -0700
committerAndreas K. Hüttel <dilfridge@gentoo.org>2022-09-03 22:23:03 +0200
commit75c6a4b3af1e51796693a83303cff71ab6a03f41 (patch)
tree3455784657b432294cb24f8ceef5a4463a9f6e8a /sysdeps
parentx86: Move mem{p}{mov|cpy}_{chk_}erms to its own file (diff)
downloadglibc-75c6a4b3af1e51796693a83303cff71ab6a03f41.tar.gz
glibc-75c6a4b3af1e51796693a83303cff71ab6a03f41.tar.bz2
glibc-75c6a4b3af1e51796693a83303cff71ab6a03f41.zip
x86: Add missing IS_IN (libc) check to strncmp-sse4_2.S
Was missing to for the multiarch build rtld-strncmp-sse4_2.os was being built and exporting symbols: build/glibc/string/rtld-strncmp-sse4_2.os: 0000000000000000 T __strncmp_sse42 Introduced in: commit 11ffcacb64a939c10cfc713746b8ec88837f5c4a Author: H.J. Lu <hjl.tools@gmail.com> Date: Wed Jun 21 12:10:50 2017 -0700 x86-64: Implement strcmp family IFUNC selectors in C (cherry picked from commit 96ac447d915ea5ecef3f9168cc13f4e731349a3b) (cherry picked from commit c4050b25527c80a989b5f3349b7ea2bf5acf3fd2)
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86_64/multiarch/strncmp-sse4_2.S8
1 files changed, 5 insertions, 3 deletions
diff --git a/sysdeps/x86_64/multiarch/strncmp-sse4_2.S b/sysdeps/x86_64/multiarch/strncmp-sse4_2.S
index 9773e5fc09..310a6dbe77 100644
--- a/sysdeps/x86_64/multiarch/strncmp-sse4_2.S
+++ b/sysdeps/x86_64/multiarch/strncmp-sse4_2.S
@@ -16,6 +16,8 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
-#define STRCMP_SSE42 __strncmp_sse42
-#define USE_AS_STRNCMP
-#include "strcmp-sse42.S"
+#if IS_IN (libc)
+# define STRCMP_SSE42 __strncmp_sse42
+# define USE_AS_STRNCMP
+# include "strcmp-sse42.S"
+#endif