From: Petr Pavlu Date: Fri, 27 Mar 2026 07:59:02 +0000 (+0100) Subject: module, m68k: force sh_addr=0 for arch-specific sections X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9cb4d4dc82272538de1b7edb6e8cf91597ed00b0;p=thirdparty%2Fkernel%2Flinux.git module, m68k: force sh_addr=0 for arch-specific sections When linking modules with 'ld.bfd -r', sections defined without an address inherit the location counter, resulting in non-zero sh_addr values in the resulting .ko files. Relocatable objects are expected to have sh_addr=0 for all sections. Non-zero addresses are confusing in this context, typically worse compressible, and may cause tools to misbehave [1]. Force sh_addr=0 for all m68k-specific module sections. Link: https://sourceware.org/bugzilla/show_bug.cgi?id=33958 [1] Signed-off-by: Petr Pavlu Signed-off-by: Sami Tolvanen --- diff --git a/arch/m68k/include/asm/module.lds.h b/arch/m68k/include/asm/module.lds.h index fda94fa382430..fcd08689b2820 100644 --- a/arch/m68k/include/asm/module.lds.h +++ b/arch/m68k/include/asm/module.lds.h @@ -1,5 +1,5 @@ SECTIONS { - .m68k_fixup : { + .m68k_fixup 0 : { __start_fixup = .; *(.m68k_fixup) __stop_fixup = .;