From patchwork Sun Jul 14 08:27:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen N Rao X-Patchwork-Id: 13732637 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 8D00722313; Sun, 14 Jul 2024 08:29:54 +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=1720945794; cv=none; b=g0awvAXZeudxIBAxT9e0E3RJuQFvSHAB+tZRaigMQgIGARasOsz4liMYZP0bNyPktlA0M8IcOfiAiSDRYq/oLB4vvb4pveWj4URqdtXj9cZ14DHQfmwjvd0/XgVI+6oNmLop2+Zq/l0H8mewoU5LlKTj3ppvaoCxeGVQNU9WUmo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720945794; c=relaxed/simple; bh=Mm/vplktDeK53IWrh3itHTbGXRGKBBYh38qELYFlNEQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qESUBcixE3brF53/h2pevlyUDU8xl7cKIdySnpKOOrtYMhwNfbyX6XoS29FwP/O8O5+3mlGLY8kBFWk1hJzzjeO68mrbzE80wsTvv696bJ6MQBwPhROX967Nmk07A87FxOdya+iexrKooiPtPIYKuGOrCFOQf/RjRQPvqA53TWQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=stapOdy5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="stapOdy5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1705C116B1; Sun, 14 Jul 2024 08:29:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720945794; bh=Mm/vplktDeK53IWrh3itHTbGXRGKBBYh38qELYFlNEQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=stapOdy5N4c8llhRcXvRrV2vbGUQLT6Hj3ExUX7QaGkrpIjrCwe6YH514stkMyCBF AsGWkJpmXodE2OTVhBmDwTR9ElgKPuwagg2+0jVfefLnP1EVqqQ0/4E4qeDNiA9aAW ZPisF5J1ctW2+D7aOzCl8gmhBXXwaenz2B/hu41Px/xuB4bCDbwsQ51y4y+glnIEmH /4POmB+DapyXuPhUxi9IP1TtCNCfo9bC3thQ8sOIqlwqpPddTkU1Lyc4TOGm0nZGeN gg9xSx7sHSNCZlWhqf93j2mjYXCQDnejOu7drshSpl/SMU2Cnm6mM91PfMyO+yU1M9 y6EOBnNTWF12g== From: Naveen N Rao To: , , , linux-kbuild@vger.kernel.org, Cc: Michael Ellerman , Nicholas Piggin , Christophe Leroy , Steven Rostedt , Masami Hiramatsu , Mark Rutland , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Masahiro Yamada , Hari Bathini , Mahesh Salgaonkar , Vishal Chourasia Subject: [RFC PATCH v4 08/17] powerpc/ftrace: Move ftrace stub used for init text before _einittext Date: Sun, 14 Jul 2024 13:57:44 +0530 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Move the ftrace stub used to cover inittext before _einittext so that it is within kernel text, as seen through core_kernel_text(). This is required for a subsequent change to ftrace. Signed-off-by: Naveen N Rao --- arch/powerpc/kernel/vmlinux.lds.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index f420df7888a7..0aef9959f2cd 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S @@ -267,14 +267,13 @@ SECTIONS .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) { _sinittext = .; INIT_TEXT - + *(.tramp.ftrace.init); /* *.init.text might be RO so we must ensure this section ends on * a page boundary. */ . = ALIGN(PAGE_SIZE); _einittext = .; - *(.tramp.ftrace.init); } :text /* .exit.text is discarded at runtime, not link time,