diff --git a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs index fb6adbae6840a4..d790246a02b9b6 100644 --- a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs +++ b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs @@ -850,10 +850,10 @@ public ObjectWriter(string objectFilePath, NodeFactory factory, ObjectWritingOpt { var triple = GetLLVMTripleFromTarget(factory.Target); - _nativeObjectWriter = InitObjWriter(objectFilePath, triple); + _nativeObjectWriter = InitObjWriter(Path.GetFullPath(objectFilePath), triple); if (_nativeObjectWriter == IntPtr.Zero) { - throw new IOException("Fail to initialize Native Object Writer"); + throw new IOException("Failed to initialize Native Object Writer"); } _nodeFactory = factory; _targetPlatform = _nodeFactory.Target;