[lld] ELF: Introduce --shuffle-padding flag. (PR #117653)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 27 16:04:22 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),
----------------
pcc wrote:
The new sections are added after the output section flags are resolved, so I don't think the values here matter. I just picked values arbitrarily. The new tests I added show that the correct section flags are preserved.
https://github.com/llvm/llvm-project/pull/117653
More information about the llvm-commits
mailing list