From: Siva Chandra Reddy Date: Fri, 5 Apr 2019 14:46:36 +0000 (-0700) Subject: Use llvm-objcopy, if available, to remove the .llvm_addrsig sections. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=059f0081cf05b47d922ca698c2ba68ee63b6ee2d;p=thirdparty%2Fglibc.git Use llvm-objcopy, if available, to remove the .llvm_addrsig sections. --- diff --git a/csu/Makefile b/csu/Makefile index 7460bcb0cf1..b0049b2ef26 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