llvm-project/lld/MachO
Shoaib Meenai 264d3b6d4e [MachO] Use error instead of fatal for missing -arch
`fatal` should only be used for malformed inputs according to
ErrorHandler.h; `error` is more appropriate for missing arguments,
accompanied by a check to bail out early in case of the error. Some
tests need to be adjusted accordingly.

Makes `lld/test/MachO/arch.s` pass with `LLD_IN_TEST=2`.

Reviewed By: #lld-macho, int3

Differential Revision: https://reviews.llvm.org/D112879
2021-10-31 16:31:21 -07:00
..
Arch [lld/mac] Set branchRange a bit more carefully 2021-08-30 12:36:06 -04:00
CMakeLists.txt [CMake][gn] lldMachO=>lldMachOOld, lldMachO2=>lldMachO 2021-08-04 18:52:41 -07:00
ConcatOutputSection.cpp [lld-macho] Associate compact unwind entries with function symbols 2021-10-26 16:04:15 -04:00
ConcatOutputSection.h [lld-macho] Have ICF operate on all sections at once 2021-07-17 13:42:51 -04:00
Config.h [lld-macho] -all_load and -ObjC should not affect LC_LINKER_OPTION flags 2021-10-29 11:00:28 -04:00
Driver.cpp [MachO] Use error instead of fatal for missing -arch 2021-10-31 16:31:21 -07:00
Driver.h [MachO] Properly reset global state 2021-10-31 16:14:29 -07:00
DriverUtils.cpp [MachO] Properly reset global state 2021-10-31 16:14:29 -07:00
Dwarf.cpp [lld-macho] Factor out common InputSection members 2021-07-01 21:22:39 -04:00
Dwarf.h [lld-macho] Emit STABS symbols for debugging, and drop debug sections 2020-12-01 15:05:20 -08:00
ExportTrie.cpp [lld-macho][NFC] add const to pointer/reference induction variables of range-based for loops 2021-03-10 12:07:31 -08:00
ExportTrie.h [lld-macho] Export trie addresses should be relative to the image base 2020-09-20 20:43:15 -07:00
ICF.cpp [lld/mac] Fix mislink with ICF 2021-10-30 18:58:59 -04:00
ICF.h [lld-macho] Move ICF earlier to avoid emitting redundant binds 2021-07-01 21:22:38 -04:00
InputFiles.cpp [lld-macho] Fix compact-unwind-bad-reloc.s test 2021-10-26 18:59:12 -04:00
InputFiles.h [MachO] Properly reset global state 2021-10-31 16:14:29 -07:00
InputSection.cpp [lld/mac] Don't assert when ICFing arm64 code 2021-10-27 14:02:07 -04:00
InputSection.h [lld-macho][nfc] Canonicalize all pointers to InputSections early on 2021-10-29 11:00:28 -04:00
LTO.cpp [Support][ThinLTO] Move ThinLTO caching to LLVM Support library 2021-10-18 18:57:25 -07:00
LTO.h [lld-macho] Add LTO cache support 2021-07-15 12:56:13 -04:00
MachOStructs.h [lld-macho] Add support for arm64_32 2021-04-15 21:16:33 -04:00
MapFile.cpp [lld][MachO] Sort symbols in parallel in -map 2021-06-17 10:19:59 +08:00
MapFile.h [lld-macho] implement options -map 2021-03-18 10:39:19 -04:00
MarkLive.cpp [lld-macho] Associate compact unwind entries with function symbols 2021-10-26 16:04:15 -04:00
MarkLive.h [lld/mac] Implement -dead_strip 2021-06-02 11:09:26 -04:00
ObjC.cpp [lld-macho] Refactor archive loading 2021-08-26 18:52:07 -04:00
ObjC.h [lld-macho] Implement -ObjC 2020-08-26 19:20:55 -07:00
Options.td [lld-macho] Implement -S 2021-10-27 17:09:57 -07:00
OutputSection.cpp [lld/mac] Implement support for section$start and section$ end symbols 2021-07-23 16:01:09 -04:00
OutputSection.h [lld/mac] Implement support for section$start and section$ end symbols 2021-07-23 16:01:09 -04:00
OutputSegment.cpp [MachO] Properly reset global state 2021-10-31 16:14:29 -07:00
OutputSegment.h [MachO] Properly reset global state 2021-10-31 16:14:29 -07:00
Relocations.cpp [lld-macho][nfc] Remove DYSYM8 reloc attribute 2021-04-09 19:48:08 -04:00
Relocations.h [lld-macho] Add 32-bit compact unwind support 2021-04-15 21:16:33 -04:00
SymbolTable.cpp [lld-macho] Associate compact unwind entries with function symbols 2021-10-26 16:04:15 -04:00
SymbolTable.h [lld/mac] Implement -dead_strip 2021-06-02 11:09:26 -04:00
Symbols.cpp [lld-macho][nfc] Canonicalize all pointers to InputSections early on 2021-10-29 11:00:28 -04:00
Symbols.h [lld-macho][nfc] Canonicalize all pointers to InputSections early on 2021-10-29 11:00:28 -04:00
SyntheticSections.cpp [lld-macho][nfc] Canonicalize all pointers to InputSections early on 2021-10-29 11:00:28 -04:00
SyntheticSections.h [lld-macho] If export_size is zero, export_off must be zero 2021-10-27 14:58:42 -04:00
Target.cpp [lld-macho][nfc] Create Relocations.{h,cpp} for relocation-specific code 2021-03-11 13:28:09 -05:00
Target.h [lld/mac] Set branchRange a bit more carefully 2021-08-30 12:36:06 -04:00
UnwindInfoSection.cpp [lld-macho] Simplify the handling of "no unwind info" functions 2021-10-26 16:04:16 -04:00
UnwindInfoSection.h [lld-macho] Simplify the handling of "no unwind info" functions 2021-10-26 16:04:16 -04:00
Writer.cpp [MachO] Properly reset global state 2021-10-31 16:14:29 -07:00
Writer.h [MachO] Properly reset global state 2021-10-31 16:14:29 -07:00
ld64-vs-lld.rst [lld-macho][nfc] Added some notes on deliberate differences btw LD64 vs LLD-MACHO 2021-10-20 22:41:57 -04:00