Skip to content

Commit a4a3893

Browse files
hogander-unikiepaulburton
authored andcommitted
MIPS: Prevent link failure with kcov instrumentation
__sanitizer_cov_trace_pc() is not linked in and causing link failure if KCOV_INSTRUMENT is enabled. Fix this by disabling instrumentation for compressed image. Signed-off-by: Jouni Hogander <[email protected]> Signed-off-by: Paul Burton <[email protected]> Cc: Lukas Bulwahn <[email protected]> Cc: [email protected]
1 parent a7effde commit a4a3893

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/mips/boot/compressed/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ KBUILD_AFLAGS := $(KBUILD_AFLAGS) -D__ASSEMBLY__ \
2929
-DBOOT_HEAP_SIZE=$(BOOT_HEAP_SIZE) \
3030
-DKERNEL_ENTRY=$(VMLINUX_ENTRY_ADDRESS)
3131

32+
# Prevents link failures: __sanitizer_cov_trace_pc() is not linked in.
33+
KCOV_INSTRUMENT := n
34+
3235
# decompressor objects (linked with vmlinuz)
3336
vmlinuzobjs-y := $(obj)/head.o $(obj)/decompress.o $(obj)/string.o
3437

0 commit comments

Comments
 (0)