summaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-14 12:43:37 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-14 12:43:37 +0000
commit8e8e1ee7c4f573928ac41ef75db1347883989141 (patch)
treec099c1ffdca963234c706ab07bc54945a758d54a /gcc/lto
parentfaf175aed5d8f139b533caf27f49561f92d9e06a (diff)
downloadgcc-8e8e1ee7c4f573928ac41ef75db1347883989141.tar.gz
* lto-elf.c (SHN_XINDEX): Define if not already defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165464 138bc75d-0d04-0410-961f-82ee72b054a4
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 d901164eb7f..c731e5a052b 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 53cc0570bc3..6268a9c0bf9 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. */