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/xfghashmap-list.test =================================================================== --- /dev/null +++ llvm/test/tools/llvm-lib/xfghashmap-list.test @@ -0,0 +1,5 @@ +# This should print the // section as well as a .dll one +RUN: llvm-lib /list %S/Inputs/xfghash.lib | FileCheck %s + +CHECK: // +CHECK: xfghash.dll