COFF: Don't use COFFHeader->NumberOfRelocations.
authorRui Ueyama <ruiu@google.com>
Thu, 25 Jun 2015 17:43:37 +0000 (17:43 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 25 Jun 2015 17:43:37 +0000 (17:43 +0000)
commit02c302790f5f3325626c21aef839fbcf28c95dc7
tree1764359ed26c1a6842d1c65c904672ec4b427b93
parent05f75e9ffba43660d719e161808c75eb3960fadf
COFF: Don't use COFFHeader->NumberOfRelocations.

The size of the field is 16 bit, so it's inaccurate if the
number of relocations in a section is more than 65535.

llvm-svn: 240661
lld/COFF/Chunks.cpp
lld/COFF/Chunks.h