From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14CB71C0DE7; Mon, 1 Apr 2024 16:31:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711989103; cv=none; b=uDfk4RqpjmljXq78jnrzksSzRjpsdps7YrsW1MdJ8XfWhXzkbSiwdMN1fIBYVhmYWSaqAw1iRzNj1tkMA6ttIhwbTrpPoP/C+szxfPkYUb0Xjwtyrh5gF4ubVS3mqNk1YsYyTFqhRa/vhr964diA6/gLK8wesNFzpPPNFvOL99c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711989103; c=relaxed/simple; bh=nJSME5G9EltWWBCb3Mrkz1B+h9rxyrNgkY1bX7Pan2Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=my/JQq62GEyf2xcf7sJhjhuGmHfpVh9BdOWuBS9zlYqmipr5/GkDw+qVn5bjIj91GDjiebIe2Iaffjd4ZIwfL4JOMPQOtVS8HJ4qKQP58GNbr2pcZO8mI44SXdhBQy1aGoeYAIhcRDpRLQV7cp5iXAdGHuNMugCWjNSrbR3SqeE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rAoKC1MZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rAoKC1MZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D31CC433C7; Mon, 1 Apr 2024 16:31:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711989102; bh=nJSME5G9EltWWBCb3Mrkz1B+h9rxyrNgkY1bX7Pan2Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rAoKC1MZR2xwM4Q6kRInc+WnIwCUsmSIDk0a18SUfxYikRoWDoruxlB9Zalh0IeCG opNuazBHIeG8RHJGnhGgtLc0m8pe0Tysr/HGpPhKCpWKNNPqnXh+LIVP5P+rzKtaSK KT7NdviAohcWanXMWqqp+zruUUK3Oh0O6UMEs+lI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nathan Chancellor , Brian Cain , Bill Wendling , Justin Stitt , Nick Desaulniers , Andrew Morton Subject: [PATCH 6.7 353/432] hexagon: vmlinux.lds.S: handle attributes section Date: Mon, 1 Apr 2024 17:45:40 +0200 Message-ID: <20240401152603.776046436@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240401152553.125349965@linuxfoundation.org> References: <20240401152553.125349965@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.7-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nathan Chancellor commit 549aa9678a0b3981d4821bf244579d9937650562 upstream. After the linked LLVM change, the build fails with CONFIG_LD_ORPHAN_WARN_LEVEL="error", which happens with allmodconfig: ld.lld: error: vmlinux.a(init/main.o):(.hexagon.attributes) is being placed in '.hexagon.attributes' Handle the attributes section in a similar manner as arm and riscv by adding it after the primary ELF_DETAILS grouping in vmlinux.lds.S, which fixes the error. Link: https://lkml.kernel.org/r/20240319-hexagon-handle-attributes-section-vmlinux-lds-s-v1-1-59855dab8872@kernel.org Fixes: 113616ec5b64 ("hexagon: select ARCH_WANT_LD_ORPHAN_WARN") Link: https://github.com/llvm/llvm-project/commit/31f4b329c8234fab9afa59494d7f8bdaeaefeaad Signed-off-by: Nathan Chancellor Reviewed-by: Brian Cain Cc: Bill Wendling Cc: Justin Stitt Cc: Nick Desaulniers Cc: Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- arch/hexagon/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+) --- a/arch/hexagon/kernel/vmlinux.lds.S +++ b/arch/hexagon/kernel/vmlinux.lds.S @@ -63,6 +63,7 @@ SECTIONS STABS_DEBUG DWARF_DEBUG ELF_DETAILS + .hexagon.attributes 0 : { *(.hexagon.attributes) } DISCARDS }