llvm-project/lld/unittests/DriverTests
Nick Kledzik 635f9c7158 [mach-o] Let darwin driver infer arch from .o files if -arch not used.
Mach-O has a "fat" (or "universal") variant where the same contents built for
different architectures are concatenated into one file with a table-of-contents
header at the start.  But this leaves a dilemma for the linker - which
architecture to use.

Normally, the linker command line -arch is used to force which slice of any fat
files are used.  The clang compiler always passes -arch to the linker when
invoking it.  But some Makefiles invoke the linker directly and don’t specify
the -arch option.  For those cases, the linker scans all input files in command
line order and finds the first non-fat object file.  Whatever architecture it
is becomes the architecture for the link.

llvm-svn: 217189
2014-09-04 20:08:30 +00:00
..
CMakeLists.txt [PECOFF] Add a unit test for r198925. 2014-01-10 23:29:12 +00:00
DarwinLdDriverTest.cpp [mach-o] Let darwin driver infer arch from .o files if -arch not used. 2014-09-04 20:08:30 +00:00
DriverTest.h Remove operator[] that was used only in tests. 2014-05-06 00:50:46 +00:00
GnuLdDriverTest.cpp [ELF] Support --defsym=<symbol>=<symbol>. 2014-04-16 20:58:57 +00:00
InputGraphTest.cpp Fix test build on windows. 2014-06-11 22:23:45 +00:00
Makefile [AArch64] Initial ELF/AArch64 Support 2014-08-13 13:16:38 +00:00
UniversalDriverTest.cpp Fix unit test now that 'ld' is host specific 2014-09-04 00:16:04 +00:00
WinLinkDriverTest.cpp [PECOFF] Fix /profile option. 2014-08-11 21:31:07 +00:00
WinLinkModuleDefTest.cpp [PECOFF] DLL extension can be omitted in .def file. 2014-05-09 16:35:26 +00:00