public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Andreas K. Huttel <dilfridge@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] nptl: Make tst-tls3mod.so explicitly lazy
Date: Thu, 20 Jul 2023 10:24:57 +0000 (GMT)	[thread overview]
Message-ID: <20230720102457.9D8B43858CDB@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3edca7f545d226bfbf553e676e22cbfec14adfe8

commit 3edca7f545d226bfbf553e676e22cbfec14adfe8
Author: Arsen Arsenović <arsen@gentoo.org>
Date:   Wed Jul 19 21:24:37 2023 +0200

    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>

Diff:
---
 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

                 reply	other threads:[~2023-07-20 10:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230720102457.9D8B43858CDB@sourceware.org \
    --to=dilfridge@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).