- Sep 12, 2017
-
-
Peter Smith authored
Replace OutputSection *Cmd to OutputSection *OS. The Commands vector was moved to OutputSection but the names of the variables were not. This patch changes the names to match. Differential Revision: https://reviews.llvm.org/D37627 llvm-svn: 313015
-
Rafael Espindola authored
This fixes two more cases where we were aligning the offset in a section, instead of the final address. llvm-svn: 312983
-
NAKAMURA Takumi authored
llvm-svn: 312981
-
Rafael Espindola authored
When given foobar = ALIGN(., 0x100); my expectation from what the manual says is that the final address of foobar will be aligned. It seems that bfd aligns the offset in the section, which causes some odd results if the section is not 0x100 aligned. Gold aligns the address. This changes lld to align the final address. llvm-svn: 312979
-
Adrian Prantl authored
llvm-svn: 312976
-
Adrian Prantl authored
llvm-svn: 312974
-
Rui Ueyama authored
/natvis is a new command line option introduced by MSVC 2017. We eventually have to support it, but for now, let's ignore it so that we can at least link stuff instead of printing out an error. Patch by Michael Rickert. llvm-svn: 312966
-
Rui Ueyama authored
llvm-svn: 312964
-
Rui Ueyama authored
llvm-svn: 312963
-
Rui Ueyama authored
llvm-svn: 312962
-
Rui Ueyama authored
llvm-svn: 312961
-
Rui Ueyama authored
We do not use "Shim" as a name of MinGW driver, so rename it MinGW. I don't think the former dependency list was correct. MinGW driver depends on COFF. llvm-svn: 312960
-
- Sep 11, 2017
-
-
Martell Malone authored
This adds support for passing LTO flags to the MINGW driver in GNU LD style i.e. -mllvm flag -> /mllvm:flag Reviewers: ruiu, mstorsjo Differential Revision: https://reviews.llvm.org/D37712 llvm-svn: 312956
-
Rui Ueyama authored
This patch also rename OPT_outlib OPT_out_implib for consistency. llvm-svn: 312949
-
Martin Storsjö authored
If the sysroot parameter is passed to the clang frontend, clang already uses it to find libraries and adds -L options for it, but also passes it on to the linker. Therefore we can get pretty far by just ignoring it altogether. Differential Revision: https://reviews.llvm.org/D37707 llvm-svn: 312945
-
Martin Storsjö authored
Pass the -verbose option through to the COFF linker, and show the arguments passed to it. If the -### option is specified, just show the produced argument list and exit, just like in clang. Replace the first argument with "lld-link" in order to produce a correct command line. Differential Revision: https://reviews.llvm.org/D37706 llvm-svn: 312944
-
Rui Ueyama authored
Summary: In addition to removing a few global variables and functions, I believe this patch improves code readability a bit in general. Reviewers: mstorsjo, martell Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D37699 llvm-svn: 312940
-
Rui Ueyama authored
Tests for MinGW shouldn't depend on files under test/COFF/Inputs. llvm-svn: 312931
-
Martell Malone authored
When building COFF programs many targets such as mingw prefer to have a gnu ld frontend. Rather then having a fully fledged standalone driver we wrap a shim around the LINK driver. Extra tests were provided by mstorsjo Reviewers: mstorsjo, ruiu Differential Revision: https://reviews.llvm.org/D33880 llvm-svn: 312926
-
James Henderson authored
'@' is a valid character in file paths, but the linker script tokenizer treats it as a separate token. This was leading to an unexpected test failure, on our local builds. This patch changes the test to quote the path to prevent this happening. An alternative would have been to add '@' to the list of "unquoted tokens" in ScriptLexer.cpp, but ld.bfd has the same behaviour as the current LLD. Reviewers: ruiu Differential Revision: https://reviews.llvm.org/D37689 llvm-svn: 312922
-
- Sep 08, 2017
-
-
Rui Ueyama authored
llvm-svn: 312823
-
Rafael Espindola authored
llvm-svn: 312820
-
Rafael Espindola authored
llvm-svn: 312812
-
Rafael Espindola authored
We handled all undefined symbols before this. llvm-svn: 312808
-
Rafael Espindola authored
llvm-svn: 312807
-
Rafael Espindola authored
This allows combining --dynamic-list and version scripts too. The version script controls which symbols are visible, and --dynamic-list controls which of those are preemptible. Unlike previous versions, undefined symbols are still considered preemptible, which was the issue breaking the cfi tests. This fixes pr34053. llvm-svn: 312806
-
Dmitry Mikulin authored
to separate commons based on file name patterns. The following linker script construct does not work because commons are allocated before section placement is done and the only synthesized BssSection that holds all commons has no file associated with it: SECTIONS { .common_0 : { *file0.o(COMMON) }} This patch changes the allocation of commons to create a section per common symbol and let the section logic do the layout. Differential revision: https://reviews.llvm.org/D37489 llvm-svn: 312796
-
George Rimar authored
llvm-svn: 312789
-
George Rimar authored
llvm-svn: 312787
-
George Rimar authored
There is no need to check anything excepr that symbol is not in output. Previously additional iformation like symbol values or flags were checked, that was not correct. For example if we would provide symbol with different value/visibility/type for case when should not provide symbol at all, testcase would not fail. llvm-svn: 312779
-
George Rimar authored
REGION_ALIAS(alias, region) Alias names can be added to existing memory regions created with the MEMORY command. Each name corresponds to at most one memory region. Differential revision: https://reviews.llvm.org/D37477 llvm-svn: 312777
-
Rafael Espindola authored
This reverts commit r312757. Evgenii Stepanov reports that it broke some tests. llvm-svn: 312771
-
Peter Collingbourne authored
Differential Revision: https://reviews.llvm.org/D37607 llvm-svn: 312770
-
Rui Ueyama authored
llvm-svn: 312765
-
Rui Ueyama authored
llvm-svn: 312763
-
Peter Collingbourne authored
llvm-svn: 312762
-
Rafael Espindola authored
If --dynamic-list is given, only those symbols are preemptible. This allows combining --dynamic-list and version scripts too. The version script controls which symbols are visible, and --dynamic-list controls which of those are preemptible. This fixes pr34053. llvm-svn: 312757
-
Rui Ueyama authored
llvm-svn: 312753
-
- Sep 07, 2017
-
-
Peter Collingbourne authored
It is possible for two modules to have the same name if they are archive members with the same name, or if we are doing LTO (in which case all modules will have the name "lto.tmp"). Differential Revision: https://reviews.llvm.org/D37589 llvm-svn: 312744
-
Rafael Espindola authored
The performance problem with --threads is fixed. llvm-svn: 312738
-