@@ -56,12 +56,8 @@ SECTIONS
*(.note*)
}
- /*
- * The ASSERT() sink to . is intentional, for binutils 2.14 compatibility:
- */
- . = ASSERT(_end <= 0x8000, "Setup too big!");
- . = ASSERT(hdr == 0x1f1, "The setup header has the wrong offset!");
+ ASSERT(_end <= 0x8000, "Setup too big!")
+ ASSERT(hdr == 0x1f1, "The setup header has the wrong offset!")
/* Necessary for the very-old-loader check to work... */
- . = ASSERT(__end_init <= 5*512, "init sections too big!");
-
+ ASSERT(__end_init <= 5*512, "init sections too big!")
}
The minimum binutils version was bumped to 2.20 in 2017 so there is no longer a need to work around quirks in older versions than that. So drop some meaningless linker script assignments to '.' of ASSERT() return values. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> --- arch/x86/boot/setup.ld | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)