HomePhabricator

[lld-macho] Add basic support for linking against dylibs

Authored by int3 on Apr 21 2020, 1:37 PM.

Description

[lld-macho] Add basic support for linking against dylibs

This diff implements:

  • dylib loading (much of which is being restored from @pcc and @ruiu's original work)
  • 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

Differential Revision: https://reviews.llvm.org/D76252

Details

Committed
smeenaiApr 21 2020, 1:43 PM
Differential Revision
D76252: [lld-macho] Add basic support for linking against dylibs
Parents
rG8bec33c096bd: [SVE] Remove VectorType::getBitWidth()
Branches
Unknown
Tags
Unknown