aboutsummaryrefslogtreecommitdiff
path: root/bfd/Makefile.am
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-12-10 21:44:34 +1030
committerAlan Modra <amodra@gmail.com>2014-12-10 23:13:49 +1030
commitf4943d8253e8c9c539fd72d23e94a65f84c92d1a (patch)
treefe266edba1bb0bc50b592209d8630aad00a2fe65 /bfd/Makefile.am
parente00e81980c70659d0efe686b31a55db5faaa91f9 (diff)
downloadgdb-f4943d8253e8c9c539fd72d23e94a65f84c92d1a.zip
gdb-f4943d8253e8c9c539fd72d23e94a65f84c92d1a.tar.gz
gdb-f4943d8253e8c9c539fd72d23e94a65f84c92d1a.tar.bz2
Don't always build coffgen.o
Removes a bunch of unused functions from libbfd when building ELF or AOUT. Split off the bits we need externally when not building a COFF target into coff-bfd.c and coff-bfd.h. bfd/ * Makefile.am (BFD32_LIBS, BFD32_LIBS_CFILES): Remove dwarf2 and coffgen. Add coff-bfd. Sort. (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add coffgen and dwarf2. * bfd-in.h (bfd_coff_get_syment, bfd_coff_get_auxent): Delete. (struct coff_comdat_info, bfd_coff_get_comdat_section): Delete. * coffgen.c (coff_symbol_from): Move to coff-bfd.h as macro, without unused param. Update uses. (bfd_coff_get_comdat_section): Move to coff-bfd.h as macro. (bfd_coff_get_syment, bfd_coff_get_auxent): Move to coff-bfd.c. * libcoff-in.h: #include "coff-bfd.h". (struct coff_section_tdata, coff_section_data): Move to coff-bfd.h. (coff_symbol_from): Delete. * coff-bfd.c: New file. * coff-bfd.h: New file. * coff-i386.c: Update coff_symbol_from occurrences. * coff-i960.c: Likewise. * coff-m68k.c: Likewise. * coff-sh.c: Likewise. * coff-x86_64.c: Likewise. * coffcode.h: Likewise. * pe-mips.c: Likewise. * configure.ac (elf): Add dwarf2.lo. (coffgen, coff, ecoff, xcoff): Define. Use when mapping bfd target vectors to .o files. Add dwarf2 for mach-o targets. Fix the sh target FIXME. * po/SRC-POTFILES.in: Regenerate. * Makefile.in: Regenerate. * configure: Regenerate. * bfd-in2.h: Regenerate. * libcoff.h: Regenerate. binutils/ * objdump.c: #include "coff-bfd.h". ld/ * ldmisc.c: #include "coff-bfd.h"
Diffstat (limited to 'bfd/Makefile.am')
-rw-r--r--bfd/Makefile.am22
1 files changed, 12 insertions, 10 deletions
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index cea3794..8aa8748 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -64,21 +64,19 @@ BFD_H = bfd.h
# debugger).
BFD32_LIBS = \
archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo \
- cache.lo coffgen.lo corefile.lo \
- format.lo init.lo libbfd.lo opncls.lo reloc.lo \
- section.lo syms.lo targets.lo hash.lo linker.lo \
- srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo \
- merge.lo dwarf2.lo simple.lo compress.lo verilog.lo
+ cache.lo coff-bfd.lo compress.lo corefile.lo format.lo hash.lo \
+ init.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo \
+ section.lo simple.lo stab-syms.lo stabs.lo syms.lo targets.lo \
+ binary.lo ihex.lo srec.lo tekhex.lo verilog.lo
BFD64_LIBS = archive64.lo
BFD32_LIBS_CFILES = \
archive.c archures.c bfd.c bfdio.c bfdwin.c \
- cache.c coffgen.c corefile.c \
- format.c init.c libbfd.c opncls.c reloc.c \
- section.c syms.c targets.c hash.c linker.c \
- srec.c binary.c tekhex.c ihex.c stabs.c stab-syms.c \
- merge.c dwarf2.c simple.c compress.c verilog.c
+ cache.c coff-bfd.c compress.c corefile.c format.c hash.c \
+ init.c libbfd.c linker.c merge.c opncls.c reloc.c \
+ section.c simple.c stab-syms.c stabs.c syms.c targets.c \
+ binary.c ihex.c srec.c tekhex.c verilog.c
BFD64_LIBS_CFILES = archive64.c
@@ -295,8 +293,10 @@ BFD32_BACKENDS = \
coff-we32k.lo \
coff-z80.lo \
coff-z8k.lo \
+ coffgen.lo \
cofflink.lo \
dwarf1.lo \
+ dwarf2.lo \
ecoff.lo \
ecofflink.lo \
elf-attrs.lo \
@@ -483,8 +483,10 @@ BFD32_BACKENDS_CFILES = \
coff-we32k.c \
coff-z80.c \
coff-z8k.c \
+ coffgen.c \
cofflink.c \
dwarf1.c \
+ dwarf2.c \
ecoff.c \
ecofflink.c \
elf-attrs.c \