[lld] [lld][ELF] Introduce an option to keep data section prefix. (PR #148985)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 26 16:16:15 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"
----------------
MaskRay wrote:
Are the 4 `.bss.rel.ro` sections of the same name intended?
https://github.com/llvm/llvm-project/pull/148985
More information about the llvm-commits
mailing list