about summary refs log tree commit diff
path: root/sysdeps/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r--sysdeps/x86_64/Makefile6
-rw-r--r--sysdeps/x86_64/tst-valgrind-smoke.supp17
2 files changed, 23 insertions, 0 deletions
diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile
index 9337e95093..66b21954f3 100644
--- a/sysdeps/x86_64/Makefile
+++ b/sysdeps/x86_64/Makefile
@@ -211,6 +211,12 @@ tst-plt-rewrite2-ENV = GLIBC_TUNABLES=glibc.cpu.plt_rewrite=2
 $(objpfx)tst-plt-rewrite2: $(objpfx)tst-plt-rewritemod2.so
 endif
 
+# Check if ISA level is 3 or above.
+ifneq (,$(filter $(have-x86-isa-level),$(x86-isa-level-3-or-above)))
+valgrind-suppressions-tst-valgrind-smoke = \
+  --suppressions=$(..)sysdeps/x86_64/tst-valgrind-smoke.supp
+endif
+
 endif # $(subdir) == elf
 
 ifeq ($(subdir),csu)
diff --git a/sysdeps/x86_64/tst-valgrind-smoke.supp b/sysdeps/x86_64/tst-valgrind-smoke.supp
new file mode 100644
index 0000000000..533c2deaff
--- /dev/null
+++ b/sysdeps/x86_64/tst-valgrind-smoke.supp
@@ -0,0 +1,17 @@
+{
+   False positive at strcmp-avx2.S:462
+   Memcheck:Cond
+   fun:strcmp
+   fun:_dl_name_match_p
+   fun:_dl_map_object
+   fun:map_doit
+   fun:_dl_catch_exception
+   fun:_dl_catch_error
+   fun:do_preload
+   fun:handle_preload_list
+   fun:dl_main
+   fun:_dl_sysdep_start
+   fun:_dl_start_final
+   fun:_dl_start
+   obj:*/elf/ld.so
+}