Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp507642ybp; Thu, 10 Oct 2019 23:08:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrVCybL6sHtkUK09OIwT3GiameBXmiCeGqq7jzUr7nszOtUPv6bEyPOvBw8ViQ87EGfMWf X-Received: by 2002:a05:6402:703:: with SMTP id w3mr11694566edx.95.1570774099167; Thu, 10 Oct 2019 23:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570774099; cv=none; d=google.com; s=arc-20160816; b=nr7H26hjpvCnfKPGO83lXqX6sSO5Xtq5G9xpmjvORppJOCMbt2/Sb3L8TGa+ZNAB33 8JsBr17OpPEjxp/pFPXsTd/qWGYL/xVewmF5XNmLBLR69DFNbtG3vXPZtCBhcHYa8PyA RmRY+F0FpiontAEzuClbjnRlxRxQsjjGYbn2oWu3nXzw+vh/3PdISOmHQWAmjjt4+K3q mNRcRi9LZ6zlr44KYGKYFrvmmmVf5MQ49u/9/DCg3lBskVvKy4dFOWWTwJE5VJmeEYtD eOQBYSgBsD+TehJbabTgn83V3+j2TpMnpi435lT5H1+7cVMMqPlsbgd7jhlauL3J97Hv Busg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=+gu9PmZ3RzDJMNcmdj5Bb4j1LgQnJHb5W2OUAsowwCI=; b=wrcY8WNDIFNPfcN3mY1kjre67OK0/BKXfJ7qPhI5j3/nN5PtQL0O4injhk4Sc2NNK0 ePAR+cjJFp2zzuSZxMrYEIyKFrxh1kGxAtLWL2Kx9gjNLgSinUkayXqADQ5xYpxkrzCl m5MfaeItpV1vJvXo5Sr4Ud8bgRq5JqFRV+ytgDLVIsxHqI2w9A9AGlNMRED3yTOoSuGi BoQlGkJYy82uQRRuVDYPvu7Qx8xZg7A+bgz2eirDUDBqDq+WPcQe/2hMXogKqpQnL6yx lMt4Y61dd68aOi4f4CVzWwGG6RbxDppkFfwTrNZHU1i1APJ41xL5sHpYark4xWIbJVve rnng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=HvKltrRD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h26si4576482ejx.177.2019.10.10.23.07.55; Thu, 10 Oct 2019 23:08:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=HvKltrRD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727361AbfJKGH0 (ORCPT + 99 others); Fri, 11 Oct 2019 02:07:26 -0400 Received: from ozlabs.org ([203.11.71.1]:56467 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbfJKGHZ (ORCPT ); Fri, 11 Oct 2019 02:07:25 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 46qHY63Gpnz9sP6; Fri, 11 Oct 2019 17:07:22 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1570774042; bh=CGrv8OfatmaqzsbsLV1xNnERqaf4o4GrCu4bs7978qQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=HvKltrRDVPfIZYBNIbi2OENm8rIjOadC6OLZVdTVAIOYyWtY4TdaUin0uGs+pZl5r bRbKF615iL7xUyUHVWntmfr5ql+6BsRm8oNkAYoF9eKnQOntCXEWoMARco+DSWMMnP T3olJDWP1OcNRTHcAb2Rcz+X9liJrKJYx3yMHKglhFV5gpwDSMOzBo+eRrlE0PU67R f8iFuspmJmAE0aTpt49euDl+i1TNcuIBfTeEUlVgnv8OXzwIF2rHrdvLMnUcffApvc CdQ+ymgRSY/Oe3lPsYB7axn1ixf9Mtb6qe7vp9wm3VqMIOmr/MHXf5knAHnS1fAwv/ QpCcwU5b9SxGQ== From: Michael Ellerman To: Kees Cook , Borislav Petkov Cc: Kees Cook , Rick Edgecombe , Dave Hansen , Andy Lutomirski , Arnd Bergmann , Heiko Carstens , Will Deacon , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-alpha@vger.kernel.org, linux-ia64@vger.kernel.org, linux-s390@vger.kernel.org, linux-c6x-dev@linux-c6x.org, Yoshinori Sato , Michal Simek , linux-parisc@vger.kernel.org, linux-xtensa@linux-xtensa.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 03/29] powerpc: Rename PT_LOAD identifier "kernel" to "text" In-Reply-To: <20191011000609.29728-4-keescook@chromium.org> References: <20191011000609.29728-1-keescook@chromium.org> <20191011000609.29728-4-keescook@chromium.org> Date: Fri, 11 Oct 2019 17:07:21 +1100 Message-ID: <875zkvx1ba.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kees Cook writes: > In preparation for moving NOTES into RO_DATA, rename the linker script > internal identifier for the PT_LOAD Program Header from "kernel" to > "text" to match other architectures. > > Signed-off-by: Kees Cook > --- > arch/powerpc/kernel/vmlinux.lds.S | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) Acked-by: Michael Ellerman cheers > diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S > index a3c8492b2b19..e184a63aa5b0 100644 > --- a/arch/powerpc/kernel/vmlinux.lds.S > +++ b/arch/powerpc/kernel/vmlinux.lds.S > @@ -18,7 +18,7 @@ > ENTRY(_stext) > > PHDRS { > - kernel PT_LOAD FLAGS(7); /* RWX */ > + text PT_LOAD FLAGS(7); /* RWX */ > note PT_NOTE FLAGS(0); > } > > @@ -63,7 +63,7 @@ SECTIONS > #else /* !CONFIG_PPC64 */ > HEAD_TEXT > #endif > - } :kernel > + } :text > > __head_end = .; > > @@ -112,7 +112,7 @@ SECTIONS > __got2_end = .; > #endif /* CONFIG_PPC32 */ > > - } :kernel > + } :text > > . = ALIGN(ETEXT_ALIGN_SIZE); > _etext = .; > @@ -163,9 +163,9 @@ SECTIONS > #endif > EXCEPTION_TABLE(0) > > - NOTES :kernel :note > + NOTES :text :note > /* Restore program header away from PT_NOTE. */ > - .dummy : { *(.dummy) } :kernel > + .dummy : { *(.dummy) } :text > > /* > * Init sections discarded at runtime > @@ -180,7 +180,7 @@ SECTIONS > #ifdef CONFIG_PPC64 > *(.tramp.ftrace.init); > #endif > - } :kernel > + } :text > > /* .exit.text is discarded at runtime, not link time, > * to deal with references from __bug_table > -- > 2.17.1