i386: disable sse in rtld-divdi3.os
Commit Message
When compiling the GNU libc on i386 using GCC 6 and for a CPU with SSE
support (e.g. -march=pentium4, -march=core2, -march=haswell, ...) the
rtld-divdi3.os file ends up with SSE instructions using the XMM
registers. This makes the elf/tst-ld-sse-use test to fail:
function __udivdi3 in rtld-divdi3.os modifies xmm/ymm/zmm
Modify sysdeps/i386/Makefile to compile this file with -mno-sse -mno-mmx
-mfpmath=387 like it is already done for other files used by ld.so.
Changelog:
* sysdeps/i386/Makefile [$(subdir) == csu] (CFLAGS-rtld-divdi3.os):
New. Set to -mno-sse -mno-mmx -mfpmath=387.
---
ChangeLog | 5 +++++
sysdeps/i386/Makefile | 3 +++
2 files changed, 8 insertions(+)
@@ -1,3 +1,8 @@
+2016-07-14 Aurelien Jarno <aurelien@aurel32.net>
+
+ * sysdeps/i386/Makefile [$(subdir) == csu] (CFLAGS-rtld-divdi3.os):
+ New. Set to -mno-sse -mno-mmx -mfpmath=387.
+
2016-07-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
* bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
@@ -98,3 +98,6 @@ $(objpfx)tst-ld-sse-use.out: ../sysdeps/i386/tst-ld-sse-use.sh $(objpfx)ld.so
$(BASH) $< $(objpfx) '$(NM)' '$(OBJDUMP)' '$(READELF)' > $@; \
$(evaluate-test)
endif
+ifeq ($(subdir),csu)
+CFLAGS-rtld-divdi3.os += -mno-sse -mno-mmx -mfpmath=387
+endif