c6d234
Partial backport. Only the i686 piece is needed in glibc 2.17, and
c6d234
the x86_64 piece doesn't apply anyway because we lack the multiarch
c6d234
implementations present in upstream. Instead the the x86_64 piece
c6d234
is fixed by glibc-rh1447808-2.patch. 
c6d234
c6d234
commit e826574c985a15a500262f2fbd21c7e9259d3d11 (origin/master, origin/HEAD)
c6d234
Author: Florian Weimer <fweimer@redhat.com>
c6d234
Date:   Tue Jun 12 15:00:33 2018 +0200
c6d234
c6d234
    x86: Make strncmp usable from rtld
c6d234
    
c6d234
    Due to the way the conditions were written, the rtld build of strncmp
c6d234
    ended up with no definition of the strncmp symbol at all: The
c6d234
    implementations were renamed for use within an IFUNC resolver, but the
c6d234
    IFUNC resolver itself was missing (because rtld does not use IFUNCs).
c6d234
    
c6d234
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
c6d234
c6d234
Index: glibc-2.17-c758a686/sysdeps/i386/i686/multiarch/strncmp-c.c
c6d234
===================================================================
c6d234
--- glibc-2.17-c758a686.orig/sysdeps/i386/i686/multiarch/strncmp-c.c
c6d234
+++ glibc-2.17-c758a686/sysdeps/i386/i686/multiarch/strncmp-c.c
c6d234
@@ -1,4 +1,4 @@
c6d234
-#ifdef SHARED
c6d234
+#if defined (SHARED) && IS_IN (libc)
c6d234
 # define STRNCMP __strncmp_ia32
c6d234
 # undef libc_hidden_builtin_def
c6d234
 # define libc_hidden_builtin_def(name)  \