3 * readelf.c (print_symbol): New function: Print a formatted symbol
4 name. If --wide is specified do not truncate it.
5 (dump_relocations): Use print_symbol() to print symbol names.
6 (process_symbol_table): Likewise.
7 (process_syminfo): Likewise.
8 (process_mips_specific): Likewise.
9 (usage): Document new feature of --wide switch.
10 * doc/binutils.texi (objdump): Document additional behaviour of
15 * objcopy.c (copy_file): Accept corefiles (format bfd_core).
16 (copy_object): Don't set the start address or flags of a core file.
17 (copy_section): Don't relocate a core file. Don't copy contents
18 if the input section has the contents flag set, but the output
19 section does not (which happens with the fake 'note' pseudo-
20 sections that BFD creates for corefiles).
24 * readelf.c (get_machine_flags): Recognize header flags for ABI and
25 ASE extensions. More robust code for ISA checking. Ignore empty fields
26 in header flags for GNU extensions.
30 * objcopy.c (copy_archive): Set output bfd format outside the loop.
34 * po/ja.po: Import from translation project.
35 * configure.in (ALL_LINGUAS): Add ja.
36 * configure: Regenerate.
40 * addr2line.c (main): Protoype.
41 * ar.c (main): Protoype.
42 * nm.c (main): Protoype.
43 * objcopy.c (main): Protoype.
44 * objdump.c (main): Protoype.
45 * size.c (main): Protoype.
46 * strings.c (main): Protoype.
50 * readelf.c (symtab_shndx_hdr): New global.
51 (SECTION_HEADER_INDEX): Define.
52 (SECTION_HEADER_NUM): Define.
53 (SECTION_HEADER): Define.
54 (GET_ELF_SYMBOLS): Pass two params rather than three.
55 (get_32bit_elf_symbols): Take file and section args. Read and
57 (get_64bit_elf_symbols): Likewise.
58 (dump_relocations): Use SECTION_HEADER to index "section_headers".
59 (process_section_headers): Likewise. Use SECTION_HEADER_NUM too.
60 Remember symtab_shdx_hdr.
61 (process_program_headers): Scan from index 1 for segment map.
62 (slurp_ia64_unwind_table): Use SECTION_HEADER to index
64 (process_relocs): Likewise. Also adjust call to GET_ELF_SYMBOLS.
65 (process_unwind): Likewise.
66 (process_version_sections): Likewise.
67 (process_symbol_table): Likewise.
68 (display_debug_info): Likewise.
69 (process_dynamic_segment): Fake up a symtab section for changed
71 (get_symbol_index_type): Check SHN_LOOS before SHN_LORESERVE.
72 (process_program_headers): Kill signed/unsigned warning.
73 (load_debug_str): Likewise.
74 (display_debug_info): Likewise.
78 * readelf.c (get_segment_type): Support PT_GNU_EH_FRAME.
82 * readelf.c (process_file_header): Print extended e_shnum and
83 e_shdtrndx values. Set elf_header values for same.
84 (get_32bit_section_headers): Add "num" arg to read "num" headers.
85 (get_64bit_section_headers): Likewise.
86 (process_section_headers): Update calls.
87 (get_file_header): Call get_32bit_section_headers or 64bit variant.
91 * objcopy.c (setup_section): Copy entsize.
95 * readelf.c (guess_is_rela): Add support for stormy16.
96 (dump_relocations): Likewise.
97 (get_machine_name): Likewise.
101 * dllwrap.c (main) Replace multiple strings describing a
102 single error with a single, newline escaped sentence to permit
103 better translation into foreign languages.
105 * readelf.c (get_elf_class): Remove internalionalisation of ELF
110 * strings.c (get_char): Initialize value.
114 * arlex.l: Silence compile warnings.
115 * arsup.h: Likewise. Fix formatting.
119 * strings.c: Include config.h before bfd.h.
120 (file_off): New type.
122 (print_strings): Use file_off instead of file_ptr. Print addresses
123 which don't fit into long correctly.
124 (get_char): Use file_off instead of file_ptr. Use getc_unlocked if
126 (strings_file): Use file_off instead of file_ptr. Use file_open.
127 * configure.in: Check for getc_unlocked.
128 Check for fopen64 and whether _LARGEFILE64_SOURCE needs to
130 * configure: Rebuilt.
131 * config.h.in: Rebuilt.
135 * bucomm.c (make_tempname): Revert the changes made on
136 2001-11-14 and 2001-11-12. They won't work with directories.
140 * binutils/Makefile.am (check-DEJAGNU): Pass CC_FOR_TARGET and
141 CFLAGS_FOR_TARGET to runtest in environment.
142 * Makefile.in: Rebuild.
143 * doc/Makefile.in: Rebuild.
147 * objcopy.c (setup_section): Preserve SEC_RELOC when
148 --set-section-flags is used.
152 * readelf.c (do_debug_str): New variable.
153 (display_debug_str): New function: Display the contents of a
155 (load_debug_str): New function: Load in the contents of a
157 (free_debug_str): New function: Free the memory used by
159 (fetch_indirect_string): Retrieve a string from the .debug_str
162 (parse_args): Accept -ws.
163 (process_section_headers): Allow the display of the .debug_str
165 (read_and_display_attr_value): Use fetch_indirect_string. Show
166 offset into .debug_str section.
167 (display_debug_info): Use load_debug_str and free_debug_str.
168 (debug_displays): Add .debug_str.
169 * doc/binutils.texi: Document -ws.
173 * testsuite/binutils-all/objdump.exp: Add x86-64.
177 * readelf.c: Fix warnings without terminating newline.
181 * doc/binutils.texi (objdump): Document ppc -M options.
185 * doc/binutils.texi (objdump): Fix description to use x86-64.
189 * bucomm.c (make_tempname): Use mkstemps instead of mkstemp, since
190 not all systems provide mkstemp.
194 * doc/binutils.texi (objdump): Document x86 -M options.
198 * readelf.c (read_and_display_attr_value): New function to
199 handle DW_FORM_indirect.
200 (read_and_display_attr): Use it.
204 * readelf.c (display_debug_lines): Deal with unknown standard
205 opcodes. Handle DW_LNS_set_prologue_end, DW_LNS_set_epilogue_begin,
210 * MAINTAINERS: Add self as tic54x maintainer. This target
211 includes the IBM C54XDSP clone.
215 * bucomm.c (make_tempname): Use mkstemp in place of mktemp.
219 * unwind-ia64.c (unw_print_brmask): Fix ISO C portability glitch.
220 (unw_print_grmask, unw_print_frmask, unw_print_abreg): Likewise.
221 (unw_print_xyreg, unw_decode_x1, unw_decode_x2): Likewise.
222 (unw_decode_x3, unw_decode_r1, unw_decode_r2): Likewise.
223 (unw_decode_r3, unw_decode_p1, unw_decode_p2_p5): Likewise.
224 (unw_decode_p6, unw_decode_p7_p10, unw_decode_b1): Likewise.
225 (unw_decode_b2, unw_decode_b3_b4): Likewise.
227 * readelf.c (get_elf_class): Fix ISO portability glitch.
228 (get_data_encoding, get_osabi_name, request_dump): Likewise.
232 * readelf.c (debug_str, debug_str_size): New.
233 (display_debug_abbrev): If no abbrevs were read, skip the CU.
235 (read_and_display_addr): Handle DW_FORM_strp.
236 (display_debug_info): Read .debug_str section if present,
237 so that DW_FORM_strp can be handled.
238 Fix test for non-existant .debug_abbrev section.
244 * arsup.c (ar_open): Prepend tmp- to basename, not whole path.
248 * MAINTAINERS: Add self as s390/s390x maintainer.
252 * MAINTAINERS: Add self as PPC XCOFF maintainer.
256 * configure.in (ALL_LINGUAS): Add "fr" and "tr".
257 * configure: Regernate.
258 * po/fr.po: New file.
259 * po/tr.po: New file.
263 * MAINTAINERS: Add self as MMIX port maintainer.
264 * readelf.c: Include elf/mmix.h.
265 (guess_is_rela): MMIX is RELA.
266 (dump_relocations): Handle MMIX relocations.
267 * Makefile.am: Regenerate dependencies.
268 * Makefile.in: Regenerate.
272 * readelf.c (parse_args): Handle multiple options to the -w
277 * readelf.c (get_section_type_name): Don't print SHT_ prefix for
278 LOPROC, LOOS and LOUSER.
282 * MAINTAINERS: Update my email address.
286 * doc/Makefile.in: Regenerate.
287 * configure: Regenerate.
291 * readelf.c (display_debug_line, display_debug_pubnames,
292 display_debug_info, display_debug_frames): Detect and warn
293 about 64-bit format entries.
294 (display_debug_aranges): Reword 64-bit warning.
295 (debug_displays): Add .debug_pubtypes as a known, but not yet
296 supported, debug section.
300 * coffdump.c (PROGRAM_VERSION): Delete.
301 (main <'V'>): Call print_version.
302 * srconv.c: Likewise.
303 * sysdump.c: Likewise.
304 * version.c (program_version): Remove.
305 (print_version): Use BFD_VERSION_STRING. Just print the current
306 year in copyright message.
307 * addr2line.c (program_version): Remove unused declaration.
308 * objdump.c (display_target_tables): Use BFD_VERSION_STRING in
309 place of BFD_VERSION.
310 * Makefile.am (Makefile): Depend on bfd/configure.in.
311 (cplus-dem.o): Depend on Makefile.
313 * Makefile.in: Regenerate.
317 * readelf.c (display_debug_aranges): Detect and warn about DWARF64
318 format .debug_arange sections.
319 (main): Add missing prototype.
323 * Makefile.am: Update dependencies with "make dep-am".
324 * Makefile.in: Regenerate.
328 * objdump.c (dump_section_header): Dump SEC_ARCH_BIT_0.
332 * bucomm.c (fatal): Define using VPARAMS, VA_OPEN, VA_FIXEDARG,
334 (non_fatal): Likewise.
335 * objdump.c (objdump_sprintf): Likewise.
336 * readelf.c (error): Likewise.
341 * readelf.c (do_wide): New.
342 (options): Add --wide.
343 (usage, parse_args): Likewise.
344 (process_program_headers): Put each segment on a single line if
346 (process_section_headers): Put each section on a single line if
348 * doc/binutils.texi: Document it.
353 * readelf.c (print_vma): Print 8 digits of low hex value.
357 * nlmconv.c: Fix warnings about unused attributes and function
360 * strings.c: Add prototype for get_char.
364 * doc/Makefile.am ($(DEMANGLER_NAME).1): Try cxxfilt.man and
365 $(srcdir)/cxxfilt.man.
366 * doc/Makefile.in: Rebuild.
370 * objcopy.c (copy_main): Correct rename-section string parsing.
371 Consolidate new_name parsing, and error messages.
375 * addr2line.c: Don't include <ctype.h>.
376 (main): For gettext, also set the LC_CTYPE locate facet.
377 * ar.c (main): Likewise.
378 * coffdump.c (main): Likewise.
379 * dlltool.c: Include "safe-ctype.h" instead of <ctype.h>.
380 (main): For gettext, also set the LC_CTYPE locate facet.
381 Use ISALNUM instead of isalpha/isdigit.
382 * dllwrap.c: Don't include <ctype.h>.
383 (main): For gettext, also set the LC_CTYPE locate facet.
384 * nlmconv.c: Include "safe-ctype.h" instead of <ctype.h>.
385 (main): For gettext, also set the LC_CTYPE locate facet.
386 Use TOUPPER instead of islower/toupper.
387 * nlmheader.y: Include "safe-ctype.h" instead of <ctype.h>.
388 (yylex): Use ISSPACE/ISALNUM instead of isspace/isalnum.
389 Use TOUPPER instead of islower/toupper.
390 * nm.c (main): For gettext, also set the LC_CTYPE locate facet.
391 * objcopy.c (main): Likewise.
392 * objdump.c: Include "safe-ctype.h" instead of <ctype.h>.
393 (disassemble_bytes): Use ISPRINT instead of isprint.
394 (dump_section_stabs): Use ISDIGIT instead of isdigit.
395 (dump_data): Use ISPRINT instead of isprint.
396 (main): For gettext, also set the LC_CTYPE locate facet.
397 * rclex.l: Include "safe-ctype.h" instead of <ctype.h>.
398 (cpp_line, handle_quotes): Use ISSPACE instead of isspace.
399 * rcparse.y: Include "safe-ctype.h" instead of <ctype.h>.
400 Use TOUPPER instead of islower/toupper.
401 * readelf.c (main): For gettext, also set the LC_CTYPE locate facet.
402 * resrc.c: Include "safe-ctype.h" instead of <ctype.h>.
403 (write_rc_accelerators): Use ISPRINT instead of isprint.
404 (write_rc_rcdata): Likewise.
405 * size.c (main): For gettext, also set the LC_CTYPE locate facet.
406 * srconv.c (main): Likewise.
407 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
408 (parse_number): Use ISDIGIT/ISUPPER/ISLOWER instead of
409 isdigit/isupper/islower.
410 (parse_stab_string, parse_stab_type, parse_stab_argtypes,
411 parse_stab_array_type, stab_demangle_count, stab_demangle_get_count,
412 stab_demangle_prefix, stab_demangle_qualified,
413 stab_demangle_template, stab_demangle_type,
414 stab_demangle_fund_type): Use ISDIGIT instead of isdigit.
415 * strings.c: Include "safe-ctype.h" instead of <ctype.h>.
416 (isgraphic): Use ISPRINT instead of isascii/isprint.
417 (main): Remove HAVE_LC_MESSAGES dependency.
418 * sysdump.c: Include "safe-ctype.h" instead of <ctype.h>.
419 (pbarray): Use ISPRINT instead of isprint.
420 (main): For gettext, also set the LC_CTYPE locate facet.
421 * windres.c: Include "safe-ctype.h" instead of <ctype.h>.
422 (format_from_filename): Use ISPRINT instead of isprint.
423 (main): For gettext, also set the LC_CTYPE locate facet.
424 * winduni.c: Include "safe-ctype.h" instead of <ctype.h>.
425 (unicode_print): Use ISPRINT instead of isprint.
426 * wrstabs.c: Include "safe-ctype.h" instead of <ctype.h>.
427 (stab_variable): Use ISDIGIT instead of isdigit.
431 * ar.c (print_contents): Cast args of bfd_seek to the right types.
432 Replace bfd_read call with call to bfd_bread.
433 (extract_file): Likewise.
435 * objdump.c (dump_section_header): Cast section->filepos to
436 unsigned long to suit printf format string.
437 * readelf.c (process_section_headers): Similarly for sh_offset.
438 (process_unwind): Likewise.
442 * strings.c (encoding, encoding_bytes): New variables.
443 (long_options): Add --encoding.
444 (main): Accept -e and --encoding.
445 (get_char): New function. Read a, possibly wide, character from
447 (print_strings): Use get_char().
448 (usage): Document new command line option.
449 * doc/binutils.texi: Document new command line option.
450 * NEWS: Announce new command line option.
454 * readelf.c (guess_is_rela, dump_relocations, get_machine_name,
455 get_machine_flags): Added EM_M32R, EM_D10V, EM_V850, EM_D30V,
456 EM_MN10200, EM_MN10300, EM_FR30, EM_AVR_OLD and EM_PJ_OLD.
457 Removed EM_CYGNUS_ARC.
461 * readelf.c: Include elf/h8 for H8 series definitions.
462 (guess_is_rela): H8 series if RELA.
463 (dump_relocations): Handle H8 series relocations.
467 * readelf.c (get_machine_flags): Remove E_MIPS_MACH_MIPS32_4K.
471 * MAINTAINERS: Include ARC Maintainer.
475 * stabs.c (stab_demangle_template): Initialise s4.
479 * readelf.c (dump_relocations): Recognise EM_PPC64.
483 * readelf.c (get_machine_flags): Add detection of EF_MIPS_32BITMODE.
487 * nm.c (print_width): New.
488 (display_rel_file): Set `print_width' according to
490 (print_symbol_info_bsd): Check `print_width' instead of BFD64.
494 * objcopy.c (use_alt_mach_code): New variable.
495 (OPTION_ALT_MACH_CODE): Define.
496 (copy_options): Added --alt-machine-code.
497 (copy_main): Handle it.
498 (copy_object): Switch to alternate machine code if requested.
499 * doc/binutils.texi: Document new option.
504 * readelf.c (get_machine_flags): Add detection of EF_MIPS_UCODE.
508 * readelf.c (dump_relocations): Support ELF64 on 32bit hosts.
509 (display_debug_info): Cast for 64bit hosts.
510 (display_debug_frames): Likewise.
511 (process_mips_specific): Likewise.
515 * coffgrok.h: Add missing parameter for prototype of coff_grok.
517 * sysdump.c: Add missing prototypes.
518 * srconv.c: Likewise.
519 * unwind-ia64.c: Likewise.
520 * coffdump.c: Likewise.
522 * sysinfo.y: Print prototypes, include <ansidecl.h>.
524 * coffgrok.c: Add missing prototypes, include libiberty.h instead
525 of declaring xcalloc.
529 * nm.c (print_value): Add one arg, bfd *.
530 (print_value): Replace fprintf_vma with bfd_fprintf_vma.
531 (print_symbol_info_bsd): Also pass `abfd' to print_value ().
532 (print_symbol_info_sysv): Likewise.
533 (print_symbol_info_posix): Likewise.
535 * objdump.c (dump_section_header): Replace printf_vma with
537 (print_section_stabs): Likewise.
538 (dump_bfd_header): Likewise.
539 (objdump_print_value): Replace sprintf_vma with
541 (disassemble_bytes): Likewise.
542 (dump_reloc_set): Likewise.
546 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
548 * configure: Regenerate.
552 * readelf.c: Add missing prototypes.
553 * objdump.c: Likewise. Format existing prototypes.
557 * readelf.c (display_debug_info): Add to abbrev_offset the addend
558 of any RELA relocation for the abbrev_offset memory location that
559 refers to the .debug_abbrev section symbol.
563 * readelf.c (process_file): Return 0 if OK, otherwise return 1.
564 (main): Return process_file ().
568 * doc/binutils.texi: Use "Thumb" not "THUMB".
573 * objdump.c (disassemble_data): Fill in section member of the
574 disasm_info structure.
578 * configure.in: Added --with-windres option.
579 * configure: Regenerated.
583 * doc/binutils.texi: Use @command{name} for commands;
584 use @option{-opt} for options; use @table @env for list of options;
585 remove spaces arround [ | ] in synopsis.
587 * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for the
592 * objcopy.c: Fix formatting.
593 (section_rename): New structure.
594 (OPTION_RENAME_SECTION): New switch.
595 (copy_usage): Document new switch.
596 (add_section_rename): New function: Add a node to the section
598 (find_section_rename): New function: Find the new name and
600 (setup_section): Call find_section_name to determine the name
601 of the output section.
602 (copy_main): Handle OPTION_RENAME_SECTION.
603 * binutils.texi: Document new switch.
604 * NEWS: Mention new switch.
614 * bucomm.c (list_supported_architectures): New function.
615 * bucomm.h (list_supported_architectures): Declare.
616 * objdump.c (usage): Call the above.
620 * objdump.c (SKIP_ZEROES): Only define it if it is not already defined.
621 (SKIP_ZEROES_AT_END): Only define it if it is not already defined.
625 * README: Update for 2.11. Change bug reporting email address.
626 * MAINTAINERS: Tidy up. Change bug reporting email address.
630 * resres.c (write_res_header): Align header size.
631 (res_align_file): Calculate alignment correctly.
633 * rcparse.y (styles): use SUBLANG_SHIFT instead of 8 (or the more
635 * resrc.c (write_rc_resource): Likewise.
636 * windres.h (SUBLANG_SHIFT): Define - as 10.
640 * MAINTAINERS: Add Christian Groessler as maintainer for z8k port.
644 * MAINTAINERS: Add notes about branch checkins.
648 * readelf.c (display_debug_macinfo): New function, display
649 .debug_macinfo section.
650 (do_debug_macinfo): New variable.
651 (parse_args): Handle "-w[mM]" to mean display macro info.
652 (process_section_headers): Handle debug_macinfo.
653 (debug_displays): Replace unsupported function with macinfo
654 function for .debug_macinfo display.
655 * doc/binutils.texi: Document new command line switch.
656 * NEWS: Document new feature of readelf.
660 * objcopy.c (filter_symbols): Don't turn undefined symbols
665 * doc/Makefile.am (addr2line.1): Use addr2line.pod instead of
668 (dlltool.1): Likewise.
669 (nlmconv.1): Likewise.
671 (objcopy.1): Likewise.
672 (objdump.1): Likewise.
673 (ranlib.1): Likewise.
674 (readelf.1): Likewise.
676 (strings.1): Likewise.
678 (windres.1): Likewise.
680 ($(DEMANGLER_NAME).1): Also substitute cxxfilt with
683 * doc/Makefile.in: Regenerated.
687 * MAINTAINERS: Change MIPS maintainer to Eric Christopher.
691 * readelf.c: Support DWARF 2.1 tags, encodings, languages.
695 * readelf.c: Support DWARF 2.1 attributes.
699 * readelf.c (GET_DATA_ALLOC): Remove.
701 (get_data): New function combining above macros, with an extra
703 (slurp_rela_relocs): Use get_data, and catch error return.
704 (slurp_rel_relocs): Likewise.
705 (get_32bit_program_headers): Likewise.
706 (get_64bit_program_headers): Likewise.
707 (get_32bit_section_headers): Likewise.
708 (get_64bit_section_headers): Likewise.
709 (get_32bit_elf_symbols): Likewise.
710 (get_64bit_elf_symbols): Likewise.
711 (process_section_headers): Likewise.
712 (process_relocs): Likewise.
713 (slurp_ia64_unwind_table): Likewise.
714 (process_unwind): Likewise.
715 (get_32bit_dynamic_segment): Likewise.
716 (get_64bit_dynamic_segment): Likewise.
717 (process_dynamic_segment): Likewise.
718 (process_version_sections): Likewise.
719 (process_symbol_table): Likewise.
720 (dump_section): Likewise.
721 (display_debug_info): Likewise.
722 (display_debug_section): Likewise.
723 (process_section_contents): Likewise.
724 (process_corefile_note_segment): Likewise.
725 (process_mips_specific): Likewise. Also free econf32, econf64.
729 * readelf.c (dump_relocations): Print "bad symbol index" if
730 symtab == NULL with non-zero symtab_index.
731 (process_relocs): Don't bomb if reloc section has no symsec.
735 * objcopy.c (strip_main): Revert the change made on 2001-05-30
737 (copy_main): Apply the change made to strip_main on
738 2001-05-30 by accident.
742 * unwind-ia64.c (unw_decode_x1): Add unused attribute for
744 (unw_decode_x2): Likewise.
745 (unw_decode_x3): Likewise.
746 (unw_decode_x4): Likewise.
750 * MAINTAINERS: Add myself as M88k maintainer.
754 * objcopy.c (strip_main): Support -o or --output-file command lien
759 * doc/Makefile.in: Regenerated.
763 * readelf.c: Restore formatting.
767 * Makefile.am: Move documentation into doc subdirectory.
768 * Makefile.in: Regenerated.
769 * binutils.texi: Move into doc subdirectory.
770 * addr2line.1: Removed.
772 * dlltool.1: Likewise.
773 * nlmconv.1: Likewise.
775 * objcopy.1: Likewise.
776 * objdump.1: Likewise.
777 * ranlib.1: Likewise.
778 * readelf.1: Likewise.
780 * strings.1: Likewise.
782 * windres.1: Likewise.
783 * cxxfilt.man: Likewise.
784 * doc: New Directory.
785 * doc/Makefile.am: New file.
786 * doc/Makefile.in: Generate.
790 * NEWS: Fix a typo. Mention hppa64-elf. Add binutils-2.11 marker.
794 * MAINTAINERS: Update my email address.
798 * objcopy.c: Add new switches: --keep-global-symbol,
799 --keep-symbols, --localize-symbols, --keep-global-symbols and
801 * binutils.texi: Document new switches.
802 * objcopy.1: Regenerate.
803 * NEWS: Announce new feature.
807 * readelf.c (display_debug_frames): Fix warnings: Remove unused
808 variables, fix format strings.
812 * objdump.c (disassemble_bytes): Remove section VMA adjustment
813 when computing the address of the line to show.
817 * readelf.c (do_debug_frames_interp): New.
818 (byte_get_little_endian): If BFD64, always read entire 8-byte fields.
819 (byte_get_big_endian): Likewise.
820 (parse_args) ['F']: Set do_debug_frames_interp.
821 (Frame_Chunk): Make data_factor signed, add fde_encoding.
822 (frame_display_row): Don't trunc pc_begin to int.
823 (size_of_encoded_value): New.
824 (display_debug_frames): Handle 64-bit targets. Print raw data
825 unless do_debug_frames_interp.
826 (debug_displays): Remove duplicate .debug_frame.
830 * readelf.c: Replace uses of EM_MIPS_RS4_BE with EM_MIPS_RS3_LE.
831 The former constant was never in active use and is used otherwise
836 * readelf.c (process_unwind): Print all unwind sections, not just
841 * readelf.c (process_unwind): Remove const specifier.
845 * strings.c (isgraphic): Do not use isascii() unless it is needed
846 for isprint() to work.
847 (main): Set the locale domain to LC_ALL not just LC_MESSAGES.
851 * NEWS: Announce support for OpenRISC.
855 * dlltool.c (do_default_excludes): Initialise to true.
859 * MAINTAINERS: Update my email address
860 * nm.c (print_symbol_info_bsd): Use a simple printf string.
864 * readelf.c (display_debug_lines): Fix typo for "Prologue".
868 * readelf.c (process_unwind): Just return if do_unwind is 0.
872 * dlltool.c (make_one_lib_file): Fix section flags for
873 .text, .data and .bss in stub ds*.o files to match those
878 * readelf.c (process_unwind): Only do unwind sections for
883 * Makefile.am ($(srcdir)/dlltool.1): Remove the extra target.
884 * Makefile.in: Regenerate.
888 * binutils.texi (nm): Fix texi syntax.
892 * binutils.texi: Put @c man begin and @c man end indications
893 to generate man pages using texi2pod and pod2man. Put @c man title
894 to identify each man. Add SEEALSO entries.
895 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
896 (man_MANS): Add dlltool.1, nlmconv.1, readelf.1, windres.1,
898 (*.1): Build the man pages from binutils.texi.
899 * Makefile.in: Regenerate.
903 * defparse.y (opt_equal_name): allow "." in name.
904 * dlltool.c (def_exports): Added ability to generate forwarded exports.
905 (gen_exp_file): Likewise.
909 * NEWS: Document addition of -B switch to objcopy.
910 * binutils.texi: Document addition of -B switch to objcopy.
911 * objcopy.c: (copy_options): Add --binary-architecture.
912 (copy_usage): Document -B/--binary-architecture.
913 (copy_main): Support -B/--binary-architecture. Set
914 bfd_external_binary_architecture.
918 * readelf.c (guess_is_rela): Handle EM_S390_OLD.
919 (dump_relocations): Likewise.
920 (get_machine_name): Likewise.
924 * readelf.c: (struct unw_aux_info): Remove const modifier for
926 (process_unwind): Remove non-K&R compliant LHS type cast in call
927 to GET_DATA_ALLOC macro.
931 * readelf.c (decode_ARM_machine_flags): Explicitly mention which
932 ABI is in use; remove ambiguity between the "unknown" EABI and
933 unrecognised ABIs. Handle version 2 ARM EABI. Update uses of
934 renamed EF_xx constants.
938 * configure.in (BFD_VERSION): New.
939 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
940 * configure: Regenerate.
941 * Makefile.am: Run "make dep-am"
942 * Makefile.in: Regenerate.
946 * MAINTAINERS: Add "Obvious Fix" rule.
950 * unwind-ia64.c: Don't use ANSI C preprocessor stringisation and string
951 literal concatenation.
955 * readelf.c (struct unw_aux_info): Remove const from the info member.
956 (process_unwind): Don't type-cast the third argument to the
957 GET_DATA_ALLOC macro.
961 * readelf.c (dump_relocations): Free corrected allocated
963 (process_unwind): Fix compile time warning.
967 * binutils.texi: Document new --unwind option to readelf.
971 * readelf.c: Add linux target for S/390.
975 * nm.c (print_symbol_info_bsd): Don't #ifdef inside printf in case
980 * acinclude.m4 (AM_PROG_LEX): Override installed definition.
981 * aclocal.m4: Regenerate.
982 * configure: Regenerate.
986 * bucomm.c (bfd_target_vector): Change extern array to pointer.
987 * objdump.c (bfd_target_vector): Likewise.
991 * readelf.c (process_unwind): New function.
992 (slurp_ia64_unwind_table): Ditto.
993 (dump_ia64_unwind): Ditto.
994 (find_symbol_for_address): Ditto.
995 (slurp_rela_relocs): New function (split off from dump_relocations()).
996 (slurp_rel_relocs): Ditto.
997 (parse_args): Handle '-u' option.
999 * unwind-ia64.c: New file.
1000 * unwind-ia64.h: New file.
1001 * Makefile.am: Include unwind-ia64.c in readelf build.
1002 * Makefile.in: Regenerate.
1003 * po/binutils.pot: Regenerate.
1007 * configure.in (OBJDUMP_DEFS): Match `arm*-*', not just `arm-*'.
1008 * configure: Regenerate.
1012 * ieee.c (ieee_add_bb11): Don't check for backslashes
1013 unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
1017 * ieee.c: Update copyright.
1018 (ieee_start_compilation_unit): Don't check for backslashes
1019 unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
1021 * stabs.c: Update copyright. Include "filenames.h".
1022 (parse_stab): Use IS_ABSOLUTE_PATH. Ignore N_WARNING stabs.
1026 * readelf.c (process_version_sections): Check if VERDEF or VERNEED
1027 sections are present before using them. Remove code duplication.
1028 (process_symbol_table): Check if VERDEF or VERNEED sections are
1029 present before using them.
1033 * objcopy.c (copy_object): Fail if attempting to convert the
1034 endianness of the input object file.
1036 * binutils.texi: Explain that objcopy cannot convert endianness.
1040 * readelf.c (string_table_length): New variable.
1041 (SECTION_NAME): Catch out of range indices and missing section
1043 (process_section_headers): Delete useless local variable
1044 string_table_offset. Set the value of string_table_length
1045 after loading the string table.
1046 (process_mips_specific): Use SECTION_NAME macro.
1047 (process_file): Set string_table_length to 0 when it is freed.
1051 * version.c (print_version): Update copyright date.
1055 * readelf.c (dump_relocations): Include selection with EM_ARC.
1056 (get_machine_name) Update name to "ARC".
1060 * Makefile.am: Add rule to build objdump.o from objdump.c and
1062 * Makefile.in: Regenerate.
1064 * configure.in: Define OBJDUMP_DEFS. Default to empty.
1065 (arm, xscale, d10v): For these targets define OBJDUMP_DEFS to
1066 -DDISASSEMBLER_NEEDS_RELOCS.
1067 * configure: Regenerate.
1069 * objdump.c (disassemble_bytes): If DISASSEMBLER_NEEDS_RELOCS
1070 is defined read in the relocs even if dump_reloc_info is
1075 * binutils.texi (Bug Reporting): Replace `bug-gnu-utils' with
1081 * dlltool.c: Add missing support for arm-epoc-pe.
1082 * configure.in: Add missing support for arm-epoc-pe.
1083 * configure: Regenerate.
1087 * MAINTAINERS: Add Diego Novillo as a maintainer for the Intel
1088 Mode parts of the x86 port.
1092 * readelf.c (guess_is_rela): Add EM_X86_64.
1093 (dump_relocations): Add EM_X86_64.
1094 (get_machine_name): Add EM_X86_64.
1095 Include "elf/x86-64.h".
1099 * readelf.c: Fix formatting.
1103 * MAINTAINERS: Add myself and Andreas Jaeger as x86_64 maintainer.
1107 * readelf.c (display_debug_frames): Only display columns that are
1108 referenced by the frame debug info.
1112 * MAINTAINERS: Add Jason Merrill as DWARF2 maintainer.
1116 * readelf.c (process_section_headers): Handle linkonce.wi sections.
1117 (display_debug_section): Likewise.
1118 (display_debug_info): Display CU header before bailing.
1122 * readelf.c (get_machine_flags): Recognize MIPS32 ISA in
1123 EF_MIPS_ARCH. Replace use of E_MIPS_MACH_MIPS32 with
1124 E_MIPS_MACH_MIPS32_4K and adjust printed CPU name similarly.
1126 * readelf.c (get_machine_flags): Add cases for E_MIPS_ARCH_5,
1129 * readelf.c (get_machine_flags): Add case for
1134 * readelf.c (frame_display_row): Output 's' for DW_CFA_same_value.
1138 * MAINTAINERS: Add J
\81örn Rennecke and self as SH maintainers.
1139 Change sourceware.cygnus.com to sources.redhat.com.
1140 Fix typo for "amongst".
1144 * strip.1 (COPYING): Mention that the GNU Free Documentation
1145 License is present in the sources, but not the output, and
1146 also available from the GNU website.
1147 (GNU Free Documentation License): Comment out this section.
1156 * addr2line.1: Ditto.
1160 * readelf.c (usage): Add -wf (--debug-dump=frames) option.
1161 (parse_args): Support -wf option.
1162 (process_section_headers): Ditto.
1163 (debug_displays): Ditto.
1164 (display_debug_frames): New, dump *_frame sections.
1165 (frame_need_space): Support for above.
1166 (frame_display_row): Ditto.
1167 * binutils.texi: Document it.
1171 * NEWS: Announce support for v5t, v5te and XScale.
1175 * readelf.c (get_machine_name): Add EM_JAVELIN, EM_FIREPATH,
1176 EM_ZSP, EM_MMIX, EM_HUANY, EM_PRISM.
1177 (get_section_type_name): Add SHT_GROUP and SHT_SYMTAB_SHNDX.
1178 (get_elf_section_flags: Add SHF_GROUP.
1179 (process_section_headers): Adjust output for 32-bit binaries
1180 to look nice on an 80 column terminal.
1184 * readelf.c (get_osabi_name): Change ELFOSABI_MONTEREY to
1189 * readelf.c (display_debug_lines): Adjust last change to
1190 use sizeof (external->li_length).
1194 * readelf.c (display_debug_lines): Fix section length check
1195 and end_of_sequence computation.
1199 * binutils.texi: Add GNU Free Documentation License.
1200 * objcopy.1: Add GNU Free Documentation License.
1201 * objdump.1: Add GNU Free Documentation License.
1202 * addr2line.1: Add GNU Free Documentation License.
1203 * ar.1: Add GNU Free Documentation License.
1204 * nlmconv.1: Add GNU Free Documentation License.
1205 * nm.1: Add GNU Free Documentation License.
1206 * ranlib.1: Add GNU Free Documentation License.
1207 * size.1: Add GNU Free Documentation License.
1208 * strings.1: Add GNU Free Documentation License.
1209 * strip.1: Add GNU Free Documentation License.
1213 * objcopy.c (--srec-len=nn): New parameter to set the
1214 maximum length of generated Srecords.
1215 (--srec-forceS3): New parameter that restricts the generation of
1216 Srecords to type S3 only.
1217 * binutils.texi: Document new command line switches.
1218 * objcopy.1: Docuemnt the new command line switches.
1219 * NEWS: Announce the existence of the new command line switches.
1223 * MAINTAINERS: Add Jim Wilson as the maintainer for the IA64
1224 code. Add Eric Chrisopher as maintainer of MN10300 port.
1228 * Make comma after string after icon/control optional.
1232 * readelf.c (get_machine_flags): Also print EF_MIPS_MACH field.
1234 * NEWS: Mention support for MIPS32.
1238 * MAINTAINERS: Add Stephane Carrez as maintainer for 68HC[11|12].
1242 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1243 * configure: Rebuild.
1247 * configure: Rebuilt with new libtool.m4.
1251 * aclocal.m4: Regenerate.
1252 * config.in: Regenerate.
1253 * configure: Regenerate.
1257 * strip.1: Fix stray '\' in -o formatting.
1261 * configure.in: Increase version number to 2.10.91.
1262 * configure: Regenerate.
1263 * aclocal.m4: Regenerate.
1264 * config.in: Regenerate.
1265 * po/binutils.pot: Regenerate.
1269 * acinclude.m4: Include libtool and gettext macros from the
1271 * aclocal.m4, configure: Rebuilt.
1275 * resrc.c (close_input_stream): Delete extraneous logic
1279 * NEWS: Mention support for CRIS.
1283 * addr2line.c: Changed email address for Ulrich Lauther.
1287 * objdump.c (LONGEST_ARCH): Set to sizeof("powerpc:common").
1291 * readelf.c (display_debug_pubnames): Only issue warning
1292 message once. Terminate message with a new line.
1293 (display_debug_aranges): Only display version 2 debug info.
1297 * objcopy.c (strip_main): Silently accept -d as an alias for -g
1298 for compatibility with old BSD systems.
1302 * NEWS: Mention i860 support.
1306 * addr2line.c (main): Add const to char *.
1310 * ar.c (main): Don't crash if called with no arguments
1311 or only '-X32_64' as an argument.
1315 * resrc.c: use "gcc -xc" instead of -xc-header
1319 * readelf.c (elf/i860.h): Include.
1320 (dump_relocations): Add recognition of i860 architecture.
1321 (guess_is_rela): Add recognition of i860 architecture.
1325 * MAINTAINERS: Add information about CGEN maintainers.
1329 * nm.c (main): Ignore '-X32_64' as an option.
1330 * ar.c (main): Likewise.
1331 * binutils.texi (nm): Document new option.
1336 * rdcoff.c (external_coff_symbol_p): K&R-ise.
1340 * binutils.texi: Put back "@end table" deleted by
1345 * nm.c: Add optional style to demangle switch.
1346 * objdump.c: Add optional style to demangle switch.
1347 * addr2line.c: Add optional style to demangle switch.
1348 * binutils.texi: Document optional style to demangle
1353 * MAINTAINERS: Add self as CRIS port maintainer.
1354 * readelf.c: Include elf/cris.h.
1355 (guess_is_rela): Handle EM_CRIS.
1356 (dump_relocations): Ditto.
1357 (get_machine_name): Ditto.
1358 * Makefile.am: Rebuild dependencies.
1359 * Makefile.in: Regenerate.
1360 * po/binutils.pot: Regenerate.
1364 * readelf.c (get_dynamic_type): Change "AUXILARY" to
1366 (process_dynamic_segment): Print out strings for DT_CONFIG,
1367 DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH.
1371 * nm.c (usage): Change output of `nm --help' to include a
1372 description of the purpose of the program and a detailed
1373 description of the accepted options.
1377 * readelf.c (process_dynamic_segment): Change DF_1_NODEPLIB
1382 * readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
1386 * readelf.c (get_dynamic_type): Change DT_FEATURE_1 to
1388 (process_dynamic_segment): Likewise.
1390 * readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT,
1391 DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM.
1392 (process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB,
1393 DF_1_NODUMP and DF_1_CONLFAT.
1397 * binutils.texi (readelf): Fix spelling typo.
1401 * objdump.c (usage): Make output of `objdump --help' more
1402 consistent with the rest of the GNU world. Add a line describing
1403 the purpose of the program.
1407 * stabs.c (parse_stab_range_type): Cast to proper type to fix
1412 * readelf.c (get_dynamic_data): Add casts and use unsigned chars
1414 (process_symbol_table): Ditto.
1415 (procesS_extended_line_op): Ditto.
1416 (display_debug_lines): Ditto.
1417 (display_debug_pubnames): Ditto.
1418 (read_and_display_attr): Ditto.
1422 * MAINTAINERS: Add several more port specific maintainers.
1426 * MAINTAINERS: Add blanket write privs for Michael Meissner.
1434 * dllwrap.c: Changed mistaken dyn_string_append() calls
1435 to dyn_string_append_cstr().
1439 * stabs.c (parse_stab_type): Divide size in bits by 8 as binutils
1440 struct debug_type stores size in bytes.
1444 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1445 (CLEANFILES): Add DEPA.
1446 * Makefile.in: Regenerate.
1450 * ar.c: Revert incorrect 2000-06-25 patch.
1451 * bucomm.c: Likewise.
1455 * rdcoff (parse_coff_symbol): Treat GNU weak symbols as external.
1456 (external_coff_symbol_p): New function.
1457 (parse_coff): Use it.
1461 * ar.c (normalize): Advance past both characters in a DOS based
1462 <letter>: filepath prefix.
1464 * bucomm.c (make_tempname): Likewise.
1468 * objdump.c (usage): Fix description of --stabs switch.
1472 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1474 * Makefile.in: Regenerate.
1478 * ar.c (normalize): Correct pointer comparison when checking for
1481 * bucomm.c (make_tempname): Likewise.
1483 * ieee.c (ieee_start_compilation_unit): Correct pointer comparison
1484 and search for backslashes in the original pathname.
1485 (ieee_add_bb11): Likewise.
1489 * ar.c (print_contents): Improve verbose message.
1493 * dyn-string.c: Removed. Not needed with dyn-string.c in
1495 * dyn-string.h: Likewise.
1497 * Makefile.am: Remove references to dyn-string.c and
1498 dyn-string.h. Rebuild dependency.
1499 * Makefile.in: Rebuild.
1503 * binutils.texi: Put a warning on copying relocatable object
1504 files between two different formats.
1508 * rcparse.y (control): ICON controls take an id as the first
1509 parameter, not an optional string. Also, call new convenience
1510 function that takes res_id's.
1511 * resrc.c (define_control): missing text means zero-length string,
1513 (define_icon_control): New.
1514 * windres.h: declare define_icon_control.
1518 * configure: Regenerate.
1522 * configure.in (VERSION): Update to show this is the CVS mainline.
1526 * strings.c (isgraphic): Interpret <TAB> as a printable character,
1527 analogous to <SPACE>.
1531 * objdump.c (display_target_list): Use bfd_close_all_done, not
1532 bfd_close to fix crash caused by 2000-05-24 change.
1536 * resrc.c (close_input_stream): zero out cpp_pipe after closing it.
1540 * Makefile.am: Update dependencies with "make dep-am"
1541 * Makefile.in: Regenerate.
1545 * ar.c: Include filenames.h.
1546 (normalize) [HAVE_DOS_BASED_FILE_SYSTEM]: Support backslashes
1547 and drive letters in file names.
1548 (main): Support backslashes and drive letters in argv[0]. Drop
1549 the .exe suffix, if any, in argv[0] if is_ranlib is negative. Use
1550 FILENAME_CMP instead of strcmp to compare file names.
1551 (open_inarch) [__GO32__]: Don't ifdef errno != ENOENT test for
1553 (do_quick_append) [__GO32__]: Ditto.
1554 (get_pos_bfd, delete_members, move_members, replace_members):
1555 Compare file names with FILENAME_CMP.
1557 * bucomm.c: Include filenames.h.
1558 (make_tempname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support mixed
1559 forward/backward slashes and drive letters in file names.
1561 * ieee.c (ieee_start_compilation_unit, ieee_add_bb11): Support
1562 mixed forward/backward slashes and drive letters in file names.
1564 * strings.c (O_BINARY, setmode, SET_BINARY): Define.
1565 (main) [SET_BINARY]: Use SET_BINARY to switch stdin into binary
1568 * objcopy.c: Include filenames.h.
1569 (main) [HAVE_DOS_BASED_FILE_SYSTEM]: Drop the .exe suffix
1570 before comparing to "strip".
1571 Use FILENAME_CMP to compare file names.
1573 * arsup.c: Include filenames.h.
1574 (map_over_list, ar_delete, ar_replace, ar_extract): Use
1575 FILENAME_CMP to compare file names.
1576 (ar_open): Prepend "tmp-" instead of appending "-tmp", to create
1577 the temporary file name.
1579 * configure.in: Check for setmode.
1580 * configure: Regenerate.
1584 * objdump.c (display_target_list): Close the bfd.
1585 (display_info_table): Likewise.
1589 * objcopy.c (filter_symbols): Don't strip global symbols in
1590 relocatable object files.
1594 * size.c (usage): Associate short options with corresponding long
1595 option to give a clue as to their function.
1599 * size.c (main): Accept and ignore `-f' option.
1603 * bucomm.h (gettext, dgettext, dcgettext, textdomain,
1604 bindtextdomain): Replace defines with those from intl/libgettext.h
1605 to quieten gcc warnings.
1609 * nlmconv.c (temp_filename): Removed.
1611 * nlmconv.c (link_inputs): Use make_temp_file () instead of
1612 choose_temp_base ().
1613 * objdump.c (display_target_list): Likewise.
1614 (display_info_table): Likewise.
1618 * objcopy.c (setup_section): Add const and gettext calls for err.
1622 * readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
1623 ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
1624 ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
1625 ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
1626 and ELFOSABI_OPENBSD.
1630 * coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate.
1631 * srconv.c: Likewise.
1632 * sysdump.c: Likewise.
1636 * readelf.c (guess_is_rela): AVR uses RELA relocations.
1637 (get_machine_name): machine name for EM_AVR added.
1642 * Makefile.am (readelf.o): Add elf/ia64.h.
1643 * Makefile.in: Rebuild.
1644 * readelf.c: Include elf/ia64.h.
1645 (guess_is_rela, dump_relocations): Handle EM_IA_64.
1649 * objdump.c (disassemble_data): Set octets per byte *after*
1650 resolving arch/mach for binary files.
1654 * arlex.l: Add directives to increase lex buffer size.
1656 * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are
1657 already included by bucomm.h.
1661 * readelf.c (dynamic_segment_mips_val): Call `sprintf', not
1662 `strftime' since strftime is not available on all systems.
1663 (process_mips_specific): Ditto.
1667 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1668 --enable-build-warnings option.
1669 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1670 * Makefile.in, configure: Re-generate.
1674 * addr2line.c: Update copyright.
1675 * objcopy.1: Likewise, and title.
1676 * strings.1: Likewise.
1678 * version.c (print_version): Add 2000.
1680 * rddbg.c (read_section_stabs_debugging_info): Don't use
1681 bfd_size_type for strx to avoid printf problems if BFD64.
1683 * bucomm.c: (report): Remove `static'.
1684 Move inclusion of stdarg.h/vararg.h from here.
1685 * bucomm.h: To here.
1686 (CONST): Change all occurences to const.
1687 (report): Declare it.
1688 (bfd_fatal): Add ATTRIBUTE_NORETURN.
1689 (fatal): Add ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN.
1690 (non_fatal): Add ATTRIBUTE_PRINTF_1.
1692 * ar.c (main): Use fatal or non_fatal instead of fprintf.
1693 Correct a typo in an error message.
1694 (do_quick_append): Use non_fatal instead of fprintf.
1695 (move_members): Use fatal instead of fprintf, exit.
1696 * coffdump.c (main): Same here.
1698 * dlltool.c (display): Delete.
1700 (inform): Use `report' instead of `display'.
1701 (rvaafter): Remove trailing \n from fatal error msg.
1703 (asm_prefix): Ditto.
1704 (yyerror): Replace `warn' with `non_fatal', and remove \n.
1705 (def_name): Likewise.
1707 (scan_all_symbols): Likewise.
1708 (gen_lib_file): Likewise.
1709 (def_library): Likewise. Remove extra program_name too.
1710 (run): Remove \n from inform strings.
1711 (scan_drectve_symbols): Likewise.
1712 (add_excludes): Likewise.
1713 (scan_open_obj_file): Likewise.
1714 (gen_exp_file): Likewise.
1715 (gen_lib_file): Likewise.
1716 (process_duplicates): Likewise.
1718 * Makefile.am (dllwrap_SOURCES): Add version.c.
1719 * dllwrap.c (program_version): Delete.
1720 (print_version): Delete.
1721 (display): Always print trailing \n.
1723 (delete_temp_files): Use warn instead of fprintf. Use gettext.
1726 (usage): gettext'ify.
1727 (long_options): Add missing initialisers.
1729 * nlmconv.c (main): Use fatal/non_fatal instead of fprintf.
1730 (select_output_format): Likewise.
1731 (powerpc_mangle_relocs): Likewise.
1732 (link_inputs): Likewise.
1734 * nm.c (set_print_radix): Use fatal instead of fprintf, exit.
1735 (set_output_format): Likewise.
1736 (main): Use non_fatal instead of fprintf.
1737 (display_rel_file): Likewise.
1739 * objdump.c (slurp_symtab): Use non_fatal instead of fprintf.
1740 (slurp_dynamic_symtab): Same here.
1741 (disassemble_data): And here.
1742 (read_section_stabs): And here.
1743 (read_section_stabs): And here.
1744 (dump_bfd): And here.
1746 (objdump_sprintf): Use fatal instead of fprintf, exit.
1747 (disassemble_data): Same here.
1749 * rdcoff.c (parse_coff_type): Use non_fatal instead of fprintf.
1750 (parse_coff_struct_type): Same here.
1751 (parse_coff_enum_type): And here.
1752 (parse_coff): And here.
1753 * rddbg.c (read_debugging_info): And here.
1754 * size.c (main): And here.
1755 * windres.c (format_from_name): And here.
1756 * wrstabs.c (stab_write_symbol): Here too.
1757 (write_stabs_in_sections_debugging_info): And here.
1758 (stab_int_type): And here.
1759 (stab_struct_field): And here.
1760 (stab_typdef): And here.
1762 * rescoff.c (read_coff_rsrc): Use fatal instead of fprintf, exit.
1763 * srconv.c (main): Same here.
1764 * strings.c (main): And here.
1765 (integer_arg): And here.
1766 * sysdump.c (main): And here.
1770 * objdump.c (dump_section_header): Print CLINK and BLOCK flags.
1774 * readelf.c (decode_location_expression): Loop through multiple
1776 (read_and_display_attr): Pass in length.
1778 * readelf.c (read_and_display_attr): Add CU offset to references.
1779 (display_debug_info): Pass it in.
1783 * readelf.c (decode_ARM_machine_flags): New function.
1784 (get_machine_flags): Call decode_ARM_machine_flags for ARM
1787 (get_machine_name): Catch EM_AVR
1791 * binutils.texi: Remove optional `=' from long options that have
1792 an `=' in the argument.
1793 * objcopy.1: Here too. Remove extra space on discard-all.
1795 * binutils.texi (objcopy): Mention --redefine-sym.
1796 * objcopy.1: Here too.
1799 * objcopy.c (parse_flags): Split off flag names from error message
1800 gettext as they are not translated.
1801 (copy_main): Similarly split off option name for --add-section,
1802 --set-section-flags, --change-section-vma, --change-section-lma
1804 Some white space changes.
1807 * objcopy.c (struct redefine_node): New.
1808 (redefine_sym_list): New.
1809 (redefine_list_append): New.
1810 (lookup_sym_redefinition): New.
1811 (OPTION_REDEFINE_SYM): New.
1812 (copy_options): Add --redefine-sym option.
1813 (copy_usage): Mention it.
1814 (filter_symbols): Rename symbols on redefine_sym_list.
1815 (copy_object): Call filter_symbols if redefine_sym_list != NULL.
1816 (copy_main): Handle OPTION_REDEFINE_SYM.
1820 * readelf.c (process_symbol_table): Correctly read in symbol
1821 versioning information.
1825 * po/binutils.pot: Regenerate.
1827 * addr2line.c (usage): Restore translated part of bug string.
1828 * ar.c (usage): Likewise.
1829 * nlmconv.c (show_usage): Likewise.
1830 * nm.c (usage): Likewise.
1831 * objcopy.c (copy_usage): Likewise.
1832 (strip_usage): Likewise.
1833 * objdump.c (usage): Likewise.
1834 * readelf.c (usage): Likewise.
1835 * size.c (usage): Likewise.
1836 * strings.c (usage): Likewise.
1837 * windres.c (usage): Likewise.
1839 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1840 (DEP): Quote when passing vars to sub-make. Add warning
1842 (DEP1): Rewrite for "gcc -MM".
1843 (CLEANFILES): Add DEP2.
1844 Update dependencies.
1845 * Makefile.in: Regenerate.
1849 * Makefile.am (GENERATED_HFILES): Add rcparse.h
1850 (arparse.h): Depend on arparse.c
1851 (defparse.h, nlmheader.h, rcparse.h, sysinfo.h): Similarly.
1855 * size.c (usage): Use REPORT_BUGS_TO.
1859 * bucomm.h: #include "bin-bugs.h"
1860 * addr2line.c (usage): Use REPORT_BUGS_TO.
1861 * ar.c (usage): Likewise.
1862 * nlmconv.c (show_usage): Likewise.
1863 * nm.c (usage): Likewise.
1864 (OPTION_TARGET): Define.
1865 (long_options): Use OPTION_TARGET rather than 200.
1868 * objcopy.c (copy_usage): Use REPORT_BUGS_TO.
1869 (strip_usage): Likewise.
1870 * objdump.c (usage): Likewise.
1871 * readelf.c (usage): Likewise.
1872 * strings.c (usage): Likewise.
1873 * windres.c (usage): Likewise.
1877 * readelf.c: Include sys/types.h before sys/stat.h for ultrix.
1881 * rddbg.c (read_section_stabs_debugging_info): Catch out of range
1882 string offsets in corrupt stabs entries.
1886 * readelf.c: Include elf/avr.h
1887 (dump_relocations): Add EM_AVR case.
1891 * strings.1: Correct '-bytes' to '--bytes'.
1895 * Makefile.am (install-exec-local): Depend on
1896 install-binPROGRAMS for parallel make.
1897 * Makefile.in: Regenerated.
1902 * readelf.c (process_dynamic_segment): Add cast to make sure
1903 argument to %* is int.
1907 * configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
1911 * configure.in: Add arm-wince, mips-pe and sh-pe targets.
1912 * configure: Regenerate.
1914 * dlltool.c: Add support for sh-pe and mips-pe targets.
1915 * rescoff.c: Add support for sh-pe and mips-pe targets.
1919 * readelf.c (get_osabi_name): Handle ELFOSABI_LINUX.
1923 * readelf.c (process_symbol_table): Remove use of ELF_ST_OTHER.
1928 * readelf.c (process_version_sections): Add casts to make sure
1929 argument to %* is an int.
1930 (process_mips_specific): Add casts to make printf arguments match
1935 * objdump.c (dump_section_header): Change `opb' to unsigned.
1936 (find_symbol_for_address): Same here.
1937 (disassemble_data): And here. Change `addr_offset',
1938 `stop_offset', `nextstop_offset' to unsigned long.
1939 (dump_data): Change opb to unsigned.
1943 * resrc.c: Remove unmatched #if for cygwin.
1947 * binutils.texi: Document the change of flavor name from atpcs-special
1948 to special-atpcs to prevent name conflict in gdb.
1952 * objdump.c (show_line): Fix bug preventing printing of the very
1953 first line (line zero) of a file when interlisting source and
1954 assembly. Added option to print entire context from start of file
1955 when the first line from that file is encountered.
1959 * objdump.c (dump_section_header, find_symbol_for_address,
1960 show_line, disassemble_bytes, disassemble_data, dump_data):
1961 distinguish between octets and bytes.
1965 * nm.c (print_symbol_info_bsd): Use bfd_is_undefined_symclass to
1966 check to unresolved symbols.
1967 (print_symbol_info_sysv): Ditto.
1968 (print_symbol_info_posix): Ditto.
1970 * binutils.texi: Document new 'V' symclass flag for nm.
1974 * binutils.texi (objdump): Document new ARM specific
1975 disassembler options.
1977 * objdump.c (usage): Call disassembler_usage().
1981 * readelf.c (get_dynamic_flags): Return buff.
1982 (process_dynamic_segment): Don't pass error strings to printf
1984 (read_and_display_attr): Use lx and ld to print longs.
1985 (process_corefile_note_segment): Cast bfd_vma to unsigned long
1991 * readelf.c (get_osabi_name): Recognise ELFOSABI_ARM.
1995 * debug.c (debug_name_type): Return DEBUG_TYPE_NULL rather than
1997 (debug_tag_type): Here too.
1998 * ieee.c (ieee_builtin_type): And here.
1999 * stabs.c (parse_stab_type, parse_stab_array_type): And here.
2003 * readelf.c (get_machine_name): Change EM_S370 to return "IBM
2008 * readelf.c (get_dynamic_type): Remove DT_ENCODING.
2012 * readelf.c (get_note_type): Display NT_WIN32PSTATUS notes.
2016 * windres.c (long_options): Add --use-temp-file and
2017 --no-use-temp-file options.
2021 * windres.h: Update read_rc_file prototype.
2023 * resrc.c (cpp_temp_file): New static variable.
2024 (istream_type): New static variable.
2025 (close_pipe): Delete function.
2026 (run_cmd): New static function.
2027 (open_input_stream): New static function.
2028 (close_input_stream): New static function.
2029 (look_for_default): Handle DOS directory separator. Use
2030 open_input_stream instead of popen.
2031 (read_rc_file): Likewise.
2033 * binutils.texi: Document --use-temp-file, --no-use-temp-file
2038 * dlltool.c (create_compat_implib): New variable.
2039 (gen_exp_file): Use.
2040 (make_one_lib_file): Use.
2041 (long_options): Add --compat-implib option.
2045 * dllwrap.c (enum target_type): Rename MINGW32_TARGET to MINGW_TARGET.
2046 (main): Use. Don't look for "32" in cygwin and mingw target names.
2050 * binutils.texi: Document new, ARM specific disassembler
2051 command line switch "-M force-thumb".
2053 For older changes see ChangeLog-9899
2055 Copyright (C) 2000-2001 Free Software Foundation, Inc.
2057 Copying and distribution of this file, with or without modification,
2058 are permitted in any medium without royalty provided the copyright
2059 notice and this notice are preserved.
2065 version-control: never