This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Fix LTO compilation failure on Solaris 8
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Oct 2010 01:03:45 +0200
- Subject: [patch] Fix LTO compilation failure on Solaris 8
Hi,
we have an old version of Solaris 8 for x86 that needs this patchlet to build
the compiler with LTO enabled; the results are otherwise nominal.
Also tested on x86_64-suse-linux. OK for mainline?
2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
* lto-elf.c (SHN_XINDEX): Define if not already defined.
--
Eric Botcazou
Index: lto-elf.c
===================================================================
--- lto-elf.c (revision 165411)
+++ lto-elf.c (working copy)
@@ -42,10 +42,15 @@ along with GCC; see the file COPYING3.
#ifndef ELFOSABI_NONE
# define ELFOSABI_NONE 0
#endif
+
#ifndef ELFOSABI_LINUX
# define ELFOSABI_LINUX 3
#endif
+#ifndef SHN_XINDEX
+# define SHN_XINDEX 0xffff
+#endif
+
/* Handle opening elf files on hosts, such as Windows, that may use
text file handling that will break binary access. */