+
+ * bucomm.h: Include <stdarg.h> unconditionally, not only when
+ ANSI_PROTOTYPES is defined. Remove #ifdef logic.
+ * dlltool.c: Likewise.
+ * dllwrap.c: Likewise.
+
+
+ * 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.
+
+
+ * 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().
+
+
+ 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.
+
+
+ * 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.
+
+
+ * Makefile.am (check-DEJAGNU): Don't search for expect.
+ * Makefile.in: Regenerate.
+
+
+ * Makefile.am (EXPECT): Set to expect.
+ (RUNTEST): Likewise, set to runtest.
+ * Makefile.in: Regenerate.
+
+
+ * 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.
+
+
+ * 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.
+
+
+ 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.
+
+
+ * 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.
+
+
+ * 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.
+
+
+ * readelf.c (guess_is_rela): Support ms1.
+ (dump_relocations): Ditto.
+ (get_machine_name): Ditto.
+
+
+ * Makefile.am (readelf.o): Depend on ms1.h.
+
+ * Makefile.in: Regenerate.
+
+ * readelf.c: Include ms1.h.
+
+
+ PR 990
+ * nm.c (print_symbol): Call bfd_find_line before
+ bfd_find_nearest_line.
+
+
+ * NEWS: Mention new powerpc ld support.
+
+
+ * 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.
+
+
+ * configure.in (ALL_LINGUAS): Add zh_TW
+ * configure: Regenerate.
+ * po/zh_TW.po: New Chinese (traditional) translation.
+
+
+ * readelf.c (dump_relocations): Special case R_ALPHA_LITUSE.
+
+
+ * readelf.c (get_alpha_dynamic_type): New.
+ (get_dynamic_type): Call it.
+
+
+ * readelf.c (process_section_groups): Report group section
+ index. Check if the section member index is valid.
+
+
+ * 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.
+
+
+ * 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.
+
+
+ * Makefile.am: Have 'all' depend on 'info'.
+ * Makefile.in: Regenerate.
+
+
+ * readelf.c (read_and_display_attr_value): Handle a DW_AT_encoding
+ value of DW_ATE_GNU_decimal_float.
+
+
+ * doc/Makefile.am (config.texi): Don't use $<.
+ * doc/Makefile.in: Regenerated.
+
+
+ * deflex.l: Ignore CRs
+
+
+ * acinclude.m4: Remove obsolete code.
+ * configure.in: Update AC_PREREQ.
+ * doc/Makefile.am (binutils_TEXINFOS): Define.
+ (config.texi): Depend on distributed files instead of built
+ files.
+ (binutils.dvi, binutils.info): Remove unnecessary rules.
+ (DISTCLEANFILES): Remove.
+ (install-data-local): Renamed from install.
+ (info-local): Renamed from info.
+ * Makefile.in, aclocal.m4, config.in, configure,
+ doc/Makefile.in: Regenerated.
+
+
+ * readelf.c (get_ppc_dynamic_type): Display DT_PPC_GOT, not
+ DT_PPC_GLINK.
+
+
+ * readelf.c: Fix a couple of obvious comment typos,
+ 'debug_str' -> 'debug_ranges' and proecess' -> 'process'.
+
+
+ * readelf.c (dump_ia64_unwind): Get stamp with proper size.
+
* readelf.c (display_debug_lines): If pointer_size has not been