]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
tests: aarch64: fix makefile dependencies for dlopen tests for BTI
authorYury Khrustalev <yury.khrustalev@arm.com>
Mon, 16 Feb 2026 12:46:39 +0000 (12:46 +0000)
committerYury Khrustalev <yury.khrustalev@arm.com>
Tue, 17 Feb 2026 10:25:26 +0000 (10:25 +0000)
Some BTI tests in the sysdeps/unix/sysv/linux/aarch64 directory use
test shared objects via dlopen. Due to lack of direct makefile level
dependencies on these modules these tests could be run before the
required .so files would be created. This could lead to flaky test
results when running make check with -j flag. This commit fixes it.

Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
sysdeps/unix/sysv/linux/aarch64/Makefile

index 2b8401f42e194f58b337ebab2d538b66f89689d2..38618ca05fa58738f18834c0c164e0eeb6ff990e 100644 (file)
@@ -63,6 +63,12 @@ $(objpfx)tst-bti-permissive-transitive: $(objpfx)tst-bti-mod.so
 $(objpfx)tst-bti-ld-debug-shared: $(objpfx)tst-bti-mod.so
 $(objpfx)tst-bti-ld-debug-both: $(objpfx)tst-bti-mod-unprot.so
 
+$(objpfx)tst-bti-dlopen-imm.out: $(objpfx)tst-bti-mod-unprot.so
+$(objpfx)tst-bti-dlopen-prot.out: $(objpfx)tst-bti-mod-prot.so
+$(objpfx)tst-bti-dlopen-transitive.out: $(objpfx)tst-bti-mod.so
+$(objpfx)tst-bti-ld-debug-dlopen.out: $(objpfx)tst-bti-mod-unprot.so
+$(objpfx)tst-bti-permissive-dlopen.out: $(objpfx)tst-bti-mod-unprot.so
+
 $(objpfx)tst-bti-abort-unprot-preload.out: $(objpfx)tst-bti-mod-unprot-preload.so
 tst-bti-abort-unprot-preload-ENV = \
   GLIBC_TUNABLES=glibc.cpu.aarch64_bti=1 \