* readelf.c (display_debug_lines): Use unsigned long for address
[binutils-gdb.git] / binutils / ChangeLog
index 6dba2a2d3a6acf33b7e81a38f778cb2132040c08..ec27c2e5fa73ae2dbdd1badbb254405fa6e28776 100644 (file)
@@ -1,3 +1,373 @@
+2005-09-20  Richard Henderson  <rth@redhat.com>
+
+       * readelf.c (display_debug_lines): Use unsigned long for address
+       increments.  Use 0x prefix for all hex numbers.
+
+2005-09-09  Richard Earnshaw  <richard.earnshaw@arm.com>
+
+       * readelf.c (get_arm_section_type_name): Add SHT_ARM_PREEMPTMAP and
+       SHT_ARM_ATTRIBUTES.
+
+2005-09-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * readelf.c (get_elf_section_flags): Handle 64bit sh_flags.
+
+2005-09-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * readelf.c (debug_abbrev_contents): New.
+       (debug_abbrev_size): Likewise.
+       (load_debug_abbrev): Likewise.
+       (free_debug_abbrev): Likewise.
+       (process_debug_info): Use them.
+
+2005-08-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/1179
+       * objdump.c (disassemble_bytes): Don't adjust
+       adjust_section_vma.
+       (adjust_addresses): Don't adjust vma for debugging section.
+       Adjust lma only for relocatable files.
+       (dump_bfd): Tell adjust_addresses if it is a relocatable file.
+
+2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * bucomm.h (stpcpy): Declare if HAVE_DECL_STPCPY isn't defined.
+
+       * configure.in (AC_GNU_SOURCE): Added.
+       (AC_CHECK_DECLS): Add stpcpy.
+       * configure: Regenerated.
+       * config.in: Likewise.
+
+2005-08-16  Jakub Jelinek  <jakub@redhat.com>
+
+       * unwind-ia64.c (UNW_DEC_SPILL_SPREL, UNW_DEC_SPILL_PSPREL,
+       UNW_DEC_RESTORE, UNW_DEC_SPILL_REG): Increase {,ab,t}regname
+       buffer sizes.
+
+2005-08-15  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * doc/binutils.texi (objdump): Document -M e300.
+
+2005-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * readelf.c (slurp_hppa_unwind_table): Fix entry size on hppa64-hpux.
+       Don't access table entries past the end of the table.
+
+2005-08-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * readelf.c (get_parisc_segment_type): Handle PT_PARISC_WEAKORDER.
+       (get_parisc_section_type_name): Handle SHT_PARISC_DLKM.
+
+2005-08-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * NEWS: Mention "-t/--section-details" and
+       "-N/--full-section-name".
+
+       * doc/binutils.texi: Document "-t/--section-details". Remove
+       "-N/--full-section-name".
+
+       * readelf.c (do_full_section_name): Renamed to ...
+       (do_section_details): This.
+       (option): Rename "-N/--full-section-name" to
+       "-t/--section-details".
+       (usage): Likewise.
+       (parse_args): Likewise.
+       (get_elf_section_flags): Support do_section_details.
+       (process_section_headers): Updated for do_section_details.
+
+2005-08-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * readelf.c (get_parisc_dynamic_type): Add new dynamic types.
+       (get_dynamic_type): Use old values for DT_LOOS and DT_HIOS when
+       e_machine is EM_PARISC.
+       (get_parisc_segment_type): Add new segment types.
+       (get_parisc_section_type_name): Add new section names.
+       (dynamic_section_parisc_val): Add new table entries.
+
+2005-08-01  Filip Navara  <navaraf@reactos.com>
+
+       * dlltool.c (alphafunc): Remove and replace usage with nfunc.
+       (nfunc): Fix sorting of fastcall symbols when --kill-at is used.
+
+2005-07-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * readelf.c (dump_relocations): Handle SHN_X86_64_LCOMMON.
+       (get_symbol_index_type): Likewise.
+       (get_elf_section_flags): Handle SHF_X86_64_LARGE.
+
+2005-07-21  Eric Christopher  <echristo@apple.com>
+
+       * MAINTAINERS: Change affiliation.
+
+2005-07-19  Ben Elliston  <bje@au.ibm.com>
+
+       * readelf.c (read_and_display_attr_value): Remove comment adjacent
+       to DW_ATE_decimal_float about it being a GNU extension.
+
+2005-07-18  Nick Clifton  <nickc@redhat.com>
+
+       * binemul.c: Fix name of Red Hat.
+       * binemul.h: Likewise.
+       * emul_aix.c: Likewise.
+       * emul_vanilla: Likewise.
+
+2005-07-18  Ben Elliston  <bje@au.ibm.com>
+
+       * readelf.c (read_and_display_attr_value): Handle a DW_AT_encoding
+       value of DW_ATE_decimal_float instead of DW_ATE_GNU_decimal_float.
+
+2005-07-16  Alan Modra  <amodra@bigpond.net.au>
+
+       * Makefile.am: Run "make dep-am".
+       * Makefile.in: Regenerate.
+
+2005-07-15  Eric Christopher  <echristo@redhat.com>
+
+       * MAINTAINERS: Change affiliation.
+
+2005-07-14  Jim Blandy  <jimb@redhat.com>
+
+       * readelf.c: #include "elf/m32c.h"
+       (guess_is_rela, dump_relocations, get_machine_name): Add cases for
+       EM_M32C.
+       * Makefile.am (readelf.o): Update dependencies.
+       * Makefile.in: Regenerated.
+
+2005-07-08  Ben Elliston  <bje@au.ibm.com>
+
+       * bucomm.h: Include <stdarg.h> unconditionally, not only when
+       ANSI_PROTOTYPES is defined.  Remove #ifdef logic.
+       * dlltool.c: Likewise.
+       * dllwrap.c: Likewise.
+
+2005-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * bucomm.h (report): Add format attribute.
+       * dlltool.c (inform): Likewise.
+       * dllwrap.c (display, inform, warn): Likewise.
+       * objdump.c (objdump_sprintf): Likewise.
+       * readelf.c (error, warn): Likewise.  Fix format bugs.
+
+2005-07-05  Dmitry V. Levin  <ldv@altlinux.org>
+           Nick Clifton  <nickc@redhat.com>
+
+       * strings.c (filename_and_size_t): New typedef.
+       (strings_a_section): Skip sections with size greater or equal to
+       the file size.  Cache the file size to avoid repeated stat()s.
+       (strings_object_file): Pass filename_and_size_t argument to
+       strings_a_section() via bfd_map_over_sections().
+
+2005-07-04  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 1004
+       * objcopy.c (copy_object): Use bfd_make_section_with_flags.
+       (write_debugging_info): Likewise.
+       (setup_section): Use bfd_make_section_anyway_with_flags.
+
+2005-07-01  Steve Ellcey  <sje@cup.hp.com>
+
+       * configure.in (AM_BINUTILS_WARNINGS): Add.
+       (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
+       * configure: Regenerate.
+       * config.in: Regenerate.
+       * objdump.c (NEED_DECLARATION_*): Replace with !HAVE_DECL_*.
+       * bucomm.h: (NEED_DECLARATION_*): Ditto.
+
+2005-06-30  Ben Elliston  <bje@gnu.org>
+
+       * Makefile.am (check-DEJAGNU): Don't search for expect.
+       * Makefile.in: Regenerate.
+
+2005-06-30  Ben Elliston  <bje@gnu.org>
+
+       * Makefile.am (EXPECT): Set to expect.
+       (RUNTEST): Likewise, set to runtest.
+       * Makefile.in: Regenerate.
+
+2005-06-17  Jakub Jelinek  <jakub@redhat.com>
+
+       * readelf.c (CHECK_ENTSIZE_VALUES, CHECK_ENTSIZE): Define.
+       (process_section_headers): Use it.
+       (process_relocs): Don't crash if symsec is not SHT_SYMTAB
+       or SHT_DYNSYM.
+       (process_version_sections): Use sizeof (Elf_External_Versym)
+       instead of sh_entsize.
+
+2005-06-16  Nick Clifton  <nickc@redhat.com>
+
+       * rename.c (simple_copy): Only define if it is going to be used.
+       (smart_rename): Mark the preserve_dates parameter as possibly
+       being unused.
+
+       * resres.c (write_res_data): Prevent a potential compile time
+       warning by casting the return value from fwrite.
+
+2005-06-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR 995
+       * ar.c (BUFSIZE): Moved to ...
+       * bucomm.h (BUFSIZE): Here.
+
+       * bucomm.c: Include <assert.h>.
+       (bfd_get_archive_filename): New.
+       * bucomm.h (bfd_get_archive_filename): New.
+
+       * objcopy.c (copy_unknown_object): New.
+       (copy_object): Use bfd_get_archive_filename when reporting input
+       error. Don't call fatal on unknown arch.
+       (copy_archive): Call copy_unknown_object on unknown format or
+       arch.
+
+2005-06-14  Jakub Jelinek  <jakub@redhat.com>
+
+       * readelf.c (cmalloc, xcmalloc, xcrealloc): New functions.
+       (get_data): Add nmemb argument.  Return NULL if nmemb * size
+       overflows.  If var == NULL, allocate one extra byte and
+       clear it.
+       (slurp_rela_relocs, slurp_rel_relocs, get_32bit_program_headers,
+       get_64bit_program_headers, get_program_headers,
+       get_32bit_section_headers, get_64bit_section_headers,
+       get_32bit_elf_symbols, get_64bit_elf_symbols, process_section_headers,
+       process_section_groups, process_relocs, slurp_ia64_unwind_table,
+       ia64_process_unwind, slurp_hppa_unwind_table, hppa_process_unwind,
+       get_32bit_dynamic_section, get_64bit_dynamic_section,
+       process_dynamic_section, process_version_sections, get_dynamic_data,
+       process_symbol_table, dump_section, load_debug_str, load_debug_loc,
+       load_debug_range, read_and_display_attr_value, process_debug_info,
+       get_debug_info, frame_need_space, display_debug_frames,
+       display_debug_section, process_mips_specific, process_gnu_liblist,
+       process_corefile_note_segment): Adjust get_data callers.  Use
+       cmalloc, xcmalloc and xcrealloc instead of {m,xm,xre}alloc where
+       passed size is a product of 2 numbers.
+
+       * readelf.c (print_mode): Fix comment typo.
+       (slurp_rela_relocs, slurp_rel_relocs): Fix memory leaks.
+       (dump_relocations): Fix a thinko in check for invalid st_name.
+       (process_program_headers): Don't crash if string_table is NULL.
+       (process_section_headers): Don't crash if e_shstrndx is invalid.
+       Ensure string_table_length is 0 if string_table == NULL.
+       Don't return just because string_table is NULL.
+       (process_section_groups): Don't crash if symtab's sh_link or
+       symbol's st_name is invalid.  Fix a memory leak.  Fix check for
+       invalid section number entry.
+       (process_relocs): Don't crash if relocation or symbol section's
+       sh_link is invalid.
+       (slurp_ia64_unwind_table, slurp_hppa_unwind_table): Don't crash if
+       relocation section's sh_info is invalid.
+       (ia64_process_unwind, hppa_process_unwind): Don't crash if symbol
+       table's sh_link is invalid.
+       (process_version_sections): Don't crash on version or symbol
+       section's sh_link is invalid.  Don't crash if symbol's st_shndx
+       is invalid.
+       (process_symbol_table): Don't crash if string table is corrupt
+       or symbol's st_name, st_shndx, vna_name or vda_name is invalid.
+       (debug_apply_rela_addends): Don't crash if relocation section's
+       sh_info or sh_link is invalid.
+       (display_debug_loc): Warn for unterminated .debug_loc section
+       or start offsets not within .debug_loc section boundaries.
+       (process_gnu_liblist): Don't crash if liblist section's sh_link
+       or entry's l_name is invalid.
+
+2005-06-09  Jakub Jelinek  <jakub@redhat.com>
+
+       * objdump.c (disassemble_bytes): Don't crash if q->howto == NULL.
+       If q->howto->name == NULL, print q->howto->type as number instead.
+       (dump_reloc_set): Likewise.
+
+2005-06-07  Eric Christopher  <echristo@redhat.com>
+
+       * readelf.c (guess_is_rela): Support ms1.
+       (dump_relocations): Ditto.
+       (get_machine_name): Ditto.
+
+2005-06-07  Aldy Hernandez  <aldyh@redhat.com>
+           Michael Snyder  <msnyder@redhat.com>
+           Stan Cox  <scox@redhat.com>
+
+       * Makefile.am (readelf.o): Depend on ms1.h.
+
+       * Makefile.in: Regenerate.
+
+       * readelf.c: Include ms1.h.
+
+2005-06-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR 990
+       * nm.c (print_symbol): Call bfd_find_line before
+       bfd_find_nearest_line.
+
+2005-06-06  Alan Modra  <amodra@bigpond.net.au>
+
+       * NEWS: Mention new powerpc ld support.
+
+2005-06-03  Steve Ellcey  <sje@cup.hp.com>
+
+       * configure.in: Check for getc_unlocked prototype.
+       * configure: Regenerate.
+       * config.in: Regenerate.
+       * strings.c (get_char): Only call getc_unlocked if we have seen a
+       prototype.
+
+2005-06-03  Nick Clifton  <nickc@redhat.com>
+
+       * configure.in (ALL_LINGUAS): Add zh_TW
+       * configure: Regenerate.
+       * po/zh_TW.po: New Chinese (traditional) translation.
+
+2005-05-31  Richard Henderson  <rth@redhat.com>
+
+       * readelf.c (dump_relocations): Special case R_ALPHA_LITUSE.
+
+2005-05-29  Richard Henderson  <rth@redhat.com>
+
+       * readelf.c (get_alpha_dynamic_type): New.
+       (get_dynamic_type): Call it.
+
+2005-05-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * readelf.c (process_section_groups): Report group section
+       index. Check if the section member index is valid.
+
+2005-05-23  Fred Fish  <fnf@specifixinc.com>
+
+       * addr2line.c (unwind_inlines): New flag for 'i' option.
+       (usage): Document '-i' option.
+       (long_options): Recognize '--inlines'.
+       (translate_addresses): Loop, calling bfd_find_inliner_info as
+       necessary and printing multiple output lines.
+       (main): Handle 'i' option.
+       * doc/binutils.texi (addr2line): Document '-i' option.
+       * NEWS: Mention new addr2line '-i' option.
+
+2005-05-23  Nick Clifton  <nickc@redhat.com>
+
+       * readelf.c (fetch_indirect_string): Display a warning message
+       when a corrupt DW_FORM_strp value is encountered.
+
+       (process_debug_info): Mention that the compilation unit offset is
+       being displayed in hexadecimal.
+
+       (display_debug_lines): Fix typo in name of .debug_line section.
+
+2005-05-19  Zack Weinberg  <zack@codesourcery.com>
+
+       * Makefile.am: Have 'all' depend on 'info'.
+       * Makefile.in: Regenerate.
+
+2005-05-19  Ben Elliston  <bje@au.ibm.com>
+
+       * readelf.c (read_and_display_attr_value): Handle a DW_AT_encoding
+       value of DW_ATE_GNU_decimal_float.
+
+2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * doc/Makefile.am (config.texi): Don't use $<.
+       * doc/Makefile.in: Regenerated.
+
+2005-05-15  Yitzchak Scott-Thoennes  <sthoenna@efn.org>
+
+       * deflex.l: Ignore CRs
+
 2005-05-15  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * acinclude.m4: Remove obsolete code.