This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR middle-end/38996: [LTO] lto1 doesn't work on RHEL5
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 27 Jan 2009 17:50:16 -0800
- Subject: PATCH: PR middle-end/38996: [LTO] lto1 doesn't work on RHEL5
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
This patch initializes e_version to EV_CURRENT. OK to install?
H.J.
---
2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/38996
* lto-elf.c (DEFINE_INIT_EHDR): Initialize e_version.
--- gcc/lto/lto-elf.c.xxx 2009-01-27 15:40:31.000000000 -0800
+++ gcc/lto/lto-elf.c 2009-01-27 17:43:43.000000000 -0800
@@ -487,6 +487,7 @@ init_ehdr##BITS (lto_elf_file *elf_file)
memcpy (ehdr->e_ident, cached_file_attrs.elf_ident, \
sizeof cached_file_attrs.elf_ident); \
ehdr->e_type = ET_REL; \
+ ehdr->e_version = EV_CURRENT; \
ehdr->e_machine = cached_file_attrs.elf_machine; \
}