This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
These are the bfd changes for a new port to the Vitesse IQ2000. * Makefile.am (ALL_MACHINES): Add cpu-iq2000.lo. (ALL_MACHINES_CFILES): Add cpu-iq2000.c. (BFD32_BACKENDS): Add elf32-iq2000.lo. (BFD32_BACKENDS_CFILES): Add elf32-iq2000.c. (cpu-iq2000.lo): New target. * Makefile.in: Regenerate. * config.bfd: Handle iq2000-*-elf. * archures.c (bfd_architecture): Add bfd_{arch,mach}_iq2000. (bfd_archures_list): Add bfd_iq2000_arch. * configure.in: Handle bfd_elf32_iq2000_vec. * configure: Regenerate. * reloc.c: Add BFD_RELOC_IQ2000_OFFSET_16, BFD_RELOC_IQ2000_OFFSET_21, and BFD_RELOC_IQ2000_UHI16. * targets.c (bfd_elf32_iq2000_vec): Declare. (bfd_target_vector): Add bfd_elf32_iq2000_vec. * elf.c (prep_headers): Set e_machine to EM_IQ2000. * cpu-iq2000.c: New file. * elf32-iq2000.c: Likewise. * libbfd.h: Regenerate. * bfd-in2.h: Likewise. Index: bfd/Makefile.am =================================================================== RCS file: /cvs/uberbaum/./bfd/Makefile.am,v retrieving revision 1.101 diff -u -2 -p -r1.101 Makefile.am --- bfd/Makefile.am 17 Sep 2002 02:24:33 -0000 1.101 +++ bfd/Makefile.am 26 Nov 2002 03:53:39 -0000 @@ -69,4 +69,5 @@ ALL_MACHINES = \ cpu-i960.lo \ cpu-ip2k.lo \ + cpu-iq2000.lo \ cpu-m32r.lo \ cpu-m68hc11.lo \ @@ -121,4 +122,5 @@ ALL_MACHINES_CFILES = \ cpu-i960.c \ cpu-ip2k.c \ + cpu-iq2000.c \ cpu-m32r.c \ cpu-m68hc11.c \ @@ -223,4 +225,5 @@ BFD32_BACKENDS = \ elf32-ia64.lo \ elf32-ip2k.lo \ + elf32-iq2000.lo \ elf32-m32r.lo \ elf32-m68hc11.lo \ @@ -385,4 +388,5 @@ BFD32_BACKENDS_CFILES = \ elf32-i960.c \ elf32-ip2k.c \ + elf32-iq2000.c \ elf32-m32r.c \ elf32-m68k.c \ @@ -923,4 +927,5 @@ cpu-i860.lo: cpu-i860.c $(INCDIR)/filena cpu-i960.lo: cpu-i960.c $(INCDIR)/filenames.h cpu-ip2k.lo: cpu-ip2k.c $(INCDIR)/filenames.h +cpu-iq2000.lo: cpu-iq2000.c $(INCDIR)/filenames.h cpu-m32r.lo: cpu-m32r.c $(INCDIR)/filenames.h cpu-m68hc11.lo: cpu-m68hc11.c $(INCDIR)/filenames.h @@ -1188,4 +1193,8 @@ elf32-ip2k.lo: elf32-ip2k.c $(INCDIR)/fi $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ $(INCDIR)/bfdlink.h $(INCDIR)/elf/ip2k.h $(INCDIR)/elf/reloc-macros.h \ + elf32-target.h +elf32-iq2000.lo: elf32-iq2000.c $(INCDIR)/filenames.h elf-bfd.h \ + $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ + $(INCDIR)/bfdlink.h $(INCDIR)/elf/iq2000.h $(INCDIR)/elf/reloc-macros.h \ elf32-target.h elf32-m32r.lo: elf32-m32r.c $(INCDIR)/filenames.h elf-bfd.h \ Index: bfd/Makefile.in =================================================================== RCS file: /cvs/uberbaum/./bfd/Makefile.in,v retrieving revision 1.110 diff -u -2 -p -r1.110 Makefile.in --- bfd/Makefile.in 30 Aug 2002 08:11:44 -0000 1.110 +++ bfd/Makefile.in 26 Nov 2002 03:53:40 -0000 @@ -195,4 +195,5 @@ ALL_MACHINES = \ cpu-i960.lo \ cpu-ip2k.lo \ + cpu-iq2000.lo \ cpu-m32r.lo \ cpu-m68hc11.lo \ @@ -248,4 +249,5 @@ ALL_MACHINES_CFILES = \ cpu-i960.c \ cpu-ip2k.c \ + cpu-iq2000.c \ cpu-m32r.c \ cpu-m68hc11.c \ @@ -350,4 +352,5 @@ BFD32_BACKENDS = \ elf32-ia64.lo \ elf32-ip2k.lo \ + elf32-iq2000.lo \ elf32-m32r.lo \ elf32-m68hc11.lo \ @@ -512,4 +515,5 @@ BFD32_BACKENDS_CFILES = \ elf32-i960.c \ elf32-ip2k.c \ + elf32-iq2000.c \ elf32-m32r.c \ elf32-m68k.c \ @@ -1449,4 +1453,5 @@ cpu-i860.lo: cpu-i860.c $(INCDIR)/filena cpu-i960.lo: cpu-i960.c $(INCDIR)/filenames.h cpu-ip2k.lo: cpu-ip2k.c $(INCDIR)/filenames.h +cpu-iq2000.lo: cpu-iq2000.c $(INCDIR)/filenames.h cpu-m32r.lo: cpu-m32r.c $(INCDIR)/filenames.h cpu-m68hc11.lo: cpu-m68hc11.c $(INCDIR)/filenames.h @@ -1710,4 +1715,8 @@ elf32-ip2k.lo: elf32-ip2k.c $(INCDIR)/fi $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ $(INCDIR)/bfdlink.h $(INCDIR)/elf/ip2k.h $(INCDIR)/elf/reloc-macros.h \ + elf32-target.h +elf32-iq2000.lo: elf32-iq2000.c $(INCDIR)/filenames.h elf-bfd.h \ + $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ + $(INCDIR)/bfdlink.h $(INCDIR)/elf/iq2000.h $(INCDIR)/elf/reloc-macros.h \ elf32-target.h elf32-m32r.lo: elf32-m32r.c $(INCDIR)/filenames.h elf-bfd.h \ Index: bfd/archures.c =================================================================== RCS file: /cvs/uberbaum/./bfd/archures.c,v retrieving revision 1.55 diff -u -2 -p -r1.55 archures.c --- bfd/archures.c 29 Aug 2002 06:49:33 -0000 1.55 +++ bfd/archures.c 26 Nov 2002 03:53:40 -0000 @@ -265,4 +265,7 @@ DESCRIPTION .#define bfd_mach_ip2022 0 .#define bfd_mach_ip2022ext 1 +. bfd_arch_iq2000, {* Vitesse IQ2000. *} +.#define bfd_mach_iq2000 0 +.#define bfd_mach_iq10 1 . bfd_arch_pj, . bfd_arch_avr, {* Atmel AVR microcontrollers. *} @@ -339,4 +342,5 @@ extern const bfd_arch_info_type bfd_i960 extern const bfd_arch_info_type bfd_ia64_arch; extern const bfd_arch_info_type bfd_ip2k_arch; +extern const bfd_arch_info_type bfd_iq2000_arch; extern const bfd_arch_info_type bfd_m32r_arch; extern const bfd_arch_info_type bfd_m68hc11_arch; @@ -396,4 +400,5 @@ static const bfd_arch_info_type * const &bfd_ia64_arch, &bfd_ip2k_arch, + &bfd_iq2000_arch, &bfd_m32r_arch, &bfd_m68hc11_arch, Index: bfd/bfd-in2.h =================================================================== RCS file: /cvs/uberbaum/./bfd/bfd-in2.h,v retrieving revision 1.170 diff -u -2 -p -r1.170 bfd-in2.h --- bfd/bfd-in2.h 18 Sep 2002 02:39:42 -0000 1.170 +++ bfd/bfd-in2.h 26 Nov 2002 03:53:42 -0000 @@ -1660,4 +1660,7 @@ enum bfd_architecture #define bfd_mach_ip2022 0 #define bfd_mach_ip2022ext 1 + bfd_arch_iq2000, /* Vitesse IQ2000. */ +#define bfd_mach_iq2000 0 +#define bfd_mach_iq10 1 bfd_arch_pj, bfd_arch_avr, /* Atmel AVR microcontrollers. */ @@ -3188,4 +3191,9 @@ to follow the 16K memory bank of 68HC12 BFD_RELOC_VAX_JMP_SLOT, BFD_RELOC_VAX_RELATIVE, + +/* IQ2000 Relocations. */ + BFD_RELOC_IQ2000_OFFSET_16, + BFD_RELOC_IQ2000_OFFSET_21, + BFD_RELOC_IQ2000_UHI16, BFD_RELOC_UNUSED }; typedef enum bfd_reloc_code_real bfd_reloc_code_real_type; Index: bfd/config.bfd =================================================================== RCS file: /cvs/uberbaum/./bfd/config.bfd,v retrieving revision 1.118 diff -u -2 -p -r1.118 config.bfd --- bfd/config.bfd 17 Sep 2002 02:24:34 -0000 1.118 +++ bfd/config.bfd 26 Nov 2002 03:53:42 -0000 @@ -549,4 +549,8 @@ case "${targ}" in ;; + iq2000-*-elf) + targ_defvec=bfd_elf32_iq2000_vec + ;; + m32r-*-*) targ_defvec=bfd_elf32_m32r_vec Index: bfd/configure =================================================================== RCS file: /cvs/uberbaum/./bfd/configure,v retrieving revision 1.133 diff -u -2 -p -r1.133 configure --- bfd/configure 11 Sep 2002 13:52:11 -0000 1.133 +++ bfd/configure 26 Nov 2002 03:53:43 -0000 @@ -6084,4 +6084,5 @@ do bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; + bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; Index: bfd/configure.in =================================================================== RCS file: /cvs/uberbaum/./bfd/configure.in,v retrieving revision 1.114 diff -u -2 -p -r1.114 configure.in --- bfd/configure.in 17 Sep 2002 02:24:34 -0000 1.114 +++ bfd/configure.in 26 Nov 2002 03:53:44 -0000 @@ -586,4 +586,5 @@ do bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; + bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; Index: bfd/libbfd.h =================================================================== RCS file: /cvs/uberbaum/./bfd/libbfd.h,v retrieving revision 1.71 diff -u -2 -p -r1.71 libbfd.h --- bfd/libbfd.h 29 Aug 2002 06:49:33 -0000 1.71 +++ bfd/libbfd.h 26 Nov 2002 03:53:46 -0000 @@ -1287,4 +1287,7 @@ static const char *const bfd_reloc_code_ "BFD_RELOC_VAX_JMP_SLOT", "BFD_RELOC_VAX_RELATIVE", + "BFD_RELOC_IQ2000_OFFSET_16", + "BFD_RELOC_IQ2000_OFFSET_21", + "BFD_RELOC_IQ2000_UHI16", "@@overflow: BFD_RELOC_UNUSED@@", }; Index: bfd/reloc.c =================================================================== RCS file: /cvs/uberbaum/./bfd/reloc.c,v retrieving revision 1.65 diff -u -2 -p -r1.65 reloc.c --- bfd/reloc.c 29 Aug 2002 06:49:33 -0000 1.65 +++ bfd/reloc.c 26 Nov 2002 03:53:46 -0000 @@ -3575,4 +3575,13 @@ ENUMDOC Relocations used by VAX ELF. +ENUM + BFD_RELOC_IQ2000_OFFSET_16 +ENUMX + BFD_RELOC_IQ2000_OFFSET_21 +ENUMX + BFD_RELOC_IQ2000_UHI16 +ENUMDOC + IQ2000 Relocations. + ENDSENUM BFD_RELOC_UNUSED Index: bfd/targets.c =================================================================== RCS file: /cvs/uberbaum/./bfd/targets.c,v retrieving revision 1.77 diff -u -2 -p -r1.77 targets.c --- bfd/targets.c 17 Sep 2002 02:24:35 -0000 1.77 +++ bfd/targets.c 26 Nov 2002 03:53:47 -0000 @@ -530,4 +530,5 @@ extern const bfd_target bfd_elf32_ia64_b extern const bfd_target bfd_elf32_ia64_hpux_big_vec; extern const bfd_target bfd_elf32_ip2k_vec; +extern const bfd_target bfd_elf32_iq2000_vec; extern const bfd_target bfd_elf32_little_generic_vec; extern const bfd_target bfd_elf32_littlearc_vec; @@ -812,4 +813,5 @@ static const bfd_target * const _bfd_tar &bfd_elf32_ia64_hpux_big_vec, &bfd_elf32_ip2k_vec, + &bfd_elf32_iq2000_vec, &bfd_elf32_little_generic_vec, &bfd_elf32_littlearc_vec, New files:
Attachment:
bfd.iq2k.patch.gz
Description: GNU Zip compressed data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |