COFF: Fix delay-import tables.
authorRui Ueyama <ruiu@google.com>
Fri, 26 Jun 2015 21:40:15 +0000 (21:40 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 26 Jun 2015 21:40:15 +0000 (21:40 +0000)
commit382dc96e29d989cb30407230c70cb3eeac8b11d2
tree67c5681d7bddb0b34c2d5226b3e76191ac50d2e8
parenta3c6f0048cbb703da2c1ee3a7f40d134c68f861c
COFF: Fix delay-import tables.

There were a few issues with the previous delay-import tables.

 - "Attribute" field should have been 1 instead of 0.
   (I don't know the meaning of this field, though.)
 - LEA and CALL operands had wrong addresses.
 - Address tables are in .didat (which is read-only).
   They should have been in .data.

llvm-svn: 240837
lld/COFF/DLL.cpp
lld/COFF/DLL.h
lld/COFF/Writer.cpp
lld/test/COFF/delayimports.test