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 2D498142624; Thu, 11 Apr 2024 10:38:00 +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=1712831880; cv=none; b=UsnxPjjdmKP8eghxK9Ejt4LK5N+JBe/cipAe4rVJQWYgKsVpTffEC5pX0E2+XEtSDaqm4B2A16T6yCvG5Hw+J0H27igbn+UBjMOa50swwBvl/WT4/9ukDmnAv9hCmSXlV6VC6N7o0j6U+nQHnCEop2GHCSt2okiZwSSMosCiHq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712831880; c=relaxed/simple; bh=NSANQM59KvpSvPmMQBuYNcM8/ix1ZSQ1LVJTZq0QFTk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lgeoG/DvdOrEeSE+eFCNb/oaDAsJgYe19+CDkDfByLXSRI3CXutG1o+kTMvMzpxg01rAeVPCaD+ygTDCwzZiu5WXtXYLWK5vRp9yST+mWDrLNrOZWvIqX0BMZ37cCfVqVAfJMKI17ShpI0kW7cG2+qPcTrqWIrddeHlQ67VVaAI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JD70yol8; 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="JD70yol8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7DB9C433C7; Thu, 11 Apr 2024 10:37:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712831880; bh=NSANQM59KvpSvPmMQBuYNcM8/ix1ZSQ1LVJTZq0QFTk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JD70yol8ZU+dRrn6uTdsog9JFTZk8hifLvZ37z9Wf/2zxIcPM8VY+nbG1xPlfTzaM ePM1AtakfilozTcRM7ZBheU6/QIR4WrEIZVx5hdrCCnwrZ9h8mxyVnuew7PimCLf12 50p2+0LtetQ8xf39vfKcSzQTj1fQp5334FcNGK14= 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 5.10 158/294] hexagon: vmlinux.lds.S: handle attributes section Date: Thu, 11 Apr 2024 11:55:21 +0200 Message-ID: <20240411095440.403382161@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240411095435.633465671@linuxfoundation.org> References: <20240411095435.633465671@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 5.10-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 @@ -64,6 +64,7 @@ SECTIONS STABS_DEBUG DWARF_DEBUG ELF_DETAILS + .hexagon.attributes 0 : { *(.hexagon.attributes) } DISCARDS }