Commit e6f85cbe authored by Mark Rutland's avatar Mark Rutland Committed by Will Deacon
Browse files

arm64: entry: fix KCOV suppression

We suppress KCOV for entry.o rather than entry-common.o. As entry.o is
built from entry.S, this is pointless, and permits instrumentation of
entry-common.o, which is built from entry-common.c.

Fix the Makefile to suppress KCOV for entry-common.o, as we had intended
to begin with. I've verified with objdump that this is working as

Fixes: bf6fa2c0

 ("arm64: entry: don't instrument entry code with KCOV")
Signed-off-by: default avatarMark Rutland <>
Cc: Catalin Marinas <>
Cc: James Morse <>
Cc: Marc Zyngier <>
Cc: Will Deacon <>

Signed-off-by: default avatarWill Deacon <>
parent 31a7f0f6
......@@ -17,7 +17,7 @@ CFLAGS_syscall.o += -fno-stack-protector
# It's not safe to invoke KCOV when portions of the kernel environment aren't
# available or are out-of-sync with HW state. Since `noinstr` doesn't always
# inhibit KCOV instrumentation, disable it for the entire compilation unit.
KCOV_INSTRUMENT_entry.o := n
KCOV_INSTRUMENT_entry-common.o := n
# Object file lists.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment