[lld] ELF: Introduce --shuffle-padding flag. (PR #117653)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 26 05:23:28 PST 2024
================
@@ -796,6 +796,15 @@ class RelroPaddingSection final : public SyntheticSection {
void writeTo(uint8_t *buf) override {}
};
+class ShufflePaddingSection final : public SyntheticSection {
----------------
smithp35 wrote:
Would it be better to call this a `PaddingSection`? While it can be used to implement shuffle padding, there isn't anything in here that's random. I guess the fixed SHT_PROGBITS would need to be changed if this were to be a completely generic padding section.
Just thinking of possible future uses for this type of section.
https://github.com/llvm/llvm-project/pull/117653
More information about the llvm-commits
mailing list