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/maskray/grte] Use llvm-objcopy, if available, to remove the .llvm_addrsig sections.
Date: Sat, 28 Aug 2021 00:27:15 +0000 (GMT)	[thread overview]
Message-ID: <20210828002715.A098B3858039@sourceware.org> (raw)

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

commit b115b8bb67d0b4b4f8f39783f8e20fd02fcec47a
Author: Siva Chandra Reddy <sivachandra@google.com>
Date:   Fri Apr 5 07:46:36 2019 -0700

    Use llvm-objcopy, if available, to remove the .llvm_addrsig sections.

Diff:
---
 csu/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/csu/Makefile b/csu/Makefile
index 7460bcb0cf..b0049b2ef2 100644
--- a/csu/Makefile
+++ b/csu/Makefile
@@ -105,6 +105,12 @@ include ../Rules
 # Make these in the lib pass so they're available in time to link things with.
 subdir_lib: $(extra-objs:%=$(objpfx)%)
 
+ifeq ($(LLVM_OBJCOPY),)
+OBJCOPY_FOR_ADDRSIG = ${OBJCOPY}
+else
+OBJCOPY_FOR_ADDRSIG = ${LLVM_OBJCOPY}
+endif
+
 define link-relocatable
 $(CC) -nostdlib -nostartfiles -r -o $@.precopy $^
 # Remove a section generated by clang for safe ICF; when lld links and


             reply	other threads:[~2021-08-28  0:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-28  0:27 Fangrui Song [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-08-28  0:31 Fangrui Song
2021-08-27 23:49 Fangrui Song

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=20210828002715.A098B3858039@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).