blob: 19f5eca741af4e686748157586aea67e9357254e [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001ifeq ($(subdir),elf)
2CFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\
3 -mno-sse -mno-mmx)
4
5tests-special += $(objpfx)tst-ld-sse-use.out
6$(objpfx)tst-ld-sse-use.out: ../sysdeps/x86/tst-ld-sse-use.sh $(objpfx)ld.so
7 @echo "Checking ld.so for SSE register use. This will take a few seconds..."
8 $(BASH) $< $(objpfx) '$(NM)' '$(OBJDUMP)' '$(READELF)' > $@; \
9 $(evaluate-test)
10endif