llvm-project/lld/MachO
Jez Ng 6f6d91867d [lld-macho] Add some relocation validation logic
I considered making a `Target::validate()` method, but I wasn't sure how
I felt about the overhead of doing yet another switch-dispatch on the
relocation type, so I put the validation in `relocateOne` instead...
might be a bit of a micro-optimization, but `relocateOne` does assume
certain things about the relocations it gets, and this error handling
makes that explicit, so it's not a totally unreasonable code
organization.

Reviewed By: smeenai

Differential Revision: https://reviews.llvm.org/D80049
2020-06-02 13:19:38 -07:00
..
Arch [lld-macho] Add some relocation validation logic 2020-06-02 13:19:38 -07:00
CMakeLists.txt [lld] Merge Mach-O input sections 2020-05-01 16:57:18 -07:00
Config.h [lld-macho] Support -order_file 2020-05-19 07:46:57 -07:00
Driver.cpp [lld-macho][re-land] Support .subsections_via_symbols 2020-05-19 12:31:54 -07:00
Driver.h Reland D75382 "[lld] Initial commit for new Mach-O backend" 2020-04-02 12:03:43 -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] Add some relocation validation logic 2020-06-02 13:19:38 -07:00
InputFiles.h [lld-macho][re-land] Support .subsections_via_symbols 2020-05-19 12:31:54 -07:00
InputSection.cpp [lld-macho][re-land] Support X86_64_RELOC_UNSIGNED 2020-05-19 12:31:55 -07:00
InputSection.h [lld-macho][re-land] Support X86_64_RELOC_UNSIGNED 2020-05-19 12:31:55 -07:00
MergedOutputSection.cpp [lld] Merge Mach-O input sections 2020-05-01 16:57:18 -07:00
MergedOutputSection.h [lld-macho] Support -order_file 2020-05-19 07:46:57 -07:00
Options.td [lld-macho] Support -order_file 2020-05-19 07:46:57 -07:00
OutputSection.cpp [lld] Merge Mach-O input sections 2020-05-01 16:57:18 -07:00
OutputSection.h [lld-macho] Support -order_file 2020-05-19 07:46:57 -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] Add archive file support to Mach-O backend 2020-05-14 12:58:35 -07:00
Symbols.h [lld] Add archive file support to Mach-O backend 2020-05-14 12:58:35 -07:00
SyntheticSections.cpp [lld-macho] Support -order_file 2020-05-19 07:46:57 -07:00
SyntheticSections.h [lld-macho] Support -order_file 2020-05-19 07:46:57 -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] Add some relocation validation logic 2020-06-02 13:19:38 -07:00
Writer.cpp [lld-macho] Support -order_file 2020-05-19 07:46:57 -07:00
Writer.h [lld-macho] Extend SyntheticSections to cover all segment load commands 2020-04-27 12:58:12 -07:00