| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 190986
|
|
|
|
|
|
|
|
|
|
|
| |
Base relocation block should be aligned on a 32-bit boundary. While the PECOFF
spec mentions only aligning the blocks, and not padding them, link.exe seems
to add an extra IMAGE_REL_I386_ABSOLUTE entry (just a zeroed WORD) in order to
pad the blocks.
Patch by Ron Ofir.
llvm-svn: 190951
|
|
|
|
| |
llvm-svn: 190949
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
header
This patch changes lld to go through all sections while calculating the size
for SizeOfCode, SizeOfInitializedData and SizeOfUninitializedData fields in the
PE header, instead of using only a small set of hard-coded sections.
This only really changes SizeOfInitializedData which didn't include .reloc
section before this patch.
Patch by Ron Ofir.
llvm-svn: 190799
|
|
|
|
|
|
|
|
|
| |
This patch sets the IMAGE_SCN_MEM_DISCARDABLE characteristic to the base
relocations section in order to match MS PECOFF specification.
Patch by Ron Ofir.
llvm-svn: 190798
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Patch by Ron Ofir.
llvm-svn: 190210
|
|
|
|
|
|
| |
header.
llvm-svn: 190120
|
|
|
|
| |
llvm-svn: 189570
|
|
|
|
|
|
| |
Patch by Jesús Serrano García.
llvm-svn: 189267
|
|
|
|
|
|
|
|
| |
in order to match link.exe's behaviour.
Patch by Ron Ofir.
llvm-svn: 189159
|
|
|
|
|
|
| |
Patch by Ron Ofir.
llvm-svn: 188187
|
|
|
|
|
|
|
|
|
| |
Also change some local variable names: "ti" -> "context" and
"_targetInfo" -> "_context".
Differential Revision: http://llvm-reviews.chandlerc.com/D1301
llvm-svn: 187823
|
|
|
|
|
|
|
|
| |
the relocation site
Patch by Ron Ofir.
llvm-svn: 187664
|
|
|
|
| |
llvm-svn: 187505
|
|
|
|
| |
llvm-svn: 187461
|
|
|
|
| |
llvm-svn: 187460
|
|
|
|
|
|
| |
Patch by Ron Ofir.
llvm-svn: 187262
|
|
|
|
|
|
|
|
| |
provided
Based on Ron Ofir's patch.
llvm-svn: 187221
|
|
|
|
|
|
| |
Patch by Ron Ofir.
llvm-svn: 187220
|
|
|
|
|
|
|
|
| |
offset in the file buffer
Patch by Ron Ofir.
llvm-svn: 187219
|
|
|
|
| |
llvm-svn: 186957
|
|
|
|
| |
llvm-svn: 186911
|
|
|
|
| |
llvm-svn: 186739
|
|
|
|
| |
llvm-svn: 186428
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a follow up patch for r186336.
Reviewers: LegalizeAdulthood
CC: silvas, llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1144
llvm-svn: 186384
|
|
|
|
|
|
|
| |
- Make a const reference instead of copying an object
- Fix a comment
llvm-svn: 186355
|
|
|
|
| |
llvm-svn: 186353
|
|
|
|
| |
llvm-svn: 186352
|
|
|
|
| |
llvm-svn: 186346
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Emit .reloc section. This is the first step to support DLL creation. The
executable doesn't need .reloc section, but the DLL does.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1126
llvm-svn: 186336
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds a new pass, IdataPass, to transform shared atom references
to real references and to construct the .idata section data. With this patch
lld can produce a working Hello World program by linking it against
kernel32.dll and user32.dll.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1096
llvm-svn: 186071
|
|
|
|
|
|
| |
header.
llvm-svn: 186066
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
than all at once.
Contents of ".reloc" section depends on the addresses of other sections, so
the section cannot be created until all the other sections are created and get
their memory addresses (RVAs). That means that computation of section size
needs to be at least two pass.
Techynically there's no reason to compute it all at once, but instead we can
compute the address of a section as added to the output file. Doing so helps
us to create ".reloc" section.
llvm-svn: 185902
|
|
|
|
|
|
| |
unmapped page.
llvm-svn: 185534
|
|
|
|
|
|
|
|
|
|
|
|
| |
The optional data directory header contains addresses to some atoms such
as the import address table in data section. Such fields can naturally
be set by relocation if we make the optional data driectory as an atom.
Currently we assume that atoms are always in a section, so we can't create
a file header with atoms. This patch separates section chunk from atom
chunk, to allow atom-based file header.
llvm-svn: 185521
|
|
|
|
| |
llvm-svn: 185517
|
|
|
|
| |
llvm-svn: 185310
|
|
|
|
|
|
| |
location to file header.
llvm-svn: 185309
|
|
|
|
|
|
| |
such executable.
llvm-svn: 185308
|
|
|
|
| |
llvm-svn: 185247
|
|
|
|
| |
llvm-svn: 185205
|
|
|
|
| |
llvm-svn: 185200
|
|
|
|
| |
llvm-svn: 185133
|
|
|
|
| |
llvm-svn: 185130
|
|
|
|
| |
llvm-svn: 185128
|
|
|
|
| |
llvm-svn: 185102
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: shankarke
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D989
llvm-svn: 184085
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With this patch, it can now resolve relocations in the same output file.
"Hello world" program does not still work because call to the DLL routine
is not supported yet.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D985
llvm-svn: 184063
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
writers.
Summary: I'm planning to use AtomLayout in WriterPECOFF.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D977
llvm-svn: 184062
|