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
466
466
}
467
467
468
468
/*
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:
470
477
*/
471
478
. = ASSERT((_end - LOAD_OFFSET <= KERNEL_IMAGE_SIZE),
472
479
"kernel image bigger than KERNEL_IMAGE_SIZE" );
480
+ #endif
473
481
474
482
/* needed for Clang - see arch/x86/entry/entry.S */
475
483
PROVIDE(__ref_stack_chk_guard = __stack_chk_guard);
You can’t perform that action at this time.
0 commit comments