From 3edca7f545d226bfbf553e676e22cbfec14adfe8 Mon Sep 17 00:00:00 2001 From: Arsen Arsenović Date: Wed, 19 Jul 2023 21:24:37 +0200 Subject: nptl: Make tst-tls3mod.so explicitly lazy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following test-time errors, that lead to FAILs, on toolchains that set -z now out o the box, such as the one used on Gentoo Hardened: .../build-x86-x86_64-pc-linux-gnu-nptl $ grep '' nptl/tst-tls3*.out nptl/tst-tls3.out:dlopen failed nptl/tst-tls3-malloc.out:dlopen failed Reviewed-by: Florian Weimer Signed-off-by: Andreas K. Hüttel --- nptl/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/nptl/Makefile b/nptl/Makefile index f8365467d9..ffa5722e48 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -636,6 +636,7 @@ $(objpfx)tst-cleanup4: $(objpfx)tst-cleanup4aux.o $(objpfx)tst-cleanupx4: $(objpfx)tst-cleanupx4aux.o LDFLAGS-tst-tls3 = -rdynamic +LDFLAGS-tst-tls3mod.so = -Wl,-z,lazy $(objpfx)tst-tls3.out: $(objpfx)tst-tls3mod.so LDFLAGS-tst-tls3-malloc = -rdynamic -- cgit 1.4.1