diff --git a/arch/lkl/kernel/vmlinux.lds.S b/arch/lkl/kernel/vmlinux.lds.S index dd273c92fac9d9..0dec86f212f3a5 100644 --- a/arch/lkl/kernel/vmlinux.lds.S +++ b/arch/lkl/kernel/vmlinux.lds.S @@ -71,6 +71,10 @@ SECTIONS STABS_DEBUG DWARF_DEBUG + /DISCARD/ : { + *(.export_symbol) + } + // Don't include DISCARDS section to build the target with code coverage. #if !defined(CONFIG_LKL_FUZZING) DISCARDS