Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp662618rwd; Thu, 1 Jun 2023 05:12:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6DiOSy+RBy31/vM+FAAj6LOcR3/PMhooto21BZMuOR5AQN4D7gdfpuH9mlaUphuaztrjkj X-Received: by 2002:a17:902:e993:b0:1b0:3a03:50d0 with SMTP id f19-20020a170902e99300b001b03a0350d0mr8153712plb.26.1685621554488; Thu, 01 Jun 2023 05:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685621554; cv=none; d=google.com; s=arc-20160816; b=O9K2vyoUprol17GxzU5LUcgequ8R0Z8BnTTEiFF1kWUTg37uwrTYuIfJ5DyBLIxd/d XhrgevOomLz8aYbVZAsqf4JTCNrXaZDLPTMF6YkwyVATAljF1eoi3Uim6BV2igf8w4gd TCP81jPLU8khKeNWGAUuD+fJw43SwNtX6lOICv91By1sPB898yu0g64QuAeiyDqH1Kom T0xqSJnyRIe6hdCybnFruyMAuxVtTAzgB21hJoJ2H+ieywg7405OoWPk4KLUtCPFVuic UwR3OKAmJFwBMNRV0ZQYcCp1r/OOu4TRtAWKOi2QpWRxX6XcZoUqf/bvPmJNurj2fOma BD2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qFJyT4E8qBrJyEcTW0k3ZyDLOWXrag8ToeRW4I5t9yA=; b=Q0S8QvNOfjzS0XNBhvLacPWbnoz5658gwAfzxIyjfrvuRPVuEZH1Tn4QaeHmZXaolT kYHBj2v1M9mMaJ26C0VIkKF7UcuCZiNU7Sgcq6X8WyEWMLRuLZ+LY4TlwYqQH5FJSyfc wJ4AMuMhIBWviM4KeVycsOt21j+kxMSMLVK87x6NXb7md1GdjqBXePyCrUktcvbyIx40 ec7sIA3kr6Byf9ryaE+aTY+Go+qlYFY4JiHOly3o+5+J9X7aLPAABjigsm+Ar/BDghB1 SytchY70AH4/UCf85t9hjOnQ0T2JjcNGkVWzGYVfJahKqD3Hie0xhqyMm/B4BtNvO0E0 nusg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jGSgR900; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l9-20020a170902f68900b001a1deff6062si2699870plg.281.2023.06.01.05.12.22; Thu, 01 Jun 2023 05:12:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jGSgR900; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232987AbjFAMKX (ORCPT + 99 others); Thu, 1 Jun 2023 08:10:23 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.39.2