mirror of git://gcc.gnu.org/git/gcc.git
lto-elf.c (validate_file): Always error if validation fails.
2010-09-03 Richard Guenther <rguenther@suse.de> * lto-elf.c (validate_file): Always error if validation fails. From-SVN: r163800
This commit is contained in:
parent
4904231323
commit
b3ec52d088
|
@ -1,3 +1,7 @@
|
||||||
|
2010-09-03 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
|
* lto-elf.c (validate_file): Always error if validation fails.
|
||||||
|
|
||||||
2010-08-20 Jan Hubicka <jh@suse.cz>
|
2010-08-20 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
* lto.c (lto_1_to_1_map): Be prepared for node to have no file data.
|
* lto.c (lto_1_to_1_map): Be prepared for node to have no file data.
|
||||||
|
|
|
@ -479,7 +479,6 @@ validate_file (lto_elf_file *elf_file)
|
||||||
error ("could not read ELF identification information: %s",
|
error ("could not read ELF identification information: %s",
|
||||||
elf_errmsg (0));
|
elf_errmsg (0));
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!cached_file_attrs.initialized)
|
if (!cached_file_attrs.initialized)
|
||||||
|
@ -522,7 +521,10 @@ validate_file (lto_elf_file *elf_file)
|
||||||
|
|
||||||
if (memcmp (elf_ident_buf, cached_file_attrs.elf_ident,
|
if (memcmp (elf_ident_buf, cached_file_attrs.elf_ident,
|
||||||
sizeof cached_file_attrs.elf_ident))
|
sizeof cached_file_attrs.elf_ident))
|
||||||
return false;
|
{
|
||||||
|
error ("incompatible ELF identification");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check that the input file is a relocatable object file with the correct
|
/* Check that the input file is a relocatable object file with the correct
|
||||||
|
|
Loading…
Reference in New Issue