[lld] [lld][ELF] Allow `.data.rel.ro.unlikely` to be RELRO (PR #148920)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 19 00:03:17 PDT 2025


================
@@ -0,0 +1,89 @@
+# REQUIRES: x86
+
+# RUN: rm -rf %t && split-file %s %t && cd %t
+
+# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux input.s -o a.o
+
+# RUN: ld.lld -z keep-data-section-prefix -T linker-script.lds a.o -o a.out
----------------
MaskRay wrote:

Just a.lds. You can also use `x.lds` if you want to avoid the letter `a`

https://github.com/llvm/llvm-project/pull/148920


More information about the llvm-commits mailing list