aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-06-12 15:00:33 +0200
committerFlorian Weimer <fweimer@redhat.com>2018-06-12 15:00:33 +0200
commite826574c985a15a500262f2fbd21c7e9259d3d11 (patch)
treea6932733ed6cf632b2a5654f0f1096cbf1b96c4f /sysdeps/i386
parentc4ad5782c44f4fa23d3ca9bec1e288c24cf2e6df (diff)
downloadglibc-e826574c985a15a500262f2fbd21c7e9259d3d11.tar
glibc-e826574c985a15a500262f2fbd21c7e9259d3d11.tar.gz
glibc-e826574c985a15a500262f2fbd21c7e9259d3d11.tar.bz2
glibc-e826574c985a15a500262f2fbd21c7e9259d3d11.zip
x86: Make strncmp usable from rtld
Due to the way the conditions were written, the rtld build of strncmp ended up with no definition of the strncmp symbol at all: The implementations were renamed for use within an IFUNC resolver, but the IFUNC resolver itself was missing (because rtld does not use IFUNCs). Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/i386')
-rw-r--r--sysdeps/i386/i686/multiarch/strncmp-c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/i386/i686/multiarch/strncmp-c.c b/sysdeps/i386/i686/multiarch/strncmp-c.c
index cc059da494..2e3eca9b2b 100644
--- a/sysdeps/i386/i686/multiarch/strncmp-c.c
+++ b/sysdeps/i386/i686/multiarch/strncmp-c.c
@@ -1,4 +1,4 @@
-#ifdef SHARED
+#if defined (SHARED) && IS_IN (libc)
# define STRNCMP __strncmp_ia32
# undef libc_hidden_builtin_def
# define libc_hidden_builtin_def(name) \