Fix narrowing conversion error in 32-bit MSVC builds
authorReid Kleckner <rnk@google.com>
Thu, 20 Oct 2016 00:13:34 +0000 (00:13 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 20 Oct 2016 00:13:34 +0000 (00:13 +0000)
commit2918d0b4b25d71d8d4b4cae9ce3721f1d147f43f
tree0e4252671cbf1ffc0511a274d322f521f4b336e8
parenta7ece03b322c5cef25b90c82e51e8860d8be2a2f
Fix narrowing conversion error in 32-bit MSVC builds

Use size_t instead of ELFT::uint for the string table offset. If the
linker is built 32-bit, it can't write an output file larger than 2GB.
Other code in this area uses size_t as well.

llvm-svn: 284680
lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h