diff options
author | Alan Modra <amodra@gmail.com> | 2016-07-16 13:25:11 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-07-16 13:25:11 +0930 |
commit | 76e7a75123dc36dbc4ddce8a23d2acb171c2bce2 (patch) | |
tree | 4db37956bee46faf43010262730aa55fded02d33 /gas | |
parent | 235fa74903061daff9980668423860ecc760665a (diff) | |
download | gdb-76e7a75123dc36dbc4ddce8a23d2acb171c2bce2.zip gdb-76e7a75123dc36dbc4ddce8a23d2acb171c2bce2.tar.gz gdb-76e7a75123dc36dbc4ddce8a23d2acb171c2bce2.tar.bz2 |
Don't include libbfd.h outside of bfd, part 1
Make BFD_ALIGN available to objcopy. Fix assertions. Don't use
bfd_log2 in ppc32elf.em or bfd_malloc in xtensaelf.em and bucomm.c.
bfd/
* libbfd-in.h (BFD_ALIGN): Move to..
* bfd-in.h: ..here.
* elf32-ppc.h (struct ppc_elf_params): Add pagesize.
* elf32-ppc.c (default_params): Adjust init.
(ppc_elf_link_params): Set pagesize_p2.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
binutils/
* ar.c: Don't include libbfd.h.
* objcopy.c: Likewise.
* bucomm.c (bfd_get_archive_filename): Use xmalloc rather than
bfd_malloc.
gas/
* config/bfin-parse.y: Don't include libbfd.h.
* config/tc-bfin.c: Likewise.
* config/tc-rl78.c: Likewise.
* config/tc-rx.c: Likewise.
* config/tc-metag.c: Likewise.
(create_dspreg_htabs, create_scond_htab): Use gas_assert not BFD_ASSERT.
* Makefile.am: Update dependencies.
* Makefile.in: Regenerate.
ld/
* ldlang.c: Don't include libbfd.h.
* emultempl/nds32elf.em: Likewise.
* emultempl/ppc64elf.em: Likewise.
* emultempl/ppc32elf.em: Likewise.
(pagesize): Delete.
(params): Update init.
(ppc_after_open_output): Use params.pagesize. Don't call bfd_log2.
(PARSE_AND_LIST_ARGS_CASES): Use params.pagesize.
* emultempl/sh64elf.em: Don't include libbfd.h.
(after_allocation): Use ASSERT, not BFD_ASSERT.
* emultempl/xtensaelf.em: Don't include libbfd.h.
(replace_insn_sec_with_prop_sec): Use xmalloc, not bfd_malloc.
* Makefile.am: Update dependencies.
* Makefile.in: Regenerate.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 11 | ||||
-rw-r--r-- | gas/Makefile.am | 6 | ||||
-rw-r--r-- | gas/Makefile.in | 6 | ||||
-rw-r--r-- | gas/config/bfin-parse.y | 1 | ||||
-rw-r--r-- | gas/config/tc-bfin.c | 1 | ||||
-rw-r--r-- | gas/config/tc-metag.c | 7 | ||||
-rw-r--r-- | gas/config/tc-rl78.c | 1 | ||||
-rw-r--r-- | gas/config/tc-rx.c | 1 |
8 files changed, 20 insertions, 14 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 50f7cd9..582655e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,14 @@ +2016-07-16 Alan Modra <amodra@gmail.com> + + * config/bfin-parse.y: Don't include libbfd.h. + * config/tc-bfin.c: Likewise. + * config/tc-rl78.c: Likewise. + * config/tc-rx.c: Likewise. + * config/tc-metag.c: Likewise. + (create_dspreg_htabs, create_scond_htab): Use gas_assert not BFD_ASSERT. + * Makefile.am: Update dependencies. + * Makefile.in: Regenerate. + 2016-07-14 Maciej W. Rozycki <macro@imgtec.com> * config/tc-mips.h (TC_FORCE_RELOCATION_ABS): New macro. diff --git a/gas/Makefile.am b/gas/Makefile.am index 596e469..7e302fb 100644 --- a/gas/Makefile.am +++ b/gas/Makefile.am @@ -484,7 +484,7 @@ bfin-parse.c: $(srcdir)/config/bfin-parse.y bfin-parse.h: bfin-parse.c bfin-parse.@OBJEXT@: bfin-parse.c \ $(srcdir)/config/bfin-aux.h $(srcdir)/config/bfin-defs.h \ - $(INCDIR)/elf/common.h $(INCDIR)/elf/bfin.h $(BFDDIR)/libbfd.h + $(INCDIR)/elf/common.h $(INCDIR)/elf/bfin.h bfin-parse.h: ; @true $(srcdir)/config/bfin-parse.h: ; @true @@ -507,7 +507,7 @@ rl78-parse.c: $(srcdir)/config/rl78-parse.y $(SHELL) $(YLWRAP) $(srcdir)/config/rl78-parse.y y.tab.c rl78-parse.c y.tab.h rl78-parse.h -- $(YACCCOMPILE) -d ; rl78-parse.h: rl78-parse.c rl78-parse.@OBJEXT@: rl78-parse.c rl78-parse.h $(srcdir)/config/rl78-defs.h \ - $(INCDIR)/elf/common.h $(INCDIR)/elf/rl78.h $(BFDDIR)/libbfd.h + $(INCDIR)/elf/common.h $(INCDIR)/elf/rl78.h rl78-defs.h: ; @true @@ -515,7 +515,7 @@ rx-parse.c: $(srcdir)/config/rx-parse.y $(SHELL) $(YLWRAP) $(srcdir)/config/rx-parse.y y.tab.c rx-parse.c y.tab.h rx-parse.h -- $(YACCCOMPILE) -d ; rx-parse.h: rx-parse.c rx-parse.@OBJEXT@: rx-parse.c rx-parse.h $(srcdir)/config/rx-defs.h \ - $(INCDIR)/elf/common.h $(INCDIR)/elf/rx.h $(BFDDIR)/libbfd.h + $(INCDIR)/elf/common.h $(INCDIR)/elf/rx.h rx-defs.h: ; @true $(srcdir)/config/rx-defs.h: ; @true diff --git a/gas/Makefile.in b/gas/Makefile.in index 59746f3..19b63f3 100644 --- a/gas/Makefile.in +++ b/gas/Makefile.in @@ -2590,7 +2590,7 @@ bfin-parse.c: $(srcdir)/config/bfin-parse.y bfin-parse.h: bfin-parse.c bfin-parse.@OBJEXT@: bfin-parse.c \ $(srcdir)/config/bfin-aux.h $(srcdir)/config/bfin-defs.h \ - $(INCDIR)/elf/common.h $(INCDIR)/elf/bfin.h $(BFDDIR)/libbfd.h + $(INCDIR)/elf/common.h $(INCDIR)/elf/bfin.h bfin-parse.h: ; @true $(srcdir)/config/bfin-parse.h: ; @true @@ -2608,7 +2608,7 @@ rl78-parse.c: $(srcdir)/config/rl78-parse.y $(SHELL) $(YLWRAP) $(srcdir)/config/rl78-parse.y y.tab.c rl78-parse.c y.tab.h rl78-parse.h -- $(YACCCOMPILE) -d ; rl78-parse.h: rl78-parse.c rl78-parse.@OBJEXT@: rl78-parse.c rl78-parse.h $(srcdir)/config/rl78-defs.h \ - $(INCDIR)/elf/common.h $(INCDIR)/elf/rl78.h $(BFDDIR)/libbfd.h + $(INCDIR)/elf/common.h $(INCDIR)/elf/rl78.h rl78-defs.h: ; @true @@ -2616,7 +2616,7 @@ rx-parse.c: $(srcdir)/config/rx-parse.y $(SHELL) $(YLWRAP) $(srcdir)/config/rx-parse.y y.tab.c rx-parse.c y.tab.h rx-parse.h -- $(YACCCOMPILE) -d ; rx-parse.h: rx-parse.c rx-parse.@OBJEXT@: rx-parse.c rx-parse.h $(srcdir)/config/rx-defs.h \ - $(INCDIR)/elf/common.h $(INCDIR)/elf/rx.h $(BFDDIR)/libbfd.h + $(INCDIR)/elf/common.h $(INCDIR)/elf/rx.h rx-defs.h: ; @true $(srcdir)/config/rx-defs.h: ; @true diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y index a2eaa4c..87abd21 100644 --- a/gas/config/bfin-parse.y +++ b/gas/config/bfin-parse.y @@ -22,7 +22,6 @@ #include "as.h" #include "bfin-aux.h" /* Opcode generating auxiliaries. */ -#include "libbfd.h" #include "elf/common.h" #include "elf/bfin.h" diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c index 334dce4..1dc88fc 100644 --- a/gas/config/tc-bfin.c +++ b/gas/config/tc-bfin.c @@ -26,7 +26,6 @@ #ifdef OBJ_ELF #include "dwarf2dbg.h" #endif -#include "libbfd.h" #include "elf/common.h" #include "elf/bfin.h" diff --git a/gas/config/tc-metag.c b/gas/config/tc-metag.c index a6c7152..bbc34f7 100644 --- a/gas/config/tc-metag.c +++ b/gas/config/tc-metag.c @@ -24,7 +24,6 @@ #include "symcat.h" #include "safe-ctype.h" #include "hashtab.h" -#include "libbfd.h" #include <stdio.h> @@ -6416,7 +6415,7 @@ create_dspreg_htabs (void) /* Make sure there are no hash table collisions, which would require chaining entries. */ - BFD_ASSERT (*slot == NULL); + gas_assert (*slot == NULL); *slot = reg; } @@ -6439,7 +6438,7 @@ create_dspreg_htabs (void) /* Make sure there are no hash table collisions, which would require chaining entries. */ - BFD_ASSERT (*slot == NULL); + gas_assert (*slot == NULL); *slot = reg; } } @@ -6486,7 +6485,7 @@ create_scond_htab (void) scond, INSERT); /* Make sure there are no hash table collisions, which would require chaining entries. */ - BFD_ASSERT (*slot == NULL); + gas_assert (*slot == NULL); *slot = scond; } } diff --git a/gas/config/tc-rl78.c b/gas/config/tc-rl78.c index 8ab35ec..815a10c 100644 --- a/gas/config/tc-rl78.c +++ b/gas/config/tc-rl78.c @@ -22,7 +22,6 @@ #include "struc-symbol.h" #include "safe-ctype.h" #include "dwarf2dbg.h" -#include "libbfd.h" #include "elf/common.h" #include "elf/rl78.h" #include "rl78-defs.h" diff --git a/gas/config/tc-rx.c b/gas/config/tc-rx.c index a9beec7..bb0f689 100644 --- a/gas/config/tc-rx.c +++ b/gas/config/tc-rx.c @@ -22,7 +22,6 @@ #include "struc-symbol.h" #include "safe-ctype.h" #include "dwarf2dbg.h" -#include "libbfd.h" #include "elf/common.h" #include "elf/rx.h" #include "rx-defs.h" |