llvm-project/lld/MachO
Jez Ng a12e7d406d [lld-macho] Handle GOT relocations of non-dylib symbols
Summary:
Turns out this case is actually really common -- it happens whenever there's
a reference to an `extern` variable that ends up statically linked.

Depends on D80856.

Reviewers: ruiu, pcc, MaskRay, smeenai, alexshap, gkm, Ktwu, christylee

Reviewed By: smeenai

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80857
2020-06-17 20:41:28 -07:00
..
Arch [lld-macho] Handle GOT relocations of non-dylib symbols 2020-06-17 20:41:28 -07:00
CMakeLists.txt [lld] Fix shared library build by adding the missing dependency. 2020-06-08 16:12:58 -04:00
Config.h lld: improve the `-arch` handling for MachO 2020-06-08 11:04:19 -07:00
Driver.cpp [lld-macho] Avoid explicit -arch in tests by defaulting to x86-64 2020-06-17 20:41:27 -07:00
Driver.h [lld-macho] Specify the complete set of command-line options for ld64 2020-06-15 12:50:20 -07:00
ExportTrie.cpp [lld-macho] Use export trie instead of symtab when linking against dylibs 2020-05-09 20:56:22 -07:00
ExportTrie.h [lld-macho] Use export trie instead of symtab when linking against dylibs 2020-05-09 20:56:22 -07:00
InputFiles.cpp [lld-macho] Support non-pcrel section relocs 2020-06-17 20:41:28 -07:00
InputFiles.h lld: remove old test support path 2020-06-16 15:57:58 -07:00
InputSection.cpp [lld-macho] Handle GOT relocations of non-dylib symbols 2020-06-17 20:41:28 -07:00
InputSection.h [lld-macho] Use uint64_t for getSize() instead of size_t 2020-06-16 18:42:45 -07:00
MachOStructs.h [lld-macho] Ensure reads from nlist_64 structs are aligned when necessary 2020-06-02 13:19:38 -07:00
MergedOutputSection.cpp [lld] Merge Mach-O input sections 2020-05-01 16:57:18 -07:00
MergedOutputSection.h [lld-macho] Use uint64_t for getSize() instead of size_t 2020-06-16 18:42:45 -07:00
Options.td [lld-macho] Specify the complete set of command-line options for ld64 2020-06-15 12:50:20 -07:00
OutputSection.cpp [lld] Merge Mach-O input sections 2020-05-01 16:57:18 -07:00
OutputSection.h [lld-macho] Use uint64_t for getSize() instead of size_t 2020-06-16 18:42:45 -07:00
OutputSegment.cpp [lld-macho] Support -order_file 2020-05-19 07:46:57 -07:00
OutputSegment.h [lld-macho] Support -order_file 2020-05-19 07:46:57 -07:00
SymbolTable.cpp [lld] Add archive file support to Mach-O backend 2020-05-14 12:58:35 -07:00
SymbolTable.h [lld] Add archive file support to Mach-O backend 2020-05-14 12:58:35 -07:00
Symbols.cpp [lld-macho] Set __PAGEZERO size to 4GB 2020-06-02 13:19:38 -07:00
Symbols.h [lld-macho] Handle GOT relocations of non-dylib symbols 2020-06-17 20:41:28 -07:00
SyntheticSections.cpp [lld-macho] Handle GOT relocations of non-dylib symbols 2020-06-17 20:41:28 -07:00
SyntheticSections.h [lld-macho] Handle GOT relocations of non-dylib symbols 2020-06-17 20:41:28 -07:00
Target.cpp Reland D75382 "[lld] Initial commit for new Mach-O backend" 2020-04-02 12:03:43 -07:00
Target.h [lld-macho] Handle GOT relocations of non-dylib symbols 2020-06-17 20:41:28 -07:00
Writer.cpp [lld-macho] Handle GOT relocations of non-dylib symbols 2020-06-17 20:41:28 -07:00
Writer.h [lld-macho] Extend SyntheticSections to cover all segment load commands 2020-04-27 12:58:12 -07:00