diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2020-06-26 14:40:56 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2020-07-30 11:37:35 -0700 |
commit | 20d38f7c45a44e4b762b586a7bcacbc93ddb3153 (patch) | |
tree | 0f6256feaa2a3e5b1d417c86b33097bb54c35919 /arch/riscv/boot | |
parent | ed48b297fe211400531a129c592165958d661def (diff) | |
download | lwn-20d38f7c45a44e4b762b586a7bcacbc93ddb3153.tar.gz lwn-20d38f7c45a44e4b762b586a7bcacbc93ddb3153.zip |
riscv: Allow building with kcov coverage
Add ARCH_HAS_KCOV and HAVE_GCC_PLUGINS to the riscv Kconfig.
Also disable instrumentation of some early boot code and vdso.
Boot-tested on QEMU's riscv64 virt machine.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/boot')
-rw-r--r-- | arch/riscv/boot/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile index 3530c59b3ea7..c59fca695f9d 100644 --- a/arch/riscv/boot/Makefile +++ b/arch/riscv/boot/Makefile @@ -14,6 +14,8 @@ # Based on the ia64 and arm64 boot/Makefile. # +KCOV_INSTRUMENT := n + OBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S targets := Image loader |