/* Check whether OBJ file and COD file have same name. */
BOOLEAN MatchObjAndCod(IN CHAR8 *ObjFileName, IN CHAR16 *CodFileName)
/* Check whether OBJ file and COD file have same name. */
BOOLEAN MatchObjAndCod(IN CHAR8 *ObjFileName, IN CHAR16 *CodFileName)
{
  UINTN  ObjNameSize;
  UINTN  CodNameSize;
  CHAR8  *PureObjFileName;
  UINTN  Index;
  PureObjFileName = ObjFileName;
  for (Index = 0; ObjFileName[Index] != 0; Index++) {
    if (ObjFileName[Index] == ':') {
      PureObjFileName = &ObjFileName[Index + 1];
      break;
    }
  }
  ObjFileName = PureObjFileName;
  ObjNameSize = AsciiStrLen (ObjFileName);
  CodNameSize = StrLen (CodFileName);
  if (ObjNameSize != CodNameSize) {
    return FALSE;
  }
  for (Index = 0; Index < CodNameSize - 4; Index++) {
    if ((ObjFileName[Index] | 0x20) != (CodFileName[Index] | 0x20)) {
      return FALSE;
    }
  }
  return TRUE;
}