diff -c3pbB --exclude-from=.patch_ignore src/bfd/ChangeLog src-dlx/bfd/ChangeLog *** src/bfd/ChangeLog Thu May 23 21:47:57 2002 --- src-dlx/bfd/ChangeLog Thu May 23 23:08:45 2002 *************** *** 1,3 **** --- 1,12 ---- + 2002-05-22 Kuang Hwa Lin + + * config.bfd, Makefile.in, configure, configure.host, configure.in: Added + DLX (dlx-elf-*) configuraton and make target support. + + * archures.c, bfd-in2.h, targets.c: Modified/Added to support DLX target. + + * elf32-dlx.c, cpu-dlx.c: New files to support DLX target. + 2002-05-24 Alan Modra * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func diff -c3pbB --exclude-from=.patch_ignore src/bfd/Makefile.in src-dlx/bfd/Makefile.in *** src/bfd/Makefile.in Sun May 19 12:44:36 2002 --- src-dlx/bfd/Makefile.in Sun May 19 13:08:27 2002 *************** BFD64_LIBS_CFILES = archive64.c *** 174,179 **** --- 174,180 ---- # This list is alphabetized to make it easier to keep in sync # with the decls and initializer in archures.c. ALL_MACHINES = \ + cpu-dlx.lo \ cpu-a29k.lo \ cpu-alpha.lo \ cpu-arc.lo \ *************** ALL_MACHINES = \ *** 223,228 **** --- 224,230 ---- ALL_MACHINES_CFILES = \ + cpu-dlx.c \ cpu-a29k.c \ cpu-alpha.c \ cpu-arc.c \ *************** BFD32_BACKENDS = \ *** 334,339 **** --- 336,342 ---- elf32-i386.lo \ elf32-i860.lo \ elf32-i960.lo \ + elf32-dlx.lo \ elf32-ia64.lo \ elf32-m32r.lo \ elf32-m68hc11.lo \ *************** BFD32_BACKENDS_CFILES = \ *** 484,489 **** --- 487,493 ---- elf32-i386.c \ elf32-i860.c \ elf32-i960.c \ + elf32-dlx.c \ elf32-m32r.c \ elf32-m68k.c \ elf32-m68hc11.c \ *************** dwarf2.lo: dwarf2.c $(INCDIR)/filenames. *** 1389,1394 **** --- 1393,1399 ---- $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/dwarf2.h archive64.lo: archive64.c $(INCDIR)/filenames.h $(INCDIR)/aout/ar.h cpu-a29k.lo: cpu-a29k.c $(INCDIR)/filenames.h + cpu-dlx.lo: cpu-dlx.c $(INCDIR)/filenames.h cpu-alpha.lo: cpu-alpha.c $(INCDIR)/filenames.h cpu-arc.lo: cpu-arc.c $(INCDIR)/filenames.h cpu-arm.lo: cpu-arm.c $(INCDIR)/filenames.h *************** elf32-i960.lo: elf32-i960.c $(INCDIR)/fi *** 1642,1647 **** --- 1647,1656 ---- $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ $(INCDIR)/bfdlink.h $(INCDIR)/elf/i960.h $(INCDIR)/elf/reloc-macros.h \ elf32-target.h + elf32-dlx.lo: elf32-dlx.c $(INCDIR)/filenames.h elf-bfd.h \ + $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ + $(INCDIR)/bfdlink.h $(INCDIR)/elf/dlx.h $(INCDIR)/elf/reloc-macros.h \ + elf32-target.h elf32-m32r.lo: elf32-m32r.c $(INCDIR)/filenames.h elf-bfd.h \ $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ $(INCDIR)/bfdlink.h $(INCDIR)/elf/m32r.h $(INCDIR)/elf/reloc-macros.h \ diff -c3pbB --exclude-from=.patch_ignore src/bfd/archures.c src-dlx/bfd/archures.c *** src/bfd/archures.c Fri Apr 19 20:25:18 2002 --- src-dlx/bfd/archures.c Thu May 9 15:10:02 2002 *************** DESCRIPTION *** 304,309 **** --- 304,310 ---- . */ + extern const bfd_arch_info_type bfd_dlx_arch; extern const bfd_arch_info_type bfd_a29k_arch; extern const bfd_arch_info_type bfd_alpha_arch; extern const bfd_arch_info_type bfd_arc_arch; diff -c3pbB --exclude-from=.patch_ignore src/bfd/bfd-in2.h src-dlx/bfd/bfd-in2.h *** src/bfd/bfd-in2.h Thu May 23 21:47:58 2002 --- src-dlx/bfd/bfd-in2.h Thu May 23 21:40:31 2002 *************** enum bfd_architecture *** 1484,1490 **** #define bfd_mach_i960_hx 8 bfd_arch_or32, /* OpenRISC 32 */ ! bfd_arch_a29k, /* AMD 29000 */ bfd_arch_sparc, /* SPARC */ #define bfd_mach_sparc 1 --- 1484,1490 ---- #define bfd_mach_i960_hx 8 bfd_arch_or32, /* OpenRISC 32 */ ! bfd_arch_dlx, /* DLX */ bfd_arch_a29k, /* AMD 29000 */ bfd_arch_sparc, /* SPARC */ #define bfd_mach_sparc 1 *************** to compensate for the borrow when the lo *** 2172,2177 **** --- 2172,2182 ---- /* Like BFD_RELOC_LO16, but PC relative. */ BFD_RELOC_PCREL_LO16, + /* Reloc types used for dlx/elf */ + BFD_RELOC_DLX_HI16_S, + BFD_RELOC_DLX_LO16, + BFD_RELOC_DLX_JMP26, + /* Relocation against a MIPS literal section. */ BFD_RELOC_MIPS_LITERAL, diff -c3pbB --exclude-from=.patch_ignore src/bfd/config.bfd src-dlx/bfd/config.bfd *** src/bfd/config.bfd Tue May 21 11:10:50 2002 --- src-dlx/bfd/config.bfd Tue May 21 11:01:14 2002 *************** v850*) targ_archs=bfd_v850_arch *** 57,62 **** --- 57,63 ---- x86_64) targ_archs=bfd_i386_arch ;; xscale*) targ_archs=bfd_arm_arch ;; z8k*) targ_archs=bfd_z8k_arch ;; + dlx*) targ_archs=bfd_dlx_arch ;; sh*) targ_archs=bfd_sh_arch ;; *) targ_archs=bfd_${targ_cpu}_arch ;; esac *************** case "${targ}" in *** 110,115 **** --- 111,125 ---- ;; #endif /* BFD64 */ + dlx-*-elf*) + targ_defvec=bfd_elf32_dlx_big_vec + targ_selvecs="bfd_elf32_dlx_big_vec" + ;; + + dlx-*-aout) + targ_defvec=aout0_big_vec + ;; + arc-*-elf*) targ_defvec=bfd_elf32_littlearc_vec targ_selvecs=bfd_elf32_bigarc_vec diff -c3pbB --exclude-from=.patch_ignore src/bfd/configure src-dlx/bfd/configure *** src/bfd/configure Sun May 19 12:44:36 2002 --- src-dlx/bfd/configure Sun May 19 12:45:34 2002 *************** do *** 6063,6068 **** --- 6063,6069 ---- bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; + bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; diff -c3pbB --exclude-from=.patch_ignore src/bfd/configure.host src-dlx/bfd/configure.host *** src/bfd/configure.host Mon Jan 21 16:47:21 2002 --- src-dlx/bfd/configure.host Thu May 9 15:11:09 2002 *************** i[3456]86-sequent-bsd*) HDEFINES=-Dshare *** 37,42 **** --- 37,44 ---- i[3456]86-sequent-sysv4*) ;; i[3456]86-sequent-sysv*) HDEFINES=-Dshared=genshared ;; + dlx-*-*) ;; + mips*-*-netbsd*) ;; mips*-*-openbsd*) ;; mips*-dec-*) HDEFINES="-G 4" ;; diff -c3pbB --exclude-from=.patch_ignore src/bfd/configure.in src-dlx/bfd/configure.in *** src/bfd/configure.in Sun May 19 12:44:36 2002 --- src-dlx/bfd/configure.in Sun May 19 12:45:34 2002 *************** do *** 637,642 **** --- 637,643 ---- bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; + bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.o elf32.lo $elf" ;; bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; Only in src-dlx/bfd: cpu-dlx.c Common subdirectories: src/bfd/doc and src-dlx/bfd/doc Only in src-dlx/bfd: elf32-dlx.c Common subdirectories: src/bfd/hosts and src-dlx/bfd/hosts diff -c3pbB --exclude-from=.patch_ignore src/bfd/targets.c src-dlx/bfd/targets.c *** src/bfd/targets.c Thu May 16 16:45:14 2002 --- src-dlx/bfd/targets.c Thu May 16 10:45:59 2002 *************** to find an alternative output format tha *** 475,480 **** --- 475,481 ---- Alphabetized for easy reference. They are listed a second time below, since we can't intermix extern's and initializers. */ + extern const bfd_target bfd_elf32_dlx_big_vec; extern const bfd_target a29kcoff_big_vec; extern const bfd_target a_out_adobe_vec; extern const bfd_target aout0_big_vec; *************** static const bfd_target * const _bfd_tar *** 766,771 **** --- 767,773 ---- &bfd_elf32_i860_little_vec, &bfd_elf32_i860_vec, &bfd_elf32_i960_vec, + &bfd_elf32_dlx_big_vec, #if 0 &bfd_elf32_ia64_big_vec, #endif