- Sep 24, 2013
-
-
Rui Ueyama authored
llvm-svn: 191254
-
Rui Ueyama authored
We used to support both Windows and Unix style command line options. In Windows style, an option and its value are separated by ":" (colon). In Unix, separator is a space. Accepting both styles were convenient, but we can no longer allow Unix style because I found that can be ambiguous. For example, /nodefaultlib option takes an optional argument. In Windows style it's going to be something like "/nodefaultlib:foo". There's no ambiguity what "foo" means. However, if the option is "/nodefaultlib foo", "foo" can be interpreted either an optional argument for "/nodefaultlib" or an input file "foo.obj". We should just stop accepting the non-standard command line style. llvm-svn: 191247
-
Rui Ueyama authored
These options are to enable DLL delay loading. If enabled, DLL is loaded at run time by a helper routine when a function in the DLL is actually called for the first time, instead of making the Windows loader to load all DLLs at startup time. This should shorten startup delay if an executable have many imported symbols. The linker needs to create a "delayed import table" and link delayimp.lib in which helper functions are defined to support the feature. For now, we just ignore the options, so that the linker does not complain when it sees these options. We want to support them in the future. llvm-svn: 191232
-
- Sep 23, 2013
-
-
Rui Ueyama authored
llvm-svn: 191227
-
Rui Ueyama authored
llvm-svn: 191224
-
Rui Ueyama authored
llvm-svn: 191223
-
Rui Ueyama authored
llvm-svn: 191218
-
Rui Ueyama authored
llvm-svn: 191217
-
Shankar Easwaran authored
This adds an option --output-filetype that can be set to either YAML/Native(case insensitive). The linker would create the outputs associated with the type specified by the user. Changes all the tests to use the new option. llvm-svn: 191183
-
- Sep 20, 2013
-
-
Ron Ofir authored
llvm-svn: 191079
-
Rui Ueyama authored
GNU LD driver only understood no_such_file_or_directory error and was showing just "Unknown Error" for any other type of error. With this patch, the driver now prints file name and error message string by default. llvm-svn: 191070
-
Rui Ueyama authored
/incremental is an option to enable incremental linking. We will eventually want to implement the feature for better performance, but in the meantime, we want to just ignore the option so that the linker does not output unknown option error when it sees /incremental option. llvm-svn: 191063
-
Rui Ueyama authored
llvm-svn: 191061
-
Rui Ueyama authored
/errorReport is a command line option to let the linker to report internal linker error information to Microsoft. For LLD that option doesn't make any sense, so it just ignores the option. llvm-svn: 191044
-
- Sep 19, 2013
-
-
Shankar Easwaran authored
llvm-svn: 191033
-
Rui Ueyama authored
llvm-svn: 190986
-
- Sep 14, 2013
-
-
Joerg Sonnenberger authored
llvm-svn: 190758
-
- Sep 13, 2013
-
-
Rui Ueyama authored
This reverts r189881 because that patch caused dangling StringRefs. llvm-svn: 190725
-
- Sep 12, 2013
-
-
Rui Ueyama authored
So that we can determine what the target architecture is. Adding this field does not mean that we are going to support non-i386 architectures soon; there are many things to do to support them, and I'm focusing on i386 now. But this is the first step toward multi architecture support. llvm-svn: 190627
-
Rui Ueyama authored
llvm-svn: 190586
-
- Sep 11, 2013
-
-
Nick Kledzik authored
Patch by Joe Ranieri llvm-svn: 190453
-
Nick Kledzik authored
-current_version, -compatibility_version, and -install_name. Patch by Joe Ranieri llvm-svn: 190452
-
- Sep 10, 2013
-
-
Rui Ueyama authored
Process::GetEnv() uses GetEnvironmentVariableW, which is a Windows API to get an environment variable and is preferable over getenv(). llvm-svn: 190431
-
- Sep 09, 2013
-
-
Rui Ueyama authored
llvm-svn: 190332
-
Rui Ueyama authored
llvm-svn: 190329
-
Joerg Sonnenberger authored
llvm-svn: 190301
-
- Sep 08, 2013
-
-
Joerg Sonnenberger authored
attribute in LinkerInput to isWholeArchive and use that for deciding whether library archives should be expanded. Implement the -all_load option of the Darwin linker using this flag and drop the support for it in GNU mode. llvm-svn: 190275
-
- Sep 07, 2013
-
-
Joerg Sonnenberger authored
reference. Move readFile logic into FileNode::createLinkerInput. llvm-svn: 190253
-
- Sep 06, 2013
-
-
Rui Ueyama authored
llvm-svn: 190121
-
Rui Ueyama authored
llvm-svn: 190119
-
Rui Ueyama authored
llvm-svn: 190117
-
- Sep 05, 2013
-
-
Rui Ueyama authored
llvm-svn: 190095
-
- Sep 04, 2013
-
-
Rui Ueyama authored
The compiler is allowed to add a linker option starting with -?<name> to .drectve section. If the linker can interpret -<name>, it's processed as if there's no question mark there. If not, such option is silently ignored. This is a COFF's feature to allow the compiler to emit new linker options while keeping compatibility with older linkers. llvm-svn: 189897
-
Rui Ueyama authored
Before this patch, name of driver implementation is not consistent with its option table file. Specifically, LDOptions has a different prefix than GnuLdDriver. This patch renames option files, so that the option files have the same prefix as the corresponding driver files. Differential Revision: http://llvm-reviews.chandlerc.com/D1591 llvm-svn: 189895
-
Shankar Easwaran authored
llvm-svn: 189891
-
Shankar Easwaran authored
Also add a llvm_unreachable call so that the linker will trip on unhandled inputElement types. llvm-svn: 189887
-
Joerg Sonnenberger authored
llvm-svn: 189883
-
Rui Ueyama authored
llvm-svn: 189881
-
Rui Ueyama authored
llvm-svn: 189877
-
Shankar Easwaran authored
This changes the interface of createLinkerInput to use ErrorOr, so that errors from the linker can be captured. Also adds a convenience function for error strings to be returned from file nodes. llvm-svn: 189871
-