diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/lto/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/lto/lto-elf.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 9bcb001..59124ee 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,8 @@ +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> * lto.c (lto_promote_cross_file_statics): Use const_value_known. diff --git a/gcc/lto/lto-elf.c b/gcc/lto/lto-elf.c index 0d4f106..53cc057 100644 --- a/gcc/lto/lto-elf.c +++ b/gcc/lto/lto-elf.c @@ -674,7 +674,7 @@ lto_obj_file_open (const char *filename, bool writable) NULL); 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; } |