[lld] ELF: Introduce --shuffle-padding option. (PR #117653)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 28 06:50:13 PST 2024
================
@@ -2753,6 +2753,21 @@ RelroPaddingSection::RelroPaddingSection(Ctx &ctx)
: SyntheticSection(ctx, ".relro_padding", SHT_NOBITS, SHF_ALLOC | SHF_WRITE,
1) {}
+ShufflePaddingSection::ShufflePaddingSection(Ctx &ctx, uint64_t size,
+ OutputSection *parent)
+ : SyntheticSection(ctx, ".shuffle_padding", SHF_ALLOC, SHT_PROGBITS, 1),
----------------
smithp35 wrote:
OK I see. Could possibly use `parent->flags`, and `parent->type` instead. I don't think it will make a difference at the moment, but may be a bit less surprising see.
https://github.com/llvm/llvm-project/pull/117653
More information about the llvm-commits
mailing list