File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -466,10 +466,18 @@ SECTIONS
466466}
467467
468468/*
469- * The ASSERT() sink to . is intentional, for binutils 2.14 compatibility:
469+ * COMPILE_TEST kernels can be large - CONFIG_KASAN, for example, can cause
470+ * this. Let's assume that nobody will be running a COMPILE_TEST kernel and
471+ * let's assert that fuller build coverage is more valuable than being able to
472+ * run a COMPILE_TEST kernel.
473+ */
474+ #ifndef CONFIG_COMPILE_TEST
475+ /*
476+ * The ASSERT() sync to . is intentional, for binutils 2.14 compatibility:
470477 */
471478. = ASSERT((_end - LOAD_OFFSET <= KERNEL_IMAGE_SIZE),
472479 "kernel image bigger than KERNEL_IMAGE_SIZE" );
480+ #endif
473481
474482/* needed for Clang - see arch/x86/entry/entry.S */
475483PROVIDE(__ref_stack_chk_guard = __stack_chk_guard);
You can’t perform that action at this time.
0 commit comments