public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] Use llvm-objcopy, if available, to remove the .llvm_addrsig sections.
@ 2021-08-28  0:42 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-28  0:42 UTC (permalink / raw)
  To: glibc-cvs

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

commit 059f0081cf05b47d922ca698c2ba68ee63b6ee2d
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-28  0:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28  0:42 [glibc/google/grte/v5-2.27/master] Use llvm-objcopy, if available, to remove the .llvm_addrsig sections Fangrui Song

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).