diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2019-06-18 23:09:03 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2019-07-17 14:06:28 +0530 |
commit | eee417be8e881ce35ad9cf76bb73724751069334 (patch) | |
tree | 948eccd135e7a3ece009ab0f691974ea9c725f45 | |
parent | afdc4d76cfd7bbc0920d200463c2b181f06a928c (diff) |
RFC: ANDROID: arm64: vdso: llvm linker does not support -n optionexperimental-android-5.2
LD arch/arm64/kernel/vdso/vdso.so.dbg
ld.lld: error: unknown argument: -n
arch/arm64/kernel/vdso/Makefile:36: recipe for target 'arch/arm64/kernel/vdso/vdso.so.dbg' failed
make[1]: *** [arch/arm64/kernel/vdso/vdso.so.dbg] Error 1
arch/arm64/Makefile:166: recipe for target 'vdso_prepare' failed
make: *** [vdso_prepare] Error 2
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r-- | arch/arm64/kernel/vdso/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile index af51f46e47cc..a4c89693cded 100644 --- a/arch/arm64/kernel/vdso/Makefile +++ b/arch/arm64/kernel/vdso/Makefile @@ -12,9 +12,14 @@ obj-vdso := gettimeofday.o note.o sigreturn.o targets := $(obj-vdso) vdso.so vdso.so.dbg obj-vdso := $(addprefix $(obj)/, $(obj-vdso)) +ifndef CONFIG_LD_IS_LLD ldflags-y := -shared -nostdlib -soname=linux-vdso.so.1 --hash-style=sysv \ --build-id -n -T +else +ldflags-y := -shared -nostdlib -soname=linux-vdso.so.1 --hash-style=sysv \ + --build-id -T ccflags-y += $(DISABLE_LTO) +endif # Disable gcov profiling for VDSO code GCOV_PROFILE := n |