COFF: Fix locally-imported symbol's base relocations.
authorRui Ueyama <ruiu@google.com>
Fri, 10 Jul 2015 04:30:54 +0000 (04:30 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 10 Jul 2015 04:30:54 +0000 (04:30 +0000)
commitc851ccc3bd38b0887615f9b39950d07ffc66da0a
treeafa3f9c5a5619c8f5d81a466880b3df85df61ed4
parent0de292f5d0cd12c2e8630b4b1c848460377ae58d
COFF: Fix locally-imported symbol's base relocations.

Base relocations are RVA and not VA, so we shouldn't add ImageBase.

llvm-svn: 241883
lld/COFF/Chunks.cpp
lld/test/COFF/locally-imported.test