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

            Bug ID: 49290
           Summary: Implement `__mh_*_header` synthetic symbols
           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]

We currently have one synthetic symbol (DSOHandle) but I'm not very happy with
how it's implemented -- it has all the semantics of Defined symbol, except that
it doesn't belong to an InputSection. Having it as a separate case means it's
easy to forget to handle it. I've been thinking of having Defined symbols
contain a SectionPointerUnion instead of an InputSection field, which should be
all that's needed to model these synthetic symbols. The one thing I'm concerned
about is the performance implications; I think it will be fine, but it would be
good to run some benchmarks, e.g. by linking a large project like LLVM or
Chromium.

-- 
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