https://bugs.llvm.org/show_bug.cgi?id=49780

            Bug ID: 49780
           Summary: Should synthetic sections be InputSections or
                    OutputSections?
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MachO
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected]

We decided to make SyntheticSections be OutputSections back in
https://reviews.llvm.org/D77893#inline-716459. We were debating why ELF makes
them InputSections; it appears the main motivation for that design was to allow
synthetic sections to be manipulated via linker scripts, which we don't need to
support with Mach-O.

Peter Smith gave a talk on LLD's performace
(https://archive.fosdem.org/2019/schedule/event/llvm_lld/), in which he
mentioned that LLD's synthetic sections being input sections (as opposed to
output sections) significantly sped up thunks (at the 25:10 mark). Our thunk
design will likely be closer to COFF's than ELF's, so I'd be curios if this has
an effect for us.

We discussed this further in https://reviews.llvm.org/D87199#2264781, where we
decided to defer any potential refactoring until we were more feature-complete.
I don't think we're still at the point where we'd consider this refactoring
yet, but it's worth keeping in mind for the future.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to