Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2113526rdg; Sun, 13 Aug 2023 09:45:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFscX1l+NCJF+UAqZI/OxVRNC6yBOJReYUsS+BuQg8aV50UwMvaXEv7u5Pi3UogIngQsoxS X-Received: by 2002:a17:902:b591:b0:1b9:ea60:cd82 with SMTP id a17-20020a170902b59100b001b9ea60cd82mr7467489pls.5.1691945125666; Sun, 13 Aug 2023 09:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691945125; cv=none; d=google.com; s=arc-20160816; b=JfMh6gJLW0Fwkphp+lJKp772u/Fz6EV8Rn9At9uq5MrEzgcA9LJKShsQwFfsAb2ex3 UK3C21bjbNtemv9+Kq5bi6XSMzKqhTl515hagHSMU0M56fb5kKNXk1AWDBsDU9B4vKFU r8skFWuwOOEnH0uJ1/SeILKX84AU1tP/2qzNAiygoulMlx93Y98adzMWazjgZ5p6Zx/h Gb0xX96HQODf8kvYWx2q1eFWphkCcRfYunh1N82dEvmGOfaPwTMeJjEAnuNy/Yq44LF6 NAUxS9Fv196oVN3ZH3rWX3s/qIT4UQfozmOhQ/A4VGdTz4PKmYyeDwmGz7+7oSs84HNP Kxpg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7IpR5C8UcgSQsvS2cxXgLTAgwj57wOLHQiVYXg6/kSA=; fh=Ryr6RbHigqNn1jx4aQekdbEkQ07DbCkUbgruHd24Q7M=; b=ucUXAFWGYTeDf8QtXv55roZeFk3fEMtpZLjsLulNtFr4zAO7OzX7zNIvBfNebxkjTx A0yTa7DKxhToiv6ya+FfXxe1qwTjRBRCxYA4SITWJsBuMrByMVBgiBrvKmTGZ9j/VncF 67CO9cR8LciLCYsYZg/uFTLP6/yBurvStsIyUYHZMLO2HHLZjGaGdBAhnpXFEwUpMDnj DvhXbvwxorR5M7zL4P7nP2R22OjxmKa3niMA0nJEid+3fJPtbLLw7MVqZqN/9ojjdY3u LFyyA90M/9makIEmjgaipT+Fkw4/v60FkW+F0qzB5uvH5XSPvvpoK4LYuHi3p9VbF4lg 0H9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FVqCenR9; 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 p3-20020a170902c70300b001bb7b0d358bsi6304633plp.272.2023.08.13.09.45.13; Sun, 13 Aug 2023 09:45:25 -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=FVqCenR9; 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 S233378AbjHMQVd (ORCPT + 99 others); Sun, 13 Aug 2023 12:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231161AbjHMQV3 (ORCPT ); Sun, 13 Aug 2023 12:21:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 481F12D6D; Sun, 13 Aug 2023 09:21:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 16AE06387E; Sun, 13 Aug 2023 16:07:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C697C433C8; Sun, 13 Aug 2023 16:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691942843; bh=b5K8hr69IDOAhaq9/WZGJCGdNQ+l0t7unVtsTp3IF5E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FVqCenR9mn3V57wnnKjxEJx2Wrl/Q8ZuaHU9wKSJzQV9OcGuLPeE28jHE5H8jYM3O te6IMURrp1qAGUz73M1SVmAcypJXdgMlv/1VWAr3laZHnFXYOihIKfmklH1yJnmhIJ 4SHLHWT2dszlPq3C649m0hSYk4MOJ4fk6vRO9BupgaOS10hwmZLgXhXN42xtOWbm80 pAaMdlptV5KQBBIarBNWpEhVQqdc7+K4TXYI+garqu9OSLEdFb4uk6NWspEzBTbONp Vhl3FhyPntvdBGOd4cWprYS86bU5fXLuykq09AApcMV9BU2L69M48nKK3d4nKM/aCi 7a0iuNk2bI0/A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Ben Hutchings , Jan-Benedict Glaw , Geert Uytterhoeven , Sasha Levin , linux-m68k@lists.linux-m68k.org Subject: [PATCH AUTOSEL 5.15 12/31] m68k: Fix invalid .section syntax Date: Sun, 13 Aug 2023 12:05:45 -0400 Message-Id: <20230813160605.1080385-12-sashal@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230813160605.1080385-1-sashal@kernel.org> References: <20230813160605.1080385-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.15.126 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 From: Ben Hutchings [ Upstream commit 922a9bd138101e3e5718f0f4d40dba68ef89bb43 ] gas supports several different forms for .section for ELF targets, including: .section NAME [, "FLAGS"[, @TYPE[,FLAG_SPECIFIC_ARGUMENTS]]] and: .section "NAME"[, #FLAGS...] In several places we use a mix of these two forms: .section NAME, #FLAGS... A current development snapshot of binutils (2.40.50.20230611) treats this mixed syntax as an error. Change to consistently use: .section NAME, "FLAGS" as is used elsewhere in the kernel. Link: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=m68k&ver=6.4%7Erc6-1%7Eexp1&stamp=1686907300&raw=1 Signed-off-by: Ben Hutchings Tested-by: Jan-Benedict Glaw Link: https://lore.kernel.org/r/ZIyBaueWT9jnTwRC@decadent.org.uk Signed-off-by: Geert Uytterhoeven Signed-off-by: Sasha Levin --- arch/m68k/fpsp040/skeleton.S | 4 ++-- arch/m68k/ifpsp060/os.S | 4 ++-- arch/m68k/kernel/relocate_kernel.S | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/m68k/fpsp040/skeleton.S b/arch/m68k/fpsp040/skeleton.S index 439395aa6fb42..081922c72daaa 100644 --- a/arch/m68k/fpsp040/skeleton.S +++ b/arch/m68k/fpsp040/skeleton.S @@ -499,13 +499,13 @@ in_ea: dbf %d0,morein rts - .section .fixup,#alloc,#execinstr + .section .fixup,"ax" .even 1: jbsr fpsp040_die jbra .Lnotkern - .section __ex_table,#alloc + .section __ex_table,"a" .align 4 .long in_ea,1b diff --git a/arch/m68k/ifpsp060/os.S b/arch/m68k/ifpsp060/os.S index 7a0d6e4280665..89e2ec224ab6c 100644 --- a/arch/m68k/ifpsp060/os.S +++ b/arch/m68k/ifpsp060/os.S @@ -379,11 +379,11 @@ _060_real_access: | Execption handling for movs access to illegal memory - .section .fixup,#alloc,#execinstr + .section .fixup,"ax" .even 1: moveq #-1,%d1 rts -.section __ex_table,#alloc +.section __ex_table,"a" .align 4 .long dmrbuae,1b .long dmrwuae,1b diff --git a/arch/m68k/kernel/relocate_kernel.S b/arch/m68k/kernel/relocate_kernel.S index ab0f1e7d46535..f7667079e08e9 100644 --- a/arch/m68k/kernel/relocate_kernel.S +++ b/arch/m68k/kernel/relocate_kernel.S @@ -26,7 +26,7 @@ ENTRY(relocate_new_kernel) lea %pc@(.Lcopy),%a4 2: addl #0x00000000,%a4 /* virt_to_phys() */ - .section ".m68k_fixup","aw" + .section .m68k_fixup,"aw" .long M68K_FIXUP_MEMOFFSET, 2b+2 .previous @@ -49,7 +49,7 @@ ENTRY(relocate_new_kernel) lea %pc@(.Lcont040),%a4 5: addl #0x00000000,%a4 /* virt_to_phys() */ - .section ".m68k_fixup","aw" + .section .m68k_fixup,"aw" .long M68K_FIXUP_MEMOFFSET, 5b+2 .previous -- 2.40.1