mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
arm64: Disable -fwhole-program for vDSO
The vDSO library is obviously not self-contained, so it doesn't qualify for -fwhole-program. Using -fwhole-program on the vDSO library breaks it, so disable -fwhole-program to fix it. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
d1d4277663
commit
81e2b51931
@ -19,6 +19,7 @@ ldflags-y := -shared -nostdlib -soname=linux-vdso.so.1 --hash-style=sysv \
|
||||
--build-id -n -T
|
||||
ccflags-y := -fno-stack-protector
|
||||
ccflags-y += -DDISABLE_BRANCH_PROFILING -ffixed-x18
|
||||
ccflags-y += $(call cc-option, -fno-whole-program)
|
||||
|
||||
# Force -O2 to avoid libgcc dependencies
|
||||
CFLAGS_REMOVE_vgettimeofday.o = -pg -Os
|
||||
|
Loading…
x
Reference in New Issue
Block a user