[lld] [lld][ELF] Introduce an option to keep data section prefix. (PR #148985)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 27 16:58:38 PDT 2025
================
@@ -87,3 +150,60 @@ _start:
.section .bss, "aw"
.space 1
+
+#--- b.s
+.globl _start
+_start:
+ ret
+
+.section .bss.a,"aw"
+ .byte 0
+.section .bss.hot.b,"aw"
+ .byte 0
+.section .bss.unlikely.c,"aw"
+ .byte 0
+.section .bss.split.d,"aw"
+ .byte 0
+
+.section .bss.rel.ro, "aw"
+ .space 2
+.section .bss.rel.ro, "aw"
----------------
mingmingl-llvm wrote:
ah the 4 `.bss.rel.ro` sections used to have different names. Given the discussion in https://github.com/llvm/llvm-project/pull/148985#discussion_r2221107339, only one section without any prefix should be kept.
https://github.com/llvm/llvm-project/pull/148985
More information about the llvm-commits
mailing list