[LLD][COFF] Ignore DEBUG_S_XFGHASH_TYPE/VIRTUAL
commit576375a2d670a7b1bd84b53b0187605a5f4ea0c8
authorTobias Hieta <tobias@hieta.se>
Mon, 8 Aug 2022 13:53:15 +0000 (8 15:53 +0200)
committerTobias Hieta <tobias@hieta.se>
Mon, 8 Aug 2022 13:53:52 +0000 (8 15:53 +0200)
tree27636ab6cfa0e194a7f55b0d40e99e3fdb7e3707
parentdc07d2c91dfd7f14991d07ef1df5f1f0b19b306d
[LLD][COFF] Ignore DEBUG_S_XFGHASH_TYPE/VIRTUAL

These are new debug types that ships with the latest
Windows SDK and would warn and finally fail lld-link.

The symbols seems to be related to Microsoft's XFG
which is their version of CFG. We can't handle any of
this yet, so for now we can just ignore these types
so that lld doesn't fail with a new version of Windows
SDK.

Fixes: #56285

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D129378
lld/COFF/PDB.cpp
lld/test/COFF/pdb-unknown-subsection.s
lld/test/COFF/pdb-xfg-section.s [new file with mode: 0644]
llvm/include/llvm/DebugInfo/CodeView/CodeView.h
llvm/lib/DebugInfo/PDB/Native/FormatUtil.cpp