3 * readelf.c (display_debug_info): Add to abbrev_offset the addend
4 of any RELA relocation for the abbrev_offset memory location that
5 refers to the .debug_abbrev section symbol.
9 * readelf.c (process_file): Return 0 if OK, otherwise return 1.
10 (main): Return process_file ().
14 * doc/binutils.texi: Use "Thumb" not "THUMB".
19 * objdump.c (disassemble_data): Fill in section member of the
20 disasm_info structure.
24 * configure.in: Added --with-windres option.
25 * configure: Regenerated.
29 * doc/binutils.texi: Use @command{name} for commands;
30 use @option{-opt} for options; use @table @env for list of options;
31 remove spaces arround [ | ] in synopsis.
33 * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for the
38 * objcopy.c: Fix formatting.
39 (section_rename): New structure.
40 (OPTION_RENAME_SECTION): New switch.
41 (copy_usage): Document new switch.
42 (add_section_rename): New function: Add a node to the section
44 (find_section_rename): New function: Find the new name and
46 (setup_section): Call find_section_name to determine the name
47 of the output section.
48 (copy_main): Handle OPTION_RENAME_SECTION.
49 * binutils.texi: Document new switch.
50 * NEWS: Mention new switch.
60 * bucomm.c (list_supported_architectures): New function.
61 * bucomm.h (list_supported_architectures): Declare.
62 * objdump.c (usage): Call the above.
66 * objdump.c (SKIP_ZEROES): Only define it if it is not already defined.
67 (SKIP_ZEROES_AT_END): Only define it if it is not already defined.
71 * README: Update for 2.11. Change bug reporting email address.
72 * MAINTAINERS: Tidy up. Change bug reporting email address.
76 * resres.c (write_res_header): Align header size.
77 (res_align_file): Calculate alignment correctly.
79 * rcparse.y (styles): use SUBLANG_SHIFT instead of 8 (or the more
81 * resrc.c (write_rc_resource): Likewise.
82 * windres.h (SUBLANG_SHIFT): Define - as 10.
86 * MAINTAINERS: Add Christian Groessler as maintainer for z8k port.
90 * MAINTAINERS: Add notes about branch checkins.
94 * readelf.c (display_debug_macinfo): New function, display
95 .debug_macinfo section.
96 (do_debug_macinfo): New variable.
97 (parse_args): Handle "-w[mM]" to mean display macro info.
98 (process_section_headers): Handle debug_macinfo.
99 (debug_displays): Replace unsupported function with macinfo
100 function for .debug_macinfo display.
101 * doc/binutils.texi: Document new command line switch.
102 * NEWS: Document new feature of readelf.
106 * objcopy.c (filter_symbols): Don't turn undefined symbols
111 * doc/Makefile.am (addr2line.1): Use addr2line.pod instead of
114 (dlltool.1): Likewise.
115 (nlmconv.1): Likewise.
117 (objcopy.1): Likewise.
118 (objdump.1): Likewise.
119 (ranlib.1): Likewise.
120 (readelf.1): Likewise.
122 (strings.1): Likewise.
124 (windres.1): Likewise.
126 ($(DEMANGLER_NAME).1): Also substitute cxxfilt with
129 * doc/Makefile.in: Regenerated.
133 * MAINTAINERS: Change MIPS maintainer to Eric Christopher.
137 * readelf.c: Support DWARF 2.1 tags, encodings, languages.
141 * readelf.c: Support DWARF 2.1 attributes.
145 * readelf.c (GET_DATA_ALLOC): Remove.
147 (get_data): New function combining above macros, with an extra
149 (slurp_rela_relocs): Use get_data, and catch error return.
150 (slurp_rel_relocs): Likewise.
151 (get_32bit_program_headers): Likewise.
152 (get_64bit_program_headers): Likewise.
153 (get_32bit_section_headers): Likewise.
154 (get_64bit_section_headers): Likewise.
155 (get_32bit_elf_symbols): Likewise.
156 (get_64bit_elf_symbols): Likewise.
157 (process_section_headers): Likewise.
158 (process_relocs): Likewise.
159 (slurp_ia64_unwind_table): Likewise.
160 (process_unwind): Likewise.
161 (get_32bit_dynamic_segment): Likewise.
162 (get_64bit_dynamic_segment): Likewise.
163 (process_dynamic_segment): Likewise.
164 (process_version_sections): Likewise.
165 (process_symbol_table): Likewise.
166 (dump_section): Likewise.
167 (display_debug_info): Likewise.
168 (display_debug_section): Likewise.
169 (process_section_contents): Likewise.
170 (process_corefile_note_segment): Likewise.
171 (process_mips_specific): Likewise. Also free econf32, econf64.
175 * readelf.c (dump_relocations): Print "bad symbol index" if
176 symtab == NULL with non-zero symtab_index.
177 (process_relocs): Don't bomb if reloc section has no symsec.
181 * objcopy.c (strip_main): Revert the change made on 2001-05-30
183 (copy_main): Apply the the change made to strip_main on
184 2001-05-30 by accident.
188 * unwind-ia64.c (unw_decode_x1): Add unused attribute for
190 (unw_decode_x2): Likewise.
191 (unw_decode_x3): Likewise.
192 (unw_decode_x4): Likewise.
196 * MAINTAINERS: Add myself as M88k maintainer.
200 * objcopy.c (strip_main): Support -o or --output-file command lien
205 * doc/Makefile.in: Regenerated.
209 * readelf.c: Restore formatting.
213 * Makefile.am: Move documentation into doc subdirectory.
214 * Makefile.in: Regenerated.
215 * binutils.texi: Move into doc subdirectory.
216 * addr2line.1: Removed.
218 * dlltool.1: Likewise.
219 * nlmconv.1: Likewise.
221 * objcopy.1: Likewise.
222 * objdump.1: Likewise.
223 * ranlib.1: Likewise.
224 * readelf.1: Likewise.
226 * strings.1: Likewise.
228 * windres.1: Likewise.
229 * cxxfilt.man: Likewise.
230 * doc: New Directory.
231 * doc/Makefile.am: New file.
232 * doc/Makefile.in: Generate.
236 * NEWS: Fix a typo. Mention hppa64-elf. Add binutils-2.11 marker.
240 * MAINTAINERS: Update my email address.
244 * objcopy.c: Add new switches: --keep-global-symbol,
245 --keep-symbols, --localize-symbols, --keep-global-symbols and
247 * binutils.texi: Document new switches.
248 * objcopy.1: Regenerate.
249 * NEWS: Announce new feature.
253 * readelf.c (display_debug_frames): Fix warnings: Remove unused
254 variables, fix format strings.
258 * objdump.c (disassemble_bytes): Remove section VMA adjustment
259 when computing the address of the line to show.
263 * readelf.c (do_debug_frames_interp): New.
264 (byte_get_little_endian): If BFD64, always read entire 8-byte fields.
265 (byte_get_big_endian): Likewise.
266 (parse_args) ['F']: Set do_debug_frames_interp.
267 (Frame_Chunk): Make data_factor signed, add fde_encoding.
268 (frame_display_row): Don't trunc pc_begin to int.
269 (size_of_encoded_value): New.
270 (display_debug_frames): Handle 64-bit targets. Print raw data
271 unless do_debug_frames_interp.
272 (debug_displays): Remove duplicate .debug_frame.
276 * readelf.c: Replace uses of EM_MIPS_RS4_BE with EM_MIPS_RS3_LE.
277 The former constant was never in active use and is used otherwise
282 * readelf.c (process_unwind): Print all unwind sections, not just
287 * readelf.c (process_unwind): Remove const specifier.
291 * strings.c (isgraphic): Do not use isascii() unless it is needed
292 for isprint() to work.
293 (main): Set the locale domain to LC_ALL not just LC_MESSAGES.
297 * NEWS: Announce support for OpenRISC.
301 * dlltool.c (do_default_excludes): Initialise to true.
305 * MAINTAINERS: Update my email address
306 * nm.c (print_symbol_info_bsd): Use a simple printf string.
310 * readelf.c (display_debug_lines): Fix typo for "Prologue".
314 * readelf.c (process_unwind): Just return if do_unwind is 0.
318 * dlltool.c (make_one_lib_file): Fix section flags for
319 .text, .data and .bss in stub ds*.o files to match those
324 * readelf.c (process_unwind): Only do unwind sections for
329 * Makefile.am ($(srcdir)/dlltool.1): Remove the extra target.
330 * Makefile.in: Regenerate.
334 * binutils.texi (nm): Fix texi syntax.
338 * binutils.texi: Put @c man begin and @c man end indications
339 to generate man pages using texi2pod and pod2man. Put @c man title
340 to identify each man. Add SEEALSO entries.
341 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
342 (man_MANS): Add dlltool.1, nlmconv.1, readelf.1, windres.1,
344 (*.1): Build the man pages from binutils.texi.
345 * Makefile.in: Regenerate.
349 * defparse.y (opt_equal_name): allow "." in name.
350 * dlltool.c (def_exports): Added ability to generate forwarded exports.
351 (gen_exp_file): Likewise.
355 * NEWS: Document addition of -B switch to objcopy.
356 * binutils.texi: Document addition of -B switch to objcopy.
357 * objcopy.c: (copy_options): Add --binary-architecture.
358 (copy_usage): Document -B/--binary-architecture.
359 (copy_main): Support -B/--binary-architecture. Set
360 bfd_external_binary_architecture.
364 * readelf.c (guess_is_rela): Handle EM_S390_OLD.
365 (dump_relocations): Likewise.
366 (get_machine_name): Likewise.
370 * readelf.c: (struct unw_aux_info): Remove const modifier for
372 (process_unwind): Remove non-K&R compliant LHS type cast in call
373 to GET_DATA_ALLOC macro.
377 * readelf.c (decode_ARM_machine_flags): Explicitly mention which
378 ABI is in use; remove ambiguity between the "unknown" EABI and
379 unrecognised ABIs. Handle version 2 ARM EABI. Update uses of
380 renamed EF_xx constants.
384 * configure.in (BFD_VERSION): New.
385 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
386 * configure: Regenerate.
387 * Makefile.am: Run "make dep-am"
388 * Makefile.in: Regenerate.
392 * MAINTAINERS: Add "Obvious Fix" rule.
396 * unwind-ia64.c: Don't use ANSI C preprocessor stringisation and string
397 literal concatenation.
401 * readelf.c (struct unw_aux_info): Remove const from the info member.
402 (process_unwind): Don't type-cast the third argument to the
403 GET_DATA_ALLOC macro.
407 * readelf.c (dump_relocations): Free corrected allocated
409 (process_unwind): Fix compile time warning.
413 * binutils.texi: Document new --unwind option to readelf.
417 * readelf.c: Add linux target for S/390.
421 * nm.c (print_symbol_info_bsd): Don't #ifdef inside printf in case
426 * acinclude.m4 (AM_PROG_LEX): Override installed definition.
427 * aclocal.m4: Regenerate.
428 * configure: Regenerate.
432 * bucomm.c (bfd_target_vector): Change extern array to pointer.
433 * objdump.c (bfd_target_vector): Likewise.
437 * readelf.c (process_unwind): New function.
438 (slurp_ia64_unwind_table): Ditto.
439 (dump_ia64_unwind): Ditto.
440 (find_symbol_for_address): Ditto.
441 (slurp_rela_relocs): New function (split off from dump_relocations()).
442 (slurp_rel_relocs): Ditto.
443 (parse_args): Handle '-u' option.
445 * unwind-ia64.c: New file.
446 * unwind-ia64.h: New file.
447 * Makefile.am: Include unwind-ia64.c in readelf build.
448 * Makefile.in: Regenerate.
449 * po/binutils.pot: Regenerate.
453 * configure.in (OBJDUMP_DEFS): Match `arm*-*', not just `arm-*'.
454 * configure: Regenerate.
458 * ieee.c (ieee_add_bb11): Don't check for backslashes
459 unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
463 * ieee.c: Update copyright.
464 (ieee_start_compilation_unit): Don't check for backslashes
465 unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
467 * stabs.c: Update copyright. Include "filenames.h".
468 (parse_stab): Use IS_ABSOLUTE_PATH. Ignore N_WARNING stabs.
472 * readelf.c (process_version_sections): Check if VERDEF or VERNEED
473 sections are present before using them. Remove code duplication.
474 (process_symbol_table): Check if VERDEF or VERNEED sections are
475 present before using them.
479 * objcopy.c (copy_object): Fail if attempting to convert the
480 endianness of the input object file.
482 * binutils.texi: Explain that objcopy cannot convert endianness.
486 * readelf.c (string_table_length): New variable.
487 (SECTION_NAME): Catch out of range indices and missing section
489 (process_section_headers): Delete useless local variable
490 string_table_offset. Set the value of string_table_length
491 after loading the string table.
492 (process_mips_specific): Use SECTION_NAME macro.
493 (process_file): Set string_table_length to 0 when it is freed.
497 * version.c (print_version): Update copyright date.
501 * readelf.c (dump_relocations): Include selection with EM_ARC.
502 (get_machine_name) Update name to "ARC".
506 * Makefile.am: Add rule to build objdump.o from objdump.c and
508 * Makefile.in: Regenerate.
510 * configure.in: Define OBJDUMP_DEFS. Default to empty.
511 (arm, xscale, d10v): For these targets define OBJDUMP_DEFS to
512 -DDISASSEMBLER_NEEDS_RELOCS.
513 * configure: Regenerate.
515 * objdump.c (disassemble_bytes): If DISASSEMBLER_NEEDS_RELOCS
516 is defined read in the relocs even if dump_reloc_info is
521 * binutils.texi (Bug Reporting): Replace `bug-gnu-utils' with
527 * dlltool.c: Add missing support for arm-epoc-pe.
528 * configure.in: Add missing support for arm-epoc-pe.
529 * configure: Regenerate.
533 * MAINTAINERS: Add Diego Novillo as a maintainer for the Intel
534 Mode parts of the x86 port.
538 * readelf.c (guess_is_rela): Add EM_X86_64.
539 (dump_relocations): Add EM_X86_64.
540 (get_machine_name): Add EM_X86_64.
541 Include "elf/x86-64.h".
545 * readelf.c: Fix formatting.
549 * MAINTAINERS: Add myself and Andreas Jaeger as x86_64 maintainer.
553 * readelf.c (display_debug_frames): Only display columns that are
554 referenced by the frame debug info.
558 * MAINTAINERS: Add Jason Merrill as DWARF2 maintainer.
562 * readelf.c (process_section_headers): Handle linkonce.wi sections.
563 (display_debug_section): Likewise.
564 (display_debug_info): Display CU header before bailing.
568 * readelf.c (get_machine_flags): Recognize MIPS32 ISA in
569 EF_MIPS_ARCH. Replace use of E_MIPS_MACH_MIPS32 with
570 E_MIPS_MACH_MIPS32_4K and adjust printed CPU name similarly.
572 * readelf.c (get_machine_flags): Add cases for E_MIPS_ARCH_5,
575 * readelf.c (get_machine_flags): Add case for
580 * readelf.c (frame_display_row): Output 's' for DW_CFA_same_value.
584 * MAINTAINERS: Add Jörn Rennecke and self as SH maintainers.
585 Change sourceware.cygnus.com to sources.redhat.com.
586 Fix typo for "amongst".
590 * strip.1 (COPYING): Mention that the GNU Free Documentation
591 License is present in the sources, but not the output, and
592 also available from the GNU website.
593 (GNU Free Documentation License): Comment out this section.
602 * addr2line.1: Ditto.
606 * readelf.c (usage): Add -wf (--debug-dump=frames) option.
607 (parse_args): Support -wf option.
608 (process_section_headers): Ditto.
609 (debug_displays): Ditto.
610 (display_debug_frames): New, dump *_frame sections.
611 (frame_need_space): Support for above.
612 (frame_display_row): Ditto.
613 * binutils.texi: Document it.
617 * NEWS: Announce support for v5t, v5te and XScale.
621 * readelf.c (get_machine_name): Add EM_JAVELIN, EM_FIREPATH,
622 EM_ZSP, EM_MMIX, EM_HUANY, EM_PRISM.
623 (get_section_type_name): Add SHT_GROUP and SHT_SYMTAB_SHNDX.
624 (get_elf_section_flags: Add SHF_GROUP.
625 (process_section_headers): Adjust output for 32-bit binaries
626 to look nice on an 80 column terminal.
630 * readelf.c (get_osabi_name): Change ELFOSABI_MONTEREY to
635 * readelf.c (display_debug_lines): Adjust last change to
636 use sizeof (external->li_length).
640 * readelf.c (display_debug_lines): Fix section length check
641 and end_of_sequence computation.
645 * binutils.texi: Add GNU Free Documentation License.
646 * objcopy.1: Add GNU Free Documentation License.
647 * objdump.1: Add GNU Free Documentation License.
648 * addr2line.1: Add GNU Free Documentation License.
649 * ar.1: Add GNU Free Documentation License.
650 * nlmconv.1: Add GNU Free Documentation License.
651 * nm.1: Add GNU Free Documentation License.
652 * ranlib.1: Add GNU Free Documentation License.
653 * size.1: Add GNU Free Documentation License.
654 * strings.1: Add GNU Free Documentation License.
655 * strip.1: Add GNU Free Documentation License.
659 * objcopy.c (--srec-len=nn): New parameter to set the
660 maximum length of generated Srecords.
661 (--srec-forceS3): New parameter that restricts the generation of
662 Srecords to type S3 only.
663 * binutils.texi: Document new command line switches.
664 * objcopy.1: Docuemnt the new command line switches.
665 * NEWS: Announce the existence of the new command line switches.
669 * MAINTAINERS: Add Jim Wilson as the maintainer for the IA64
670 code. Add Eric Chrisopher as maintainer of MN10300 port.
674 * Make comma after string after icon/control optional.
678 * readelf.c (get_machine_flags): Also print EF_MIPS_MACH field.
680 * NEWS: Mention support for MIPS32.
684 * MAINTAINERS: Add Stephane Carrez as maintainer for 68HC[11|12].
688 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
689 * configure: Rebuild.
693 * configure: Rebuilt with new libtool.m4.
697 * aclocal.m4: Regenerate.
698 * config.in: Regenerate.
699 * configure: Regenerate.
703 * strip.1: Fix stray '\' in -o formatting.
707 * configure.in: Increase version number to 2.10.91.
708 * configure: Regenerate.
709 * aclocal.m4: Regenerate.
710 * config.in: Regenerate.
711 * po/binutils.pot: Regenerate.
715 * acinclude.m4: Include libtool and gettext macros from the
717 * aclocal.m4, configure: Rebuilt.
721 * resrc.c (close_input_stream): Delete extraneous logic
725 * NEWS: Mention support for CRIS.
729 * addr2line.c: Changed email address for Ulrich Lauther.
733 * objdump.c (LONGEST_ARCH): Set to sizeof("powerpc:common").
737 * readelf.c (display_debug_pubnames): Only issue warning
738 message once. Terminate message with a new line.
739 (display_debug_aranges): Only display version 2 debug info.
743 * objcopy.c (strip_main): Silently accept -d as an alias for -g
744 for compatability with old BSD systems.
748 * NEWS: Mention i860 support.
752 * addr2line.c (main): Add const to char *.
756 * ar.c (main): Don't crash if called with no arguments
757 or only '-X32_64' as an argument.
761 * resrc.c: use "gcc -xc" instead of -xc-header
765 * readelf.c (elf/i860.h): Include.
766 (dump_relocations): Add recognition of i860 architecture.
767 (guess_is_rela): Add recognition of i860 architecture.
771 * MAINTAINERS: Add information about CGEN maintainers.
775 * nm.c (main): Ignore '-X32_64' as an option.
776 * ar.c (main): Likewise.
777 * binutils.texi (nm): Document new option.
782 * rdcoff.c (external_coff_symbol_p): K&R-ise.
786 * binutils.texi: Put back "@end table" deleted by
791 * nm.c: Add optional style to demangle switch.
792 * objdump.c: Add optional style to demangle switch.
793 * addr2line.c: Add optional style to demangle switch.
794 * binutils.texi: Document optional style to demangle
799 * MAINTAINERS: Add self as CRIS port maintainer.
800 * readelf.c: Include elf/cris.h.
801 (guess_is_rela): Handle EM_CRIS.
802 (dump_relocations): Ditto.
803 (get_machine_name): Ditto.
804 * Makefile.am: Rebuild dependencies.
805 * Makefile.in: Regenerate.
806 * po/binutils.pot: Regenerate.
810 * readelf.c (get_dynamic_type): Change "AUXILARY" to
812 (process_dynamic_segment): Print out strings for DT_CONFIG,
813 DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH.
817 * nm.c (usage): Change output of `nm --help' to include a
818 description of the purpose of the program and a detailed
819 description of the accepted options.
823 * readelf.c (process_dynamic_segment): Change DF_1_NODEPLIB
828 * readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
832 * readelf.c (get_dynamic_type): Change DT_FEATURE_1 to
834 (process_dynamic_segment): Likewise.
836 * readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT,
837 DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM.
838 (process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB,
839 DF_1_NODUMP and DF_1_CONLFAT.
843 * binutils.texi (readelf): Fix spelling typo.
847 * objdump.c (usage): Make output of `objdump --help' more
848 consistent with the rest of the GNU world. Add a line describing
849 the purpose of the program.
853 * stabs.c (parse_stab_range_type): Cast to proper type to fix
858 * readelf.c (get_dynamic_data): Add casts and use unsigned chars
860 (process_symbol_table): Ditto.
861 (procesS_extended_line_op): Ditto.
862 (display_debug_lines): Ditto.
863 (display_debug_pubnames): Ditto.
864 (read_and_display_attr): Ditto.
868 * MAINTAINERS: Add several more port specific maintainers.
872 * MAINTAINERS: Add blanket write privs for Michael Meissner.
880 * dllwrap.c: Changed mistaken dyn_string_append() calls
881 to dyn_string_append_cstr().
885 * stabs.c (parse_stab_type): Divide size in bits by 8 as binutils
886 struct debug_type stores size in bytes.
890 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
891 (CLEANFILES): Add DEPA.
892 * Makefile.in: Regenerate.
896 * ar.c: Revert incorrect 2000-06-25 patch.
897 * bucomm.c: Likewise.
901 * rdcoff (parse_coff_symbol): Treat GNU weak symbols as external.
902 (external_coff_symbol_p): New function.
903 (parse_coff): Use it.
907 * ar.c (normalize): Advance past both characters in a DOS based
908 <letter>: filepath prefix.
910 * bucomm.c (make_tempname): Likewise.
914 * objdump.c (usage): Fix description of --stabs switch.
918 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
920 * Makefile.in: Regenerate.
924 * ar.c (normalize): Correct pointer comparison when checking for
927 * bucomm.c (make_tempname): Likewise.
929 * ieee.c (ieee_start_compilation_unit): Correct pointer comparison
930 and search for backslashes in the original pathname.
931 (ieee_add_bb11): Likewise.
935 * ar.c (print_contents): Improve verbose message.
939 * dyn-string.c: Removed. Not needed with dyn-string.c in
941 * dyn-string.h: Likewise.
943 * Makefile.am: Remove references to dyn-string.c and
944 dyn-string.h. Rebuild dependency.
945 * Makefile.in: Rebuild.
949 * binutils.texi: Put a warning on copying relocatable object
950 files between two different formats.
954 * rcparse.y (control): ICON controls take an id as the first
955 parameter, not an optional string. Also, call new convenience
956 function that takes res_id's.
957 * resrc.c (define_control): missing text means zero-length string,
959 (define_icon_control): New.
960 * windres.h: declare define_icon_control.
964 * configure: Regenerate.
968 * configure.in (VERSION): Update to show this is the CVS mainline.
972 * strings.c (isgraphic): Interpret <TAB> as a printable character,
973 analogous to <SPACE>.
977 * objdump.c (display_target_list): Use bfd_close_all_done, not
978 bfd_close to fix crash caused by 2000-05-24 change.
982 * resrc.c (close_input_stream): zero out cpp_pipe after closing it.
986 * Makefile.am: Update dependencies with "make dep-am"
987 * Makefile.in: Regenerate.
991 * ar.c: Include filenames.h.
992 (normalize) [HAVE_DOS_BASED_FILE_SYSTEM]: Support backslashes
993 and drive letters in file names.
994 (main): Support backslashes and drive letters in argv[0]. Drop
995 the .exe suffix, if any, in argv[0] if is_ranlib is negative. Use
996 FILENAME_CMP instead of strcmp to compare file names.
997 (open_inarch) [__GO32__]: Don't ifdef errno != ENOENT test for
999 (do_quick_append) [__GO32__]: Ditto.
1000 (get_pos_bfd, delete_members, move_members, replace_members):
1001 Compare file names with FILENAME_CMP.
1003 * bucomm.c: Include filenames.h.
1004 (make_tempname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support mixed
1005 forward/backward slashes and drive letters in file names.
1007 * ieee.c (ieee_start_compilation_unit, ieee_add_bb11): Support
1008 mixed forward/backward slashes and drive letters in file names.
1010 * strings.c (O_BINARY, setmode, SET_BINARY): Define.
1011 (main) [SET_BINARY]: Use SET_BINARY to switch stdin into binary
1014 * objcopy.c: Include filenames.h.
1015 (main) [HAVE_DOS_BASED_FILE_SYSTEM]: Drop the .exe suffix
1016 before comparing to "strip".
1017 Use FILENAME_CMP to compare file names.
1019 * arsup.c: Include filenames.h.
1020 (map_over_list, ar_delete, ar_replace, ar_extract): Use
1021 FILENAME_CMP to compare file names.
1022 (ar_open): Prepend "tmp-" instead of appending "-tmp", to create
1023 the temporary file name.
1025 * configure.in: Check for setmode.
1026 * configure: Regenerate.
1030 * objdump.c (display_target_list): Close the bfd.
1031 (display_info_table): Likewise.
1035 * objcopy.c (filter_symbols): Don't strip global symbols in
1036 relocatable object files.
1040 * size.c (usage): Associate short options with corresponding long
1041 option to give a clue as to their function.
1045 * size.c (main): Accept and ignore `-f' option.
1049 * bucomm.h (gettext, dgettext, dcgettext, textdomain,
1050 bindtextdomain): Replace defines with those from intl/libgettext.h
1051 to quieten gcc warnings.
1055 * nlmconv.c (temp_filename): Removed.
1057 * nlmconv.c (link_inputs): Use make_temp_file () instead of
1058 choose_temp_base ().
1059 * objdump.c (display_target_list): Likewise.
1060 (display_info_table): Likewise.
1064 * objcopy.c (setup_section): Add const and gettext calls for err.
1068 * readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
1069 ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
1070 ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
1071 ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
1072 and ELFOSABI_OPENBSD.
1076 * coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate.
1077 * srconv.c: Likewise.
1078 * sysdump.c: Likewise.
1082 * readelf.c (guess_is_rela): AVR uses RELA relocations.
1083 (get_machine_name): machine name for EM_AVR added.
1088 * Makefile.am (readelf.o): Add elf/ia64.h.
1089 * Makefile.in: Rebuild.
1090 * readelf.c: Include elf/ia64.h.
1091 (guess_is_rela, dump_relocations): Handle EM_IA_64.
1095 * objdump.c (disassemble_data): Set octets per byte *after*
1096 resolving arch/mach for binary files.
1100 * arlex.l: Add directives to increase lex buffer size.
1102 * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are
1103 already included by bucomm.h.
1107 * readelf.c (dynamic_segment_mips_val): Call `sprintf', not
1108 `strftime' since strftime is not available on all systems.
1109 (process_mips_specific): Ditto.
1113 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1114 --enable-build-warnings option.
1115 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1116 * Makefile.in, configure: Re-generate.
1120 * addr2line.c: Update copyright.
1121 * objcopy.1: Likewise, and title.
1122 * strings.1: Likewise.
1124 * version.c (print_version): Add 2000.
1126 * rddbg.c (read_section_stabs_debugging_info): Don't use
1127 bfd_size_type for strx to avoid printf problems if BFD64.
1129 * bucomm.c: (report): Remove `static'.
1130 Move inclusion of stdarg.h/vararg.h from here.
1131 * bucomm.h: To here.
1132 (CONST): Change all occurences to const.
1133 (report): Declare it.
1134 (bfd_fatal): Add ATTRIBUTE_NORETURN.
1135 (fatal): Add ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN.
1136 (non_fatal): Add ATTRIBUTE_PRINTF_1.
1138 * ar.c (main): Use fatal or non_fatal instead of fprintf.
1139 Correct a typo in an error message.
1140 (do_quick_append): Use non_fatal instead of fprintf.
1141 (move_members): Use fatal instead of fprintf, exit.
1142 * coffdump.c (main): Same here.
1144 * dlltool.c (display): Delete.
1146 (inform): Use `report' instead of `display'.
1147 (rvaafter): Remove trailing \n from fatal error msg.
1149 (asm_prefix): Ditto.
1150 (yyerror): Replace `warn' with `non_fatal', and remove \n.
1151 (def_name): Likewise.
1153 (scan_all_symbols): Likewise.
1154 (gen_lib_file): Likewise.
1155 (def_library): Likewise. Remove extra program_name too.
1156 (run): Remove \n from inform strings.
1157 (scan_drectve_symbols): Likewise.
1158 (add_excludes): Likewise.
1159 (scan_open_obj_file): Likewise.
1160 (gen_exp_file): Likewise.
1161 (gen_lib_file): Likewise.
1162 (process_duplicates): Likewise.
1164 * Makefile.am (dllwrap_SOURCES): Add version.c.
1165 * dllwrap.c (program_version): Delete.
1166 (print_version): Delete.
1167 (display): Always print trailing \n.
1169 (delete_temp_files): Use warn instead of fprintf. Use gettext.
1172 (usage): gettext'ify.
1173 (long_options): Add missing initialisers.
1175 * nlmconv.c (main): Use fatal/non_fatal instead of fprintf.
1176 (select_output_format): Likewise.
1177 (powerpc_mangle_relocs): Likewise.
1178 (link_inputs): Likewise.
1180 * nm.c (set_print_radix): Use fatal instead of fprintf, exit.
1181 (set_output_format): Likewise.
1182 (main): Use non_fatal instead of fprintf.
1183 (display_rel_file): Likewise.
1185 * objdump.c (slurp_symtab): Use non_fatal instead of fprintf.
1186 (slurp_dynamic_symtab): Same here.
1187 (disassemble_data): And here.
1188 (read_section_stabs): And here.
1189 (read_section_stabs): And here.
1190 (dump_bfd): And here.
1192 (objdump_sprintf): Use fatal instead of fprintf, exit.
1193 (disassemble_data): Same here.
1195 * rdcoff.c (parse_coff_type): Use non_fatal instead of fprintf.
1196 (parse_coff_struct_type): Same here.
1197 (parse_coff_enum_type): And here.
1198 (parse_coff): And here.
1199 * rddbg.c (read_debugging_info): And here.
1200 * size.c (main): And here.
1201 * windres.c (format_from_name): And here.
1202 * wrstabs.c (stab_write_symbol): Here too.
1203 (write_stabs_in_sections_debugging_info): And here.
1204 (stab_int_type): And here.
1205 (stab_struct_field): And here.
1206 (stab_typdef): And here.
1208 * rescoff.c (read_coff_rsrc): Use fatal instead of fprintf, exit.
1209 * srconv.c (main): Same here.
1210 * strings.c (main): And here.
1211 (integer_arg): And here.
1212 * sysdump.c (main): And here.
1216 * objdump.c (dump_section_header): Print CLINK and BLOCK flags.
1220 * readelf.c (decode_location_expression): Loop through multiple
1222 (read_and_display_attr): Pass in length.
1224 * readelf.c (read_and_display_attr): Add CU offset to references.
1225 (display_debug_info): Pass it in.
1229 * readelf.c (decode_ARM_machine_flags): New function.
1230 (get_machine_flags): Call decode_ARM_machine_flags for ARM
1233 (get_machine_name): Catch EM_AVR
1237 * binutils.texi: Remove optional `=' from long options that have
1238 an `=' in the argument.
1239 * objcopy.1: Here too. Remove extra space on discard-all.
1241 * binutils.texi (objcopy): Mention --redefine-sym.
1242 * objcopy.1: Here too.
1245 * objcopy.c (parse_flags): Split off flag names from error message
1246 gettext as they are not translated.
1247 (copy_main): Similarly split off option name for --add-section,
1248 --set-section-flags, --change-section-vma, --change-section-lma
1250 Some white space changes.
1253 * objcopy.c (struct redefine_node): New.
1254 (redefine_sym_list): New.
1255 (redefine_list_append): New.
1256 (lookup_sym_redefinition): New.
1257 (OPTION_REDEFINE_SYM): New.
1258 (copy_options): Add --redefine-sym option.
1259 (copy_usage): Mention it.
1260 (filter_symbols): Rename symbols on redefine_sym_list.
1261 (copy_object): Call filter_symbols if redefine_sym_list != NULL.
1262 (copy_main): Handle OPTION_REDEFINE_SYM.
1266 * readelf.c (process_symbol_table): Correctly read in symbol
1267 versioning information.
1271 * po/binutils.pot: Regenerate.
1273 * addr2line.c (usage): Restore translated part of bug string.
1274 * ar.c (usage): Likewise.
1275 * nlmconv.c (show_usage): Likewise.
1276 * nm.c (usage): Likewise.
1277 * objcopy.c (copy_usage): Likewise.
1278 (strip_usage): Likewise.
1279 * objdump.c (usage): Likewise.
1280 * readelf.c (usage): Likewise.
1281 * size.c (usage): Likewise.
1282 * strings.c (usage): Likewise.
1283 * windres.c (usage): Likewise.
1285 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1286 (DEP): Quote when passing vars to sub-make. Add warning
1288 (DEP1): Rewrite for "gcc -MM".
1289 (CLEANFILES): Add DEP2.
1290 Update dependencies.
1291 * Makefile.in: Regenerate.
1295 * Makefile.am (GENERATED_HFILES): Add rcparse.h
1296 (arparse.h): Depend on arparse.c
1297 (defparse.h, nlmheader.h, rcparse.h, sysinfo.h): Similarly.
1301 * size.c (usage): Use REPORT_BUGS_TO.
1305 * bucomm.h: #include "bin-bugs.h"
1306 * addr2line.c (usage): Use REPORT_BUGS_TO.
1307 * ar.c (usage): Likewise.
1308 * nlmconv.c (show_usage): Likewise.
1309 * nm.c (usage): Likewise.
1310 (OPTION_TARGET): Define.
1311 (long_options): Use OPTION_TARGET rather than 200.
1314 * objcopy.c (copy_usage): Use REPORT_BUGS_TO.
1315 (strip_usage): Likewise.
1316 * objdump.c (usage): Likewise.
1317 * readelf.c (usage): Likewise.
1318 * strings.c (usage): Likewise.
1319 * windres.c (usage): Likewise.
1323 * readelf.c: Include sys/types.h before sys/stat.h for ultrix.
1327 * rddbg.c (read_section_stabs_debugging_info): Catch out of range
1328 string offsets in corrupt stabs entries.
1332 * readelf.c: Include elf/avr.h
1333 (dump_relocations): Add EM_AVR case.
1337 * strings.1: Correct '-bytes' to '--bytes'.
1341 * Makefile.am (install-exec-local): Depend on
1342 install-binPROGRAMS for parallel make.
1343 * Makefile.in: Regenerated.
1348 * readelf.c (process_dynamic_segment): Add cast to make sure
1349 argument to %* is int.
1353 * configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
1357 * configure.in: Add arm-wince, mips-pe and sh-pe targets.
1358 * configure: Regenerate.
1360 * dlltool.c: Add support for sh-pe and mips-pe targets.
1361 * rescoff.c: Add support for sh-pe and mips-pe targets.
1365 * readelf.c (get_osabi_name): Handle ELFOSABI_LINUX.
1369 * readelf.c (process_symbol_table): Remove use of ELF_ST_OTHER.
1374 * readelf.c (process_version_sections): Add casts to make sure
1375 argument to %* is an int.
1376 (process_mips_specific): Add casts to make printf arguments match
1381 * objdump.c (dump_section_header): Change `opb' to unsigned.
1382 (find_symbol_for_address): Same here.
1383 (disassemble_data): And here. Change `addr_offset',
1384 `stop_offset', `nextstop_offset' to unsigned long.
1385 (dump_data): Change opb to unsigned.
1389 * resrc.c: Remove unmatched #if for cygwin.
1393 * binutils.texi: Document the change of flavor name from atpcs-special
1394 to special-atpcs to prevent name conflict in gdb.
1398 * objdump.c (show_line): Fix bug preventing printing of the very
1399 first line (line zero) of a file when interlisting source and
1400 assembly. Added option to print entire context from start of file
1401 when the first line from that file is encountered.
1405 * objdump.c (dump_section_header, find_symbol_for_address,
1406 show_line, disassemble_bytes, disassemble_data, dump_data):
1407 distinguish between octets and bytes.
1411 * nm.c (print_symbol_info_bsd): Use bfd_is_undefined_symclass to
1412 check to unresolved symbols.
1413 (print_symbol_info_sysv): Ditto.
1414 (print_symbol_info_posix): Ditto.
1416 * binutils.texi: Document new 'V' symclass flag for nm.
1420 * binutils.texi (objdump): Document new ARM specific
1421 disassembler options.
1423 * objdump.c (usage): Call disassembler_usage().
1427 * readelf.c (get_dynamic_flags): Return buff.
1428 (process_dynamic_segment): Don't pass error strings to printf
1430 (read_and_display_attr): Use lx and ld to print longs.
1431 (process_corefile_note_segment): Cast bfd_vma to unsigned long
1437 * readelf.c (get_osabi_name): Recognise ELFOSABI_ARM.
1441 * debug.c (debug_name_type): Return DEBUG_TYPE_NULL rather than
1443 (debug_tag_type): Here too.
1444 * ieee.c (ieee_builtin_type): And here.
1445 * stabs.c (parse_stab_type, parse_stab_array_type): And here.
1449 * readelf.c (get_machine_name): Change EM_S370 to return "IBM
1454 * readelf.c (get_dynamic_type): Remove DT_ENCODING.
1458 * readelf.c (get_note_type): Display NT_WIN32PSTATUS notes.
1462 * windres.c (long_options): Add --use-temp-file and
1463 --no-use-temp-file options.
1467 * windres.h: Update read_rc_file prototype.
1469 * resrc.c (cpp_temp_file): New static variable.
1470 (istream_type): New static variable.
1471 (close_pipe): Delete function.
1472 (run_cmd): New static function.
1473 (open_input_stream): New static function.
1474 (close_input_stream): New static function.
1475 (look_for_default): Handle DOS directory separator. Use
1476 open_input_stream instead of popen.
1477 (read_rc_file): Likewise.
1479 * binutils.texi: Document --use-temp-file, --no-use-temp-file
1484 * dlltool.c (create_compat_implib): New variable.
1485 (gen_exp_file): Use.
1486 (make_one_lib_file): Use.
1487 (long_options): Add --compat-implib option.
1491 * dllwrap.c (enum target_type): Rename MINGW32_TARGET to MINGW_TARGET.
1492 (main): Use. Don't look for "32" in cygwin and mingw target names.
1496 * binutils.texi: Document new, ARM specific disassembler
1497 command line switch "-M force-thumb".
1499 For older changes see ChangeLog-9899
1505 version-control: never