- Dec 04, 2013
-
-
Rui Ueyama authored
llvm-svn: 196332
-
- Dec 03, 2013
-
-
Rui Ueyama authored
These relocations are used in .debug section. llvm-svn: 196262
-
Rui Ueyama authored
llvm-svn: 196200
-
Rui Ueyama authored
llvm-svn: 196196
-
Rui Ueyama authored
llvm-svn: 196185
-
- Dec 02, 2013
-
-
Rui Ueyama authored
llvm-svn: 196092
-
Rui Ueyama authored
This reverts commit r195852 because LLD seems to create broken executables with that patch when compiled with MSVC 2013. llvm-svn: 196078
-
Alp Toker authored
llvm-svn: 196056
-
Rui Ueyama authored
llvm-svn: 196055
-
Alp Toker authored
llvm-svn: 196054
-
Alp Toker authored
No change in functionality. llvm-svn: 196053
-
- Dec 01, 2013
-
-
Rui Ueyama authored
/DEBUG option is to make the linker to emit debug information to the resulting executable. It's not for enable debugging of the linker itself. llvm-svn: 196040
-
- Nov 28, 2013
-
-
Rui Ueyama authored
This is a patch to let the PECOFF writer to use the information passed by the parser for /section option. The implementation of /section should now be complete. llvm-svn: 195893
-
- Nov 27, 2013
-
-
Rui Ueyama authored
/MERGE option is a bit complicated for many reasons. Firstly, it takes both positive and negative arguments. That means we have to have one of three distinctive values (set, clear or unchange) for each permission bit. In this patch we represent the three values using two bitmasks. Secondly, the permissions specified by the parameter is bitwise or-ed with the default permissions of a section. There is an exception for that rule; if one of READ, WRITE or EXECUTE bit is specified, unspecified bits need to be cleared. (So if you specify only WRITE for example, the resulting section will not have WRITE nor EXECUTE bits.) Lastly, multiple /merge options are allowed. llvm-svn: 195882
-
Rui Ueyama authored
This patch is to improve the readability of the tests before making a change to /merge option. llvm-svn: 195863
-
Rui Ueyama authored
/MERGE:foo=bar command line option merges section foo to section bar. If section bar does not exist, foo is just renamed as bar. llvm-svn: 195856
-
Rui Ueyama authored
llvm-svn: 195855
-
Rui Ueyama authored
llvm-svn: 195854
-
Rui Ueyama authored
llvm-svn: 195853
-
Rui Ueyama authored
Atom ordinals are the indeces in a file. Currently the PECOFF reader assigns ordinals for each section, so it's (incorrectly) assigning duplicate ordinals. llvm-svn: 195852
-
Rui Ueyama authored
llvm-svn: 195801
-
Rui Ueyama authored
Instead of having multiple SectionChunks for each section (.text, .data, .rdata and .bss), we could have one chunk writer that can emit any sections. This patch does that -- removing all section-sepcific chunk writers and replace them with one "generic" writer. This change should simplify the code because it eliminates similar-but- slightly-different classes. It also fixes an issue in the previous design. Before this patch, we could emit only limited set of sections (i.e. .text, .data, .rdata and .bss). With this patch, we can emit any sections. llvm-svn: 195797
-
Rui Ueyama authored
This reverts accidental commit r195794. llvm-svn: 195795
-
Rui Ueyama authored
llvm-svn: 195794
-
- Nov 26, 2013
-
-
Rui Ueyama authored
The current mapping for /section one character options is really bogus. Map to the correct flags. llvm-svn: 195774
-
- Nov 25, 2013
-
-
Rui Ueyama authored
According to the PE/COFF spec, a section with IMAGE_SCN_LNK_INFO should only appear in an object file, and not allowed in an executable. So I believe treating it as the same way as IMAGE_SCN_LNK_INFO is the right thing. llvm-svn: 195692
-
Rui Ueyama authored
In order not to overrun a StringRef and copy the trailing garbage, we need to set the maximum length to be copied by strncpy. llvm-svn: 195688
-
Rui Ueyama authored
llvm-svn: 195663
-
Rui Ueyama authored
llvm-svn: 195662
-
Rui Ueyama authored
llvm-svn: 195661
-
Rui Ueyama authored
llvm-svn: 195618
-
Rui Ueyama authored
This patch won't change the output because the layout of linker internal atoms is forced by layout-{before,after} references. Ordinals of the linker internal atoms are not currently used. (That's why it's working even if there are atoms having the same ordinals.) llvm-svn: 195610
-
Shankar Easwaran authored
Comment from Rui Ueyema. llvm-svn: 195598
-
Shankar Easwaran authored
llvm-svn: 195597
-
Shankar Easwaran authored
This is needed before any of the search paths are searched for. llvm-svn: 195596
-
Rui Ueyama authored
Change the attribute from sectionBasedOnContent to sectionCustomRequired because its the right attribute for atoms read from COFF files to have. COFF atoms should basically be emitted to the section having the same name as input. Permissions/attributes should not affect that. There's no functionality change because the writer doesn't yet use the section name. The writer will be modified in a following patch, so that atoms are written to its customSectionName()'s section. llvm-svn: 195595
-
Shankar Easwaran authored
Looks like -L paths are not positional. They need to be added to a list of search paths and those needs to be searched when lld looks for a library. llvm-svn: 195594
-
Rui Ueyama authored
llvm-svn: 195593
-
Rui Ueyama authored
If /subsystem option is not specified, the linker needs to infer it from the entry point function. If "main" or "wmain" is defined, it's a console application. If "WinMain" or "wWinMain" is defined, it's a GUI application. llvm-svn: 195592
-
Shankar Easwaran authored
llvm-svn: 195584
-