[llvm-bugs] [Bug 49290] New: Implement `__mh_*_header` synthetic symbols
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 19 16:26:29 PST 2021
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: unassignedbugs at nondot.org
Reporter: jezreel at gmail.com
CC: gkm at fb.com, jezreel at gmail.com,
llvm-bugs at lists.llvm.org, smeenai at fb.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210220/eea45713/attachment.html>
More information about the llvm-bugs
mailing list