[PATCH] D76908: [lld-macho] Add support for emitting dylibs with a single symbol
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 01:34:13 PDT 2020
int3 created this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
int3 edited the summary of this revision.
int3 added reviewers: ruiu, pcc, MaskRay, alexshap, christylee, smeenai, gkm.
Add logic for emitting the correct set of load commands and segments when `-dylib` is passed.
I haven't gotten to implementing a real export trie yet, so we can only emit a single symbol, but it's enough to replace the YAML test files introduced in D76252 <https://reviews.llvm.org/D76252>.
I had to add some code to emit a basic symbol table so as to be able to link against those dylibs, but testing + the rest of the implementation will come from D76742 <https://reviews.llvm.org/D76742>.
Depends on D76839 <https://reviews.llvm.org/D76839>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76908
Files:
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/Options.td
lld/MachO/SyntheticSections.cpp
lld/MachO/SyntheticSections.h
lld/MachO/Writer.cpp
lld/test/MachO/Inputs/goodbye-dylib.yaml
lld/test/MachO/Inputs/hello-dylib.yaml
lld/test/MachO/Inputs/libgoodbye.s
lld/test/MachO/Inputs/libhello.s
lld/test/MachO/dylib.s
lld/test/MachO/dylink.s
lld/test/MachO/load-commands.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76908.253054.patch
Type: text/x-patch
Size: 28140 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200327/1a888cdf/attachment.bin>
More information about the llvm-commits
mailing list