about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@gentoo.org>2023-07-19 21:24:37 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2023-07-20 12:24:28 +0200
commit3edca7f545d226bfbf553e676e22cbfec14adfe8 (patch)
tree3db33c6a0e7cf08949bd1bdf46a92d16fe5604eb /nptl
parent3edc4ff2ceff4a59587ebecb94148d3bcfa1df62 (diff)
downloadglibc-3edca7f545d226bfbf553e676e22cbfec14adfe8.tar.gz
glibc-3edca7f545d226bfbf553e676e22cbfec14adfe8.tar.xz
glibc-3edca7f545d226bfbf553e676e22cbfec14adfe8.zip
nptl: Make tst-tls3mod.so explicitly lazy
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 <fweimer@redhat.com>
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'nptl')
-rw-r--r--nptl/Makefile1
1 files changed, 1 insertions, 0 deletions
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