aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-07-26 16:10:00 -0700
committerUlrich Drepper <drepper@redhat.com>2009-07-26 16:10:00 -0700
commit16d2ea4c821502948d193a152c8b151f5497a0d3 (patch)
treeb2e680691addcd8cbfc8f4be5d0d6d7ca27baf49 /sysdeps/x86_64/Makefile
parentdc8e5eb6edc936647b8135e7176df5455e5ff112 (diff)
downloadglibc-16d2ea4c821502948d193a152c8b151f5497a0d3.tar
glibc-16d2ea4c821502948d193a152c8b151f5497a0d3.tar.gz
glibc-16d2ea4c821502948d193a152c8b151f5497a0d3.tar.bz2
glibc-16d2ea4c821502948d193a152c8b151f5497a0d3.zip
Make sure no code in ld.so uses xmm/ymm registers on x86-64.
This patch introduces a test to make sure no function modifies the xmm/ymm registers. With the exception of the auditing functions. The test is probably too pessimistic. All code linked into ld.so is checked. Perhaps at some point the callgraph starting from _dl_fixup and _dl_profile_fixup is checked and we can start using faster SSE-using functions in parts of ld.so.
Diffstat (limited to 'sysdeps/x86_64/Makefile')
-rw-r--r--sysdeps/x86_64/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile
index 78fdb04fcb..57cd88432a 100644
--- a/sysdeps/x86_64/Makefile
+++ b/sysdeps/x86_64/Makefile
@@ -19,6 +19,10 @@ ifeq ($(subdir),elf)
sysdep-dl-routines += tlsdesc dl-tlsdesc
sysdep_routines += tlsdesc dl-tlsdesc
sysdep-rtld-routines += tlsdesc dl-tlsdesc
+
+tests: $(objpfx)tst-xmmymm.out
+$(objpfx)tst-xmmymm.out: ../sysdeps/x86_64/tst-xmmymm.sh $(objpfx)ld.so
+ $(SHELL) -e $< $(objpfx) > $@
endif
ifeq ($(subdir),csu)