[lld] [ELF] Move target-specific synthetic sections into Arch/ files (PR #184057)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 09:57:11 PST 2026


================
@@ -32,6 +32,7 @@ class TargetInfo {
 public:
   TargetInfo(Ctx &ctx) : ctx(ctx) {}
   virtual uint32_t calcEFlags() const { return 0; }
+  virtual void initTargetSections() {}
----------------
MaskRay wrote:

Thanks for the suggestion. Renamed to `TargetInfo::initTargetSpecificSections`. I've used a concise comment that omits `ctx.in` and `ctx.inputSections`. That can be easily derived from the in-tree examples.

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


More information about the llvm-commits mailing list