3 * po/fr.po: Updated French translation.
7 * objcopy.c: Remove unnecessary prototypes and casts.
8 * objdump.c: Remove unnecessary casts.
9 * readelf.c: Convert to C90. Remove unnecessary prototypes and casts.
10 (get_osabi_name): Move so we don't need a forward declaration.
15 * objdump.c (include_paths, include_path_count): New vars.
16 (usage): Describe --include.
17 (long_options): Add "include".
18 (add_include_path): New function.
19 (struct print_file_list): Make filename const. Add modname.
20 (try_print_file_open, update_source_path): New functions.
21 (show_line): Use them.
22 (main): Handle 'I' option. Don't check for NULL xrealloc arg.
26 * objdump.c: Remove unnecessary prototypes.
27 (disassemble_bytes): Add rel_offset parameter. Simplify reloc skipping
28 code, and print relocs when dump_dynamic_reloc_info.
29 (disassemble_data): Read and handle dynamic relocs. Correct reloc
30 skip code. Formatting.
31 (dump_bfd): Don't dump dynamic relocs when disassembling.
35 * MAINTAINERS: Remove self as M88k maintainer. Future M88k
36 maintenance defaults to the blanket write privilege maintainers.
40 * MAINTAINERS: Updated my email address.
44 * objdump.c: Update to ISO C.
48 * objdump.c (disassemble_data): Do not ignore sections without the
49 LOAD flag when disassemble_all is true. Only print a message
50 about disassembling a section if it contains some data.
52 * po/fr.po: Updated French translation.
56 * objcopy.c: Switch to ISO C. Remove debugging code accidentally
57 left in. Some formatting tidy ups.
61 * objdump.c: New command line option --debugging-tags.
62 * doc/binutils.texi: Document new command line option.
63 * prdbg.c: Code to print the debug info as tags compatible
65 * budbg.h: Adjust prototype.
66 * NEWS: Mention new switch
70 * objdump.c (main) :Accept multiple -M switch.
71 * doc/binutils.texi: Document that multiple -M switches are
72 accepted and that a single -M switch can contain comma
77 * objdump.c (main): Issue a warning message if multiple -M
80 * doc/binutils.texi (objdump): Update documentation about -M
85 * po/es.po: New Spanish translation.
89 * po/binutils.pot: Regenerate.
93 * dlltool.c (prefix_encode): Use a fixed length for alpha.
97 * dlltool.c (prefix_encode): New function. Encode temp file prefix
99 (dlltmp): Pass address of pointer being alloced or suffer neverending
101 (make_one_lib_file): Allocate enough space for new longer stub names.
102 (gen_lib_file): Ditto.
103 (main): Generate the temp file prefix from the pid if prefix was not
104 specified on the command line.
108 * readelf.c (get_data): Print (unsigned) hex values for size and
109 offset in error messages.
110 (process_section_headers): If the string table could not be
111 allocated, do not continue.
115 * readelf.c (dynamic_segment_ia64_val): Print address and newline
116 for sections by default. Comment fix.
120 * rcparse.y (res_text_field): New res_id variable.
121 (res_null_text): New static const struct res_id object,
122 with empty unicode name field.
123 (control): Pop parsing of optresidc up one level. Set
124 res_text_field to $2 except for controls which do not accept
125 a text field. Set res_text_field to res_null_text for the
126 special cases (viz. COMBOBOX, EDITTEXT, LISTBOX, SCROLLBAR).
127 (control_params): Adjust to use res_text_field rather
129 (COMBOBOX): Add comment about discrepency between documented
130 vs. observed default style.
131 * resrc.c (define_control): Make first param const.
132 * windres.h (define_control): Adjust prototype.
136 * objcopy.c (copy_object): Replace call to
137 bfd_create_gnu_debuglink_section with seperate calls to
138 bfd_add_gnu_debuglink_section and
139 bfd_fill_in_gnu_debuglink_section, seperated by a walk over the
144 * readelf.c (loadaddr): Variable removed.
145 (dynamic_info, version_info): Fix type long -> bfd_vma.
146 (program_headers): New variable.
147 (get_program_headers): New function, broken out of
148 process_program_headers.
149 (process_program_headers): Call it. Don't set `loadaddr'.
150 (slurp_ia64_unwind_table): Use get_program_headers.
151 (process_corefile_note_segments): Likewise.
152 (offset_from_vma): New function.
153 (process_relocs, process_dynamic_segment): Call that instead of
154 subtracting `loadaddr'.
155 (process_version_sections, process_symbol_table): Likewise.
156 (process_mips_specific): Likewise.
160 * objcopy (enum strip_action): Add STRIP_NONDEBUG.
161 (OPTION_ONLY_KEEP_DEBUG): New.
162 (strip_options): Add --only-keep-debug.
163 (copy_options): Likewise.
164 (is_strip_section): Invert return value if STRIP_NONDEBUG is
166 (copy_object): Do not copy private data when STRIP_NONDEBUG is
168 (setup_section): Likewise.
169 (strip_main): Handle --only-keep-debug.
170 (copy_main): Likewise.
171 * NEWS: Mention new switch
172 * doc/binutils.texi: Document new switch.
176 * NEWS: Correct spelling of "relocatable".
177 * objdump.c: Likewise.
178 * sysroff.info: Likewise.
182 * readelf.c (print_vma): When printing DEC_5 values, if the
183 number is bigger than 99999 switch to using hexadecimal
188 * objcopy.c (gnu_debuglink_filename): New variable.
189 (OPTION_ADD_GNU_DEBUGLINK): New switch
190 (copy_options): Describe --add-gnu-debuglink switch.
191 Mention that --strip-debug removes sections as well.
192 (is_strip_section): Process the sections removed and kept
193 lists before checking for debugging sections.
194 (add_redefine_syms_file): Make function static.
195 (copy_object): Use is_strip_section.
196 Check to see if a .gnu_debuglink section should be added. If
197 so, call bfd_add_gnu_debuglink.
198 (setup_section): Use is_strip_section.
199 (copy_section): Use is_strip_section.
200 (copy_main): Handle OPTION_ADD_GNU_DEBUGLINK.
201 * NEWS: Mention new objcopy switch.
202 * doc/binutils.texi: Document new switch.
206 * po/Make-in (DESTDIR): New.
207 (install-data-yes): Support $(DESTDIR).
208 (uninstall): Likewise.
212 * Makefile.in: Regenerate.
216 * readelf.c (get_segment_type): Handle PT_GNU_STACK.
220 * NEWS: Document the new BSD/POSIX single-character mapping for
221 .comment/.note sections.
226 * objcopy.c (redefine_list_append): Add an argument that
227 indicates the context from which this function is being
228 called. Change all callers.
229 (copy_options): Add a new option, --redefine-syms.
230 (copy_usage): Document new option.
231 (copy_main): Handle the --redefine-syms option.
232 * doc/binutils.text (objcopy): Document new option.
236 * readelf.c (byte_get_signed): New.
237 (get_encoded_value): New.
238 (display_debug_frames): Use it. Always pre-process opcodes.
242 * readelf.c (display_debug_frames): Print both registers
247 * configure.in: Accept i[3-7]86 variants. Escape '[]' for
249 * configure.in: Regenerate.
253 * objcopy.c: Treat identical src/dst file names as if only one
254 entered. One Windows creating an output file of the same name as
255 the input file will delete the input file before it is read.
259 * debug.c (debug_get_real_type): Extend test for circular debug
264 * configure.in (ALL_LINGUAS): Add zh_CN.
265 * configure: Regenerate.
266 * po/zh_CN.po: New file: Chinese (simplified) translation.
270 * MAINTAINERS: Update my mail address.
274 * readelf.c (dump_relocations): Enlarge the type field in wide
275 mode by one character.
279 * readelf.c (struct Frame_Chunk): Add cfa_exp.
280 (frame_display_row): Just print "exp" for cfa or register
281 defined by a location expression.
282 (display_debug_frames): Handle DW_CFA_def_cfa_expression,
283 DW_CFA_expression, DW_CFA_MIPS_advance_loc8.
287 * objdump.c (only): Change it to char **.
290 (disassemble_data): Check only as an array.
291 (dump_data): Likewise.
292 (dump_relocs): Likewise.
293 (main): Treat only as an array.
297 * doc/binutils.texi: Fix the documentation for the -fo option.
301 * readelf.c (get_machine_name) <EM_SH>: Amend return value
304 * readelf.c (decode_location_expression): Don't add a trailing ';'.
309 * windres.c (long_options): Move close to main, where it is used.
310 Add 'input' and 'output' long options.
311 (main): Accept "-fo" as an alias for "-o". This is for rc
313 * doc/binutils.texi: Mention that -fo is accepted as an alias for
314 -o, but discourage its use.
318 * windres.c (format_from_name): Make the exit on error
320 (main): Rename the -I option to -J. Introduce -I as a synonym
321 for --include-dir. For backwards compatibility also support the
322 old -I behaviour, but issue a deprecation warning.
323 * doc/binutils.texi: Rename -I to -J. Document the new behaviour
328 * readelf.c: Replace references to Mitsubishi M32R with
329 references to Renesas M32R.
333 * readelf.c: Replace occurrances of 'Hitachi' with 'Renesas'.
337 * doc/binutils.texi (objdump) [--debugging]: Suggest readelf -w
338 for debugging information types not supported by objdump.
342 * configure.in: Recognize canonical form of i[3-6]86-pe*.
343 * configure: Regenerate.
347 * readelf.c (display_debug_info): Apply RELA relocations on the
349 (byte_put_little_endian, byte_put_big_endian): New functions.
350 (byte_put): New variable.
351 (get_file_header): Initialize it.
355 * windres.c: Add -l for compatibility with wrc, and rc.
356 Use the short option as a key for long options that have
357 a synonymous short option.
358 * doc/binutils.texi: Added -l to the list of options.
362 * windres.c: Add -U for compatibility with wrc, rc, and cpp.
363 (main): Just pass the -U option down to the preprocessor.
364 * doc/binutils.texi: Added -U to the list of options.
368 * windres.c (usage): Report -r option.
369 (main): Ignore the -r option.
370 * doc/binutils.texi: Add -r to the list of options.
374 * MAINTAINERS: Add myself as Xtensa maintainer.
378 * readelf.c: Include "elf/xtensa.h".
379 (guess_is_rela): Add EM_XTENSA and EM_XTENSA_OLD to list of
380 targets that use RELA relocations.
381 (dump_relocations): Call elf_xtensa_reloc_type for
382 EM_XTENSA and EM_XTENSA_OLD.
383 (get_machine_name): Handle EM_XTENSA and EM_XTENSA_OLD.
387 * configure.in: Change "arm-pe*" to "arm-*-pe*". Similarly for
388 thumb-pe*, mcore-pe and mcore-*elf.
389 * configure: Regenerate.
393 * objdump.c (dump_data): Don't truncate the address to long; make
394 the width large enough, and uniform for all entries in a section.
398 * readelf.c: Include "libiberty.h".
399 (dynamic_relocations): New.
400 (process_relocs): Properly handle dynamic relocation.
401 (process_dynamic_segment): Fill relocation elements in
406 * readelf.c (read_and_display_attr, read_and_display_attr_value):
407 Add new arguments ``offset_size'' and ``dwarf_version''. Adjust
409 (display_debug_lines, display_debug_pubnames, display_debug_info)
410 (display_debug_aranges, display_debug_frames, read_and_display_attr)
411 (read_and_display_attr_value): Add 64-bit DWARF support.
415 * rcparse.y: Replace uses of 'optstringrc' with 'optresid'.
416 (optresid): Handle a resource id that can be a string or a number.
417 * resrc.c (define_control): Replace 'text' parameter with 'iid' a
419 (define_icon_control): Pass a struct res_id to define_control.
420 * windres.h (define_control): Change prototype.
424 * objcopy (OPTION_FORMATS_INFO): Define.
425 (strip_options): Add "info"/OPTION_FORMATS_INFO option.
426 (copy_options): Likewise.
427 (strip_usage): Add "--info" to usage.
428 (copy_usage): Likewise.
429 (strip_main): Declare formats_info. Iniatilize it to FALSE.
431 (copy_main). Likewise.
432 * doc/binutils.texi. Document the "--info" option for
434 * NEWS: Mention the new command line switch.
436 * objdump.c (endian_string): Move to bucomm.c.
437 (display_info): Likewise.
438 (display_target_list): Likewise.
439 (display_info_table): Likewise.
440 (display_target_tables): Likewise.
441 (main): Assign the return value of display_info to exit_status.
442 * bucomm.c: Include bfdver.h and libbfd.h
443 (display_target_list): Call bfd_nonfatal instead of nonfatal and
444 return 0 on a non-fatal error, 1 on success.
445 (display_info_table): Likewise.
446 * bucomm.h (display_info): Provide a prototype.
447 * Makefile.am (bucomm.o): Add dependencies on bfdver.h and
449 * Makefile.in: Regenerate.
453 * dlltool.c (gen_def_file): Put demangled name comments on
454 own line preceding export name.
458 * objdump.c (disassemble_data): Use disasm_info.fprintf_func not
459 printf for emitting new lines.
463 * nm.c (print_symbol_info_bsd): Print the symbol's size instead of
464 the symbol's value when --size-sort is used, unless -S is used.
465 doc/binutils.texi (--size-sort): For non-bsd formats both the
466 value and size of the symbols are displayed.
474 * MAINTAINERS: Remove Peter Targett as ARC maintainer.
478 * MAINTAINERS: Update my mail address.
482 * stabs.c (BYTES_IN_WORD): Remove definition.
483 * wrstabs.c (BYTES_IN_WORD): Likewise.
487 * nm.c (main): Print a warning message if --size-sort and
488 --undefined-only are used together.
492 * nm.c (print_symbol): Remove check for undefined_only.
496 * po/da.po: Installed latest translation.
500 * README: Update binutils references to 2.13.
501 Add paragraph about using --disable-nls.
505 * doc/binutils.texi (nm --size-sort): Update.
509 * MAINTAINERS: Update email address.
513 * readelf.c (get_ia64_dynamic_type): New function.
514 (dynamic_segment_ia64_val): New function.
515 (get_dynamic_type): If machine type is EM_IA_64 call
516 get_ia64_dynamic_val.
517 (get_ia64_section_type_name): Handle sections with types in the
518 SHT_IA_64_LOPSREG to SHT_IA_64_HIPSREG range.
519 (get_dynamic_flags): If machine type is EM_IA_64 call
520 dynamic_segment_ia64_val.
524 * doc/binutils.texi: Fix typos and obvious texinfo mistakes. Make
525 section title capitalization more consistent. Update descriptions
526 of various options to be consistent with the code. Fix errors and
527 incomplete list in the description of c++filt format options. Remove
528 information about the linker. Change to be more polite about poor
529 bug reports. Replace FDL appendix with include of fdl.texi.
530 * doc/fdl.texi: New file.
534 * objcopy.c (filter_symbols): Fix compilation problems with
539 * rclex.l (handle_quotes): Fix minor formatting problems introduced in
544 * rclex.l (handle_quotes): Handle strings spanning more than one line.
548 * nm.c (usage): Add `java' and `gnat' demangle styles and make
550 * objdump.c (usage): Ditto. Also fix some typos.
552 * readelf.c (parse_args): Include 'H' option in call to getopt_long.
554 * debug.c (debug_record_variable): Handle global register variables.
556 * stabs.c (parse_stab): For N_SLINE only include
557 function_start_offset if the symbol is within a function;
558 otherwise, the value is absolute.
562 * readelf.c (decode_ARM_machine_flags): Handle the
563 EF_ARM_MAVERICK_FLOAT flag.
567 * rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to
568 long and use %ld in printf format.
572 * readelf.c (dump_relocations): Reorder the r_info field for
573 little-endian mips elf64. Move #ifdef BFD64 to cover the new code.
577 * readelf.c (display_debug_loc): Skip address base changes.
581 * readelf.c (get_osabi_name): Handle ELFOSABI_AROS, ELFOSABI_OPENVMS
586 * readelf.c: Include elf/ppc64.h.
587 (dump_relocations <EM_PPC64>): Use elf_ppc64_reloc_type.
588 * Makefile.am: Run "make dep-am".
589 * Makefile.in: Regenerate.
593 * readelf.c (guess_is_rela): Handle EM_IQ2000.
594 (get_machine_name): Likewise.
595 (dump_relocations): Likewise.
596 * NEWS: Mention IQ2000 support.
600 * readelf.c (get_machine_flags): Handle E_MIPS_ARCH_32R2.
604 * doc/binutils.texi (objdump): Note MIPS HWR (Hardware Register)
605 changes in MIPS -M options.
609 * Makefile.am: Add msp430 target.
610 * Makefile.in: Regenerate.
611 * readelf.c: Add support for msp430 target.
615 * doc/binutils.texi (objdump): Document MIPS -M options.
619 * readelf.c (main): Reset dump request after each file.
623 * nlmconv.c (main): Pass TRUE as third argument to
624 bfd_arch_get_compatible.
628 * strings.c (isgraphic): Replace definition with STRING_ISGRAPHIC
629 macro. Handle 'S' encoding, accepting 8-bit characters.
630 (main): Parse 'S' encoding.
631 (get_char): Accept 'S' encoding.
632 (print_strings): Use STRING_ISGRAPHIC.
633 (usage): Document support of 'S' encoding.
634 * doc/binutils.texi: Document support of 'S' encoding/
635 * NEWS: Mention new feature.
639 * README <building ar>: Don't use libibery's needed_list or
640 required_list, instead link libiberty/*.o.
644 * doc/binutils.texi: Fix typos.
648 * doc/binutils.texi: Add missing parenthesis.
652 * objcopy.c: Add --prefix-symbols=<prefix> option to rename all
653 symbols by adding the given prefix to the begining of the symbol
654 name. This is useful to provide name space seperation regardless
655 of how the object file was created. Added --prefix-sections=
656 <prefix> and --prefix-alloc-sections=<prefix> options to rename all
657 sections (or all sections with the alloc flag set) by adding the given
658 prefix to the begining of the symbol name.
659 * NEWS: Mention this new feature.
660 * doc/binutils.texi: Document this new feature.
664 * dlltool.c (mcore_elf_gen_out_file): Replace all occurrences of
665 dyn_string_append with dyn_string_append_cstr.
667 * emul_aix.c (ar_emul_aix_create): Remove unused function.
671 * readelf.h (get_TAG_name, get_AT_name,
672 read_and_display_attr_value): Add support for UPC extensions to
674 * NEWS: Mention this new support.
678 * NEWS: Mention that bfd no longer declares a "boolean" type.
682 * readelf.c (process_program_headers): When setting loadaddr, don't
683 assume segment size is 4k. Use p_align instead.
684 (loadaddr): Change from int to long.
685 (dynamic_addr, dynamic_info, version_info): Likewise.
686 (process_dynamic_segment <syminsz>): Likewise.
687 (process_dynamic_segment): Adjust print format string.
688 (rela_addr, rela_size): Delete.
689 (process_relocs): Formatting.
693 * configure.in (OBJDUMP_DEFS): Define SKIP_ZEROES as 16 for IA-64.
694 * configure: Regenerate.
698 * MAINTAINERS: Change e-mail address back to airs.com.
702 * MAINTAINERS: Add self.
706 * addr2line.c, ar.c, arsup.c, binemul.c, binemul.h, bucomm.c, bucomm.h,
707 budbg.h, debug.c, debug.h, dlltool.c, emul_aix.c, ieee.c, nlmconv.c,
708 nlmconv.h, nlmheader.y, nm.c, objcopy.c, objdump.c, prdbg.c, rdcoff.c,
709 rddbg.c, readelf.c, rename.c, size.c, stabs.c, strings.c,
710 unwind-ia64.h, wrstabs.c: Replace boolean with bfd_boolean, true with
711 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars
712 with TRUE/FALSE. Formatting.
716 * readelf.c Replace occurrences of Elf32_Internal_* and
717 Elf64_Internal_* with Elf_Internal_*.
718 (slurp_rel_relocs): Change Elf_Internal_Rel to Elf_Internal_Rela.
719 Zero r_addend fields.
720 (dump_relocations): Remove relas variable, change Elf_Internal_Rel to
725 * size.c (usage): Fix typo describing switch for hex format.
729 * testsuite/binutils-all/objcopy.exp: Disable tic4x from test
730 * testsuite/binutils-all/objdump.exp: Setup proper values for tic4x
735 * readelf.c (process_program_headers): Add comment about return
736 value. Ensure that 0 is returned if the headers are not loaded.
737 (process_file): If process_section_headers failed to load the
738 headers disable any tests that rely upon them. Similarly for
739 process_program_headers.
743 * po/da.po: Updated Danish translation.
747 * rddbg.c (read_section_stabs_debugging_info): Also recognize
748 LC_SYMTAB.stab/LC_SYMTAB.stabstr as a valid pair of sections.
752 * MAINTAINERS: Reinstate DJ Delorie as COFF maintainer. Drop COFF from
757 * MAINTAINERS: Replace DJ Delorie as PE/COFF maintainer.
761 * configure.in (ALL_LINGUAS): Add 'da'.
762 * configure: Regenerate.
763 * po/da.po: New Danish translation.
765 * readelf.c (get_symbol_index_type): Revert part of previous
766 patch: Display unknown symbol types in decimal, not hex.
770 * dlltool.c (add_excludes): Don't prefix excluded fastcall
771 symbols with underscore.
772 (xlate): Ignore add_underscore for decorated fastcall symbols.
776 * deflex.l: Accept '@' as first character of an ID.
777 * dlltool.c (gen_exp_file): Use existing '@' prefix rather than
778 ASM_PREFIX for fastcall symbols.
779 (scan_drectve_symbols): Handle fastcall symbols when generating
780 undecorated aliases for symbols in drectve section.
781 (scan_filtered_symbols): Likewise, with export-all.
782 (xlate): Likewise, with --kill-at.
783 (make_imp_label): New function to handle fastcall symbols
785 (make_one_lib_file): Use make_imp_label instead of make_label
790 * MAINTAINERS: Add self as TIC4X maintainer.
794 * readelf.c (get_symbol_index_type): Add hex number to
795 PROCESSOR-specific, OS-specific, reserved and unknown symbol
800 * readelf.c (byte_get_little_endian): Comment typo fix.
801 (print_symbol): Constify "symbol" arg. Don't pass "symbol" to printf
802 as the format string.
803 (dump_relocations): Correct section sym names.
804 (process_section_headers): Clear symtab_shndx_hdr.
805 (read_and_display_attr_value): Don't pass indirect string to printf
806 as the format string.
807 (display_debug_frames): Indicate when zero terminator found. Decode
808 DW_EH_PE_pcrel addresses.
812 * configure.in: Define SKIP_ZEROES as 32 for tic4x target in
813 order to ensure proper disassembly of the valid 0-value opcode.
814 * configure: Regenerate.
815 * aclocal.m4: Regenerate.
816 * config.in: Regenerate.
817 * configure.in: Regenerate.
818 * doc/Makefile.in: Regenerate.
819 * po/binutils.pot: Regenerate.
823 * MAINTAINERS: Add self as SH maintainer.
827 * doc/binutils.texi (objdump): Document -z and move the entry for
828 --disassemble-zeroes to the end of the options section (for `z').
832 * MAINTAINERS: Discontinue Hans-Peter Nilsson as SH maintainer.
836 * objdump.c (dump_data): Correct addr_offset for opb != 1.
840 * bucomm.c (list_supported_targets): Use bfd_target_list.
842 * objcopy.c (copy_file): Report ambiguous bfd_object matches, and
843 other object errors in preference to bfd_core errors.
847 * Makefile.am: Run "make dep-am".
848 * objdump.c: #include "bfdver.h".
849 * version.c: Likewise.
850 * Makefile.in: Regenerate.
851 * config.in: Regenerate.
852 * configure: Regenerate.
853 * po/POTFILES.in: Regenerate.
857 * readelf.c (display_debug_info): Ignore empty .rela.debug_info
858 sections. Allow relocations against the absolute symbol. Don't
859 use the value in compunit.cu_abbrev_offset if we found a RELA
864 * addr2line.c (slurp_symtab): Read in dynamic symbols if no
865 ordinary ones are available.
869 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_4120,
870 E_MIPS_MACH_5400 and E_MIPS_MACH_5500.
874 * Makefile.am (CFILES): Add cxxfilt.c.
875 (cxxfilt_SOURCES): Now just cxxfilt.c $(BULIBS).
876 (cxxfilt_LDADD): Delete.
877 Remove all references to underscore.c.
879 * configure.in: Define TARGET_PREPENDS_UNDERSCORE in
880 config.h from $UNDERSCORE, rather than AC_SUBSTing it.
881 * binutils/cxxfilt.c: Moved here from gcc/cp, minor
882 adjustments to fit into binutils framework.
883 * configure, config.in, Makefile.in, doc/Makefile.in: Regenerate.
887 * readelf.c (decode_location_expression): DW_OP_calli -> DW_OP_call_ref
888 Handle DW_OP_GNU_push_tls_address.
892 * po/tr.po: Updated Turkish translation.
896 * MAINTAINERS: Add Ben Elliston as a maintainer for configure and
897 testsuite changes. Add paragraphs about testsuite and config
902 * readelf.c (get_machine_flags): Remove redundant reference to
907 * objdump.c (dump_bfd): Restore lines accidentally deleted in
912 * objdump.c (dump_headers): Add printing of HAS_LOAD_PAGE flag.
913 (dump_bfd_header): Likewise.
917 * nm.c: Revert last change.
921 * nm.c (display_rel_file): Don't report "no symbols" as an error.
922 * objdump.c (slurp_symtab): Likewise.
923 (slurp_dynamic_symtab): Likewise.
924 (dump_symbols): Likewise. Do print "no symbols" to stdout.
928 * MAINTAINERS: Change my mailing address.
932 * MAINTAINERS: Add Dave Anglin as HPPA co-maintainer.
936 * MAINTAINERS: Add Jeff Law as (maintainance) maintainer for
941 * readelf.c (parse_args): Change debug_dump_opt to static.
945 * stabs.c (parse_stab_argtype): Pass length of physname to
946 stab_demangle_argtypes.
947 (stab_demangle_argtypes): Add new parameter - length of physname.
948 Pass length of physname on to stab_demangle_prefix.
949 (stab_demangle_prefix): Add new parameter - length of physname.
950 Use length of physname (if supplied) to compute end of function
955 * readelf.c: Include elf/i370.h.
956 (dump_relocations): Handle EM_S370.
957 (dynamic_segment_parisc_val): Print \n.
958 (process_dynamic_segment <DT_BIND_NOW>): Here too.
962 * nm.c (usage): Change 'gnu-new-abi' to 'gnu-v3'.
963 * objdump.c (usage): Likewise.
964 * doc/binutils.texi: Likewise.
968 * rcparse.y (acc_entry): Don't warn about ALT use with
973 * objcopy.c (copy_object): Don't warn about the unsupported
974 architecture unless the input target is defaulted or the
975 output architecture is different from the input.
979 * po/sv.po: Updated Swedish translation.
983 * prdbg.c (pr_fix_visibility): Remove assert.
987 * addr2line.c (process_file): Rename parameter 'filename' to
988 'file_name' in order to avoid shadowing global symbol of the
994 * readelf.c (OPTION_DEBUG_DUMP): Define.
996 (usage): Update help.
997 (parse_args): Handle --debug-dump separately from -w.
998 * doc/binutils.texi (readelf): Update documentation.
1002 * po/es.po: Updated Spanish translation.
1003 * po/fr.po: Updated French translation.
1007 * po/es.po: Updated Spanish translation.
1011 * Makefile.am: Run "make dep-am".
1012 * Makefile.in: Regenerate.
1016 * po/fr.po: Updated French translation.
1020 * doc/binutils.texi (addr2line <man synopsis>): Correct brackets.
1024 * budemang.c: Include config.h and string.h/strings.h.
1029 * readelf.c: Include "elf/ip2k.h".
1030 (guess_is_rela): Add support for EM_IP2K and EM_IP2K_OLD.
1031 (dump_relocations): Likewise.
1032 (get_machine_name): Likewise.
1033 * NEWS: Mention IP2K support.
1037 * NEWS: Add 'Changes in 2.13'.
1041 * readelf.c (get_dynamic_type): Handle DT_GNU_PRELINKED,
1042 DT_GNU_CONFLICT* and DT_GNU_LIBLISZ*.
1043 (get_section_type_name): Handle SHT_GNU_LIBLIST.
1044 (process_dynamic_segment): Handle DT_GNU_CONFLICTSZ,
1045 DT_GNU_LIBLISTSZ and DT_GNU_PRELINKED.
1046 (process_gnu_liblist): New.
1047 (process_file): Call it.
1051 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1052 * Makefile.in: Regenerate.
1056 * budemang.c: New file, "demangle" function.
1057 * budemang.h: New file.
1058 * addr2line.c (translate_addresses): Use "demangle".
1059 * nm.c (print_symname): Likewise.
1060 * objdump.c (objdump_print_symname): Likewise.
1061 (dump_symbols): Likewise. Also, don't use bfd_asymbol_name macro
1062 here since that obfuscates.
1063 * rdcoff.c: Don't #include demangle.h.
1064 * Makefile.am (CFILES): Add budemang.c, emul_aix.c,
1065 emul_vanilla.c. Remove emul_$(EMULATION).c. Sort.
1066 (HFILES): Add budemang.h. Sort.
1067 (nm_new_SOURCES, objdump_SOURCES, addr2line_SOURCES): Add budemang.c.
1069 * Makefile.in: Regenerate.
1073 * readelf.c: Include "elf/vax.h".
1074 (guess_is_rela): Move EM_VAX from unknown to RELA case.
1075 (dump_relocations): Handle VAX relocations.
1076 (get_machine_flags): Handle VAX machine flags.
1080 * readelf.c (dump_relocations): Handle 68HC11/68HC12 relocations.
1084 * MAINTAINERS: Remove Tom Rix from d10v and pcc maintainerships.
1088 * nm.c (print_symname): When demangling, strip leading dots from
1089 symbol names to avoid confusing the demangler.
1093 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1094 * Makefile.in: Regenerated.
1098 * configure.in: Quote bu_cv_have_fopen64.
1099 * configure: Regenerate.
1103 * configure.in: Check for strcoll.
1104 * configure: Regenerate.
1105 * config.in: Regenerate.
1106 * nm.c (main): Set locale for LC_COLLATE category.
1107 (non_numeric_forward): Use strcoll if available.
1111 * MAINTAINERS: Add self as fr30 and frv maintainer.
1115 * nm.c: Include "elf/common.h".
1116 (extended_symbol_info): Add elfinfo, a pointer to
1118 (SYM_SIZE): Use elfinfo if it is not NULL.
1119 (get_symbol_type): New function.
1120 (display_archive): Set print_width for each archive member.
1121 (display_file): Likewise.
1122 (display_rel_file): Don't set print_width here.
1123 (print_object_filename_sysv): Handle print_width.
1124 (print_archive_member_sysv): Likewise.
1125 (print_symbols): Pass (bfd_vma) 0 to print_symbol.
1126 (print_symbol): Set the elfinfo field in extended_symbol_info
1128 (print_object_filename_sysv): Fix the output format.
1129 (print_symbol_info_sysv): Print type and section for ELF.
1133 * nm.c (print_size_symbols): Remove assignment, which makes
1134 the symbol's size equal to its value when --size-sort is
1139 From Catherine Moore:
1140 * readelf.c (elf/frv.h): #include it.
1141 (guess_is_rela): Support EM_CYGNUS_FRV.
1142 (dump_relocations): Ditto.
1143 (get_machine_name): Ditto.
1144 * Makefile.am (readelf.o): add dependency on $(INCDIR)/elf/frv.h.
1148 * readelf.c (get_file_header): Only read the first section header if
1149 e_shoff is non-zero.
1153 * nm.c (print_size): New variable. Initialize to 0.
1154 (long_options): Add 'S'/"print-size".
1156 (print_symbol_info_bsd): Print size only if print_size is not
1159 * doc/binutils.texi: Document -S/--print-size.
1163 * nm.c (struct extended_symbol_info): New strcuture: Add the size
1164 of the symbols to the information provided by the symbol_info
1166 (print_symbols): Pass the symbol size to print_symbol.
1167 (print_size_symbols): Pass the symbol size to print_symbol.
1168 (print_symbol): Extra argument: The size of the symbol. Store
1169 this in the extended_symbol_info structure.
1170 (print_symbol_info): Change type of info parameter to
1171 extended_symbol_info. Display the size, if known.
1172 (print_symbol_info_posix): Likewise.
1173 (print_symbol_info_sysv): Likewise.
1177 * Makefile.am: Run "make dep-am".
1178 * Makefile.in: Regenerate.
1179 * doc/Makefile.in: Regnerate.
1181 * bucomm.c: Replace CONST with const.
1183 * objdump.c: Likewise.
1187 * readelf.c (DW_CFA_GNU_args_size): Don't define.
1188 (DW_CFA_GNU_negative_offset_extended): Likewise.
1189 (DW_CFA_GNU_window_save): Likewise.
1190 (display_debug_frames): Handle DW_CFA_offset_extended_sf,
1191 DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
1195 * nm.c: When computing size of symbols for an ELF target use the
1196 internal size field.
1200 * testsuite/binutils-all/objcopy.exp: clear xfail for
1202 * testsuite/binutils-all/hppa/objdump.exp: Return if
1207 * objcopy.c (copy_section): Don't copy SEC_GROUP sections.
1211 * objdump.c: Fix formatting.
1215 * MAINTAINERS: Add self as M68k maintainer.
1219 * readelf.c: Modified/Added DLX elf support.
1223 * arsup.c: Fix formatting.
1224 * debug.c (debug_record_label): Add missing colon to error
1226 * ieee.c (parse_ieee_ty): Fix spelling typo.
1227 * readelf.c (process_program_headers): Remove English assumption
1228 about making a plural word.
1229 (process_section_headers): Likewise.
1230 (process_relocs): Allow quotes to be translated.
1231 (process_unwind): Likewise,
1232 (process_mips_specific): Improve error message.
1233 (get_note_type): Fix spelling typo.
1235 * configure.in (ALL_LINGUAS): Add sv
1236 * po/sv.po: New file.
1240 * unwind-ia64.c (unw_print_brmask): Don't use sprintf.
1241 (unw_print_grmask): Likewise.
1242 (unw_print_frmask): Likewise.
1246 * arsup.c: Remove ARGSUSED.
1247 * debug.c: Likewise.
1249 * nlmconv.c: Likewise.
1250 * prdbg.c: Likewise.
1251 * stabs.c: Likewise.
1252 * wrstabs.c: Likewise.
1256 * arlex.l: Use #include "" instead of <> for local header files.
1257 * coffdump.c: Likewise.
1258 * coffgrok.c: Likewise.
1259 * nlmconv.c: Likewise.
1260 * nlmheader.y: Likewise.
1261 * srconv.c: Likewise.
1262 * strings.c: Likewise.
1263 * sysdump.c: Likewise.
1264 * unwind-ia64.h: Likewise.
1265 * windres.h: Likewise.
1266 * winduni.h: Likewise.
1270 * MAINTAINERS: Add self as the d10v maintainer.
1274 * configure.in: Builds dlltool for i386-netbsdpe.
1275 * configure: Regenerate.
1279 * size.c: Fix formatting.
1280 * srconv.c: Likewise.
1281 * stabs.c: Likewise.
1282 * sysdump.c: Likewise.
1283 * unwind-ia64.c: Likewise.
1284 * wrstabs.c: Likewise.
1288 * readelf.c (get_segment_type): Add PT_TLS.
1289 (get_elf_section_flags): Add SHF_TLS.
1290 (get_dynamic_flags): Optimize. Add DF_STATIC_TLS.
1291 (process_dynamic_segment): Use puts instead of printf.
1292 (get_symbol_type): Support STT_TLS.
1293 * objdump.c (dump_section_header): Remove SEC_CONSTRUCTOR_TEXT,
1294 SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS.
1295 Add SEC_THREAD_LOCAL.
1299 * rdcoff.c: Fix formatting.
1300 * rddbg.c: Likewise.
1301 * readelf.c: Likewise.
1302 * rename.c: Likewise.
1303 * resbin.c: Likewise.
1304 * resrc.c: Likewise.
1305 * resres.c: Likewise.
1309 * filemode.c: Fix formatting.
1311 * is-ranlib.c: Likewise.
1312 * is-strip.c: Likewise.
1313 * maybe-ranlib.c: Likewise.
1314 * maybe-strip.c: Likewise.
1315 * nlmconv.c: Likewise.
1317 * not-ranlib.c: Likewise.
1318 * not-strip.c: Likewise.
1319 * objcopy.c: Likewise.
1320 * objdump.c: Likewise.
1324 * objdump.c (dump_headers): Fix output formatting for ELF32
1325 architectures in a BFD64 enabled toolchain.
1329 * debug.c: Fix formatting.
1330 * debug.h: Likewise.
1331 * dlltool.c: Likewise.
1332 * dllwrap.c: Likewise.
1333 * emul_aix.c: Likewise.
1334 * emul_vanilla.c: Likewise.
1338 * addr2line.c: Fix formatting.
1340 * arsup.c: Likewise.
1341 * arsup.h: Likewise.
1342 * binemul.c: Likewise.
1343 * binemul.h: Likewise.
1344 * bucomm.c: Likewise.
1345 * coffdump.c: Likewise.
1346 * coffgrok.c: Likewise.
1347 * coffgrok.h: Likewise.
1351 * MAINTAINERS: Add myself as the second AVR port maintainer.
1355 * MAINTAINERS: Update my email address.
1359 * MAINTAINERS: Add Jason Thorpe as VAX maintainer.
1363 * configure.in: Replace `*pe' with `pe' throughout.
1364 * configure: Regenerate.
1368 * Makefile.am: Honour DESTDIR.
1369 * Makefile.in: Regenerate.
1373 * dlltool.c (process_def_file): Add missing prototype.
1374 (new_directive, assemble_file, main): Likewise.
1375 (process_def_file, new_directive): Make static.
1376 (inform): Rewrite using VA_FIXEDARG.
1377 * dllwrap.c (mybasename): Add missing prototype.
1378 (strhash, main): Likewise.
1379 (inform): Rewrite using VA_FIXEDARG.
1381 (cleanup_and_exit): Use old style function definition.
1382 (strhash): Likewise.
1383 * windres.c (define_resource): Use one memset to clear all of
1384 struct res_resource.
1386 * rcparse.y: Remove newcmd rule. Move rcparse_discard_strings
1387 call to rules that need no lookahead. Check for no lookahead.
1391 * rclex.l (get_string): Correct "strings" list handling.
1392 * resrc.c (read_rc_file): Discard strings.
1396 * ar.c (replace_members): Remove unused var. Formatting fix.
1397 * binemul.c (ar_emul_default_parse_arg): Add ATTRIBUTE_UNUSED.
1399 * MAINTAINERS: Sort port maintainers by CPU.
1403 * size.c (display_archive): Add last_arfile and code to close archives.
1407 * nm.c (print_symbol): Check returned filename from
1408 bfd_find_nearest_line is non-NULL.
1412 * readelf.c (get_AT_name): Handle DW_AT_GNU_vector.
1416 * MAINTAINERS: Changed my email address.
1420 * arparse.y: Fix syntax warning.
1424 * readelf.c (fetch_location_list): Remove unused function.
1426 * readelf.c (process_corefile_note_segment): Catch corrupt notes
1427 and display a warning message, then exit the loop.
1429 * rcparse.y: Set MEMFLAG_DISCARDABLE by default.
1433 * resrc.c (write_rc_dialog): If charset is non-default value
1434 display all of the DIALOGEX parameters.
1438 * rcparse.y: Allow two to five parameter in FONT statement of
1440 * resbin.c (bin_to_res_dialog): Fixed read/write code for dialogex
1442 (res_to_bin_dialog): Likewise.
1443 * windres.h: Added misssing charset variable to dialog_ex
1448 * rcparse.y: Set MEMFLAG_PURE by default.
1452 * rcparse.y: CLASS definitions in DIALOG resources
1454 Fix typo in BEDIT warning.
1455 Don't add default dialog style when explicit style specified.
1456 Add WS_CAPTION dialog style if CAPTION is specified.
1458 * rclex.l (handle_quotes): "\xhex" encoding in strings corrected.
1459 (handle_quotes) "\a" escape (used for right justified key
1460 definitions in menus) is encodes as binary 8.
1462 * resrc.c (write_rc_dialog): Print style even if it is 0.
1463 (write_rc_directory): Fix overlooked sublang shift bug.
1464 (bin_to_res_dialog): Don't print empty dialog caption.
1466 * resbin.c (bin_to_res_dialog): Use signature to identify
1469 * windres.c (main): Set default LANGUAGE to english/us.
1473 * resrc.c: print CLASS names in quotes
1477 * MAINTAINERS: Update my email address.
1481 * dep-in.sed: Cope with absolute paths.
1482 * Makefile.am (dep.sed): Subst TOPDIR.
1484 * Makefile.in: Regenerate.
1488 * MAINTAINERS: Update my email address.
1492 * Makefile.am: Run "make dep-am".
1493 * Makefile.in: Regenerate.
1494 * doc/Makefile.in: Regenerate.
1495 * po/POTFILES.in: Regenerate.
1496 * aclocal.m4: Regenerate.
1497 * config.in: Regenerate.
1498 * configure: Regenerate.
1502 * readelf.c: Add support for displaying dwarf2 location lists.
1503 (do_debug_loc, debug_loc_section, debug_loc_size): New.
1504 (parse_args): Use 'O' as shorthand for displaying location list
1506 (process_section_headers): Handle debug_loc as well.
1507 (load_debug_loc): New.
1508 (free_debug_loc): New.
1509 (fetch_location_list): New.
1510 (display_debug_loc): New.
1511 (display_debug_info): Call load_debug_loc and free_debug_loc.
1512 (debug_displays): We can display .debug_loc now, too.
1513 (usage): Update usage string.
1514 (read_and_display_attr_value): Note location lists, but don't
1515 display them inline.
1519 * Makefile.am: Add binutils emulation support.
1520 * configure.in: Same.
1521 * configure.tgt: New file. Same.
1522 * ar.c (main): Use ar_emul_parse_arg.
1523 (usage): Use ar_emul_usage.
1524 (replace_members): Use ar_emul_replace, ar_emul_append.
1525 * binemul.c: New file. Define the binutils emulation
1526 layer. Define default methods.
1527 * binemul.h: New file. Binutils emulation layer header file.
1528 * emul_aix.c: New file. AIX binutils emulation.
1529 * emul_vanilla.c: New file. Default binutils emulation.
1530 * Makefile.in: Regenerate.
1535 * po/fr.po: Updated version.
1539 * po/fr.po: Updated version.
1543 * README: Update some version numbers.
1547 * doc/binutils.texi (Target Selection): Fix LD crossreferences.
1548 (Architecture Selection): Likewise.
1552 * dlltool.c (gen_exp_file): Take into account --kill-at (-k) while
1553 generating .exp file.
1557 * readelf.c (dump_relocations): Fix typo.
1561 * NEWS: Mark 2.12 branch.
1565 * readelf.c (dump_relocations): Display 2nd and 3rd reloc
1566 types for 64-bit MIPS. Narrow some fields for 80-char
1568 (dump_relocations): Change spelling from 'unrecognised'
1570 (decode_ARM_machine_flags): Likewise.
1571 (parse_args): Likewise.
1572 (read_and_display_attr_value): Likewise.
1573 (display_debug_section): Likewise.
1577 * NEWS: Mention support for MMIX.
1581 * readelf.c (get_machine_flags): Recognize EF_M68000.
1585 * MAINTAINERS: Added self as MN10300 co-maintainer.
1589 * readelf.c (get_ppc64_dynamic_type): Handle DT_PPC64_OPD and
1594 * MAINTAINERS: List myself as branch maintainer.
1598 * configure: Regenerate.
1599 * objcopy.c: Update copyright date.
1600 * doc/Makefile.in: Regenerate.
1604 * nlmconv.c: Back out localtime PARAMS change.
1608 * objcopy.c (MKDIR): Define.
1609 (copy_archive): Make name_list.name const. Use MKDIR.
1610 Handle duplicate files in archives by making more temp dirs.
1614 * coffdump.c: Include "getopt.h" after "bucomm.h"
1615 so that macros are defined correctly.
1616 * nlmconv.c: Add PARAMS ((const time_t *)) to localtime
1617 prototype. Prototype main.
1618 * nlmheader.y: Add PARAMS ((int)) to strerror prototype.
1622 * MAINTAINERS: Added self as SH co-maintainer.
1626 * po/tr.po: Updated translation.
1630 * Makefile.am: Run "make dep-am"
1631 * Makefile.in: Regenerate.
1635 * nm.c (print_value): Mark abfd unused.
1639 * unwind-ia64.c (unw_decoder): Change second argument
1640 to unsigned int, to match function prototypes.
1644 * objdump.c: Include "getopt.h" after "bucomm.h" so that
1645 __GNU_LIBRARY__ will be defined.
1650 * configure: Regenerated.
1654 * doc/Makefile.am (install): Depend on install-info.
1655 * doc/Makefile.in: Regenerate.
1659 * objcopy.c (strip_usage): Document -d as an alias
1662 * size.c (usage): Document [-t | --totals] options.
1663 (long_options): Add --totals option.
1664 (main): If the [-t | --totals] option is specified and
1665 the output format is Berkeley-style, print the total
1666 text, data, and bss sizes of all objects listed.
1667 (print_berkeley_format): If the [-t | --totals] option
1668 is specified, track the total text, data, and bss
1670 * doc/binutils.texi (size): Document [-t | --totals] options.
1671 (strip): Document -d as an alias for --strip-debug.
1672 * NEWS: Mention new feature of size.
1676 * po/fr.po: Updated version.
1677 * po/es.po: Updated version.
1681 * addr2line.c (usage): Update text to provide verbose
1682 description of the command line options.
1683 * ar.c (usage): Update text to provide verbose
1684 description of the command line options.
1685 (main): Accept -h and -H when running as ranlib.
1686 * coffdump.c (show_usage): Update text to provide verbose
1687 description of the command line options.
1688 * dlltool.c (main): Accept -H as an alias for --help.
1689 * nlmconv.c (show_usage): Update text to provide verbose
1690 description of the command line options.
1691 * nm.c (usage): Replace OPTIONS with option(s).
1692 (main): Accept -H as an alias for --help.
1693 * objcopy.c (strip_main): Accept -H as an alias for --help.
1694 * objdump.c (main): Accept -v as an alias for --verbose.
1695 * readelf.c (usage): Adjust format to match style used in
1697 * size.c (usage): Update text to provide verbose description
1698 of the command line options.
1699 (main): Accept -v, -h and -H as command line options.
1700 * srconv.c (show_usage): Update text to provide verbose
1701 description of the command line options.
1702 * strings.c (main): Accept -H and -v as command line options.
1703 (usage): Update text to provide verbose description of the
1704 command line options.
1705 * sysdump.c (show_usage): Update text to provide verbose
1706 description of the command line options.
1707 * windres.c (usage): Adjust format to match style used in
1710 * coffdump.c: Fix formatting.
1711 * nlmconv.c: Fix formatting.
1712 * srconv.c: Fix formatting.
1713 * sysdump.c: Fix formatting.
1717 * Makefile.am: Run "make dep-am".
1718 * Makefile.in: Regenerate.
1722 * version.c (print_version): Update year.
1726 * readelf.c (get_machine_name): Handle EM_PPC64.
1727 (guess_is_rela): Here too.
1731 * po/binutils.pot: Regenerate.
1732 * po/fr.po: Regenerate.
1733 * po/tr.po: Regenerate.
1737 * po/tr.po: Import new version.
1741 * readelf.c (get_ppc64_dynamic_type): New.
1742 (get_dynamic_type): Call it.
1746 * objcopy.c (copy_usage): Use "options" instead of "switches".
1747 (strip_usage): Use "options" instead of "switches".
1748 * doc/binutils.texi (dlltool): Refer to "options" instead of
1753 * MAINTAINERS: Add self as co-maintainer for the ARM code.
1757 * po/es.po: Import from translation project.
1758 * configure.in (ALL_LINGUAS): Add es.
1759 * configure: Regenerate.
1763 * readelf.c (get_netbsd_elfcore_note_type): Use
1764 NT_NETBSDCORE_PROCINFO and NT_NETBSDCORE_FIRSTMACH.
1768 * readelf.c: Update copyright years.
1769 (get_note_type): Return a const char *.
1770 (get_netbsd_elfcore_note_type): New function.
1771 (process_note): Use get_netbsd_elfcore_note_type to get
1772 the note type string for NetBSD ELF core files.
1776 * readelf.c (get_ia64_segment_type): Add support for macros.
1777 (get_segment_type): Add support for IA64 specific macros.
1781 * readelf.c (print_symbol): New function: Print a formatted symbol
1782 name. If --wide is specified do not truncate it.
1783 (dump_relocations): Use print_symbol() to print symbol names.
1784 (process_symbol_table): Likewise.
1785 (process_syminfo): Likewise.
1786 (process_mips_specific): Likewise.
1787 (usage): Document new feature of --wide switch.
1788 * doc/binutils.texi (objdump): Document additional behaviour of
1793 * objcopy.c (copy_file): Accept corefiles (format bfd_core).
1794 (copy_object): Don't set the start address or flags of a core file.
1795 (copy_section): Don't relocate a core file. Don't copy contents
1796 if the input section has the contents flag set, but the output
1797 section does not (which happens with the fake 'note' pseudo-
1798 sections that BFD creates for corefiles).
1802 * readelf.c (get_machine_flags): Recognize header flags for ABI and
1803 ASE extensions. More robust code for ISA checking. Ignore empty fields
1804 in header flags for GNU extensions.
1808 * objcopy.c (copy_archive): Set output bfd format outside the loop.
1812 * po/ja.po: Import from translation project.
1813 * configure.in (ALL_LINGUAS): Add ja.
1814 * configure: Regenerate.
1818 * addr2line.c (main): Protoype.
1819 * ar.c (main): Protoype.
1820 * nm.c (main): Protoype.
1821 * objcopy.c (main): Protoype.
1822 * objdump.c (main): Protoype.
1823 * size.c (main): Protoype.
1824 * strings.c (main): Protoype.
1828 * readelf.c (symtab_shndx_hdr): New global.
1829 (SECTION_HEADER_INDEX): Define.
1830 (SECTION_HEADER_NUM): Define.
1831 (SECTION_HEADER): Define.
1832 (GET_ELF_SYMBOLS): Pass two params rather than three.
1833 (get_32bit_elf_symbols): Take file and section args. Read and
1834 use SHT_SYMTAB_SHNDX.
1835 (get_64bit_elf_symbols): Likewise.
1836 (dump_relocations): Use SECTION_HEADER to index "section_headers".
1837 (process_section_headers): Likewise. Use SECTION_HEADER_NUM too.
1838 Remember symtab_shdx_hdr.
1839 (process_program_headers): Scan from index 1 for segment map.
1840 (slurp_ia64_unwind_table): Use SECTION_HEADER to index
1842 (process_relocs): Likewise. Also adjust call to GET_ELF_SYMBOLS.
1843 (process_unwind): Likewise.
1844 (process_version_sections): Likewise.
1845 (process_symbol_table): Likewise.
1846 (display_debug_info): Likewise.
1847 (process_dynamic_segment): Fake up a symtab section for changed
1849 (get_symbol_index_type): Check SHN_LOOS before SHN_LORESERVE.
1850 (process_program_headers): Kill signed/unsigned warning.
1851 (load_debug_str): Likewise.
1852 (display_debug_info): Likewise.
1856 * readelf.c (get_segment_type): Support PT_GNU_EH_FRAME.
1860 * readelf.c (process_file_header): Print extended e_shnum and
1861 e_shdtrndx values. Set elf_header values for same.
1862 (get_32bit_section_headers): Add "num" arg to read "num" headers.
1863 (get_64bit_section_headers): Likewise.
1864 (process_section_headers): Update calls.
1865 (get_file_header): Call get_32bit_section_headers or 64bit variant.
1869 * objcopy.c (setup_section): Copy entsize.
1873 * readelf.c (guess_is_rela): Add support for stormy16.
1874 (dump_relocations): Likewise.
1875 (get_machine_name): Likewise.
1879 * dllwrap.c (main) Replace multiple strings describing a
1880 single error with a single, newline escaped sentence to permit
1881 better translation into foreign languages.
1883 * readelf.c (get_elf_class): Remove internalionalisation of ELF
1888 * strings.c (get_char): Initialize value.
1892 * arlex.l: Silence compile warnings.
1893 * arsup.h: Likewise. Fix formatting.
1897 * strings.c: Include config.h before bfd.h.
1898 (file_off): New type.
1899 (file_open): Define.
1900 (print_strings): Use file_off instead of file_ptr. Print addresses
1901 which don't fit into long correctly.
1902 (get_char): Use file_off instead of file_ptr. Use getc_unlocked if
1904 (strings_file): Use file_off instead of file_ptr. Use file_open.
1905 * configure.in: Check for getc_unlocked.
1906 Check for fopen64 and whether _LARGEFILE64_SOURCE needs to
1908 * configure: Rebuilt.
1909 * config.h.in: Rebuilt.
1913 * bucomm.c (make_tempname): Revert the changes made on
1914 2001-11-14 and 2001-11-12. They won't work with directories.
1918 * binutils/Makefile.am (check-DEJAGNU): Pass CC_FOR_TARGET and
1919 CFLAGS_FOR_TARGET to runtest in environment.
1920 * Makefile.in: Rebuild.
1921 * doc/Makefile.in: Rebuild.
1925 * objcopy.c (setup_section): Preserve SEC_RELOC when
1926 --set-section-flags is used.
1930 * readelf.c (do_debug_str): New variable.
1931 (display_debug_str): New function: Display the contents of a
1933 (load_debug_str): New function: Load in the contents of a
1935 (free_debug_str): New function: Free the memory used by
1937 (fetch_indirect_string): Retrieve a string from the .debug_str
1940 (parse_args): Accept -ws.
1941 (process_section_headers): Allow the display of the .debug_str
1943 (read_and_display_attr_value): Use fetch_indirect_string. Show
1944 offset into .debug_str section.
1945 (display_debug_info): Use load_debug_str and free_debug_str.
1946 (debug_displays): Add .debug_str.
1947 * doc/binutils.texi: Document -ws.
1951 * testsuite/binutils-all/objdump.exp: Add x86-64.
1955 * readelf.c: Fix warnings without terminating newline.
1959 * doc/binutils.texi (objdump): Document ppc -M options.
1963 * doc/binutils.texi (objdump): Fix description to use x86-64.
1967 * bucomm.c (make_tempname): Use mkstemps instead of mkstemp, since
1968 not all systems provide mkstemp.
1972 * doc/binutils.texi (objdump): Document x86 -M options.
1976 * readelf.c (read_and_display_attr_value): New function to
1977 handle DW_FORM_indirect.
1978 (read_and_display_attr): Use it.
1982 * readelf.c (display_debug_lines): Deal with unknown standard
1983 opcodes. Handle DW_LNS_set_prologue_end, DW_LNS_set_epilogue_begin,
1988 * MAINTAINERS: Add self as tic54x maintainer. This target
1989 includes the IBM C54XDSP clone.
1993 * bucomm.c (make_tempname): Use mkstemp in place of mktemp.
1997 * unwind-ia64.c (unw_print_brmask): Fix ISO C portability glitch.
1998 (unw_print_grmask, unw_print_frmask, unw_print_abreg): Likewise.
1999 (unw_print_xyreg, unw_decode_x1, unw_decode_x2): Likewise.
2000 (unw_decode_x3, unw_decode_r1, unw_decode_r2): Likewise.
2001 (unw_decode_r3, unw_decode_p1, unw_decode_p2_p5): Likewise.
2002 (unw_decode_p6, unw_decode_p7_p10, unw_decode_b1): Likewise.
2003 (unw_decode_b2, unw_decode_b3_b4): Likewise.
2005 * readelf.c (get_elf_class): Fix ISO portability glitch.
2006 (get_data_encoding, get_osabi_name, request_dump): Likewise.
2010 * readelf.c (debug_str, debug_str_size): New.
2011 (display_debug_abbrev): If no abbrevs were read, skip the CU.
2013 (read_and_display_addr): Handle DW_FORM_strp.
2014 (display_debug_info): Read .debug_str section if present,
2015 so that DW_FORM_strp can be handled.
2016 Fix test for non-existant .debug_abbrev section.
2022 * arsup.c (ar_open): Prepend tmp- to basename, not whole path.
2026 * MAINTAINERS: Add self as s390/s390x maintainer.
2030 * MAINTAINERS: Add self as PPC XCOFF maintainer.
2034 * configure.in (ALL_LINGUAS): Add "fr" and "tr".
2035 * configure: Regernate.
2036 * po/fr.po: New file.
2037 * po/tr.po: New file.
2041 * MAINTAINERS: Add self as MMIX port maintainer.
2042 * readelf.c: Include elf/mmix.h.
2043 (guess_is_rela): MMIX is RELA.
2044 (dump_relocations): Handle MMIX relocations.
2045 * Makefile.am: Regenerate dependencies.
2046 * Makefile.in: Regenerate.
2050 * readelf.c (parse_args): Handle multiple options to the -w
2055 * readelf.c (get_section_type_name): Don't print SHT_ prefix for
2056 LOPROC, LOOS and LOUSER.
2060 * MAINTAINERS: Update my email address.
2064 * doc/Makefile.in: Regenerate.
2065 * configure: Regenerate.
2069 * readelf.c (display_debug_line, display_debug_pubnames,
2070 display_debug_info, display_debug_frames): Detect and warn
2071 about 64-bit format entries.
2072 (display_debug_aranges): Reword 64-bit warning.
2073 (debug_displays): Add .debug_pubtypes as a known, but not yet
2074 supported, debug section.
2078 * coffdump.c (PROGRAM_VERSION): Delete.
2079 (main <'V'>): Call print_version.
2080 * srconv.c: Likewise.
2081 * sysdump.c: Likewise.
2082 * version.c (program_version): Remove.
2083 (print_version): Use BFD_VERSION_STRING. Just print the current
2084 year in copyright message.
2085 * addr2line.c (program_version): Remove unused declaration.
2086 * objdump.c (display_target_tables): Use BFD_VERSION_STRING in
2087 place of BFD_VERSION.
2088 * Makefile.am (Makefile): Depend on bfd/configure.in.
2089 (cplus-dem.o): Depend on Makefile.
2091 * Makefile.in: Regenerate.
2095 * readelf.c (display_debug_aranges): Detect and warn about DWARF64
2096 format .debug_arange sections.
2097 (main): Add missing prototype.
2101 * Makefile.am: Update dependencies with "make dep-am".
2102 * Makefile.in: Regenerate.
2106 * objdump.c (dump_section_header): Dump SEC_ARCH_BIT_0.
2110 * bucomm.c (fatal): Define using VPARAMS, VA_OPEN, VA_FIXEDARG,
2112 (non_fatal): Likewise.
2113 * objdump.c (objdump_sprintf): Likewise.
2114 * readelf.c (error): Likewise.
2119 * readelf.c (do_wide): New.
2120 (options): Add --wide.
2121 (usage, parse_args): Likewise.
2122 (process_program_headers): Put each segment on a single line if
2124 (process_section_headers): Put each section on a single line if
2126 * doc/binutils.texi: Document it.
2131 * readelf.c (print_vma): Print 8 digits of low hex value.
2135 * nlmconv.c: Fix warnings about unused attributes and function
2138 * strings.c: Add prototype for get_char.
2142 * doc/Makefile.am ($(DEMANGLER_NAME).1): Try cxxfilt.man and
2143 $(srcdir)/cxxfilt.man.
2144 * doc/Makefile.in: Rebuild.
2148 * objcopy.c (copy_main): Correct rename-section string parsing.
2149 Consolidate new_name parsing, and error messages.
2153 * addr2line.c: Don't include <ctype.h>.
2154 (main): For gettext, also set the LC_CTYPE locate facet.
2155 * ar.c (main): Likewise.
2156 * coffdump.c (main): Likewise.
2157 * dlltool.c: Include "safe-ctype.h" instead of <ctype.h>.
2158 (main): For gettext, also set the LC_CTYPE locate facet.
2159 Use ISALNUM instead of isalpha/isdigit.
2160 * dllwrap.c: Don't include <ctype.h>.
2161 (main): For gettext, also set the LC_CTYPE locate facet.
2162 * nlmconv.c: Include "safe-ctype.h" instead of <ctype.h>.
2163 (main): For gettext, also set the LC_CTYPE locate facet.
2164 Use TOUPPER instead of islower/toupper.
2165 * nlmheader.y: Include "safe-ctype.h" instead of <ctype.h>.
2166 (yylex): Use ISSPACE/ISALNUM instead of isspace/isalnum.
2167 Use TOUPPER instead of islower/toupper.
2168 * nm.c (main): For gettext, also set the LC_CTYPE locate facet.
2169 * objcopy.c (main): Likewise.
2170 * objdump.c: Include "safe-ctype.h" instead of <ctype.h>.
2171 (disassemble_bytes): Use ISPRINT instead of isprint.
2172 (dump_section_stabs): Use ISDIGIT instead of isdigit.
2173 (dump_data): Use ISPRINT instead of isprint.
2174 (main): For gettext, also set the LC_CTYPE locate facet.
2175 * rclex.l: Include "safe-ctype.h" instead of <ctype.h>.
2176 (cpp_line, handle_quotes): Use ISSPACE instead of isspace.
2177 * rcparse.y: Include "safe-ctype.h" instead of <ctype.h>.
2178 Use TOUPPER instead of islower/toupper.
2179 * readelf.c (main): For gettext, also set the LC_CTYPE locate facet.
2180 * resrc.c: Include "safe-ctype.h" instead of <ctype.h>.
2181 (write_rc_accelerators): Use ISPRINT instead of isprint.
2182 (write_rc_rcdata): Likewise.
2183 * size.c (main): For gettext, also set the LC_CTYPE locate facet.
2184 * srconv.c (main): Likewise.
2185 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
2186 (parse_number): Use ISDIGIT/ISUPPER/ISLOWER instead of
2187 isdigit/isupper/islower.
2188 (parse_stab_string, parse_stab_type, parse_stab_argtypes,
2189 parse_stab_array_type, stab_demangle_count, stab_demangle_get_count,
2190 stab_demangle_prefix, stab_demangle_qualified,
2191 stab_demangle_template, stab_demangle_type,
2192 stab_demangle_fund_type): Use ISDIGIT instead of isdigit.
2193 * strings.c: Include "safe-ctype.h" instead of <ctype.h>.
2194 (isgraphic): Use ISPRINT instead of isascii/isprint.
2195 (main): Remove HAVE_LC_MESSAGES dependency.
2196 * sysdump.c: Include "safe-ctype.h" instead of <ctype.h>.
2197 (pbarray): Use ISPRINT instead of isprint.
2198 (main): For gettext, also set the LC_CTYPE locate facet.
2199 * windres.c: Include "safe-ctype.h" instead of <ctype.h>.
2200 (format_from_filename): Use ISPRINT instead of isprint.
2201 (main): For gettext, also set the LC_CTYPE locate facet.
2202 * winduni.c: Include "safe-ctype.h" instead of <ctype.h>.
2203 (unicode_print): Use ISPRINT instead of isprint.
2204 * wrstabs.c: Include "safe-ctype.h" instead of <ctype.h>.
2205 (stab_variable): Use ISDIGIT instead of isdigit.
2209 * ar.c (print_contents): Cast args of bfd_seek to the right types.
2210 Replace bfd_read call with call to bfd_bread.
2211 (extract_file): Likewise.
2213 * objdump.c (dump_section_header): Cast section->filepos to
2214 unsigned long to suit printf format string.
2215 * readelf.c (process_section_headers): Similarly for sh_offset.
2216 (process_unwind): Likewise.
2220 * strings.c (encoding, encoding_bytes): New variables.
2221 (long_options): Add --encoding.
2222 (main): Accept -e and --encoding.
2223 (get_char): New function. Read a, possibly wide, character from
2225 (print_strings): Use get_char().
2226 (usage): Document new command line option.
2227 * doc/binutils.texi: Document new command line option.
2228 * NEWS: Announce new command line option.
2232 * readelf.c (guess_is_rela, dump_relocations, get_machine_name,
2233 get_machine_flags): Added EM_M32R, EM_D10V, EM_V850, EM_D30V,
2234 EM_MN10200, EM_MN10300, EM_FR30, EM_AVR_OLD and EM_PJ_OLD.
2235 Removed EM_CYGNUS_ARC.
2239 * readelf.c: Include elf/h8 for H8 series definitions.
2240 (guess_is_rela): H8 series if RELA.
2241 (dump_relocations): Handle H8 series relocations.
2245 * readelf.c (get_machine_flags): Remove E_MIPS_MACH_MIPS32_4K.
2249 * MAINTAINERS: Include ARC Maintainer.
2253 * stabs.c (stab_demangle_template): Initialise s4.
2257 * readelf.c (dump_relocations): Recognise EM_PPC64.
2261 * readelf.c (get_machine_flags): Add detection of EF_MIPS_32BITMODE.
2265 * nm.c (print_width): New.
2266 (display_rel_file): Set `print_width' according to
2268 (print_symbol_info_bsd): Check `print_width' instead of BFD64.
2272 * objcopy.c (use_alt_mach_code): New variable.
2273 (OPTION_ALT_MACH_CODE): Define.
2274 (copy_options): Added --alt-machine-code.
2275 (copy_main): Handle it.
2276 (copy_object): Switch to alternate machine code if requested.
2277 * doc/binutils.texi: Document new option.
2282 * readelf.c (get_machine_flags): Add detection of EF_MIPS_UCODE.
2286 * readelf.c (dump_relocations): Support ELF64 on 32bit hosts.
2287 (display_debug_info): Cast for 64bit hosts.
2288 (display_debug_frames): Likewise.
2289 (process_mips_specific): Likewise.
2293 * coffgrok.h: Add missing parameter for prototype of coff_grok.
2295 * sysdump.c: Add missing prototypes.
2296 * srconv.c: Likewise.
2297 * unwind-ia64.c: Likewise.
2298 * coffdump.c: Likewise.
2300 * sysinfo.y: Print prototypes, include <ansidecl.h>.
2302 * coffgrok.c: Add missing prototypes, include libiberty.h instead
2303 of declaring xcalloc.
2307 * nm.c (print_value): Add one arg, bfd *.
2308 (print_value): Replace fprintf_vma with bfd_fprintf_vma.
2309 (print_symbol_info_bsd): Also pass `abfd' to print_value ().
2310 (print_symbol_info_sysv): Likewise.
2311 (print_symbol_info_posix): Likewise.
2313 * objdump.c (dump_section_header): Replace printf_vma with
2315 (print_section_stabs): Likewise.
2316 (dump_bfd_header): Likewise.
2317 (objdump_print_value): Replace sprintf_vma with
2319 (disassemble_bytes): Likewise.
2320 (dump_reloc_set): Likewise.
2324 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2326 * configure: Regenerate.
2330 * readelf.c: Add missing prototypes.
2331 * objdump.c: Likewise. Format existing prototypes.
2335 * readelf.c (display_debug_info): Add to abbrev_offset the addend
2336 of any RELA relocation for the abbrev_offset memory location that
2337 refers to the .debug_abbrev section symbol.
2341 * readelf.c (process_file): Return 0 if OK, otherwise return 1.
2342 (main): Return process_file ().
2346 * doc/binutils.texi: Use "Thumb" not "THUMB".
2351 * objdump.c (disassemble_data): Fill in section member of the
2352 disasm_info structure.
2356 * configure.in: Added --with-windres option.
2357 * configure: Regenerated.
2361 * doc/binutils.texi: Use @command{name} for commands;
2362 use @option{-opt} for options; use @table @env for list of options;
2363 remove spaces arround [ | ] in synopsis.
2365 * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for the
2370 * objcopy.c: Fix formatting.
2371 (section_rename): New structure.
2372 (OPTION_RENAME_SECTION): New switch.
2373 (copy_usage): Document new switch.
2374 (add_section_rename): New function: Add a node to the section
2376 (find_section_rename): New function: Find the new name and
2377 flags for a section.
2378 (setup_section): Call find_section_name to determine the name
2379 of the output section.
2380 (copy_main): Handle OPTION_RENAME_SECTION.
2381 * binutils.texi: Document new switch.
2382 * NEWS: Mention new switch.
2392 * bucomm.c (list_supported_architectures): New function.
2393 * bucomm.h (list_supported_architectures): Declare.
2394 * objdump.c (usage): Call the above.
2398 * objdump.c (SKIP_ZEROES): Only define it if it is not already defined.
2399 (SKIP_ZEROES_AT_END): Only define it if it is not already defined.
2403 * README: Update for 2.11. Change bug reporting email address.
2404 * MAINTAINERS: Tidy up. Change bug reporting email address.
2408 * resres.c (write_res_header): Align header size.
2409 (res_align_file): Calculate alignment correctly.
2411 * rcparse.y (styles): use SUBLANG_SHIFT instead of 8 (or the more
2413 * resrc.c (write_rc_resource): Likewise.
2414 * windres.h (SUBLANG_SHIFT): Define - as 10.
2418 * MAINTAINERS: Add Christian Groessler as maintainer for z8k port.
2422 * MAINTAINERS: Add notes about branch checkins.
2426 * readelf.c (display_debug_macinfo): New function, display
2427 .debug_macinfo section.
2428 (do_debug_macinfo): New variable.
2429 (parse_args): Handle "-w[mM]" to mean display macro info.
2430 (process_section_headers): Handle debug_macinfo.
2431 (debug_displays): Replace unsupported function with macinfo
2432 function for .debug_macinfo display.
2433 * doc/binutils.texi: Document new command line switch.
2434 * NEWS: Document new feature of readelf.
2438 * objcopy.c (filter_symbols): Don't turn undefined symbols
2443 * doc/Makefile.am (addr2line.1): Use addr2line.pod instead of
2446 (dlltool.1): Likewise.
2447 (nlmconv.1): Likewise.
2449 (objcopy.1): Likewise.
2450 (objdump.1): Likewise.
2451 (ranlib.1): Likewise.
2452 (readelf.1): Likewise.
2454 (strings.1): Likewise.
2455 (strip.1): Likewise.
2456 (windres.1): Likewise.
2458 ($(DEMANGLER_NAME).1): Also substitute cxxfilt with
2461 * doc/Makefile.in: Regenerated.
2465 * MAINTAINERS: Change MIPS maintainer to Eric Christopher.
2469 * readelf.c: Support DWARF 2.1 tags, encodings, languages.
2473 * readelf.c: Support DWARF 2.1 attributes.
2477 * readelf.c (GET_DATA_ALLOC): Remove.
2479 (get_data): New function combining above macros, with an extra
2481 (slurp_rela_relocs): Use get_data, and catch error return.
2482 (slurp_rel_relocs): Likewise.
2483 (get_32bit_program_headers): Likewise.
2484 (get_64bit_program_headers): Likewise.
2485 (get_32bit_section_headers): Likewise.
2486 (get_64bit_section_headers): Likewise.
2487 (get_32bit_elf_symbols): Likewise.
2488 (get_64bit_elf_symbols): Likewise.
2489 (process_section_headers): Likewise.
2490 (process_relocs): Likewise.
2491 (slurp_ia64_unwind_table): Likewise.
2492 (process_unwind): Likewise.
2493 (get_32bit_dynamic_segment): Likewise.
2494 (get_64bit_dynamic_segment): Likewise.
2495 (process_dynamic_segment): Likewise.
2496 (process_version_sections): Likewise.
2497 (process_symbol_table): Likewise.
2498 (dump_section): Likewise.
2499 (display_debug_info): Likewise.
2500 (display_debug_section): Likewise.
2501 (process_section_contents): Likewise.
2502 (process_corefile_note_segment): Likewise.
2503 (process_mips_specific): Likewise. Also free econf32, econf64.
2507 * readelf.c (dump_relocations): Print "bad symbol index" if
2508 symtab == NULL with non-zero symtab_index.
2509 (process_relocs): Don't bomb if reloc section has no symsec.
2513 * objcopy.c (strip_main): Revert the change made on 2001-05-30
2515 (copy_main): Apply the the change made to strip_main on
2516 2001-05-30 by accident.
2520 * unwind-ia64.c (unw_decode_x1): Add unused attribute for
2522 (unw_decode_x2): Likewise.
2523 (unw_decode_x3): Likewise.
2524 (unw_decode_x4): Likewise.
2528 * MAINTAINERS: Add myself as M88k maintainer.
2532 * objcopy.c (strip_main): Support -o or --output-file command lien
2537 * doc/Makefile.in: Regenerated.
2541 * readelf.c: Restore formatting.
2545 * Makefile.am: Move documentation into doc subdirectory.
2546 * Makefile.in: Regenerated.
2547 * binutils.texi: Move into doc subdirectory.
2548 * addr2line.1: Removed.
2550 * dlltool.1: Likewise.
2551 * nlmconv.1: Likewise.
2553 * objcopy.1: Likewise.
2554 * objdump.1: Likewise.
2555 * ranlib.1: Likewise.
2556 * readelf.1: Likewise.
2558 * strings.1: Likewise.
2559 * strip.1: Likewise.
2560 * windres.1: Likewise.
2561 * cxxfilt.man: Likewise.
2562 * doc: New Directory.
2563 * doc/Makefile.am: New file.
2564 * doc/Makefile.in: Generate.
2568 * NEWS: Fix a typo. Mention hppa64-elf. Add binutils-2.11 marker.
2572 * MAINTAINERS: Update my email address.
2576 * objcopy.c: Add new switches: --keep-global-symbol,
2577 --keep-symbols, --localize-symbols, --keep-global-symbols and
2579 * binutils.texi: Document new switches.
2580 * objcopy.1: Regenerate.
2581 * NEWS: Announce new feature.
2585 * readelf.c (display_debug_frames): Fix warnings: Remove unused
2586 variables, fix format strings.
2590 * objdump.c (disassemble_bytes): Remove section VMA adjustment
2591 when computing the address of the line to show.
2595 * readelf.c (do_debug_frames_interp): New.
2596 (byte_get_little_endian): If BFD64, always read entire 8-byte fields.
2597 (byte_get_big_endian): Likewise.
2598 (parse_args) ['F']: Set do_debug_frames_interp.
2599 (Frame_Chunk): Make data_factor signed, add fde_encoding.
2600 (frame_display_row): Don't trunc pc_begin to int.
2601 (size_of_encoded_value): New.
2602 (display_debug_frames): Handle 64-bit targets. Print raw data
2603 unless do_debug_frames_interp.
2604 (debug_displays): Remove duplicate .debug_frame.
2608 * readelf.c: Replace uses of EM_MIPS_RS4_BE with EM_MIPS_RS3_LE.
2609 The former constant was never in active use and is used otherwise
2614 * readelf.c (process_unwind): Print all unwind sections, not just
2619 * readelf.c (process_unwind): Remove const specifier.
2623 * strings.c (isgraphic): Do not use isascii() unless it is needed
2624 for isprint() to work.
2625 (main): Set the locale domain to LC_ALL not just LC_MESSAGES.
2629 * NEWS: Announce support for OpenRISC.
2633 * dlltool.c (do_default_excludes): Initialise to true.
2637 * MAINTAINERS: Update my email address
2638 * nm.c (print_symbol_info_bsd): Use a simple printf string.
2642 * readelf.c (display_debug_lines): Fix typo for "Prologue".
2646 * readelf.c (process_unwind): Just return if do_unwind is 0.
2650 * dlltool.c (make_one_lib_file): Fix section flags for
2651 .text, .data and .bss in stub ds*.o files to match those
2656 * readelf.c (process_unwind): Only do unwind sections for
2661 * Makefile.am ($(srcdir)/dlltool.1): Remove the extra target.
2662 * Makefile.in: Regenerate.
2666 * binutils.texi (nm): Fix texi syntax.
2670 * binutils.texi: Put @c man begin and @c man end indications
2671 to generate man pages using texi2pod and pod2man. Put @c man title
2672 to identify each man. Add SEEALSO entries.
2673 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
2674 (man_MANS): Add dlltool.1, nlmconv.1, readelf.1, windres.1,
2676 (*.1): Build the man pages from binutils.texi.
2677 * Makefile.in: Regenerate.
2681 * defparse.y (opt_equal_name): allow "." in name.
2682 * dlltool.c (def_exports): Added ability to generate forwarded exports.
2683 (gen_exp_file): Likewise.
2687 * NEWS: Document addition of -B switch to objcopy.
2688 * binutils.texi: Document addition of -B switch to objcopy.
2689 * objcopy.c: (copy_options): Add --binary-architecture.
2690 (copy_usage): Document -B/--binary-architecture.
2691 (copy_main): Support -B/--binary-architecture. Set
2692 bfd_external_binary_architecture.
2696 * readelf.c (guess_is_rela): Handle EM_S390_OLD.
2697 (dump_relocations): Likewise.
2698 (get_machine_name): Likewise.
2702 * readelf.c: (struct unw_aux_info): Remove const modifier for
2704 (process_unwind): Remove non-K&R compliant LHS type cast in call
2705 to GET_DATA_ALLOC macro.
2709 * readelf.c (decode_ARM_machine_flags): Explicitly mention which
2710 ABI is in use; remove ambiguity between the "unknown" EABI and
2711 unrecognised ABIs. Handle version 2 ARM EABI. Update uses of
2712 renamed EF_xx constants.
2716 * configure.in (BFD_VERSION): New.
2717 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2718 * configure: Regenerate.
2719 * Makefile.am: Run "make dep-am"
2720 * Makefile.in: Regenerate.
2724 * MAINTAINERS: Add "Obvious Fix" rule.
2728 * unwind-ia64.c: Don't use ANSI C preprocessor stringisation and string
2729 literal concatenation.
2733 * readelf.c (struct unw_aux_info): Remove const from the info member.
2734 (process_unwind): Don't type-cast the third argument to the
2735 GET_DATA_ALLOC macro.
2739 * readelf.c (dump_relocations): Free corrected allocated
2741 (process_unwind): Fix compile time warning.
2745 * binutils.texi: Document new --unwind option to readelf.
2749 * readelf.c: Add linux target for S/390.
2753 * nm.c (print_symbol_info_bsd): Don't #ifdef inside printf in case
2758 * acinclude.m4 (AM_PROG_LEX): Override installed definition.
2759 * aclocal.m4: Regenerate.
2760 * configure: Regenerate.
2764 * bucomm.c (bfd_target_vector): Change extern array to pointer.
2765 * objdump.c (bfd_target_vector): Likewise.
2769 * readelf.c (process_unwind): New function.
2770 (slurp_ia64_unwind_table): Ditto.
2771 (dump_ia64_unwind): Ditto.
2772 (find_symbol_for_address): Ditto.
2773 (slurp_rela_relocs): New function (split off from dump_relocations()).
2774 (slurp_rel_relocs): Ditto.
2775 (parse_args): Handle '-u' option.
2777 * unwind-ia64.c: New file.
2778 * unwind-ia64.h: New file.
2779 * Makefile.am: Include unwind-ia64.c in readelf build.
2780 * Makefile.in: Regenerate.
2781 * po/binutils.pot: Regenerate.
2785 * configure.in (OBJDUMP_DEFS): Match `arm*-*', not just `arm-*'.
2786 * configure: Regenerate.
2790 * ieee.c (ieee_add_bb11): Don't check for backslashes
2791 unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
2795 * ieee.c: Update copyright.
2796 (ieee_start_compilation_unit): Don't check for backslashes
2797 unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
2799 * stabs.c: Update copyright. Include "filenames.h".
2800 (parse_stab): Use IS_ABSOLUTE_PATH. Ignore N_WARNING stabs.
2804 * readelf.c (process_version_sections): Check if VERDEF or VERNEED
2805 sections are present before using them. Remove code duplication.
2806 (process_symbol_table): Check if VERDEF or VERNEED sections are
2807 present before using them.
2811 * objcopy.c (copy_object): Fail if attempting to convert the
2812 endianness of the input object file.
2814 * binutils.texi: Explain that objcopy cannot convert endianness.
2818 * readelf.c (string_table_length): New variable.
2819 (SECTION_NAME): Catch out of range indices and missing section
2821 (process_section_headers): Delete useless local variable
2822 string_table_offset. Set the value of string_table_length
2823 after loading the string table.
2824 (process_mips_specific): Use SECTION_NAME macro.
2825 (process_file): Set string_table_length to 0 when it is freed.
2829 * version.c (print_version): Update copyright date.
2833 * readelf.c (dump_relocations): Include selection with EM_ARC.
2834 (get_machine_name) Update name to "ARC".
2838 * Makefile.am: Add rule to build objdump.o from objdump.c and
2840 * Makefile.in: Regenerate.
2842 * configure.in: Define OBJDUMP_DEFS. Default to empty.
2843 (arm, xscale, d10v): For these targets define OBJDUMP_DEFS to
2844 -DDISASSEMBLER_NEEDS_RELOCS.
2845 * configure: Regenerate.
2847 * objdump.c (disassemble_bytes): If DISASSEMBLER_NEEDS_RELOCS
2848 is defined read in the relocs even if dump_reloc_info is
2853 * binutils.texi (Bug Reporting): Replace `bug-gnu-utils' with
2859 * dlltool.c: Add missing support for arm-epoc-pe.
2860 * configure.in: Add missing support for arm-epoc-pe.
2861 * configure: Regenerate.
2865 * MAINTAINERS: Add Diego Novillo as a maintainer for the Intel
2866 Mode parts of the x86 port.
2870 * readelf.c (guess_is_rela): Add EM_X86_64.
2871 (dump_relocations): Add EM_X86_64.
2872 (get_machine_name): Add EM_X86_64.
2873 Include "elf/x86-64.h".
2877 * readelf.c: Fix formatting.
2881 * MAINTAINERS: Add myself and Andreas Jaeger as x86_64 maintainer.
2885 * readelf.c (display_debug_frames): Only display columns that are
2886 referenced by the frame debug info.
2890 * MAINTAINERS: Add Jason Merrill as DWARF2 maintainer.
2894 * readelf.c (process_section_headers): Handle linkonce.wi sections.
2895 (display_debug_section): Likewise.
2896 (display_debug_info): Display CU header before bailing.
2900 * readelf.c (get_machine_flags): Recognize MIPS32 ISA in
2901 EF_MIPS_ARCH. Replace use of E_MIPS_MACH_MIPS32 with
2902 E_MIPS_MACH_MIPS32_4K and adjust printed CPU name similarly.
2904 * readelf.c (get_machine_flags): Add cases for E_MIPS_ARCH_5,
2907 * readelf.c (get_machine_flags): Add case for
2912 * readelf.c (frame_display_row): Output 's' for DW_CFA_same_value.
2916 * MAINTAINERS: Add J
\81örn Rennecke and self as SH maintainers.
2917 Change sourceware.cygnus.com to sources.redhat.com.
2918 Fix typo for "amongst".
2922 * strip.1 (COPYING): Mention that the GNU Free Documentation
2923 License is present in the sources, but not the output, and
2924 also available from the GNU website.
2925 (GNU Free Documentation License): Comment out this section.
2934 * addr2line.1: Ditto.
2938 * readelf.c (usage): Add -wf (--debug-dump=frames) option.
2939 (parse_args): Support -wf option.
2940 (process_section_headers): Ditto.
2941 (debug_displays): Ditto.
2942 (display_debug_frames): New, dump *_frame sections.
2943 (frame_need_space): Support for above.
2944 (frame_display_row): Ditto.
2945 * binutils.texi: Document it.
2949 * NEWS: Announce support for v5t, v5te and XScale.
2953 * readelf.c (get_machine_name): Add EM_JAVELIN, EM_FIREPATH,
2954 EM_ZSP, EM_MMIX, EM_HUANY, EM_PRISM.
2955 (get_section_type_name): Add SHT_GROUP and SHT_SYMTAB_SHNDX.
2956 (get_elf_section_flags: Add SHF_GROUP.
2957 (process_section_headers): Adjust output for 32-bit binaries
2958 to look nice on an 80 column terminal.
2962 * readelf.c (get_osabi_name): Change ELFOSABI_MONTEREY to
2967 * readelf.c (display_debug_lines): Adjust last change to
2968 use sizeof (external->li_length).
2972 * readelf.c (display_debug_lines): Fix section length check
2973 and end_of_sequence computation.
2977 * binutils.texi: Add GNU Free Documentation License.
2978 * objcopy.1: Add GNU Free Documentation License.
2979 * objdump.1: Add GNU Free Documentation License.
2980 * addr2line.1: Add GNU Free Documentation License.
2981 * ar.1: Add GNU Free Documentation License.
2982 * nlmconv.1: Add GNU Free Documentation License.
2983 * nm.1: Add GNU Free Documentation License.
2984 * ranlib.1: Add GNU Free Documentation License.
2985 * size.1: Add GNU Free Documentation License.
2986 * strings.1: Add GNU Free Documentation License.
2987 * strip.1: Add GNU Free Documentation License.
2991 * objcopy.c (--srec-len=nn): New parameter to set the
2992 maximum length of generated Srecords.
2993 (--srec-forceS3): New parameter that restricts the generation of
2994 Srecords to type S3 only.
2995 * binutils.texi: Document new command line switches.
2996 * objcopy.1: Docuemnt the new command line switches.
2997 * NEWS: Announce the existence of the new command line switches.
3001 * MAINTAINERS: Add Jim Wilson as the maintainer for the IA64
3002 code. Add Eric Chrisopher as maintainer of MN10300 port.
3006 * Make comma after string after icon/control optional.
3010 * readelf.c (get_machine_flags): Also print EF_MIPS_MACH field.
3012 * NEWS: Mention support for MIPS32.
3016 * MAINTAINERS: Add Stephane Carrez as maintainer for 68HC[11|12].
3020 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3021 * configure: Rebuild.
3025 * configure: Rebuilt with new libtool.m4.
3029 * aclocal.m4: Regenerate.
3030 * config.in: Regenerate.
3031 * configure: Regenerate.
3035 * strip.1: Fix stray '\' in -o formatting.
3039 * configure.in: Increase version number to 2.10.91.
3040 * configure: Regenerate.
3041 * aclocal.m4: Regenerate.
3042 * config.in: Regenerate.
3043 * po/binutils.pot: Regenerate.
3047 * acinclude.m4: Include libtool and gettext macros from the
3049 * aclocal.m4, configure: Rebuilt.
3053 * resrc.c (close_input_stream): Delete extraneous logic
3057 * NEWS: Mention support for CRIS.
3061 * addr2line.c: Changed email address for Ulrich Lauther.
3065 * objdump.c (LONGEST_ARCH): Set to sizeof("powerpc:common").
3069 * readelf.c (display_debug_pubnames): Only issue warning
3070 message once. Terminate message with a new line.
3071 (display_debug_aranges): Only display version 2 debug info.
3075 * objcopy.c (strip_main): Silently accept -d as an alias for -g
3076 for compatability with old BSD systems.
3080 * NEWS: Mention i860 support.
3084 * addr2line.c (main): Add const to char *.
3088 * ar.c (main): Don't crash if called with no arguments
3089 or only '-X32_64' as an argument.
3093 * resrc.c: use "gcc -xc" instead of -xc-header
3097 * readelf.c (elf/i860.h): Include.
3098 (dump_relocations): Add recognition of i860 architecture.
3099 (guess_is_rela): Add recognition of i860 architecture.
3103 * MAINTAINERS: Add information about CGEN maintainers.
3107 * nm.c (main): Ignore '-X32_64' as an option.
3108 * ar.c (main): Likewise.
3109 * binutils.texi (nm): Document new option.
3114 * rdcoff.c (external_coff_symbol_p): K&R-ise.
3118 * binutils.texi: Put back "@end table" deleted by
3123 * nm.c: Add optional style to demangle switch.
3124 * objdump.c: Add optional style to demangle switch.
3125 * addr2line.c: Add optional style to demangle switch.
3126 * binutils.texi: Document optional style to demangle
3131 * MAINTAINERS: Add self as CRIS port maintainer.
3132 * readelf.c: Include elf/cris.h.
3133 (guess_is_rela): Handle EM_CRIS.
3134 (dump_relocations): Ditto.
3135 (get_machine_name): Ditto.
3136 * Makefile.am: Rebuild dependencies.
3137 * Makefile.in: Regenerate.
3138 * po/binutils.pot: Regenerate.
3142 * readelf.c (get_dynamic_type): Change "AUXILARY" to
3144 (process_dynamic_segment): Print out strings for DT_CONFIG,
3145 DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH.
3149 * nm.c (usage): Change output of `nm --help' to include a
3150 description of the purpose of the program and a detailed
3151 description of the accepted options.
3155 * readelf.c (process_dynamic_segment): Change DF_1_NODEPLIB
3160 * readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
3164 * readelf.c (get_dynamic_type): Change DT_FEATURE_1 to
3166 (process_dynamic_segment): Likewise.
3168 * readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT,
3169 DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM.
3170 (process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB,
3171 DF_1_NODUMP and DF_1_CONLFAT.
3175 * binutils.texi (readelf): Fix spelling typo.
3179 * objdump.c (usage): Make output of `objdump --help' more
3180 consistent with the rest of the GNU world. Add a line describing
3181 the purpose of the program.
3185 * stabs.c (parse_stab_range_type): Cast to proper type to fix
3190 * readelf.c (get_dynamic_data): Add casts and use unsigned chars
3192 (process_symbol_table): Ditto.
3193 (procesS_extended_line_op): Ditto.
3194 (display_debug_lines): Ditto.
3195 (display_debug_pubnames): Ditto.
3196 (read_and_display_attr): Ditto.
3200 * MAINTAINERS: Add several more port specific maintainers.
3204 * MAINTAINERS: Add blanket write privs for Michael Meissner.
3212 * dllwrap.c: Changed mistaken dyn_string_append() calls
3213 to dyn_string_append_cstr().
3217 * stabs.c (parse_stab_type): Divide size in bits by 8 as binutils
3218 struct debug_type stores size in bytes.
3222 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3223 (CLEANFILES): Add DEPA.
3224 * Makefile.in: Regenerate.
3228 * ar.c: Revert incorrect 2000-06-25 patch.
3229 * bucomm.c: Likewise.
3233 * rdcoff (parse_coff_symbol): Treat GNU weak symbols as external.
3234 (external_coff_symbol_p): New function.
3235 (parse_coff): Use it.
3239 * ar.c (normalize): Advance past both characters in a DOS based
3240 <letter>: filepath prefix.
3242 * bucomm.c (make_tempname): Likewise.
3246 * objdump.c (usage): Fix description of --stabs switch.
3250 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3252 * Makefile.in: Regenerate.
3256 * ar.c (normalize): Correct pointer comparison when checking for
3259 * bucomm.c (make_tempname): Likewise.
3261 * ieee.c (ieee_start_compilation_unit): Correct pointer comparison
3262 and search for backslashes in the original pathname.
3263 (ieee_add_bb11): Likewise.
3267 * ar.c (print_contents): Improve verbose message.
3271 * dyn-string.c: Removed. Not needed with dyn-string.c in
3273 * dyn-string.h: Likewise.
3275 * Makefile.am: Remove references to dyn-string.c and
3276 dyn-string.h. Rebuild dependency.
3277 * Makefile.in: Rebuild.
3281 * binutils.texi: Put a warning on copying relocatable object
3282 files between two different formats.
3286 * rcparse.y (control): ICON controls take an id as the first
3287 parameter, not an optional string. Also, call new convenience
3288 function that takes res_id's.
3289 * resrc.c (define_control): missing text means zero-length string,
3291 (define_icon_control): New.
3292 * windres.h: declare define_icon_control.
3296 * configure: Regenerate.
3300 * configure.in (VERSION): Update to show this is the CVS mainline.
3304 * strings.c (isgraphic): Interpret <TAB> as a printable character,
3305 analogous to <SPACE>.
3309 * objdump.c (display_target_list): Use bfd_close_all_done, not
3310 bfd_close to fix crash caused by 2000-05-24 change.
3314 * resrc.c (close_input_stream): zero out cpp_pipe after closing it.
3318 * Makefile.am: Update dependencies with "make dep-am"
3319 * Makefile.in: Regenerate.
3323 * ar.c: Include filenames.h.
3324 (normalize) [HAVE_DOS_BASED_FILE_SYSTEM]: Support backslashes
3325 and drive letters in file names.
3326 (main): Support backslashes and drive letters in argv[0]. Drop
3327 the .exe suffix, if any, in argv[0] if is_ranlib is negative. Use
3328 FILENAME_CMP instead of strcmp to compare file names.
3329 (open_inarch) [__GO32__]: Don't ifdef errno != ENOENT test for
3331 (do_quick_append) [__GO32__]: Ditto.
3332 (get_pos_bfd, delete_members, move_members, replace_members):
3333 Compare file names with FILENAME_CMP.
3335 * bucomm.c: Include filenames.h.
3336 (make_tempname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support mixed
3337 forward/backward slashes and drive letters in file names.
3339 * ieee.c (ieee_start_compilation_unit, ieee_add_bb11): Support
3340 mixed forward/backward slashes and drive letters in file names.
3342 * strings.c (O_BINARY, setmode, SET_BINARY): Define.
3343 (main) [SET_BINARY]: Use SET_BINARY to switch stdin into binary
3346 * objcopy.c: Include filenames.h.
3347 (main) [HAVE_DOS_BASED_FILE_SYSTEM]: Drop the .exe suffix
3348 before comparing to "strip".
3349 Use FILENAME_CMP to compare file names.
3351 * arsup.c: Include filenames.h.
3352 (map_over_list, ar_delete, ar_replace, ar_extract): Use
3353 FILENAME_CMP to compare file names.
3354 (ar_open): Prepend "tmp-" instead of appending "-tmp", to create
3355 the temporary file name.
3357 * configure.in: Check for setmode.
3358 * configure: Regenerate.
3362 * objdump.c (display_target_list): Close the bfd.
3363 (display_info_table): Likewise.
3367 * objcopy.c (filter_symbols): Don't strip global symbols in
3368 relocatable object files.
3372 * size.c (usage): Associate short options with corresponding long
3373 option to give a clue as to their function.
3377 * size.c (main): Accept and ignore `-f' option.
3381 * bucomm.h (gettext, dgettext, dcgettext, textdomain,
3382 bindtextdomain): Replace defines with those from intl/libgettext.h
3383 to quieten gcc warnings.
3387 * nlmconv.c (temp_filename): Removed.
3389 * nlmconv.c (link_inputs): Use make_temp_file () instead of
3390 choose_temp_base ().
3391 * objdump.c (display_target_list): Likewise.
3392 (display_info_table): Likewise.
3396 * objcopy.c (setup_section): Add const and gettext calls for err.
3400 * readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
3401 ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
3402 ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
3403 ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
3404 and ELFOSABI_OPENBSD.
3408 * coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate.
3409 * srconv.c: Likewise.
3410 * sysdump.c: Likewise.
3414 * readelf.c (guess_is_rela): AVR uses RELA relocations.
3415 (get_machine_name): machine name for EM_AVR added.
3420 * Makefile.am (readelf.o): Add elf/ia64.h.
3421 * Makefile.in: Rebuild.
3422 * readelf.c: Include elf/ia64.h.
3423 (guess_is_rela, dump_relocations): Handle EM_IA_64.
3427 * objdump.c (disassemble_data): Set octets per byte *after*
3428 resolving arch/mach for binary files.
3432 * arlex.l: Add directives to increase lex buffer size.
3434 * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are
3435 already included by bucomm.h.
3439 * readelf.c (dynamic_segment_mips_val): Call `sprintf', not
3440 `strftime' since strftime is not available on all systems.
3441 (process_mips_specific): Ditto.
3445 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3446 --enable-build-warnings option.
3447 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3448 * Makefile.in, configure: Re-generate.
3452 * addr2line.c: Update copyright.
3453 * objcopy.1: Likewise, and title.
3454 * strings.1: Likewise.
3456 * version.c (print_version): Add 2000.
3458 * rddbg.c (read_section_stabs_debugging_info): Don't use
3459 bfd_size_type for strx to avoid printf problems if BFD64.
3461 * bucomm.c: (report): Remove `static'.
3462 Move inclusion of stdarg.h/vararg.h from here.
3463 * bucomm.h: To here.
3464 (CONST): Change all occurences to const.
3465 (report): Declare it.
3466 (bfd_fatal): Add ATTRIBUTE_NORETURN.
3467 (fatal): Add ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN.
3468 (non_fatal): Add ATTRIBUTE_PRINTF_1.
3470 * ar.c (main): Use fatal or non_fatal instead of fprintf.
3471 Correct a typo in an error message.
3472 (do_quick_append): Use non_fatal instead of fprintf.
3473 (move_members): Use fatal instead of fprintf, exit.
3474 * coffdump.c (main): Same here.
3476 * dlltool.c (display): Delete.
3478 (inform): Use `report' instead of `display'.
3479 (rvaafter): Remove trailing \n from fatal error msg.
3481 (asm_prefix): Ditto.
3482 (yyerror): Replace `warn' with `non_fatal', and remove \n.
3483 (def_name): Likewise.
3485 (scan_all_symbols): Likewise.
3486 (gen_lib_file): Likewise.
3487 (def_library): Likewise. Remove extra program_name too.
3488 (run): Remove \n from inform strings.
3489 (scan_drectve_symbols): Likewise.
3490 (add_excludes): Likewise.
3491 (scan_open_obj_file): Likewise.
3492 (gen_exp_file): Likewise.
3493 (gen_lib_file): Likewise.
3494 (process_duplicates): Likewise.
3496 * Makefile.am (dllwrap_SOURCES): Add version.c.
3497 * dllwrap.c (program_version): Delete.
3498 (print_version): Delete.
3499 (display): Always print trailing \n.
3501 (delete_temp_files): Use warn instead of fprintf. Use gettext.
3504 (usage): gettext'ify.
3505 (long_options): Add missing initialisers.
3507 * nlmconv.c (main): Use fatal/non_fatal instead of fprintf.
3508 (select_output_format): Likewise.
3509 (powerpc_mangle_relocs): Likewise.
3510 (link_inputs): Likewise.
3512 * nm.c (set_print_radix): Use fatal instead of fprintf, exit.
3513 (set_output_format): Likewise.
3514 (main): Use non_fatal instead of fprintf.
3515 (display_rel_file): Likewise.
3517 * objdump.c (slurp_symtab): Use non_fatal instead of fprintf.
3518 (slurp_dynamic_symtab): Same here.
3519 (disassemble_data): And here.
3520 (read_section_stabs): And here.
3521 (read_section_stabs): And here.
3522 (dump_bfd): And here.
3524 (objdump_sprintf): Use fatal instead of fprintf, exit.
3525 (disassemble_data): Same here.
3527 * rdcoff.c (parse_coff_type): Use non_fatal instead of fprintf.
3528 (parse_coff_struct_type): Same here.
3529 (parse_coff_enum_type): And here.
3530 (parse_coff): And here.
3531 * rddbg.c (read_debugging_info): And here.
3532 * size.c (main): And here.
3533 * windres.c (format_from_name): And here.
3534 * wrstabs.c (stab_write_symbol): Here too.
3535 (write_stabs_in_sections_debugging_info): And here.
3536 (stab_int_type): And here.
3537 (stab_struct_field): And here.
3538 (stab_typdef): And here.
3540 * rescoff.c (read_coff_rsrc): Use fatal instead of fprintf, exit.
3541 * srconv.c (main): Same here.
3542 * strings.c (main): And here.
3543 (integer_arg): And here.
3544 * sysdump.c (main): And here.
3548 * objdump.c (dump_section_header): Print CLINK and BLOCK flags.
3552 * readelf.c (decode_location_expression): Loop through multiple
3554 (read_and_display_attr): Pass in length.
3556 * readelf.c (read_and_display_attr): Add CU offset to references.
3557 (display_debug_info): Pass it in.
3561 * readelf.c (decode_ARM_machine_flags): New function.
3562 (get_machine_flags): Call decode_ARM_machine_flags for ARM
3565 (get_machine_name): Catch EM_AVR
3569 * binutils.texi: Remove optional `=' from long options that have
3570 an `=' in the argument.
3571 * objcopy.1: Here too. Remove extra space on discard-all.
3573 * binutils.texi (objcopy): Mention --redefine-sym.
3574 * objcopy.1: Here too.
3577 * objcopy.c (parse_flags): Split off flag names from error message
3578 gettext as they are not translated.
3579 (copy_main): Similarly split off option name for --add-section,
3580 --set-section-flags, --change-section-vma, --change-section-lma
3582 Some white space changes.
3585 * objcopy.c (struct redefine_node): New.
3586 (redefine_sym_list): New.
3587 (redefine_list_append): New.
3588 (lookup_sym_redefinition): New.
3589 (OPTION_REDEFINE_SYM): New.
3590 (copy_options): Add --redefine-sym option.
3591 (copy_usage): Mention it.
3592 (filter_symbols): Rename symbols on redefine_sym_list.
3593 (copy_object): Call filter_symbols if redefine_sym_list != NULL.
3594 (copy_main): Handle OPTION_REDEFINE_SYM.
3598 * readelf.c (process_symbol_table): Correctly read in symbol
3599 versioning information.
3603 * po/binutils.pot: Regenerate.
3605 * addr2line.c (usage): Restore translated part of bug string.
3606 * ar.c (usage): Likewise.
3607 * nlmconv.c (show_usage): Likewise.
3608 * nm.c (usage): Likewise.
3609 * objcopy.c (copy_usage): Likewise.
3610 (strip_usage): Likewise.
3611 * objdump.c (usage): Likewise.
3612 * readelf.c (usage): Likewise.
3613 * size.c (usage): Likewise.
3614 * strings.c (usage): Likewise.
3615 * windres.c (usage): Likewise.
3617 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3618 (DEP): Quote when passing vars to sub-make. Add warning
3620 (DEP1): Rewrite for "gcc -MM".
3621 (CLEANFILES): Add DEP2.
3622 Update dependencies.
3623 * Makefile.in: Regenerate.
3627 * Makefile.am (GENERATED_HFILES): Add rcparse.h
3628 (arparse.h): Depend on arparse.c
3629 (defparse.h, nlmheader.h, rcparse.h, sysinfo.h): Similarly.
3633 * size.c (usage): Use REPORT_BUGS_TO.
3637 * bucomm.h: #include "bin-bugs.h"
3638 * addr2line.c (usage): Use REPORT_BUGS_TO.
3639 * ar.c (usage): Likewise.
3640 * nlmconv.c (show_usage): Likewise.
3641 * nm.c (usage): Likewise.
3642 (OPTION_TARGET): Define.
3643 (long_options): Use OPTION_TARGET rather than 200.
3646 * objcopy.c (copy_usage): Use REPORT_BUGS_TO.
3647 (strip_usage): Likewise.
3648 * objdump.c (usage): Likewise.
3649 * readelf.c (usage): Likewise.
3650 * strings.c (usage): Likewise.
3651 * windres.c (usage): Likewise.
3655 * readelf.c: Include sys/types.h before sys/stat.h for ultrix.
3659 * rddbg.c (read_section_stabs_debugging_info): Catch out of range
3660 string offsets in corrupt stabs entries.
3664 * readelf.c: Include elf/avr.h
3665 (dump_relocations): Add EM_AVR case.
3669 * strings.1: Correct '-bytes' to '--bytes'.
3673 * Makefile.am (install-exec-local): Depend on
3674 install-binPROGRAMS for parallel make.
3675 * Makefile.in: Regenerated.
3680 * readelf.c (process_dynamic_segment): Add cast to make sure
3681 argument to %* is int.
3685 * configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
3689 * configure.in: Add arm-wince, mips-pe and sh-pe targets.
3690 * configure: Regenerate.
3692 * dlltool.c: Add support for sh-pe and mips-pe targets.
3693 * rescoff.c: Add support for sh-pe and mips-pe targets.
3697 * readelf.c (get_osabi_name): Handle ELFOSABI_LINUX.
3701 * readelf.c (process_symbol_table): Remove use of ELF_ST_OTHER.
3706 * readelf.c (process_version_sections): Add casts to make sure
3707 argument to %* is an int.
3708 (process_mips_specific): Add casts to make printf arguments match
3713 * objdump.c (dump_section_header): Change `opb' to unsigned.
3714 (find_symbol_for_address): Same here.
3715 (disassemble_data): And here. Change `addr_offset',
3716 `stop_offset', `nextstop_offset' to unsigned long.
3717 (dump_data): Change opb to unsigned.
3721 * resrc.c: Remove unmatched #if for cygwin.
3725 * binutils.texi: Document the change of flavor name from atpcs-special
3726 to special-atpcs to prevent name conflict in gdb.
3730 * objdump.c (show_line): Fix bug preventing printing of the very
3731 first line (line zero) of a file when interlisting source and
3732 assembly. Added option to print entire context from start of file
3733 when the first line from that file is encountered.
3737 * objdump.c (dump_section_header, find_symbol_for_address,
3738 show_line, disassemble_bytes, disassemble_data, dump_data):
3739 distinguish between octets and bytes.
3743 * nm.c (print_symbol_info_bsd): Use bfd_is_undefined_symclass to
3744 check to unresolved symbols.
3745 (print_symbol_info_sysv): Ditto.
3746 (print_symbol_info_posix): Ditto.
3748 * binutils.texi: Document new 'V' symclass flag for nm.
3752 * binutils.texi (objdump): Document new ARM specific
3753 disassembler options.
3755 * objdump.c (usage): Call disassembler_usage().
3759 * readelf.c (get_dynamic_flags): Return buff.
3760 (process_dynamic_segment): Don't pass error strings to printf
3762 (read_and_display_attr): Use lx and ld to print longs.
3763 (process_corefile_note_segment): Cast bfd_vma to unsigned long
3769 * readelf.c (get_osabi_name): Recognise ELFOSABI_ARM.
3773 * debug.c (debug_name_type): Return DEBUG_TYPE_NULL rather than
3775 (debug_tag_type): Here too.
3776 * ieee.c (ieee_builtin_type): And here.
3777 * stabs.c (parse_stab_type, parse_stab_array_type): And here.
3781 * readelf.c (get_machine_name): Change EM_S370 to return "IBM
3786 * readelf.c (get_dynamic_type): Remove DT_ENCODING.
3790 * readelf.c (get_note_type): Display NT_WIN32PSTATUS notes.
3794 * windres.c (long_options): Add --use-temp-file and
3795 --no-use-temp-file options.
3799 * windres.h: Update read_rc_file prototype.
3801 * resrc.c (cpp_temp_file): New static variable.
3802 (istream_type): New static variable.
3803 (close_pipe): Delete function.
3804 (run_cmd): New static function.
3805 (open_input_stream): New static function.
3806 (close_input_stream): New static function.
3807 (look_for_default): Handle DOS directory separator. Use
3808 open_input_stream instead of popen.
3809 (read_rc_file): Likewise.
3811 * binutils.texi: Document --use-temp-file, --no-use-temp-file
3816 * dlltool.c (create_compat_implib): New variable.
3817 (gen_exp_file): Use.
3818 (make_one_lib_file): Use.
3819 (long_options): Add --compat-implib option.
3823 * dllwrap.c (enum target_type): Rename MINGW32_TARGET to MINGW_TARGET.
3824 (main): Use. Don't look for "32" in cygwin and mingw target names.
3828 * binutils.texi: Document new, ARM specific disassembler
3829 command line switch "-M force-thumb".
3831 For older changes see ChangeLog-9899
3837 version-control: never