[lld] [LLD][COFF] Add support for custom section layout (PR #152779)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 29 01:21:02 PDT 2025


================
@@ -212,6 +212,8 @@ struct Configuration {
 
   // Used for /section=.name,{DEKPRSW} to set section attributes.
   std::map<StringRef, uint32_t> section;
+  // Used for /sectionlayout:@ to layout sections in specified order.
----------------
mstorsjo wrote:

Nit: If `/sectionlayout:@` and `/sectionlayout:` are equivalent, I'd just write out the latter here, without the `@`, as that prefix applies to both forms.

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


More information about the llvm-commits mailing list