summaryrefslogtreecommitdiff
path: root/include/elf
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-29 04:29:22 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-06-01 21:26:32 -0400
commit1fe0971e41a4097610862acabf54a896695fe834 (patch)
tree28a39e6d20644048ad87c57f257e8ec81db4cb4e /include/elf
parent814f1489e9d1d92a30d94d69a0066addcc564bd2 (diff)
add more extern C
opcodes/ChangeLog: 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * nds32-asm.h: Add extern "C". * sh-opc.h: Likewise. bfd/ChangeLog: 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * elf32-hppa.h: Add extern "C". * elf32-nds32.h: Likewise. * elf32-tic6x.h: Likewise. include/ChangeLog: 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * elf/mips.h: Likewise. * elf/sh.h: Likewise. * opcode/d10v.h: Likewise. * opcode/d30v.h: Likewise. * opcode/ia64.h: Likewise. * opcode/mips.h: Likewise. * opcode/ppc.h: Likewise. * opcode/sparc.h: Likewise. * opcode/tic6x.h: Likewise. * opcode/v850.h: Likewise.
Diffstat (limited to 'include/elf')
-rw-r--r--include/elf/mips.h8
-rw-r--r--include/elf/sh.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/include/elf/mips.h b/include/elf/mips.h
index 70ea43e810..d6fd808cbe 100644
--- a/include/elf/mips.h
+++ b/include/elf/mips.h
@@ -30,6 +30,10 @@
#include "elf/reloc-macros.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Relocation types. */
START_RELOC_NUMBERS (elf_mips_reloc_type)
RELOC_NUMBER (R_MIPS_NONE, 0)
@@ -1312,4 +1316,8 @@ enum
Val_GNU_MIPS_ABI_MSA_128 = 1,
};
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _ELF_MIPS_H */
diff --git a/include/elf/sh.h b/include/elf/sh.h
index 9f425b2329..2bc83f0eba 100644
--- a/include/elf/sh.h
+++ b/include/elf/sh.h
@@ -20,6 +20,10 @@
#ifndef _ELF_SH_H
#define _ELF_SH_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Processor specific flags for the ELF header e_flags field. */
#define EF_SH_MACH_MASK 0x1f
@@ -246,4 +250,8 @@ START_RELOC_NUMBERS (elf_sh_reloc_type)
RELOC_NUMBER (R_SH_64_PCREL, 255)
END_RELOC_NUMBERS (R_SH_max)
+#ifdef __cplusplus
+}
+#endif
+
#endif