summaryrefslogtreecommitdiff
path: root/gcc/lto/lto-elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto/lto-elf.c')
-rw-r--r--gcc/lto/lto-elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto/lto-elf.c b/gcc/lto/lto-elf.c
index 0d4f1067be5..53cc0570bc3 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;
}