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 @@ -500,10 +500,18 @@ SECTIONS
500
500
PROVIDE(__ref_stack_chk_guard = __stack_chk_guard);
501
501
502
502
/*
503
- * The ASSERT() sink to . is intentional, for binutils 2.14 compatibility:
503
+ * COMPILE_TEST kernels can be large - CONFIG_KASAN, for example, can cause
504
+ * this. Let's assume that nobody will be running a COMPILE_TEST kernel and
505
+ * let's assert that fuller build coverage is more valuable than being able to
506
+ * run a COMPILE_TEST kernel.
507
+ */
508
+ #ifndef CONFIG_COMPILE_TEST
509
+ /*
510
+ * The ASSERT() sync to . is intentional, for binutils 2.14 compatibility:
504
511
*/
505
512
. = ASSERT((_end - LOAD_OFFSET <= KERNEL_IMAGE_SIZE),
506
513
"kernel image bigger than KERNEL_IMAGE_SIZE" );
514
+ #endif
507
515
508
516
#ifdef CONFIG_X86_64
509
517
/*
You can’t perform that action at this time.
0 commit comments