[PECOFF] Fixed a bug which caused DataDirectoryChunk to write to a wrong offset in the file buffer

Patch by Ron Ofir.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@187219 91177308-0d34-0410-b5e6-96231b3b80d8
[PECOFF] Replace magic number with llvm::COFF::DataDirectoryIndex value

Patch by Ron Ofir.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@187220 91177308-0d34-0410-b5e6-96231b3b80d8
[PECOFF] Don't set IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE if "-fixed" is provided

Based on Ron Ofir's patch.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@187221 91177308-0d34-0410-b5e6-96231b3b80d8