[lld] ELF: Introduce --shuffle-padding option. (PR #117653)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 28 06:50:12 PST 2024
================
@@ -1444,6 +1444,38 @@ static void finalizeSynthetic(Ctx &ctx, SyntheticSection *sec) {
}
}
+static bool canInsertPadding(OutputSection *sec) {
+ StringRef s = sec->name;
+ return s == ".bss" || s == ".data" || s == ".data.rel.ro" || s == ".rodata" ||
----------------
smithp35 wrote:
OK. Perhaps worth adding a comment to explain the choice of sections.
https://github.com/llvm/llvm-project/pull/117653
More information about the llvm-commits
mailing list