aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-11-12 09:37:12 -0500
committerCatalin Marinas <catalin.marinas@arm.com>2015-11-12 10:18:07 -0500
commit543097843ca7c9ac3758d0b5879ea2a6f44089de (patch)
treeb8364f375f54a8d0bc8285aa7cb45a77dbd1f763
parent3d6d103538e73a5710ea66d95fa2b652bf6eab77 (diff)
arm64: build vdso without libgcov
On a cross-toolchain without glibc support, libgcov may not be available, and attempting to build an arm64 kernel with GCOV enabled then results in a build error: /home/arnd/cross-gcc/lib/gcc/aarch64-linux/5.2.1/../../../../aarch64-linux/bin/ld: cannot find -lgcov We don't really want to link libgcov into the vdso anyway, so this patch just disables GCOV in the vdso directory, just as we do for most other architectures. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--arch/arm64/kernel/vdso/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile
index f6fe17d88da5..b467fd0a384b 100644
--- a/arch/arm64/kernel/vdso/Makefile
+++ b/arch/arm64/kernel/vdso/Makefile
@@ -15,6 +15,9 @@ ccflags-y := -shared -fno-common -fno-builtin
15ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 \ 15ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 \
16 $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) 16 $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
17 17
18# Disable gcov profiling for VDSO code
19GCOV_PROFILE := n
20
18# Workaround for bare-metal (ELF) toolchains that neglect to pass -shared 21# Workaround for bare-metal (ELF) toolchains that neglect to pass -shared
19# down to collect2, resulting in silent corruption of the vDSO image. 22# down to collect2, resulting in silent corruption of the vDSO image.
20ccflags-y += -Wl,-shared 23ccflags-y += -Wl,-shared