]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/ChangeLog
Add MMIX support
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
index 01412b689e5a713e4904c68e43d332453b4d1067..3511fd97b91c6c9679360f13369358a34cabf6c2 100644 (file)
@@ -1,3 +1,283 @@
+2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo.
+       (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo.
+       (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c.
+       Regenerate dependencies.
+       * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors.
+       * config.bfd: [BFD64] (mmix-*-*): New case.
+       * cpu-mmix.c, mmo.c, elf64-mmix.c: New files.
+       * archures.c (enum bfd_architecture): Add bfd_arch_mmix.
+       (bfd_mmix_arch): Declare.
+       (bfd_archures_list): Add bfd_mmix_arch.
+       * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour.
+       (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare.
+       (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and
+       bfd_mmo_mmix_vec.
+       * reloc.c: Add MMIX relocations.
+       * bfd.c (struct _bfd, tdata): Add mmo_data.
+       * Makefile.in: Regenerate.
+       * configure: Regenerate.
+       * libbfd.h: Regenerate.
+       * bfd-in2.h: Regenerate.
+       * configure: Rebuild.
+
+2001-10-30  Richard Earnshaw (rearnsha@arm.com)
+
+       * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
+       p_paddr of the segment that contains it.
+       (copy_private_bfd_data): If the LMA for a segment is known, use it
+       for matching sections to segments.
+       (assign_file_positions_for_segments): Use the LMA when adjusting
+       for inter-section alignment padding.
+
+2001-10-29  Kazu Hirata  <kazu@hxi.com>
+
+       * README: Fix a typo.
+
+2001-10-24  Richard Henderson  <rth@redhat.com>
+
+       * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
+       timestamp to time_t for ctime.
+
+2001-10-24  Hans-Peter Nilsson  <hp@axis.com>
+
+       * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
+       unsigned, increasing index.
+
+2001-10-23  H.J. Lu <hjl@gnu.org>
+
+       * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
+       m != NULL before accessing it.
+
+2001-10-23  Alan Modra  <amodra@bigpond.net.au>
+
+       * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
+       bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup
+       doesn't accept BFD_RELOC_* on some targets, eg. hppa.
+
+       * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs.
+       (hppa_link_hash_newfunc): Likewise.
+       (elf32_hppa_finish_dynamic_symbol): Likewise.
+       (allocate_dynrelocs): Always allocate .got relocs if shared.
+       (elf32_hppa_relocate_section): Output them too.  Similarly
+       consolidate .plt reloc code, and no longer initialise .plt
+       when a reloc is output.
+       (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries
+       when no reloc is output.
+
+       From Herbert Xu <herbert@gondor.apana.org.au>
+       * elf32-hppa.c (final_link_relocate): Call bfd_set_error for
+       unreachable branches.
+
+2001-10-22  H.J. Lu <hjl@gnu.org>
+
+       * configure.in (WIN32LIBADD): Use -L../libiberty for
+       mips*-*-linux*.
+       * configure: Rebuild.
+
+2001-10-21  H.J. Lu <hjl@gnu.org>
+
+       * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
+       if shared library is enabled only for Linux hosts.
+       * configure: Rebuild.
+
+2001-10-21  H.J. Lu <hjl@gnu.org>
+
+       * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
+       ../libiberty/Makefile instead of $enable_shared.
+       * configure: Rebuild.
+
+2001-10-21  H.J. Lu <hjl@gnu.org>
+
+       * elf32-cris.c (cris_reloc_type_lookup): Use int for index.  Cover
+       index 0.
+
+2001-10-20  H.J. Lu <hjl@gnu.org>
+
+       * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
+       if shared library is enabled.
+       * configure: Rebuild.
+
+2001-10-20  H.J. Lu <hjl@gnu.org>
+
+       * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
+
+2001-10-19  H.J. Lu <hjl@gnu.org>
+
+       * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
+       size is empty.
+
+2001-10-18  H.J. Lu <hjl@gnu.org>
+
+       * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
+       * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
+
+2001-10-18  Jakub Jelinek  <jakub@redhat.com>
+
+       * section.c (_bfd_strip_section_from_output): Don't count
+       SEC_EXCLUDE sections as references.  Set SEC_EXCLUDE.
+
+2001-10-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
+       Elf_Internal_Shdr.contents now that it's no longer a PTR.
+       * elf-m10300.c (mn10300_elf_relax_section): Likewise.
+       * elf32-h8300.c (elf32_h8_relax_section): Likewise.
+       * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
+       * elf32-sh.c (sh_elf_relax_section): Likewise.
+       * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
+       * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
+       * elf.c (setup_group): Warning fixes.
+       * elflink.h (elf_link_sort_relocs): Likewise.
+       * pdp11.c (slurp_reloc_table): Likewise.
+
+2001-10-16  Jeff Holcomb  <jeffh@redhat.com>
+
+       * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
+       casts.
+
+2001-10-15  H.J. Lu <hjl@gnu.org>
+
+       * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
+       for relocations against discarded link-once section.
+
+2001-10-15  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-i386.c (elf_i386_relocate_section): Report some detail on
+       bfd_reloc_outofrange and similar errors.
+
+       * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
+       rather than ind->weakdef.
+       * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
+       * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
+       * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
+       * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
+       * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
+
+2001-10-15  Alan Modra  <amodra@bigpond.net.au>
+           H.J. Lu  <hjl@gnu.org>
+
+       * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
+       counts for aliases instead of aborting.
+       * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
+       * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
+
+       * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
+       to -1 for non-function symbols.
+       * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
+       * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
+       * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
+       * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
+       * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
+       * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
+       plt.offset instead of plt.refcount when setting to -1.
+
+2001-10-12  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
+       like R_ARM_PC24.  Include reloc number in error message about
+       unresolvable relocs.
+
+2001-10-10  Jakub Jelinek  <jakub@redhat.com>
+
+       * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
+       relocations against the same symbol in .rel{,a}.dyn section.
+
+2001-10-10  Kazu Hirata  <kazu@hxi.com>
+
+       * aout-encap.c: Fix comment typos.
+       * aoutx.h: Likewise.
+       * archive.c: Likewise.
+       * bout.c: Likewise.
+       * coff64-rs6000.c: Likewise.
+       * coffcode.h: Likewise.
+       * coffgen.c: Likewise.
+       * cofflink.c: Likewise.
+       * coff-mips.c: Likewise.
+       * ecoff.c: Likewise.
+       * elf32-m32r.c: Likewise.
+       * libcoff-in.h: Likewise.
+       * libecoff.h: Likewise.
+       * libxcoff.h: Likewise.
+       * nlm32-i386.c: Likewise.
+       * pdp11.c: Likewise.
+       * section.c: Likewise.
+       * som.c: Likewise.
+       * som.h: Likewise.
+       * bfd-in2.h: Regenerate.
+       * libcoff.h: Likewise.
+
+2001-10-10  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (elf_map_symbols): Don't create new section symbols; Use
+       existing section syms.  Update comments.
+       (copy_private_bfd_data): Formatting fixes.
+       (elfcore_grok_win32pstatus): Likewise.
+       (swap_out_syms): Likewise.  Remove unnecessary level of braces.
+
+2001-10-09  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
+       "group_name".
+       (elf_group_name): Define.
+       (elf_next_in_group): Define.
+       * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
+       (setup_group): Don't use sec->lineno for SHT_GROUP section to store
+       first member section; Instead use elf_next_in_group.
+       (bfd_section_from_shdr): Likewise.
+       (set_group_contents): Likewise.  Use elf_section_syms, not sec->symbol.
+
+2001-10-09  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
+       "next_in_group".  Fix gp and gp_size comments.
+       * elf.c (union elf_internal_group): New.
+       (setup_group): New function.
+       (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
+       Call setup_group for SHF_GROUP sections.
+       (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
+       (elf_fake_sections): Set header type for SEC_GROUP, and header
+       flags for sections in a group.
+       (set_group_contents): New function.
+       (_bfd_elf_compute_section_file_positions): Call it.
+       (assign_section_numbers): Set sh_link for SHT_GROUP.
+
+       * elflink.h (gc_mark_hook): Handle section groups.
+       * elfxx-target.h: Add SEC_GROUP to applicable_flags.
+       * section.c (SEC_GROUP): Define.
+       (struct sec): Comment fixes.
+       * bfd-in2.h: Regenerate.
+
+       * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
+       out of function args.
+       (_bfd_elf_canonicalize_reloc): Similarly.
+       (_bfd_elf_get_symtab): Here too.
+       (_bfd_elf_canonicalize_dynamic_symtab): And here.
+       * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
+       bfd_bread, and remove unnecessary cast.
+
+2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
+
+       * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
+
+2001-10-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
+
+       * dwarf2.c (comp_unit_find_nearest_line): Check for end of
+       compilation unit.
+
+2001-10-06  Alan Modra  <amodra@bigpond.net.au>
+
+       * bfd.c (bfd_assert): Report bfd version.
+       (_bfd_abort): Likewise.
+
+       * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
+       section sym values.  Instead replace any relocs against them with
+       relocs against STN_UNDEF, which has a zero value.
+
+       * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
+       relocs.
+
 2001-10-05  Jeff Law <law@redhat.com>
 
        * som.h (som_exec_data): New field "version_id".
        * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
        packing.
 
-       * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset 
+       * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
        to 1 rather than 0 to avoid confusing copy_indirect_symbol.
        (mips_elf_sort_hash_table_f): Compare got.offset against 1.
 
        * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
        (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
        than bfd_link_hash_lookup.
-       * elf32-i386 (elf_i386_adjust_dynamic_symbol): Don't do copy
+       * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
        reloc processing for weakdefs.
        * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
        * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
        * libcoff.h: Likewise.
 
 2001-09-30  kaz Kojima  <kkojima@rr.iij4u.or.jp>
-            Hans-Peter Nilsson  <hp@bitrange.com>
+           Hans-Peter Nilsson  <hp@bitrange.com>
 
        * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
        partial_inplace, matching assembler output.  Set src_mask to