mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 14:50:17 +00:00
Use llvm-objcopy, if available, to remove the .llvm_addrsig sections.
This commit is contained in:
parent
738baca865
commit
059f0081cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user