Rui Ueyama
6872455c6d
COFF: Make test commands shorter. NFC.
...
llvm-svn: 244227
2015-08-06 16:47:46 +00:00
Rui Ueyama
251b0e268b
COFF: Remove the old COFF linker and make link an alias to link2.
...
It's time to remove old COFF linker because the new one is now complete.
llvm-svn: 244226
2015-08-06 16:19:35 +00:00
David Majnemer
bf1e5c0ee9
COFF: Reenable the lld test disabled in r243758.
...
llvm-svn: 243762
2015-07-31 17:41:11 +00:00
Reid Kleckner
60dde1fbda
Disable objdump disassembly test after r243755
...
Right now PE image section addresses are RVAs and symbol addresses are
VAs. We should probably fix this by changing section addresses to match
symbol addresses. Fixing this might take a few hours, so temporarily
disable the objdump part of this test.
llvm-svn: 243758
2015-07-31 16:41:23 +00:00
Rui Ueyama
7e387a68de
COFF: Fix 32-bit delay-import address table.
...
The address table entry is 32-bit wide on 32-bit and 64-bit on 64-bit.
Previously, it was 64-bit even on 32-bit.
llvm-svn: 243372
2015-07-28 02:54:18 +00:00
Rui Ueyama
5c437cd1e9
COFF: Fix image base address for 32-bit.
...
0x140000000 or 0x180000000 are not correct image base addresses
for 32-bit. They are actually much smaller.
llvm-svn: 243228
2015-07-25 21:42:33 +00:00
Rui Ueyama
1c341a54de
COFF: Do not align import thunks on 16-byte boundaries on x86.
...
Looks like MSVC linker aligns them only on x64.
llvm-svn: 243194
2015-07-25 01:16:04 +00:00
Rui Ueyama
2296dc137c
COFF: Fix base relocation type for x86.
...
llvm-svn: 243178
2015-07-24 23:24:45 +00:00
Rui Ueyama
759c8aa9a0
COFF: Fix offset in x86 delay-load thunks.
...
llvm-svn: 242353
2015-07-15 23:01:36 +00:00
Rui Ueyama
ef0e647581
COFF: Implement x86 delay-load thunks.
...
llvm-svn: 242343
2015-07-15 22:26:57 +00:00
Rui Ueyama
6d24908fe7
COFF: Fix x86 delay-load helper function name.
...
If /delayload option is given, we have to resolve __delayLoadHelper2
since the function is the dynamic loader to delay-load DLLs.
The function name is mangled in x86 as ___delayLoadHelper2@8.
llvm-svn: 242078
2015-07-13 22:31:45 +00:00