llvm-capstone/lld/MachO
Jez Ng 8601be809e [lld-macho] Fix & fold reexport-nested-libs test into stub-link.s
The reexport-nested-libs test added in D97438 was a bit wonky.

First, it was linking against libReexportSystem.tbd which targets the
iOS simulator, and which in turn attempted to re-export the iOS
simulator's libSystem. However, due to the way `-syslibroot` works, it
was actually re-exporting the macOS libSystem.

As a result, the test was not actually able to resolve the symbols in
the desired libSystem. I'm guessing that @oontvoo was confused by this
and therefore included those symbols in libReexportSystem.tbd itself.
But this means that the test wasn't actually testing the resolution of
re-exported symbols (though it did at least verify that the re-exported
libraries could be located).

After some consideration, I figured that stub-link.s could be extended
to cover what reexport-nested-libs.s was attempting to do. The test
targets macOS, so we only have one `-syslibroot` and no chance of
confusion.

Reviewed By: #lld-macho, oontvoo

Differential Revision: https://reviews.llvm.org/D97866
2021-03-04 14:36:46 -05:00
..
Arch [lld-macho] Extract embedded addends for arm64 UNSIGNED relocations 2021-02-27 12:31:34 -05:00
CMakeLists.txt [lld-macho] Add ARM64 target arch 2021-02-08 18:14:07 -07:00
Config.h [lld-macho] Implement options -rename_section -rename_segment 2021-02-27 11:44:12 -08:00
Driver.cpp [lld-macho] Require -arch and -platform_version to always be specified 2021-03-03 15:52:10 -05:00
Driver.h [lld-macho] Change loadReexport to handle the case where a TAPI re-exports to reference documents nested within other TBD. 2021-03-02 12:14:31 -05:00
DriverUtils.cpp [lld-macho] Rework length check when opening input files 2021-03-02 13:00:57 -08:00
Dwarf.cpp [lld-macho] Don't attempt to emit rebase opcodes for debug sections 2020-12-10 15:57:51 -08: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] Associate each Symbol with an InputFile 2021-02-03 13:43:47 -05:00
ExportTrie.h [lld-macho] Export trie addresses should be relative to the image base 2020-09-20 20:43:15 -07:00
InputFiles.cpp [lld-macho] Fix & fold reexport-nested-libs test into stub-link.s 2021-03-04 14:36:46 -05:00
InputFiles.h [lld-macho] Rework length check when opening input files 2021-03-02 13:00:57 -08:00
InputSection.cpp [lld-macho] Don't emit rebase opcodes for subtractor minuend relocs 2021-02-27 12:31:34 -05:00
InputSection.h [lld-macho] Add ARM64 target arch 2021-02-08 18:14:07 -07:00
LTO.cpp [lld-macho] Basic support for linkage and visibility attributes in LTO 2021-02-25 13:27:40 -05:00
LTO.h [lld-macho] Add very basic support for LTO 2020-11-10 12:19:28 -08: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-macho] Handle alignment correctly when merging InputSections 2020-06-17 20:41:28 -07:00
MergedOutputSection.h [lld-macho] Refactor segment/section creation, sorting, and merging 2020-06-21 17:13:59 -07:00
ObjC.cpp [lld-macho] Implement -ObjC 2020-08-26 19:20:55 -07:00
ObjC.h [lld-macho] Implement -ObjC 2020-08-26 19:20:55 -07:00
Options.td [lld/mac] Add support for -flat_namespace 2021-03-01 15:25:10 -05:00
OutputSection.cpp [lld-macho] Refactor segment/section creation, sorting, and merging 2020-06-21 17:13:59 -07:00
OutputSection.h [lld-macho] Emit indirect symbol table 2020-09-23 19:26:40 -07:00
OutputSegment.cpp [lld-macho] Remove unnecessary llvm:: namespace prefixes 2021-01-09 12:44:35 -05:00
OutputSegment.h [lld-macho] add code signature for native arm64 macOS 2021-02-24 17:05:23 -08:00
Symbols.cpp [lld-macho] Associate each Symbol with an InputFile 2021-02-03 13:43:47 -05:00
Symbols.h [lld/mac] Add some support for dynamic lookup symbols, and implement -U 2021-02-26 16:50:53 -05:00
SymbolTable.cpp [lld/mac] Implement the missing bits of -undefined 2021-03-01 15:30:53 -05:00
SymbolTable.h [lld/mac] Add some support for dynamic lookup symbols, and implement -U 2021-02-26 16:50:53 -05:00
SyntheticSections.cpp [lld][MachO] Silence "enumeral and non-enumeral type" warning from gcc 2021-03-03 10:39:35 +01:00
SyntheticSections.h [lld-macho] add code signature for native arm64 macOS 2021-02-24 17:05:23 -08:00
Target.cpp [lld-macho] Fix semantics & add tests for ARM64 GOT/TLV relocs 2021-02-23 22:02:38 -05:00
Target.h [lld-macho] Don't emit rebase opcodes for subtractor minuend relocs 2021-02-27 12:31:34 -05:00
UnwindInfoSection.cpp [lld/mac] Implement the missing bits of -undefined 2021-03-01 15:30:53 -05:00
UnwindInfoSection.h [lld-macho] Emit LSDA info in compact unwind 2021-02-08 13:48:00 -05:00
Writer.cpp [lld/mac] Implement the missing bits of -undefined 2021-03-01 15:30:53 -05:00
Writer.h [lld-macho] Fix TLV data initialization 2021-01-08 18:48:12 -05:00