Enable pdbpagesize to allow support for PDB file sizes > 4GB
authorChris Davis <chrdavis@microsoft.com>
Mon, 6 Dec 2021 23:11:34 +0000 (18:11 -0500)
committerNico Weber <thakis@chromium.org>
Mon, 6 Dec 2021 23:22:08 +0000 (18:22 -0500)
commite4eb6216c2ebeac5203ff9cab8fe96f092d08c0f
tree682609f2417ddece623af7da08e515bba21645f3
parent92b94dabef94a261cbe9b40f001651d0726f054e
Enable pdbpagesize to allow support for PDB file sizes > 4GB

Enable the pdbpagesize flag to allow linking of PDB files > 4GB.
Also includes a couple small fixes to change to uint64_t to support the
larger file sizes.  I updated the max file size check in MSFBuilder.cpp
to take into account the page size.

Differential Revision: https://reviews.llvm.org/D115051
lld/COFF/DriverUtils.cpp
lld/test/COFF/pdbpagesize.test
llvm/include/llvm/DebugInfo/MSF/MSFCommon.h
llvm/include/llvm/DebugInfo/MSF/MSFError.h
llvm/include/llvm/DebugInfo/PDB/Native/PDBFile.h
llvm/lib/DebugInfo/MSF/MSFBuilder.cpp
llvm/lib/DebugInfo/MSF/MSFError.cpp
llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp
llvm/tools/llvm-pdbutil/PdbYaml.h