]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use llvm-objcopy, if available, to remove the .llvm_addrsig sections.
authorSiva Chandra Reddy <sivachandra@google.com>
Fri, 5 Apr 2019 14:46:36 +0000 (07:46 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:26:01 +0000 (17:26 -0700)
csu/Makefile

index 7460bcb0cf1e6cb296cf76d6e8ed9e43044f89f9..b0049b2ef265390a9f6483aa1628072cae13a16e 100644 (file)
@@ -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