From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de ([212.227.126.187]:62150 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751200AbbDOJtP (ORCPT ); Wed, 15 Apr 2015 05:49:15 -0400 From: Arnd Bergmann Subject: [PATCH] modpost: add .text.fixup to OTHER_TEXT_SECTIONS Date: Wed, 15 Apr 2015 11:48:31 +0200 Message-ID: <5641468.B6ky8Ch4vY@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Rusty Russell Cc: Quentin Casasnovas , linux-kbuild@vger.kernel.org, Ard Biesheuvel , Nicolas Pitre , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Two correct patches for the 4.1 release clashed in a way that caused modpost to fail badly, with hundreds warnings like WARNING: vmlinux.o(__ex_table+0x1014): Section mismatch in reference from the (unknown reference) (unknown) to the (unknown reference) .text.fixup:(unknown) The fix, as suggested by the warnings, is to add the new .text.fixup section into the OTHER_TEXT_SECTIONS list. Signed-off-by: Arnd Bergmann Fixes: 52dc0595d540 ("modpost: handle relocations mismatch in __ex_table") Fixes: c4a84ae39b4a ("ARM: 8322/1: keep .text and .fixup regions closer together") --- The mostpost patch has not made it into 4.1 yet, so it's probably best to add this fix on top of that to avoid breaking when Linus pulls it in. diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index cbd53e08769d..dd7efba020a1 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -876,7 +876,7 @@ static void check_section(const char *modname, struct elf_info *elf, #define TEXT_SECTIONS ".text", ".text.unlikely", ".sched.text", \ ".kprobes.text" #define OTHER_TEXT_SECTIONS ".ref.text", ".head.text", ".spinlock.text", \ - ".fixup", ".entry.text" + ".fixup", ".text.fixup", ".entry.text" #define INIT_SECTIONS ".init.*" #define MEM_INIT_SECTIONS ".meminit.*"