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:
Sultan Alsawaf 2020-12-26 19:49:28 -08:00 committed by azrim
parent d1d4277663
commit 81e2b51931
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C

View File

@ -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