Message ID | 20230601121001.1071533-1-masahiroy@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp277460vqr; Thu, 1 Jun 2023 05:19:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ41FG938yEy2zDcyJPXlb6byPfukDeuQ70AEM3JvH6bEu43jFlT3/mwdiPr2N4w75jST3Ix X-Received: by 2002:a17:902:724c:b0:1a5:150f:8558 with SMTP id c12-20020a170902724c00b001a5150f8558mr7255123pll.17.1685621983720; Thu, 01 Jun 2023 05:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685621983; cv=none; d=google.com; s=arc-20160816; b=aJda1sXFW3vDZdymmiUlrZ6bA/BoIhYAHgvg2BdA4YHEkdm4nW0Jr+2BtXapXHAMhx FUUvKuityI37qQYU7AlVJ+EnP5ZsX2nWo8EwpueEVDdbleE1K7zs/apmuCWnNUmtJq2q L156aPO6rHYmAo28LI72EHJ822nr9sd77gAe2rxwP8mMofdmnnKS+BUcuuZxyR+/bOhK 4LXVxkKpPKy3VV/teMeRu1ixmPcZCb2AKTJOYVFOGac2bj21BA/300pMi+GohfRhlJoJ JskMW13ggY0e3GwL1UftbM40sppa7THd+cZnoGmPk/m3JdD6yaPDNQxOMSpW0veyCz3G gpJA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x2-20020a170902ea8200b001aafec82436si2654753plb.204.2023.06.01.05.19.29; Thu, 01 Jun 2023 05:19:43 -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 S233122AbjFAMKX (ORCPT <rfc822;limurcpp@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <masahiroy@kernel.org> To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel <ardb@kernel.org>, linux-arm-kernel@lists.infradead.org, Russell King <linux@armlinux.org.uk>, Masahiro Yamada <masahiroy@kernel.org>, "David A. Long" <dave.long@linaro.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Nicolas Schier <nicolas@fjasle.eu>, Russell King <rmk+kernel@arm.linux.org.uk>, Rusty Russell <rusty@rustcorp.com.au>, Sam Ravnborg <sam@ravnborg.org>, Tony Lindgren <tony@atomide.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767502757119486663?= X-GMAIL-MSGID: =?utf-8?q?1767502757119486663?= |
Series |
modpost: fix section mismatch detection for ARM
|
|
Message
Masahiro Yamada
June 1, 2023, 12:09 p.m. UTC
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(-)