From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (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 BBB943B7B99 for ; Tue, 7 Jul 2026 07:22:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783408975; cv=none; b=LkzcvmW6P7nZfmTRmoXRaZ23gMMIqcfZ5k5T7qkghVdlB5s0rjsSxZECx4AyjMfYvEuleC97f6BpRulxUi1GzGFT8+Gob8vZpzQsJsGmyxZiPBu52aXYVJT8xjnWY019sqe0dn/BcY+HzHuEFkaDHuXjBEpGlkBgQcRbRDa4/pI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783408975; c=relaxed/simple; bh=OvI7222dt3pd1EshIbEJENw5/OnwTK2o+TJyWMgUtYI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PED6OzZFvQAidCuY5KxBkeiNcHJ7jhCc0BmFrs2F/Q+DpML+W3xgxJ9DiyZObYzEcTBgXQal0YA0w4B7cdvOQvtXjoV+Ua/NOQkN+cIwxbhjcU/DFECOLKlFh/i7fabRYo0SuIKnr+aVXA5Rdw/uH2ubaiJuiHcdqZUBoWczHJA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=lyZghniN; arc=none smtp.client-ip=95.215.58.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="lyZghniN" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1783408964; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=D3PtV/wdUNwaqt62doo9rdFl9ViQ6FDPrsmGB6jLREY=; b=lyZghniNuv5oKni/+djF6R42b4KpSDFfaqiqzfVVx4qx2Ys1ReRT8GirINeedr+xn9EYWh QTJlmJcT8zanvI4ffBY3sD6r5MxLIIgivY9xVkknTK8w8tVbeRTyvi19/qrrKJljAfv5kS dOF8nx8//K/WdDh2HRmsx4cxhpsJfRc= From: George Guo To: chenhuacai@kernel.org, jpoimboe@kernel.org, peterz@infradead.org, jikos@kernel.org, mbenes@suse.cz, pmladek@suse.com Cc: kernel@xen0n.name, joe.lawrence@redhat.com, rostedt@goodmis.org, ardb@kernel.org, nathan@kernel.org, nick.desaulniers+lkml@gmail.com, yangtiezhu@loongson.cn, jiaxun.yang@flygoat.com, liukexin@kylinos.cn, guodongtai@kylinos.cn, xry111@xry111.site, wangyuli@aosc.io, loongarch@lists.linux.dev, live-patching@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v3 05/12] LoongArch: Fix EFI linking with -fdata-sections Date: Tue, 7 Jul 2026 15:20:24 +0800 Message-Id: <20260707072031.231066-6-dongtai.guo@linux.dev> In-Reply-To: <20260707072031.231066-1-dongtai.guo@linux.dev> References: <20260707072031.231066-1-dongtai.guo@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: George Guo When building with func-fdata-sections, the .init.bss section gets split up into a bunch of .init.bss. sections. Make sure they get linked into .init.data. Co-developed-by: Kexin Liu Signed-off-by: Kexin Liu Signed-off-by: George Guo --- arch/loongarch/kernel/vmlinux.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/loongarch/kernel/vmlinux.lds.S b/arch/loongarch/kernel/vmlinux.lds.S index 840d944c2f73..dc5fa017db94 100644 --- a/arch/loongarch/kernel/vmlinux.lds.S +++ b/arch/loongarch/kernel/vmlinux.lds.S @@ -96,7 +96,7 @@ SECTIONS #endif .init.bss : { - *(.init.bss) + *(.init.bss .init.bss.*) } . = ALIGN(PECOFF_SEGMENT_ALIGN); __initdata_end = .; -- 2.25.1