Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/ftrace: Move ftrace stub used for init text before _einittext

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 <naveen@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20241030070850.1361304-9-hbathini@linux.ibm.com

authored by

Naveen N Rao and committed by
Michael Ellerman
ed614465 1d59bd2f

+1 -2
+1 -2
arch/powerpc/kernel/vmlinux.lds.S
··· 265 265 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) { 266 266 _sinittext = .; 267 267 INIT_TEXT 268 - 268 + *(.tramp.ftrace.init); 269 269 /* 270 270 *.init.text might be RO so we must ensure this section ends on 271 271 * a page boundary. 272 272 */ 273 273 . = ALIGN(PAGE_SIZE); 274 274 _einittext = .; 275 - *(.tramp.ftrace.init); 276 275 } :text 277 276 278 277 /* .exit.text is discarded at runtime, not link time,