[PATCH] tests: aarch64: fix makefile dependencies for dlopen tests for BTI

Yury Khrustalev yury.khrustalev@arm.com
Mon Feb 16 14:24:52 GMT 2026


On Mon, Feb 16, 2026 at 02:19:56PM +0000, Wilco Dijkstra wrote:
> Hi Yury,
> �
> > 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.
> 
> LGTM
> 
> Reviewed-by: Wilco Dijkstra  <Wilco.Dijkstra@arm.com>

Thanks

> 
> However I'm wondering whether there isn't an easier way, eg.
> add all the tests that use a .so to a list and then adding the
> dependencies using a standard rule?

This would be a good refactoring project, however many existing
tests use exactly this fix-up: make sure that the .out file depends
on whatever runtime dependencies the test might have.

Thanks,
Yury



More information about the Libc-alpha mailing list