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