3 * readelf.c (process_file): Return 0 if OK, otherwise return 1.
4 (main): Return process_file ().
8 * doc/binutils.texi: Use "Thumb" not "THUMB".
13 * objdump.c (disassemble_data): Fill in section member of the
14 disasm_info structure.
18 * configure.in: Added --with-windres option.
19 * configure: Regenerated.
23 * doc/binutils.texi: Use @command{name} for commands;
24 use @option{-opt} for options; use @table @env for list of options;
25 remove spaces arround [ | ] in synopsis.
27 * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for the
32 * objcopy.c: Fix formatting.
33 (section_rename): New structure.
34 (OPTION_RENAME_SECTION): New switch.
35 (copy_usage): Document new switch.
36 (add_section_rename): New function: Add a node to the section
38 (find_section_rename): New function: Find the new name and
40 (setup_section): Call find_section_name to determine the name
41 of the output section.
42 (copy_main): Handle OPTION_RENAME_SECTION.
43 * binutils.texi: Document new switch.
44 * NEWS: Mention new switch.
54 * bucomm.c (list_supported_architectures): New function.
55 * bucomm.h (list_supported_architectures): Declare.
56 * objdump.c (usage): Call the above.
60 * objdump.c (SKIP_ZEROES): Only define it if it is not already defined.
61 (SKIP_ZEROES_AT_END): Only define it if it is not already defined.
65 * README: Update for 2.11. Change bug reporting email address.
66 * MAINTAINERS: Tidy up. Change bug reporting email address.
70 * resres.c (write_res_header): Align header size.
71 (res_align_file): Calculate alignment correctly.
73 * rcparse.y (styles): use SUBLANG_SHIFT instead of 8 (or the more
75 * resrc.c (write_rc_resource): Likewise.
76 * windres.h (SUBLANG_SHIFT): Define - as 10.
80 * MAINTAINERS: Add Christian Groessler as maintainer for z8k port.
84 * MAINTAINERS: Add notes about branch checkins.
88 * readelf.c (display_debug_macinfo): New function, display
89 .debug_macinfo section.
90 (do_debug_macinfo): New variable.
91 (parse_args): Handle "-w[mM]" to mean display macro info.
92 (process_section_headers): Handle debug_macinfo.
93 (debug_displays): Replace unsupported function with macinfo
94 function for .debug_macinfo display.
95 * doc/binutils.texi: Document new command line switch.
96 * NEWS: Document new feature of readelf.
100 * objcopy.c (filter_symbols): Don't turn undefined symbols
105 * doc/Makefile.am (addr2line.1): Use addr2line.pod instead of
108 (dlltool.1): Likewise.
109 (nlmconv.1): Likewise.
111 (objcopy.1): Likewise.
112 (objdump.1): Likewise.
113 (ranlib.1): Likewise.
114 (readelf.1): Likewise.
116 (strings.1): Likewise.
118 (windres.1): Likewise.
120 ($(DEMANGLER_NAME).1): Also substitute cxxfilt with
123 * doc/Makefile.in: Regenerated.
127 * MAINTAINERS: Change MIPS maintainer to Eric Christopher.
131 * readelf.c: Support DWARF 2.1 tags, encodings, languages.
135 * readelf.c: Support DWARF 2.1 attributes.
139 * readelf.c (GET_DATA_ALLOC): Remove.
141 (get_data): New function combining above macros, with an extra
143 (slurp_rela_relocs): Use get_data, and catch error return.
144 (slurp_rel_relocs): Likewise.
145 (get_32bit_program_headers): Likewise.
146 (get_64bit_program_headers): Likewise.
147 (get_32bit_section_headers): Likewise.
148 (get_64bit_section_headers): Likewise.
149 (get_32bit_elf_symbols): Likewise.
150 (get_64bit_elf_symbols): Likewise.
151 (process_section_headers): Likewise.
152 (process_relocs): Likewise.
153 (slurp_ia64_unwind_table): Likewise.
154 (process_unwind): Likewise.
155 (get_32bit_dynamic_segment): Likewise.
156 (get_64bit_dynamic_segment): Likewise.
157 (process_dynamic_segment): Likewise.
158 (process_version_sections): Likewise.
159 (process_symbol_table): Likewise.
160 (dump_section): Likewise.
161 (display_debug_info): Likewise.
162 (display_debug_section): Likewise.
163 (process_section_contents): Likewise.
164 (process_corefile_note_segment): Likewise.
165 (process_mips_specific): Likewise. Also free econf32, econf64.
169 * readelf.c (dump_relocations): Print "bad symbol index" if
170 symtab == NULL with non-zero symtab_index.
171 (process_relocs): Don't bomb if reloc section has no symsec.
175 * objcopy.c (strip_main): Revert the change made on 2001-05-30
177 (copy_main): Apply the the change made to strip_main on
178 2001-05-30 by accident.
182 * unwind-ia64.c (unw_decode_x1): Add unused attribute for
184 (unw_decode_x2): Likewise.
185 (unw_decode_x3): Likewise.
186 (unw_decode_x4): Likewise.
190 * MAINTAINERS: Add myself as M88k maintainer.
194 * objcopy.c (strip_main): Support -o or --output-file command lien
199 * doc/Makefile.in: Regenerated.
203 * readelf.c: Restore formatting.
207 * Makefile.am: Move documentation into doc subdirectory.
208 * Makefile.in: Regenerated.
209 * binutils.texi: Move into doc subdirectory.
210 * addr2line.1: Removed.
212 * dlltool.1: Likewise.
213 * nlmconv.1: Likewise.
215 * objcopy.1: Likewise.
216 * objdump.1: Likewise.
217 * ranlib.1: Likewise.
218 * readelf.1: Likewise.
220 * strings.1: Likewise.
222 * windres.1: Likewise.
223 * cxxfilt.man: Likewise.
224 * doc: New Directory.
225 * doc/Makefile.am: New file.
226 * doc/Makefile.in: Generate.
230 * NEWS: Fix a typo. Mention hppa64-elf. Add binutils-2.11 marker.
234 * MAINTAINERS: Update my email address.
238 * objcopy.c: Add new switches: --keep-global-symbol,
239 --keep-symbols, --localize-symbols, --keep-global-symbols and
241 * binutils.texi: Document new switches.
242 * objcopy.1: Regenerate.
243 * NEWS: Announce new feature.
247 * readelf.c (display_debug_frames): Fix warnings: Remove unused
248 variables, fix format strings.
252 * objdump.c (disassemble_bytes): Remove section VMA adjustment
253 when computing the address of the line to show.
257 * readelf.c (do_debug_frames_interp): New.
258 (byte_get_little_endian): If BFD64, always read entire 8-byte fields.
259 (byte_get_big_endian): Likewise.
260 (parse_args) ['F']: Set do_debug_frames_interp.
261 (Frame_Chunk): Make data_factor signed, add fde_encoding.
262 (frame_display_row): Don't trunc pc_begin to int.
263 (size_of_encoded_value): New.
264 (display_debug_frames): Handle 64-bit targets. Print raw data
265 unless do_debug_frames_interp.
266 (debug_displays): Remove duplicate .debug_frame.
270 * readelf.c: Replace uses of EM_MIPS_RS4_BE with EM_MIPS_RS3_LE.
271 The former constant was never in active use and is used otherwise
276 * readelf.c (process_unwind): Print all unwind sections, not just
281 * readelf.c (process_unwind): Remove const specifier.
285 * strings.c (isgraphic): Do not use isascii() unless it is needed
286 for isprint() to work.
287 (main): Set the locale domain to LC_ALL not just LC_MESSAGES.
291 * NEWS: Announce support for OpenRISC.
295 * dlltool.c (do_default_excludes): Initialise to true.
299 * MAINTAINERS: Update my email address
300 * nm.c (print_symbol_info_bsd): Use a simple printf string.
304 * readelf.c (display_debug_lines): Fix typo for "Prologue".
308 * readelf.c (process_unwind): Just return if do_unwind is 0.
312 * dlltool.c (make_one_lib_file): Fix section flags for
313 .text, .data and .bss in stub ds*.o files to match those
318 * readelf.c (process_unwind): Only do unwind sections for
323 * Makefile.am ($(srcdir)/dlltool.1): Remove the extra target.
324 * Makefile.in: Regenerate.
328 * binutils.texi (nm): Fix texi syntax.
332 * binutils.texi: Put @c man begin and @c man end indications
333 to generate man pages using texi2pod and pod2man. Put @c man title
334 to identify each man. Add SEEALSO entries.
335 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
336 (man_MANS): Add dlltool.1, nlmconv.1, readelf.1, windres.1,
338 (*.1): Build the man pages from binutils.texi.
339 * Makefile.in: Regenerate.
343 * defparse.y (opt_equal_name): allow "." in name.
344 * dlltool.c (def_exports): Added ability to generate forwarded exports.
345 (gen_exp_file): Likewise.
349 * NEWS: Document addition of -B switch to objcopy.
350 * binutils.texi: Document addition of -B switch to objcopy.
351 * objcopy.c: (copy_options): Add --binary-architecture.
352 (copy_usage): Document -B/--binary-architecture.
353 (copy_main): Support -B/--binary-architecture. Set
354 bfd_external_binary_architecture.
358 * readelf.c (guess_is_rela): Handle EM_S390_OLD.
359 (dump_relocations): Likewise.
360 (get_machine_name): Likewise.
364 * readelf.c: (struct unw_aux_info): Remove const modifier for
366 (process_unwind): Remove non-K&R compliant LHS type cast in call
367 to GET_DATA_ALLOC macro.
371 * readelf.c (decode_ARM_machine_flags): Explicitly mention which
372 ABI is in use; remove ambiguity between the "unknown" EABI and
373 unrecognised ABIs. Handle version 2 ARM EABI. Update uses of
374 renamed EF_xx constants.
378 * configure.in (BFD_VERSION): New.
379 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
380 * configure: Regenerate.
381 * Makefile.am: Run "make dep-am"
382 * Makefile.in: Regenerate.
386 * MAINTAINERS: Add "Obvious Fix" rule.
390 * unwind-ia64.c: Don't use ANSI C preprocessor stringisation and string
391 literal concatenation.
395 * readelf.c (struct unw_aux_info): Remove const from the info member.
396 (process_unwind): Don't type-cast the third argument to the
397 GET_DATA_ALLOC macro.
401 * readelf.c (dump_relocations): Free corrected allocated
403 (process_unwind): Fix compile time warning.
407 * binutils.texi: Document new --unwind option to readelf.
411 * readelf.c: Add linux target for S/390.
415 * nm.c (print_symbol_info_bsd): Don't #ifdef inside printf in case
420 * acinclude.m4 (AM_PROG_LEX): Override installed definition.
421 * aclocal.m4: Regenerate.
422 * configure: Regenerate.
426 * bucomm.c (bfd_target_vector): Change extern array to pointer.
427 * objdump.c (bfd_target_vector): Likewise.
431 * readelf.c (process_unwind): New function.
432 (slurp_ia64_unwind_table): Ditto.
433 (dump_ia64_unwind): Ditto.
434 (find_symbol_for_address): Ditto.
435 (slurp_rela_relocs): New function (split off from dump_relocations()).
436 (slurp_rel_relocs): Ditto.
437 (parse_args): Handle '-u' option.
439 * unwind-ia64.c: New file.
440 * unwind-ia64.h: New file.
441 * Makefile.am: Include unwind-ia64.c in readelf build.
442 * Makefile.in: Regenerate.
443 * po/binutils.pot: Regenerate.
447 * configure.in (OBJDUMP_DEFS): Match `arm*-*', not just `arm-*'.
448 * configure: Regenerate.
452 * ieee.c (ieee_add_bb11): Don't check for backslashes
453 unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
457 * ieee.c: Update copyright.
458 (ieee_start_compilation_unit): Don't check for backslashes
459 unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
461 * stabs.c: Update copyright. Include "filenames.h".
462 (parse_stab): Use IS_ABSOLUTE_PATH. Ignore N_WARNING stabs.
466 * readelf.c (process_version_sections): Check if VERDEF or VERNEED
467 sections are present before using them. Remove code duplication.
468 (process_symbol_table): Check if VERDEF or VERNEED sections are
469 present before using them.
473 * objcopy.c (copy_object): Fail if attempting to convert the
474 endianness of the input object file.
476 * binutils.texi: Explain that objcopy cannot convert endianness.
480 * readelf.c (string_table_length): New variable.
481 (SECTION_NAME): Catch out of range indices and missing section
483 (process_section_headers): Delete useless local variable
484 string_table_offset. Set the value of string_table_length
485 after loading the string table.
486 (process_mips_specific): Use SECTION_NAME macro.
487 (process_file): Set string_table_length to 0 when it is freed.
491 * version.c (print_version): Update copyright date.
495 * readelf.c (dump_relocations): Include selection with EM_ARC.
496 (get_machine_name) Update name to "ARC".
500 * Makefile.am: Add rule to build objdump.o from objdump.c and
502 * Makefile.in: Regenerate.
504 * configure.in: Define OBJDUMP_DEFS. Default to empty.
505 (arm, xscale, d10v): For these targets define OBJDUMP_DEFS to
506 -DDISASSEMBLER_NEEDS_RELOCS.
507 * configure: Regenerate.
509 * objdump.c (disassemble_bytes): If DISASSEMBLER_NEEDS_RELOCS
510 is defined read in the relocs even if dump_reloc_info is
515 * binutils.texi (Bug Reporting): Replace `bug-gnu-utils' with
521 * dlltool.c: Add missing support for arm-epoc-pe.
522 * configure.in: Add missing support for arm-epoc-pe.
523 * configure: Regenerate.
527 * MAINTAINERS: Add Diego Novillo as a maintainer for the Intel
528 Mode parts of the x86 port.
532 * readelf.c (guess_is_rela): Add EM_X86_64.
533 (dump_relocations): Add EM_X86_64.
534 (get_machine_name): Add EM_X86_64.
535 Include "elf/x86-64.h".
539 * readelf.c: Fix formatting.
543 * MAINTAINERS: Add myself and Andreas Jaeger as x86_64 maintainer.
547 * readelf.c (display_debug_frames): Only display columns that are
548 referenced by the frame debug info.
552 * MAINTAINERS: Add Jason Merrill as DWARF2 maintainer.
556 * readelf.c (process_section_headers): Handle linkonce.wi sections.
557 (display_debug_section): Likewise.
558 (display_debug_info): Display CU header before bailing.
562 * readelf.c (get_machine_flags): Recognize MIPS32 ISA in
563 EF_MIPS_ARCH. Replace use of E_MIPS_MACH_MIPS32 with
564 E_MIPS_MACH_MIPS32_4K and adjust printed CPU name similarly.
566 * readelf.c (get_machine_flags): Add cases for E_MIPS_ARCH_5,
569 * readelf.c (get_machine_flags): Add case for
574 * readelf.c (frame_display_row): Output 's' for DW_CFA_same_value.
578 * MAINTAINERS: Add Jörn Rennecke and self as SH maintainers.
579 Change sourceware.cygnus.com to sources.redhat.com.
580 Fix typo for "amongst".
584 * strip.1 (COPYING): Mention that the GNU Free Documentation
585 License is present in the sources, but not the output, and
586 also available from the GNU website.
587 (GNU Free Documentation License): Comment out this section.
596 * addr2line.1: Ditto.
600 * readelf.c (usage): Add -wf (--debug-dump=frames) option.
601 (parse_args): Support -wf option.
602 (process_section_headers): Ditto.
603 (debug_displays): Ditto.
604 (display_debug_frames): New, dump *_frame sections.
605 (frame_need_space): Support for above.
606 (frame_display_row): Ditto.
607 * binutils.texi: Document it.
611 * NEWS: Announce support for v5t, v5te and XScale.
615 * readelf.c (get_machine_name): Add EM_JAVELIN, EM_FIREPATH,
616 EM_ZSP, EM_MMIX, EM_HUANY, EM_PRISM.
617 (get_section_type_name): Add SHT_GROUP and SHT_SYMTAB_SHNDX.
618 (get_elf_section_flags: Add SHF_GROUP.
619 (process_section_headers): Adjust output for 32-bit binaries
620 to look nice on an 80 column terminal.
624 * readelf.c (get_osabi_name): Change ELFOSABI_MONTEREY to
629 * readelf.c (display_debug_lines): Adjust last change to
630 use sizeof (external->li_length).
634 * readelf.c (display_debug_lines): Fix section length check
635 and end_of_sequence computation.
639 * binutils.texi: Add GNU Free Documentation License.
640 * objcopy.1: Add GNU Free Documentation License.
641 * objdump.1: Add GNU Free Documentation License.
642 * addr2line.1: Add GNU Free Documentation License.
643 * ar.1: Add GNU Free Documentation License.
644 * nlmconv.1: Add GNU Free Documentation License.
645 * nm.1: Add GNU Free Documentation License.
646 * ranlib.1: Add GNU Free Documentation License.
647 * size.1: Add GNU Free Documentation License.
648 * strings.1: Add GNU Free Documentation License.
649 * strip.1: Add GNU Free Documentation License.
653 * objcopy.c (--srec-len=nn): New parameter to set the
654 maximum length of generated Srecords.
655 (--srec-forceS3): New parameter that restricts the generation of
656 Srecords to type S3 only.
657 * binutils.texi: Document new command line switches.
658 * objcopy.1: Docuemnt the new command line switches.
659 * NEWS: Announce the existence of the new command line switches.
663 * MAINTAINERS: Add Jim Wilson as the maintainer for the IA64
664 code. Add Eric Chrisopher as maintainer of MN10300 port.
668 * Make comma after string after icon/control optional.
672 * readelf.c (get_machine_flags): Also print EF_MIPS_MACH field.
674 * NEWS: Mention support for MIPS32.
678 * MAINTAINERS: Add Stephane Carrez as maintainer for 68HC[11|12].
682 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
683 * configure: Rebuild.
687 * configure: Rebuilt with new libtool.m4.
691 * aclocal.m4: Regenerate.
692 * config.in: Regenerate.
693 * configure: Regenerate.
697 * strip.1: Fix stray '\' in -o formatting.
701 * configure.in: Increase version number to 2.10.91.
702 * configure: Regenerate.
703 * aclocal.m4: Regenerate.
704 * config.in: Regenerate.
705 * po/binutils.pot: Regenerate.
709 * acinclude.m4: Include libtool and gettext macros from the
711 * aclocal.m4, configure: Rebuilt.
715 * resrc.c (close_input_stream): Delete extraneous logic
719 * NEWS: Mention support for CRIS.
723 * addr2line.c: Changed email address for Ulrich Lauther.
727 * objdump.c (LONGEST_ARCH): Set to sizeof("powerpc:common").
731 * readelf.c (display_debug_pubnames): Only issue warning
732 message once. Terminate message with a new line.
733 (display_debug_aranges): Only display version 2 debug info.
737 * objcopy.c (strip_main): Silently accept -d as an alias for -g
738 for compatability with old BSD systems.
742 * NEWS: Mention i860 support.
746 * addr2line.c (main): Add const to char *.
750 * ar.c (main): Don't crash if called with no arguments
751 or only '-X32_64' as an argument.
755 * resrc.c: use "gcc -xc" instead of -xc-header
759 * readelf.c (elf/i860.h): Include.
760 (dump_relocations): Add recognition of i860 architecture.
761 (guess_is_rela): Add recognition of i860 architecture.
765 * MAINTAINERS: Add information about CGEN maintainers.
769 * nm.c (main): Ignore '-X32_64' as an option.
770 * ar.c (main): Likewise.
771 * binutils.texi (nm): Document new option.
776 * rdcoff.c (external_coff_symbol_p): K&R-ise.
780 * binutils.texi: Put back "@end table" deleted by
785 * nm.c: Add optional style to demangle switch.
786 * objdump.c: Add optional style to demangle switch.
787 * addr2line.c: Add optional style to demangle switch.
788 * binutils.texi: Document optional style to demangle
793 * MAINTAINERS: Add self as CRIS port maintainer.
794 * readelf.c: Include elf/cris.h.
795 (guess_is_rela): Handle EM_CRIS.
796 (dump_relocations): Ditto.
797 (get_machine_name): Ditto.
798 * Makefile.am: Rebuild dependencies.
799 * Makefile.in: Regenerate.
800 * po/binutils.pot: Regenerate.
804 * readelf.c (get_dynamic_type): Change "AUXILARY" to
806 (process_dynamic_segment): Print out strings for DT_CONFIG,
807 DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH.
811 * nm.c (usage): Change output of `nm --help' to include a
812 description of the purpose of the program and a detailed
813 description of the accepted options.
817 * readelf.c (process_dynamic_segment): Change DF_1_NODEPLIB
822 * readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
826 * readelf.c (get_dynamic_type): Change DT_FEATURE_1 to
828 (process_dynamic_segment): Likewise.
830 * readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT,
831 DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM.
832 (process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB,
833 DF_1_NODUMP and DF_1_CONLFAT.
837 * binutils.texi (readelf): Fix spelling typo.
841 * objdump.c (usage): Make output of `objdump --help' more
842 consistent with the rest of the GNU world. Add a line describing
843 the purpose of the program.
847 * stabs.c (parse_stab_range_type): Cast to proper type to fix
852 * readelf.c (get_dynamic_data): Add casts and use unsigned chars
854 (process_symbol_table): Ditto.
855 (procesS_extended_line_op): Ditto.
856 (display_debug_lines): Ditto.
857 (display_debug_pubnames): Ditto.
858 (read_and_display_attr): Ditto.
862 * MAINTAINERS: Add several more port specific maintainers.
866 * MAINTAINERS: Add blanket write privs for Michael Meissner.
874 * dllwrap.c: Changed mistaken dyn_string_append() calls
875 to dyn_string_append_cstr().
879 * stabs.c (parse_stab_type): Divide size in bits by 8 as binutils
880 struct debug_type stores size in bytes.
884 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
885 (CLEANFILES): Add DEPA.
886 * Makefile.in: Regenerate.
890 * ar.c: Revert incorrect 2000-06-25 patch.
891 * bucomm.c: Likewise.
895 * rdcoff (parse_coff_symbol): Treat GNU weak symbols as external.
896 (external_coff_symbol_p): New function.
897 (parse_coff): Use it.
901 * ar.c (normalize): Advance past both characters in a DOS based
902 <letter>: filepath prefix.
904 * bucomm.c (make_tempname): Likewise.
908 * objdump.c (usage): Fix description of --stabs switch.
912 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
914 * Makefile.in: Regenerate.
918 * ar.c (normalize): Correct pointer comparison when checking for
921 * bucomm.c (make_tempname): Likewise.
923 * ieee.c (ieee_start_compilation_unit): Correct pointer comparison
924 and search for backslashes in the original pathname.
925 (ieee_add_bb11): Likewise.
929 * ar.c (print_contents): Improve verbose message.
933 * dyn-string.c: Removed. Not needed with dyn-string.c in
935 * dyn-string.h: Likewise.
937 * Makefile.am: Remove references to dyn-string.c and
938 dyn-string.h. Rebuild dependency.
939 * Makefile.in: Rebuild.
943 * binutils.texi: Put a warning on copying relocatable object
944 files between two different formats.
948 * rcparse.y (control): ICON controls take an id as the first
949 parameter, not an optional string. Also, call new convenience
950 function that takes res_id's.
951 * resrc.c (define_control): missing text means zero-length string,
953 (define_icon_control): New.
954 * windres.h: declare define_icon_control.
958 * configure: Regenerate.
962 * configure.in (VERSION): Update to show this is the CVS mainline.
966 * strings.c (isgraphic): Interpret <TAB> as a printable character,
967 analogous to <SPACE>.
971 * objdump.c (display_target_list): Use bfd_close_all_done, not
972 bfd_close to fix crash caused by 2000-05-24 change.
976 * resrc.c (close_input_stream): zero out cpp_pipe after closing it.
980 * Makefile.am: Update dependencies with "make dep-am"
981 * Makefile.in: Regenerate.
985 * ar.c: Include filenames.h.
986 (normalize) [HAVE_DOS_BASED_FILE_SYSTEM]: Support backslashes
987 and drive letters in file names.
988 (main): Support backslashes and drive letters in argv[0]. Drop
989 the .exe suffix, if any, in argv[0] if is_ranlib is negative. Use
990 FILENAME_CMP instead of strcmp to compare file names.
991 (open_inarch) [__GO32__]: Don't ifdef errno != ENOENT test for
993 (do_quick_append) [__GO32__]: Ditto.
994 (get_pos_bfd, delete_members, move_members, replace_members):
995 Compare file names with FILENAME_CMP.
997 * bucomm.c: Include filenames.h.
998 (make_tempname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support mixed
999 forward/backward slashes and drive letters in file names.
1001 * ieee.c (ieee_start_compilation_unit, ieee_add_bb11): Support
1002 mixed forward/backward slashes and drive letters in file names.
1004 * strings.c (O_BINARY, setmode, SET_BINARY): Define.
1005 (main) [SET_BINARY]: Use SET_BINARY to switch stdin into binary
1008 * objcopy.c: Include filenames.h.
1009 (main) [HAVE_DOS_BASED_FILE_SYSTEM]: Drop the .exe suffix
1010 before comparing to "strip".
1011 Use FILENAME_CMP to compare file names.
1013 * arsup.c: Include filenames.h.
1014 (map_over_list, ar_delete, ar_replace, ar_extract): Use
1015 FILENAME_CMP to compare file names.
1016 (ar_open): Prepend "tmp-" instead of appending "-tmp", to create
1017 the temporary file name.
1019 * configure.in: Check for setmode.
1020 * configure: Regenerate.
1024 * objdump.c (display_target_list): Close the bfd.
1025 (display_info_table): Likewise.
1029 * objcopy.c (filter_symbols): Don't strip global symbols in
1030 relocatable object files.
1034 * size.c (usage): Associate short options with corresponding long
1035 option to give a clue as to their function.
1039 * size.c (main): Accept and ignore `-f' option.
1043 * bucomm.h (gettext, dgettext, dcgettext, textdomain,
1044 bindtextdomain): Replace defines with those from intl/libgettext.h
1045 to quieten gcc warnings.
1049 * nlmconv.c (temp_filename): Removed.
1051 * nlmconv.c (link_inputs): Use make_temp_file () instead of
1052 choose_temp_base ().
1053 * objdump.c (display_target_list): Likewise.
1054 (display_info_table): Likewise.
1058 * objcopy.c (setup_section): Add const and gettext calls for err.
1062 * readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
1063 ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
1064 ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
1065 ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
1066 and ELFOSABI_OPENBSD.
1070 * coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate.
1071 * srconv.c: Likewise.
1072 * sysdump.c: Likewise.
1076 * readelf.c (guess_is_rela): AVR uses RELA relocations.
1077 (get_machine_name): machine name for EM_AVR added.
1082 * Makefile.am (readelf.o): Add elf/ia64.h.
1083 * Makefile.in: Rebuild.
1084 * readelf.c: Include elf/ia64.h.
1085 (guess_is_rela, dump_relocations): Handle EM_IA_64.
1089 * objdump.c (disassemble_data): Set octets per byte *after*
1090 resolving arch/mach for binary files.
1094 * arlex.l: Add directives to increase lex buffer size.
1096 * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are
1097 already included by bucomm.h.
1101 * readelf.c (dynamic_segment_mips_val): Call `sprintf', not
1102 `strftime' since strftime is not available on all systems.
1103 (process_mips_specific): Ditto.
1107 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1108 --enable-build-warnings option.
1109 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1110 * Makefile.in, configure: Re-generate.
1114 * addr2line.c: Update copyright.
1115 * objcopy.1: Likewise, and title.
1116 * strings.1: Likewise.
1118 * version.c (print_version): Add 2000.
1120 * rddbg.c (read_section_stabs_debugging_info): Don't use
1121 bfd_size_type for strx to avoid printf problems if BFD64.
1123 * bucomm.c: (report): Remove `static'.
1124 Move inclusion of stdarg.h/vararg.h from here.
1125 * bucomm.h: To here.
1126 (CONST): Change all occurences to const.
1127 (report): Declare it.
1128 (bfd_fatal): Add ATTRIBUTE_NORETURN.
1129 (fatal): Add ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN.
1130 (non_fatal): Add ATTRIBUTE_PRINTF_1.
1132 * ar.c (main): Use fatal or non_fatal instead of fprintf.
1133 Correct a typo in an error message.
1134 (do_quick_append): Use non_fatal instead of fprintf.
1135 (move_members): Use fatal instead of fprintf, exit.
1136 * coffdump.c (main): Same here.
1138 * dlltool.c (display): Delete.
1140 (inform): Use `report' instead of `display'.
1141 (rvaafter): Remove trailing \n from fatal error msg.
1143 (asm_prefix): Ditto.
1144 (yyerror): Replace `warn' with `non_fatal', and remove \n.
1145 (def_name): Likewise.
1147 (scan_all_symbols): Likewise.
1148 (gen_lib_file): Likewise.
1149 (def_library): Likewise. Remove extra program_name too.
1150 (run): Remove \n from inform strings.
1151 (scan_drectve_symbols): Likewise.
1152 (add_excludes): Likewise.
1153 (scan_open_obj_file): Likewise.
1154 (gen_exp_file): Likewise.
1155 (gen_lib_file): Likewise.
1156 (process_duplicates): Likewise.
1158 * Makefile.am (dllwrap_SOURCES): Add version.c.
1159 * dllwrap.c (program_version): Delete.
1160 (print_version): Delete.
1161 (display): Always print trailing \n.
1163 (delete_temp_files): Use warn instead of fprintf. Use gettext.
1166 (usage): gettext'ify.
1167 (long_options): Add missing initialisers.
1169 * nlmconv.c (main): Use fatal/non_fatal instead of fprintf.
1170 (select_output_format): Likewise.
1171 (powerpc_mangle_relocs): Likewise.
1172 (link_inputs): Likewise.
1174 * nm.c (set_print_radix): Use fatal instead of fprintf, exit.
1175 (set_output_format): Likewise.
1176 (main): Use non_fatal instead of fprintf.
1177 (display_rel_file): Likewise.
1179 * objdump.c (slurp_symtab): Use non_fatal instead of fprintf.
1180 (slurp_dynamic_symtab): Same here.
1181 (disassemble_data): And here.
1182 (read_section_stabs): And here.
1183 (read_section_stabs): And here.
1184 (dump_bfd): And here.
1186 (objdump_sprintf): Use fatal instead of fprintf, exit.
1187 (disassemble_data): Same here.
1189 * rdcoff.c (parse_coff_type): Use non_fatal instead of fprintf.
1190 (parse_coff_struct_type): Same here.
1191 (parse_coff_enum_type): And here.
1192 (parse_coff): And here.
1193 * rddbg.c (read_debugging_info): And here.
1194 * size.c (main): And here.
1195 * windres.c (format_from_name): And here.
1196 * wrstabs.c (stab_write_symbol): Here too.
1197 (write_stabs_in_sections_debugging_info): And here.
1198 (stab_int_type): And here.
1199 (stab_struct_field): And here.
1200 (stab_typdef): And here.
1202 * rescoff.c (read_coff_rsrc): Use fatal instead of fprintf, exit.
1203 * srconv.c (main): Same here.
1204 * strings.c (main): And here.
1205 (integer_arg): And here.
1206 * sysdump.c (main): And here.
1210 * objdump.c (dump_section_header): Print CLINK and BLOCK flags.
1214 * readelf.c (decode_location_expression): Loop through multiple
1216 (read_and_display_attr): Pass in length.
1218 * readelf.c (read_and_display_attr): Add CU offset to references.
1219 (display_debug_info): Pass it in.
1223 * readelf.c (decode_ARM_machine_flags): New function.
1224 (get_machine_flags): Call decode_ARM_machine_flags for ARM
1227 (get_machine_name): Catch EM_AVR
1231 * binutils.texi: Remove optional `=' from long options that have
1232 an `=' in the argument.
1233 * objcopy.1: Here too. Remove extra space on discard-all.
1235 * binutils.texi (objcopy): Mention --redefine-sym.
1236 * objcopy.1: Here too.
1239 * objcopy.c (parse_flags): Split off flag names from error message
1240 gettext as they are not translated.
1241 (copy_main): Similarly split off option name for --add-section,
1242 --set-section-flags, --change-section-vma, --change-section-lma
1244 Some white space changes.
1247 * objcopy.c (struct redefine_node): New.
1248 (redefine_sym_list): New.
1249 (redefine_list_append): New.
1250 (lookup_sym_redefinition): New.
1251 (OPTION_REDEFINE_SYM): New.
1252 (copy_options): Add --redefine-sym option.
1253 (copy_usage): Mention it.
1254 (filter_symbols): Rename symbols on redefine_sym_list.
1255 (copy_object): Call filter_symbols if redefine_sym_list != NULL.
1256 (copy_main): Handle OPTION_REDEFINE_SYM.
1260 * readelf.c (process_symbol_table): Correctly read in symbol
1261 versioning information.
1265 * po/binutils.pot: Regenerate.
1267 * addr2line.c (usage): Restore translated part of bug string.
1268 * ar.c (usage): Likewise.
1269 * nlmconv.c (show_usage): Likewise.
1270 * nm.c (usage): Likewise.
1271 * objcopy.c (copy_usage): Likewise.
1272 (strip_usage): Likewise.
1273 * objdump.c (usage): Likewise.
1274 * readelf.c (usage): Likewise.
1275 * size.c (usage): Likewise.
1276 * strings.c (usage): Likewise.
1277 * windres.c (usage): Likewise.
1279 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1280 (DEP): Quote when passing vars to sub-make. Add warning
1282 (DEP1): Rewrite for "gcc -MM".
1283 (CLEANFILES): Add DEP2.
1284 Update dependencies.
1285 * Makefile.in: Regenerate.
1289 * Makefile.am (GENERATED_HFILES): Add rcparse.h
1290 (arparse.h): Depend on arparse.c
1291 (defparse.h, nlmheader.h, rcparse.h, sysinfo.h): Similarly.
1295 * size.c (usage): Use REPORT_BUGS_TO.
1299 * bucomm.h: #include "bin-bugs.h"
1300 * addr2line.c (usage): Use REPORT_BUGS_TO.
1301 * ar.c (usage): Likewise.
1302 * nlmconv.c (show_usage): Likewise.
1303 * nm.c (usage): Likewise.
1304 (OPTION_TARGET): Define.
1305 (long_options): Use OPTION_TARGET rather than 200.
1308 * objcopy.c (copy_usage): Use REPORT_BUGS_TO.
1309 (strip_usage): Likewise.
1310 * objdump.c (usage): Likewise.
1311 * readelf.c (usage): Likewise.
1312 * strings.c (usage): Likewise.
1313 * windres.c (usage): Likewise.
1317 * readelf.c: Include sys/types.h before sys/stat.h for ultrix.
1321 * rddbg.c (read_section_stabs_debugging_info): Catch out of range
1322 string offsets in corrupt stabs entries.
1326 * readelf.c: Include elf/avr.h
1327 (dump_relocations): Add EM_AVR case.
1331 * strings.1: Correct '-bytes' to '--bytes'.
1335 * Makefile.am (install-exec-local): Depend on
1336 install-binPROGRAMS for parallel make.
1337 * Makefile.in: Regenerated.
1342 * readelf.c (process_dynamic_segment): Add cast to make sure
1343 argument to %* is int.
1347 * configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
1351 * configure.in: Add arm-wince, mips-pe and sh-pe targets.
1352 * configure: Regenerate.
1354 * dlltool.c: Add support for sh-pe and mips-pe targets.
1355 * rescoff.c: Add support for sh-pe and mips-pe targets.
1359 * readelf.c (get_osabi_name): Handle ELFOSABI_LINUX.
1363 * readelf.c (process_symbol_table): Remove use of ELF_ST_OTHER.
1368 * readelf.c (process_version_sections): Add casts to make sure
1369 argument to %* is an int.
1370 (process_mips_specific): Add casts to make printf arguments match
1375 * objdump.c (dump_section_header): Change `opb' to unsigned.
1376 (find_symbol_for_address): Same here.
1377 (disassemble_data): And here. Change `addr_offset',
1378 `stop_offset', `nextstop_offset' to unsigned long.
1379 (dump_data): Change opb to unsigned.
1383 * resrc.c: Remove unmatched #if for cygwin.
1387 * binutils.texi: Document the change of flavor name from atpcs-special
1388 to special-atpcs to prevent name conflict in gdb.
1392 * objdump.c (show_line): Fix bug preventing printing of the very
1393 first line (line zero) of a file when interlisting source and
1394 assembly. Added option to print entire context from start of file
1395 when the first line from that file is encountered.
1399 * objdump.c (dump_section_header, find_symbol_for_address,
1400 show_line, disassemble_bytes, disassemble_data, dump_data):
1401 distinguish between octets and bytes.
1405 * nm.c (print_symbol_info_bsd): Use bfd_is_undefined_symclass to
1406 check to unresolved symbols.
1407 (print_symbol_info_sysv): Ditto.
1408 (print_symbol_info_posix): Ditto.
1410 * binutils.texi: Document new 'V' symclass flag for nm.
1414 * binutils.texi (objdump): Document new ARM specific
1415 disassembler options.
1417 * objdump.c (usage): Call disassembler_usage().
1421 * readelf.c (get_dynamic_flags): Return buff.
1422 (process_dynamic_segment): Don't pass error strings to printf
1424 (read_and_display_attr): Use lx and ld to print longs.
1425 (process_corefile_note_segment): Cast bfd_vma to unsigned long
1431 * readelf.c (get_osabi_name): Recognise ELFOSABI_ARM.
1435 * debug.c (debug_name_type): Return DEBUG_TYPE_NULL rather than
1437 (debug_tag_type): Here too.
1438 * ieee.c (ieee_builtin_type): And here.
1439 * stabs.c (parse_stab_type, parse_stab_array_type): And here.
1443 * readelf.c (get_machine_name): Change EM_S370 to return "IBM
1448 * readelf.c (get_dynamic_type): Remove DT_ENCODING.
1452 * readelf.c (get_note_type): Display NT_WIN32PSTATUS notes.
1456 * windres.c (long_options): Add --use-temp-file and
1457 --no-use-temp-file options.
1461 * windres.h: Update read_rc_file prototype.
1463 * resrc.c (cpp_temp_file): New static variable.
1464 (istream_type): New static variable.
1465 (close_pipe): Delete function.
1466 (run_cmd): New static function.
1467 (open_input_stream): New static function.
1468 (close_input_stream): New static function.
1469 (look_for_default): Handle DOS directory separator. Use
1470 open_input_stream instead of popen.
1471 (read_rc_file): Likewise.
1473 * binutils.texi: Document --use-temp-file, --no-use-temp-file
1478 * dlltool.c (create_compat_implib): New variable.
1479 (gen_exp_file): Use.
1480 (make_one_lib_file): Use.
1481 (long_options): Add --compat-implib option.
1485 * dllwrap.c (enum target_type): Rename MINGW32_TARGET to MINGW_TARGET.
1486 (main): Use. Don't look for "32" in cygwin and mingw target names.
1490 * binutils.texi: Document new, ARM specific disassembler
1491 command line switch "-M force-thumb".
1493 For older changes see ChangeLog-9899
1499 version-control: never