3 * objcopy.c: Switch to ISO C. Remove debugging code accidentally
4 left in. Some formatting tidy ups.
8 * objdump.c: New command line option --debugging-tags.
9 * doc/binutils.texi: Document new command line option.
10 * prdbg.c: Code to print the debug info as tags compatible
12 * budbg.h: Adjust prototype.
13 * NEWS: Mention new switch
17 * objdump.c (main) :Accept multiple -M switch.
18 * doc/binutils.texi: Document that multiple -M switches are
19 accepted and that a single -M switch can contain comma
24 * objdump.c (main): Issue a warning message if multiple -M
27 * doc/binutils.texi (objdump): Update documentation about -M
32 * po/es.po: New Spanish translation.
36 * po/binutils.pot: Regenerate.
40 * dlltool.c (prefix_encode): Use a fixed length for alpha.
44 * dlltool.c (prefix_encode): New function. Encode temp file prefix
46 (dlltmp): Pass address of pointer being alloced or suffer neverending
48 (make_one_lib_file): Allocate enough space for new longer stub names.
49 (gen_lib_file): Ditto.
50 (main): Generate the temp file prefix from the pid if prefix was not
51 specified on the command line.
55 * readelf.c (get_data): Print (unsigned) hex values for size and
56 offset in error messages.
57 (process_section_headers): If the string table could not be
58 allocated, do not continue.
62 * readelf.c (dynamic_segment_ia64_val): Print address and newline
63 for sections by default. Comment fix.
67 * rcparse.y (res_text_field): New res_id variable.
68 (res_null_text): New static const struct res_id object,
69 with empty unicode name field.
70 (control): Pop parsing of optresidc up one level. Set
71 res_text_field to $2 except for controls which do not accept
72 a text field. Set res_text_field to res_null_text for the
73 special cases (viz. COMBOBOX, EDITTEXT, LISTBOX, SCROLLBAR).
74 (control_params): Adjust to use res_text_field rather
76 (COMBOBOX): Add comment about discrepency between documented
77 vs. observed default style.
78 * resrc.c (define_control): Make first param const.
79 * windres.h (define_control): Adjust prototype.
83 * objcopy.c (copy_object): Replace call to
84 bfd_create_gnu_debuglink_section with seperate calls to
85 bfd_add_gnu_debuglink_section and
86 bfd_fill_in_gnu_debuglink_section, seperated by a walk over the
91 * readelf.c (loadaddr): Variable removed.
92 (dynamic_info, version_info): Fix type long -> bfd_vma.
93 (program_headers): New variable.
94 (get_program_headers): New function, broken out of
95 process_program_headers.
96 (process_program_headers): Call it. Don't set `loadaddr'.
97 (slurp_ia64_unwind_table): Use get_program_headers.
98 (process_corefile_note_segments): Likewise.
99 (offset_from_vma): New function.
100 (process_relocs, process_dynamic_segment): Call that instead of
101 subtracting `loadaddr'.
102 (process_version_sections, process_symbol_table): Likewise.
103 (process_mips_specific): Likewise.
107 * objcopy (enum strip_action): Add STRIP_NONDEBUG.
108 (OPTION_ONLY_KEEP_DEBUG): New.
109 (strip_options): Add --only-keep-debug.
110 (copy_options): Likewise.
111 (is_strip_section): Invert return value if STRIP_NONDEBUG is
113 (copy_object): Do not copy private data when STRIP_NONDEBUG is
115 (setup_section): Likewise.
116 (strip_main): Handle --only-keep-debug.
117 (copy_main): Likewise.
118 * NEWS: Mention new switch
119 * doc/binutils.texi: Document new switch.
123 * NEWS: Correct spelling of "relocatable".
124 * objdump.c: Likewise.
125 * sysroff.info: Likewise.
129 * readelf.c (print_vma): When printing DEC_5 values, if the
130 number is bigger than 99999 switch to using hexadecimal
135 * objcopy.c (gnu_debuglink_filename): New variable.
136 (OPTION_ADD_GNU_DEBUGLINK): New switch
137 (copy_options): Describe --add-gnu-debuglink switch.
138 Mention that --strip-debug removes sections as well.
139 (is_strip_section): Process the sections removed and kept
140 lists before checking for debugging sections.
141 (add_redefine_syms_file): Make function static.
142 (copy_object): Use is_strip_section.
143 Check to see if a .gnu_debuglink section should be added. If
144 so, call bfd_add_gnu_debuglink.
145 (setup_section): Use is_strip_section.
146 (copy_section): Use is_strip_section.
147 (copy_main): Handle OPTION_ADD_GNU_DEBUGLINK.
148 * NEWS: Mention new objcopy switch.
149 * doc/binutils.texi: Document new switch.
153 * po/Make-in (DESTDIR): New.
154 (install-data-yes): Support $(DESTDIR).
155 (uninstall): Likewise.
159 * Makefile.in: Regenerate.
163 * readelf.c (get_segment_type): Handle PT_GNU_STACK.
167 * NEWS: Document the new BSD/POSIX single-character mapping for
168 .comment/.note sections.
173 * objcopy.c (redefine_list_append): Add an argument that
174 indicates the context from which this function is being
175 called. Change all callers.
176 (copy_options): Add a new option, --redefine-syms.
177 (copy_usage): Document new option.
178 (copy_main): Handle the --redefine-syms option.
179 * doc/binutils.text (objcopy): Document new option.
183 * readelf.c (byte_get_signed): New.
184 (get_encoded_value): New.
185 (display_debug_frames): Use it. Always pre-process opcodes.
189 * readelf.c (display_debug_frames): Print both registers
194 * configure.in: Accept i[3-7]86 variants. Escape '[]' for
196 * configure.in: Regenerate.
200 * objcopy.c: Treat identical src/dst file names as if only one
201 entered. One Windows creating an output file of the same name as
202 the input file will delete the input file before it is read.
206 * debug.c (debug_get_real_type): Extend test for circular debug
211 * configure.in (ALL_LINGUAS): Add zh_CN.
212 * configure: Regenerate.
213 * po/zh_CN.po: New file: Chinese (simplified) translation.
217 * MAINTAINERS: Update my mail address.
221 * readelf.c (dump_relocations): Enlarge the type field in wide
222 mode by one character.
226 * readelf.c (struct Frame_Chunk): Add cfa_exp.
227 (frame_display_row): Just print "exp" for cfa or register
228 defined by a location expression.
229 (display_debug_frames): Handle DW_CFA_def_cfa_expression,
230 DW_CFA_expression, DW_CFA_MIPS_advance_loc8.
234 * objdump.c (only): Change it to char **.
237 (disassemble_data): Check only as an array.
238 (dump_data): Likewise.
239 (dump_relocs): Likewise.
240 (main): Treat only as an array.
244 * doc/binutils.texi: Fix the documentation for the -fo option.
248 * readelf.c (get_machine_name) <EM_SH>: Amend return value
251 * readelf.c (decode_location_expression): Don't add a trailing ';'.
256 * windres.c (long_options): Move close to main, where it is used.
257 Add 'input' and 'output' long options.
258 (main): Accept "-fo" as an alias for "-o". This is for rc
260 * doc/binutils.texi: Mention that -fo is accepted as an alias for
261 -o, but discourage its use.
265 * windres.c (format_from_name): Make the exit on error
267 (main): Rename the -I option to -J. Introduce -I as a synonym
268 for --include-dir. For backwards compatibility also support the
269 old -I behaviour, but issue a deprecation warning.
270 * doc/binutils.texi: Rename -I to -J. Document the new behaviour
275 * readelf.c: Replace references to Mitsubishi M32R with
276 references to Renesas M32R.
280 * readelf.c: Replace occurrances of 'Hitachi' with 'Renesas'.
284 * doc/binutils.texi (objdump) [--debugging]: Suggest readelf -w
285 for debugging information types not supported by objdump.
289 * configure.in: Recognize canonical form of i[3-6]86-pe*.
290 * configure: Regenerate.
294 * readelf.c (display_debug_info): Apply RELA relocations on the
296 (byte_put_little_endian, byte_put_big_endian): New functions.
297 (byte_put): New variable.
298 (get_file_header): Initialize it.
302 * windres.c: Add -l for compatibility with wrc, and rc.
303 Use the short option as a key for long options that have
304 a synonymous short option.
305 * doc/binutils.texi: Added -l to the list of options.
309 * windres.c: Add -U for compatibility with wrc, rc, and cpp.
310 (main): Just pass the -U option down to the preprocessor.
311 * doc/binutils.texi: Added -U to the list of options.
315 * windres.c (usage): Report -r option.
316 (main): Ignore the -r option.
317 * doc/binutils.texi: Add -r to the list of options.
321 * MAINTAINERS: Add myself as Xtensa maintainer.
325 * readelf.c: Include "elf/xtensa.h".
326 (guess_is_rela): Add EM_XTENSA and EM_XTENSA_OLD to list of
327 targets that use RELA relocations.
328 (dump_relocations): Call elf_xtensa_reloc_type for
329 EM_XTENSA and EM_XTENSA_OLD.
330 (get_machine_name): Handle EM_XTENSA and EM_XTENSA_OLD.
334 * configure.in: Change "arm-pe*" to "arm-*-pe*". Similarly for
335 thumb-pe*, mcore-pe and mcore-*elf.
336 * configure: Regenerate.
340 * objdump.c (dump_data): Don't truncate the address to long; make
341 the width large enough, and uniform for all entries in a section.
345 * readelf.c: Include "libiberty.h".
346 (dynamic_relocations): New.
347 (process_relocs): Properly handle dynamic relocation.
348 (process_dynamic_segment): Fill relocation elements in
353 * readelf.c (read_and_display_attr, read_and_display_attr_value):
354 Add new arguments ``offset_size'' and ``dwarf_version''. Adjust
356 (display_debug_lines, display_debug_pubnames, display_debug_info)
357 (display_debug_aranges, display_debug_frames, read_and_display_attr)
358 (read_and_display_attr_value): Add 64-bit DWARF support.
362 * rcparse.y: Replace uses of 'optstringrc' with 'optresid'.
363 (optresid): Handle a resource id that can be a string or a number.
364 * resrc.c (define_control): Replace 'text' parameter with 'iid' a
366 (define_icon_control): Pass a struct res_id to define_control.
367 * windres.h (define_control): Change prototype.
371 * objcopy (OPTION_FORMATS_INFO): Define.
372 (strip_options): Add "info"/OPTION_FORMATS_INFO option.
373 (copy_options): Likewise.
374 (strip_usage): Add "--info" to usage.
375 (copy_usage): Likewise.
376 (strip_main): Declare formats_info. Iniatilize it to FALSE.
378 (copy_main). Likewise.
379 * doc/binutils.texi. Document the "--info" option for
381 * NEWS: Mention the new command line switch.
383 * objdump.c (endian_string): Move to bucomm.c.
384 (display_info): Likewise.
385 (display_target_list): Likewise.
386 (display_info_table): Likewise.
387 (display_target_tables): Likewise.
388 (main): Assign the return value of display_info to exit_status.
389 * bucomm.c: Include bfdver.h and libbfd.h
390 (display_target_list): Call bfd_nonfatal instead of nonfatal and
391 return 0 on a non-fatal error, 1 on success.
392 (display_info_table): Likewise.
393 * bucomm.h (display_info): Provide a prototype.
394 * Makefile.am (bucomm.o): Add dependencies on bfdver.h and
396 * Makefile.in: Regenerate.
400 * dlltool.c (gen_def_file): Put demangled name comments on
401 own line preceding export name.
405 * objdump.c (disassemble_data): Use disasm_info.fprintf_func not
406 printf for emitting new lines.
410 * nm.c (print_symbol_info_bsd): Print the symbol's size instead of
411 the symbol's value when --size-sort is used, unless -S is used.
412 doc/binutils.texi (--size-sort): For non-bsd formats both the
413 value and size of the symbols are displayed.
421 * MAINTAINERS: Remove Peter Targett as ARC maintainer.
425 * MAINTAINERS: Update my mail address.
429 * stabs.c (BYTES_IN_WORD): Remove definition.
430 * wrstabs.c (BYTES_IN_WORD): Likewise.
434 * nm.c (main): Print a warning message if --size-sort and
435 --undefined-only are used together.
439 * nm.c (print_symbol): Remove check for undefined_only.
443 * po/da.po: Installed latest translation.
447 * README: Update binutils references to 2.13.
448 Add paragraph about using --disable-nls.
452 * doc/binutils.texi (nm --size-sort): Update.
456 * MAINTAINERS: Update email address.
460 * readelf.c (get_ia64_dynamic_type): New function.
461 (dynamic_segment_ia64_val): New function.
462 (get_dynamic_type): If machine type is EM_IA_64 call
463 get_ia64_dynamic_val.
464 (get_ia64_section_type_name): Handle sections with types in the
465 SHT_IA_64_LOPSREG to SHT_IA_64_HIPSREG range.
466 (get_dynamic_flags): If machine type is EM_IA_64 call
467 dynamic_segment_ia64_val.
471 * doc/binutils.texi: Fix typos and obvious texinfo mistakes. Make
472 section title capitalization more consistent. Update descriptions
473 of various options to be consistent with the code. Fix errors and
474 incomplete list in the description of c++filt format options. Remove
475 information about the linker. Change to be more polite about poor
476 bug reports. Replace FDL appendix with include of fdl.texi.
477 * doc/fdl.texi: New file.
481 * objcopy.c (filter_symbols): Fix compilation problems with
486 * rclex.l (handle_quotes): Fix minor formatting problems introduced in
491 * rclex.l (handle_quotes): Handle strings spanning more than one line.
495 * nm.c (usage): Add `java' and `gnat' demangle styles and make
497 * objdump.c (usage): Ditto. Also fix some typos.
499 * readelf.c (parse_args): Include 'H' option in call to getopt_long.
501 * debug.c (debug_record_variable): Handle global register variables.
503 * stabs.c (parse_stab): For N_SLINE only include
504 function_start_offset if the symbol is within a function;
505 otherwise, the value is absolute.
509 * readelf.c (decode_ARM_machine_flags): Handle the
510 EF_ARM_MAVERICK_FLOAT flag.
514 * rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to
515 long and use %ld in printf format.
519 * readelf.c (dump_relocations): Reorder the r_info field for
520 little-endian mips elf64. Move #ifdef BFD64 to cover the new code.
524 * readelf.c (display_debug_loc): Skip address base changes.
528 * readelf.c (get_osabi_name): Handle ELFOSABI_AROS, ELFOSABI_OPENVMS
533 * readelf.c: Include elf/ppc64.h.
534 (dump_relocations <EM_PPC64>): Use elf_ppc64_reloc_type.
535 * Makefile.am: Run "make dep-am".
536 * Makefile.in: Regenerate.
540 * readelf.c (guess_is_rela): Handle EM_IQ2000.
541 (get_machine_name): Likewise.
542 (dump_relocations): Likewise.
543 * NEWS: Mention IQ2000 support.
547 * readelf.c (get_machine_flags): Handle E_MIPS_ARCH_32R2.
551 * doc/binutils.texi (objdump): Note MIPS HWR (Hardware Register)
552 changes in MIPS -M options.
556 * Makefile.am: Add msp430 target.
557 * Makefile.in: Regenerate.
558 * readelf.c: Add support for msp430 target.
562 * doc/binutils.texi (objdump): Document MIPS -M options.
566 * readelf.c (main): Reset dump request after each file.
570 * nlmconv.c (main): Pass TRUE as third argument to
571 bfd_arch_get_compatible.
575 * strings.c (isgraphic): Replace definition with STRING_ISGRAPHIC
576 macro. Handle 'S' encoding, accepting 8-bit characters.
577 (main): Parse 'S' encoding.
578 (get_char): Accept 'S' encoding.
579 (print_strings): Use STRING_ISGRAPHIC.
580 (usage): Document support of 'S' encoding.
581 * doc/binutils.texi: Document support of 'S' encoding/
582 * NEWS: Mention new feature.
586 * README <building ar>: Don't use libibery's needed_list or
587 required_list, instead link libiberty/*.o.
591 * doc/binutils.texi: Fix typos.
595 * doc/binutils.texi: Add missing parenthesis.
599 * objcopy.c: Add --prefix-symbols=<prefix> option to rename all
600 symbols by adding the given prefix to the begining of the symbol
601 name. This is useful to provide name space seperation regardless
602 of how the object file was created. Added --prefix-sections=
603 <prefix> and --prefix-alloc-sections=<prefix> options to rename all
604 sections (or all sections with the alloc flag set) by adding the given
605 prefix to the begining of the symbol name.
606 * NEWS: Mention this new feature.
607 * doc/binutils.texi: Document this new feature.
611 * dlltool.c (mcore_elf_gen_out_file): Replace all occurrences of
612 dyn_string_append with dyn_string_append_cstr.
614 * emul_aix.c (ar_emul_aix_create): Remove unused function.
618 * readelf.h (get_TAG_name, get_AT_name,
619 read_and_display_attr_value): Add support for UPC extensions to
621 * NEWS: Mention this new support.
625 * NEWS: Mention that bfd no longer declares a "boolean" type.
629 * readelf.c (process_program_headers): When setting loadaddr, don't
630 assume segment size is 4k. Use p_align instead.
631 (loadaddr): Change from int to long.
632 (dynamic_addr, dynamic_info, version_info): Likewise.
633 (process_dynamic_segment <syminsz>): Likewise.
634 (process_dynamic_segment): Adjust print format string.
635 (rela_addr, rela_size): Delete.
636 (process_relocs): Formatting.
640 * configure.in (OBJDUMP_DEFS): Define SKIP_ZEROES as 16 for IA-64.
641 * configure: Regenerate.
645 * MAINTAINERS: Change e-mail address back to airs.com.
649 * MAINTAINERS: Add self.
653 * addr2line.c, ar.c, arsup.c, binemul.c, binemul.h, bucomm.c, bucomm.h,
654 budbg.h, debug.c, debug.h, dlltool.c, emul_aix.c, ieee.c, nlmconv.c,
655 nlmconv.h, nlmheader.y, nm.c, objcopy.c, objdump.c, prdbg.c, rdcoff.c,
656 rddbg.c, readelf.c, rename.c, size.c, stabs.c, strings.c,
657 unwind-ia64.h, wrstabs.c: Replace boolean with bfd_boolean, true with
658 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars
659 with TRUE/FALSE. Formatting.
663 * readelf.c Replace occurrences of Elf32_Internal_* and
664 Elf64_Internal_* with Elf_Internal_*.
665 (slurp_rel_relocs): Change Elf_Internal_Rel to Elf_Internal_Rela.
666 Zero r_addend fields.
667 (dump_relocations): Remove relas variable, change Elf_Internal_Rel to
672 * size.c (usage): Fix typo describing switch for hex format.
676 * testsuite/binutils-all/objcopy.exp: Disable tic4x from test
677 * testsuite/binutils-all/objdump.exp: Setup proper values for tic4x
682 * readelf.c (process_program_headers): Add comment about return
683 value. Ensure that 0 is returned if the headers are not loaded.
684 (process_file): If process_section_headers failed to load the
685 headers disable any tests that rely upon them. Similarly for
686 process_program_headers.
690 * po/da.po: Updated Danish translation.
694 * rddbg.c (read_section_stabs_debugging_info): Also recognize
695 LC_SYMTAB.stab/LC_SYMTAB.stabstr as a valid pair of sections.
699 * MAINTAINERS: Reinstate DJ Delorie as COFF maintainer. Drop COFF from
704 * MAINTAINERS: Replace DJ Delorie as PE/COFF maintainer.
708 * configure.in (ALL_LINGUAS): Add 'da'.
709 * configure: Regenerate.
710 * po/da.po: New Danish translation.
712 * readelf.c (get_symbol_index_type): Revert part of previous
713 patch: Display unknown symbol types in decimal, not hex.
717 * dlltool.c (add_excludes): Don't prefix excluded fastcall
718 symbols with underscore.
719 (xlate): Ignore add_underscore for decorated fastcall symbols.
723 * deflex.l: Accept '@' as first character of an ID.
724 * dlltool.c (gen_exp_file): Use existing '@' prefix rather than
725 ASM_PREFIX for fastcall symbols.
726 (scan_drectve_symbols): Handle fastcall symbols when generating
727 undecorated aliases for symbols in drectve section.
728 (scan_filtered_symbols): Likewise, with export-all.
729 (xlate): Likewise, with --kill-at.
730 (make_imp_label): New function to handle fastcall symbols
732 (make_one_lib_file): Use make_imp_label instead of make_label
737 * MAINTAINERS: Add self as TIC4X maintainer.
741 * readelf.c (get_symbol_index_type): Add hex number to
742 PROCESSOR-specific, OS-specific, reserved and unknown symbol
747 * readelf.c (byte_get_little_endian): Comment typo fix.
748 (print_symbol): Constify "symbol" arg. Don't pass "symbol" to printf
749 as the format string.
750 (dump_relocations): Correct section sym names.
751 (process_section_headers): Clear symtab_shndx_hdr.
752 (read_and_display_attr_value): Don't pass indirect string to printf
753 as the format string.
754 (display_debug_frames): Indicate when zero terminator found. Decode
755 DW_EH_PE_pcrel addresses.
759 * configure.in: Define SKIP_ZEROES as 32 for tic4x target in
760 order to ensure proper disassembly of the valid 0-value opcode.
761 * configure: Regenerate.
762 * aclocal.m4: Regenerate.
763 * config.in: Regenerate.
764 * configure.in: Regenerate.
765 * doc/Makefile.in: Regenerate.
766 * po/binutils.pot: Regenerate.
770 * MAINTAINERS: Add self as SH maintainer.
774 * doc/binutils.texi (objdump): Document -z and move the entry for
775 --disassemble-zeroes to the end of the options section (for `z').
779 * MAINTAINERS: Discontinue Hans-Peter Nilsson as SH maintainer.
783 * objdump.c (dump_data): Correct addr_offset for opb != 1.
787 * bucomm.c (list_supported_targets): Use bfd_target_list.
789 * objcopy.c (copy_file): Report ambiguous bfd_object matches, and
790 other object errors in preference to bfd_core errors.
794 * Makefile.am: Run "make dep-am".
795 * objdump.c: #include "bfdver.h".
796 * version.c: Likewise.
797 * Makefile.in: Regenerate.
798 * config.in: Regenerate.
799 * configure: Regenerate.
800 * po/POTFILES.in: Regenerate.
804 * readelf.c (display_debug_info): Ignore empty .rela.debug_info
805 sections. Allow relocations against the absolute symbol. Don't
806 use the value in compunit.cu_abbrev_offset if we found a RELA
811 * addr2line.c (slurp_symtab): Read in dynamic symbols if no
812 ordinary ones are available.
816 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_4120,
817 E_MIPS_MACH_5400 and E_MIPS_MACH_5500.
821 * Makefile.am (CFILES): Add cxxfilt.c.
822 (cxxfilt_SOURCES): Now just cxxfilt.c $(BULIBS).
823 (cxxfilt_LDADD): Delete.
824 Remove all references to underscore.c.
826 * configure.in: Define TARGET_PREPENDS_UNDERSCORE in
827 config.h from $UNDERSCORE, rather than AC_SUBSTing it.
828 * binutils/cxxfilt.c: Moved here from gcc/cp, minor
829 adjustments to fit into binutils framework.
830 * configure, config.in, Makefile.in, doc/Makefile.in: Regenerate.
834 * readelf.c (decode_location_expression): DW_OP_calli -> DW_OP_call_ref
835 Handle DW_OP_GNU_push_tls_address.
839 * po/tr.po: Updated Turkish translation.
843 * MAINTAINERS: Add Ben Elliston as a maintainer for configure and
844 testsuite changes. Add paragraphs about testsuite and config
849 * readelf.c (get_machine_flags): Remove redundant reference to
854 * objdump.c (dump_bfd): Restore lines accidentally deleted in
859 * objdump.c (dump_headers): Add printing of HAS_LOAD_PAGE flag.
860 (dump_bfd_header): Likewise.
864 * nm.c: Revert last change.
868 * nm.c (display_rel_file): Don't report "no symbols" as an error.
869 * objdump.c (slurp_symtab): Likewise.
870 (slurp_dynamic_symtab): Likewise.
871 (dump_symbols): Likewise. Do print "no symbols" to stdout.
875 * MAINTAINERS: Change my mailing address.
879 * MAINTAINERS: Add Dave Anglin as HPPA co-maintainer.
883 * MAINTAINERS: Add Jeff Law as (maintainance) maintainer for
888 * readelf.c (parse_args): Change debug_dump_opt to static.
892 * stabs.c (parse_stab_argtype): Pass length of physname to
893 stab_demangle_argtypes.
894 (stab_demangle_argtypes): Add new parameter - length of physname.
895 Pass length of physname on to stab_demangle_prefix.
896 (stab_demangle_prefix): Add new parameter - length of physname.
897 Use length of physname (if supplied) to compute end of function
902 * readelf.c: Include elf/i370.h.
903 (dump_relocations): Handle EM_S370.
904 (dynamic_segment_parisc_val): Print \n.
905 (process_dynamic_segment <DT_BIND_NOW>): Here too.
909 * nm.c (usage): Change 'gnu-new-abi' to 'gnu-v3'.
910 * objdump.c (usage): Likewise.
911 * doc/binutils.texi: Likewise.
915 * rcparse.y (acc_entry): Don't warn about ALT use with
920 * objcopy.c (copy_object): Don't warn about the unsupported
921 architecture unless the input target is defaulted or the
922 output architecture is different from the input.
926 * po/sv.po: Updated Swedish translation.
930 * prdbg.c (pr_fix_visibility): Remove assert.
934 * addr2line.c (process_file): Rename parameter 'filename' to
935 'file_name' in order to avoid shadowing global symbol of the
941 * readelf.c (OPTION_DEBUG_DUMP): Define.
943 (usage): Update help.
944 (parse_args): Handle --debug-dump separately from -w.
945 * doc/binutils.texi (readelf): Update documentation.
949 * po/es.po: Updated Spanish translation.
950 * po/fr.po: Updated French translation.
954 * po/es.po: Updated Spanish translation.
958 * Makefile.am: Run "make dep-am".
959 * Makefile.in: Regenerate.
963 * po/fr.po: Updated French translation.
967 * doc/binutils.texi (addr2line <man synopsis>): Correct brackets.
971 * budemang.c: Include config.h and string.h/strings.h.
976 * readelf.c: Include "elf/ip2k.h".
977 (guess_is_rela): Add support for EM_IP2K and EM_IP2K_OLD.
978 (dump_relocations): Likewise.
979 (get_machine_name): Likewise.
980 * NEWS: Mention IP2K support.
984 * NEWS: Add 'Changes in 2.13'.
988 * readelf.c (get_dynamic_type): Handle DT_GNU_PRELINKED,
989 DT_GNU_CONFLICT* and DT_GNU_LIBLISZ*.
990 (get_section_type_name): Handle SHT_GNU_LIBLIST.
991 (process_dynamic_segment): Handle DT_GNU_CONFLICTSZ,
992 DT_GNU_LIBLISTSZ and DT_GNU_PRELINKED.
993 (process_gnu_liblist): New.
994 (process_file): Call it.
998 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
999 * Makefile.in: Regenerate.
1003 * budemang.c: New file, "demangle" function.
1004 * budemang.h: New file.
1005 * addr2line.c (translate_addresses): Use "demangle".
1006 * nm.c (print_symname): Likewise.
1007 * objdump.c (objdump_print_symname): Likewise.
1008 (dump_symbols): Likewise. Also, don't use bfd_asymbol_name macro
1009 here since that obfuscates.
1010 * rdcoff.c: Don't #include demangle.h.
1011 * Makefile.am (CFILES): Add budemang.c, emul_aix.c,
1012 emul_vanilla.c. Remove emul_$(EMULATION).c. Sort.
1013 (HFILES): Add budemang.h. Sort.
1014 (nm_new_SOURCES, objdump_SOURCES, addr2line_SOURCES): Add budemang.c.
1016 * Makefile.in: Regenerate.
1020 * readelf.c: Include "elf/vax.h".
1021 (guess_is_rela): Move EM_VAX from unknown to RELA case.
1022 (dump_relocations): Handle VAX relocations.
1023 (get_machine_flags): Handle VAX machine flags.
1027 * readelf.c (dump_relocations): Handle 68HC11/68HC12 relocations.
1031 * MAINTAINERS: Remove Tom Rix from d10v and pcc maintainerships.
1035 * nm.c (print_symname): When demangling, strip leading dots from
1036 symbol names to avoid confusing the demangler.
1040 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1041 * Makefile.in: Regenerated.
1045 * configure.in: Quote bu_cv_have_fopen64.
1046 * configure: Regenerate.
1050 * configure.in: Check for strcoll.
1051 * configure: Regenerate.
1052 * config.in: Regenerate.
1053 * nm.c (main): Set locale for LC_COLLATE category.
1054 (non_numeric_forward): Use strcoll if available.
1058 * MAINTAINERS: Add self as fr30 and frv maintainer.
1062 * nm.c: Include "elf/common.h".
1063 (extended_symbol_info): Add elfinfo, a pointer to
1065 (SYM_SIZE): Use elfinfo if it is not NULL.
1066 (get_symbol_type): New function.
1067 (display_archive): Set print_width for each archive member.
1068 (display_file): Likewise.
1069 (display_rel_file): Don't set print_width here.
1070 (print_object_filename_sysv): Handle print_width.
1071 (print_archive_member_sysv): Likewise.
1072 (print_symbols): Pass (bfd_vma) 0 to print_symbol.
1073 (print_symbol): Set the elfinfo field in extended_symbol_info
1075 (print_object_filename_sysv): Fix the output format.
1076 (print_symbol_info_sysv): Print type and section for ELF.
1080 * nm.c (print_size_symbols): Remove assignment, which makes
1081 the symbol's size equal to its value when --size-sort is
1086 From Catherine Moore:
1087 * readelf.c (elf/frv.h): #include it.
1088 (guess_is_rela): Support EM_CYGNUS_FRV.
1089 (dump_relocations): Ditto.
1090 (get_machine_name): Ditto.
1091 * Makefile.am (readelf.o): add dependency on $(INCDIR)/elf/frv.h.
1095 * readelf.c (get_file_header): Only read the first section header if
1096 e_shoff is non-zero.
1100 * nm.c (print_size): New variable. Initialize to 0.
1101 (long_options): Add 'S'/"print-size".
1103 (print_symbol_info_bsd): Print size only if print_size is not
1106 * doc/binutils.texi: Document -S/--print-size.
1110 * nm.c (struct extended_symbol_info): New strcuture: Add the size
1111 of the symbols to the information provided by the symbol_info
1113 (print_symbols): Pass the symbol size to print_symbol.
1114 (print_size_symbols): Pass the symbol size to print_symbol.
1115 (print_symbol): Extra argument: The size of the symbol. Store
1116 this in the extended_symbol_info structure.
1117 (print_symbol_info): Change type of info parameter to
1118 extended_symbol_info. Display the size, if known.
1119 (print_symbol_info_posix): Likewise.
1120 (print_symbol_info_sysv): Likewise.
1124 * Makefile.am: Run "make dep-am".
1125 * Makefile.in: Regenerate.
1126 * doc/Makefile.in: Regnerate.
1128 * bucomm.c: Replace CONST with const.
1130 * objdump.c: Likewise.
1134 * readelf.c (DW_CFA_GNU_args_size): Don't define.
1135 (DW_CFA_GNU_negative_offset_extended): Likewise.
1136 (DW_CFA_GNU_window_save): Likewise.
1137 (display_debug_frames): Handle DW_CFA_offset_extended_sf,
1138 DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
1142 * nm.c: When computing size of symbols for an ELF target use the
1143 internal size field.
1147 * testsuite/binutils-all/objcopy.exp: clear xfail for
1149 * testsuite/binutils-all/hppa/objdump.exp: Return if
1154 * objcopy.c (copy_section): Don't copy SEC_GROUP sections.
1158 * objdump.c: Fix formatting.
1162 * MAINTAINERS: Add self as M68k maintainer.
1166 * readelf.c: Modified/Added DLX elf support.
1170 * arsup.c: Fix formatting.
1171 * debug.c (debug_record_label): Add missing colon to error
1173 * ieee.c (parse_ieee_ty): Fix spelling typo.
1174 * readelf.c (process_program_headers): Remove English assumption
1175 about making a plural word.
1176 (process_section_headers): Likewise.
1177 (process_relocs): Allow quotes to be translated.
1178 (process_unwind): Likewise,
1179 (process_mips_specific): Improve error message.
1180 (get_note_type): Fix spelling typo.
1182 * configure.in (ALL_LINGUAS): Add sv
1183 * po/sv.po: New file.
1187 * unwind-ia64.c (unw_print_brmask): Don't use sprintf.
1188 (unw_print_grmask): Likewise.
1189 (unw_print_frmask): Likewise.
1193 * arsup.c: Remove ARGSUSED.
1194 * debug.c: Likewise.
1196 * nlmconv.c: Likewise.
1197 * prdbg.c: Likewise.
1198 * stabs.c: Likewise.
1199 * wrstabs.c: Likewise.
1203 * arlex.l: Use #include "" instead of <> for local header files.
1204 * coffdump.c: Likewise.
1205 * coffgrok.c: Likewise.
1206 * nlmconv.c: Likewise.
1207 * nlmheader.y: Likewise.
1208 * srconv.c: Likewise.
1209 * strings.c: Likewise.
1210 * sysdump.c: Likewise.
1211 * unwind-ia64.h: Likewise.
1212 * windres.h: Likewise.
1213 * winduni.h: Likewise.
1217 * MAINTAINERS: Add self as the d10v maintainer.
1221 * configure.in: Builds dlltool for i386-netbsdpe.
1222 * configure: Regenerate.
1226 * size.c: Fix formatting.
1227 * srconv.c: Likewise.
1228 * stabs.c: Likewise.
1229 * sysdump.c: Likewise.
1230 * unwind-ia64.c: Likewise.
1231 * wrstabs.c: Likewise.
1235 * readelf.c (get_segment_type): Add PT_TLS.
1236 (get_elf_section_flags): Add SHF_TLS.
1237 (get_dynamic_flags): Optimize. Add DF_STATIC_TLS.
1238 (process_dynamic_segment): Use puts instead of printf.
1239 (get_symbol_type): Support STT_TLS.
1240 * objdump.c (dump_section_header): Remove SEC_CONSTRUCTOR_TEXT,
1241 SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS.
1242 Add SEC_THREAD_LOCAL.
1246 * rdcoff.c: Fix formatting.
1247 * rddbg.c: Likewise.
1248 * readelf.c: Likewise.
1249 * rename.c: Likewise.
1250 * resbin.c: Likewise.
1251 * resrc.c: Likewise.
1252 * resres.c: Likewise.
1256 * filemode.c: Fix formatting.
1258 * is-ranlib.c: Likewise.
1259 * is-strip.c: Likewise.
1260 * maybe-ranlib.c: Likewise.
1261 * maybe-strip.c: Likewise.
1262 * nlmconv.c: Likewise.
1264 * not-ranlib.c: Likewise.
1265 * not-strip.c: Likewise.
1266 * objcopy.c: Likewise.
1267 * objdump.c: Likewise.
1271 * objdump.c (dump_headers): Fix output formatting for ELF32
1272 architectures in a BFD64 enabled toolchain.
1276 * debug.c: Fix formatting.
1277 * debug.h: Likewise.
1278 * dlltool.c: Likewise.
1279 * dllwrap.c: Likewise.
1280 * emul_aix.c: Likewise.
1281 * emul_vanilla.c: Likewise.
1285 * addr2line.c: Fix formatting.
1287 * arsup.c: Likewise.
1288 * arsup.h: Likewise.
1289 * binemul.c: Likewise.
1290 * binemul.h: Likewise.
1291 * bucomm.c: Likewise.
1292 * coffdump.c: Likewise.
1293 * coffgrok.c: Likewise.
1294 * coffgrok.h: Likewise.
1298 * MAINTAINERS: Add myself as the second AVR port maintainer.
1302 * MAINTAINERS: Update my email address.
1306 * MAINTAINERS: Add Jason Thorpe as VAX maintainer.
1310 * configure.in: Replace `*pe' with `pe' throughout.
1311 * configure: Regenerate.
1315 * Makefile.am: Honour DESTDIR.
1316 * Makefile.in: Regenerate.
1320 * dlltool.c (process_def_file): Add missing prototype.
1321 (new_directive, assemble_file, main): Likewise.
1322 (process_def_file, new_directive): Make static.
1323 (inform): Rewrite using VA_FIXEDARG.
1324 * dllwrap.c (mybasename): Add missing prototype.
1325 (strhash, main): Likewise.
1326 (inform): Rewrite using VA_FIXEDARG.
1328 (cleanup_and_exit): Use old style function definition.
1329 (strhash): Likewise.
1330 * windres.c (define_resource): Use one memset to clear all of
1331 struct res_resource.
1333 * rcparse.y: Remove newcmd rule. Move rcparse_discard_strings
1334 call to rules that need no lookahead. Check for no lookahead.
1338 * rclex.l (get_string): Correct "strings" list handling.
1339 * resrc.c (read_rc_file): Discard strings.
1343 * ar.c (replace_members): Remove unused var. Formatting fix.
1344 * binemul.c (ar_emul_default_parse_arg): Add ATTRIBUTE_UNUSED.
1346 * MAINTAINERS: Sort port maintainers by CPU.
1350 * size.c (display_archive): Add last_arfile and code to close archives.
1354 * nm.c (print_symbol): Check returned filename from
1355 bfd_find_nearest_line is non-NULL.
1359 * readelf.c (get_AT_name): Handle DW_AT_GNU_vector.
1363 * MAINTAINERS: Changed my email address.
1367 * arparse.y: Fix syntax warning.
1371 * readelf.c (fetch_location_list): Remove unused function.
1373 * readelf.c (process_corefile_note_segment): Catch corrupt notes
1374 and display a warning message, then exit the loop.
1376 * rcparse.y: Set MEMFLAG_DISCARDABLE by default.
1380 * resrc.c (write_rc_dialog): If charset is non-default value
1381 display all of the DIALOGEX parameters.
1385 * rcparse.y: Allow two to five parameter in FONT statement of
1387 * resbin.c (bin_to_res_dialog): Fixed read/write code for dialogex
1389 (res_to_bin_dialog): Likewise.
1390 * windres.h: Added misssing charset variable to dialog_ex
1395 * rcparse.y: Set MEMFLAG_PURE by default.
1399 * rcparse.y: CLASS definitions in DIALOG resources
1401 Fix typo in BEDIT warning.
1402 Don't add default dialog style when explicit style specified.
1403 Add WS_CAPTION dialog style if CAPTION is specified.
1405 * rclex.l (handle_quotes): "\xhex" encoding in strings corrected.
1406 (handle_quotes) "\a" escape (used for right justified key
1407 definitions in menus) is encodes as binary 8.
1409 * resrc.c (write_rc_dialog): Print style even if it is 0.
1410 (write_rc_directory): Fix overlooked sublang shift bug.
1411 (bin_to_res_dialog): Don't print empty dialog caption.
1413 * resbin.c (bin_to_res_dialog): Use signature to identify
1416 * windres.c (main): Set default LANGUAGE to english/us.
1420 * resrc.c: print CLASS names in quotes
1424 * MAINTAINERS: Update my email address.
1428 * dep-in.sed: Cope with absolute paths.
1429 * Makefile.am (dep.sed): Subst TOPDIR.
1431 * Makefile.in: Regenerate.
1435 * MAINTAINERS: Update my email address.
1439 * Makefile.am: Run "make dep-am".
1440 * Makefile.in: Regenerate.
1441 * doc/Makefile.in: Regenerate.
1442 * po/POTFILES.in: Regenerate.
1443 * aclocal.m4: Regenerate.
1444 * config.in: Regenerate.
1445 * configure: Regenerate.
1449 * readelf.c: Add support for displaying dwarf2 location lists.
1450 (do_debug_loc, debug_loc_section, debug_loc_size): New.
1451 (parse_args): Use 'O' as shorthand for displaying location list
1453 (process_section_headers): Handle debug_loc as well.
1454 (load_debug_loc): New.
1455 (free_debug_loc): New.
1456 (fetch_location_list): New.
1457 (display_debug_loc): New.
1458 (display_debug_info): Call load_debug_loc and free_debug_loc.
1459 (debug_displays): We can display .debug_loc now, too.
1460 (usage): Update usage string.
1461 (read_and_display_attr_value): Note location lists, but don't
1462 display them inline.
1466 * Makefile.am: Add binutils emulation support.
1467 * configure.in: Same.
1468 * configure.tgt: New file. Same.
1469 * ar.c (main): Use ar_emul_parse_arg.
1470 (usage): Use ar_emul_usage.
1471 (replace_members): Use ar_emul_replace, ar_emul_append.
1472 * binemul.c: New file. Define the binutils emulation
1473 layer. Define default methods.
1474 * binemul.h: New file. Binutils emulation layer header file.
1475 * emul_aix.c: New file. AIX binutils emulation.
1476 * emul_vanilla.c: New file. Default binutils emulation.
1477 * Makefile.in: Regenerate.
1482 * po/fr.po: Updated version.
1486 * po/fr.po: Updated version.
1490 * README: Update some version numbers.
1494 * doc/binutils.texi (Target Selection): Fix LD crossreferences.
1495 (Architecture Selection): Likewise.
1499 * dlltool.c (gen_exp_file): Take into account --kill-at (-k) while
1500 generating .exp file.
1504 * readelf.c (dump_relocations): Fix typo.
1508 * NEWS: Mark 2.12 branch.
1512 * readelf.c (dump_relocations): Display 2nd and 3rd reloc
1513 types for 64-bit MIPS. Narrow some fields for 80-char
1515 (dump_relocations): Change spelling from 'unrecognised'
1517 (decode_ARM_machine_flags): Likewise.
1518 (parse_args): Likewise.
1519 (read_and_display_attr_value): Likewise.
1520 (display_debug_section): Likewise.
1524 * NEWS: Mention support for MMIX.
1528 * readelf.c (get_machine_flags): Recognize EF_M68000.
1532 * MAINTAINERS: Added self as MN10300 co-maintainer.
1536 * readelf.c (get_ppc64_dynamic_type): Handle DT_PPC64_OPD and
1541 * MAINTAINERS: List myself as branch maintainer.
1545 * configure: Regenerate.
1546 * objcopy.c: Update copyright date.
1547 * doc/Makefile.in: Regenerate.
1551 * nlmconv.c: Back out localtime PARAMS change.
1555 * objcopy.c (MKDIR): Define.
1556 (copy_archive): Make name_list.name const. Use MKDIR.
1557 Handle duplicate files in archives by making more temp dirs.
1561 * coffdump.c: Include "getopt.h" after "bucomm.h"
1562 so that macros are defined correctly.
1563 * nlmconv.c: Add PARAMS ((const time_t *)) to localtime
1564 prototype. Prototype main.
1565 * nlmheader.y: Add PARAMS ((int)) to strerror prototype.
1569 * MAINTAINERS: Added self as SH co-maintainer.
1573 * po/tr.po: Updated translation.
1577 * Makefile.am: Run "make dep-am"
1578 * Makefile.in: Regenerate.
1582 * nm.c (print_value): Mark abfd unused.
1586 * unwind-ia64.c (unw_decoder): Change second argument
1587 to unsigned int, to match function prototypes.
1591 * objdump.c: Include "getopt.h" after "bucomm.h" so that
1592 __GNU_LIBRARY__ will be defined.
1597 * configure: Regenerated.
1601 * doc/Makefile.am (install): Depend on install-info.
1602 * doc/Makefile.in: Regenerate.
1606 * objcopy.c (strip_usage): Document -d as an alias
1609 * size.c (usage): Document [-t | --totals] options.
1610 (long_options): Add --totals option.
1611 (main): If the [-t | --totals] option is specified and
1612 the output format is Berkeley-style, print the total
1613 text, data, and bss sizes of all objects listed.
1614 (print_berkeley_format): If the [-t | --totals] option
1615 is specified, track the total text, data, and bss
1617 * doc/binutils.texi (size): Document [-t | --totals] options.
1618 (strip): Document -d as an alias for --strip-debug.
1619 * NEWS: Mention new feature of size.
1623 * po/fr.po: Updated version.
1624 * po/es.po: Updated version.
1628 * addr2line.c (usage): Update text to provide verbose
1629 description of the command line options.
1630 * ar.c (usage): Update text to provide verbose
1631 description of the command line options.
1632 (main): Accept -h and -H when running as ranlib.
1633 * coffdump.c (show_usage): Update text to provide verbose
1634 description of the command line options.
1635 * dlltool.c (main): Accept -H as an alias for --help.
1636 * nlmconv.c (show_usage): Update text to provide verbose
1637 description of the command line options.
1638 * nm.c (usage): Replace OPTIONS with option(s).
1639 (main): Accept -H as an alias for --help.
1640 * objcopy.c (strip_main): Accept -H as an alias for --help.
1641 * objdump.c (main): Accept -v as an alias for --verbose.
1642 * readelf.c (usage): Adjust format to match style used in
1644 * size.c (usage): Update text to provide verbose description
1645 of the command line options.
1646 (main): Accept -v, -h and -H as command line options.
1647 * srconv.c (show_usage): Update text to provide verbose
1648 description of the command line options.
1649 * strings.c (main): Accept -H and -v as command line options.
1650 (usage): Update text to provide verbose description of the
1651 command line options.
1652 * sysdump.c (show_usage): Update text to provide verbose
1653 description of the command line options.
1654 * windres.c (usage): Adjust format to match style used in
1657 * coffdump.c: Fix formatting.
1658 * nlmconv.c: Fix formatting.
1659 * srconv.c: Fix formatting.
1660 * sysdump.c: Fix formatting.
1664 * Makefile.am: Run "make dep-am".
1665 * Makefile.in: Regenerate.
1669 * version.c (print_version): Update year.
1673 * readelf.c (get_machine_name): Handle EM_PPC64.
1674 (guess_is_rela): Here too.
1678 * po/binutils.pot: Regenerate.
1679 * po/fr.po: Regenerate.
1680 * po/tr.po: Regenerate.
1684 * po/tr.po: Import new version.
1688 * readelf.c (get_ppc64_dynamic_type): New.
1689 (get_dynamic_type): Call it.
1693 * objcopy.c (copy_usage): Use "options" instead of "switches".
1694 (strip_usage): Use "options" instead of "switches".
1695 * doc/binutils.texi (dlltool): Refer to "options" instead of
1700 * MAINTAINERS: Add self as co-maintainer for the ARM code.
1704 * po/es.po: Import from translation project.
1705 * configure.in (ALL_LINGUAS): Add es.
1706 * configure: Regenerate.
1710 * readelf.c (get_netbsd_elfcore_note_type): Use
1711 NT_NETBSDCORE_PROCINFO and NT_NETBSDCORE_FIRSTMACH.
1715 * readelf.c: Update copyright years.
1716 (get_note_type): Return a const char *.
1717 (get_netbsd_elfcore_note_type): New function.
1718 (process_note): Use get_netbsd_elfcore_note_type to get
1719 the note type string for NetBSD ELF core files.
1723 * readelf.c (get_ia64_segment_type): Add support for macros.
1724 (get_segment_type): Add support for IA64 specific macros.
1728 * readelf.c (print_symbol): New function: Print a formatted symbol
1729 name. If --wide is specified do not truncate it.
1730 (dump_relocations): Use print_symbol() to print symbol names.
1731 (process_symbol_table): Likewise.
1732 (process_syminfo): Likewise.
1733 (process_mips_specific): Likewise.
1734 (usage): Document new feature of --wide switch.
1735 * doc/binutils.texi (objdump): Document additional behaviour of
1740 * objcopy.c (copy_file): Accept corefiles (format bfd_core).
1741 (copy_object): Don't set the start address or flags of a core file.
1742 (copy_section): Don't relocate a core file. Don't copy contents
1743 if the input section has the contents flag set, but the output
1744 section does not (which happens with the fake 'note' pseudo-
1745 sections that BFD creates for corefiles).
1749 * readelf.c (get_machine_flags): Recognize header flags for ABI and
1750 ASE extensions. More robust code for ISA checking. Ignore empty fields
1751 in header flags for GNU extensions.
1755 * objcopy.c (copy_archive): Set output bfd format outside the loop.
1759 * po/ja.po: Import from translation project.
1760 * configure.in (ALL_LINGUAS): Add ja.
1761 * configure: Regenerate.
1765 * addr2line.c (main): Protoype.
1766 * ar.c (main): Protoype.
1767 * nm.c (main): Protoype.
1768 * objcopy.c (main): Protoype.
1769 * objdump.c (main): Protoype.
1770 * size.c (main): Protoype.
1771 * strings.c (main): Protoype.
1775 * readelf.c (symtab_shndx_hdr): New global.
1776 (SECTION_HEADER_INDEX): Define.
1777 (SECTION_HEADER_NUM): Define.
1778 (SECTION_HEADER): Define.
1779 (GET_ELF_SYMBOLS): Pass two params rather than three.
1780 (get_32bit_elf_symbols): Take file and section args. Read and
1781 use SHT_SYMTAB_SHNDX.
1782 (get_64bit_elf_symbols): Likewise.
1783 (dump_relocations): Use SECTION_HEADER to index "section_headers".
1784 (process_section_headers): Likewise. Use SECTION_HEADER_NUM too.
1785 Remember symtab_shdx_hdr.
1786 (process_program_headers): Scan from index 1 for segment map.
1787 (slurp_ia64_unwind_table): Use SECTION_HEADER to index
1789 (process_relocs): Likewise. Also adjust call to GET_ELF_SYMBOLS.
1790 (process_unwind): Likewise.
1791 (process_version_sections): Likewise.
1792 (process_symbol_table): Likewise.
1793 (display_debug_info): Likewise.
1794 (process_dynamic_segment): Fake up a symtab section for changed
1796 (get_symbol_index_type): Check SHN_LOOS before SHN_LORESERVE.
1797 (process_program_headers): Kill signed/unsigned warning.
1798 (load_debug_str): Likewise.
1799 (display_debug_info): Likewise.
1803 * readelf.c (get_segment_type): Support PT_GNU_EH_FRAME.
1807 * readelf.c (process_file_header): Print extended e_shnum and
1808 e_shdtrndx values. Set elf_header values for same.
1809 (get_32bit_section_headers): Add "num" arg to read "num" headers.
1810 (get_64bit_section_headers): Likewise.
1811 (process_section_headers): Update calls.
1812 (get_file_header): Call get_32bit_section_headers or 64bit variant.
1816 * objcopy.c (setup_section): Copy entsize.
1820 * readelf.c (guess_is_rela): Add support for stormy16.
1821 (dump_relocations): Likewise.
1822 (get_machine_name): Likewise.
1826 * dllwrap.c (main) Replace multiple strings describing a
1827 single error with a single, newline escaped sentence to permit
1828 better translation into foreign languages.
1830 * readelf.c (get_elf_class): Remove internalionalisation of ELF
1835 * strings.c (get_char): Initialize value.
1839 * arlex.l: Silence compile warnings.
1840 * arsup.h: Likewise. Fix formatting.
1844 * strings.c: Include config.h before bfd.h.
1845 (file_off): New type.
1846 (file_open): Define.
1847 (print_strings): Use file_off instead of file_ptr. Print addresses
1848 which don't fit into long correctly.
1849 (get_char): Use file_off instead of file_ptr. Use getc_unlocked if
1851 (strings_file): Use file_off instead of file_ptr. Use file_open.
1852 * configure.in: Check for getc_unlocked.
1853 Check for fopen64 and whether _LARGEFILE64_SOURCE needs to
1855 * configure: Rebuilt.
1856 * config.h.in: Rebuilt.
1860 * bucomm.c (make_tempname): Revert the changes made on
1861 2001-11-14 and 2001-11-12. They won't work with directories.
1865 * binutils/Makefile.am (check-DEJAGNU): Pass CC_FOR_TARGET and
1866 CFLAGS_FOR_TARGET to runtest in environment.
1867 * Makefile.in: Rebuild.
1868 * doc/Makefile.in: Rebuild.
1872 * objcopy.c (setup_section): Preserve SEC_RELOC when
1873 --set-section-flags is used.
1877 * readelf.c (do_debug_str): New variable.
1878 (display_debug_str): New function: Display the contents of a
1880 (load_debug_str): New function: Load in the contents of a
1882 (free_debug_str): New function: Free the memory used by
1884 (fetch_indirect_string): Retrieve a string from the .debug_str
1887 (parse_args): Accept -ws.
1888 (process_section_headers): Allow the display of the .debug_str
1890 (read_and_display_attr_value): Use fetch_indirect_string. Show
1891 offset into .debug_str section.
1892 (display_debug_info): Use load_debug_str and free_debug_str.
1893 (debug_displays): Add .debug_str.
1894 * doc/binutils.texi: Document -ws.
1898 * testsuite/binutils-all/objdump.exp: Add x86-64.
1902 * readelf.c: Fix warnings without terminating newline.
1906 * doc/binutils.texi (objdump): Document ppc -M options.
1910 * doc/binutils.texi (objdump): Fix description to use x86-64.
1914 * bucomm.c (make_tempname): Use mkstemps instead of mkstemp, since
1915 not all systems provide mkstemp.
1919 * doc/binutils.texi (objdump): Document x86 -M options.
1923 * readelf.c (read_and_display_attr_value): New function to
1924 handle DW_FORM_indirect.
1925 (read_and_display_attr): Use it.
1929 * readelf.c (display_debug_lines): Deal with unknown standard
1930 opcodes. Handle DW_LNS_set_prologue_end, DW_LNS_set_epilogue_begin,
1935 * MAINTAINERS: Add self as tic54x maintainer. This target
1936 includes the IBM C54XDSP clone.
1940 * bucomm.c (make_tempname): Use mkstemp in place of mktemp.
1944 * unwind-ia64.c (unw_print_brmask): Fix ISO C portability glitch.
1945 (unw_print_grmask, unw_print_frmask, unw_print_abreg): Likewise.
1946 (unw_print_xyreg, unw_decode_x1, unw_decode_x2): Likewise.
1947 (unw_decode_x3, unw_decode_r1, unw_decode_r2): Likewise.
1948 (unw_decode_r3, unw_decode_p1, unw_decode_p2_p5): Likewise.
1949 (unw_decode_p6, unw_decode_p7_p10, unw_decode_b1): Likewise.
1950 (unw_decode_b2, unw_decode_b3_b4): Likewise.
1952 * readelf.c (get_elf_class): Fix ISO portability glitch.
1953 (get_data_encoding, get_osabi_name, request_dump): Likewise.
1957 * readelf.c (debug_str, debug_str_size): New.
1958 (display_debug_abbrev): If no abbrevs were read, skip the CU.
1960 (read_and_display_addr): Handle DW_FORM_strp.
1961 (display_debug_info): Read .debug_str section if present,
1962 so that DW_FORM_strp can be handled.
1963 Fix test for non-existant .debug_abbrev section.
1969 * arsup.c (ar_open): Prepend tmp- to basename, not whole path.
1973 * MAINTAINERS: Add self as s390/s390x maintainer.
1977 * MAINTAINERS: Add self as PPC XCOFF maintainer.
1981 * configure.in (ALL_LINGUAS): Add "fr" and "tr".
1982 * configure: Regernate.
1983 * po/fr.po: New file.
1984 * po/tr.po: New file.
1988 * MAINTAINERS: Add self as MMIX port maintainer.
1989 * readelf.c: Include elf/mmix.h.
1990 (guess_is_rela): MMIX is RELA.
1991 (dump_relocations): Handle MMIX relocations.
1992 * Makefile.am: Regenerate dependencies.
1993 * Makefile.in: Regenerate.
1997 * readelf.c (parse_args): Handle multiple options to the -w
2002 * readelf.c (get_section_type_name): Don't print SHT_ prefix for
2003 LOPROC, LOOS and LOUSER.
2007 * MAINTAINERS: Update my email address.
2011 * doc/Makefile.in: Regenerate.
2012 * configure: Regenerate.
2016 * readelf.c (display_debug_line, display_debug_pubnames,
2017 display_debug_info, display_debug_frames): Detect and warn
2018 about 64-bit format entries.
2019 (display_debug_aranges): Reword 64-bit warning.
2020 (debug_displays): Add .debug_pubtypes as a known, but not yet
2021 supported, debug section.
2025 * coffdump.c (PROGRAM_VERSION): Delete.
2026 (main <'V'>): Call print_version.
2027 * srconv.c: Likewise.
2028 * sysdump.c: Likewise.
2029 * version.c (program_version): Remove.
2030 (print_version): Use BFD_VERSION_STRING. Just print the current
2031 year in copyright message.
2032 * addr2line.c (program_version): Remove unused declaration.
2033 * objdump.c (display_target_tables): Use BFD_VERSION_STRING in
2034 place of BFD_VERSION.
2035 * Makefile.am (Makefile): Depend on bfd/configure.in.
2036 (cplus-dem.o): Depend on Makefile.
2038 * Makefile.in: Regenerate.
2042 * readelf.c (display_debug_aranges): Detect and warn about DWARF64
2043 format .debug_arange sections.
2044 (main): Add missing prototype.
2048 * Makefile.am: Update dependencies with "make dep-am".
2049 * Makefile.in: Regenerate.
2053 * objdump.c (dump_section_header): Dump SEC_ARCH_BIT_0.
2057 * bucomm.c (fatal): Define using VPARAMS, VA_OPEN, VA_FIXEDARG,
2059 (non_fatal): Likewise.
2060 * objdump.c (objdump_sprintf): Likewise.
2061 * readelf.c (error): Likewise.
2066 * readelf.c (do_wide): New.
2067 (options): Add --wide.
2068 (usage, parse_args): Likewise.
2069 (process_program_headers): Put each segment on a single line if
2071 (process_section_headers): Put each section on a single line if
2073 * doc/binutils.texi: Document it.
2078 * readelf.c (print_vma): Print 8 digits of low hex value.
2082 * nlmconv.c: Fix warnings about unused attributes and function
2085 * strings.c: Add prototype for get_char.
2089 * doc/Makefile.am ($(DEMANGLER_NAME).1): Try cxxfilt.man and
2090 $(srcdir)/cxxfilt.man.
2091 * doc/Makefile.in: Rebuild.
2095 * objcopy.c (copy_main): Correct rename-section string parsing.
2096 Consolidate new_name parsing, and error messages.
2100 * addr2line.c: Don't include <ctype.h>.
2101 (main): For gettext, also set the LC_CTYPE locate facet.
2102 * ar.c (main): Likewise.
2103 * coffdump.c (main): Likewise.
2104 * dlltool.c: Include "safe-ctype.h" instead of <ctype.h>.
2105 (main): For gettext, also set the LC_CTYPE locate facet.
2106 Use ISALNUM instead of isalpha/isdigit.
2107 * dllwrap.c: Don't include <ctype.h>.
2108 (main): For gettext, also set the LC_CTYPE locate facet.
2109 * nlmconv.c: Include "safe-ctype.h" instead of <ctype.h>.
2110 (main): For gettext, also set the LC_CTYPE locate facet.
2111 Use TOUPPER instead of islower/toupper.
2112 * nlmheader.y: Include "safe-ctype.h" instead of <ctype.h>.
2113 (yylex): Use ISSPACE/ISALNUM instead of isspace/isalnum.
2114 Use TOUPPER instead of islower/toupper.
2115 * nm.c (main): For gettext, also set the LC_CTYPE locate facet.
2116 * objcopy.c (main): Likewise.
2117 * objdump.c: Include "safe-ctype.h" instead of <ctype.h>.
2118 (disassemble_bytes): Use ISPRINT instead of isprint.
2119 (dump_section_stabs): Use ISDIGIT instead of isdigit.
2120 (dump_data): Use ISPRINT instead of isprint.
2121 (main): For gettext, also set the LC_CTYPE locate facet.
2122 * rclex.l: Include "safe-ctype.h" instead of <ctype.h>.
2123 (cpp_line, handle_quotes): Use ISSPACE instead of isspace.
2124 * rcparse.y: Include "safe-ctype.h" instead of <ctype.h>.
2125 Use TOUPPER instead of islower/toupper.
2126 * readelf.c (main): For gettext, also set the LC_CTYPE locate facet.
2127 * resrc.c: Include "safe-ctype.h" instead of <ctype.h>.
2128 (write_rc_accelerators): Use ISPRINT instead of isprint.
2129 (write_rc_rcdata): Likewise.
2130 * size.c (main): For gettext, also set the LC_CTYPE locate facet.
2131 * srconv.c (main): Likewise.
2132 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
2133 (parse_number): Use ISDIGIT/ISUPPER/ISLOWER instead of
2134 isdigit/isupper/islower.
2135 (parse_stab_string, parse_stab_type, parse_stab_argtypes,
2136 parse_stab_array_type, stab_demangle_count, stab_demangle_get_count,
2137 stab_demangle_prefix, stab_demangle_qualified,
2138 stab_demangle_template, stab_demangle_type,
2139 stab_demangle_fund_type): Use ISDIGIT instead of isdigit.
2140 * strings.c: Include "safe-ctype.h" instead of <ctype.h>.
2141 (isgraphic): Use ISPRINT instead of isascii/isprint.
2142 (main): Remove HAVE_LC_MESSAGES dependency.
2143 * sysdump.c: Include "safe-ctype.h" instead of <ctype.h>.
2144 (pbarray): Use ISPRINT instead of isprint.
2145 (main): For gettext, also set the LC_CTYPE locate facet.
2146 * windres.c: Include "safe-ctype.h" instead of <ctype.h>.
2147 (format_from_filename): Use ISPRINT instead of isprint.
2148 (main): For gettext, also set the LC_CTYPE locate facet.
2149 * winduni.c: Include "safe-ctype.h" instead of <ctype.h>.
2150 (unicode_print): Use ISPRINT instead of isprint.
2151 * wrstabs.c: Include "safe-ctype.h" instead of <ctype.h>.
2152 (stab_variable): Use ISDIGIT instead of isdigit.
2156 * ar.c (print_contents): Cast args of bfd_seek to the right types.
2157 Replace bfd_read call with call to bfd_bread.
2158 (extract_file): Likewise.
2160 * objdump.c (dump_section_header): Cast section->filepos to
2161 unsigned long to suit printf format string.
2162 * readelf.c (process_section_headers): Similarly for sh_offset.
2163 (process_unwind): Likewise.
2167 * strings.c (encoding, encoding_bytes): New variables.
2168 (long_options): Add --encoding.
2169 (main): Accept -e and --encoding.
2170 (get_char): New function. Read a, possibly wide, character from
2172 (print_strings): Use get_char().
2173 (usage): Document new command line option.
2174 * doc/binutils.texi: Document new command line option.
2175 * NEWS: Announce new command line option.
2179 * readelf.c (guess_is_rela, dump_relocations, get_machine_name,
2180 get_machine_flags): Added EM_M32R, EM_D10V, EM_V850, EM_D30V,
2181 EM_MN10200, EM_MN10300, EM_FR30, EM_AVR_OLD and EM_PJ_OLD.
2182 Removed EM_CYGNUS_ARC.
2186 * readelf.c: Include elf/h8 for H8 series definitions.
2187 (guess_is_rela): H8 series if RELA.
2188 (dump_relocations): Handle H8 series relocations.
2192 * readelf.c (get_machine_flags): Remove E_MIPS_MACH_MIPS32_4K.
2196 * MAINTAINERS: Include ARC Maintainer.
2200 * stabs.c (stab_demangle_template): Initialise s4.
2204 * readelf.c (dump_relocations): Recognise EM_PPC64.
2208 * readelf.c (get_machine_flags): Add detection of EF_MIPS_32BITMODE.
2212 * nm.c (print_width): New.
2213 (display_rel_file): Set `print_width' according to
2215 (print_symbol_info_bsd): Check `print_width' instead of BFD64.
2219 * objcopy.c (use_alt_mach_code): New variable.
2220 (OPTION_ALT_MACH_CODE): Define.
2221 (copy_options): Added --alt-machine-code.
2222 (copy_main): Handle it.
2223 (copy_object): Switch to alternate machine code if requested.
2224 * doc/binutils.texi: Document new option.
2229 * readelf.c (get_machine_flags): Add detection of EF_MIPS_UCODE.
2233 * readelf.c (dump_relocations): Support ELF64 on 32bit hosts.
2234 (display_debug_info): Cast for 64bit hosts.
2235 (display_debug_frames): Likewise.
2236 (process_mips_specific): Likewise.
2240 * coffgrok.h: Add missing parameter for prototype of coff_grok.
2242 * sysdump.c: Add missing prototypes.
2243 * srconv.c: Likewise.
2244 * unwind-ia64.c: Likewise.
2245 * coffdump.c: Likewise.
2247 * sysinfo.y: Print prototypes, include <ansidecl.h>.
2249 * coffgrok.c: Add missing prototypes, include libiberty.h instead
2250 of declaring xcalloc.
2254 * nm.c (print_value): Add one arg, bfd *.
2255 (print_value): Replace fprintf_vma with bfd_fprintf_vma.
2256 (print_symbol_info_bsd): Also pass `abfd' to print_value ().
2257 (print_symbol_info_sysv): Likewise.
2258 (print_symbol_info_posix): Likewise.
2260 * objdump.c (dump_section_header): Replace printf_vma with
2262 (print_section_stabs): Likewise.
2263 (dump_bfd_header): Likewise.
2264 (objdump_print_value): Replace sprintf_vma with
2266 (disassemble_bytes): Likewise.
2267 (dump_reloc_set): Likewise.
2271 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2273 * configure: Regenerate.
2277 * readelf.c: Add missing prototypes.
2278 * objdump.c: Likewise. Format existing prototypes.
2282 * readelf.c (display_debug_info): Add to abbrev_offset the addend
2283 of any RELA relocation for the abbrev_offset memory location that
2284 refers to the .debug_abbrev section symbol.
2288 * readelf.c (process_file): Return 0 if OK, otherwise return 1.
2289 (main): Return process_file ().
2293 * doc/binutils.texi: Use "Thumb" not "THUMB".
2298 * objdump.c (disassemble_data): Fill in section member of the
2299 disasm_info structure.
2303 * configure.in: Added --with-windres option.
2304 * configure: Regenerated.
2308 * doc/binutils.texi: Use @command{name} for commands;
2309 use @option{-opt} for options; use @table @env for list of options;
2310 remove spaces arround [ | ] in synopsis.
2312 * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for the
2317 * objcopy.c: Fix formatting.
2318 (section_rename): New structure.
2319 (OPTION_RENAME_SECTION): New switch.
2320 (copy_usage): Document new switch.
2321 (add_section_rename): New function: Add a node to the section
2323 (find_section_rename): New function: Find the new name and
2324 flags for a section.
2325 (setup_section): Call find_section_name to determine the name
2326 of the output section.
2327 (copy_main): Handle OPTION_RENAME_SECTION.
2328 * binutils.texi: Document new switch.
2329 * NEWS: Mention new switch.
2339 * bucomm.c (list_supported_architectures): New function.
2340 * bucomm.h (list_supported_architectures): Declare.
2341 * objdump.c (usage): Call the above.
2345 * objdump.c (SKIP_ZEROES): Only define it if it is not already defined.
2346 (SKIP_ZEROES_AT_END): Only define it if it is not already defined.
2350 * README: Update for 2.11. Change bug reporting email address.
2351 * MAINTAINERS: Tidy up. Change bug reporting email address.
2355 * resres.c (write_res_header): Align header size.
2356 (res_align_file): Calculate alignment correctly.
2358 * rcparse.y (styles): use SUBLANG_SHIFT instead of 8 (or the more
2360 * resrc.c (write_rc_resource): Likewise.
2361 * windres.h (SUBLANG_SHIFT): Define - as 10.
2365 * MAINTAINERS: Add Christian Groessler as maintainer for z8k port.
2369 * MAINTAINERS: Add notes about branch checkins.
2373 * readelf.c (display_debug_macinfo): New function, display
2374 .debug_macinfo section.
2375 (do_debug_macinfo): New variable.
2376 (parse_args): Handle "-w[mM]" to mean display macro info.
2377 (process_section_headers): Handle debug_macinfo.
2378 (debug_displays): Replace unsupported function with macinfo
2379 function for .debug_macinfo display.
2380 * doc/binutils.texi: Document new command line switch.
2381 * NEWS: Document new feature of readelf.
2385 * objcopy.c (filter_symbols): Don't turn undefined symbols
2390 * doc/Makefile.am (addr2line.1): Use addr2line.pod instead of
2393 (dlltool.1): Likewise.
2394 (nlmconv.1): Likewise.
2396 (objcopy.1): Likewise.
2397 (objdump.1): Likewise.
2398 (ranlib.1): Likewise.
2399 (readelf.1): Likewise.
2401 (strings.1): Likewise.
2402 (strip.1): Likewise.
2403 (windres.1): Likewise.
2405 ($(DEMANGLER_NAME).1): Also substitute cxxfilt with
2408 * doc/Makefile.in: Regenerated.
2412 * MAINTAINERS: Change MIPS maintainer to Eric Christopher.
2416 * readelf.c: Support DWARF 2.1 tags, encodings, languages.
2420 * readelf.c: Support DWARF 2.1 attributes.
2424 * readelf.c (GET_DATA_ALLOC): Remove.
2426 (get_data): New function combining above macros, with an extra
2428 (slurp_rela_relocs): Use get_data, and catch error return.
2429 (slurp_rel_relocs): Likewise.
2430 (get_32bit_program_headers): Likewise.
2431 (get_64bit_program_headers): Likewise.
2432 (get_32bit_section_headers): Likewise.
2433 (get_64bit_section_headers): Likewise.
2434 (get_32bit_elf_symbols): Likewise.
2435 (get_64bit_elf_symbols): Likewise.
2436 (process_section_headers): Likewise.
2437 (process_relocs): Likewise.
2438 (slurp_ia64_unwind_table): Likewise.
2439 (process_unwind): Likewise.
2440 (get_32bit_dynamic_segment): Likewise.
2441 (get_64bit_dynamic_segment): Likewise.
2442 (process_dynamic_segment): Likewise.
2443 (process_version_sections): Likewise.
2444 (process_symbol_table): Likewise.
2445 (dump_section): Likewise.
2446 (display_debug_info): Likewise.
2447 (display_debug_section): Likewise.
2448 (process_section_contents): Likewise.
2449 (process_corefile_note_segment): Likewise.
2450 (process_mips_specific): Likewise. Also free econf32, econf64.
2454 * readelf.c (dump_relocations): Print "bad symbol index" if
2455 symtab == NULL with non-zero symtab_index.
2456 (process_relocs): Don't bomb if reloc section has no symsec.
2460 * objcopy.c (strip_main): Revert the change made on 2001-05-30
2462 (copy_main): Apply the the change made to strip_main on
2463 2001-05-30 by accident.
2467 * unwind-ia64.c (unw_decode_x1): Add unused attribute for
2469 (unw_decode_x2): Likewise.
2470 (unw_decode_x3): Likewise.
2471 (unw_decode_x4): Likewise.
2475 * MAINTAINERS: Add myself as M88k maintainer.
2479 * objcopy.c (strip_main): Support -o or --output-file command lien
2484 * doc/Makefile.in: Regenerated.
2488 * readelf.c: Restore formatting.
2492 * Makefile.am: Move documentation into doc subdirectory.
2493 * Makefile.in: Regenerated.
2494 * binutils.texi: Move into doc subdirectory.
2495 * addr2line.1: Removed.
2497 * dlltool.1: Likewise.
2498 * nlmconv.1: Likewise.
2500 * objcopy.1: Likewise.
2501 * objdump.1: Likewise.
2502 * ranlib.1: Likewise.
2503 * readelf.1: Likewise.
2505 * strings.1: Likewise.
2506 * strip.1: Likewise.
2507 * windres.1: Likewise.
2508 * cxxfilt.man: Likewise.
2509 * doc: New Directory.
2510 * doc/Makefile.am: New file.
2511 * doc/Makefile.in: Generate.
2515 * NEWS: Fix a typo. Mention hppa64-elf. Add binutils-2.11 marker.
2519 * MAINTAINERS: Update my email address.
2523 * objcopy.c: Add new switches: --keep-global-symbol,
2524 --keep-symbols, --localize-symbols, --keep-global-symbols and
2526 * binutils.texi: Document new switches.
2527 * objcopy.1: Regenerate.
2528 * NEWS: Announce new feature.
2532 * readelf.c (display_debug_frames): Fix warnings: Remove unused
2533 variables, fix format strings.
2537 * objdump.c (disassemble_bytes): Remove section VMA adjustment
2538 when computing the address of the line to show.
2542 * readelf.c (do_debug_frames_interp): New.
2543 (byte_get_little_endian): If BFD64, always read entire 8-byte fields.
2544 (byte_get_big_endian): Likewise.
2545 (parse_args) ['F']: Set do_debug_frames_interp.
2546 (Frame_Chunk): Make data_factor signed, add fde_encoding.
2547 (frame_display_row): Don't trunc pc_begin to int.
2548 (size_of_encoded_value): New.
2549 (display_debug_frames): Handle 64-bit targets. Print raw data
2550 unless do_debug_frames_interp.
2551 (debug_displays): Remove duplicate .debug_frame.
2555 * readelf.c: Replace uses of EM_MIPS_RS4_BE with EM_MIPS_RS3_LE.
2556 The former constant was never in active use and is used otherwise
2561 * readelf.c (process_unwind): Print all unwind sections, not just
2566 * readelf.c (process_unwind): Remove const specifier.
2570 * strings.c (isgraphic): Do not use isascii() unless it is needed
2571 for isprint() to work.
2572 (main): Set the locale domain to LC_ALL not just LC_MESSAGES.
2576 * NEWS: Announce support for OpenRISC.
2580 * dlltool.c (do_default_excludes): Initialise to true.
2584 * MAINTAINERS: Update my email address
2585 * nm.c (print_symbol_info_bsd): Use a simple printf string.
2589 * readelf.c (display_debug_lines): Fix typo for "Prologue".
2593 * readelf.c (process_unwind): Just return if do_unwind is 0.
2597 * dlltool.c (make_one_lib_file): Fix section flags for
2598 .text, .data and .bss in stub ds*.o files to match those
2603 * readelf.c (process_unwind): Only do unwind sections for
2608 * Makefile.am ($(srcdir)/dlltool.1): Remove the extra target.
2609 * Makefile.in: Regenerate.
2613 * binutils.texi (nm): Fix texi syntax.
2617 * binutils.texi: Put @c man begin and @c man end indications
2618 to generate man pages using texi2pod and pod2man. Put @c man title
2619 to identify each man. Add SEEALSO entries.
2620 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
2621 (man_MANS): Add dlltool.1, nlmconv.1, readelf.1, windres.1,
2623 (*.1): Build the man pages from binutils.texi.
2624 * Makefile.in: Regenerate.
2628 * defparse.y (opt_equal_name): allow "." in name.
2629 * dlltool.c (def_exports): Added ability to generate forwarded exports.
2630 (gen_exp_file): Likewise.
2634 * NEWS: Document addition of -B switch to objcopy.
2635 * binutils.texi: Document addition of -B switch to objcopy.
2636 * objcopy.c: (copy_options): Add --binary-architecture.
2637 (copy_usage): Document -B/--binary-architecture.
2638 (copy_main): Support -B/--binary-architecture. Set
2639 bfd_external_binary_architecture.
2643 * readelf.c (guess_is_rela): Handle EM_S390_OLD.
2644 (dump_relocations): Likewise.
2645 (get_machine_name): Likewise.
2649 * readelf.c: (struct unw_aux_info): Remove const modifier for
2651 (process_unwind): Remove non-K&R compliant LHS type cast in call
2652 to GET_DATA_ALLOC macro.
2656 * readelf.c (decode_ARM_machine_flags): Explicitly mention which
2657 ABI is in use; remove ambiguity between the "unknown" EABI and
2658 unrecognised ABIs. Handle version 2 ARM EABI. Update uses of
2659 renamed EF_xx constants.
2663 * configure.in (BFD_VERSION): New.
2664 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2665 * configure: Regenerate.
2666 * Makefile.am: Run "make dep-am"
2667 * Makefile.in: Regenerate.
2671 * MAINTAINERS: Add "Obvious Fix" rule.
2675 * unwind-ia64.c: Don't use ANSI C preprocessor stringisation and string
2676 literal concatenation.
2680 * readelf.c (struct unw_aux_info): Remove const from the info member.
2681 (process_unwind): Don't type-cast the third argument to the
2682 GET_DATA_ALLOC macro.
2686 * readelf.c (dump_relocations): Free corrected allocated
2688 (process_unwind): Fix compile time warning.
2692 * binutils.texi: Document new --unwind option to readelf.
2696 * readelf.c: Add linux target for S/390.
2700 * nm.c (print_symbol_info_bsd): Don't #ifdef inside printf in case
2705 * acinclude.m4 (AM_PROG_LEX): Override installed definition.
2706 * aclocal.m4: Regenerate.
2707 * configure: Regenerate.
2711 * bucomm.c (bfd_target_vector): Change extern array to pointer.
2712 * objdump.c (bfd_target_vector): Likewise.
2716 * readelf.c (process_unwind): New function.
2717 (slurp_ia64_unwind_table): Ditto.
2718 (dump_ia64_unwind): Ditto.
2719 (find_symbol_for_address): Ditto.
2720 (slurp_rela_relocs): New function (split off from dump_relocations()).
2721 (slurp_rel_relocs): Ditto.
2722 (parse_args): Handle '-u' option.
2724 * unwind-ia64.c: New file.
2725 * unwind-ia64.h: New file.
2726 * Makefile.am: Include unwind-ia64.c in readelf build.
2727 * Makefile.in: Regenerate.
2728 * po/binutils.pot: Regenerate.
2732 * configure.in (OBJDUMP_DEFS): Match `arm*-*', not just `arm-*'.
2733 * configure: Regenerate.
2737 * ieee.c (ieee_add_bb11): Don't check for backslashes
2738 unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
2742 * ieee.c: Update copyright.
2743 (ieee_start_compilation_unit): Don't check for backslashes
2744 unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
2746 * stabs.c: Update copyright. Include "filenames.h".
2747 (parse_stab): Use IS_ABSOLUTE_PATH. Ignore N_WARNING stabs.
2751 * readelf.c (process_version_sections): Check if VERDEF or VERNEED
2752 sections are present before using them. Remove code duplication.
2753 (process_symbol_table): Check if VERDEF or VERNEED sections are
2754 present before using them.
2758 * objcopy.c (copy_object): Fail if attempting to convert the
2759 endianness of the input object file.
2761 * binutils.texi: Explain that objcopy cannot convert endianness.
2765 * readelf.c (string_table_length): New variable.
2766 (SECTION_NAME): Catch out of range indices and missing section
2768 (process_section_headers): Delete useless local variable
2769 string_table_offset. Set the value of string_table_length
2770 after loading the string table.
2771 (process_mips_specific): Use SECTION_NAME macro.
2772 (process_file): Set string_table_length to 0 when it is freed.
2776 * version.c (print_version): Update copyright date.
2780 * readelf.c (dump_relocations): Include selection with EM_ARC.
2781 (get_machine_name) Update name to "ARC".
2785 * Makefile.am: Add rule to build objdump.o from objdump.c and
2787 * Makefile.in: Regenerate.
2789 * configure.in: Define OBJDUMP_DEFS. Default to empty.
2790 (arm, xscale, d10v): For these targets define OBJDUMP_DEFS to
2791 -DDISASSEMBLER_NEEDS_RELOCS.
2792 * configure: Regenerate.
2794 * objdump.c (disassemble_bytes): If DISASSEMBLER_NEEDS_RELOCS
2795 is defined read in the relocs even if dump_reloc_info is
2800 * binutils.texi (Bug Reporting): Replace `bug-gnu-utils' with
2806 * dlltool.c: Add missing support for arm-epoc-pe.
2807 * configure.in: Add missing support for arm-epoc-pe.
2808 * configure: Regenerate.
2812 * MAINTAINERS: Add Diego Novillo as a maintainer for the Intel
2813 Mode parts of the x86 port.
2817 * readelf.c (guess_is_rela): Add EM_X86_64.
2818 (dump_relocations): Add EM_X86_64.
2819 (get_machine_name): Add EM_X86_64.
2820 Include "elf/x86-64.h".
2824 * readelf.c: Fix formatting.
2828 * MAINTAINERS: Add myself and Andreas Jaeger as x86_64 maintainer.
2832 * readelf.c (display_debug_frames): Only display columns that are
2833 referenced by the frame debug info.
2837 * MAINTAINERS: Add Jason Merrill as DWARF2 maintainer.
2841 * readelf.c (process_section_headers): Handle linkonce.wi sections.
2842 (display_debug_section): Likewise.
2843 (display_debug_info): Display CU header before bailing.
2847 * readelf.c (get_machine_flags): Recognize MIPS32 ISA in
2848 EF_MIPS_ARCH. Replace use of E_MIPS_MACH_MIPS32 with
2849 E_MIPS_MACH_MIPS32_4K and adjust printed CPU name similarly.
2851 * readelf.c (get_machine_flags): Add cases for E_MIPS_ARCH_5,
2854 * readelf.c (get_machine_flags): Add case for
2859 * readelf.c (frame_display_row): Output 's' for DW_CFA_same_value.
2863 * MAINTAINERS: Add J
\81örn Rennecke and self as SH maintainers.
2864 Change sourceware.cygnus.com to sources.redhat.com.
2865 Fix typo for "amongst".
2869 * strip.1 (COPYING): Mention that the GNU Free Documentation
2870 License is present in the sources, but not the output, and
2871 also available from the GNU website.
2872 (GNU Free Documentation License): Comment out this section.
2881 * addr2line.1: Ditto.
2885 * readelf.c (usage): Add -wf (--debug-dump=frames) option.
2886 (parse_args): Support -wf option.
2887 (process_section_headers): Ditto.
2888 (debug_displays): Ditto.
2889 (display_debug_frames): New, dump *_frame sections.
2890 (frame_need_space): Support for above.
2891 (frame_display_row): Ditto.
2892 * binutils.texi: Document it.
2896 * NEWS: Announce support for v5t, v5te and XScale.
2900 * readelf.c (get_machine_name): Add EM_JAVELIN, EM_FIREPATH,
2901 EM_ZSP, EM_MMIX, EM_HUANY, EM_PRISM.
2902 (get_section_type_name): Add SHT_GROUP and SHT_SYMTAB_SHNDX.
2903 (get_elf_section_flags: Add SHF_GROUP.
2904 (process_section_headers): Adjust output for 32-bit binaries
2905 to look nice on an 80 column terminal.
2909 * readelf.c (get_osabi_name): Change ELFOSABI_MONTEREY to
2914 * readelf.c (display_debug_lines): Adjust last change to
2915 use sizeof (external->li_length).
2919 * readelf.c (display_debug_lines): Fix section length check
2920 and end_of_sequence computation.
2924 * binutils.texi: Add GNU Free Documentation License.
2925 * objcopy.1: Add GNU Free Documentation License.
2926 * objdump.1: Add GNU Free Documentation License.
2927 * addr2line.1: Add GNU Free Documentation License.
2928 * ar.1: Add GNU Free Documentation License.
2929 * nlmconv.1: Add GNU Free Documentation License.
2930 * nm.1: Add GNU Free Documentation License.
2931 * ranlib.1: Add GNU Free Documentation License.
2932 * size.1: Add GNU Free Documentation License.
2933 * strings.1: Add GNU Free Documentation License.
2934 * strip.1: Add GNU Free Documentation License.
2938 * objcopy.c (--srec-len=nn): New parameter to set the
2939 maximum length of generated Srecords.
2940 (--srec-forceS3): New parameter that restricts the generation of
2941 Srecords to type S3 only.
2942 * binutils.texi: Document new command line switches.
2943 * objcopy.1: Docuemnt the new command line switches.
2944 * NEWS: Announce the existence of the new command line switches.
2948 * MAINTAINERS: Add Jim Wilson as the maintainer for the IA64
2949 code. Add Eric Chrisopher as maintainer of MN10300 port.
2953 * Make comma after string after icon/control optional.
2957 * readelf.c (get_machine_flags): Also print EF_MIPS_MACH field.
2959 * NEWS: Mention support for MIPS32.
2963 * MAINTAINERS: Add Stephane Carrez as maintainer for 68HC[11|12].
2967 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2968 * configure: Rebuild.
2972 * configure: Rebuilt with new libtool.m4.
2976 * aclocal.m4: Regenerate.
2977 * config.in: Regenerate.
2978 * configure: Regenerate.
2982 * strip.1: Fix stray '\' in -o formatting.
2986 * configure.in: Increase version number to 2.10.91.
2987 * configure: Regenerate.
2988 * aclocal.m4: Regenerate.
2989 * config.in: Regenerate.
2990 * po/binutils.pot: Regenerate.
2994 * acinclude.m4: Include libtool and gettext macros from the
2996 * aclocal.m4, configure: Rebuilt.
3000 * resrc.c (close_input_stream): Delete extraneous logic
3004 * NEWS: Mention support for CRIS.
3008 * addr2line.c: Changed email address for Ulrich Lauther.
3012 * objdump.c (LONGEST_ARCH): Set to sizeof("powerpc:common").
3016 * readelf.c (display_debug_pubnames): Only issue warning
3017 message once. Terminate message with a new line.
3018 (display_debug_aranges): Only display version 2 debug info.
3022 * objcopy.c (strip_main): Silently accept -d as an alias for -g
3023 for compatability with old BSD systems.
3027 * NEWS: Mention i860 support.
3031 * addr2line.c (main): Add const to char *.
3035 * ar.c (main): Don't crash if called with no arguments
3036 or only '-X32_64' as an argument.
3040 * resrc.c: use "gcc -xc" instead of -xc-header
3044 * readelf.c (elf/i860.h): Include.
3045 (dump_relocations): Add recognition of i860 architecture.
3046 (guess_is_rela): Add recognition of i860 architecture.
3050 * MAINTAINERS: Add information about CGEN maintainers.
3054 * nm.c (main): Ignore '-X32_64' as an option.
3055 * ar.c (main): Likewise.
3056 * binutils.texi (nm): Document new option.
3061 * rdcoff.c (external_coff_symbol_p): K&R-ise.
3065 * binutils.texi: Put back "@end table" deleted by
3070 * nm.c: Add optional style to demangle switch.
3071 * objdump.c: Add optional style to demangle switch.
3072 * addr2line.c: Add optional style to demangle switch.
3073 * binutils.texi: Document optional style to demangle
3078 * MAINTAINERS: Add self as CRIS port maintainer.
3079 * readelf.c: Include elf/cris.h.
3080 (guess_is_rela): Handle EM_CRIS.
3081 (dump_relocations): Ditto.
3082 (get_machine_name): Ditto.
3083 * Makefile.am: Rebuild dependencies.
3084 * Makefile.in: Regenerate.
3085 * po/binutils.pot: Regenerate.
3089 * readelf.c (get_dynamic_type): Change "AUXILARY" to
3091 (process_dynamic_segment): Print out strings for DT_CONFIG,
3092 DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH.
3096 * nm.c (usage): Change output of `nm --help' to include a
3097 description of the purpose of the program and a detailed
3098 description of the accepted options.
3102 * readelf.c (process_dynamic_segment): Change DF_1_NODEPLIB
3107 * readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
3111 * readelf.c (get_dynamic_type): Change DT_FEATURE_1 to
3113 (process_dynamic_segment): Likewise.
3115 * readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT,
3116 DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM.
3117 (process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB,
3118 DF_1_NODUMP and DF_1_CONLFAT.
3122 * binutils.texi (readelf): Fix spelling typo.
3126 * objdump.c (usage): Make output of `objdump --help' more
3127 consistent with the rest of the GNU world. Add a line describing
3128 the purpose of the program.
3132 * stabs.c (parse_stab_range_type): Cast to proper type to fix
3137 * readelf.c (get_dynamic_data): Add casts and use unsigned chars
3139 (process_symbol_table): Ditto.
3140 (procesS_extended_line_op): Ditto.
3141 (display_debug_lines): Ditto.
3142 (display_debug_pubnames): Ditto.
3143 (read_and_display_attr): Ditto.
3147 * MAINTAINERS: Add several more port specific maintainers.
3151 * MAINTAINERS: Add blanket write privs for Michael Meissner.
3159 * dllwrap.c: Changed mistaken dyn_string_append() calls
3160 to dyn_string_append_cstr().
3164 * stabs.c (parse_stab_type): Divide size in bits by 8 as binutils
3165 struct debug_type stores size in bytes.
3169 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3170 (CLEANFILES): Add DEPA.
3171 * Makefile.in: Regenerate.
3175 * ar.c: Revert incorrect 2000-06-25 patch.
3176 * bucomm.c: Likewise.
3180 * rdcoff (parse_coff_symbol): Treat GNU weak symbols as external.
3181 (external_coff_symbol_p): New function.
3182 (parse_coff): Use it.
3186 * ar.c (normalize): Advance past both characters in a DOS based
3187 <letter>: filepath prefix.
3189 * bucomm.c (make_tempname): Likewise.
3193 * objdump.c (usage): Fix description of --stabs switch.
3197 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3199 * Makefile.in: Regenerate.
3203 * ar.c (normalize): Correct pointer comparison when checking for
3206 * bucomm.c (make_tempname): Likewise.
3208 * ieee.c (ieee_start_compilation_unit): Correct pointer comparison
3209 and search for backslashes in the original pathname.
3210 (ieee_add_bb11): Likewise.
3214 * ar.c (print_contents): Improve verbose message.
3218 * dyn-string.c: Removed. Not needed with dyn-string.c in
3220 * dyn-string.h: Likewise.
3222 * Makefile.am: Remove references to dyn-string.c and
3223 dyn-string.h. Rebuild dependency.
3224 * Makefile.in: Rebuild.
3228 * binutils.texi: Put a warning on copying relocatable object
3229 files between two different formats.
3233 * rcparse.y (control): ICON controls take an id as the first
3234 parameter, not an optional string. Also, call new convenience
3235 function that takes res_id's.
3236 * resrc.c (define_control): missing text means zero-length string,
3238 (define_icon_control): New.
3239 * windres.h: declare define_icon_control.
3243 * configure: Regenerate.
3247 * configure.in (VERSION): Update to show this is the CVS mainline.
3251 * strings.c (isgraphic): Interpret <TAB> as a printable character,
3252 analogous to <SPACE>.
3256 * objdump.c (display_target_list): Use bfd_close_all_done, not
3257 bfd_close to fix crash caused by 2000-05-24 change.
3261 * resrc.c (close_input_stream): zero out cpp_pipe after closing it.
3265 * Makefile.am: Update dependencies with "make dep-am"
3266 * Makefile.in: Regenerate.
3270 * ar.c: Include filenames.h.
3271 (normalize) [HAVE_DOS_BASED_FILE_SYSTEM]: Support backslashes
3272 and drive letters in file names.
3273 (main): Support backslashes and drive letters in argv[0]. Drop
3274 the .exe suffix, if any, in argv[0] if is_ranlib is negative. Use
3275 FILENAME_CMP instead of strcmp to compare file names.
3276 (open_inarch) [__GO32__]: Don't ifdef errno != ENOENT test for
3278 (do_quick_append) [__GO32__]: Ditto.
3279 (get_pos_bfd, delete_members, move_members, replace_members):
3280 Compare file names with FILENAME_CMP.
3282 * bucomm.c: Include filenames.h.
3283 (make_tempname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support mixed
3284 forward/backward slashes and drive letters in file names.
3286 * ieee.c (ieee_start_compilation_unit, ieee_add_bb11): Support
3287 mixed forward/backward slashes and drive letters in file names.
3289 * strings.c (O_BINARY, setmode, SET_BINARY): Define.
3290 (main) [SET_BINARY]: Use SET_BINARY to switch stdin into binary
3293 * objcopy.c: Include filenames.h.
3294 (main) [HAVE_DOS_BASED_FILE_SYSTEM]: Drop the .exe suffix
3295 before comparing to "strip".
3296 Use FILENAME_CMP to compare file names.
3298 * arsup.c: Include filenames.h.
3299 (map_over_list, ar_delete, ar_replace, ar_extract): Use
3300 FILENAME_CMP to compare file names.
3301 (ar_open): Prepend "tmp-" instead of appending "-tmp", to create
3302 the temporary file name.
3304 * configure.in: Check for setmode.
3305 * configure: Regenerate.
3309 * objdump.c (display_target_list): Close the bfd.
3310 (display_info_table): Likewise.
3314 * objcopy.c (filter_symbols): Don't strip global symbols in
3315 relocatable object files.
3319 * size.c (usage): Associate short options with corresponding long
3320 option to give a clue as to their function.
3324 * size.c (main): Accept and ignore `-f' option.
3328 * bucomm.h (gettext, dgettext, dcgettext, textdomain,
3329 bindtextdomain): Replace defines with those from intl/libgettext.h
3330 to quieten gcc warnings.
3334 * nlmconv.c (temp_filename): Removed.
3336 * nlmconv.c (link_inputs): Use make_temp_file () instead of
3337 choose_temp_base ().
3338 * objdump.c (display_target_list): Likewise.
3339 (display_info_table): Likewise.
3343 * objcopy.c (setup_section): Add const and gettext calls for err.
3347 * readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
3348 ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
3349 ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
3350 ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
3351 and ELFOSABI_OPENBSD.
3355 * coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate.
3356 * srconv.c: Likewise.
3357 * sysdump.c: Likewise.
3361 * readelf.c (guess_is_rela): AVR uses RELA relocations.
3362 (get_machine_name): machine name for EM_AVR added.
3367 * Makefile.am (readelf.o): Add elf/ia64.h.
3368 * Makefile.in: Rebuild.
3369 * readelf.c: Include elf/ia64.h.
3370 (guess_is_rela, dump_relocations): Handle EM_IA_64.
3374 * objdump.c (disassemble_data): Set octets per byte *after*
3375 resolving arch/mach for binary files.
3379 * arlex.l: Add directives to increase lex buffer size.
3381 * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are
3382 already included by bucomm.h.
3386 * readelf.c (dynamic_segment_mips_val): Call `sprintf', not
3387 `strftime' since strftime is not available on all systems.
3388 (process_mips_specific): Ditto.
3392 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3393 --enable-build-warnings option.
3394 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3395 * Makefile.in, configure: Re-generate.
3399 * addr2line.c: Update copyright.
3400 * objcopy.1: Likewise, and title.
3401 * strings.1: Likewise.
3403 * version.c (print_version): Add 2000.
3405 * rddbg.c (read_section_stabs_debugging_info): Don't use
3406 bfd_size_type for strx to avoid printf problems if BFD64.
3408 * bucomm.c: (report): Remove `static'.
3409 Move inclusion of stdarg.h/vararg.h from here.
3410 * bucomm.h: To here.
3411 (CONST): Change all occurences to const.
3412 (report): Declare it.
3413 (bfd_fatal): Add ATTRIBUTE_NORETURN.
3414 (fatal): Add ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN.
3415 (non_fatal): Add ATTRIBUTE_PRINTF_1.
3417 * ar.c (main): Use fatal or non_fatal instead of fprintf.
3418 Correct a typo in an error message.
3419 (do_quick_append): Use non_fatal instead of fprintf.
3420 (move_members): Use fatal instead of fprintf, exit.
3421 * coffdump.c (main): Same here.
3423 * dlltool.c (display): Delete.
3425 (inform): Use `report' instead of `display'.
3426 (rvaafter): Remove trailing \n from fatal error msg.
3428 (asm_prefix): Ditto.
3429 (yyerror): Replace `warn' with `non_fatal', and remove \n.
3430 (def_name): Likewise.
3432 (scan_all_symbols): Likewise.
3433 (gen_lib_file): Likewise.
3434 (def_library): Likewise. Remove extra program_name too.
3435 (run): Remove \n from inform strings.
3436 (scan_drectve_symbols): Likewise.
3437 (add_excludes): Likewise.
3438 (scan_open_obj_file): Likewise.
3439 (gen_exp_file): Likewise.
3440 (gen_lib_file): Likewise.
3441 (process_duplicates): Likewise.
3443 * Makefile.am (dllwrap_SOURCES): Add version.c.
3444 * dllwrap.c (program_version): Delete.
3445 (print_version): Delete.
3446 (display): Always print trailing \n.
3448 (delete_temp_files): Use warn instead of fprintf. Use gettext.
3451 (usage): gettext'ify.
3452 (long_options): Add missing initialisers.
3454 * nlmconv.c (main): Use fatal/non_fatal instead of fprintf.
3455 (select_output_format): Likewise.
3456 (powerpc_mangle_relocs): Likewise.
3457 (link_inputs): Likewise.
3459 * nm.c (set_print_radix): Use fatal instead of fprintf, exit.
3460 (set_output_format): Likewise.
3461 (main): Use non_fatal instead of fprintf.
3462 (display_rel_file): Likewise.
3464 * objdump.c (slurp_symtab): Use non_fatal instead of fprintf.
3465 (slurp_dynamic_symtab): Same here.
3466 (disassemble_data): And here.
3467 (read_section_stabs): And here.
3468 (read_section_stabs): And here.
3469 (dump_bfd): And here.
3471 (objdump_sprintf): Use fatal instead of fprintf, exit.
3472 (disassemble_data): Same here.
3474 * rdcoff.c (parse_coff_type): Use non_fatal instead of fprintf.
3475 (parse_coff_struct_type): Same here.
3476 (parse_coff_enum_type): And here.
3477 (parse_coff): And here.
3478 * rddbg.c (read_debugging_info): And here.
3479 * size.c (main): And here.
3480 * windres.c (format_from_name): And here.
3481 * wrstabs.c (stab_write_symbol): Here too.
3482 (write_stabs_in_sections_debugging_info): And here.
3483 (stab_int_type): And here.
3484 (stab_struct_field): And here.
3485 (stab_typdef): And here.
3487 * rescoff.c (read_coff_rsrc): Use fatal instead of fprintf, exit.
3488 * srconv.c (main): Same here.
3489 * strings.c (main): And here.
3490 (integer_arg): And here.
3491 * sysdump.c (main): And here.
3495 * objdump.c (dump_section_header): Print CLINK and BLOCK flags.
3499 * readelf.c (decode_location_expression): Loop through multiple
3501 (read_and_display_attr): Pass in length.
3503 * readelf.c (read_and_display_attr): Add CU offset to references.
3504 (display_debug_info): Pass it in.
3508 * readelf.c (decode_ARM_machine_flags): New function.
3509 (get_machine_flags): Call decode_ARM_machine_flags for ARM
3512 (get_machine_name): Catch EM_AVR
3516 * binutils.texi: Remove optional `=' from long options that have
3517 an `=' in the argument.
3518 * objcopy.1: Here too. Remove extra space on discard-all.
3520 * binutils.texi (objcopy): Mention --redefine-sym.
3521 * objcopy.1: Here too.
3524 * objcopy.c (parse_flags): Split off flag names from error message
3525 gettext as they are not translated.
3526 (copy_main): Similarly split off option name for --add-section,
3527 --set-section-flags, --change-section-vma, --change-section-lma
3529 Some white space changes.
3532 * objcopy.c (struct redefine_node): New.
3533 (redefine_sym_list): New.
3534 (redefine_list_append): New.
3535 (lookup_sym_redefinition): New.
3536 (OPTION_REDEFINE_SYM): New.
3537 (copy_options): Add --redefine-sym option.
3538 (copy_usage): Mention it.
3539 (filter_symbols): Rename symbols on redefine_sym_list.
3540 (copy_object): Call filter_symbols if redefine_sym_list != NULL.
3541 (copy_main): Handle OPTION_REDEFINE_SYM.
3545 * readelf.c (process_symbol_table): Correctly read in symbol
3546 versioning information.
3550 * po/binutils.pot: Regenerate.
3552 * addr2line.c (usage): Restore translated part of bug string.
3553 * ar.c (usage): Likewise.
3554 * nlmconv.c (show_usage): Likewise.
3555 * nm.c (usage): Likewise.
3556 * objcopy.c (copy_usage): Likewise.
3557 (strip_usage): Likewise.
3558 * objdump.c (usage): Likewise.
3559 * readelf.c (usage): Likewise.
3560 * size.c (usage): Likewise.
3561 * strings.c (usage): Likewise.
3562 * windres.c (usage): Likewise.
3564 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3565 (DEP): Quote when passing vars to sub-make. Add warning
3567 (DEP1): Rewrite for "gcc -MM".
3568 (CLEANFILES): Add DEP2.
3569 Update dependencies.
3570 * Makefile.in: Regenerate.
3574 * Makefile.am (GENERATED_HFILES): Add rcparse.h
3575 (arparse.h): Depend on arparse.c
3576 (defparse.h, nlmheader.h, rcparse.h, sysinfo.h): Similarly.
3580 * size.c (usage): Use REPORT_BUGS_TO.
3584 * bucomm.h: #include "bin-bugs.h"
3585 * addr2line.c (usage): Use REPORT_BUGS_TO.
3586 * ar.c (usage): Likewise.
3587 * nlmconv.c (show_usage): Likewise.
3588 * nm.c (usage): Likewise.
3589 (OPTION_TARGET): Define.
3590 (long_options): Use OPTION_TARGET rather than 200.
3593 * objcopy.c (copy_usage): Use REPORT_BUGS_TO.
3594 (strip_usage): Likewise.
3595 * objdump.c (usage): Likewise.
3596 * readelf.c (usage): Likewise.
3597 * strings.c (usage): Likewise.
3598 * windres.c (usage): Likewise.
3602 * readelf.c: Include sys/types.h before sys/stat.h for ultrix.
3606 * rddbg.c (read_section_stabs_debugging_info): Catch out of range
3607 string offsets in corrupt stabs entries.
3611 * readelf.c: Include elf/avr.h
3612 (dump_relocations): Add EM_AVR case.
3616 * strings.1: Correct '-bytes' to '--bytes'.
3620 * Makefile.am (install-exec-local): Depend on
3621 install-binPROGRAMS for parallel make.
3622 * Makefile.in: Regenerated.
3627 * readelf.c (process_dynamic_segment): Add cast to make sure
3628 argument to %* is int.
3632 * configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
3636 * configure.in: Add arm-wince, mips-pe and sh-pe targets.
3637 * configure: Regenerate.
3639 * dlltool.c: Add support for sh-pe and mips-pe targets.
3640 * rescoff.c: Add support for sh-pe and mips-pe targets.
3644 * readelf.c (get_osabi_name): Handle ELFOSABI_LINUX.
3648 * readelf.c (process_symbol_table): Remove use of ELF_ST_OTHER.
3653 * readelf.c (process_version_sections): Add casts to make sure
3654 argument to %* is an int.
3655 (process_mips_specific): Add casts to make printf arguments match
3660 * objdump.c (dump_section_header): Change `opb' to unsigned.
3661 (find_symbol_for_address): Same here.
3662 (disassemble_data): And here. Change `addr_offset',
3663 `stop_offset', `nextstop_offset' to unsigned long.
3664 (dump_data): Change opb to unsigned.
3668 * resrc.c: Remove unmatched #if for cygwin.
3672 * binutils.texi: Document the change of flavor name from atpcs-special
3673 to special-atpcs to prevent name conflict in gdb.
3677 * objdump.c (show_line): Fix bug preventing printing of the very
3678 first line (line zero) of a file when interlisting source and
3679 assembly. Added option to print entire context from start of file
3680 when the first line from that file is encountered.
3684 * objdump.c (dump_section_header, find_symbol_for_address,
3685 show_line, disassemble_bytes, disassemble_data, dump_data):
3686 distinguish between octets and bytes.
3690 * nm.c (print_symbol_info_bsd): Use bfd_is_undefined_symclass to
3691 check to unresolved symbols.
3692 (print_symbol_info_sysv): Ditto.
3693 (print_symbol_info_posix): Ditto.
3695 * binutils.texi: Document new 'V' symclass flag for nm.
3699 * binutils.texi (objdump): Document new ARM specific
3700 disassembler options.
3702 * objdump.c (usage): Call disassembler_usage().
3706 * readelf.c (get_dynamic_flags): Return buff.
3707 (process_dynamic_segment): Don't pass error strings to printf
3709 (read_and_display_attr): Use lx and ld to print longs.
3710 (process_corefile_note_segment): Cast bfd_vma to unsigned long
3716 * readelf.c (get_osabi_name): Recognise ELFOSABI_ARM.
3720 * debug.c (debug_name_type): Return DEBUG_TYPE_NULL rather than
3722 (debug_tag_type): Here too.
3723 * ieee.c (ieee_builtin_type): And here.
3724 * stabs.c (parse_stab_type, parse_stab_array_type): And here.
3728 * readelf.c (get_machine_name): Change EM_S370 to return "IBM
3733 * readelf.c (get_dynamic_type): Remove DT_ENCODING.
3737 * readelf.c (get_note_type): Display NT_WIN32PSTATUS notes.
3741 * windres.c (long_options): Add --use-temp-file and
3742 --no-use-temp-file options.
3746 * windres.h: Update read_rc_file prototype.
3748 * resrc.c (cpp_temp_file): New static variable.
3749 (istream_type): New static variable.
3750 (close_pipe): Delete function.
3751 (run_cmd): New static function.
3752 (open_input_stream): New static function.
3753 (close_input_stream): New static function.
3754 (look_for_default): Handle DOS directory separator. Use
3755 open_input_stream instead of popen.
3756 (read_rc_file): Likewise.
3758 * binutils.texi: Document --use-temp-file, --no-use-temp-file
3763 * dlltool.c (create_compat_implib): New variable.
3764 (gen_exp_file): Use.
3765 (make_one_lib_file): Use.
3766 (long_options): Add --compat-implib option.
3770 * dllwrap.c (enum target_type): Rename MINGW32_TARGET to MINGW_TARGET.
3771 (main): Use. Don't look for "32" in cygwin and mingw target names.
3775 * binutils.texi: Document new, ARM specific disassembler
3776 command line switch "-M force-thumb".
3778 For older changes see ChangeLog-9899
3784 version-control: never