3 * doc/binutils.texi: Add missing parenthesis.
7 * objcopy.c: Add --prefix-symbols=<prefix> option to rename all
8 symbols by adding the given prefix to the begining of the symbol
9 name. This is useful to provide name space seperation regardless
10 of how the object file was created. Added --prefix-sections=
11 <prefix> and --prefix-alloc-sections=<prefix> options to rename all
12 sections (or all sections with the alloc flag set) by adding the given
13 prefix to the begining of the symbol name.
14 * NEWS: Mention this new feature.
15 * doc/binutils.texi: Document this new feature.
19 * dlltool.c (mcore_elf_gen_out_file): Replace all occurrences of
20 dyn_string_append with dyn_string_append_cstr.
22 * emul_aix.c (ar_emul_aix_create): Remove unused function.
26 * readelf.h (get_TAG_name, get_AT_name,
27 read_and_display_attr_value): Add support for UPC extensions to
29 * NEWS: Mention this new support.
33 * NEWS: Mention that bfd no longer declares a "boolean" type.
37 * readelf.c (process_program_headers): When setting loadaddr, don't
38 assume segment size is 4k. Use p_align instead.
39 (loadaddr): Change from int to long.
40 (dynamic_addr, dynamic_info, version_info): Likewise.
41 (process_dynamic_segment <syminsz>): Likewise.
42 (process_dynamic_segment): Adjust print format string.
43 (rela_addr, rela_size): Delete.
44 (process_relocs): Formatting.
48 * configure.in (OBJDUMP_DEFS): Define SKIP_ZEROES as 16 for IA-64.
49 * configure: Regenerate.
53 * MAINTAINERS: Change e-mail address back to airs.com.
57 * MAINTAINERS: Add self.
61 * addr2line.c, ar.c, arsup.c, binemul.c, binemul.h, bucomm.c, bucomm.h,
62 budbg.h, debug.c, debug.h, dlltool.c, emul_aix.c, ieee.c, nlmconv.c,
63 nlmconv.h, nlmheader.y, nm.c, objcopy.c, objdump.c, prdbg.c, rdcoff.c,
64 rddbg.c, readelf.c, rename.c, size.c, stabs.c, strings.c,
65 unwind-ia64.h, wrstabs.c: Replace boolean with bfd_boolean, true with
66 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars
67 with TRUE/FALSE. Formatting.
71 * readelf.c Replace occurrences of Elf32_Internal_* and
72 Elf64_Internal_* with Elf_Internal_*.
73 (slurp_rel_relocs): Change Elf_Internal_Rel to Elf_Internal_Rela.
75 (dump_relocations): Remove relas variable, change Elf_Internal_Rel to
80 * size.c (usage): Fix typo describing switch for hex format.
84 * testsuite/binutils-all/objcopy.exp: Disable tic4x from test
85 * testsuite/binutils-all/objdump.exp: Setup proper values for tic4x
90 * readelf.c (process_program_headers): Add comment about return
91 value. Ensure that 0 is returned if the headers are not loaded.
92 (process_file): If process_section_headers failed to load the
93 headers disable any tests that rely upon them. Similarly for
94 process_program_headers.
98 * po/da.po: Updated Danish translation.
102 * rddbg.c (read_section_stabs_debugging_info): Also recognize
103 LC_SYMTAB.stab/LC_SYMTAB.stabstr as a valid pair of sections.
107 * MAINTAINERS: Reinstate DJ Delorie as COFF maintainer. Drop COFF from
112 * MAINTAINERS: Replace DJ Delorie as PE/COFF maintainer.
116 * configure.in (ALL_LINGUAS): Add 'da'.
117 * configure: Regenerate.
118 * po/da.po: New Danish translation.
120 * readelf.c (get_symbol_index_type): Revert part of previous
121 patch: Display unknown symbol types in decimal, not hex.
125 * dlltool.c (add_excludes): Don't prefix excluded fastcall
126 symbols with underscore.
127 (xlate): Ignore add_underscore for decorated fastcall symbols.
131 * deflex.l: Accept '@' as first character of an ID.
132 * dlltool.c (gen_exp_file): Use existing '@' prefix rather than
133 ASM_PREFIX for fastcall symbols.
134 (scan_drectve_symbols): Handle fastcall symbols when generating
135 undecorated aliases for symbols in drectve section.
136 (scan_filtered_symbols): Likewise, with export-all.
137 (xlate): Likewise, with --kill-at.
138 (make_imp_label): New function to handle fastcall symbols
140 (make_one_lib_file): Use make_imp_label instead of make_label
145 * MAINTAINERS: Add self as TIC4X maintainer.
149 * readelf.c (get_symbol_index_type): Add hex number to
150 PROCESSOR-specific, OS-specific, reserved and unknown symbol
155 * readelf.c (byte_get_little_endian): Comment typo fix.
156 (print_symbol): Constify "symbol" arg. Don't pass "symbol" to printf
157 as the format string.
158 (dump_relocations): Correct section sym names.
159 (process_section_headers): Clear symtab_shndx_hdr.
160 (read_and_display_attr_value): Don't pass indirect string to printf
161 as the format string.
162 (display_debug_frames): Indicate when zero terminator found. Decode
163 DW_EH_PE_pcrel addresses.
167 * configure.in: Define SKIP_ZEROES as 32 for tic4x target in
168 order to ensure proper disassembly of the valid 0-value opcode.
169 * configure: Regenerate.
170 * aclocal.m4: Regenerate.
171 * config.in: Regenerate.
172 * configure.in: Regenerate.
173 * doc/Makefile.in: Regenerate.
174 * po/binutils.pot: Regenerate.
178 * MAINTAINERS: Add self as SH maintainer.
182 * doc/binutils.texi (objdump): Document -z and move the entry for
183 --disassemble-zeroes to the end of the options section (for `z').
187 * MAINTAINERS: Discontinue Hans-Peter Nilsson as SH maintainer.
191 * objdump.c (dump_data): Correct addr_offset for opb != 1.
195 * bucomm.c (list_supported_targets): Use bfd_target_list.
197 * objcopy.c (copy_file): Report ambiguous bfd_object matches, and
198 other object errors in preference to bfd_core errors.
202 * Makefile.am: Run "make dep-am".
203 * objdump.c: #include "bfdver.h".
204 * version.c: Likewise.
205 * Makefile.in: Regenerate.
206 * config.in: Regenerate.
207 * configure: Regenerate.
208 * po/POTFILES.in: Regenerate.
212 * readelf.c (display_debug_info): Ignore empty .rela.debug_info
213 sections. Allow relocations against the absolute symbol. Don't
214 use the value in compunit.cu_abbrev_offset if we found a RELA
219 * addr2line.c (slurp_symtab): Read in dynamic symbols if no
220 ordinary ones are available.
224 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_4120,
225 E_MIPS_MACH_5400 and E_MIPS_MACH_5500.
229 * Makefile.am (CFILES): Add cxxfilt.c.
230 (cxxfilt_SOURCES): Now just cxxfilt.c $(BULIBS).
231 (cxxfilt_LDADD): Delete.
232 Remove all references to underscore.c.
234 * configure.in: Define TARGET_PREPENDS_UNDERSCORE in
235 config.h from $UNDERSCORE, rather than AC_SUBSTing it.
236 * binutils/cxxfilt.c: Moved here from gcc/cp, minor
237 adjustments to fit into binutils framework.
238 * configure, config.in, Makefile.in, doc/Makefile.in: Regenerate.
242 * readelf.c (decode_location_expression): DW_OP_calli -> DW_OP_call_ref
243 Handle DW_OP_GNU_push_tls_address.
247 * po/tr.po: Updated Turkish translation.
251 * MAINTAINERS: Add Ben Elliston as a maintainer for configure and
252 testsuite changes. Add paragraphs about testsuite and config
257 * readelf.c (get_machine_flags): Remove redundant reference to
262 * objdump.c (dump_bfd): Restore lines accidentally deleted in
267 * objdump.c (dump_headers): Add printing of HAS_LOAD_PAGE flag.
268 (dump_bfd_header): Likewise.
272 * nm.c: Revert last change.
276 * nm.c (display_rel_file): Don't report "no symbols" as an error.
277 * objdump.c (slurp_symtab): Likewise.
278 (slurp_dynamic_symtab): Likewise.
279 (dump_symbols): Likewise. Do print "no symbols" to stdout.
283 * MAINTAINERS: Change my mailing address.
287 * MAINTAINERS: Add Dave Anglin as HPPA co-maintainer.
291 * MAINTAINERS: Add Jeff Law as (maintainance) maintainer for
296 * readelf.c (parse_args): Change debug_dump_opt to static.
300 * stabs.c (parse_stab_argtype): Pass length of physname to
301 stab_demangle_argtypes.
302 (stab_demangle_argtypes): Add new parameter - length of physname.
303 Pass length of physname on to stab_demangle_prefix.
304 (stab_demangle_prefix): Add new parameter - length of physname.
305 Use length of physname (if supplied) to compute end of function
310 * readelf.c: Include elf/i370.h.
311 (dump_relocations): Handle EM_S370.
312 (dynamic_segment_parisc_val): Print \n.
313 (process_dynamic_segment <DT_BIND_NOW>): Here too.
317 * nm.c (usage): Change 'gnu-new-abi' to 'gnu-v3'.
318 * objdump.c (usage): Likewise.
319 * doc/binutils.texi: Likewise.
323 * rcparse.y (acc_entry): Don't warn about ALT use with
328 * objcopy.c (copy_object): Don't warn about the unsupported
329 architecture unless the input target is defaulted or the
330 output architecture is different from the input.
334 * po/sv.po: Updated Swedish translation.
338 * prdbg.c (pr_fix_visibility): Remove assert.
342 * addr2line.c (process_file): Rename parameter 'filename' to
343 'file_name' in order to avoid shadowing global symbol of the
349 * readelf.c (OPTION_DEBUG_DUMP): Define.
351 (usage): Update help.
352 (parse_args): Handle --debug-dump separately from -w.
353 * doc/binutils.texi (readelf): Update documentation.
357 * po/es.po: Updated Spanish translation.
358 * po/fr.po: Updated French translation.
362 * po/es.po: Updated Spanish translation.
366 * Makefile.am: Run "make dep-am".
367 * Makefile.in: Regenerate.
371 * po/fr.po: Updated French translation.
375 * doc/binutils.texi (addr2line <man synopsis>): Correct brackets.
379 * budemang.c: Include config.h and string.h/strings.h.
384 * readelf.c: Include "elf/ip2k.h".
385 (guess_is_rela): Add support for EM_IP2K and EM_IP2K_OLD.
386 (dump_relocations): Likewise.
387 (get_machine_name): Likewise.
388 * NEWS: Mention IP2K support.
392 * NEWS: Add 'Changes in 2.13'.
396 * readelf.c (get_dynamic_type): Handle DT_GNU_PRELINKED,
397 DT_GNU_CONFLICT* and DT_GNU_LIBLISZ*.
398 (get_section_type_name): Handle SHT_GNU_LIBLIST.
399 (process_dynamic_segment): Handle DT_GNU_CONFLICTSZ,
400 DT_GNU_LIBLISTSZ and DT_GNU_PRELINKED.
401 (process_gnu_liblist): New.
402 (process_file): Call it.
406 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
407 * Makefile.in: Regenerate.
411 * budemang.c: New file, "demangle" function.
412 * budemang.h: New file.
413 * addr2line.c (translate_addresses): Use "demangle".
414 * nm.c (print_symname): Likewise.
415 * objdump.c (objdump_print_symname): Likewise.
416 (dump_symbols): Likewise. Also, don't use bfd_asymbol_name macro
417 here since that obfuscates.
418 * rdcoff.c: Don't #include demangle.h.
419 * Makefile.am (CFILES): Add budemang.c, emul_aix.c,
420 emul_vanilla.c. Remove emul_$(EMULATION).c. Sort.
421 (HFILES): Add budemang.h. Sort.
422 (nm_new_SOURCES, objdump_SOURCES, addr2line_SOURCES): Add budemang.c.
424 * Makefile.in: Regenerate.
428 * readelf.c: Include "elf/vax.h".
429 (guess_is_rela): Move EM_VAX from unknown to RELA case.
430 (dump_relocations): Handle VAX relocations.
431 (get_machine_flags): Handle VAX machine flags.
435 * readelf.c (dump_relocations): Handle 68HC11/68HC12 relocations.
439 * MAINTAINERS: Remove Tom Rix from d10v and pcc maintainerships.
443 * nm.c (print_symname): When demangling, strip leading dots from
444 symbol names to avoid confusing the demangler.
448 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
449 * Makefile.in: Regenerated.
453 * configure.in: Quote bu_cv_have_fopen64.
454 * configure: Regenerate.
458 * configure.in: Check for strcoll.
459 * configure: Regenerate.
460 * config.in: Regenerate.
461 * nm.c (main): Set locale for LC_COLLATE category.
462 (non_numeric_forward): Use strcoll if available.
466 * MAINTAINERS: Add self as fr30 and frv maintainer.
470 * nm.c: Include "elf/common.h".
471 (extended_symbol_info): Add elfinfo, a pointer to
473 (SYM_SIZE): Use elfinfo if it is not NULL.
474 (get_symbol_type): New function.
475 (display_archive): Set print_width for each archive member.
476 (display_file): Likewise.
477 (display_rel_file): Don't set print_width here.
478 (print_object_filename_sysv): Handle print_width.
479 (print_archive_member_sysv): Likewise.
480 (print_symbols): Pass (bfd_vma) 0 to print_symbol.
481 (print_symbol): Set the elfinfo field in extended_symbol_info
483 (print_object_filename_sysv): Fix the output format.
484 (print_symbol_info_sysv): Print type and section for ELF.
488 * nm.c (print_size_symbols): Remove assignment, which makes
489 the symbol's size equal to its value when --size-sort is
494 From Catherine Moore:
495 * readelf.c (elf/frv.h): #include it.
496 (guess_is_rela): Support EM_CYGNUS_FRV.
497 (dump_relocations): Ditto.
498 (get_machine_name): Ditto.
499 * Makefile.am (readelf.o): add dependency on $(INCDIR)/elf/frv.h.
503 * readelf.c (get_file_header): Only read the first section header if
508 * nm.c (print_size): New variable. Initialize to 0.
509 (long_options): Add 'S'/"print-size".
511 (print_symbol_info_bsd): Print size only if print_size is not
514 * doc/binutils.texi: Document -S/--print-size.
518 * nm.c (struct extended_symbol_info): New strcuture: Add the size
519 of the symbols to the information provided by the symbol_info
521 (print_symbols): Pass the symbol size to print_symbol.
522 (print_size_symbols): Pass the symbol size to print_symbol.
523 (print_symbol): Extra argument: The size of the symbol. Store
524 this in the extended_symbol_info structure.
525 (print_symbol_info): Change type of info parameter to
526 extended_symbol_info. Display the size, if known.
527 (print_symbol_info_posix): Likewise.
528 (print_symbol_info_sysv): Likewise.
532 * Makefile.am: Run "make dep-am".
533 * Makefile.in: Regenerate.
534 * doc/Makefile.in: Regnerate.
536 * bucomm.c: Replace CONST with const.
538 * objdump.c: Likewise.
542 * readelf.c (DW_CFA_GNU_args_size): Don't define.
543 (DW_CFA_GNU_negative_offset_extended): Likewise.
544 (DW_CFA_GNU_window_save): Likewise.
545 (display_debug_frames): Handle DW_CFA_offset_extended_sf,
546 DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
550 * nm.c: When computing size of symbols for an ELF target use the
555 * testsuite/binutils-all/objcopy.exp: clear xfail for
557 * testsuite/binutils-all/hppa/objdump.exp: Return if
562 * objcopy.c (copy_section): Don't copy SEC_GROUP sections.
566 * objdump.c: Fix formatting.
570 * MAINTAINERS: Add self as M68k maintainer.
574 * readelf.c: Modified/Added DLX elf support.
578 * arsup.c: Fix formatting.
579 * debug.c (debug_record_label): Add missing colon to error
581 * ieee.c (parse_ieee_ty): Fix spelling typo.
582 * readelf.c (process_program_headers): Remove English assumption
583 about making a plural word.
584 (process_section_headers): Likewise.
585 (process_relocs): Allow quotes to be translated.
586 (process_unwind): Likewise,
587 (process_mips_specific): Improve error message.
588 (get_note_type): Fix spelling typo.
590 * configure.in (ALL_LINGUAS): Add sv
591 * po/sv.po: New file.
595 * unwind-ia64.c (unw_print_brmask): Don't use sprintf.
596 (unw_print_grmask): Likewise.
597 (unw_print_frmask): Likewise.
601 * arsup.c: Remove ARGSUSED.
604 * nlmconv.c: Likewise.
607 * wrstabs.c: Likewise.
611 * arlex.l: Use #include "" instead of <> for local header files.
612 * coffdump.c: Likewise.
613 * coffgrok.c: Likewise.
614 * nlmconv.c: Likewise.
615 * nlmheader.y: Likewise.
616 * srconv.c: Likewise.
617 * strings.c: Likewise.
618 * sysdump.c: Likewise.
619 * unwind-ia64.h: Likewise.
620 * windres.h: Likewise.
621 * winduni.h: Likewise.
625 * MAINTAINERS: Add self as the d10v maintainer.
629 * configure.in: Builds dlltool for i386-netbsdpe.
630 * configure: Regenerate.
634 * size.c: Fix formatting.
635 * srconv.c: Likewise.
637 * sysdump.c: Likewise.
638 * unwind-ia64.c: Likewise.
639 * wrstabs.c: Likewise.
643 * readelf.c (get_segment_type): Add PT_TLS.
644 (get_elf_section_flags): Add SHF_TLS.
645 (get_dynamic_flags): Optimize. Add DF_STATIC_TLS.
646 (process_dynamic_segment): Use puts instead of printf.
647 (get_symbol_type): Support STT_TLS.
648 * objdump.c (dump_section_header): Remove SEC_CONSTRUCTOR_TEXT,
649 SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS.
650 Add SEC_THREAD_LOCAL.
654 * rdcoff.c: Fix formatting.
656 * readelf.c: Likewise.
657 * rename.c: Likewise.
658 * resbin.c: Likewise.
660 * resres.c: Likewise.
664 * filemode.c: Fix formatting.
666 * is-ranlib.c: Likewise.
667 * is-strip.c: Likewise.
668 * maybe-ranlib.c: Likewise.
669 * maybe-strip.c: Likewise.
670 * nlmconv.c: Likewise.
672 * not-ranlib.c: Likewise.
673 * not-strip.c: Likewise.
674 * objcopy.c: Likewise.
675 * objdump.c: Likewise.
679 * objdump.c (dump_headers): Fix output formatting for ELF32
680 architectures in a BFD64 enabled toolchain.
684 * debug.c: Fix formatting.
686 * dlltool.c: Likewise.
687 * dllwrap.c: Likewise.
688 * emul_aix.c: Likewise.
689 * emul_vanilla.c: Likewise.
693 * addr2line.c: Fix formatting.
697 * binemul.c: Likewise.
698 * binemul.h: Likewise.
699 * bucomm.c: Likewise.
700 * coffdump.c: Likewise.
701 * coffgrok.c: Likewise.
702 * coffgrok.h: Likewise.
706 * MAINTAINERS: Add myself as the second AVR port maintainer.
710 * MAINTAINERS: Update my email address.
714 * MAINTAINERS: Add Jason Thorpe as VAX maintainer.
718 * configure.in: Replace `*pe' with `pe' throughout.
719 * configure: Regenerate.
723 * Makefile.am: Honour DESTDIR.
724 * Makefile.in: Regenerate.
728 * dlltool.c (process_def_file): Add missing prototype.
729 (new_directive, assemble_file, main): Likewise.
730 (process_def_file, new_directive): Make static.
731 (inform): Rewrite using VA_FIXEDARG.
732 * dllwrap.c (mybasename): Add missing prototype.
733 (strhash, main): Likewise.
734 (inform): Rewrite using VA_FIXEDARG.
736 (cleanup_and_exit): Use old style function definition.
738 * windres.c (define_resource): Use one memset to clear all of
741 * rcparse.y: Remove newcmd rule. Move rcparse_discard_strings
742 call to rules that need no lookahead. Check for no lookahead.
746 * rclex.l (get_string): Correct "strings" list handling.
747 * resrc.c (read_rc_file): Discard strings.
751 * ar.c (replace_members): Remove unused var. Formatting fix.
752 * binemul.c (ar_emul_default_parse_arg): Add ATTRIBUTE_UNUSED.
754 * MAINTAINERS: Sort port maintainers by CPU.
758 * size.c (display_archive): Add last_arfile and code to close archives.
762 * nm.c (print_symbol): Check returned filename from
763 bfd_find_nearest_line is non-NULL.
767 * readelf.c (get_AT_name): Handle DW_AT_GNU_vector.
771 * MAINTAINERS: Changed my email address.
775 * arparse.y: Fix syntax warning.
779 * readelf.c (fetch_location_list): Remove unused function.
781 * readelf.c (process_corefile_note_segment): Catch corrupt notes
782 and display a warning message, then exit the loop.
784 * rcparse.y: Set MEMFLAG_DISCARDABLE by default.
788 * resrc.c (write_rc_dialog): If charset is non-default value
789 display all of the DIALOGEX parameters.
793 * rcparse.y: Allow two to five parameter in FONT statement of
795 * resbin.c (bin_to_res_dialog): Fixed read/write code for dialogex
797 (res_to_bin_dialog): Likewise.
798 * windres.h: Added misssing charset variable to dialog_ex
803 * rcparse.y: Set MEMFLAG_PURE by default.
807 * rcparse.y: CLASS definitions in DIALOG resources
809 Fix typo in BEDIT warning.
810 Don't add default dialog style when explicit style specified.
811 Add WS_CAPTION dialog style if CAPTION is specified.
813 * rclex.l (handle_quotes): "\xhex" encoding in strings corrected.
814 (handle_quotes) "\a" escape (used for right justified key
815 definitions in menus) is encodes as binary 8.
817 * resrc.c (write_rc_dialog): Print style even if it is 0.
818 (write_rc_directory): Fix overlooked sublang shift bug.
819 (bin_to_res_dialog): Don't print empty dialog caption.
821 * resbin.c (bin_to_res_dialog): Use signature to identify
824 * windres.c (main): Set default LANGUAGE to english/us.
828 * resrc.c: print CLASS names in quotes
832 * MAINTAINERS: Update my email address.
836 * dep-in.sed: Cope with absolute paths.
837 * Makefile.am (dep.sed): Subst TOPDIR.
839 * Makefile.in: Regenerate.
843 * MAINTAINERS: Update my email address.
847 * Makefile.am: Run "make dep-am".
848 * Makefile.in: Regenerate.
849 * doc/Makefile.in: Regenerate.
850 * po/POTFILES.in: Regenerate.
851 * aclocal.m4: Regenerate.
852 * config.in: Regenerate.
853 * configure: Regenerate.
857 * readelf.c: Add support for displaying dwarf2 location lists.
858 (do_debug_loc, debug_loc_section, debug_loc_size): New.
859 (parse_args): Use 'O' as shorthand for displaying location list
861 (process_section_headers): Handle debug_loc as well.
862 (load_debug_loc): New.
863 (free_debug_loc): New.
864 (fetch_location_list): New.
865 (display_debug_loc): New.
866 (display_debug_info): Call load_debug_loc and free_debug_loc.
867 (debug_displays): We can display .debug_loc now, too.
868 (usage): Update usage string.
869 (read_and_display_attr_value): Note location lists, but don't
874 * Makefile.am: Add binutils emulation support.
875 * configure.in: Same.
876 * configure.tgt: New file. Same.
877 * ar.c (main): Use ar_emul_parse_arg.
878 (usage): Use ar_emul_usage.
879 (replace_members): Use ar_emul_replace, ar_emul_append.
880 * binemul.c: New file. Define the binutils emulation
881 layer. Define default methods.
882 * binemul.h: New file. Binutils emulation layer header file.
883 * emul_aix.c: New file. AIX binutils emulation.
884 * emul_vanilla.c: New file. Default binutils emulation.
885 * Makefile.in: Regenerate.
890 * po/fr.po: Updated version.
894 * po/fr.po: Updated version.
898 * README: Update some version numbers.
902 * doc/binutils.texi (Target Selection): Fix LD crossreferences.
903 (Architecture Selection): Likewise.
907 * dlltool.c (gen_exp_file): Take into account --kill-at (-k) while
908 generating .exp file.
912 * readelf.c (dump_relocations): Fix typo.
916 * NEWS: Mark 2.12 branch.
920 * readelf.c (dump_relocations): Display 2nd and 3rd reloc
921 types for 64-bit MIPS. Narrow some fields for 80-char
923 (dump_relocations): Change spelling from 'unrecognised'
925 (decode_ARM_machine_flags): Likewise.
926 (parse_args): Likewise.
927 (read_and_display_attr_value): Likewise.
928 (display_debug_section): Likewise.
932 * NEWS: Mention support for MMIX.
936 * readelf.c (get_machine_flags): Recognize EF_M68000.
940 * MAINTAINERS: Added self as MN10300 co-maintainer.
944 * readelf.c (get_ppc64_dynamic_type): Handle DT_PPC64_OPD and
949 * MAINTAINERS: List myself as branch maintainer.
953 * configure: Regenerate.
954 * objcopy.c: Update copyright date.
955 * doc/Makefile.in: Regenerate.
959 * nlmconv.c: Back out localtime PARAMS change.
963 * objcopy.c (MKDIR): Define.
964 (copy_archive): Make name_list.name const. Use MKDIR.
965 Handle duplicate files in archives by making more temp dirs.
969 * coffdump.c: Include "getopt.h" after "bucomm.h"
970 so that macros are defined correctly.
971 * nlmconv.c: Add PARAMS ((const time_t *)) to localtime
972 prototype. Prototype main.
973 * nlmheader.y: Add PARAMS ((int)) to strerror prototype.
977 * MAINTAINERS: Added self as SH co-maintainer.
981 * po/tr.po: Updated translation.
985 * Makefile.am: Run "make dep-am"
986 * Makefile.in: Regenerate.
990 * nm.c (print_value): Mark abfd unused.
994 * unwind-ia64.c (unw_decoder): Change second argument
995 to unsigned int, to match function prototypes.
999 * objdump.c: Include "getopt.h" after "bucomm.h" so that
1000 __GNU_LIBRARY__ will be defined.
1005 * configure: Regenerated.
1009 * doc/Makefile.am (install): Depend on install-info.
1010 * doc/Makefile.in: Regenerate.
1014 * objcopy.c (strip_usage): Document -d as an alias
1017 * size.c (usage): Document [-t | --totals] options.
1018 (long_options): Add --totals option.
1019 (main): If the [-t | --totals] option is specified and
1020 the output format is Berkeley-style, print the total
1021 text, data, and bss sizes of all objects listed.
1022 (print_berkeley_format): If the [-t | --totals] option
1023 is specified, track the total text, data, and bss
1025 * doc/binutils.texi (size): Document [-t | --totals] options.
1026 (strip): Document -d as an alias for --strip-debug.
1027 * NEWS: Mention new feature of size.
1031 * po/fr.po: Updated version.
1032 * po/es.po: Updated version.
1036 * addr2line.c (usage): Update text to provide verbose
1037 description of the command line options.
1038 * ar.c (usage): Update text to provide verbose
1039 description of the command line options.
1040 (main): Accept -h and -H when running as ranlib.
1041 * coffdump.c (show_usage): Update text to provide verbose
1042 description of the command line options.
1043 * dlltool.c (main): Accept -H as an alias for --help.
1044 * nlmconv.c (show_usage): Update text to provide verbose
1045 description of the command line options.
1046 * nm.c (usage): Replace OPTIONS with option(s).
1047 (main): Accept -H as an alias for --help.
1048 * objcopy.c (strip_main): Accept -H as an alias for --help.
1049 * objdump.c (main): Accept -v as an alias for --verbose.
1050 * readelf.c (usage): Adjust format to match style used in
1052 * size.c (usage): Update text to provide verbose description
1053 of the command line options.
1054 (main): Accept -v, -h and -H as command line options.
1055 * srconv.c (show_usage): Update text to provide verbose
1056 description of the command line options.
1057 * strings.c (main): Accept -H and -v as command line options.
1058 (usage): Update text to provide verbose description of the
1059 command line options.
1060 * sysdump.c (show_usage): Update text to provide verbose
1061 description of the command line options.
1062 * windres.c (usage): Adjust format to match style used in
1065 * coffdump.c: Fix formatting.
1066 * nlmconv.c: Fix formatting.
1067 * srconv.c: Fix formatting.
1068 * sysdump.c: Fix formatting.
1072 * Makefile.am: Run "make dep-am".
1073 * Makefile.in: Regenerate.
1077 * version.c (print_version): Update year.
1081 * readelf.c (get_machine_name): Handle EM_PPC64.
1082 (guess_is_rela): Here too.
1086 * po/binutils.pot: Regenerate.
1087 * po/fr.po: Regenerate.
1088 * po/tr.po: Regenerate.
1092 * po/tr.po: Import new version.
1096 * readelf.c (get_ppc64_dynamic_type): New.
1097 (get_dynamic_type): Call it.
1101 * objcopy.c (copy_usage): Use "options" instead of "switches".
1102 (strip_usage): Use "options" instead of "switches".
1103 * doc/binutils.texi (dlltool): Refer to "options" instead of
1108 * MAINTAINERS: Add self as co-maintainer for the ARM code.
1112 * po/es.po: Import from translation project.
1113 * configure.in (ALL_LINGUAS): Add es.
1114 * configure: Regenerate.
1118 * readelf.c (get_netbsd_elfcore_note_type): Use
1119 NT_NETBSDCORE_PROCINFO and NT_NETBSDCORE_FIRSTMACH.
1123 * readelf.c: Update copyright years.
1124 (get_note_type): Return a const char *.
1125 (get_netbsd_elfcore_note_type): New function.
1126 (process_note): Use get_netbsd_elfcore_note_type to get
1127 the note type string for NetBSD ELF core files.
1131 * readelf.c (get_ia64_segment_type): Add support for macros.
1132 (get_segment_type): Add support for IA64 specific macros.
1136 * readelf.c (print_symbol): New function: Print a formatted symbol
1137 name. If --wide is specified do not truncate it.
1138 (dump_relocations): Use print_symbol() to print symbol names.
1139 (process_symbol_table): Likewise.
1140 (process_syminfo): Likewise.
1141 (process_mips_specific): Likewise.
1142 (usage): Document new feature of --wide switch.
1143 * doc/binutils.texi (objdump): Document additional behaviour of
1148 * objcopy.c (copy_file): Accept corefiles (format bfd_core).
1149 (copy_object): Don't set the start address or flags of a core file.
1150 (copy_section): Don't relocate a core file. Don't copy contents
1151 if the input section has the contents flag set, but the output
1152 section does not (which happens with the fake 'note' pseudo-
1153 sections that BFD creates for corefiles).
1157 * readelf.c (get_machine_flags): Recognize header flags for ABI and
1158 ASE extensions. More robust code for ISA checking. Ignore empty fields
1159 in header flags for GNU extensions.
1163 * objcopy.c (copy_archive): Set output bfd format outside the loop.
1167 * po/ja.po: Import from translation project.
1168 * configure.in (ALL_LINGUAS): Add ja.
1169 * configure: Regenerate.
1173 * addr2line.c (main): Protoype.
1174 * ar.c (main): Protoype.
1175 * nm.c (main): Protoype.
1176 * objcopy.c (main): Protoype.
1177 * objdump.c (main): Protoype.
1178 * size.c (main): Protoype.
1179 * strings.c (main): Protoype.
1183 * readelf.c (symtab_shndx_hdr): New global.
1184 (SECTION_HEADER_INDEX): Define.
1185 (SECTION_HEADER_NUM): Define.
1186 (SECTION_HEADER): Define.
1187 (GET_ELF_SYMBOLS): Pass two params rather than three.
1188 (get_32bit_elf_symbols): Take file and section args. Read and
1189 use SHT_SYMTAB_SHNDX.
1190 (get_64bit_elf_symbols): Likewise.
1191 (dump_relocations): Use SECTION_HEADER to index "section_headers".
1192 (process_section_headers): Likewise. Use SECTION_HEADER_NUM too.
1193 Remember symtab_shdx_hdr.
1194 (process_program_headers): Scan from index 1 for segment map.
1195 (slurp_ia64_unwind_table): Use SECTION_HEADER to index
1197 (process_relocs): Likewise. Also adjust call to GET_ELF_SYMBOLS.
1198 (process_unwind): Likewise.
1199 (process_version_sections): Likewise.
1200 (process_symbol_table): Likewise.
1201 (display_debug_info): Likewise.
1202 (process_dynamic_segment): Fake up a symtab section for changed
1204 (get_symbol_index_type): Check SHN_LOOS before SHN_LORESERVE.
1205 (process_program_headers): Kill signed/unsigned warning.
1206 (load_debug_str): Likewise.
1207 (display_debug_info): Likewise.
1211 * readelf.c (get_segment_type): Support PT_GNU_EH_FRAME.
1215 * readelf.c (process_file_header): Print extended e_shnum and
1216 e_shdtrndx values. Set elf_header values for same.
1217 (get_32bit_section_headers): Add "num" arg to read "num" headers.
1218 (get_64bit_section_headers): Likewise.
1219 (process_section_headers): Update calls.
1220 (get_file_header): Call get_32bit_section_headers or 64bit variant.
1224 * objcopy.c (setup_section): Copy entsize.
1228 * readelf.c (guess_is_rela): Add support for stormy16.
1229 (dump_relocations): Likewise.
1230 (get_machine_name): Likewise.
1234 * dllwrap.c (main) Replace multiple strings describing a
1235 single error with a single, newline escaped sentence to permit
1236 better translation into foreign languages.
1238 * readelf.c (get_elf_class): Remove internalionalisation of ELF
1243 * strings.c (get_char): Initialize value.
1247 * arlex.l: Silence compile warnings.
1248 * arsup.h: Likewise. Fix formatting.
1252 * strings.c: Include config.h before bfd.h.
1253 (file_off): New type.
1254 (file_open): Define.
1255 (print_strings): Use file_off instead of file_ptr. Print addresses
1256 which don't fit into long correctly.
1257 (get_char): Use file_off instead of file_ptr. Use getc_unlocked if
1259 (strings_file): Use file_off instead of file_ptr. Use file_open.
1260 * configure.in: Check for getc_unlocked.
1261 Check for fopen64 and whether _LARGEFILE64_SOURCE needs to
1263 * configure: Rebuilt.
1264 * config.h.in: Rebuilt.
1268 * bucomm.c (make_tempname): Revert the changes made on
1269 2001-11-14 and 2001-11-12. They won't work with directories.
1273 * binutils/Makefile.am (check-DEJAGNU): Pass CC_FOR_TARGET and
1274 CFLAGS_FOR_TARGET to runtest in environment.
1275 * Makefile.in: Rebuild.
1276 * doc/Makefile.in: Rebuild.
1280 * objcopy.c (setup_section): Preserve SEC_RELOC when
1281 --set-section-flags is used.
1285 * readelf.c (do_debug_str): New variable.
1286 (display_debug_str): New function: Display the contents of a
1288 (load_debug_str): New function: Load in the contents of a
1290 (free_debug_str): New function: Free the memory used by
1292 (fetch_indirect_string): Retrieve a string from the .debug_str
1295 (parse_args): Accept -ws.
1296 (process_section_headers): Allow the display of the .debug_str
1298 (read_and_display_attr_value): Use fetch_indirect_string. Show
1299 offset into .debug_str section.
1300 (display_debug_info): Use load_debug_str and free_debug_str.
1301 (debug_displays): Add .debug_str.
1302 * doc/binutils.texi: Document -ws.
1306 * testsuite/binutils-all/objdump.exp: Add x86-64.
1310 * readelf.c: Fix warnings without terminating newline.
1314 * doc/binutils.texi (objdump): Document ppc -M options.
1318 * doc/binutils.texi (objdump): Fix description to use x86-64.
1322 * bucomm.c (make_tempname): Use mkstemps instead of mkstemp, since
1323 not all systems provide mkstemp.
1327 * doc/binutils.texi (objdump): Document x86 -M options.
1331 * readelf.c (read_and_display_attr_value): New function to
1332 handle DW_FORM_indirect.
1333 (read_and_display_attr): Use it.
1337 * readelf.c (display_debug_lines): Deal with unknown standard
1338 opcodes. Handle DW_LNS_set_prologue_end, DW_LNS_set_epilogue_begin,
1343 * MAINTAINERS: Add self as tic54x maintainer. This target
1344 includes the IBM C54XDSP clone.
1348 * bucomm.c (make_tempname): Use mkstemp in place of mktemp.
1352 * unwind-ia64.c (unw_print_brmask): Fix ISO C portability glitch.
1353 (unw_print_grmask, unw_print_frmask, unw_print_abreg): Likewise.
1354 (unw_print_xyreg, unw_decode_x1, unw_decode_x2): Likewise.
1355 (unw_decode_x3, unw_decode_r1, unw_decode_r2): Likewise.
1356 (unw_decode_r3, unw_decode_p1, unw_decode_p2_p5): Likewise.
1357 (unw_decode_p6, unw_decode_p7_p10, unw_decode_b1): Likewise.
1358 (unw_decode_b2, unw_decode_b3_b4): Likewise.
1360 * readelf.c (get_elf_class): Fix ISO portability glitch.
1361 (get_data_encoding, get_osabi_name, request_dump): Likewise.
1365 * readelf.c (debug_str, debug_str_size): New.
1366 (display_debug_abbrev): If no abbrevs were read, skip the CU.
1368 (read_and_display_addr): Handle DW_FORM_strp.
1369 (display_debug_info): Read .debug_str section if present,
1370 so that DW_FORM_strp can be handled.
1371 Fix test for non-existant .debug_abbrev section.
1377 * arsup.c (ar_open): Prepend tmp- to basename, not whole path.
1381 * MAINTAINERS: Add self as s390/s390x maintainer.
1385 * MAINTAINERS: Add self as PPC XCOFF maintainer.
1389 * configure.in (ALL_LINGUAS): Add "fr" and "tr".
1390 * configure: Regernate.
1391 * po/fr.po: New file.
1392 * po/tr.po: New file.
1396 * MAINTAINERS: Add self as MMIX port maintainer.
1397 * readelf.c: Include elf/mmix.h.
1398 (guess_is_rela): MMIX is RELA.
1399 (dump_relocations): Handle MMIX relocations.
1400 * Makefile.am: Regenerate dependencies.
1401 * Makefile.in: Regenerate.
1405 * readelf.c (parse_args): Handle multiple options to the -w
1410 * readelf.c (get_section_type_name): Don't print SHT_ prefix for
1411 LOPROC, LOOS and LOUSER.
1415 * MAINTAINERS: Update my email address.
1419 * doc/Makefile.in: Regenerate.
1420 * configure: Regenerate.
1424 * readelf.c (display_debug_line, display_debug_pubnames,
1425 display_debug_info, display_debug_frames): Detect and warn
1426 about 64-bit format entries.
1427 (display_debug_aranges): Reword 64-bit warning.
1428 (debug_displays): Add .debug_pubtypes as a known, but not yet
1429 supported, debug section.
1433 * coffdump.c (PROGRAM_VERSION): Delete.
1434 (main <'V'>): Call print_version.
1435 * srconv.c: Likewise.
1436 * sysdump.c: Likewise.
1437 * version.c (program_version): Remove.
1438 (print_version): Use BFD_VERSION_STRING. Just print the current
1439 year in copyright message.
1440 * addr2line.c (program_version): Remove unused declaration.
1441 * objdump.c (display_target_tables): Use BFD_VERSION_STRING in
1442 place of BFD_VERSION.
1443 * Makefile.am (Makefile): Depend on bfd/configure.in.
1444 (cplus-dem.o): Depend on Makefile.
1446 * Makefile.in: Regenerate.
1450 * readelf.c (display_debug_aranges): Detect and warn about DWARF64
1451 format .debug_arange sections.
1452 (main): Add missing prototype.
1456 * Makefile.am: Update dependencies with "make dep-am".
1457 * Makefile.in: Regenerate.
1461 * objdump.c (dump_section_header): Dump SEC_ARCH_BIT_0.
1465 * bucomm.c (fatal): Define using VPARAMS, VA_OPEN, VA_FIXEDARG,
1467 (non_fatal): Likewise.
1468 * objdump.c (objdump_sprintf): Likewise.
1469 * readelf.c (error): Likewise.
1474 * readelf.c (do_wide): New.
1475 (options): Add --wide.
1476 (usage, parse_args): Likewise.
1477 (process_program_headers): Put each segment on a single line if
1479 (process_section_headers): Put each section on a single line if
1481 * doc/binutils.texi: Document it.
1486 * readelf.c (print_vma): Print 8 digits of low hex value.
1490 * nlmconv.c: Fix warnings about unused attributes and function
1493 * strings.c: Add prototype for get_char.
1497 * doc/Makefile.am ($(DEMANGLER_NAME).1): Try cxxfilt.man and
1498 $(srcdir)/cxxfilt.man.
1499 * doc/Makefile.in: Rebuild.
1503 * objcopy.c (copy_main): Correct rename-section string parsing.
1504 Consolidate new_name parsing, and error messages.
1508 * addr2line.c: Don't include <ctype.h>.
1509 (main): For gettext, also set the LC_CTYPE locate facet.
1510 * ar.c (main): Likewise.
1511 * coffdump.c (main): Likewise.
1512 * dlltool.c: Include "safe-ctype.h" instead of <ctype.h>.
1513 (main): For gettext, also set the LC_CTYPE locate facet.
1514 Use ISALNUM instead of isalpha/isdigit.
1515 * dllwrap.c: Don't include <ctype.h>.
1516 (main): For gettext, also set the LC_CTYPE locate facet.
1517 * nlmconv.c: Include "safe-ctype.h" instead of <ctype.h>.
1518 (main): For gettext, also set the LC_CTYPE locate facet.
1519 Use TOUPPER instead of islower/toupper.
1520 * nlmheader.y: Include "safe-ctype.h" instead of <ctype.h>.
1521 (yylex): Use ISSPACE/ISALNUM instead of isspace/isalnum.
1522 Use TOUPPER instead of islower/toupper.
1523 * nm.c (main): For gettext, also set the LC_CTYPE locate facet.
1524 * objcopy.c (main): Likewise.
1525 * objdump.c: Include "safe-ctype.h" instead of <ctype.h>.
1526 (disassemble_bytes): Use ISPRINT instead of isprint.
1527 (dump_section_stabs): Use ISDIGIT instead of isdigit.
1528 (dump_data): Use ISPRINT instead of isprint.
1529 (main): For gettext, also set the LC_CTYPE locate facet.
1530 * rclex.l: Include "safe-ctype.h" instead of <ctype.h>.
1531 (cpp_line, handle_quotes): Use ISSPACE instead of isspace.
1532 * rcparse.y: Include "safe-ctype.h" instead of <ctype.h>.
1533 Use TOUPPER instead of islower/toupper.
1534 * readelf.c (main): For gettext, also set the LC_CTYPE locate facet.
1535 * resrc.c: Include "safe-ctype.h" instead of <ctype.h>.
1536 (write_rc_accelerators): Use ISPRINT instead of isprint.
1537 (write_rc_rcdata): Likewise.
1538 * size.c (main): For gettext, also set the LC_CTYPE locate facet.
1539 * srconv.c (main): Likewise.
1540 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
1541 (parse_number): Use ISDIGIT/ISUPPER/ISLOWER instead of
1542 isdigit/isupper/islower.
1543 (parse_stab_string, parse_stab_type, parse_stab_argtypes,
1544 parse_stab_array_type, stab_demangle_count, stab_demangle_get_count,
1545 stab_demangle_prefix, stab_demangle_qualified,
1546 stab_demangle_template, stab_demangle_type,
1547 stab_demangle_fund_type): Use ISDIGIT instead of isdigit.
1548 * strings.c: Include "safe-ctype.h" instead of <ctype.h>.
1549 (isgraphic): Use ISPRINT instead of isascii/isprint.
1550 (main): Remove HAVE_LC_MESSAGES dependency.
1551 * sysdump.c: Include "safe-ctype.h" instead of <ctype.h>.
1552 (pbarray): Use ISPRINT instead of isprint.
1553 (main): For gettext, also set the LC_CTYPE locate facet.
1554 * windres.c: Include "safe-ctype.h" instead of <ctype.h>.
1555 (format_from_filename): Use ISPRINT instead of isprint.
1556 (main): For gettext, also set the LC_CTYPE locate facet.
1557 * winduni.c: Include "safe-ctype.h" instead of <ctype.h>.
1558 (unicode_print): Use ISPRINT instead of isprint.
1559 * wrstabs.c: Include "safe-ctype.h" instead of <ctype.h>.
1560 (stab_variable): Use ISDIGIT instead of isdigit.
1564 * ar.c (print_contents): Cast args of bfd_seek to the right types.
1565 Replace bfd_read call with call to bfd_bread.
1566 (extract_file): Likewise.
1568 * objdump.c (dump_section_header): Cast section->filepos to
1569 unsigned long to suit printf format string.
1570 * readelf.c (process_section_headers): Similarly for sh_offset.
1571 (process_unwind): Likewise.
1575 * strings.c (encoding, encoding_bytes): New variables.
1576 (long_options): Add --encoding.
1577 (main): Accept -e and --encoding.
1578 (get_char): New function. Read a, possibly wide, character from
1580 (print_strings): Use get_char().
1581 (usage): Document new command line option.
1582 * doc/binutils.texi: Document new command line option.
1583 * NEWS: Announce new command line option.
1587 * readelf.c (guess_is_rela, dump_relocations, get_machine_name,
1588 get_machine_flags): Added EM_M32R, EM_D10V, EM_V850, EM_D30V,
1589 EM_MN10200, EM_MN10300, EM_FR30, EM_AVR_OLD and EM_PJ_OLD.
1590 Removed EM_CYGNUS_ARC.
1594 * readelf.c: Include elf/h8 for H8 series definitions.
1595 (guess_is_rela): H8 series if RELA.
1596 (dump_relocations): Handle H8 series relocations.
1600 * readelf.c (get_machine_flags): Remove E_MIPS_MACH_MIPS32_4K.
1604 * MAINTAINERS: Include ARC Maintainer.
1608 * stabs.c (stab_demangle_template): Initialise s4.
1612 * readelf.c (dump_relocations): Recognise EM_PPC64.
1616 * readelf.c (get_machine_flags): Add detection of EF_MIPS_32BITMODE.
1620 * nm.c (print_width): New.
1621 (display_rel_file): Set `print_width' according to
1623 (print_symbol_info_bsd): Check `print_width' instead of BFD64.
1627 * objcopy.c (use_alt_mach_code): New variable.
1628 (OPTION_ALT_MACH_CODE): Define.
1629 (copy_options): Added --alt-machine-code.
1630 (copy_main): Handle it.
1631 (copy_object): Switch to alternate machine code if requested.
1632 * doc/binutils.texi: Document new option.
1637 * readelf.c (get_machine_flags): Add detection of EF_MIPS_UCODE.
1641 * readelf.c (dump_relocations): Support ELF64 on 32bit hosts.
1642 (display_debug_info): Cast for 64bit hosts.
1643 (display_debug_frames): Likewise.
1644 (process_mips_specific): Likewise.
1648 * coffgrok.h: Add missing parameter for prototype of coff_grok.
1650 * sysdump.c: Add missing prototypes.
1651 * srconv.c: Likewise.
1652 * unwind-ia64.c: Likewise.
1653 * coffdump.c: Likewise.
1655 * sysinfo.y: Print prototypes, include <ansidecl.h>.
1657 * coffgrok.c: Add missing prototypes, include libiberty.h instead
1658 of declaring xcalloc.
1662 * nm.c (print_value): Add one arg, bfd *.
1663 (print_value): Replace fprintf_vma with bfd_fprintf_vma.
1664 (print_symbol_info_bsd): Also pass `abfd' to print_value ().
1665 (print_symbol_info_sysv): Likewise.
1666 (print_symbol_info_posix): Likewise.
1668 * objdump.c (dump_section_header): Replace printf_vma with
1670 (print_section_stabs): Likewise.
1671 (dump_bfd_header): Likewise.
1672 (objdump_print_value): Replace sprintf_vma with
1674 (disassemble_bytes): Likewise.
1675 (dump_reloc_set): Likewise.
1679 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1681 * configure: Regenerate.
1685 * readelf.c: Add missing prototypes.
1686 * objdump.c: Likewise. Format existing prototypes.
1690 * readelf.c (display_debug_info): Add to abbrev_offset the addend
1691 of any RELA relocation for the abbrev_offset memory location that
1692 refers to the .debug_abbrev section symbol.
1696 * readelf.c (process_file): Return 0 if OK, otherwise return 1.
1697 (main): Return process_file ().
1701 * doc/binutils.texi: Use "Thumb" not "THUMB".
1706 * objdump.c (disassemble_data): Fill in section member of the
1707 disasm_info structure.
1711 * configure.in: Added --with-windres option.
1712 * configure: Regenerated.
1716 * doc/binutils.texi: Use @command{name} for commands;
1717 use @option{-opt} for options; use @table @env for list of options;
1718 remove spaces arround [ | ] in synopsis.
1720 * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for the
1725 * objcopy.c: Fix formatting.
1726 (section_rename): New structure.
1727 (OPTION_RENAME_SECTION): New switch.
1728 (copy_usage): Document new switch.
1729 (add_section_rename): New function: Add a node to the section
1731 (find_section_rename): New function: Find the new name and
1732 flags for a section.
1733 (setup_section): Call find_section_name to determine the name
1734 of the output section.
1735 (copy_main): Handle OPTION_RENAME_SECTION.
1736 * binutils.texi: Document new switch.
1737 * NEWS: Mention new switch.
1747 * bucomm.c (list_supported_architectures): New function.
1748 * bucomm.h (list_supported_architectures): Declare.
1749 * objdump.c (usage): Call the above.
1753 * objdump.c (SKIP_ZEROES): Only define it if it is not already defined.
1754 (SKIP_ZEROES_AT_END): Only define it if it is not already defined.
1758 * README: Update for 2.11. Change bug reporting email address.
1759 * MAINTAINERS: Tidy up. Change bug reporting email address.
1763 * resres.c (write_res_header): Align header size.
1764 (res_align_file): Calculate alignment correctly.
1766 * rcparse.y (styles): use SUBLANG_SHIFT instead of 8 (or the more
1768 * resrc.c (write_rc_resource): Likewise.
1769 * windres.h (SUBLANG_SHIFT): Define - as 10.
1773 * MAINTAINERS: Add Christian Groessler as maintainer for z8k port.
1777 * MAINTAINERS: Add notes about branch checkins.
1781 * readelf.c (display_debug_macinfo): New function, display
1782 .debug_macinfo section.
1783 (do_debug_macinfo): New variable.
1784 (parse_args): Handle "-w[mM]" to mean display macro info.
1785 (process_section_headers): Handle debug_macinfo.
1786 (debug_displays): Replace unsupported function with macinfo
1787 function for .debug_macinfo display.
1788 * doc/binutils.texi: Document new command line switch.
1789 * NEWS: Document new feature of readelf.
1793 * objcopy.c (filter_symbols): Don't turn undefined symbols
1798 * doc/Makefile.am (addr2line.1): Use addr2line.pod instead of
1801 (dlltool.1): Likewise.
1802 (nlmconv.1): Likewise.
1804 (objcopy.1): Likewise.
1805 (objdump.1): Likewise.
1806 (ranlib.1): Likewise.
1807 (readelf.1): Likewise.
1809 (strings.1): Likewise.
1810 (strip.1): Likewise.
1811 (windres.1): Likewise.
1813 ($(DEMANGLER_NAME).1): Also substitute cxxfilt with
1816 * doc/Makefile.in: Regenerated.
1820 * MAINTAINERS: Change MIPS maintainer to Eric Christopher.
1824 * readelf.c: Support DWARF 2.1 tags, encodings, languages.
1828 * readelf.c: Support DWARF 2.1 attributes.
1832 * readelf.c (GET_DATA_ALLOC): Remove.
1834 (get_data): New function combining above macros, with an extra
1836 (slurp_rela_relocs): Use get_data, and catch error return.
1837 (slurp_rel_relocs): Likewise.
1838 (get_32bit_program_headers): Likewise.
1839 (get_64bit_program_headers): Likewise.
1840 (get_32bit_section_headers): Likewise.
1841 (get_64bit_section_headers): Likewise.
1842 (get_32bit_elf_symbols): Likewise.
1843 (get_64bit_elf_symbols): Likewise.
1844 (process_section_headers): Likewise.
1845 (process_relocs): Likewise.
1846 (slurp_ia64_unwind_table): Likewise.
1847 (process_unwind): Likewise.
1848 (get_32bit_dynamic_segment): Likewise.
1849 (get_64bit_dynamic_segment): Likewise.
1850 (process_dynamic_segment): Likewise.
1851 (process_version_sections): Likewise.
1852 (process_symbol_table): Likewise.
1853 (dump_section): Likewise.
1854 (display_debug_info): Likewise.
1855 (display_debug_section): Likewise.
1856 (process_section_contents): Likewise.
1857 (process_corefile_note_segment): Likewise.
1858 (process_mips_specific): Likewise. Also free econf32, econf64.
1862 * readelf.c (dump_relocations): Print "bad symbol index" if
1863 symtab == NULL with non-zero symtab_index.
1864 (process_relocs): Don't bomb if reloc section has no symsec.
1868 * objcopy.c (strip_main): Revert the change made on 2001-05-30
1870 (copy_main): Apply the the change made to strip_main on
1871 2001-05-30 by accident.
1875 * unwind-ia64.c (unw_decode_x1): Add unused attribute for
1877 (unw_decode_x2): Likewise.
1878 (unw_decode_x3): Likewise.
1879 (unw_decode_x4): Likewise.
1883 * MAINTAINERS: Add myself as M88k maintainer.
1887 * objcopy.c (strip_main): Support -o or --output-file command lien
1892 * doc/Makefile.in: Regenerated.
1896 * readelf.c: Restore formatting.
1900 * Makefile.am: Move documentation into doc subdirectory.
1901 * Makefile.in: Regenerated.
1902 * binutils.texi: Move into doc subdirectory.
1903 * addr2line.1: Removed.
1905 * dlltool.1: Likewise.
1906 * nlmconv.1: Likewise.
1908 * objcopy.1: Likewise.
1909 * objdump.1: Likewise.
1910 * ranlib.1: Likewise.
1911 * readelf.1: Likewise.
1913 * strings.1: Likewise.
1914 * strip.1: Likewise.
1915 * windres.1: Likewise.
1916 * cxxfilt.man: Likewise.
1917 * doc: New Directory.
1918 * doc/Makefile.am: New file.
1919 * doc/Makefile.in: Generate.
1923 * NEWS: Fix a typo. Mention hppa64-elf. Add binutils-2.11 marker.
1927 * MAINTAINERS: Update my email address.
1931 * objcopy.c: Add new switches: --keep-global-symbol,
1932 --keep-symbols, --localize-symbols, --keep-global-symbols and
1934 * binutils.texi: Document new switches.
1935 * objcopy.1: Regenerate.
1936 * NEWS: Announce new feature.
1940 * readelf.c (display_debug_frames): Fix warnings: Remove unused
1941 variables, fix format strings.
1945 * objdump.c (disassemble_bytes): Remove section VMA adjustment
1946 when computing the address of the line to show.
1950 * readelf.c (do_debug_frames_interp): New.
1951 (byte_get_little_endian): If BFD64, always read entire 8-byte fields.
1952 (byte_get_big_endian): Likewise.
1953 (parse_args) ['F']: Set do_debug_frames_interp.
1954 (Frame_Chunk): Make data_factor signed, add fde_encoding.
1955 (frame_display_row): Don't trunc pc_begin to int.
1956 (size_of_encoded_value): New.
1957 (display_debug_frames): Handle 64-bit targets. Print raw data
1958 unless do_debug_frames_interp.
1959 (debug_displays): Remove duplicate .debug_frame.
1963 * readelf.c: Replace uses of EM_MIPS_RS4_BE with EM_MIPS_RS3_LE.
1964 The former constant was never in active use and is used otherwise
1969 * readelf.c (process_unwind): Print all unwind sections, not just
1974 * readelf.c (process_unwind): Remove const specifier.
1978 * strings.c (isgraphic): Do not use isascii() unless it is needed
1979 for isprint() to work.
1980 (main): Set the locale domain to LC_ALL not just LC_MESSAGES.
1984 * NEWS: Announce support for OpenRISC.
1988 * dlltool.c (do_default_excludes): Initialise to true.
1992 * MAINTAINERS: Update my email address
1993 * nm.c (print_symbol_info_bsd): Use a simple printf string.
1997 * readelf.c (display_debug_lines): Fix typo for "Prologue".
2001 * readelf.c (process_unwind): Just return if do_unwind is 0.
2005 * dlltool.c (make_one_lib_file): Fix section flags for
2006 .text, .data and .bss in stub ds*.o files to match those
2011 * readelf.c (process_unwind): Only do unwind sections for
2016 * Makefile.am ($(srcdir)/dlltool.1): Remove the extra target.
2017 * Makefile.in: Regenerate.
2021 * binutils.texi (nm): Fix texi syntax.
2025 * binutils.texi: Put @c man begin and @c man end indications
2026 to generate man pages using texi2pod and pod2man. Put @c man title
2027 to identify each man. Add SEEALSO entries.
2028 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
2029 (man_MANS): Add dlltool.1, nlmconv.1, readelf.1, windres.1,
2031 (*.1): Build the man pages from binutils.texi.
2032 * Makefile.in: Regenerate.
2036 * defparse.y (opt_equal_name): allow "." in name.
2037 * dlltool.c (def_exports): Added ability to generate forwarded exports.
2038 (gen_exp_file): Likewise.
2042 * NEWS: Document addition of -B switch to objcopy.
2043 * binutils.texi: Document addition of -B switch to objcopy.
2044 * objcopy.c: (copy_options): Add --binary-architecture.
2045 (copy_usage): Document -B/--binary-architecture.
2046 (copy_main): Support -B/--binary-architecture. Set
2047 bfd_external_binary_architecture.
2051 * readelf.c (guess_is_rela): Handle EM_S390_OLD.
2052 (dump_relocations): Likewise.
2053 (get_machine_name): Likewise.
2057 * readelf.c: (struct unw_aux_info): Remove const modifier for
2059 (process_unwind): Remove non-K&R compliant LHS type cast in call
2060 to GET_DATA_ALLOC macro.
2064 * readelf.c (decode_ARM_machine_flags): Explicitly mention which
2065 ABI is in use; remove ambiguity between the "unknown" EABI and
2066 unrecognised ABIs. Handle version 2 ARM EABI. Update uses of
2067 renamed EF_xx constants.
2071 * configure.in (BFD_VERSION): New.
2072 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2073 * configure: Regenerate.
2074 * Makefile.am: Run "make dep-am"
2075 * Makefile.in: Regenerate.
2079 * MAINTAINERS: Add "Obvious Fix" rule.
2083 * unwind-ia64.c: Don't use ANSI C preprocessor stringisation and string
2084 literal concatenation.
2088 * readelf.c (struct unw_aux_info): Remove const from the info member.
2089 (process_unwind): Don't type-cast the third argument to the
2090 GET_DATA_ALLOC macro.
2094 * readelf.c (dump_relocations): Free corrected allocated
2096 (process_unwind): Fix compile time warning.
2100 * binutils.texi: Document new --unwind option to readelf.
2104 * readelf.c: Add linux target for S/390.
2108 * nm.c (print_symbol_info_bsd): Don't #ifdef inside printf in case
2113 * acinclude.m4 (AM_PROG_LEX): Override installed definition.
2114 * aclocal.m4: Regenerate.
2115 * configure: Regenerate.
2119 * bucomm.c (bfd_target_vector): Change extern array to pointer.
2120 * objdump.c (bfd_target_vector): Likewise.
2124 * readelf.c (process_unwind): New function.
2125 (slurp_ia64_unwind_table): Ditto.
2126 (dump_ia64_unwind): Ditto.
2127 (find_symbol_for_address): Ditto.
2128 (slurp_rela_relocs): New function (split off from dump_relocations()).
2129 (slurp_rel_relocs): Ditto.
2130 (parse_args): Handle '-u' option.
2132 * unwind-ia64.c: New file.
2133 * unwind-ia64.h: New file.
2134 * Makefile.am: Include unwind-ia64.c in readelf build.
2135 * Makefile.in: Regenerate.
2136 * po/binutils.pot: Regenerate.
2140 * configure.in (OBJDUMP_DEFS): Match `arm*-*', not just `arm-*'.
2141 * configure: Regenerate.
2145 * ieee.c (ieee_add_bb11): Don't check for backslashes
2146 unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
2150 * ieee.c: Update copyright.
2151 (ieee_start_compilation_unit): Don't check for backslashes
2152 unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
2154 * stabs.c: Update copyright. Include "filenames.h".
2155 (parse_stab): Use IS_ABSOLUTE_PATH. Ignore N_WARNING stabs.
2159 * readelf.c (process_version_sections): Check if VERDEF or VERNEED
2160 sections are present before using them. Remove code duplication.
2161 (process_symbol_table): Check if VERDEF or VERNEED sections are
2162 present before using them.
2166 * objcopy.c (copy_object): Fail if attempting to convert the
2167 endianness of the input object file.
2169 * binutils.texi: Explain that objcopy cannot convert endianness.
2173 * readelf.c (string_table_length): New variable.
2174 (SECTION_NAME): Catch out of range indices and missing section
2176 (process_section_headers): Delete useless local variable
2177 string_table_offset. Set the value of string_table_length
2178 after loading the string table.
2179 (process_mips_specific): Use SECTION_NAME macro.
2180 (process_file): Set string_table_length to 0 when it is freed.
2184 * version.c (print_version): Update copyright date.
2188 * readelf.c (dump_relocations): Include selection with EM_ARC.
2189 (get_machine_name) Update name to "ARC".
2193 * Makefile.am: Add rule to build objdump.o from objdump.c and
2195 * Makefile.in: Regenerate.
2197 * configure.in: Define OBJDUMP_DEFS. Default to empty.
2198 (arm, xscale, d10v): For these targets define OBJDUMP_DEFS to
2199 -DDISASSEMBLER_NEEDS_RELOCS.
2200 * configure: Regenerate.
2202 * objdump.c (disassemble_bytes): If DISASSEMBLER_NEEDS_RELOCS
2203 is defined read in the relocs even if dump_reloc_info is
2208 * binutils.texi (Bug Reporting): Replace `bug-gnu-utils' with
2214 * dlltool.c: Add missing support for arm-epoc-pe.
2215 * configure.in: Add missing support for arm-epoc-pe.
2216 * configure: Regenerate.
2220 * MAINTAINERS: Add Diego Novillo as a maintainer for the Intel
2221 Mode parts of the x86 port.
2225 * readelf.c (guess_is_rela): Add EM_X86_64.
2226 (dump_relocations): Add EM_X86_64.
2227 (get_machine_name): Add EM_X86_64.
2228 Include "elf/x86-64.h".
2232 * readelf.c: Fix formatting.
2236 * MAINTAINERS: Add myself and Andreas Jaeger as x86_64 maintainer.
2240 * readelf.c (display_debug_frames): Only display columns that are
2241 referenced by the frame debug info.
2245 * MAINTAINERS: Add Jason Merrill as DWARF2 maintainer.
2249 * readelf.c (process_section_headers): Handle linkonce.wi sections.
2250 (display_debug_section): Likewise.
2251 (display_debug_info): Display CU header before bailing.
2255 * readelf.c (get_machine_flags): Recognize MIPS32 ISA in
2256 EF_MIPS_ARCH. Replace use of E_MIPS_MACH_MIPS32 with
2257 E_MIPS_MACH_MIPS32_4K and adjust printed CPU name similarly.
2259 * readelf.c (get_machine_flags): Add cases for E_MIPS_ARCH_5,
2262 * readelf.c (get_machine_flags): Add case for
2267 * readelf.c (frame_display_row): Output 's' for DW_CFA_same_value.
2271 * MAINTAINERS: Add J
\81örn Rennecke and self as SH maintainers.
2272 Change sourceware.cygnus.com to sources.redhat.com.
2273 Fix typo for "amongst".
2277 * strip.1 (COPYING): Mention that the GNU Free Documentation
2278 License is present in the sources, but not the output, and
2279 also available from the GNU website.
2280 (GNU Free Documentation License): Comment out this section.
2289 * addr2line.1: Ditto.
2293 * readelf.c (usage): Add -wf (--debug-dump=frames) option.
2294 (parse_args): Support -wf option.
2295 (process_section_headers): Ditto.
2296 (debug_displays): Ditto.
2297 (display_debug_frames): New, dump *_frame sections.
2298 (frame_need_space): Support for above.
2299 (frame_display_row): Ditto.
2300 * binutils.texi: Document it.
2304 * NEWS: Announce support for v5t, v5te and XScale.
2308 * readelf.c (get_machine_name): Add EM_JAVELIN, EM_FIREPATH,
2309 EM_ZSP, EM_MMIX, EM_HUANY, EM_PRISM.
2310 (get_section_type_name): Add SHT_GROUP and SHT_SYMTAB_SHNDX.
2311 (get_elf_section_flags: Add SHF_GROUP.
2312 (process_section_headers): Adjust output for 32-bit binaries
2313 to look nice on an 80 column terminal.
2317 * readelf.c (get_osabi_name): Change ELFOSABI_MONTEREY to
2322 * readelf.c (display_debug_lines): Adjust last change to
2323 use sizeof (external->li_length).
2327 * readelf.c (display_debug_lines): Fix section length check
2328 and end_of_sequence computation.
2332 * binutils.texi: Add GNU Free Documentation License.
2333 * objcopy.1: Add GNU Free Documentation License.
2334 * objdump.1: Add GNU Free Documentation License.
2335 * addr2line.1: Add GNU Free Documentation License.
2336 * ar.1: Add GNU Free Documentation License.
2337 * nlmconv.1: Add GNU Free Documentation License.
2338 * nm.1: Add GNU Free Documentation License.
2339 * ranlib.1: Add GNU Free Documentation License.
2340 * size.1: Add GNU Free Documentation License.
2341 * strings.1: Add GNU Free Documentation License.
2342 * strip.1: Add GNU Free Documentation License.
2346 * objcopy.c (--srec-len=nn): New parameter to set the
2347 maximum length of generated Srecords.
2348 (--srec-forceS3): New parameter that restricts the generation of
2349 Srecords to type S3 only.
2350 * binutils.texi: Document new command line switches.
2351 * objcopy.1: Docuemnt the new command line switches.
2352 * NEWS: Announce the existence of the new command line switches.
2356 * MAINTAINERS: Add Jim Wilson as the maintainer for the IA64
2357 code. Add Eric Chrisopher as maintainer of MN10300 port.
2361 * Make comma after string after icon/control optional.
2365 * readelf.c (get_machine_flags): Also print EF_MIPS_MACH field.
2367 * NEWS: Mention support for MIPS32.
2371 * MAINTAINERS: Add Stephane Carrez as maintainer for 68HC[11|12].
2375 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2376 * configure: Rebuild.
2380 * configure: Rebuilt with new libtool.m4.
2384 * aclocal.m4: Regenerate.
2385 * config.in: Regenerate.
2386 * configure: Regenerate.
2390 * strip.1: Fix stray '\' in -o formatting.
2394 * configure.in: Increase version number to 2.10.91.
2395 * configure: Regenerate.
2396 * aclocal.m4: Regenerate.
2397 * config.in: Regenerate.
2398 * po/binutils.pot: Regenerate.
2402 * acinclude.m4: Include libtool and gettext macros from the
2404 * aclocal.m4, configure: Rebuilt.
2408 * resrc.c (close_input_stream): Delete extraneous logic
2412 * NEWS: Mention support for CRIS.
2416 * addr2line.c: Changed email address for Ulrich Lauther.
2420 * objdump.c (LONGEST_ARCH): Set to sizeof("powerpc:common").
2424 * readelf.c (display_debug_pubnames): Only issue warning
2425 message once. Terminate message with a new line.
2426 (display_debug_aranges): Only display version 2 debug info.
2430 * objcopy.c (strip_main): Silently accept -d as an alias for -g
2431 for compatability with old BSD systems.
2435 * NEWS: Mention i860 support.
2439 * addr2line.c (main): Add const to char *.
2443 * ar.c (main): Don't crash if called with no arguments
2444 or only '-X32_64' as an argument.
2448 * resrc.c: use "gcc -xc" instead of -xc-header
2452 * readelf.c (elf/i860.h): Include.
2453 (dump_relocations): Add recognition of i860 architecture.
2454 (guess_is_rela): Add recognition of i860 architecture.
2458 * MAINTAINERS: Add information about CGEN maintainers.
2462 * nm.c (main): Ignore '-X32_64' as an option.
2463 * ar.c (main): Likewise.
2464 * binutils.texi (nm): Document new option.
2469 * rdcoff.c (external_coff_symbol_p): K&R-ise.
2473 * binutils.texi: Put back "@end table" deleted by
2478 * nm.c: Add optional style to demangle switch.
2479 * objdump.c: Add optional style to demangle switch.
2480 * addr2line.c: Add optional style to demangle switch.
2481 * binutils.texi: Document optional style to demangle
2486 * MAINTAINERS: Add self as CRIS port maintainer.
2487 * readelf.c: Include elf/cris.h.
2488 (guess_is_rela): Handle EM_CRIS.
2489 (dump_relocations): Ditto.
2490 (get_machine_name): Ditto.
2491 * Makefile.am: Rebuild dependencies.
2492 * Makefile.in: Regenerate.
2493 * po/binutils.pot: Regenerate.
2497 * readelf.c (get_dynamic_type): Change "AUXILARY" to
2499 (process_dynamic_segment): Print out strings for DT_CONFIG,
2500 DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH.
2504 * nm.c (usage): Change output of `nm --help' to include a
2505 description of the purpose of the program and a detailed
2506 description of the accepted options.
2510 * readelf.c (process_dynamic_segment): Change DF_1_NODEPLIB
2515 * readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
2519 * readelf.c (get_dynamic_type): Change DT_FEATURE_1 to
2521 (process_dynamic_segment): Likewise.
2523 * readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT,
2524 DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM.
2525 (process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB,
2526 DF_1_NODUMP and DF_1_CONLFAT.
2530 * binutils.texi (readelf): Fix spelling typo.
2534 * objdump.c (usage): Make output of `objdump --help' more
2535 consistent with the rest of the GNU world. Add a line describing
2536 the purpose of the program.
2540 * stabs.c (parse_stab_range_type): Cast to proper type to fix
2545 * readelf.c (get_dynamic_data): Add casts and use unsigned chars
2547 (process_symbol_table): Ditto.
2548 (procesS_extended_line_op): Ditto.
2549 (display_debug_lines): Ditto.
2550 (display_debug_pubnames): Ditto.
2551 (read_and_display_attr): Ditto.
2555 * MAINTAINERS: Add several more port specific maintainers.
2559 * MAINTAINERS: Add blanket write privs for Michael Meissner.
2567 * dllwrap.c: Changed mistaken dyn_string_append() calls
2568 to dyn_string_append_cstr().
2572 * stabs.c (parse_stab_type): Divide size in bits by 8 as binutils
2573 struct debug_type stores size in bytes.
2577 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2578 (CLEANFILES): Add DEPA.
2579 * Makefile.in: Regenerate.
2583 * ar.c: Revert incorrect 2000-06-25 patch.
2584 * bucomm.c: Likewise.
2588 * rdcoff (parse_coff_symbol): Treat GNU weak symbols as external.
2589 (external_coff_symbol_p): New function.
2590 (parse_coff): Use it.
2594 * ar.c (normalize): Advance past both characters in a DOS based
2595 <letter>: filepath prefix.
2597 * bucomm.c (make_tempname): Likewise.
2601 * objdump.c (usage): Fix description of --stabs switch.
2605 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2607 * Makefile.in: Regenerate.
2611 * ar.c (normalize): Correct pointer comparison when checking for
2614 * bucomm.c (make_tempname): Likewise.
2616 * ieee.c (ieee_start_compilation_unit): Correct pointer comparison
2617 and search for backslashes in the original pathname.
2618 (ieee_add_bb11): Likewise.
2622 * ar.c (print_contents): Improve verbose message.
2626 * dyn-string.c: Removed. Not needed with dyn-string.c in
2628 * dyn-string.h: Likewise.
2630 * Makefile.am: Remove references to dyn-string.c and
2631 dyn-string.h. Rebuild dependency.
2632 * Makefile.in: Rebuild.
2636 * binutils.texi: Put a warning on copying relocatable object
2637 files between two different formats.
2641 * rcparse.y (control): ICON controls take an id as the first
2642 parameter, not an optional string. Also, call new convenience
2643 function that takes res_id's.
2644 * resrc.c (define_control): missing text means zero-length string,
2646 (define_icon_control): New.
2647 * windres.h: declare define_icon_control.
2651 * configure: Regenerate.
2655 * configure.in (VERSION): Update to show this is the CVS mainline.
2659 * strings.c (isgraphic): Interpret <TAB> as a printable character,
2660 analogous to <SPACE>.
2664 * objdump.c (display_target_list): Use bfd_close_all_done, not
2665 bfd_close to fix crash caused by 2000-05-24 change.
2669 * resrc.c (close_input_stream): zero out cpp_pipe after closing it.
2673 * Makefile.am: Update dependencies with "make dep-am"
2674 * Makefile.in: Regenerate.
2678 * ar.c: Include filenames.h.
2679 (normalize) [HAVE_DOS_BASED_FILE_SYSTEM]: Support backslashes
2680 and drive letters in file names.
2681 (main): Support backslashes and drive letters in argv[0]. Drop
2682 the .exe suffix, if any, in argv[0] if is_ranlib is negative. Use
2683 FILENAME_CMP instead of strcmp to compare file names.
2684 (open_inarch) [__GO32__]: Don't ifdef errno != ENOENT test for
2686 (do_quick_append) [__GO32__]: Ditto.
2687 (get_pos_bfd, delete_members, move_members, replace_members):
2688 Compare file names with FILENAME_CMP.
2690 * bucomm.c: Include filenames.h.
2691 (make_tempname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support mixed
2692 forward/backward slashes and drive letters in file names.
2694 * ieee.c (ieee_start_compilation_unit, ieee_add_bb11): Support
2695 mixed forward/backward slashes and drive letters in file names.
2697 * strings.c (O_BINARY, setmode, SET_BINARY): Define.
2698 (main) [SET_BINARY]: Use SET_BINARY to switch stdin into binary
2701 * objcopy.c: Include filenames.h.
2702 (main) [HAVE_DOS_BASED_FILE_SYSTEM]: Drop the .exe suffix
2703 before comparing to "strip".
2704 Use FILENAME_CMP to compare file names.
2706 * arsup.c: Include filenames.h.
2707 (map_over_list, ar_delete, ar_replace, ar_extract): Use
2708 FILENAME_CMP to compare file names.
2709 (ar_open): Prepend "tmp-" instead of appending "-tmp", to create
2710 the temporary file name.
2712 * configure.in: Check for setmode.
2713 * configure: Regenerate.
2717 * objdump.c (display_target_list): Close the bfd.
2718 (display_info_table): Likewise.
2722 * objcopy.c (filter_symbols): Don't strip global symbols in
2723 relocatable object files.
2727 * size.c (usage): Associate short options with corresponding long
2728 option to give a clue as to their function.
2732 * size.c (main): Accept and ignore `-f' option.
2736 * bucomm.h (gettext, dgettext, dcgettext, textdomain,
2737 bindtextdomain): Replace defines with those from intl/libgettext.h
2738 to quieten gcc warnings.
2742 * nlmconv.c (temp_filename): Removed.
2744 * nlmconv.c (link_inputs): Use make_temp_file () instead of
2745 choose_temp_base ().
2746 * objdump.c (display_target_list): Likewise.
2747 (display_info_table): Likewise.
2751 * objcopy.c (setup_section): Add const and gettext calls for err.
2755 * readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
2756 ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
2757 ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
2758 ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
2759 and ELFOSABI_OPENBSD.
2763 * coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate.
2764 * srconv.c: Likewise.
2765 * sysdump.c: Likewise.
2769 * readelf.c (guess_is_rela): AVR uses RELA relocations.
2770 (get_machine_name): machine name for EM_AVR added.
2775 * Makefile.am (readelf.o): Add elf/ia64.h.
2776 * Makefile.in: Rebuild.
2777 * readelf.c: Include elf/ia64.h.
2778 (guess_is_rela, dump_relocations): Handle EM_IA_64.
2782 * objdump.c (disassemble_data): Set octets per byte *after*
2783 resolving arch/mach for binary files.
2787 * arlex.l: Add directives to increase lex buffer size.
2789 * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are
2790 already included by bucomm.h.
2794 * readelf.c (dynamic_segment_mips_val): Call `sprintf', not
2795 `strftime' since strftime is not available on all systems.
2796 (process_mips_specific): Ditto.
2800 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
2801 --enable-build-warnings option.
2802 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2803 * Makefile.in, configure: Re-generate.
2807 * addr2line.c: Update copyright.
2808 * objcopy.1: Likewise, and title.
2809 * strings.1: Likewise.
2811 * version.c (print_version): Add 2000.
2813 * rddbg.c (read_section_stabs_debugging_info): Don't use
2814 bfd_size_type for strx to avoid printf problems if BFD64.
2816 * bucomm.c: (report): Remove `static'.
2817 Move inclusion of stdarg.h/vararg.h from here.
2818 * bucomm.h: To here.
2819 (CONST): Change all occurences to const.
2820 (report): Declare it.
2821 (bfd_fatal): Add ATTRIBUTE_NORETURN.
2822 (fatal): Add ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN.
2823 (non_fatal): Add ATTRIBUTE_PRINTF_1.
2825 * ar.c (main): Use fatal or non_fatal instead of fprintf.
2826 Correct a typo in an error message.
2827 (do_quick_append): Use non_fatal instead of fprintf.
2828 (move_members): Use fatal instead of fprintf, exit.
2829 * coffdump.c (main): Same here.
2831 * dlltool.c (display): Delete.
2833 (inform): Use `report' instead of `display'.
2834 (rvaafter): Remove trailing \n from fatal error msg.
2836 (asm_prefix): Ditto.
2837 (yyerror): Replace `warn' with `non_fatal', and remove \n.
2838 (def_name): Likewise.
2840 (scan_all_symbols): Likewise.
2841 (gen_lib_file): Likewise.
2842 (def_library): Likewise. Remove extra program_name too.
2843 (run): Remove \n from inform strings.
2844 (scan_drectve_symbols): Likewise.
2845 (add_excludes): Likewise.
2846 (scan_open_obj_file): Likewise.
2847 (gen_exp_file): Likewise.
2848 (gen_lib_file): Likewise.
2849 (process_duplicates): Likewise.
2851 * Makefile.am (dllwrap_SOURCES): Add version.c.
2852 * dllwrap.c (program_version): Delete.
2853 (print_version): Delete.
2854 (display): Always print trailing \n.
2856 (delete_temp_files): Use warn instead of fprintf. Use gettext.
2859 (usage): gettext'ify.
2860 (long_options): Add missing initialisers.
2862 * nlmconv.c (main): Use fatal/non_fatal instead of fprintf.
2863 (select_output_format): Likewise.
2864 (powerpc_mangle_relocs): Likewise.
2865 (link_inputs): Likewise.
2867 * nm.c (set_print_radix): Use fatal instead of fprintf, exit.
2868 (set_output_format): Likewise.
2869 (main): Use non_fatal instead of fprintf.
2870 (display_rel_file): Likewise.
2872 * objdump.c (slurp_symtab): Use non_fatal instead of fprintf.
2873 (slurp_dynamic_symtab): Same here.
2874 (disassemble_data): And here.
2875 (read_section_stabs): And here.
2876 (read_section_stabs): And here.
2877 (dump_bfd): And here.
2879 (objdump_sprintf): Use fatal instead of fprintf, exit.
2880 (disassemble_data): Same here.
2882 * rdcoff.c (parse_coff_type): Use non_fatal instead of fprintf.
2883 (parse_coff_struct_type): Same here.
2884 (parse_coff_enum_type): And here.
2885 (parse_coff): And here.
2886 * rddbg.c (read_debugging_info): And here.
2887 * size.c (main): And here.
2888 * windres.c (format_from_name): And here.
2889 * wrstabs.c (stab_write_symbol): Here too.
2890 (write_stabs_in_sections_debugging_info): And here.
2891 (stab_int_type): And here.
2892 (stab_struct_field): And here.
2893 (stab_typdef): And here.
2895 * rescoff.c (read_coff_rsrc): Use fatal instead of fprintf, exit.
2896 * srconv.c (main): Same here.
2897 * strings.c (main): And here.
2898 (integer_arg): And here.
2899 * sysdump.c (main): And here.
2903 * objdump.c (dump_section_header): Print CLINK and BLOCK flags.
2907 * readelf.c (decode_location_expression): Loop through multiple
2909 (read_and_display_attr): Pass in length.
2911 * readelf.c (read_and_display_attr): Add CU offset to references.
2912 (display_debug_info): Pass it in.
2916 * readelf.c (decode_ARM_machine_flags): New function.
2917 (get_machine_flags): Call decode_ARM_machine_flags for ARM
2920 (get_machine_name): Catch EM_AVR
2924 * binutils.texi: Remove optional `=' from long options that have
2925 an `=' in the argument.
2926 * objcopy.1: Here too. Remove extra space on discard-all.
2928 * binutils.texi (objcopy): Mention --redefine-sym.
2929 * objcopy.1: Here too.
2932 * objcopy.c (parse_flags): Split off flag names from error message
2933 gettext as they are not translated.
2934 (copy_main): Similarly split off option name for --add-section,
2935 --set-section-flags, --change-section-vma, --change-section-lma
2937 Some white space changes.
2940 * objcopy.c (struct redefine_node): New.
2941 (redefine_sym_list): New.
2942 (redefine_list_append): New.
2943 (lookup_sym_redefinition): New.
2944 (OPTION_REDEFINE_SYM): New.
2945 (copy_options): Add --redefine-sym option.
2946 (copy_usage): Mention it.
2947 (filter_symbols): Rename symbols on redefine_sym_list.
2948 (copy_object): Call filter_symbols if redefine_sym_list != NULL.
2949 (copy_main): Handle OPTION_REDEFINE_SYM.
2953 * readelf.c (process_symbol_table): Correctly read in symbol
2954 versioning information.
2958 * po/binutils.pot: Regenerate.
2960 * addr2line.c (usage): Restore translated part of bug string.
2961 * ar.c (usage): Likewise.
2962 * nlmconv.c (show_usage): Likewise.
2963 * nm.c (usage): Likewise.
2964 * objcopy.c (copy_usage): Likewise.
2965 (strip_usage): Likewise.
2966 * objdump.c (usage): Likewise.
2967 * readelf.c (usage): Likewise.
2968 * size.c (usage): Likewise.
2969 * strings.c (usage): Likewise.
2970 * windres.c (usage): Likewise.
2972 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2973 (DEP): Quote when passing vars to sub-make. Add warning
2975 (DEP1): Rewrite for "gcc -MM".
2976 (CLEANFILES): Add DEP2.
2977 Update dependencies.
2978 * Makefile.in: Regenerate.
2982 * Makefile.am (GENERATED_HFILES): Add rcparse.h
2983 (arparse.h): Depend on arparse.c
2984 (defparse.h, nlmheader.h, rcparse.h, sysinfo.h): Similarly.
2988 * size.c (usage): Use REPORT_BUGS_TO.
2992 * bucomm.h: #include "bin-bugs.h"
2993 * addr2line.c (usage): Use REPORT_BUGS_TO.
2994 * ar.c (usage): Likewise.
2995 * nlmconv.c (show_usage): Likewise.
2996 * nm.c (usage): Likewise.
2997 (OPTION_TARGET): Define.
2998 (long_options): Use OPTION_TARGET rather than 200.
3001 * objcopy.c (copy_usage): Use REPORT_BUGS_TO.
3002 (strip_usage): Likewise.
3003 * objdump.c (usage): Likewise.
3004 * readelf.c (usage): Likewise.
3005 * strings.c (usage): Likewise.
3006 * windres.c (usage): Likewise.
3010 * readelf.c: Include sys/types.h before sys/stat.h for ultrix.
3014 * rddbg.c (read_section_stabs_debugging_info): Catch out of range
3015 string offsets in corrupt stabs entries.
3019 * readelf.c: Include elf/avr.h
3020 (dump_relocations): Add EM_AVR case.
3024 * strings.1: Correct '-bytes' to '--bytes'.
3028 * Makefile.am (install-exec-local): Depend on
3029 install-binPROGRAMS for parallel make.
3030 * Makefile.in: Regenerated.
3035 * readelf.c (process_dynamic_segment): Add cast to make sure
3036 argument to %* is int.
3040 * configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
3044 * configure.in: Add arm-wince, mips-pe and sh-pe targets.
3045 * configure: Regenerate.
3047 * dlltool.c: Add support for sh-pe and mips-pe targets.
3048 * rescoff.c: Add support for sh-pe and mips-pe targets.
3052 * readelf.c (get_osabi_name): Handle ELFOSABI_LINUX.
3056 * readelf.c (process_symbol_table): Remove use of ELF_ST_OTHER.
3061 * readelf.c (process_version_sections): Add casts to make sure
3062 argument to %* is an int.
3063 (process_mips_specific): Add casts to make printf arguments match
3068 * objdump.c (dump_section_header): Change `opb' to unsigned.
3069 (find_symbol_for_address): Same here.
3070 (disassemble_data): And here. Change `addr_offset',
3071 `stop_offset', `nextstop_offset' to unsigned long.
3072 (dump_data): Change opb to unsigned.
3076 * resrc.c: Remove unmatched #if for cygwin.
3080 * binutils.texi: Document the change of flavor name from atpcs-special
3081 to special-atpcs to prevent name conflict in gdb.
3085 * objdump.c (show_line): Fix bug preventing printing of the very
3086 first line (line zero) of a file when interlisting source and
3087 assembly. Added option to print entire context from start of file
3088 when the first line from that file is encountered.
3092 * objdump.c (dump_section_header, find_symbol_for_address,
3093 show_line, disassemble_bytes, disassemble_data, dump_data):
3094 distinguish between octets and bytes.
3098 * nm.c (print_symbol_info_bsd): Use bfd_is_undefined_symclass to
3099 check to unresolved symbols.
3100 (print_symbol_info_sysv): Ditto.
3101 (print_symbol_info_posix): Ditto.
3103 * binutils.texi: Document new 'V' symclass flag for nm.
3107 * binutils.texi (objdump): Document new ARM specific
3108 disassembler options.
3110 * objdump.c (usage): Call disassembler_usage().
3114 * readelf.c (get_dynamic_flags): Return buff.
3115 (process_dynamic_segment): Don't pass error strings to printf
3117 (read_and_display_attr): Use lx and ld to print longs.
3118 (process_corefile_note_segment): Cast bfd_vma to unsigned long
3124 * readelf.c (get_osabi_name): Recognise ELFOSABI_ARM.
3128 * debug.c (debug_name_type): Return DEBUG_TYPE_NULL rather than
3130 (debug_tag_type): Here too.
3131 * ieee.c (ieee_builtin_type): And here.
3132 * stabs.c (parse_stab_type, parse_stab_array_type): And here.
3136 * readelf.c (get_machine_name): Change EM_S370 to return "IBM
3141 * readelf.c (get_dynamic_type): Remove DT_ENCODING.
3145 * readelf.c (get_note_type): Display NT_WIN32PSTATUS notes.
3149 * windres.c (long_options): Add --use-temp-file and
3150 --no-use-temp-file options.
3154 * windres.h: Update read_rc_file prototype.
3156 * resrc.c (cpp_temp_file): New static variable.
3157 (istream_type): New static variable.
3158 (close_pipe): Delete function.
3159 (run_cmd): New static function.
3160 (open_input_stream): New static function.
3161 (close_input_stream): New static function.
3162 (look_for_default): Handle DOS directory separator. Use
3163 open_input_stream instead of popen.
3164 (read_rc_file): Likewise.
3166 * binutils.texi: Document --use-temp-file, --no-use-temp-file
3171 * dlltool.c (create_compat_implib): New variable.
3172 (gen_exp_file): Use.
3173 (make_one_lib_file): Use.
3174 (long_options): Add --compat-implib option.
3178 * dllwrap.c (enum target_type): Rename MINGW32_TARGET to MINGW_TARGET.
3179 (main): Use. Don't look for "32" in cygwin and mingw target names.
3183 * binutils.texi: Document new, ARM specific disassembler
3184 command line switch "-M force-thumb".
3186 For older changes see ChangeLog-9899
3192 version-control: never