diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-06-12 15:00:33 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-06-12 15:00:33 +0200 |
commit | e826574c985a15a500262f2fbd21c7e9259d3d11 (patch) | |
tree | a6932733ed6cf632b2a5654f0f1096cbf1b96c4f /sysdeps/x86_64 | |
parent | c4ad5782c44f4fa23d3ca9bec1e288c24cf2e6df (diff) | |
download | glibc-e826574c985a15a500262f2fbd21c7e9259d3d11.zip glibc-e826574c985a15a500262f2fbd21c7e9259d3d11.tar.gz glibc-e826574c985a15a500262f2fbd21c7e9259d3d11.tar.bz2 |
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/x86_64')
-rw-r--r-- | sysdeps/x86_64/multiarch/strncmp-sse2.S | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sysdeps/x86_64/multiarch/strncmp-sse2.S b/sysdeps/x86_64/multiarch/strncmp-sse2.S index cc5252d..a5ecb82 100644 --- a/sysdeps/x86_64/multiarch/strncmp-sse2.S +++ b/sysdeps/x86_64/multiarch/strncmp-sse2.S @@ -18,10 +18,13 @@ #include <sysdep.h> -#define STRCMP __strncmp_sse2 - -#undef libc_hidden_builtin_def -#define libc_hidden_builtin_def(strcmp) +#if IS_IN (libc) +# define STRCMP __strncmp_sse2 +# undef libc_hidden_builtin_def +# define libc_hidden_builtin_def(strcmp) +#else +# define STRCMP strncmp +#endif #define USE_AS_STRNCMP #include <sysdeps/x86_64/strcmp.S> |