Merge topic 'windows-export-bigobj'

08ca4fbc7a WINDOWS_EXPORT_ALL_SYMBOLS: Distinguish bigobj from cl -GL objects

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10382
This commit is contained in:
Brad King 2025-02-25 15:02:11 +00:00 committed by Kitware Robot
commit cdc1621013

View File

@ -469,7 +469,7 @@ static bool DumpFile(std::string const& nmPath, char const* filename,
// check for /bigobj and llvm LTO format
cmANON_OBJECT_HEADER_BIGOBJ* h =
(cmANON_OBJECT_HEADER_BIGOBJ*)lpFileBase;
if (h->Sig1 == 0x0 && h->Sig2 == 0xffff) {
if (h->Sig1 == 0x0 && h->Sig2 == 0xffff && h->Version >= 2) {
// bigobj
DumpSymbols<cmANON_OBJECT_HEADER_BIGOBJ, cmIMAGE_SYMBOL_EX>
symbolDumper(