aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2010-10-14 12:43:37 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2010-10-14 12:43:37 +0000
commit82971de5f61a5e6e7a2175e90dcbe5448006f0c5 (patch)
treec099c1ffdca963234c706ab07bc54945a758d54a /gcc/lto
parent8ac7fdcb39522d47fc35f8efc3e2f77f45878571 (diff)
downloadgcc-82971de5f61a5e6e7a2175e90dcbe5448006f0c5.zip
gcc-82971de5f61a5e6e7a2175e90dcbe5448006f0c5.tar.gz
gcc-82971de5f61a5e6e7a2175e90dcbe5448006f0c5.tar.bz2
* lto-elf.c (SHN_XINDEX): Define if not already defined.
From-SVN: r165464
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto-elf.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index d901164..c731e5a0 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
+
+ * lto-elf.c (SHN_XINDEX): Define if not already defined.
+
2010-10-08 Joseph Myers <joseph@codesourcery.com>
* lto-lang.c (lto_init_options): Change to
diff --git a/gcc/lto/lto-elf.c b/gcc/lto/lto-elf.c
index 53cc057..6268a9c 100644
--- a/gcc/lto/lto-elf.c
+++ b/gcc/lto/lto-elf.c
@@ -42,10 +42,15 @@ along with GCC; see the file COPYING3. If not see
#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. */