[PATCH] D76252: [lld] Add basic support for linking against dylibs
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 16 14:13:04 PDT 2020
int3 created this revision.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.
int3 added reviewers: pete, lgerbarg, ruiu, pcc, MaskRay, mtrent, kledzik, smeenai, respindola, bbaren, alexshap, jhenderson, christylee.
Herald added a subscriber: ormris.
This diff implements:
- dylib + univeral binary loading (which allows us to load libSystem.B)
- The GOT_LOAD relocation, which allows us to load non-lazy dylib symbols
- Basic bind opcode emission, which tells `dyld` how to populate the GOT
Depends on D75382 <https://reviews.llvm.org/D75382>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76252
Files:
lld/MachO/Arch/X86_64.cpp
lld/MachO/CMakeLists.txt
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/InputFiles.cpp
lld/MachO/InputFiles.h
lld/MachO/InputSection.cpp
lld/MachO/InputSection.h
lld/MachO/Options.td
lld/MachO/OutputSegment.h
lld/MachO/SymbolTable.cpp
lld/MachO/SymbolTable.h
lld/MachO/Symbols.h
lld/MachO/SyntheticSections.cpp
lld/MachO/SyntheticSections.h
lld/MachO/Target.h
lld/MachO/Writer.cpp
lld/MachO/Writer.h
lld/test/MachO/Inputs/goodbye-dylib.yaml
lld/test/MachO/Inputs/hello-dylib.yaml
lld/test/MachO/dylink.s
lld/test/MachO/missing-dylib.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76252.250627.patch
Type: text/x-patch
Size: 35137 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200316/9b2baf89/attachment-0001.bin>
More information about the llvm-commits
mailing list