Skip to content

Use dot prefixes for section names

Ard Biesheuvel linux-arch linux-kbuild linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2codetag: Use dot prefix for section nameinclude/asm-generic/codetag.lds.h include/linux/alloc_tag.h+3 -31 reply
2/2runtime-const: Use dot prefix for section namesarch/arm64/include/asm/runtime-const.h arch/s390/include/asm/runtime-const.h arch/x86/include/asm/runtime-const.h +1 more+8 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Use dot prefixes for section names

From: Ard Biesheuvel <[email protected]>

Pre-existing code uses a dot prefix or double underscore to prefix ELF section names. strip_relocs on x86 relies on this, and other out of tree tools that mangle vmlinux (kexec or live patching) may rely on this as well.

So let's not deviate from this and use a dot prefix for runtime-const and alloc_tags sections.

Cc Linus Torvalds <[email protected]>
Cc Masahiro Yamada <[email protected]>
Cc Nathan Chancellor <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Kent Overstreet <[email protected]>
Cc Arnd Bergmann <[email protected]>

Ard Biesheuvel (2):
codetag: Use dot prefix for section name
runtime-const: Use dot prefix for section names

 arch/arm64/include/asm/runtime-const.h | 4 ++--
 arch/s390/include/asm/runtime-const.h  | 4 ++--
 arch/x86/include/asm/runtime-const.h   | 4 ++--
 include/asm-generic/codetag.lds.h      | 2 +-
 include/asm-generic/vmlinux.lds.h      | 4 ++--
 include/linux/alloc_tag.h              | 4 ++--
 6 files changed, 11 insertions(+), 11 deletions(-)
Signature · 1 line
2.47.0.rc1.288.g06298d1525-goog