This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR middle-end/38996: [LTO] lto1 doesn't work on RHEL5


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;		      \
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]