aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-07-16 13:27:30 +0930
committerAlan Modra <amodra@gmail.com>2016-07-16 13:27:30 +0930
commit00dad9a491b3bb0069b5a1471b8f32052e071965 (patch)
treef88698bd348b89a0c78f3b747362bfff274438a7 /bfd
parent76e7a75123dc36dbc4ddce8a23d2acb171c2bce2 (diff)
downloadgdb-00dad9a491b3bb0069b5a1471b8f32052e071965.zip
gdb-00dad9a491b3bb0069b5a1471b8f32052e071965.tar.gz
gdb-00dad9a491b3bb0069b5a1471b8f32052e071965.tar.bz2
Don't include libbfd.h outside of bfd, part 2
Make bfd_default_set_arch_mach available to a bunch of gas backend files. bfd/ * archures.c (bfd_default_set_arch_mach): Make available in bfd.h. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate. gas/ * config/tc-epiphany.c: Don't include libbfd.h. * config/tc-frv.c: Likewise. * config/tc-ip2k.c: Likewise. * config/tc-iq2000.c: Likewise. * config/tc-m32c.c: Likewise. * config/tc-mep.c: Likewise. * config/tc-mt.c: Likewise. * config/tc-nios2.c: Likewise.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/archures.c2
-rw-r--r--bfd/bfd-in2.h3
-rw-r--r--bfd/libbfd.h3
4 files changed, 10 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2c67bd7..ba678b6 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
2016-07-16 Alan Modra <amodra@gmail.com>
+ * archures.c (bfd_default_set_arch_mach): Make available in bfd.h.
+ * libbfd.h: Regenerate.
+ * bfd-in2.h: Regenerate.
+
+2016-07-16 Alan Modra <amodra@gmail.com>
+
* libbfd-in.h (BFD_ALIGN): Move to..
* bfd-in.h: ..here.
* elf32-ppc.h (struct ppc_elf_params): Add pagesize.
diff --git a/bfd/archures.c b/bfd/archures.c
index 96c9109..af70b18 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -934,7 +934,7 @@ bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg)
}
/*
-INTERNAL_FUNCTION
+FUNCTION
bfd_default_set_arch_mach
SYNOPSIS
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 5fffc46..8b12547 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -2387,6 +2387,9 @@ const bfd_arch_info_type *bfd_arch_get_compatible
void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg);
+bfd_boolean bfd_default_set_arch_mach
+ (bfd *abfd, enum bfd_architecture arch, unsigned long mach);
+
enum bfd_architecture bfd_get_arch (bfd *abfd);
unsigned long bfd_get_mach (bfd *abfd);
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index eb6312b..9d751ee 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -3148,9 +3148,6 @@ bfd_byte *bfd_generic_get_relocated_section_contents
/* Extracted from archures.c. */
extern const bfd_arch_info_type bfd_default_arch_struct;
-bfd_boolean bfd_default_set_arch_mach
- (bfd *abfd, enum bfd_architecture arch, unsigned long mach);
-
const bfd_arch_info_type *bfd_default_compatible
(const bfd_arch_info_type *a, const bfd_arch_info_type *b);