Skip to content

riscv: Align section markers with other archs

Ard Biesheuvel linux-arm-kernel linux-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3riscv: Use _stext not _text to denote the start of kernel codearch/riscv/kernel/setup.c+1 -10 replies
2/3riscv: Make _text point to the start of the kernel imagearch/riscv/kernel/vmlinux.lds.S+1 -10 replies
3/3riscv: Rename __init_text_end to __inittext_end like other archsarch/riscv/include/asm/sections.h arch/riscv/kernel/image-vars.h arch/riscv/kernel/vmlinux.lds.S +1 more+5 -50 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJisheng Zhang
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] riscv: Align section markers with other archs

From: Ard Biesheuvel <[email protected]>

Patch #3 of this series was sent out as part of a EFI series [0] that implements generic support for carrying image info data inside the stub, and after Sashiko found another related issue, I decided to break it out into this series. IOW, patch #3 is a resend.

The point of these changes is to harmonize all architectures that support EFI in terms of the section markers, so that generic zboot code can refer to them without arch specific #ifdefs. Other generic tools probably benefit from this too.

If the maintainers are onboard with this, kindly put it on a stable topic branch so I can refer to it from the EFI tree.

[0] https://lore.kernel.org/all/[email protected]/

Cc Paul Walmsley <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Albert Ou <[email protected]>
Cc Alexandre Ghiti <[email protected]>

Ard Biesheuvel (3):
riscv: Use _stext not _text to denote the start of kernel code
riscv: Make _text point to the start of the kernel image
riscv: Rename __init_text_end to __inittext_end like other archs

 arch/riscv/include/asm/sections.h         | 2 +-
 arch/riscv/kernel/image-vars.h            | 2 +-
 arch/riscv/kernel/setup.c                 | 2 +-
 arch/riscv/kernel/vmlinux.lds.S           | 6 +++---
 drivers/firmware/efi/libstub/riscv-stub.c | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.56.0.611.g1030f0b940-goog