aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-09-03 09:42:37 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-09-03 09:42:37 +0000
commitb3ec52d088106728c7c8acda2e736e09b6e70b4f (patch)
treebc536a5771f191a0d154f209b8ee668b85068200 /gcc
parent4904231323789b7d5a0f6fa70fe7f55ee6fba109 (diff)
downloadgcc-b3ec52d088106728c7c8acda2e736e09b6e70b4f.zip
gcc-b3ec52d088106728c7c8acda2e736e09b6e70b4f.tar.gz
gcc-b3ec52d088106728c7c8acda2e736e09b6e70b4f.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto-elf.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 590435f..cd05044 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -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>
* lto.c (lto_1_to_1_map): Be prepared for node to have no file data.
diff --git a/gcc/lto/lto-elf.c b/gcc/lto/lto-elf.c
index ad49621..0d4f106 100644
--- a/gcc/lto/lto-elf.c
+++ b/gcc/lto/lto-elf.c
@@ -479,7 +479,6 @@ validate_file (lto_elf_file *elf_file)
error ("could not read ELF identification information: %s",
elf_errmsg (0));
return false;
-
}
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,
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