[PATCH v3 03/15] riscv: Make _text point to the start of the kernel image

Jason Gunthorpe jgg at nvidia.com
Mon Nov 16 10:52:15 PST 2026


On Mon, 16 Nov 2026 15:26:22 +0100, Ard Biesheuvel <ardb+git at google.com> wrote:
> On RISC-V, _text currently refers to the start of the .text output
> section, which is placed after the image header (.head.text), and is
> therefore equal to _stext. On other architectures such as arm64, _text
> refers to the start of the image, and is used as such by generic code,
> e.g., to describe the kernel mapping in /proc/kcore and in the ELF
> headers of the vmcore, and by the EFI stub.
> 
> [...]

Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>

-- 
Jason



More information about the linux-riscv mailing list