Check the correct arch_info object's mach field: all PowerPC machines are
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index cd75ac47df71475e37356343710e2ddeb1018f13..4728081613e403d48b0852ef1cddf5945f77c7b2 100644 (file)
@@ -1,4 +1,368 @@
-2003-10-11  Alan Modra  <alan@modra.org>
+2003-10-30  Jim Blandy  <jimb@redhat.com>
+
+       * cpu-rs6000.c (rs6000_compatible): Check the correct arch_info
+       object's mach field: all PowerPC machines are supersets of the
+       original rs6000, but not later rs6000 machines.
+
+2003-10-30  Alan Modra  <amodra@bigpond.net.au>
+
+       * dwarf2.c (struct attribute): Delete "unsnd", "snd" and "addr".
+       Add "val" and "sval" fields.
+       (DW_STRING, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR): Delete.
+       (read_attribute_value): Expand and adjust DW_* occurrences.
+       (scan_unit_for_functions, parse_comp_unit): Likewise.
+
+2003-10-30  Phil Edwards  <phil@codesourcery.com>
+
+       * config.bfd (arm-*-vxworks):  Remove separate stanza; merge with
+       other common ELF triples.
+       (i[3-7]86-*-vxworks):  Change to ELF format.
+       (mips*-*-windiss):  New triple, add to common MIPS/ELF stanza.
+       (sh-*-vxworks):  New stanza.
+
+2003-10-30  Lars Knoll  <lars@trolltech.com>
+           Michael Matz  <matz@suse.de>
+           Jakub Jelinek  <jakub@redhat.com>
+           Alan Modra  <amodra@bigpond.net.au>
+
+       * merge.c (struct sec_merge_sec_info): Update comment.
+       (struct sec_merge_hash_entry): Remove entsize.
+       (sec_merge_hash_lookup): Only adjust alignment when creating.
+       (sec_merge_emit): Remove register keyword.
+       (cmplengthentry, last4_eq, last_eq): Delete.
+       (strrevcmp, strrevcmp_align, is_suffix): New.
+       (merge_strings): Use them to implement fast suffix merging.
+       * elf-strtab.c (struct elf_strtab_hash_entry): Update comments.
+       Make "len" signed.
+       (_bfd_elf_strtab_add): Lose on >2G strings.
+       (_bfd_elf_strtab_emit): Don't emit strings with len < 0.
+       (cmplengthentry, last4_eq): Delete.
+       (strrevcmp, is_suffix): New.
+       (_bfd_elf_strtab_finalize): Rework to implement fast suffix merging.
+
+2003-10-29  Daniel Jacobowitz  <drow@mvista.com>
+
+        * elf32-arm.h (elf32_arm_final_link_relocate): Move check for
+        SEC_ALLOC.
+
+2003-10-29  Philip Blundell  <philb@gnu.org>
+
+       * elf32-arm.h (elf32_arm_plt0_entry, elf32_arm_plt_entry): New
+       code sequence.
+       (PLT_HEADER_SIZE): New.
+       (struct elf32_arm_pcrel_relocs_copied): Rename to ...
+       (struct elf32_arm_relocs_copied): ... this.  Count both
+       pcrel and non-pcrel relocs.  All uses updated.
+       (struct elf32_arm_link_hash_table): Add pointers to dynamic linker
+       sections and symbol/section mapping cache.
+       (create_got_section): New.
+       (elf32_arm_create_dynamic_sections): New.
+       (elf_backend_create_dynamic_sections): Use it.
+       (elf32_arm_final_link_relocate): Support garbage collection of relocs.
+       (elf32_arm_check_relocs): Likewise.
+       (elf32_arm_adjust_dynamic_symbol): Likewise.
+       (elf32_arm_copy_indirect_symbol): New.
+       (elf32_arm_link_hash_table_create): Initialise new fields. 
+       (elf32_arm_gc_sweep_hook): Implement.
+       (elf32_arm_discard_copies): Delete.
+       (elf32_arm_finish_dynamic_symbol): Use new PLT code.
+       (elf32_arm_finish_dynamic_sections): Likewise.
+       (elf_backend_can_refcount): Define.
+       (elf_backend_copy_indirect_symbol): Likewise.
+       (elf_backend_plt_header_size): Set to PLT_HEADER_SIZE.
+
+2003-10-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (elf_backend_grok_prstatus): Define.
+       (elf_backend_grok_psinfo): Define.
+       (ppc64_elf_grok_prstatus, ppc64_elf_grok_psinfo): New functions.
+
+       * elf.c (_bfd_elfcore_make_pseudosection): Allow multiple
+       sections with the same name.
+       (elfcore_grok_lwpstatus): Likewise.
+       (elfcore_grok_win32pstatus): Likewise.
+       (elfcore_grok_note): Likewise.
+       (elfcore_grok_nto_status): Likewise.
+       (elfcore_grok_nto_gregs): Likewise.
+
+2003-10-27  Daniel Jacobowitz  <drow@mvista.com>
+
+       * elf32-arm.h (elf32_arm_merge_private_bfd_data): Never skip dynamic
+       objects.
+
+2003-10-14  Richard Sandiford  <rsandifo@redhat.com>
+
+       * elfxx-mips.c (mips_elf_create_got_section): Initialize global_gotno.
+
+2003-10-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Look up
+       hash table for real symbols.
+
+2003-10-23  Michael Snyder  <msnyder@redhat.com>
+
+       * section.c (asection): Fix typo in comment.
+
+2003-10-23  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (get_tls_mask): Add toc_symndx param, save toc
+       reloc symbol index to it.  Don't allow gd syms in shared libs
+       to be optimized.
+       (ppc64_elf_tls_optimize): Adjust get_tls_mask call.
+       (ppc64_elf_size_stubs): Likewise.
+       (ppc64_elf_relocate_section): Check that tls relocs are only used
+       with tls syms, and similarly for non-tls.  Correct symbol used
+       when optimizing toc tls code.
+
+2003-10-22  Nick Clifton  <nickc@redhat.com>
+
+       * peicode.h (coff_swap_scnhdr_in): Only remove padding when
+       processing an executable.
+
+2003-10-22  Jakub Jelinek  <jakub@redhat.com>
+
+       * elflink.c (_bfd_elf_export_symbol): Adjust for globals and locals
+       field changes.
+       (_bfd_elf_link_assign_sym_version): Likewise.
+       * elflink.h (size_dynamic_sections): Likewise.
+
+2003-10-21  Alexandre Oliva  <aoliva@redhat.com>,
+           Michael Snyder  <msnyder@redhat.com>
+
+       * archures.c (bfd_mach_sh4a, bfd_mach_sh4al_dsp, bfd_mach_sh4_nofpu,
+       bfd_mach_sh4a_nofpu): New machine types.
+       * bfd-in2.h: Rebuilt.
+       * cpu-sh.c (compatible): Remove unused function.
+       (SH4A_NEXT, SH4AL_DSP_NEXT, SH4_NOFPU_NEXT, SH4A_NOFPU_NEXT): New.
+       (arch_info_struct): Add sh4a, sh4al_dsp, sh4-nofpu and sh4a-nofpu.
+       * elf32-sh.c (sh_elf_set_mach_from_flags): Handle them.
+
+2003-10-21  Wouter van Heyst <wouter@vidicode.nl>
+
+       * elf32-arm.h (elf32_arm_merge_private_bfd_data): Correct text
+       describing mismatched formats involving the Maverick FP type.
+
+2003-10-21  Anil Paranjpe  <anilp1@KPITCummins.com>
+
+       * binary.c (binary_object_p): Pass machine flag along with
+       architecture.
+
+2003-10-21  Thorsten Brehm  <brehm@gmx.net>
+
+       * archures.c (bfd_default_scan): Add support for mcf528x.
+       * ieee.c (ieee_write_processor): Likewise.
+
+2003-10-21  Peter Barada  <pbarada@mail.wm.sps.mot.com>
+           Bernardo Innocenti  <bernie@develer.com>
+
+       * archures.c: Add MCF528x (MCFv4) support.
+       * bfd/cpu-m68k.c (arch_info_struct): Likewise.
+       * bfd-in2.h: Regenerate.
+
+2003-10-20  Andrew Cagney  <cagney@redhat.com>
+
+       * targets.c: Replace "struct sec" with "struct bfd_section"
+       * syms.c, sparclynx.c, section.c, opncls.c: Ditto.
+       * libcoff-in.h, libbfd-in.h, elfxx-target.h: Ditto.
+       * elf.c, coffgen.c, bfd.c, bfd-in.h, aoutf1.h: Ditto.
+       * aout-tic30.c, aout-target.h:
+       * bfd-in2.h, libcoff.h, libbfd.h: Regenerate.
+
+2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       Support linker relaxation of new R_MMIX_PUSHJ_STUBBABLE relocs.
+       * elf64-mmix.c (MAX_PUSHJ_STUB_SIZE): New macro.
+       (struct _mmix_elf_section_data): New member pjs.
+       (mmix_set_relaxable_size, mmix_elf_get_section_contents): New
+       functions.
+       (elf_mmix_howto_table): New entry for R_MMIX_PUSHJ_STUBBABLE.
+       (mmix_reloc_map): Ditto.
+       (mmix_elf_relocate_section): Handle R_MMIX_PUSHJ_STUBBABLE.
+       (mmix_final_link_relocate, mmix_elf_check_common_relocs): Ditto.
+       (mmix_elf_perform_relocation): Ditto.  Don't mark parameter addr
+       unused.
+       (mmix_elf_check_relocs): Move early return to after
+       mmix_elf_check_common_relocs call.
+       (mmix_elf_symbol_processing): Fix cut-and-pasto in head comment.
+       (_bfd_mmix_before_linker_allocation): Rename from
+       _bfd_mmix_prepare_linker_allocated_gregs.  All referers changed.
+       Arrange to set the initial relaxable size of sections.
+       (_bfd_mmix_after_linker_allocation): Rename from
+       _bfd_mmix_finalize_linker_allocated_gregs.
+       (mmix_elf_relax_section): Relax a R_MMIX_PUSHJ_STUBBABLE reloc.
+       (bfd_elf64_get_section_contents): Define.
+       * reloc.c: Add ENUMX for BFD_RELOC_MMIX_PUSHJ_STUBBABLE.
+       * libbfd.h, bfd-in2.h: Regenerate.
+
+       * reloc.c (bfd_generic_relax_section): Default-set
+       section->_cooked_size here.
+       (bfd_generic_get_relocated_section_contents): Don't set it here.
+       Explain why.
+
+2003-10-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * elf32-hppa.c (elf32_hppa_relocate_section): Skip relocation if
+       output section has been discarded.
+
+2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
+
+       * coff-h8300.c (funcvec_hash_newfunc): Handle normal mode.
+       (h8300_reloc16_extra_cases): Likewise.
+       (h8300_bfd_link_add_symbols): Likewise.
+
+2003-10-17 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
+
+       * cpu-h8300.c (h8300sxn_info_struct): Correct address size.
+       (h8300sn_info_struct): Likewise.
+       (h8300hn_info_struct): Likewise.
+
+2003-10-16  Pavel Roskin  <proski@gnu.org>
+
+       * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't calculate image size
+       for sections which lack size info.
+
+2003-10-17  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * configure.host: Add __USE_MINGW_FSEEK to HDEFINES for
+        mingw32.
+
+2003-10-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also warn
+       undefined patterns with '*'.
+
+2003-10-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't
+       use the last CIE from a different section.
+       (_bfd_elf_write_section_eh_frame): Don't pad beyond the raw
+       size of the output section.
+
+2003-10-07  Roland McGrath  <roland@redhat.com>
+
+       * elf.c (_bfd_elf_make_section_from_phdr): Set alignment_power of
+       new section from p_align header field.
+
+2003-10-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-xtensa.c (xtensa_read_table_entries): The external size
+       of entry is 8 bytes.
+
+2003-10-15  Andrew Cagney  <cagney@redhat.com>
+
+       * targets.c (BFD_JUMP_TABLE_SYMBOLS): Replace NAME##_get_symtab
+       with NAME##_canonicalize_symtab.
+       * libcoff-in.h (coff_canonicalize_symtab): Update.
+       * xsym.h (bfd_sym_canonicalize_symtab): Update.
+       * elf-bfd.h (_bfd_elf_canonicalize_symtab): Update.
+       * coffgen.c (coff_canonicalize_symtab): Update.
+       * libbfd-in.h (_bfd_nosymbols_canonicalize_symtab): Update.
+       * libnlm.h (nlmNAME(canonicalize_symtab)): Update.
+       * ieee.c (ieee_vec): Update comment.
+       * libecoff.h (_bfd_ecoff_canonicalize_symtab): Update.
+       * mmo.c (mmo_canonicalize_symtab): Update.
+       * nlm-target.h (nlm_canonicalize_symtab): Update.
+       * nlmcode.h (nlm_canonicalize_symtab): Update.
+       * i386msdos.c (msdos_canonicalize_symtab): Update.
+       * hp300hpux.c (MY (canonicalize_symtab)): Update.
+       * oasys.c (oasys_canonicalize_symtab): Update.
+       * som.c (som_canonicalize_symtab): Update.
+       * pef.c (bfd_pef_canonicalize_symtab): Update.
+       * nlmcode.h (nlm_canonicalize_symtab): Update.
+       * xsym.c (bfd_sym_canonicalize_symtab): Update.
+       * vms.c (vms_canonicalize_symtab): Update.
+       * versados.c (versados_canonicalize_symtab): Update.
+       * mach-o.c (bfd_mach_o_canonicalize_symtab): Update.
+       * ieee.c (ieee_canonicalize_symtab): Update.
+       * pdp11.c (NAME(aout,canonicalize_symtab)): Update.
+       * reloc.c: Update comment.
+       * libaout.h (NAME(aout,canonicalize_symtab)): Update.
+       * coff64-rs6000.c (aix5coff64_vec): Update.
+       * coff64-rs6000.c (bfd_xcoff_aix5_backend_data): Update.
+       * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update.
+       * aoutx.h (NAME(aout,canonicalize_symtab)): Update.
+       * elfxx-target.h (bfd_elfNN_canonicalize_symtab): Update.
+       * hp300hpux.c (MY_canonicalize_symtab): Update.
+       * ecoff.c (_bfd_ecoff_canonicalize_symtab): Update.
+       * aout-tic30.c (MY_canonicalize_symtab): Update.
+       * aout-target.h (MY_canonicalize_symtab): Update.
+       * ppcboot.c (ppcboot_canonicalize_symtab): Update.
+       * elf.c (_bfd_elf_canonicalize_symtab): Update.
+       * elfcode.h (elf_canonicalize_symtab): Update.
+       * ihex.c (ihex_canonicalize_symtab): Update.
+       * tekhex.c (tekhex_canonicalize_symtab): Update.
+       * binary.c (binary_canonicalize_symtab): Update.
+       * srec.c (srec_canonicalize_symtab): Update.
+
+2003-10-15  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * elf32-h8300.c (elf_reloc_map): Fix a comment typo.
+
+2003-10-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * elf32-sh.c (sh_elf_relocate_section): Handle R_SH_IMM_*_PCREL
+       relocations.
+       (sh_elf_check_relocs): Likewise.
+
+       * elf32-sh64.c (elf_backend_merge_symbol_attribute): Define.
+       (sh64_elf_merge_symbol_attribute): New.
+       * elf64-sh64.c (elf_backend_merge_symbol_attribute): Define.
+       (sh64_elf64_merge_symbol_attribute): New.
+
+2003-10-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * elf-bfd.h (struct elf_backend_data): New function pointer member
+       elf_backend_merge_symbol_attribute.
+       * elflink.h (elf_link_add_object_symbols): Adjust call to
+       elf_backend_merge_symbol_attribute if the backend defined it.
+       * elfxx-target.h (elf_backend_merge_symbol_attribute): New macro.
+       (elfNN_bed): Add that to the initializer.
+
+2003-10-14  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (get_is_linkonce_section): Delete.
+       (xtensa_is_property_section, xtensa_is_littable_section): Use
+       XTENSA_INSN_SEC_NAME and XTENSA_LIT_SEC_NAME macros.  Do not recognize
+       linkonce sections containing ".xt.insn" and ".xt.lit" substrings.
+       (xtensa_get_property_section_name): Check section name instead of
+       calling get_is_linkonce_section.  Remove unused bfd parameter.  Use
+       XTENSA_INSN_SEC_NAME and XTENSA_LIT_SEC_NAME macros.  Never generate
+       linkonce section names by appending ".xt.insn" or ".xt.lit".
+       (xtensa_read_table_entries): Remove bfd argument in call to
+       xtensa_get_property_section_name.  Free section name when done.
+       (elf_xtensa_combine_prop_entries): Free leaking table.
+
+2003-10-13  Richard Sandiford  <rsandifo@redht.com>
+
+       * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add
+       DT_MIPS_LIBLIST or DT_MIPS_CONFLICT entries.
+       (_bfd_mips_elf_finish_dynamic_symbol): Don't handle them.  Don't
+       handle DT_MIPS_MSYM.  Set DT_RELSZ based on the number of relocations
+       that were needed.
+       (_bfd_mips_elf_modify_segment_map): Fix placement of PT_MIPS_OPTIONS.
+       (_bfd_mips_elf_merge_private_bfd_data): Ignore EF_MIPS_UCODE.
+
+2003-10-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * bfd-in.h (bfd_elf32_ia64_after_parse): New prototype.
+       (bfd_elf64_ia64_after_parse): Likewise.
+       * bfd-in2.h: Regenerated.
+
+       * elfxx-ia64.c (oor_ip): New.
+       (oor_branch_size): Likewise.
+       (bfd_elfNN_ia64_after_parse): Likewise.
+       (elfNN_ia64_relax_section): Use oor_ip if oor_branch_size
+       equals sizeof (oor_ip).
+
+2003-10-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * elf64-sh64.c (sh_elf64_relocate_section): Tidy up for the
+       renumbering of some relocation numbers.
+
+2003-10-11  Alan Modra  <amodra@bigpond.net.au>
+
+       * coff-sh.c: Move definition of MAP and guard more code with
+       COFF_IMAGE_WITH_PE.
 
        * section.c (bfd_get_section_size_before_reloc): Ignore reloc_done.
        * bfd-in2.h: Regenerate.
 
 2003-10-06  Matt Thomas <matt@3am-software.com>
 
-         config.bfd: Move the hppa*-*-netbsd* case to the hppa*-*-linux* case.
+       * config.bfd: Move the hppa*-*-netbsd* case to the hppa*-*-linux* case.
 
 2003-10-06  Robert Millan  <robertmh@gnu.org>
 
        * elf32-xtensa.c (elf_xtensa_relocate_section): Fix typo that clobbered
        dynamic relocation offsets.
 
-2003-09-23  Alan Modra  <alan@modra.org>
+2003-09-23  Alan Modra  <amodra@bigpond.net.au>
 
        * simple.c (bfd_simple_get_relocated_section_contents): Free the
        hash table using _bfd_generic_link_hash_table_free.
 
-2003-09-23  Alan Modra  <alan@modra.org>
+2003-09-23  Alan Modra  <amodra@bigpond.net.au>
 
        * elf-bfd.h (struct bfd_elf_special_section): Remove "suffix".  Change
        type of prefix_length and suffix_length to int.  Rename "attributes"
This page took 0.028608 seconds and 4 git commands to generate.