mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 22:50:07 +00:00
Remove .llvm_addrsig sections from crt.o files
This commit is contained in:
parent
b1ecb7cf85
commit
c4c787ff1b
@ -106,7 +106,13 @@ include ../Rules
|
||||
subdir_lib: $(extra-objs:%=$(objpfx)%)
|
||||
|
||||
define link-relocatable
|
||||
$(CC) -nostdlib -nostartfiles -r -o $@ $^
|
||||
$(CC) -nostdlib -nostartfiles -r -o $@.precopy $^
|
||||
# Remove a section generated by clang for safe ICF; when lld links and
|
||||
# retains relocs, the section is garbled and causes errors in later
|
||||
# links done with --icf=safe. The removal can be unconditional as it
|
||||
# is a no-op for non-clang/lld.
|
||||
$(OBJCOPY) --remove-section=.llvm_addrsig $@.precopy $@
|
||||
rm $@.precopy
|
||||
endef
|
||||
|
||||
ifndef start-installed-name-rule
|
||||
|
Loading…
Reference in New Issue
Block a user