[lld] [LLD][COFF] Ensure .bss is merged at the end of a section. (PR #137677)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 28 14:19:12 PDT 2025
================
@@ -1566,6 +1567,30 @@ void Writer::createSymbolAndStringTable() {
fileSize = alignTo(fileOff, ctx.config.fileAlign);
}
+void Writer::mergeSection(const std::map<StringRef, StringRef>::value_type &p) {
+ StringRef toName = p.second;
----------------
mstorsjo wrote:
I assume this factorized function is just a direct move of the code?
https://github.com/llvm/llvm-project/pull/137677
More information about the llvm-commits
mailing list