mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
ANDROID: arm64: vdso: disable LTO
Due to a bug in clang, vdso fails to build when both LTO_CLANG and CC_OPTIMIZE_FOR_SIZE are enabled: https://bugs.llvm.org/show_bug.cgi?id=32155 Disable LTO for vdso to work around the problem. Bug: 62093296 Bug: 67506682 Bug: 133186739 Change-Id: I1d0279535fd389db4c829e4556f9ef728f240a34 Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
committed by
Alistair Strachan
parent
723ef158f0
commit
864f2bc0e4
@@ -15,6 +15,7 @@ obj-vdso := $(addprefix $(obj)/, $(obj-vdso))
|
||||
ccflags-y := -shared -fno-common -fno-builtin
|
||||
ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 \
|
||||
$(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
|
||||
ccflags-y += $(DISABLE_LTO)
|
||||
|
||||
# Disable gcov profiling for VDSO code
|
||||
GCOV_PROFILE := n
|
||||
|
||||
Reference in New Issue
Block a user