[lld] ELF: Introduce --randomize-section-padding option. (PR #117653)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 20:28:00 PST 2024


================
@@ -434,6 +434,9 @@ defm section_start: Eq<"section-start", "Set address of section">,
 
 def shared: F<"shared">, HelpText<"Build a shared object">;
 
+def randomize_section_padding: JJ<"randomize-section-padding=">,
+  HelpText<"Randomly insert padding between input sections using given seed">;
----------------
MaskRay wrote:

While this can be simpler than ld.lld.1, I feel that segment padding should be mentioned.

https://github.com/llvm/llvm-project/pull/117653


More information about the llvm-commits mailing list