OSDN Git Service

ANDROID: arm64: vdso: unconditionally set -Wl,--hash-style=sysv
authorNick Desaulniers <ndesaulniers@google.com>
Tue, 5 Mar 2019 21:36:43 +0000 (13:36 -0800)
committer0ranko0P <ranko0p@outlook.com>
Tue, 24 Dec 2019 20:42:35 +0000 (04:42 +0800)
The conditional check through cc-ldoption conflicts with
cfi-clang-flags once set. This is causing failures in
VtsKernelLinuxKselftest#vDSO_kselftest_vdso_test_64bit due to GOLD
defaulting to gnu rather than sysv as the hash style.

Bug: 122343936
Bug: 122902928
Test: m kselftest_vdso_test && \
  adb push $OUT/data/nativetest64/linux-kselftest/vDSO/kselftest_vdso_test /data/local/tmp/ && \
  adb shell /data/local/tmp/kselftest_vdso_test
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Ice6ad2f99baa0eba2cc0813ed18486d1d9f4d612

arch/arm64/kernel/vdso/Makefile

index 1e47df8..ef275f7 100644 (file)
@@ -16,8 +16,7 @@ obj-vdso   := $(obj-vdso-c) $(obj-vdso-s)
 
 ccflags-y := -shared -fno-common -fno-builtin -fno-stack-protector
 ccflags-y += -DDISABLE_BRANCH_PROFILING -ffixed-x18
-ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 \
-               $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
+ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 -Wl,--hash-style=sysv
 ccflags-y += $(DISABLE_LTO)
 
 # Force -O2 to avoid libgcc dependencies