From patchwork Thu Jun 1 12:09:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13263610 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C72E6C77B7E for ; Thu, 1 Jun 2023 12:10:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232505AbjFAMKW (ORCPT ); Thu, 1 Jun 2023 08:10:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232354AbjFAMKV (ORCPT ); Thu, 1 Jun 2023 08:10:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E337C9D; Thu, 1 Jun 2023 05:10:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7C52E6362E; Thu, 1 Jun 2023 12:10:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6A98C433EF; Thu, 1 Jun 2023 12:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685621419; bh=SvRJEGwApsVQ6jziK8jAnPbJhsGPVsEeuQqaBcetPfY=; h=From:To:Cc:Subject:Date:From; b=jGSgR900uLo52Hj0tg3P9s7X3GGyPr/QIe4osZQ+sieqMxFDk/6cyQqcV6RX0kOGS Q/mmFFu7cR6J1UpF7/DoKEpsJy4zPAmIZwy2SGCFyAc+JxEFFMiy18KIetb1AMc9GN AQC+9JL50GXK/o5m76U5eweRqHGisk+ShS2B682KS3/MBsrS4zyJ70FA2jgYmuXO2x Gd/gLbWXlq3fhexOfG5ZNo7MiihngDRY3TZSDXNzUxSSgRnGth1OggLdB/Rf+0et/m u567reb/qlpSnPERExlhmKT/cp5VeImOhRo5AEmhfaKBf2TNgY45GHxNiqa74uU3l6 vrnkNR6qQpo6A== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, Russell King , Masahiro Yamada , "David A. Long" , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Russell King , Rusty Russell , Sam Ravnborg , Tony Lindgren Subject: [PATCH 0/7] modpost: fix section mismatch detection for ARM Date: Thu, 1 Jun 2023 21:09:54 +0900 Message-Id: <20230601121001.1071533-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org addend_arm_rel() is completely, entirely bogus. Fix the code, and also catch more section mismatches. I confirmed this series is cleanly applicable to linux-next 20230601. Masahiro Yamada (7): modpost: fix section mismatch message for R_ARM_ABS32 modpost: fix section mismatch message for R_ARM_{PC24,CALL,JUMP24} modpost: detect section mismatch for R_ARM_{MOVW_ABS_NC,MOVT_ABS} modpost: refactor find_fromsym() and find_tosym() modpost: detect section mismatch for R_ARM_THM_{MOVW_ABS_NC,MOVT_ABS} modpost: fix section_mismatch message for R_ARM_THM_{CALL,JUMP24,JUMP19} modpost: detect section mismatch for R_ARM_REL32 scripts/mod/modpost.c | 193 ++++++++++++++++++++++++++++-------------- 1 file changed, 129 insertions(+), 64 deletions(-)