olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1447808-0.patch

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