From ad627b386b6942f5ca67d6374afaa9853f74cdbf Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 6 Aug 2009 17:38:04 +0000 Subject: Add support for Xilinx MicroBlaze processor. * bfd/Makefile.am: Add cpu-microblaze.{lo,c}, elf32-microblaze.{lo,c}. * bfd/Makefile.in: Same. * bfd/archures.c: Add bfd_arch_microblaze. * bfd/bfd-in2.h: Regenerate. * bfd/config.bfd: Add microblaze target. * bfd/configure: Add bfd_elf32_microblaze_vec target. * bfd/configure.in: Same. * bfd/cpu-microblaze.c: New. * bfd/elf32-microblaze.c: New. * bfd/libbfd-in.h: Add prototype _bfd_dwarf2_fixup_section_debug_loc(). * bfd/libbfd.h: Regenerate. * bfd/reloc.c: Add MICROBLAZE relocations. * bfd/section.c: Add struct relax_table and relax_count to section. * bfd/targets.c: Add bfd_elf32_microblaze_vec. * binutils/MAINTAINERS: Add self as maintainer. * binutils/readelf.c: Include elf/microblaze.h, add EM_MICROBLAZE & EM_MICROBLAZE_OLD to guess_is_rela(), dump_relocations(), get_machine_name(). * config.sub: Add microblaze target. * configure: Same. * configure.ac: Same. * gas/Makefile.am: add microblaze to CPU_TYPES, config/tc-microblaze.c to TARGET_CPU_CFILES, config/tc-microblaze.h to TARGET_CPU_HFILES, add DEP_microblaze_elf target. * gas/Makefile.in: Same. * gas/config/tc-microblaze.c: Add MicroBlaze assembler. * gas/config/tc-microblaze.h: Add header for tc-microblaze.c. * gas/configure: Add microblaze target. * gas/configure.in: Same. * gas/configure.tgt: Same. * gas/doc/Makefile.am: Add c-microblaze.texi to CPU_DOCS. * gas/doc/Makefile.in: Same. * gas/doc/all.texi: Set MICROBLAZE. * gas/doc/as.texinfo: Add MicroBlaze doc links. * gas/doc/c-microblaze.texi: New MicroBlaze docs. * include/dis-asm.h: Decl print_insn_microblaze(). * include/elf/common.h: Define EM_MICROBLAZE & EM_MICROBLAZE_OLD. * include/elf/microblaze.h: New reloc definitions. * ld/Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to ALL_EMULATIONS, targets. * ld/Makefile.in: Same. * ld/configure.tgt: Add microblaze*-linux*, microblaze* targets. * ld/emulparams/elf32mb_linux.sh: New. * ld/emulparams/elf32microblaze.sh. New. * ld/scripttempl/elfmicroblaze.sc: New. * opcodes/Makefile.am: Add microblaze-opc.h to HFILES, microblaze-dis.c to CFILES, microblaze-dis.lo to ALL_MACHINES, targets. * opcodes/Makefile.in: Same. * opcodes/configure: Add bfd_microblaze_arch target. * opcodes/configure.in: Same. * opcodes/disassemble.c: Define ARCH_microblaze, return print_insn_microblaze(). * opcodes/microblaze-dis.c: New MicroBlaze disassembler. * opcodes/microblaze-opc.h: New MicroBlaze opcode definitions. * opcodes/microblaze-opcm.h: New MicroBlaze opcode types. --- bfd/Makefile.in | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'bfd/Makefile.in') diff --git a/bfd/Makefile.in b/bfd/Makefile.in index 65f94e83d3..0bee7d3423 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -371,6 +371,7 @@ ALL_MACHINES = \ cpu-maxq.lo \ cpu-mcore.lo \ cpu-mep.lo \ + cpu-microblaze.lo \ cpu-mips.lo \ cpu-mmix.lo \ cpu-moxie.lo \ @@ -441,6 +442,7 @@ ALL_MACHINES_CFILES = \ cpu-maxq.c \ cpu-mcore.c \ cpu-mep.c \ + cpu-microblaze.c \ cpu-mips.c \ cpu-mmix.c \ cpu-moxie.c \ @@ -562,6 +564,7 @@ BFD32_BACKENDS = \ elf32-m88k.lo \ elf32-mcore.lo \ elf32-mep.lo \ + elf32-microblaze.lo \ elf32-mips.lo \ elf32-moxie.lo \ elf32-msp430.lo \ @@ -745,6 +748,7 @@ BFD32_BACKENDS_CFILES = \ elf32-m88k.c \ elf32-mcore.c \ elf32-mep.c \ + elf32-microblaze.c \ elf32-mips.c \ elf32-moxie.c \ elf32-msp430.c \ @@ -1988,6 +1992,10 @@ cpu-mep.lo: \ cpu-mep.c \ $(INCDIR)/filenames.h \ $(INCDIR)/hashtab.h +cpu-microblaze.lo: \ + cpu-microblaze.c $\ + $(INCDIR)/filenames.h \ + $(INCDIR)/hashtab.h cpu-mips.lo: \ cpu-mips.c \ $(INCDIR)/filenames.h \ @@ -3445,6 +3453,17 @@ elflink.lo: \ $(INCDIR)/objalloc.h \ $(INCDIR)/safe-ctype.h \ elf-bfd.h +elf32-microblaze.lo: \ + elf32-microblaze.c \ + $(INCDIR)/filenames.h \ + $(INCDIR)/bfdlink.h \ + genlink.h \ + elf-bfd.h \ + $(INCDIR)/elf/common.h \ + $(INCDIR)/elf/internal.h \ + $(INCDIR)/elf/external.h \ + $(INCDIR)/elf/reloc-macros.h \ + elf32-target.h elfxx-mips.lo: \ elfxx-mips.c \ $(INCDIR)/bfdlink.h \ -- cgit v1.2.1