Index: llvm/lib/Object/Archive.cpp =================================================================== --- llvm/lib/Object/Archive.cpp +++ llvm/lib/Object/Archive.cpp @@ -256,6 +256,10 @@ return Name; if (Name.size() == 2 && Name[1] == '/') // String table. return Name; + // System libraries from Windows SDK for Window 11 contain this symbol, + // it looks like a CFG guard, we just skip it for now. + if (Name.equals("//")) + return Name; // It's a long name. // Get the string table offset. std::size_t StringOffset; Index: llvm/test/tools/llvm-lib/Inputs/xfghashmap-inserter.py =================================================================== --- /dev/null +++ llvm/test/tools/llvm-lib/Inputs/xfghashmap-inserter.py @@ -0,0 +1,17 @@ +import sys + +if len(sys.argv) < 3: + print("Use: xfghashmap-inserter.py