3 * readelf.c (get_machine_name): Add case for Blackfin.
7 * Makefile.am: Run "make dep-am".
8 (Makefile): Remove dependency.
9 * Makefile.in: Regenerate.
13 * MAINTAINERS: Add myself as VAX maintainer.
17 * rddbg.c (read_section_stabs_debugging_info): Add $GDB_SYMBOLS$
18 entry to names[] array for SOM binaries.
22 * MAINTAINERS: Add myself as x86_64 maintainer.
26 Second part of ms1 to mt renaming.
27 * readelf.c (guess_is_rela): Use EM_MT.
28 (dump_relocations, get_machine_name): Adjust.
32 * Makefile.am: Replace ms1 files with mt files.
33 * Makefile.in: Rebuilt.
34 * readelf.c (elf/mt.h): Adjust #include.
38 * configure.in (ALL_LINGUAS): Add fi.
39 * configure: Regenerate.
40 * po/fi.po: New file: Finnish translation.
44 * MAINTAINERS: add myself as Z80 maintainer
48 * cxxfilt.c (main): Flush output at newline.
52 * doc/binutils.texi: Include config.texi and @file documentation
57 * objcopy.c (keep_file_symbols): New.
58 (enum command_line_switch): Add OPTION_KEEP_FILE_SYMBOLS.
59 (strip_options): Add --keep-file-symbols.
60 (copy_options): Likewise.
61 (copy_usage): Likewise.
62 (strip_usage): Likewise.
63 (filter_symbols): Act upon keep_file_symbols.
64 (strip_main): Handle OPTION_KEEP_FILE_SYMBOLS.
65 (copy_main): Likewise.
66 * doc/binutils.texi: Document --keep-file-symbols for objcopy
71 * readelf.c (struct dump_list_entry, request_dump_byname)
72 (initialise_dumps_byname): New.
73 (parse_args): Call request_dump_byname.
74 (process_section_contents): Call initialise_dumps_byname.
75 * doc/binutils.texi (readelf): Mention -x NAME.
81 * readelf.c (get_mips_symbol_other): New function.
82 (get_symbol_other): New function.
83 (process_symbol_table): Call get_symbol_other() to get a
84 description of the st_other field if it contains more information
85 than just the visibility.
89 * configure: Regenerate after modifying bfd/warning.m4.
93 * Makefile.am: Run "make dep-am".
94 * Makefile.in: Regenerated.
96 * dep-in.sed: Replace " ./" with " ".
100 * po/POTFILES.in: Regenerate.
101 * po/binutils.pot: Regenerate.
105 * MAINTAINERS: Add self as BFIN maintainer.
109 * MAINTAINERS: Add self as BFIN maintainer.
113 * rclex.l (handle quotes): Stop parsing hex notation escaped
114 chars after the first two digits,
119 * cxxfilt.c (flags): Remove DMGL_TYPES;
120 (long_options): Rename --no-types to --types.
122 (demangle_it): Add a comment describing why _ and $ prefixes are
123 skipped. Use printf rather than puts to emit the demangled output
124 in order to avoid emitting a new line character.
125 (main): Have the -t flag enable type demangling.
126 Emit a newline after every demangled command line argument.
127 Copy whitespace from stdin to stdout.
128 * doc/binutils.texi (c++filt): Document the change to the -t
130 Document why demangling names on the command line is slightly
131 different to demangling names read from the standard input.
135 * doc/Makefile.am (config.texi): Set top_srcdir.
136 * doc/Makefile.in: Regenerated.
137 * doc/binutils.texi: Use at-file.texi from libiberty.
142 * readelf.c (ABSADDR): New.
143 (dump_ia64_unwind): Use ABSADDR to get the unwind info address.
147 * resbin.c (res_to_bin_accelerator): Place the terminating NUL at
148 the correct location in the bindata structure.
152 * doc/binutils.texi (objdump): Fix typo: -reg-name-std should be
157 * cxxfilt.c: Treat mangled names specified on the command line in
158 the same way as mangled names read from stdin.
159 Add -i switch to disable the display of implementation details.
160 Add -t switch to disable the demangling of types.
161 * NEWS: Mention the new switches.
162 * doc/binutils.texi (cxxfilt): Document the -i and -t switches.
166 * addr2line.c (usage): Document @file.
167 * ar.c (usage): Likewise.
168 * coffdump (usage): Likewise.
169 * cxxfilt.c (usage): Likewise.
170 * dlltool.c (usage): Likewise.
171 * dllwrap.c (usage): Likewise.
172 * nlmconv.c (usage): Likewise.
173 * nm.c (usage): Likewise.
174 * objcopy.c (usage): Likewise.
175 * objdump.c (usage): Likewise.
176 * readelf.c (usage): Likewise.
177 * size.c (usage): Likeise.
178 * srconv.c (usage): Likewise.
179 * strings.c (usage): Likewise.
180 * windres.c (usage): Likewise.
181 * doc/binutils.texi: Add section on common options.
185 * NEWS: Mention -W/--dwarf.
187 * doc/binutils.texi: Document -W/--dwarf for objdump.
191 * readelf.c (arm_attr_tag_CPU_arch, arm_attr_tag_ARM_ISA_use,
192 arm_attr_tag_THUMB_ISA_use, arm_attr_tag_VFP_arch,
193 arm_attr_tag_WMMX_arch, arm_attr_tag_NEON_arch,
194 arm_attr_tag_ABI_PCS_config, arm_attr_tag_ABI_PCS_R9_use,
195 arm_attr_tag_ABI_PCS_RW_data, arm_attr_tag_ABI_PCS_RO_DATA,
196 arm_attr_tag_ABI_PCS_GOT_use, arm_attr_tag_ABI_PCS_wchar_t,
197 arm_attr_tag_ABI_FP_rounding, arm_attr_tag_ABI_FP_denormal,
198 arm_attr_tag_ABI_FP_exceptions, arm_attr_tag_ABI_FP_user_exceptions,
199 arm_attr_tag_ABI_FP_number_model, arm_attr_tag_ABI_align8_needed,
200 arm_attr_tag_ABI_align8_preserved, arm_attr_tag_ABI_enum_size,
201 arm_attr_tag_ABI_HardFP_use, arm_attr_tag_ABI_VFP_args,
202 arm_attr_tag_ABI_WMMX_args, arm_attr_tag_ABI_optimization_goals,
203 arm_attr_tag_ABI_FP_optimization_goals, arm_attr_public_tags): New.
204 (display_arm_attribute, process_arm_specific): New functions.
205 (process_arch_specific): Add EM_ARM.
209 * dlltool.c (main): Fix typo.
210 * windres.c (main): Likewise.
214 * Makefile.in: Regenerated.
218 * sysinfo.y (main): Undo last change.
222 * addr2line.c (main): Use expandargv.
223 * ar.c (main): Likewise.
224 * coffdump.c (main): Likewise.
225 * cxxfilt.c (main): Likewise.
226 * dlltool.c (main): Likewise.
227 * dllwrap.c (main): Likewise.
228 * nlmconv.c (main): Likewise.
229 * nm.c (main): Likewise.
230 * objcopy.c (main): Likewise.
231 * objdump.c (main): Likewise.
232 * readelf.c (main): Likewise.
233 * size.c (main): Likeiwse.
234 * srcconv.c (main): Likewise.
235 * strings.c (main): Likewise.
236 * sysdump.c (main): Likewise.
237 * sysinfo.y (main): Likewise.
238 * windres.c (main): Likewise.
242 * Makefile.am: Run "make dep-am".
243 * Makefile.in: Regenerated.
244 * aclocal.m4: Likewise.
248 * Makefile.am: Bfin support.
249 * Makefile.in: Regenerated.
250 * aclocal.m4: Regenerated.
251 * readelf.c (elf/bfin.h): Include.
252 (guess_is_rela): EM_BLACKFIN support.
253 (dump_relocations): Likewise.
257 * dwarf.c (fetch_indirect_string): Adjust for section address.
258 (process_debug_info): Likewise.
259 (display_debug_loc): Likewise.
260 (display_debug_ranges): Likewise.
262 * objdump.c (mach_o_dwarf_sections): New.
263 (generic_dwarf_sections): Likewise.
264 (check_mach_o_dwarf): Likewise.
265 (dump_dwarf): Call check_mach_o_dwarf.
269 * Makefile.am (objdump_SOURCES): Add dwarf.c.
270 * Makefile.in: Regenerated.
272 * objdump.c: Include "dwarf.h".
273 (usage): Add -W/--dwarf.
274 (long_options): Likewise.
275 (dump_dwarf_section_info): New.
276 (load_debug_section): Likewise.
277 (free_debug_section): Likewise.
278 (dump_dwarf_section): Likewise.
279 (dump_dwarf): Likewise.
280 (dump_bfd): Load symbol table and call dump_dwarf if
281 dump_dwarf_section_info isn't zero.
282 (main): Handle -W/--dwarf.
286 * readelf.c: Reordered.
287 (is_relocatable): New.
288 (dwarf_section): New structure for DWARF section.
289 (load_debug_section): New.
290 (free_debug_section): Likewise.
291 (debug_str_section): Likewise.
292 (debug_abbrev_section): Likewise.
293 (debug_str_contents): Removed.
294 (debug_str_size): Likewise.
295 (debug_loc_contents): Likewise.
296 (debug_loc_size): Likewise.
297 (debug_range_contents): Likewise.
298 (debug_range_size): Likewise.
299 (load_debug_str): Likewise.
300 (free_debug_str): Likewise.
301 (load_debug_loc): Likewise.
302 (free_debug_loc): Likewise.
303 (load_debug_arange): Likewise.
304 (free_debug_arange): Likewise.
305 (load_debug_abbrev): Likewise.
306 (free_debug_abbrev): Likewise.
307 (fetch_indirect_string): Updated.
308 (debug_apply_rela_addends): Likewise.
309 (process_debug_info): Likewise.
310 (get_debug_info): Likewise.
311 (display_debug_lines): Likewise.
312 (display_debug_pubnames): Likewise.
313 (display_debug_macinfo): Likewise.
314 (display_debug_abbrev): Likewise.
315 (display_debug_loc): Likewise.
316 (display_debug_str): Likewise.
317 (display_debug_info): Likewise.
318 (display_debug_aranges): Likewise.
319 (display_debug_ranges): Likewise.
320 (display_debug_frames): Likewise.
321 (display_debug_not_supported): Likewise.
322 (debug_displays): Likewise.
323 (display_debug_section): Likewise.
324 (get_file_header): Set is_relocatable.
328 * readelf.c (debug_apply_rela_addends): Relocate the whole
330 (process_debug_info): Don't call debug_apply_rela_addends.
331 (display_debug_frames): Likewise.
332 (get_debug_info): Call debug_apply_rela_addends.
333 (debug_displays): Add the "relocate" field.
334 (display_debug_section): Call debug_apply_rela_addends if
339 * bucomm.h: Prevent the inclusion of <libintl.h> from the Solaris
340 version of <locale.h> when ENABLE_NLS is not defined.
344 * BRANCHES: Mention binutils-csl-gxxpro-3_4-branch.
348 * readelf.c (display_debug_lines): Use unsigned long for address
349 increments. Use 0x prefix for all hex numbers.
353 * readelf.c (get_arm_section_type_name): Add SHT_ARM_PREEMPTMAP and
358 * readelf.c (get_elf_section_flags): Handle 64bit sh_flags.
362 * readelf.c (debug_abbrev_contents): New.
363 (debug_abbrev_size): Likewise.
364 (load_debug_abbrev): Likewise.
365 (free_debug_abbrev): Likewise.
366 (process_debug_info): Use them.
371 * objdump.c (disassemble_bytes): Don't adjust
373 (adjust_addresses): Don't adjust vma for debugging section.
374 Adjust lma only for relocatable files.
375 (dump_bfd): Tell adjust_addresses if it is a relocatable file.
379 * bucomm.h (stpcpy): Declare if HAVE_DECL_STPCPY isn't defined.
381 * configure.in (AC_GNU_SOURCE): Added.
382 (AC_CHECK_DECLS): Add stpcpy.
383 * configure: Regenerated.
384 * config.in: Likewise.
388 * unwind-ia64.c (UNW_DEC_SPILL_SPREL, UNW_DEC_SPILL_PSPREL,
389 UNW_DEC_RESTORE, UNW_DEC_SPILL_REG): Increase {,ab,t}regname
394 * doc/binutils.texi (objdump): Document -M e300.
398 * readelf.c (slurp_hppa_unwind_table): Fix entry size on hppa64-hpux.
399 Don't access table entries past the end of the table.
403 * readelf.c (get_parisc_segment_type): Handle PT_PARISC_WEAKORDER.
404 (get_parisc_section_type_name): Handle SHT_PARISC_DLKM.
408 * NEWS: Mention "-t/--section-details" and
409 "-N/--full-section-name".
411 * doc/binutils.texi: Document "-t/--section-details". Remove
412 "-N/--full-section-name".
414 * readelf.c (do_full_section_name): Renamed to ...
415 (do_section_details): This.
416 (option): Rename "-N/--full-section-name" to
417 "-t/--section-details".
419 (parse_args): Likewise.
420 (get_elf_section_flags): Support do_section_details.
421 (process_section_headers): Updated for do_section_details.
425 * readelf.c (get_parisc_dynamic_type): Add new dynamic types.
426 (get_dynamic_type): Use old values for DT_LOOS and DT_HIOS when
427 e_machine is EM_PARISC.
428 (get_parisc_segment_type): Add new segment types.
429 (get_parisc_section_type_name): Add new section names.
430 (dynamic_section_parisc_val): Add new table entries.
434 * dlltool.c (alphafunc): Remove and replace usage with nfunc.
435 (nfunc): Fix sorting of fastcall symbols when --kill-at is used.
439 * readelf.c (dump_relocations): Handle SHN_X86_64_LCOMMON.
440 (get_symbol_index_type): Likewise.
441 (get_elf_section_flags): Handle SHF_X86_64_LARGE.
445 * MAINTAINERS: Change affiliation.
449 * readelf.c (read_and_display_attr_value): Remove comment adjacent
450 to DW_ATE_decimal_float about it being a GNU extension.
454 * binemul.c: Fix name of Red Hat.
455 * binemul.h: Likewise.
456 * emul_aix.c: Likewise.
457 * emul_vanilla: Likewise.
461 * readelf.c (read_and_display_attr_value): Handle a DW_AT_encoding
462 value of DW_ATE_decimal_float instead of DW_ATE_GNU_decimal_float.
466 * Makefile.am: Run "make dep-am".
467 * Makefile.in: Regenerate.
471 * MAINTAINERS: Change affiliation.
475 * readelf.c: #include "elf/m32c.h"
476 (guess_is_rela, dump_relocations, get_machine_name): Add cases for
478 * Makefile.am (readelf.o): Update dependencies.
479 * Makefile.in: Regenerated.
483 * bucomm.h: Include <stdarg.h> unconditionally, not only when
484 ANSI_PROTOTYPES is defined. Remove #ifdef logic.
485 * dlltool.c: Likewise.
486 * dllwrap.c: Likewise.
490 * bucomm.h (report): Add format attribute.
491 * dlltool.c (inform): Likewise.
492 * dllwrap.c (display, inform, warn): Likewise.
493 * objdump.c (objdump_sprintf): Likewise.
494 * readelf.c (error, warn): Likewise. Fix format bugs.
499 * strings.c (filename_and_size_t): New typedef.
500 (strings_a_section): Skip sections with size greater or equal to
501 the file size. Cache the file size to avoid repeated stat()s.
502 (strings_object_file): Pass filename_and_size_t argument to
503 strings_a_section() via bfd_map_over_sections().
508 * objcopy.c (copy_object): Use bfd_make_section_with_flags.
509 (write_debugging_info): Likewise.
510 (setup_section): Use bfd_make_section_anyway_with_flags.
514 * configure.in (AM_BINUTILS_WARNINGS): Add.
515 (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
516 * configure: Regenerate.
517 * config.in: Regenerate.
518 * objdump.c (NEED_DECLARATION_*): Replace with !HAVE_DECL_*.
519 * bucomm.h: (NEED_DECLARATION_*): Ditto.
523 * Makefile.am (check-DEJAGNU): Don't search for expect.
524 * Makefile.in: Regenerate.
528 * Makefile.am (EXPECT): Set to expect.
529 (RUNTEST): Likewise, set to runtest.
530 * Makefile.in: Regenerate.
534 * readelf.c (CHECK_ENTSIZE_VALUES, CHECK_ENTSIZE): Define.
535 (process_section_headers): Use it.
536 (process_relocs): Don't crash if symsec is not SHT_SYMTAB
538 (process_version_sections): Use sizeof (Elf_External_Versym)
539 instead of sh_entsize.
543 * rename.c (simple_copy): Only define if it is going to be used.
544 (smart_rename): Mark the preserve_dates parameter as possibly
547 * resres.c (write_res_data): Prevent a potential compile time
548 warning by casting the return value from fwrite.
553 * ar.c (BUFSIZE): Moved to ...
554 * bucomm.h (BUFSIZE): Here.
556 * bucomm.c: Include <assert.h>.
557 (bfd_get_archive_filename): New.
558 * bucomm.h (bfd_get_archive_filename): New.
560 * objcopy.c (copy_unknown_object): New.
561 (copy_object): Use bfd_get_archive_filename when reporting input
562 error. Don't call fatal on unknown arch.
563 (copy_archive): Call copy_unknown_object on unknown format or
568 * readelf.c (cmalloc, xcmalloc, xcrealloc): New functions.
569 (get_data): Add nmemb argument. Return NULL if nmemb * size
570 overflows. If var == NULL, allocate one extra byte and
572 (slurp_rela_relocs, slurp_rel_relocs, get_32bit_program_headers,
573 get_64bit_program_headers, get_program_headers,
574 get_32bit_section_headers, get_64bit_section_headers,
575 get_32bit_elf_symbols, get_64bit_elf_symbols, process_section_headers,
576 process_section_groups, process_relocs, slurp_ia64_unwind_table,
577 ia64_process_unwind, slurp_hppa_unwind_table, hppa_process_unwind,
578 get_32bit_dynamic_section, get_64bit_dynamic_section,
579 process_dynamic_section, process_version_sections, get_dynamic_data,
580 process_symbol_table, dump_section, load_debug_str, load_debug_loc,
581 load_debug_range, read_and_display_attr_value, process_debug_info,
582 get_debug_info, frame_need_space, display_debug_frames,
583 display_debug_section, process_mips_specific, process_gnu_liblist,
584 process_corefile_note_segment): Adjust get_data callers. Use
585 cmalloc, xcmalloc and xcrealloc instead of {m,xm,xre}alloc where
586 passed size is a product of 2 numbers.
588 * readelf.c (print_mode): Fix comment typo.
589 (slurp_rela_relocs, slurp_rel_relocs): Fix memory leaks.
590 (dump_relocations): Fix a thinko in check for invalid st_name.
591 (process_program_headers): Don't crash if string_table is NULL.
592 (process_section_headers): Don't crash if e_shstrndx is invalid.
593 Ensure string_table_length is 0 if string_table == NULL.
594 Don't return just because string_table is NULL.
595 (process_section_groups): Don't crash if symtab's sh_link or
596 symbol's st_name is invalid. Fix a memory leak. Fix check for
597 invalid section number entry.
598 (process_relocs): Don't crash if relocation or symbol section's
600 (slurp_ia64_unwind_table, slurp_hppa_unwind_table): Don't crash if
601 relocation section's sh_info is invalid.
602 (ia64_process_unwind, hppa_process_unwind): Don't crash if symbol
603 table's sh_link is invalid.
604 (process_version_sections): Don't crash on version or symbol
605 section's sh_link is invalid. Don't crash if symbol's st_shndx
607 (process_symbol_table): Don't crash if string table is corrupt
608 or symbol's st_name, st_shndx, vna_name or vda_name is invalid.
609 (debug_apply_rela_addends): Don't crash if relocation section's
610 sh_info or sh_link is invalid.
611 (display_debug_loc): Warn for unterminated .debug_loc section
612 or start offsets not within .debug_loc section boundaries.
613 (process_gnu_liblist): Don't crash if liblist section's sh_link
614 or entry's l_name is invalid.
618 * objdump.c (disassemble_bytes): Don't crash if q->howto == NULL.
619 If q->howto->name == NULL, print q->howto->type as number instead.
620 (dump_reloc_set): Likewise.
624 * readelf.c (guess_is_rela): Support ms1.
625 (dump_relocations): Ditto.
626 (get_machine_name): Ditto.
632 * Makefile.am (readelf.o): Depend on ms1.h.
634 * Makefile.in: Regenerate.
636 * readelf.c: Include ms1.h.
641 * nm.c (print_symbol): Call bfd_find_line before
642 bfd_find_nearest_line.
646 * NEWS: Mention new powerpc ld support.
650 * configure.in: Check for getc_unlocked prototype.
651 * configure: Regenerate.
652 * config.in: Regenerate.
653 * strings.c (get_char): Only call getc_unlocked if we have seen a
658 * configure.in (ALL_LINGUAS): Add zh_TW
659 * configure: Regenerate.
660 * po/zh_TW.po: New Chinese (traditional) translation.
664 * readelf.c (dump_relocations): Special case R_ALPHA_LITUSE.
668 * readelf.c (get_alpha_dynamic_type): New.
669 (get_dynamic_type): Call it.
673 * readelf.c (process_section_groups): Report group section
674 index. Check if the section member index is valid.
678 * addr2line.c (unwind_inlines): New flag for 'i' option.
679 (usage): Document '-i' option.
680 (long_options): Recognize '--inlines'.
681 (translate_addresses): Loop, calling bfd_find_inliner_info as
682 necessary and printing multiple output lines.
683 (main): Handle 'i' option.
684 * doc/binutils.texi (addr2line): Document '-i' option.
685 * NEWS: Mention new addr2line '-i' option.
689 * readelf.c (fetch_indirect_string): Display a warning message
690 when a corrupt DW_FORM_strp value is encountered.
692 (process_debug_info): Mention that the compilation unit offset is
693 being displayed in hexadecimal.
695 (display_debug_lines): Fix typo in name of .debug_line section.
699 * Makefile.am: Have 'all' depend on 'info'.
700 * Makefile.in: Regenerate.
704 * readelf.c (read_and_display_attr_value): Handle a DW_AT_encoding
705 value of DW_ATE_GNU_decimal_float.
709 * doc/Makefile.am (config.texi): Don't use $<.
710 * doc/Makefile.in: Regenerated.
714 * deflex.l: Ignore CRs
718 * acinclude.m4: Remove obsolete code.
719 * configure.in: Update AC_PREREQ.
720 * doc/Makefile.am (binutils_TEXINFOS): Define.
721 (config.texi): Depend on distributed files instead of built
723 (binutils.dvi, binutils.info): Remove unnecessary rules.
724 (DISTCLEANFILES): Remove.
725 (install-data-local): Renamed from install.
726 (info-local): Renamed from info.
727 * Makefile.in, aclocal.m4, config.in, configure,
728 doc/Makefile.in: Regenerated.
732 * readelf.c (get_ppc_dynamic_type): Display DT_PPC_GOT, not
737 * readelf.c: Fix a couple of obvious comment typos,
738 'debug_str' -> 'debug_ranges' and proecess' -> 'process'.
742 * readelf.c (dump_ia64_unwind): Get stamp with proper size.
746 * readelf.c (display_debug_lines): If pointer_size has not been
747 found then assume that it is 4 in order to prevent a seg fault
748 when process_extend_line_op attempts to read the line data.
752 * readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK.
753 (get_dynamic_type): Call the above.
757 * Update the address and phone number of the FSF organization in
758 the GPL notices in the following files:
759 aclocal.m4, addr2line.c, ar.c, arlex.l, arparse.y, arsup.c,
760 arsup.h, binemul.c, binemul.h, bucomm.c, bucomm.h, budbg.h,
761 budemang.c, budemang.h, coffdump.c, coffgrok.c, coffgrok.h,
762 cxxfilt.c, debug.c, debug.h, deflex.l, defparse.y, dlltool.c,
763 dlltool.h, dllwrap.c, emul_aix.c, emul_vanilla.c, filemode.c,
764 ieee.c, nlmconv.c, nlmconv.h, nlmheader.y, nm.c, objcopy.c,
765 objdump.c, prdbg.c, rclex.l, rcparse.y, rdcoff.c, rddbg.c,
766 readelf.c, rename.c, resbin.c, rescoff.c, resrc.c, resres.c,
767 size.c, srconv.c, stabs.c, strings.c, sysdump.c, sysinfo.y,
768 syslex.l, unwind-ia64.c, unwind-ia64.h, version.c, windres.c,
769 windres.h, winduni.c, winduni.h wrstabs.c, doc/fdl.texi
773 * objcopy.c (copy_file): Don't delete output upon error here.
774 (copy_main): Delete output upon error.
778 * dlltool.c (dtab): Remove empty function.
779 (process_duplicates): Remove calls to dtab().
783 * doc/binutils.texi (strip, objcopy): Clarify the description of
784 the "--strip-debug" option. Fix a typo.
788 * bucomm.c: Undo the last change.
789 * bucomm.h: Likewise.
793 * syslex.l (word, number, unit): Remove unused variables.
794 * nlmheader.y (keyword_tokens): Make static.
795 * coffdump.c (dump_coff_symbol, coff_dump): Make static.
796 * coffgrok.c (lofile, last_function_symbol, last_function_type,
797 last_struct, last_enum, cur_sfile): Make variables static.
798 * sysdump.c (getCHARS, fillup, getBARRAY, getINT, getBITS,
799 sysroff_swap_tr_in, sysroff_print_tr_out): Make static.
800 * sysinfo.y (writecode, it, code, repeat, oldrepeat, name, rdepth,
801 names, pnames): Likewise.
805 * ar.c (mri_mode): Make static.
806 * arsup.c (obfd, real_name, outfile): Likewise.
807 * binemul.c (ar_emul_create): Remove unused function.
808 (ar_emul_default_create): Likewise.
809 * binemul.h (ar_emul_create): Remove declaration.
810 (ar_emul_default_create): Likewise.
811 (struct bin_emulation_xfer_struct): Remove ar_create member.
812 * bucomm.c (report): Make static.
813 * bucomm.h (report): Remove declaration.
814 * cxxfilt.c (mbuffer): Make static.
815 (main): Use unsigned ints for some loop control variables.
816 * readelf.c: Make many global variables static.
817 * size.c (berkeley_format): Make static.
818 (long_options): Likewise.
819 * emul_aix.c (bin_aix_emulation): Remove ar_emul_default_create
820 structure initialiser.
821 (bin_aix5_emulation): Likewise.
822 * emul_vanilla.c (bin_vanilla_emulation): Likewise.
826 * syslex.l: Adjust top-of-file comment: this file is part of GNU
827 binutils, not GNU ld.
832 * objcopy.c (copy_archive): Initialise 'obfd' field of new
835 * objcopy.c (copy_usage): Fix description of -K switch.
837 * doc/binutils.texi (strip, objcopy): Fix description of -K
842 * readelf.c (display_debug_frames): Use data factor for
843 DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
847 * objdump.c (dump_section_header): Skip linker created section.
851 * objdump.c (dump_section_header): Support SEC_GROUP.
855 * readelf.c (debug_apply_rela_addends): Remove redundant %s from
860 * objcopy.c (copy_file): Issue an error message when attmepting to
861 copy an empty input file.
865 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
866 * configure.in: Include ../bfd/warning.m4 contents.
867 * Makefile.in: Regenerate.
868 * configure: Regenerate.
869 * doc/Makefile.in: Regenerate.
873 * Makefile.am: Run "make dep-am".
874 (syslex.o, sysinfo.o, arparse.o, arlex.o): Add -Wno-error to command.
875 (sysroff.o, defparse.o, deflex.o): Likewise.
876 (nlmheader.o, rcparse.o, rclex.o): Likewise.
877 * Makefile.in: Regenerate.
878 * aclocal.m4: Regenerate.
879 * config.in: Regenerate.
880 * configure: Regenerate.
884 * MAINTAINERS: Add myself as ix86 Intel mode maintainer.
889 * po/rw.po: New translation: Kinyarwanda.
890 * configure.in (ALL_LINGUAS): Add rw.
891 * configure: Regenerate.
895 * readelf.c (debug_apply_rela_addends): Reorder r_info as
896 necessary for 64-bit MIPS.
900 * doc/binutils.texi (readelf): Remove a duplicate paragraph.
905 * objdump.c (dump_symbols): Add a check to see if the section for
906 the symbol is chosen using process_section_p.
910 * NEWS: Mention new readelf options, "-N/--full-section-name"
911 and "-g/--section-groups".
913 * doc/binutils.texi: Document new readelf options,
914 "-N/--full-section-name" and "-g/--section-groups".
918 * readelf.c (do_full_section_name): New.
919 (options): Add "--full-section-name"/'N'.
920 (usage): Add -N/--full-section-name.
921 (parse_args): Handle 'N'.
922 (process_section_headers): Print out the full section name if
923 do_full_section_name isn't 0.
927 * configure.in: Add a check for <unistd.h> providing a prototype
928 for getopt() which is compatible with the one in
929 include/getopt.h. If so then define HAVE_DECL_GETOPT.
930 * configure: Regenerate.
931 * config.in (HAVE_DECL_GETOPT): Add.
932 * aclocal.m4: Regenerate.
933 * addr2line.c: Include "config.h" before "bfd.h" so that
934 HAVE_DECL_GETOPT is defined before getopt.h is included.
938 * doc/binutils.texi: Document new VAX disassembler-specific option
940 * NEWS: Mention the new option.
944 * MAINTAINERS: Add myself as H8300 maintainer.
948 * objdump.c (disassemble_bytes): Remove cast.
952 * BRANCHES: Add binutils-csl-arm-2005q1-branch and
953 binutils-2_16-branch.
957 * MAINTAINERS: Add myself as M88k maintainer.
961 * winduni.c (unicode_from_ascii): Don't declare variables
962 's' and 'w' if _WIN32. Use MultiByteToWideChar to set the unicode
967 * MAINTAINERS: Add myself as MSP430 maintainer.
971 * po/fr.po: Updated translation.
975 * MAINTAINERS: Add Daniel Jacobwitz to the blanket write
982 * binutils/readelf.c (get_arm_segment_type): New function.
983 (get_segment_type): Use it.
987 * objdump.c (objdump_print_addr): Avoid uninitialized warning.
991 * MAINTAINERS: Remove self as maintainer of x86 intel
997 * configure.in (werror): New switch: Add -Werror to the
998 compiler command line. Enabled by default. Disable via
1000 * configure: Regenerate.
1005 * objcopy.c (globalize_specific_list): New linked list of symbols
1006 to convert from local binding into global binding.
1007 (command_line_switch): Add OPTION_GLOBALIZE_SYMBOL and
1008 OPTION_GLOBALIZE_SYMBOLS.
1009 (copy_options): Add "globalize-symbol" and "globalize-symbols".
1010 (copy_usage): Document the new switches.
1011 (filter_symbols): Convert defined local symbols mentioned on the
1012 globalize_specific_list into global symbols.
1013 (copy_object): Perform actions if the globalize_specific_list is
1015 (copy_main): Handle new switches.
1016 * NEWS: Mention new feature.
1017 * doc/binutils.texi: Document new switches.
1021 * po/es.po: Commit new Spanish translation.
1023 * po/fr.po: Commit new French translation.
1027 * po/tr.po: Commit new Turkish translation.
1031 * po/fr.po: Updated French translation.
1035 * configure.in (ALL_LINGUAS): Add Romanian lingua "ro".
1036 * configure: Regenerate.
1037 * po/ro.po: New file.
1039 * po/ru.po: Updated file.
1043 * po/binutils.pot: Regenerate.
1047 * ar.c (remove_output): Use unlink_if_ordinary instead of unlink.
1048 * objcopy.c (copy_file): Likewise.
1049 (strip_main): Likewise.
1054 * objdump.c: Fix coding for DISASSEMBLER_NEEDS_RELOC:
1055 (struct objdump_disasm_info): Add 'reloc' field.
1056 (disassemble_bytes): Fix check for when an insn has a reloc
1057 associated with it. Improve comment explaining why the use of
1058 octets is wrong. Set the 'reloc' field in objdump_disasm_info
1060 (objdump_print_addr): Use new 'reloc' field to lookup the correct
1061 address for the symbol associated with the current instruction's
1063 (disassemble_info): Initialise 'reloc' field.
1067 * readelf.c (get_file_type, get_machine_name, get_osabi_name,
1068 get_segment_type, get_section_type_name, get_elf_class,
1069 get_data_encoding, get_group_flags, dynamic_section_mips_val,
1070 get_symbol_binding, get_symbol_type, get_TAG_name, get_FORM_name,
1071 get_AT_name, process_mips_specific, process_gnu_liblist,
1072 get_note_type, get_netbsd_elfcore_note_type): Use snprintf instead of
1073 sprintf where needed.
1074 (get_dynamic_type): Likewise. Increase buff to 64 bytes.
1075 (get_elf_section_flags): Increase buff to 33 bytes. Avoid
1077 (get_dynamic_flags): Renamed to...
1078 (print_dynamic_flags): ... this. Print the flags to stdout instead
1079 of returning them as string.
1080 (process_dynamic_section): Adjust caller.
1084 * readelf.c (display_debug_ranges): Print out offset for end of
1089 * dlltool.c: Warning fixes.
1090 * objdump.c: Likewise.
1094 * Makefile.am (syslex.o, sysinfo.o): Pass AM_CFLAGS to compiler.
1095 (syslex.o, sysinfo.o, dlltool.o, rescoff.o): Remove duplicate
1096 dependencies. Run "make dep-am".
1097 * nlmconv.c: Warning fixes.
1098 * readelf.c: Likewise.
1099 * srconv.c: Likewise.
1100 * sysdump.c: Likewise.
1101 * sysinfo.y: Likewise.
1102 * syslex.l: Likewise. Use yyleng instead of strlen, memcpy instead
1104 * Makefile.in: Regenerate.
1108 * objcopy.c (parse_flags): Replace SEC_SHARED with
1111 * objdump.c (dump_section_header): Dump SEC_TIC54X_BLOCK and
1112 SEC_TIC54X_CLINK for TI c54x only. Remove SEC_ARCH_BIT_0. Dump
1113 SEC_COFF_SHARED for COFF only.
1117 * Makefile.am: Run "make dep-am"
1118 * Makefile.in: Regenerate.
1119 * doc/Makefile.in: Regenerate.
1123 * readelf.c (BYTE_GET8): Delete. Replace uses with BYTE_GET.
1124 (byte_get_little_endian): Don't handle size of -8.
1125 (byte_get_signed, byte_get_big_endian): Likewise.
1126 (print_dec_vma, print_hex_vma): New functions.
1127 (print_vma): Use them. Return chars output.
1128 (get_dynamic_data): Return a bfd_vma array. Add ent_size parm.
1129 (process_symbol_table): Handle alpha and s390 .hash.
1133 * readelf.c (display_debug_loc): Print out offset for end of
1138 * Makefile.am (TOOL_PROGS): Add objdump.
1139 * Makefile.in: Regenerate.
1143 * deflex.l (YY_NO_UNPUT): Define.
1144 * rclex.l (YY_NO_UNPUT): Define.
1145 * rcparse.y (null_unichar): New static var.
1146 (res_null_text): Use it rather than attempting to init from wchar_t.
1147 * windres.c: Include assert.h and time.h before getopt.h.
1148 Include config.h and unistd.h too.
1152 * nlmconv.c: Provide a full prototype for the localtime() function
1153 in order to avoid a compile time warning.
1157 * readelf.c (group_count): Don't initialize it.
1158 (process_section_groups): Reurn 1 if we won't do unwind nor
1159 section groups. Set group_count to 0 before counting group
1160 sections and return 1 if there are no group sections. Reread
1161 SHT_SYMTAB/SHT_STRTAB sections only when needed. Don't skip
1163 (process_object): Only set do_unwind to 0 if
1164 process_section_groups return 0.
1168 * MAINTAINERS: Update my e-mail address.
1172 * MAINTAINERS: Add Paul Brook and Mark Mitchell as ARM (Symbian)
1177 * MAINTAINERS: Add self as maintainer of MAXQ.
1181 * readelf.c (eh_addr_size): New variable.
1182 (find_section): Move earlier in file. Return empty sections too.
1183 (process_program_headers): Use find_section to find .dynamic.
1184 (process_section_headers): Initialize eh_addr_size.
1185 (dump_ia64_unwind, slurp_ia64_unwind_table, ia64_process_unwind)
1186 (dump_hppa_unwind, slurp_hppa_unwind_table, hppa_process_unwind)
1187 (display_debug_frames): Use it instead of local addr_size variable.
1188 (size_of_encoded_value): Get pointer size from eh_addr_size rather
1193 * configure: Regenerate to track ../gettext.m4.
1197 * version.c (print_version): Bump the copyright date to 2005.
1201 * nm.c (display_rel_file): Read dynamic syms before calling
1202 bfd_get_synthetic_symtab.
1206 * dlltool.c (dump_iat): Remove unused function.
1207 (gen_exp_file): Remove #if 0'd code.
1208 (make_one_lib_file): Likewise.
1209 * srconv.c: Remove #if 0'd code throughout.
1210 * size.c (lprint_number): Remove.
1211 (print_berkeley_format): Remove #if 0'd code.
1212 * ar.c (do_quick_append): Remove declaration and definiton.
1213 (main): Remove #if 0'd code.
1214 * filemode.c (filemodestring): Remove #if 0'd function.
1215 * sysdump.c (unit_info_list): Remove function.
1216 (object_body_list): Likewise.
1217 (program_structure): Likewise.
1218 (debug_list): Likewise.
1219 (module): Remove #if 0'd code.
1223 * BRANCHES: Add binutils-2_15-branch.
1225 * MAINTAINERS: Document branch policy.
1226 * BRANCHES: New file.
1230 * NEWS: Make note of the new MIPS disassembly option "no-aliases".
1231 * doc/binutils.texi (objdump): Document the "no-aliases"
1237 * rcparse.y (RCDATA): Allow a filename to be supplied as the
1238 parameter. Parse it with define_rcdata_file().
1239 * resrc.c (define_rcdata_file): New function.
1240 * windres.h: Provide a prototype for the new function.
1242 * resrc.c (define_user_file): Fix typo by replacing "font file"
1247 * MAINTAINERS: Update my email address.
1251 * dlltool.c (set_dll_name_from_def): New function. Strip name
1252 to basename, with warning.
1254 (def_library): Likwise.
1255 (main): Strip arg of --dllname to basename, with warning.
1256 Only use basename of exp_name when inferring dll_name.
1261 * doc/binutils.texi (c++filt): Use uppercase CXXFILT in the
1262 footnote in order to prevent the sed script in the Makefile from
1263 converting it into c++filt.
1268 readelf.c (saved_base_address): Removed.
1269 (decode_64bit_range): Likewise.
1270 (decode_range): Likewise.
1271 (display_64bit_debug_ranges): Likewise.
1272 (debug_info): Add range_lists, num_range_lists and
1274 (read_and_display_attr_value): Handle do_debug_ranges.
1275 (process_debug_info): Likewise.
1276 (display_debug_ranges): Rewrite.
1277 (process_object): Free range_lists.
1281 * configure.in: Don't define SKIP_ZEROES.
1282 * configure: Regenerate.
1283 * objdump.c (disassemble_data): Set skip_zeroes and
1284 skip_zeroes_at_end in disasm_info to defaults.
1285 (DEFAULT_SKIP_ZEROES): Rename from SKIP_ZEROES and always define.
1286 (DEFAULT_SKIP_ZEROES_AT_END): Rename from SKIP_ZEROES_AT_END and
1288 (disassemble_bytes): Use skip_zeroes and skip_zeroes_at_end from
1289 objdump_disasm_info.
1293 * readelf.c (display_debug_loc): Display base address
1294 specifiers. Always output <End of list>.
1298 * readelf.c (have_frame_base): New.
1299 (need_base_address): Likewise.
1300 (saved_base_address): Likewise.
1301 (decode_location_expression): Return 1 if DW_AT_frame_base is
1303 (debug_info): Add base_address and a have_frame_base pointer.
1304 (read_and_display_attr_value): Replace saved_DW_AT_low_pc with
1305 saved_base_address. Record base address. Set have_frame_base.
1306 Record if a location list has DW_AT_frame_base. Display if a
1307 location expression has no DW_AT_frame_base but needs one. Set
1308 saved_base_address only if needed.
1309 (process_debug_info): Clear have_frame_base, saved_base_address
1310 and set need_base_address.
1311 (display_debug_loc): Display if a location expression has no
1312 DW_AT_frame_base but needs one. Display if start >= end. Don't
1313 adjust for section address. Properly handle base address.
1314 (process_object): Free the have_frame_base pointer in
1319 * readelf.c (display_debug_loc): Display offsets for hole and
1321 (display_debug_str): Add a newline at the end.
1326 * nlmconv.c (main): Only store the basename of the output filename
1327 in the module table.
1332 * readelf.c (process_debug_info): New.
1333 (debug_info): Add num_loc_offsets, loc_offsets and
1335 (get_debug_info): Use process_debug_info.
1336 (display_debug_loc): Properly handle location list. Warn if bad
1337 location lists are encoutnered.
1338 (read_and_process_attr_value): New.
1339 (read_and_display_attr_value): Use "%lx" for DW_FORM_data4.
1340 (display_debug_info): Use process_debug_info.
1341 (process_object): Also free loc_offsets in debug_information.
1343 For older changes see ChangeLog-2004
1349 version-control: never