Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8897513rwr; Thu, 11 May 2023 07:32:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5k5dRdqVG5hnCUl3vjM5KEEFg8KNwjYTLlYONDcPro8E/37iQYM4It1jE+/OM5GG2B2tmn X-Received: by 2002:a17:902:710e:b0:1a1:d366:b085 with SMTP id a14-20020a170902710e00b001a1d366b085mr16595770pll.21.1683815569273; Thu, 11 May 2023 07:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683815569; cv=none; d=google.com; s=arc-20160816; b=QAkdgfaeunDy2w0LMua0X0qpPAx4L+x5xIoGYCJYTYhe2gp7bWuh6qNT/kIokuR14h x4LuUtKifVuitX1yMD2AVK4KII+zF38Q4m4GP5bZmQ/yT8v8x+ONHGUcnw1PCLNZhZTj bkG5aBZzBRX37eZ6BKVCKt6QrnsEGAQQOmvkeja9tLJ/25dV4Q+rLQDcu7z48ZDPV4Jv oN2jwcFBp/06gy/KWqOvCWTMmIasnlOM9t5jLxCs9Fn/nkC13nOeg+NQv/OctnZ/AiTb CbmJBYJmQ967cqHot5srH8sdjkW/rQ0a2WykdeLmv27CxFu3ae2tcPGiMX59XS6D597P zXwg== 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=8zlfSqhbFZ+8hH2tT062o2dqs0nfzVqN75x7D7cn6RA=; b=ahGBbuHd+SO5KIlJ9PrsNST77l/iJkYrIIqjlkyd3A2aJaqKWgIqHv3EZHUYwgz/b6 CCDJKV2oqs0bek4UCBM8mFKi8kNLZJvxH6732UXNI0sxGgxXuUyyJ7VIfZBu7XFySgv6 vukCWWcivv1PHs6sDSABLMQF5voiWiNBDBZb3WNAutxZw7Q9eRC748lUU6EL+ZnpOyMW ePrd8mIDhjeQRpxxcRhTvyqIQXDD5wct7HAPtHiGCVctp7VtU7gCytkQMSt3sjkqiCyh G+1XoBg+3pLn1t33E/eRxLyQ5Vy+tlk3AjyAqBrACgpqXaSyICl5mVMfOjs6nlVAIguU BhyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qQiuEKd2; 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 i1-20020a1709026ac100b001ab0a26d275si6300372plt.221.2023.05.11.07.32.36; Thu, 11 May 2023 07:32:49 -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=qQiuEKd2; 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 S238327AbjEKOX5 (ORCPT + 99 others); Thu, 11 May 2023 10:23:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238156AbjEKOXh (ORCPT ); Thu, 11 May 2023 10:23:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FCDA83DD; Thu, 11 May 2023 07:23:25 -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 D2098610A2; Thu, 11 May 2023 14:23:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6235C433D2; Thu, 11 May 2023 14:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683815004; bh=XDpfU4QGkxHCk0PcVXqfWjLiQT8efnUkxx2g6qxryQw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qQiuEKd25qGNxzMC/VzrANFNkwAxyE7/iChs3QZIM0Bl4Uf4R84Ga0Dk42m888RVb fZ5NEuJv2QYk/nbcRcn0laW4g0chl+t0F6Ys/PVmoOzQFtoKnV8Cwq2Hnz1p/qyEdN 3VslTOtUm1M6/+smqskiwzYeuZtAeIFuxw5iJK6IfppnovvZMeSW+/RWvMFQmkKWsA QFVLYHSkX3p/xZVTibvWsP7LuGrv+ede51WSunQKrRYZ12ZZ1TEAs9KJkoCICil8WS NsAELJWQYEM/WSNI8mrXsecWykxDQQlRdYYIWKMGZ/9YsQWUpbJ9GfilidJPpuTkBl wkEaw9Qq3jlYw== From: Jisheng Zhang To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Arnd Bergmann Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH 3/4] vmlinux.lds.h: use correct .init.data.* section name Date: Thu, 11 May 2023 22:12:10 +0800 Message-Id: <20230511141211.2418-4-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230511141211.2418-1-jszhang@kernel.org> References: <20230511141211.2418-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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: X-Mailing-List: linux-kernel@vger.kernel.org If building with -fdata-sections on riscv, LD_ORPHAN_WARN will warn similar as below: riscv64-linux-gnu-ld: warning: orphan section `.init.data.efi_loglevel' from `./drivers/firmware/efi/libstub/printk.stub.o' being placed in section `.init.data.efi_loglevel' I believe this is caused by a a typo: init.data.* should be .init.data.* Signed-off-by: Jisheng Zhang --- include/asm-generic/vmlinux.lds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index d1f57e4868ed..371026ca7221 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -688,7 +688,7 @@ /* init and exit section handling */ #define INIT_DATA \ KEEP(*(SORT(___kentry+*))) \ - *(.init.data init.data.*) \ + *(.init.data .init.data.*) \ MEM_DISCARD(init.data*) \ KERNEL_CTORS() \ MCOUNT_REC() \ -- 2.40.1