aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto/lto-elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto/lto-elf.c')
-rw-r--r--gcc/lto/lto-elf.c5
1 files changed, 5 insertions, 0 deletions
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. */