public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Fangrui Song <maskray@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/google/grte/v5-2.27/master] Add -Wl, --undefined-version when using newer lld
Date: Tue, 29 Aug 2023 03:32:21 +0000 (GMT)	[thread overview]
Message-ID: <20230829033221.737263858C2A@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3697387eaba3c225239ba2ddd636231033273788

commit 3697387eaba3c225239ba2ddd636231033273788
Author: Fangrui Song <maskray@google.com>
Date:   Tue Aug 29 03:30:46 2023 +0000

    Add -Wl,--undefined-version when using newer lld
    
    to work around errors like
    
        version script assignment of 'GLIBC_2.4' to symbol '__stack_chk_guard' failed: symbol not defined

Diff:
---
 Makeconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makeconfig b/Makeconfig
index fea770fec4..021636bea4 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -936,6 +936,7 @@ ifeq ($(with-lld),yes)
 LDFLAGS.so += -fuse-ld=lld
 LDFLAGS-rtld += -fuse-ld=lld
 LDFLAGS += -fuse-ld=lld
+LDFLAGS += -Wl,--undefined-version
 endif
 
 endif	# with-clang == yes

                 reply	other threads:[~2023-08-29  3:32 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=20230829033221.737263858C2A@sourceware.org \
    --to=maskray@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).