From 02b040386885fd9a966996805b48ba7e9d93cd23 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Sat, 19 Sep 2026 16:14:55 +0100 Subject: [PATCH] MIPS: Reword KBUILD_SYM32 documentation for clarity It is currently hard to figure out what the inline documentation for the KBUILD_SYM32 option means as it speaks in generic build/ELF format terms which can mean just about anything, while the whole point of the option is whether kernel symbols can or cannot fit in the 32-bit value range. Adjust the description accordingly and also quote the more correct 'n' rather than 'no' setting (even though all that matters is whether it's 'y' or not). Signed-off-by: Maciej W. Rozycki Signed-off-by: Thomas Bogendoerfer --- arch/mips/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/mips/Makefile b/arch/mips/Makefile index fad3d7974617..c84e5dbcb25c 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -285,10 +285,12 @@ cflags-y += -I$(srctree)/arch/mips/include/asm/mach-generic drivers-$(CONFIG_PCI) += arch/mips/pci/ # -# Automatically detect the build format. By default we choose -# the elf format according to the load address. -# We can always force a build with a 64-bits symbol format by -# passing 'KBUILD_SYM32=no' option to the make's command line. +# Automatically detect whether to build a 64-bit kernel using symbols +# limited to 32-bit values, which produces more compact code. This +# relies on the kernel image being linked at a 32-bit load address, +# which we use to infer whether to use this arrangement for symbols. +# Use 'make KBUILD_SYM32=n' to override this default choice and force +# 64-bit symbols to be used instead. # ifdef need-compiler ifdef CONFIG_64BIT