[lld][PECOFF] Support IMAGE_REL_I386_DIR32 relocation.
authorRui Ueyama <ruiu@google.com>
Sun, 16 Jun 2013 17:25:17 +0000 (17:25 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 16 Jun 2013 17:25:17 +0000 (17:25 +0000)
commit8d1016432685f53d3bcb1d141e66a9eac8b49a10
treed5ebbdc0a2d66fc89eeb464a9e1c9ed65ee37463
parentc26eabe32be37a12f8b5be3445a03ae232c50f9d
[lld][PECOFF] Support IMAGE_REL_I386_DIR32 relocation.

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
lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
lld/test/pecoff/lib.test
lld/test/pecoff/multi.test
lld/test/pecoff/reloc.test [new file with mode: 0644]