* syms.c (_bfd_stab_section_find_nearest_line): Look at the
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index f51aa26c77c65b5d29803b8289e748ff3fa8ae90..22461e9987d64057870ad011562147e7f476e127 100644 (file)
@@ -1,3 +1,493 @@
+2007-09-21  Olivier Hainque  <hainque@adacore.com>
+           Tristan Gingold  <gingold@adacore.com>
+       
+       * syms.c (_bfd_stab_section_find_nearest_line): Look at the 
+        specific SOM sections for stabs if the regular ones are not found.
+       * som.h (struct somdata): Add a line_info field, to be used by
+        som_find_nearest_line.
+       * som.c (som_find_nearest_line): Implement using the bfd stabs
+       function above.
+
+2007-09-19  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Make sure .got
+       will be output.
+
+2007-09-19  Alan Modra  <amodra@bigpond.net.au>
+           Doug Kwan  <dougkwan@google.com>
+
+       * bfd-in.h (bfd_hash_insert): Declare.
+       * bfd-in2.h: Regenerate.
+       * hash.c (bfd_hash_insert): New function.  Split out from..
+       (bfd_hash_lookup): ..here.
+       * merge.c (sec_merge_hash_lookup): Use bfd_hash_insert.
+
+2007-09-18  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (bfd_section_from_shdr): Check bfd_alloc return.
+       (elfcore_write_note): Check realloc return.
+       * elflink.c (_bfd_elf_link_find_version_dependencies): Check
+       bfd_zalloc return.
+       (_bfd_elf_link_assign_sym_version): Check bfd_malloc return.
+       (elf_link_add_object_symbols): Likewise.
+       (struct hash_codes_info): New.
+       (elf_collect_hash_codes): Return bfd_malloc error.
+       (struct collect_gnu_hash_codes): Add "error".
+       (elf_collect_gnu_hash_codes): Return bfd_malloc error.
+       (bfd_elf_size_dynamic_sections): Check return status of
+       _bfd_elf_link_find_version_dependencies.
+       (bfd_elf_size_dynsym_hash_dynstr): Adjust for elf_collect_hash_codes
+       and elf_collect_gnu_hash_codes changes.
+       (elf_sym_name_compare): Formatting.
+       (elf_fixup_link_order): Use bfd_malloc, not xmalloc.
+
+2007-09-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/3281
+       PR binutils/5037
+       * elf-bfd.h (elf_obj_tdata): Remove relro.
+
+       * elf.c (get_program_header_size): Check info->relro instead
+       of elf_tdata (abfd)->relro.
+       (_bfd_elf_map_sections_to_segments): Likewise.
+       (assign_file_positions_for_load_sections): Don't set
+       PT_GNU_RELRO segment alignment here.
+       (assign_file_positions_for_non_load_sections): Properly set up
+       PT_GNU_RELRO segment for copying executable/shared library.
+       (rewrite_elf_program_header): Remove PT_GNU_RELRO segment.
+       (copy_elf_program_header): Set p_size and p_size_valid fields for
+       PT_GNU_RELRO segment. 
+
+2007-09-17  Nick Clifton  <nickc@redhat.com>
+
+       * po/fi.po: New Finnish translation.
+       * po/es.po: Updated Spanish translation.
+       * configure.in (ALL_LINGUAS): Add fi.
+       * configure: Regenerate.
+       * po/bfd.pot: Regenerate.
+
+2007-09-15  Nick Clifton  <nickc@redhat.com>
+
+       * bfd.c (_bfd_default_error_handler): fflush stdout.
+
+2007-09-14  Alan Modra  <amodra@bigpond.net.au>
+
+       * opncls.c (find_separate_debug_file): Ensure bfd_set_error has
+       been called on all error return paths.
+       (bfd_fill_in_gnu_debuglink_section): Use bfd_malloc, not malloc.
+       Clear padding after filename
+
+2007-09-14  Alan Modra  <amodra@bigpond.net.au>
+
+       * format.c (bfd_check_format_matches): Record matching targets even
+       when "matching" is NULL to allow bfd_associated_vector matches.
+       Consolidate error return code.  Consolidate ok return code.  Always
+       restore original target and format on error.
+
+2007-09-14  Alan Modra  <amodra@bigpond.net.au>
+
+       * configure.in: Delete BFD_HOST_LONG_LONG and bfd checks for
+       long long.  Partly revert 2007-07-12 change, so that
+       BFD_HOST_64BIT_LONG and BFD_HOST_64BIT_LONG_LONG are set
+       independent of "void *" size.
+       * configure: Regenerate.
+       * config.in: Regenerate.
+       * Makefile.in: Regenerate.
+
+2007-09-12  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-bfd.h (struct elf_backend_data): Delete elf_backend_sprintf_vma
+       and elf_backend_fprintf_vma.
+       (_bfd_elf_sprintf_vma, _bfd_elf_fprintf_vma): Delete.
+       * elf.c (_bfd_elf_sprintf_vma, _bfd_elf_fprintf_vma): Delete.
+       * elfxx-target.h (elf_backend_sprintf_vma): Don't define.
+       (elf_backend_fprintf_vma): Likewise.
+       (elfNN_bed): Don't init removed fields.
+       * bfd.c (is32bit): New function.
+       (bfd_sprintf_vma, bfd_fprintf_vma): Use the above.
+
+2007-09-11  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * archures.c: Add bfd_mach_mcf_isa_c_nodiv,
+       bfd_mach_mcf_isa_c_nodiv_mac & bfd_mach_mcf_isa_c_nodiv_emac.
+       * ieee.c (ieee_write_processor): Update coldfire architecture
+       list.
+       * bfd-in2.h: Rebuilt.
+       * cpu-m68k.c (arch_info_struct): Add isa_c nodiv architectures.
+       (m68k_arch_features): Likewise.
+       * elf32-m68k.c (elf32_m68k_object_p): Add EF_M68K_CF_ISA_C_NODIV.
+       (elf32_m68k_print_private_bfd_data): Likewise.
+
+2007-09-11  Jan Beulich  <jbeulich@novell.com>
+
+       * elf64-i386.c (elf64_i386_tls_transition): Remove redundant 'const'.
+       * elf64-x86_64.c (elf64_x86_64_tls_transition): Likewise.
+
+2007-09-08  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (func_desc_adjust): When resolving undefined
+       references to dot-symbols, transfer def_regular and
+       def_dynamic from the descriptor symbol.
+
+2007-09-08  Alan Modra  <amodra@bigpond.net.au>
+
+       * config.bfd: Set want64 for spu-*-elf.
+
+2007-09-08  Alan Modra  <amodra@bigpond.net.au>
+
+       PR ld/2864, ld/5006
+       * elf.c (special_sections): Comment typo.
+       (elf_fake_sections): Force SHT_PROGBITS for sections that are
+       SHT_NOBITS if BFD section flags say they have contents.
+
+2007-09-04  Michael Snyder  <msnyder@access-company.com>
+
+       * elf32-bfin.c (howto_table): Cut and paste error?  
+       Name field of reloc is wrong.
+
+2007-09-04  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (elf_howto_table): Formatting.
+
+2007-09-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/4986
+       * dwarf2.c (new_line_sorts_after): Undo the last change.
+       (add_line_info): Only keep the last entry with the same address
+       and end sequence.
+
+2007-08-31  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/4986
+       * dwarf2.c (new_line_sorts_after): Also compare line number.
+
+2007-08-31  Jesse Michael  <jmichael@suse.de>
+
+       * mach-o.c (bfd_mach_o_make_bfd_section): Fix test for non
+       zerofill sections.
+
+2007-08-28  David Heine  <dlheine@tensilica.com>
+
+       * elf32-xtensa.c (compute_ebb_actions): Update removed_bytes when
+       narrowing instructions.
+
+2007-08-28  Mark Shinwell  <shinwell@codesourcery.com>
+           Joseph Myers  <joseph@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_compare_mapping): Compare first on vma,
+       then on type.
+
+2007-08-28  Robert Sebastian Gerus  <arachnist@gmail.com>
+
+       * config.bfd: Add support for i[3-7]86-*-dragonfly*.
+       * configure.in: Likewise.
+       * configure: Regenerate.
+
+2007-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
+           Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (elfcore_grok_spu_note): New function.
+       (elf_parse_notes): Call it.
+
+2007-08-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf64-x86-64.c (elf64_x86_64_relocate_section): Adjust
+       indentation.
+
+2007-08-24  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * elf.c (elfcore_grok_win32pstatus): Remove HAVE_WIN32_PSTATUS_T
+       guard.  Make it host independent.
+       (elfcore_grok_note): Remove HAVE_WIN32_PSTATUS_T guard around
+       NT_WIN32PSTATUS.
+
+2007-08-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * elf-bfd.h (struct elf_obj_tdata): New BUILD_ID_SIZE, BUILD_ID.
+       * elf.c (elfcore_read_notes): Split to ...
+       (elf_read_notes) ... here ...
+       (elf_parse_notes): ... and here.  Check `bfd_get_format (abfd)' with
+       the former subfunctions called only for BFD_CORE.
+       Call ELFOBJ_GROK_GNU_NOTE for BFD_OBJECT files with the owner "GNU".
+       (_bfd_elf_make_section_from_shdr): Call ELF_PARSE_NOTES for SHT_NOTEs.
+       (bfd_section_from_phdr): Update the call for renamed ELFCORE_READ_NOTES.
+       (elfobj_grok_gnu_build_id, elfobj_grok_gnu_note): New functions.
+       Code advisory: Roland McGrath
+
+2007-08-24  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elf64-mips.c (elf_backend_sign_extend_vma): Define.
+
+2007-08-24  Alan Modra  <amodra@bigpond.net.au>
+
+       * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Warning fix.
+
+2007-08-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.am: Run "make dep-am".
+       * Makefile.in: Regenerated.
+
+2007-08-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-i386.c: Include "bfd_stdint.h".
+       (elf_i386_rtype_to_howto): New function.
+       (elf_i386_info_to_howto_rel): Use it.
+       (x86_64_opcode16): New union type.
+       (elf_i386_check_tls_transition): New function.
+       (elf_i386_tls_transition): Updated to check transition and
+       issue an error if a transition isn't supported.
+       (elf_i386_check_relocs): Return FALSE if
+       elf_i386_tls_transition returns FALSE.
+       (elf_i386_gc_sweep_hook): Likewise.
+       (elf_i386_relocate_section): Likewise. Remove BFD_ASSERT
+       on TLS transitions.
+
+       * elf64-x86-64.c: Include "bfd_stdint.h".
+       (x86_64_opcode16): New union type.
+       (x86_64_opcode32): Likewise.
+       (elf64_x86_64_check_tls_transition): New function.
+       (elf64_x86_64_tls_transition): Updated to check transition and
+       issue an error if a transition isn't supported.
+       (elf64_x86_64_check_relocs): Return FALSE if
+       elf64_x86_64_tls_transition returns FALSE.
+       (elf64_x86_64_gc_sweep_hook): Likewise.
+       (elf64_x86_64_relocate_section): Likewise. Remove BFD_ASSERT
+       on TLS transitions.
+
+2007-08-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elfxx-ia64.c: Convert to ISO C90 prototypes.
+       (elfNN_hpux_backend_section_from_bfd_section): Make it static.
+
+2007-08-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf64-x86-64.c: Remove trailing whitespace.
+       * elfxx-ia64.c: Likewise.
+
+2007-08-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-i386.c (elf_i386_tls_transition): Accept a pointer
+       to ELF hash entry instead of an integer for local test.
+       (elf_i386_check_relocs): Updated.
+       (elf_i386_gc_sweep_hook): Likewise.
+       (elf_i386_relocate_section): Likewise.
+
+       * elf64-x86-64.c  (elf64_x86_64_tls_transition): Accept a
+       pointer to ELF hash entry instead of an integer for local
+       test.
+       (elf64_x86_64_check_relocs): Updated.
+       (elf64_x86_64_gc_sweep_hook): Likewise.
+       (elf64_x86_64_relocate_section): Likewise.
+
+2007-08-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-i386.c (elf_i386_tls_transition): Break long line.
+       * elf64-x86-64.c (elf64_x86_64_tls_transition): Likewise.
+
+2007-08-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * elfxx-target.h [ELF_COMMONPAGESIZE && ELF_MAXPAGESIZE]
+       (ELF_MINPAGESIZE): Fixed its size guess.  Sanity checked its size.
+       (ELF_COMMONPAGESIZE, ELF_MAXPAGESIZE): Sanity checked their size.
+
+2007-08-20  Nick Clifton  <nickc@redhat.com>
+
+       * elflink.c (elf_fixup_link_order): Rewrite conversion of
+       s->alignment_power into an offset mask in order to avoid a gcc
+       error message.
+
+2007-08-17  Jakub Jelinek  <jakub@redhat.com>
+
+       * config.bfd: Handle sparcv*-*-linux-* the same as sparc-*-linux-*.
+       Change sparc64-*-linux-* to sparc64*-*-linux-*.
+
+2007-08-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * po/Make-in: Add --msgid-bugs-address to xgettext invocation.
+
+2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf.c: Revert last change.
+
+2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf.c (get_segment_type): Change PT_GNU_STACK to PT_GNU_ATTR.
+       (bfd_section_from_phdr): Likewise.
+       (get_program_header_size): Likewise. Add a PT_GNU_ATTR segment
+       if there is an attribute section.
+       (_bfd_elf_map_sections_to_segments): Likewise.
+       (IS_SECTION_IN_INPUT_SEGMENT): Likewise.
+
+2007-08-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/4918
+       * elf32-i386.c (elf_i386_relocate_section): Allow R_386_PC32
+       on ___tls_get_addr for GD->LE/LD->LE transitions when not
+       building shared library.
+
+       * elf64-x86-64.c (elf64_x86_64_relocate_section): Allow
+       R_X86_64_PC32 on __tls_get_addr for GD->LE/LD->LE transitions
+       when not building shared library.
+
+2007-08-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): LOADBASE is now
+       initialized only on the first PT_LOAD.  New variable LOADBASE_SET.
+       Removed PF_R checking for IA-64 vDSOs as redundant now.
+       Code advisory: Roland McGrath
+
+2007-08-13  Richard Sandiford  <richard@codesourcery.com>
+
+       * elfxx-mips.c (mips_elf_link_hash_table): Add computed_got_sizes.
+       (mips_elf_record_global_got_symbol): Increment local_gotno for
+       each forced-local symbol.
+       (_bfd_mips_elf_check_relocs): Pass forced-local call symbols to
+       mips_elf_record_global_got_symbol for VxWorks too.
+       (_bfd_mips_elf_always_size_sections): Set computed_got_sizes
+       to true after computing the GOT size.
+       (_bfd_mips_elf_hide_symbol): Increase local_gotno whenever
+       got.offset == 1.  Only adjust global_gotno if computed_got_sizes.
+       For VxWorks, add a local entry when hiding a symbol that needs a
+       plt but has not been marked as needing a global got entry.
+       (_bfd_mips_elf_link_hash_table_create): Set computed_got_sizes to
+       false.
+
+2007-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * coffgen.c (coff_get_normalized_symtab): Correct cast.
+
+2007-08-13  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (elf_modify_segment_map): Add remove_empty_load param.
+       Don't remove empty PT_LOAD header if false.
+       (_bfd_elf_map_sections_to_segments): If user phdrs, pass false
+       to elf_modify_segment_map.
+       (assign_file_positions_for_load_sections): Pass false to
+       elf_modify_segment_map.
+
+2007-08-13  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (ADDI_R12_R12, LD_R11_0R2, LD_R2_0R2): Define.
+       Update stub comments.
+       (build_plt_stub): Build two variants, one without "addis".
+       (ppc_build_one_stub): Build stubs without "addis" if possible.
+       (ppc_size_one_stub): Size new stubs.
+
+2007-08-11  Richard Sandiford  <richard@codesourcery.com>
+
+       * config.bfd (sh-*-vxworks): Define targ_underscore to "yes".
+
+2007-08-09  Michael Snyder  <msnyder@access-company.com>
+
+       * aoutx.h (aout_get_external_symbols): Return if count is zero.
+
+2007-08-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/4909
+       * elf.c (print_segment_map): New function.
+       (assign_file_positions_for_load_sections): Call print_segment_map
+       when a section can't be allocated in segment.
+
+2007-08-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * opncls.c (bfd_openr_iovec): Fix the OPEN parameter macro expansion.
+
+2007-08-07  Nick Clifton  <nickc@redhat.com>
+
+       * po/bfd.pot: Updated template.
+       * po/BLD-POTFILES.in: Regenerate.
+
+2007-08-07  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c: (_bfd_elf_make_section_from_phdr): Properly handle
+       bss segments.
+
+2007-08-06  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * Makefile.am (BUILD_HFILES): Clean bfd_stdint.h.
+       * Makefile.in: Regenerated.
+
+2007-08-06  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * configure.in: Update version to 2.18.50.
+       * configure: Regenerated.
+
+2007-08-06  Paul Brook  <paul@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_link_hash_entry): Add
+       plt_maybe_thumb_refcount.
+       (elf32_arm_link_hash_newfunc): Set plt_maybe_thumb_refcount.
+       (elf32_arm_copy_indirect_symbol): Ditto.
+       (elf32_arm_adjust_dynamic_symbol): Ditto.
+       (bfd_elf32_arm_process_before_allocation): Handle R_ARM_THM_JUMP24.
+       (arm_add_to_rel): Ditto.
+       (elf32_arm_final_link_relocate): Merge R_ARM_THM_JUMP24 with
+       R_ARM_THM_CALL.  Handle R_ARM_THM_JUMP19 against a PLT stub.
+       (elf32_arm_gc_sweep_hook): Call check_use_blx.  Update plt counts
+       for R_ARM_THM_JUMP24 and R_ARM_THM_JUMP19.
+       (elf32_arm_check_relocs): Update plt counts for R_ARM_THM_JUMP24
+       and R_ARM_THM_JUMP19.  
+       (allocate_dynrelocs): Use plt_maybe_thumb_refcount.
+       (elf32_arm_finish_dynamic_symbol): Ditto.
+       (elf32_arm_output_plt_map): Ditto.
+
+2007-08-06  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elf.c (rewrite_elf_program_header): Handle sections not sorted
+       by address.
+       (copy_elf_program_header): Likewise.
+
+2007-08-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf-bfd.h (xvec_get_elf_backend_data): Add const.
+
+       * elfcode.h (elf_object_p): Use xvec_get_elf_backend_data.
+       * elfcore.h (elf_core_file_p): Likewise.
+
+2007-08-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * coffcode.h (ALIGN_SET): Removed.
+       (ELIFALIGN_SET): Likewise.
+       (coff_set_alignment_hook): Handle IMAGE_SCN_ALIGN_128BYTES,
+       IMAGE_SCN_ALIGN_256BYTES, IMAGE_SCN_ALIGN_512BYTES,
+       IMAGE_SCN_ALIGN_1024BYTES, IMAGE_SCN_ALIGN_2048BYTES,
+       IMAGE_SCN_ALIGN_4096BYTES and IMAGE_SCN_ALIGN_8192BYTES.
+
+2007-08-01  Michael Snyder  <msnyder@access-company.com>
+
+       * vms-tir.c (new_section): Fix cut and paste error.
+
+       * aoutx.h (aout_link_add_symbols): Return if count is zero.
+
+       * elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so
+       pointer must be non-null.
+
+2007-08-01  Tristan Gingold  <gingold@adacore.com>
+
+       * coffcode.h (coff_sort_func_alent): New function.
+       (coff_slurp_line_table): Sort line table if not already sorted.
+
+2007-08-01  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf.c (_bfd_elf_map_sections_to_segments): Work around buggy
+       GCC 3.4.x warning.
+
+2007-08-01  Alan Modra  <amodra@bigpond.net.au>
+
+       * aoutx.h (swap_ext_reloc_in): Set howto to NULL for unknown
+       r_type.
+       (swap_std_reloc_in): Likewise.
+       (aout_link_input_section_std): Likewise.  Return with an error
+       on unexpected relocation type.
+       (aout_link_input_section_ext): Likewise.
+
+2007-08-01  Alan Modra  <amodra@bigpond.net.au>
+
+       PR4694
+       * aoutx.h (final_link): Write a zero in first word of
+       stringtab if no symbols rather than corrupting last byte
+       of text/data.
+
 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
 
        * elf.c (get_program_header_size): Adjacent loadable .note*
This page took 0.027767 seconds and 4 git commands to generate.