arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh1447808-2.patch

147e83
Fix strncmp in rtld for x86-64 by using the generic implementation.  Not
147e83
needed upstream since upstream uses
147e83
d8725b1fba769a89ce2c902a2091d01faa946b66 to enable strncmp from
147e83
strncmp.S, but this introduces SSE registers into rtld for RHEL7 and
147e83
this would be the first instance of such a change. While we have done
147e83
everything we can to save/restore such registers (see the xsave work) it
147e83
isn't clear if everything is fixed, so to play it safe in RHEL we just
147e83
use the C version of strncmp for rtld.
147e83
147e83
Not needed upstream.
147e83
147e83
diff --git a/sysdeps/x86_64/multiarch/rtld-strncmp.c b/sysdeps/x86_64/multiarch/rtld-strncmp.c
147e83
new file mode 100644
147e83
index 0000000000000000..5bb3cfb974b9a95d
147e83
--- /dev/null
147e83
+++ b/sysdeps/x86_64/multiarch/rtld-strncmp.c
147e83
@@ -0,0 +1 @@
147e83
+#include <string/strncmp.c>