[all-commits] [llvm/llvm-project] 060efd: [lld-macho] Add basic support for linking against ...

Jez Ng via All-commits all-commits at lists.llvm.org
Tue Apr 21 13:44:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 060efd24c7f06a6c66afc15fc5c499eb0d591523
      https://github.com/llvm/llvm-project/commit/060efd24c7f06a6c66afc15fc5c499eb0d591523
  Author: Jez Ng <jezng at fb.com>
  Date:   2020-04-21 (Tue, 21 Apr 2020)

  Changed paths:
    M lld/MachO/Arch/X86_64.cpp
    M lld/MachO/CMakeLists.txt
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    M lld/MachO/InputFiles.cpp
    M lld/MachO/InputFiles.h
    M lld/MachO/InputSection.cpp
    M lld/MachO/InputSection.h
    M lld/MachO/Options.td
    M lld/MachO/OutputSegment.h
    M lld/MachO/SymbolTable.cpp
    M lld/MachO/SymbolTable.h
    M lld/MachO/Symbols.h
    A lld/MachO/SyntheticSections.cpp
    A lld/MachO/SyntheticSections.h
    M lld/MachO/Target.h
    M lld/MachO/Writer.cpp
    M lld/MachO/Writer.h
    A lld/test/MachO/Inputs/goodbye-dylib.yaml
    A lld/test/MachO/Inputs/hello-dylib.yaml
    A lld/test/MachO/Inputs/no-id-dylib.yaml
    A lld/test/MachO/dylink.s
    A lld/test/MachO/missing-dylib.s
    A lld/test/MachO/no-id-dylink.s
    A lld/test/MachO/search-paths.test

  Log Message:
  -----------
  [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




More information about the All-commits mailing list