Commit a929ec3d by Gerald Pfeifer Committed by Gerald Pfeifer

lto-elf.c (lto_obj_file_open): Also provide filename when elf_begin fails.

	* lto-elf.c (lto_obj_file_open): Also provide filename when
	elf_begin fails.

From-SVN: r164394
parent b4b7e792
2010-09-18 Gerald Pfeifer <gerald@pfeifer.com>
* lto-elf.c (lto_obj_file_open): Also provide filename when
elf_begin fails.
2010-09-17 Jan Hubicka <jh@suse.cz> 2010-09-17 Jan Hubicka <jh@suse.cz>
* lto.c (lto_promote_cross_file_statics): Use const_value_known. * lto.c (lto_promote_cross_file_statics): Use const_value_known.
......
...@@ -674,7 +674,7 @@ lto_obj_file_open (const char *filename, bool writable) ...@@ -674,7 +674,7 @@ lto_obj_file_open (const char *filename, bool writable)
NULL); NULL);
if (!elf_file->elf) if (!elf_file->elf)
{ {
error ("could not open ELF file: %s", elf_errmsg (0)); error ("could not open %s as an ELF file: %s", fname, elf_errmsg (0));
goto fail; goto fail;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment