| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
Process::GetEnv() uses GetEnvironmentVariableW, which is a Windows API
to get an environment variable and is preferable over getenv().
llvm-svn: 190431
|
|
|
|
|
|
| |
reference. Move readFile logic into FileNode::createLinkerInput.
llvm-svn: 190253
|
|
|
|
| |
llvm-svn: 190121
|
|
|
|
| |
llvm-svn: 190119
|
|
|
|
| |
llvm-svn: 190117
|
|
|
|
| |
llvm-svn: 190095
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
calls of allocateString()
llvm-svn: 189881
|
|
|
|
| |
llvm-svn: 189877
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Differential Revision: http://llvm-reviews.chandlerc.com/D1577
llvm-svn: 189777
|
|
|
|
|
|
|
|
|
|
|
|
| |
available in YAML
This adds an API to the LinkingContext for flavors to add Internal files
containing atoms that need to appear in the YAML output as well, when -emit-yaml
switch is used.
Flavors can add more internal files for other options that are needed.
llvm-svn: 189718
|
|
|
|
| |
llvm-svn: 189614
|
|
|
|
|
|
| |
behavior.
llvm-svn: 189505
|
|
|
|
|
|
| |
Differential Revision: http://llvm-reviews.chandlerc.com/D1527
llvm-svn: 189318
|
|
|
|
| |
llvm-svn: 189310
|
|
|
|
| |
llvm-svn: 189308
|
|
|
|
|
|
|
|
|
| |
With this patch the entry symbol is treated as an undefined symbol, to force
the resolver to resolve the entry symbol.
Differential Revision: http://llvm-reviews.chandlerc.com/D1524
llvm-svn: 189307
|
|
|
|
|
|
| |
Patch by Jesús Serrano García.
llvm-svn: 189267
|
|
|
|
|
|
|
|
|
| |
This completes the subsystem name parsing to support the identifiers that the
Microsoft link.exe linker supports. "windows" and "console" are left as the
first items as they are the expected common paths.
Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
llvm-svn: 189181
|
|
|
|
|
|
|
|
| |
in order to match link.exe's behaviour.
Patch by Ron Ofir.
llvm-svn: 189159
|
|
|
|
|
|
| |
Patch by Ron Ofir.
llvm-svn: 189151
|
|
|
|
| |
llvm-svn: 189035
|
|
|
|
| |
llvm-svn: 189025
|
|
|
|
| |
llvm-svn: 188958
|
|
|
|
|
|
|
|
|
| |
This used to be handled automagically by the option parsing library,
but after LLVM r188314, we should handle it ourselves.
No functionality change, but adds a test.
llvm-svn: 188318
|
|
|
|
|
|
|
|
|
| |
Also change some local variable names: "ti" -> "context" and
"_targetInfo" -> "_context".
Differential Revision: http://llvm-reviews.chandlerc.com/D1301
llvm-svn: 187823
|
|
|
|
|
|
|
| |
Thanks to Hans' patch (r187675), OptTable now handles "--", so we don't
need this code in LLD.
llvm-svn: 187683
|
|
|
|
|
|
| |
It is not needed after LLVM r187546.
llvm-svn: 187551
|
|
|
|
|
|
|
|
|
| |
This depends on LLVM r187537.
The SUPPORT_ALIASARGS macro will be removed once all option parsing
clients have been updated.
llvm-svn: 187541
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit r187390 because we should not handle argv's quotes ourselves.
In Windows, unlike Unix, quotes are not processed by the shell. Instead the C
startup routine parses it as described in
http://msdn.microsoft.com/en-us/library/a1y7w461.aspx and pass the results to
main(). So, at the time when the control reaches main(), quotes that should be
removed has already been removed.
We still need to handle quotes in the response file and in .drectve section
ourselves. That will be addressed in different patches.
llvm-svn: 187534
|
|
|
|
|
|
|
| |
The command line option in .drectve section may be quoted by double
quotes, and if that's the case we have to remove them.
llvm-svn: 187390
|
|
|
|
| |
llvm-svn: 187259
|
|
|
|
| |
llvm-svn: 187161
|
|
|
|
| |
llvm-svn: 187100
|
|
|
|
| |
llvm-svn: 187095
|
|
|
|
|
|
|
| |
LLD still accepts both Unix and Windows style options when it's run as
link.exe. This patch does not change functionality.
llvm-svn: 187086
|
|
|
|
|
|
|
|
|
|
| |
The /include command line option is equivalent to Unix --undefined
option, which forces the linker to resolve the given symbol name
as if it's an unresolved symbol in one of its input files. This feature
is used to link an additional object file or a shared library that no
input files refer to.
llvm-svn: 187084
|
|
|
|
| |
llvm-svn: 186957
|
|
|
|
| |
llvm-svn: 186911
|
|
|
|
| |
llvm-svn: 186739
|
|
|
|
| |
llvm-svn: 186654
|
|
|
|
| |
llvm-svn: 186650
|
|
|
|
| |
llvm-svn: 186648
|
|
|
|
| |
llvm-svn: 186645
|
|
|
|
|
|
|
| |
The logic to search a library from the library paths will be implemented
in a different patch.
llvm-svn: 186644
|
|
|
|
| |
llvm-svn: 186612
|
|
|
|
| |
llvm-svn: 186428
|
|
|
|
|
|
|
|
| |
stderr."
This reverts commit 185657. It will be used by unit tests.
llvm-svn: 186366
|
|
|
|
| |
llvm-svn: 185657
|