aboutsummaryrefslogtreecommitdiff
path: root/bfd
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 /bfd
parent814f1489e9d1d92a30d94d69a0066addcc564bd2 (diff)
downloadgdb-1fe0971e41a4097610862acabf54a896695fe834.zip
gdb-1fe0971e41a4097610862acabf54a896695fe834.tar.gz
gdb-1fe0971e41a4097610862acabf54a896695fe834.tar.bz2
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 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf32-hppa.h8
-rw-r--r--bfd/elf32-nds32.h9
-rw-r--r--bfd/elf32-tic6x.h8
4 files changed, 31 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 8ec3005..358b0db 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
+ * elf32-hppa.h: Add extern "C".
+ * elf32-nds32.h: Likewise.
+ * elf32-tic6x.h: Likewise.
+
2016-06-01 Nick Clifton <nickc@redhat.com>
* po/sr.po: New Serbian translation.
diff --git a/bfd/elf32-hppa.h b/bfd/elf32-hppa.h
index ad5cb18..972d749 100644
--- a/bfd/elf32-hppa.h
+++ b/bfd/elf32-hppa.h
@@ -36,6 +36,10 @@
#include "libhppa.h"
#include "elf/hppa.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void elf32_hppa_init_stub_bfd
(bfd *, struct bfd_link_info *);
@@ -77,4 +81,8 @@ extern elf_hppa_reloc_type ** _bfd_elf32_hppa_gen_reloc_type
#define R_HPPA_ABS_CALL R_PARISC_DIR17F
#define R_HPPA_COMPLEX R_PARISC_UNIMPLEMENTED
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _ELF32_HPPA_H */
diff --git a/bfd/elf32-nds32.h b/bfd/elf32-nds32.h
index c28617f..8227827 100644
--- a/bfd/elf32-nds32.h
+++ b/bfd/elf32-nds32.h
@@ -22,6 +22,10 @@
#ifndef ELF32_NDS32_H
#define ELF32_NDS32_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Relocation flags encoded in r_addend. */
/* Relocation flags for R_NDS32_ERLAX_ENTRY. */
@@ -152,4 +156,9 @@ struct elf_nds32_link_hash_table
bfd_boolean ex9_loop_aware; /* Ignore ex9 if inside a loop. */
bfd_boolean ifc_loop_aware; /* Ignore ifc if inside a loop. */
};
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/bfd/elf32-tic6x.h b/bfd/elf32-tic6x.h
index 80646c6..34d94a1 100644
--- a/bfd/elf32-tic6x.h
+++ b/bfd/elf32-tic6x.h
@@ -18,6 +18,10 @@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int elf32_tic6x_merge_arch_attributes (int, int);
/* This function is provided for use from the assembler. */
@@ -32,3 +36,7 @@ struct elf32_tic6x_params
extern void elf32_tic6x_setup (struct bfd_link_info *,
struct elf32_tic6x_params *);
+
+#ifdef __cplusplus
+}
+#endif