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

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 21 09:04:08 PDT 2025


================
@@ -553,6 +553,22 @@ template <class ELFT> void Writer<ELFT>::addSectionSymbols() {
   }
 }
 
+// Returns true if the section is a data section that's read only and
+// relocatable per its section name.
+static bool isRelRoDataSection(Ctx &ctx, StringRef SectionName) {
----------------
mingmingl-llvm wrote:

done.

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


More information about the llvm-commits mailing list