3 * readelf.c: Update with new constants added by Oct 4, 1999
5 (guess_is_rela): Add new machine codes, but leave
7 (get_machine_name): Add new machine codes.
8 (get_section_type_name): Add new section types.
9 (get_elf_section_flags): New function: Decode section flags.
10 (process_section_headers): Call get_elf_section_flags() in
11 order to decode flags in section header.
12 (get_dynamic_flags): New function: Decode dynamic section
14 (process_dynamic_section): Display flags (if present).
15 (get_symbol_type): Add STT_COMMON.
16 (get_symbol_visibility): New function: Decode a symbol's
18 (process_symbol_table): Call get_symbol_visibility().
19 (get_note_type): Add NT_PRXFPREGS.
23 * strings.c (main): Correct handling of numeric argument.
27 * dlltool.c (mtable): mcore how_jtab_roff is 4 bytes into the
32 * dlltool.c (mtable): Stop compile time warnings about missing
34 (yyerror): Stop compile time warnings about unused paramater.
35 (INIT_SEC_DATA): New macro: initialise an entry in the secdata
37 (secdata): Stop ccompile time warnings about uninitialised
39 (dtab): Stop compile time warnings about unused parameter.
40 (long_options): Stop compile time warning about missing
45 * readelf.c (print_vma): Support native 64bit ELF systems.
49 * dlltool.c (mtable): Add epoc-arm specific entry.
50 Make default arm entry pass -mpacs-26 to assembler.
51 (flush_page): Do not mangle null entries.
55 * readelf.c: Fix compile time warnings. Support more than 999
60 * readelf.c (enum print_mode): New type.
61 (print_vma): New function.
62 (dump_relocations): Use print_vma to display bfd_vma values.
63 (process_file_header): Use print_vma to display bfd_vma values.
64 (process_program_headers): Use print_vma to display bfd_vma values.
65 (process_section_headers): Use print_vma to display bfd_vma values.
66 (dynamic_segment_parisc_val): Use print_vma to display bfd_vma values.
67 (process_dynamic_segment): Use print_vma to display bfd_vma values.
68 (process_symbol_table): Use print_vma to display bfd_vma values.
69 (process_mips_specific): Use print_vma to display bfd_vma values.
73 * readelf.c (process_note): Change arg from Elf_External_Note
74 to Elf32_Internal_Note, which also turns the function body
75 into little more than a call to printf.
76 (process_corefile_note_segment): Substantially rewritten
77 to properly handle case where target and host are different
78 endianness, handle note sections with padding, and add some
79 cruft to handle notes with unterminated name data.
83 * objcopy.c (copy_usage): Reformat.
84 (strip_usage): Reformat.
88 * objdump.c (usage): Overhaul output: One line per switch.
89 Textual description of each switch. Distinguish between
90 optional switches and required switches.
91 (long_options): Add 'g', 'G' and 'z' short options.
92 (main): Distinguish between optional switches and required
95 * binutils.texi: Add -g -G and -z short options for
96 --debugging, --stabs and --disassemble-zeroes.
100 * dlltool.c (flush_page): Clip short values to prevent warnings
102 Change default mcore machine name to 'mcore-le' and rename
103 big-endian version to 'mcore-be'.
107 * objdump.c (display_bfd): Break into two functions. The
108 actual dumping code moves to dump_bfd. If bfd is not
109 unambiguously recognized as a bfd_object, attempt to dump
111 (dump_bfd): New function.
115 * dlltool.c (assemble_file): Remove spurious test of exp_name.
119 * dlltool.c (struct mac): Add new field 'how_default_as_switches'.
120 (mtable): Initialise new field. Some machines have a non empty
121 string for this field.
122 (HOW_BFD_TARGET): Undefine and replace with...
123 (HOW_BFD_READ_TARGET): New macro: bfd target to use when opening a
124 file for reading. This is set to 0 so that any recognisable bfd
126 (HOW_BFD_WRITE_TARGET): New macro: bfd target to use when opening
127 a file for writing. This is set to the target machine type.
128 (ASM_SWITCHES): New macro: default switches to use when assembling
130 (assemble_file): New function: Assemble a source file into a
131 destination object file.
132 (gen_exp_file): Use assemble_file to create the exp file.
133 (make_one_lib_file): Use assemble_file to create the lib file.
134 Open output file use HOW_BFD_WRITE_TARGET and input files using
136 (make_head): Use assemble_file to create the head file.
137 (make_tail): Use assemble_file to create the tail file.
138 (gen_lib_file): Open output file use HOW_BFD_WRITE_TARGET.
142 * ar.c (normalize): Fix full_pathname code.
146 * binutils.texi: Some rewording and clarifications.
150 * readelf.c (dynamic_segment_parisc_val): Print 0 for DLD_FLAGS if
152 (process_symbol_table): Don't print histogram if hash table is empty.
156 * readelf.c (get_parisc_dynamic_type): Handle DT_HP_GST_* values.
160 * readelf.c (get_symbol_type): Add support for HPUX and PARISC
161 specific symbol types.
163 * readelf.c: Add HPUX and PARISC extensions to dynamic and program
164 header table printing.
166 * readelf.c (get_machine_flags): Add handling of PARISC.
170 * dlltool.c (scan_drectve_symbols): Handle type tags in exported
172 (scan_filtered_symbols): Likewise.
176 * resrc.c (write_rc_rcdata): Fix local variable shadowing
177 problem. If RCDATA_BUFFER data can be read as strings, modify
178 code to print the strings as comments.
179 * resres.c: Add casts to avoid warnings.
180 (write_res_data, read_res_data): Don't put the program name in the
181 error message; fatal already puts it there.
185 * configure.in (Canonicalization of target names): Remove adding
186 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
187 generates $ac_config_sub with a ${CONFIG_SHELL} already.
188 * configure: Regenerate.
192 * ar.c (main): Clear output_file if we don't change the archive.
193 (delete_members, replace_members): Likewise.
197 * objdump.c (dump_headers): If wide_output, print Flags header.
199 * objdump.c (dump_section_header): Print any comdat information.
201 * objcopy.c (parse_flags): Handle "noload", "debug", and "share".
202 * binutils.texi, objcopy.1: Document new flags.
204 * ar.c (counted_name_mode): New static variable.
205 (counted_name_counter): New static variable.
206 (map_over_members): Handle counted mode.
207 (usage): Mention N modifier.
208 (main): Handle N modifier.
209 (delete_members): Handle counted mode.
210 * binutils.texi, ar.1: Document N modifier.
212 * ar.c (print_contents): Change printing of member name for
215 * ar.c (output_filename): Make const.
216 (open_inarch): If creating a new empty archive, set
221 * ar.c (full_pathname): New static variable.
222 (map_over_members): Call normalize on command line parameter.
223 (usage): Mention P modifier.
224 (normalize): If full_pathname is true, don't do anything.
225 (main): Accept P modifier.
226 (delete_members): Call normalize on command line parameter.
227 * binutils.texi, ar.1: Document P modifier.
231 * binutils.texi: Add info dir entries for all programs described
232 here. Fix arguments of @var to not contain punctuation.
236 * nm.c (print_symbol_info_bsd): Check for 'w' as well as 'U'.
237 (print_symbol_info_sysv): Likewise.
238 (print_symbol_info_posix): Likewise.
242 * readelf.c: Include "elf/pj.h".
243 (dump_relocations): Handle EM_PJ.
244 (get_machine_name): Likewise.
245 (get_machine_flags): Likewise.
249 * readelf.c (get_note_type): New function: Decode the e_type
251 (process_note): New function: Display the contents of a core note.
252 (process_corefile_note_segment): New function.
253 (process_corefile_note_segments): New function.
254 (process_corefile_contents): New function.
255 (process_file): Add call to process_corefile_contents.
256 (parse_args): Add parsing of -n/--notes command line switch.
257 (usage): Document new command line switch.
259 * binutils.texi: Documemnt new command line switch to readelf.
263 * binutils.texi (Bug Reporting): Clarify that large files should
264 not be sent to bug-gnu-utils.
268 * readelf.c (process_extended_line_op): New parameter pointer_size,
269 read the address according to pointer_size.
270 (debug_line_pointer_size): New global to indicate the
271 size of address in .debug_line section.
272 (debug_displays, prescan_debug_info): Prescan the .debug_info section
273 to record the size of address in `debug_line_pointer_size'.
274 (process_section_contents): Before dumping any section, execute
275 the pre-scan operation defined for some debug sections.
279 * readelf.c (display_debug_lines): Use i-1 not i in standard_opcodes
281 (display_debug_aranges): New local excess. Use for calculating padding
282 and add that into ranges. Break from loop only if length is also 0.
286 * readelf.c (display_debug_lines, case DW_LNS_const_add_pc): Multiply
287 adv by info.li_min_insn_length.
291 * readelf.c (get_sparc64_dynamic_type): New function.
292 (get_dynamic_type): Use it.
296 * readelf.c (display_debug_lines, case default): Change second line
297 setting adv to use = not +=.
301 * dlltool.c: Added more examples to the comment at the start.
305 * dlltool.c (make_head): Only emit interworking directive if
310 * readelf.c (process_abbrev_section): Handle standard-conforming
311 single zero at the end of the section.
315 * objdump.c (exit_status): New static variable.
316 (nonfatal): New static function.
317 (disassemble_data): Set exit_status on error.
318 (read_section_stabs): Likewise.
319 (display_bfd): Likewise. Call nonfatal rather than bfd_nonfatal.
320 (display_file): Call nonfatal rather than bfd_nonfatal.
321 (display_target_list, display_info_table): Likewise.
322 (main): Return exit_status rather than 0.
326 * objdump.c (dump_section_header): Update for renaming of
327 SEC_SHORT to SEC_SMALL_DATA. Print SEC_SHARED flag.
330 * binutils.texi: Document cxxfilt as MS-DOS name for c++filt.
332 * configure.in: Define and substitute DEMANGLER_NAME.
333 * Makefile.am (DEMANGLER_PROG): Set to cxxfilt.
334 (man_MANS): Use DEMANGLER_NAME rather than DEMANGLER_PROG.
335 (bin_PROGRAMS): Remove $(DEMANGLER_PROG).
336 (noinst_PROGRAMS): Add $(DEMANGLER_PROG).
337 (cxxfilt_SOURCES): Rename from c__filt_SOURCES.
338 (cxxfilt_LDADD): Rename from c__filt_LDADD.
339 ($(DEMANGLER_NAME).1): Rename from $(DEMANGLER_PROG).1. Use
340 DEMANGLER_NAME rather than DEMANGLER_PROG in substitution.
341 (MOSTLYCLEANFILES): Use DEMANGLER_NAME rather than
343 (install-exec-local): When installing noinst_PROGRAMS, change
344 cxxfilt to $(DEMANGLER_NAME).
345 * configure, Makefile.in: Rebuild.
347 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
349 * Makefile.in: Rebuild.
353 * Makefile.am (YACC): If bison is not in the source tree, use
354 @YACC@ rather than bison -y.
355 (LEX): If flex is not in the source tree, use @LEX@ rather than
357 * configure.in: Build dlltool for i[3-6]86-*-interix.
358 * Makefile.in, configure: Rebuild.
363 * configure.bat: Remove; obsolete.
367 * readelf.c (get_machine_flags): Print EF_SPARC_SUN_US3.
371 * configure.in: Bump version number to 2.9.5.
372 * configure: Rebuild.
376 * objdump.c (dump_section_header): Print SEC_SHORT.
380 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
381 as appropriate. Add variable initializations. Add casts.
382 * objdump.c (disassemble_bytes): Change j to bfd_vma.
383 * readelf.c (process_syminfo): Change i to unsigned int.
384 (display_debug_info): Change abbrev_number to unsigned long.
385 (process_mips_specific): Change fcnt to size_t.
389 * readelf.c: Only support decoding 64bit ELF files if the compiler
390 supports a 64 bit data type.
391 Add -I equivalent for --histogram.
392 Add -A command-line option to display architecture specific information.
396 * readelf.c (guess_is_rela): Sparcv9 and v8plus use rela.
397 (dump_relocations): Use ELF64_R_TYPE_ID for Sparc, for R_SPARC_OLO10
398 print the secondary addend.
399 (get_machine_flags): Print Sparc machine flags.
400 (get_symbol_type): Print STT_REGISTER.
404 * stabs.c (parse_stab_type): Fix handling of template names with
405 template parameters containing `::'.
406 (stab_demangle_type): Handle a qualified name in a pointer to
411 * Makefile.am (dlltool_SOURCES): Add dyn-string.c.
412 * Makefile.in: Rebuild.
416 * configure.in (HAVE_EXECUTABLE_SUFFIX): Define.
417 * dlltool.c (look_for_prog): Use HAVE_EXECUTABLE_SUFFIX.
418 * dllwrap.c (look_for_prog): Likewise.
419 * resrc.c (look_for_default): Likewise.
420 * configure, config.in: Rebuild.
425 * configure.in: Define EXECUTABLE_SUFFIX.
426 * dlltool.c: Include "dyn-string.h". Include <stdarg.h> based on
427 ANSI_PROTOTYPES, not __STDC__.
429 (gen_exp_file): Change uses of outfile to use alloca.
430 (make_one_lib_file, make_head, make_tail): Likewise.
431 (gen_lib_file): Likewise.
432 (look_for_prog): New static function.
433 (deduce_name): Rewrite to use look_for_prog.
434 (mcore_elf_gen_out_file): Use dyn_string_t rather than outfile.
435 * dllwrap.c: Don't include <stdio.h>, <errno.h>, <string.h>,
436 <stdlib.h>, or <unistd.h>. Include <sys/stat.h> and either
437 <stdarg.h> or <varargs.h>.
438 (driver_name): Initialize to NULL, not "gcc".
439 (dlltool_name): Initialize to NULL, not "dlltool".
440 (display, inform, look_for_prog, deduce_name): New static
442 (usage): Mention -mno-cygwin.
443 (OPTION_MNO_CYGWIN): Define.
444 (main): Handle -mno-cygwin. Deduce driver_name and dlltool_name.
445 * resrc.c (look_for_default): Make static. Remove unused local
446 path. Check using EXECUTABLE_SUFFIX.
447 (read_rc_file): Allocate enough space to hold EXECUTABLE_SUFFIX.
448 * Makefile.am: Rebuild dependencies.
449 (dllwrap_LDADD): Add $(INTLLIBS).
450 * configure, Makefile.in, config.in: Rebuild.
454 * readelf.c (dump_relocations): Use elf_hppa_reloc_type instead of
455 elf32_hppa_reloc_type.
459 * dlltool.c (mcore_elf_gen_out_file): Link object files with the
460 .exp file, not the .lib file.
464 * deflex.l: Accept single-character symbol names.
468 * readelf.c (get_symbol_type): Detect ARM symbols typed as Thumb
473 * objdump.c (disassembler_options): New variable.
474 (usage): Document new -M/--disassembler-options option.
475 (long_options): Add --disassembler-options.
476 (disassemble_data): Initialise disassembler_options field of
477 disassembler_info structure.
478 (main): Add parsing of -M option.
480 * binutils.texi: Document new command line switch to objdump.
482 * NEWS: Describe new command line switch to objdump.
487 * binutils.texi: Fix typos.
491 * objdump.c (disassemble_bytes): If the disassembler returns an
492 error, print out anything it may have printed to the buffer. From
495 * defparse.y (explist): Remove separate expline to eliminate
496 shift/reduce conflict.
499 * defparse.y: Add tokens NONSHARED, SINGLE, MULTIPLE,
500 INITINSTANCE, INITGLOBAL, TERMINSTANCE, and TERMGLOBAL.
501 (command): Add option_list after LIBRARY.
502 (attr): Accept and ignore NONSHARED, SINGLE, and MULTIPLE.
503 (option_list, option): New nonterminals.
504 * deflex.l: Recognize NONSHARED, SINGLE, MULTIPLE, INITINSTANCE,
505 INITGLOBAL, TERMINSTANCE, and TERMGLOBAL.
509 * ar.c (O_BINARY): Define as 0 if not defined.
510 (ranlib_touch): Open file with O_BINARY.
512 * rename.c (O_BINARY): Define as 0 if not defined.
513 (simple_copy): Open files with O_BINARY.
516 * objcopy.c (struct section_list): Add copy field.
517 (sections_copied): New static variable.
518 (copy_options): Add "only-section".
519 (copy_usage): Mention -j and --only-section.
520 (find_section_list): Initialize copy field.
521 (is_strip_section): Check for copying sections.
522 (copy_object): Check sections_copied when calling filter_symbols.
523 (setup_section): Check for copying sections.
524 (copy_section): Likewise.
525 (copy_main): Handle -j/--only-section.
526 * binutils.texi, objcopy.1: Document -j/--only-section.
528 * configure.in: If frexp is not available, check in -lm.
529 * configure: Rebuild.
531 * readelf.c (get_elf_class): Use correct printf format for type.
532 (get_data_encoding): Likewise.
533 (get_osabi_name): Likewise.
534 (process_file_header): Don't pass an extra argument to printf.
535 (process_dynamic_segment): Cast dynamic_size to long before
537 (decode_location_expression): Cast byte_get to long before
542 * readelf.c (dump_section): Cast values from byte_get to
543 [unsigned] long for printing, in case it is wider than long.
544 (display_block): Likewise.
545 (read_and_display_attr): Likewise.
546 (decode_location_expression): Likewise. Don't depend on
551 * windres.c (usage): Fix typo.
555 * readelf.c: Use 64bit wide fields in internal strcutures even if
556 targetting a 32bit architecture.
557 (dump_relocations): Take a new parameter - the number of symbols
562 * readelf.c: Add support for 64bit ELF files.
566 * dlltool.c (mcore_elf_gen_out_file): Use constants for temporary
571 * dlltool.c (gen_exp_file): Revert 19990411 change.
575 * readelf.c (process_relocs): Determine type of reloc from
576 DT_PLTREL and from section type.
580 * readelf.c (get_elf_class): Display unknown class number.
581 (get_data_encoding): Display unknown encoding number.
582 (get_osabi_name): Display unknown ABI number.
583 (process_file_header): Display unknown version number.
587 * readelf.c (dump_relocations): Fix typo.
591 * readelf.c (dump_relocations): Add extra parameter: is_rela to
592 specify the kind of relocations to be dumped. Call guess_is_rela
593 if this parameter has a value of UNKNOWN.
594 (guess_is_rela): New function: Guess the kind of reloc being used
595 baced on the machine number.
596 (process_relocs): Determine type of reloc before calling
601 * readelf.c: Include "elf/i960.h".
602 (dump_relocations): Handle EM_960.
606 * objcopy.c (copy_archive): Preserve dates of archive members if
609 * readelf.c (dump_relocations): Always print the addend on RELA
610 systems even if there is no symbol.
611 (process_program_headers): Reset dynamic_size before looping
612 through the program headers.
613 (process_version_sections): Cast sh_offset to unsigned long for
614 printing in case bfd_vma is wider.
615 (process_symbol_table): Use get_symbol_index_type when printing
620 * windres.c: add verbose option
621 (main): process verbose option
622 * resrc.c (look_for_default): new. Look for the default
623 preprocessor in a given location.
624 (read_rc_file): for foo/bar-windres, look for foo/bar-gcc,
625 foo/gcc (in case of foo/windres), and then gcc (the old default).
629 * dlltool.c (deduce_name): New function: Deduce name of program to
631 (mcore_elf_out_file): New variable: Name of mcore-elf output file.
632 (mcore_elf_linker): New variable: Name of linker to use.
633 (mcore_elf_linker_flags): New variable: Linker flags to pass.
634 (scan_obj_file): Cache filenames if necessary.
635 (usage): Document new command line options.
636 (main): Support new command line options: -M (generate an
637 mcore-elf output file) -L (name of linker to use) -F (flags to
639 (mcore_elf_cache_filename): Store a filename in a cache.
640 (mcore_elf_gen_out_file): New function: Generate an output file
641 per the mcore-elf spec.
645 * configure.in (BUILD_MISC): Build dlltool for mcore
646 * configure: Regenerate.
647 * dlltool.c: Update example in comment.
648 (DLLTOOL_MCORE): Define.
649 (DLLTOOL_MCORE_ELF): Define.
650 (DRECTVE_SECTION_NAME): Define.
651 (mcore_be_jtab, mcore_le_jtab): Binary for performing an mcore
653 (mtable): Add entries for mcore variants.
654 (rvaafter, rvabefore, asm_prefix): Add mcore suppport.
655 (scan_drectve_symbols): Use DRECTVE_SECTION_NAME.
656 (make_head, make_tail): Cope if file cannot be created.
657 (usage): Improve layout.
661 * rclex.l: add code to suppress certain output from cpp, replace
662 all returns with MAYBE_RETURN
663 (MAYBE_RETURN): new, implement the suppression by returning
664 IGNORED_TOKEN as needed.
665 (cpp_line): remember which file we're in, mark data from included
666 *.h files for suppression.
667 * rcparse.y (input): allow IGNORED_TOKEN outside of known constructs
671 * windres.c (quot): Quote shell metacharacters in a string
672 (main): quote parameters to cpp that might have metacharacters in
673 them. Allow -D as an alias for --define to allow for sharing make
676 * objdump.c (dump_reloc_set): don't core if howto->name is NULL
678 * Makefile.am: Give rescoff.c a cpu-specific -D so it can set
681 * rescoff.c (write_coff_file): Set the correct BFD
685 * rename.c (smart_rename): Fix test of whether file exists.
689 * objdump.c (disassemble_data): Set display_endian based on target
694 * dlltool.c (interwork): Remove.
695 (arm_interwork_jtab): Use bx insn.
696 (thumb_jtab): Likewise.
697 (MARM_INTERWORK): New machine type.
698 (rvaafter): Handle it.
699 (rvabefore) Likewise.
700 (asm_prefix): Likewise.
701 (gen_exp_type): Check machine type instead of
703 (make_one_lib_file): Likewise.
704 (make_head): Likewise.
705 (make_tail): Likewise.
706 (usage): Update machine types.
707 (main): Remove -interwork support.
711 * readelf.c (get_machine_flags): Check for EF_CPU32.
712 (get_data_encoding): Fix typo.
716 * aclocal.m4, configure: Updated for new version of libtool.
720 * stabs.c (parse_stab_range_type): Correct parenthesization in
723 * readelf.c (get_section_type_name): Use correct types in printf
725 (process_relocs): Likewise.
726 (process_dynamic_segment): Likewise.
727 (process_symbol_table): Likewise.
728 (process_mips_specific): Likewise.
732 * dlltool.c (make_one_lib_file): Mark thumb functions as
737 * bucomm.h (environ): Declare it, if needed.
738 (alloca) [C_ALLOCA]: Don't use gcc's builtin or <alloca.h>.
739 * configure.in (environ): Detect declaration.
740 * nm.c (main): Don't declare environ.
741 * configure, config.in: Rebuild.
743 * dlltool.c (gen_exp_file): Pad out the .reloc section to a
744 32-byte boundary with dummy relocations, to make the BeOS loader
749 * binutils.texi (c++filt): Updated for -j/--java, and hp/edg
754 * readelf.c: Add ability to decode new constants found in April 25
755 1998 Draft of System V ABI spec.
759 * bucomm.h (LC_MESSAGES): Never define.
760 * addr2line.c (main): Don't pass LC_MESSAGES to setlocale if the
761 system does not define it.
762 * ar.c (main): Likewise.
763 * coffdump.c (main): Likewise.
764 * dlltool.c (main): Likewise.
765 * nlmconv.c (main): Likewise.
766 * nm.c (main): Likewise.
767 * objcopy.c (main): Likewise.
768 * objdump.c (main): Likewise.
769 * size.c (main): Likewise.
770 * srconv.c (main): Likewise.
771 * strings.c (main): Likewise.
772 * sysdump.c (main): Likewise.
773 * windres.c (main): Likewise.
774 * readelf.c (main): Call locale setting functions.
778 * readelf.c (decode_location_expression): Fix DW_OP_const8{s|u}
783 * rename.c: New file, copied out of objcopy.c with a few changes.
784 * bucomm.h (set_times, smart_rename): Declare.
785 * ar.c: Don't include <utime.h>.
786 (extract_file): Call set_times rather than utime.
787 (write_archive): Call smart_rename rather than unlink and rename.
788 * objcopy.c: Don't include <utime.h>.
789 (simple_copy, smart_rename, set_times): Move to rename.c.
790 (strip_main): Update smart_rename call for new parameter.
791 (copy_main): Likewise.
792 * Makefile.am: Rebuild dependencies.
793 (CFILES): Add rename.c.
794 (objcopy_SOURCES, strip_new_SOURCES): Add rename.c.
795 (ar_SOURCES, ranlib_SOURCES): Add rename.c.
796 * Makefile.in: Rebuild.
798 * Makefile.am: Rebuild dependencies.
799 (EXTRA_PROGRAMS): Remove backslash which troubles current version
801 * Makefile.in: Rebuild.
803 * dllwrap.c (main): Expect correct type in format string.
804 * resres.c: Include "bfd.h", "bucomm.h", "libiberty.h", and
805 <time.h>. Don't include <stdio.h> and <errno.h>.
806 (write_res_file): Remove unused locals e and i.
807 (read_resource_entry): Remove unused locals rtype and n.
808 (read_unistring): Remove unused local n.
812 * arparse.y: Declare yylex.
813 * objdump.c (disassemble_bytes): Initialize bytes. Add comment
814 for incorrect use of bytes.
815 * readelf.c: Change many formats to avoid warnings.
819 * readelf.c (reset_state_machine): New function. Resets the
820 registers of the source line number state machine.
821 (process_extended_line_op): Use state machine.
822 (display_debug_lines): Use state machine. Handle multiple line
823 number blocks within the same section.
827 * readelf.c (process_extended_line_op): end_sequence also resets
829 (display_debug_lines): advance_line takes a signed operand.
830 (read_and_display_attr): Print refs as <%x>, addresses as %#x,
831 others as %d. Handle other location expression attributes.
832 (display_debug_info): Handle nesting. Always print the offset.
836 * objcopy.c (filter_symbols): When checking whether to keep a
837 symbol, check the BFD section symbol for a symbol with
842 * readelf.c (process_dynamic_segment): Print new Solaris dynamic
843 section entries. Correct printing of DT_POSFLAG_1 and DT_FLAGS_1.
847 * readelf.c (request_dump): New function.
848 Removed arbitary limit on the number of sections that can be
853 * dlltool.c (make_one_lib_file): Use %05d to output the stub name so
854 order in the import library is preserved.
858 * readelf.c: Fix compile time warings.
862 * resbin.c (res_to_bin_versioninfo): Instead of entering a value
863 length of zero in a version info string, enter the appropriate
868 * configure.in: Require autoconf 2.13. Change AM_PROG_INSTALL to
869 AC_PROG_INSTALL. Add comments for AC_DEFINE calls.
870 * acconfig.h: Remove.
871 * aclocal.m4: Rebuild.
872 * configure: Rebuild.
873 * Makefile.in: Rebuild.
874 * config.in: Rebuild.
878 * readelf.c (read_and_display_attr): Add display of basic type
880 (display_debug_aranges): New function: Display the contents of a
881 .debug_aranges section.
882 (display_debug_info): Dump tags found after compunit entry.
884 * binutils.texi: Fixed bug in readelf documentation.
888 * readelf.c (dump_relocations): Handle EM_ARM as REL.
892 * readelf.c (process_symbol_table): Do not produce a histogram of
893 bucket chains if none were found.
897 * version.c: Add 1999 copyright.
899 * binutils.texi (readelf): Document new command line options
900 --debug-dump and --histogram.
902 * readelf.c: Add ability to display contents of some or all of the
903 Dwarf2 debug sections. {Work only partially completed}.
904 (display_debug_section): New function.
905 (display_debug_info): New function.
906 (display_debug_not_supported): New function.
907 (display_debug_line): New function.
908 (display_debug_abbrev): New function.
909 (process_abbrev_section): New function.
910 (read_leb128): New function.
911 (process_extended_line_op): New function.
912 (get_TAG_name): New function.
913 (get_AT_name): New function.
914 (get_FORM_name): New function.
915 (free_abbrevs): New function.
916 (add_abbrev): New function.
917 (add_abbrev_attr): New function.
918 (read_and_display_attr): New function.
919 (display_block): New function.
923 * coffdump.c (xcalloc): Remove, in libiberty now.
924 * srconv.c (xcalloc): Likewise.
925 * sysdump.c (xcalloc): Likewise.
929 * readelf.c (process_section_headers): Omit trailing space at end
930 of section header contents line.
934 * aclocal.m4: Regenerate.
938 * dllwrap.c: Include bfd.h and bucomm.h. Move getopt.h include
939 after libiberty.h include.
943 * objdump.1: Fix typo (-d to -D). From Nokubi Hirotaka
948 * objdump.c (SFILE): Add size field.
949 (objdump_sprintf): Merge both versions into one. Increase buffer
950 size as needed to avoid overflow.
951 (disassemble_bytes): Change buf from 1000 bytes to 50. Change
952 initialization and use of sfile to match changes to
955 * strip.1: Fix typo (-V to -v). From Issei Hirayama
960 * readelf.c (process_dynamic_segment): Improve output format for
965 * readelf.c (process_mips_specific): Print .conflict section
968 * readelf.c (process_mips_specific): Print l_flags in liblist in
973 * ar.c (extract_file): Add some paranoia checks for negatively
978 * stabs.c (DIR_SEPARATOR): Define as '\\' if WIN32 is defined.
982 * Makefile.in: Regenerate.
986 * po/binutils.pot: Regenerate.
990 * Makefile.am: Regernated dependencies.
991 * aclocal.m4: Regenerated.
992 * configure: Regenerated.
996 * debug.c (debug_name_type): Correct return type from false to
1001 * objdump.c (disassemble_data): Skip over relocs below start
1006 * Makefile.am: Add dependency of readelf.c on elf/fr30.h
1007 * Makefile.in: Regenerate.
1011 * readelf.c: Add support for the FR30.
1015 * configure.in: detect cygwin* instead of cygwin32*
1016 * configure: regenerate
1020 * dllwrap.c: change all references to cygwin32_ to cygwin_,
1021 change Cygwin target def to CYGWIN.
1025 * objdump.c (disassemble_data): Replace 'unsigned long' with
1030 * objdump.c (disassemble_bytes): Applied this patch from Philip
1032 avoid problems when disassembling code at high-bit-set addresses.
1036 * dllwrap.c (strhash): New function.
1037 (main): Use it to supply image base if not supplied by user.
1038 (program_version): Up to 0.2.4.
1042 * dlltool.c (add_stdcall_alias): New global.
1043 (long_options): Add --add-stdcall-alias option.
1045 (scan_drectve_symbols): Add alias if --add-stdcall-alias is
1047 (scan_filtered_symbols): Likewise.
1048 (gen_def_file): Output alias for stdcall syms if appropriate.
1050 * binutils.texi (dlltool): Document --add-stdcall-alias option.
1052 * dllwrap.c (long_options): Add --add-stdcall-alias option.
1055 * defparse.y (opt_name): Allow "." in name.
1056 * dlltool.c (def_name): Set dll_name from NAME entry in def file.
1057 (def_library): Set dll_name from LIBRARY entry in def file.
1061 * dllwrap.c (long_options): --implib synonym for --output-lib.
1062 (main): Pass --export-all to dlltool only if specified.
1063 (program_version): Up to 0.2.3.
1067 * dllwrap.c (mybasename): New function.
1068 (main): Run dlltool to create export definition file and import
1069 library file if necessary.
1070 Change exp_file_name so that it's based on the dll name.
1074 * dlltool.c (scan_all_symbols): Fix patch error.
1078 * nm.c (display_rel_file): fix "no symbols" messages.
1079 * objdump.c (slurp_symtab): ditto.
1080 * po/POTFILES.in, po/binutils.pot: rebuilt
1084 * readelf.c (dump_relocations): Rename field from Value to Info to
1085 match name of field in ELF structures.
1089 * configure.in: call AC_EXEEXT instead of AM_EXEEXT and
1091 * aclocal.m4: remove local AM_EXEEXT/AM_CYGWIN32 macros.
1092 * configure: regenerate
1097 * dlltool.c (scan_all_symbols): Don't re-export symbols exported
1102 * Makefile.am (BUILD_DLLWRAP): Add.
1103 (BUILD_DLLWRAP, DLLWRAP_PROG): Add.
1104 (bin_PROGRAMS): Add dllwrap.
1105 * Makefile.in: regenerate with automake
1108 * dllwrap.c: New file from dllhelpers v0.2.1.
1109 (print_version): New function.
1110 (long_options): Add --version.
1112 * dyn-string.h, dyn-string.c: New files from egcs-1.1/gcc.
1113 * configure.in (BUILD_DLLWRAP): Add.
1114 * configure: Regenerate.
1118 * Makefile.am (windres_SOURCES): Add resres.c.
1119 (windres_OBJECTS): Add resres.o.
1120 * Makefile.in: regenerate with automake
1123 * resres.c: New file. Implementation of read_res_file and
1124 write_res_file functions for windres.
1125 * rcparse.y: Handle CONTROL's with named classes.
1126 * resbin.c: Bug in res_to_bin_dialog and bin_to_res_dialog
1127 when dialog is extended: The version and signature fields should
1128 be reversed (despite what the docs say). Id is 32 bits long in
1130 * resrc.c (write_rc_dialog): properly print controls with named
1132 * windres.c (read_res_file, write_res_file): Remove stubs.
1133 * resres.c (write_res): Rename RT_ACCELERATORS to RT_ACCELERATOR.
1138 * objcopy.1: Fix typo in --remove-leading-char docs.
1139 * objdump.1: Fix formatting in --stabs docs.
1143 * rcparse.y (memflags_move): Correct recursion.
1147 * readelf.c (process_symbol_table): Print in histogram how many
1148 symbols are covered by the current chain length.
1152 * readelf.c (process_section_contents): Do not try to dump empty
1157 * dlltool.c (scan_all_symbols): Don't re-export symbols exported
1162 * readelf.c (process_dynamic_segment): Print DT_* value only if
1164 (do_histogram): New variable.
1165 (options): New long option histogram. Set do_histogram if this
1167 (usage): Document --histogram.
1168 (parse_args): Handle 0 return value from getopt_long. Enable
1169 do_histogram for -a.
1170 (process_symbol_table): Read hash table also if only do_histogram.
1171 Add code to print hash table histogram.
1175 * readelf.c (process_dynamic_segment): Read syminfo section if
1177 (process_syminfo): New function. Print syminfo information.
1178 (process_file): Call process_syminfo and free syminfo data at the end.
1182 * dlltool.c (usage): Add file parameter. Change all callers.
1183 (main): Don't treat '?' as a special case in getopt return.
1185 * binutils.texi (dlltool): Document new options. Add some uses of
1190 * dlltool.c (gen_def_file): Plug memory leak. Don't print
1191 demangled name if it is NULL.
1193 Support for exporting all symbols to an output export def file:
1194 * dlltool.c ({export_all_symbols, no_default_excludes,
1195 no_default_excludes, excludes}): New file static variables.
1196 (struct string_list): Type to hold list of symbols to exclude.
1197 (scan_drectve_symbols): Renamed from scan_open_obj_file.
1198 (scan_filtered_symbols): New static function.
1199 (add_excludes): New static function.
1200 (match_exclude): New static function.
1201 (set_default_excludes): New static function.
1202 (filter_symbols): New static function.
1203 (scan_all_symbols): New static function.
1204 (scan_open_obj_file): New static function.
1205 (usage): Document new options.
1206 (long_options): Add new options.
1207 (main): Handle new options.
1211 * readelf.c (process_program_headers): Print p_offset value with
1213 (dynamic_segment_mips_val): Add support for DT_MIPS_FLAGS,
1214 DT_MIPS_IVERSION, and DT_MIPS_TIME_STAMP.
1215 (process_mips_specific): Also print seconds of time stamp.
1219 * readelf.c (dump_relocations): EM_ARM uses rela relocs.
1223 * readelf.c (get_dynamic_type): Don't used gettext on the names.
1224 Add new DT_* values from Solaris. Don't print nuemric value in
1225 case of an unknown entry.
1226 (process_dynamic_segment): Handle new DT_* entries. Print numeric
1227 values in decimal, not hex.
1231 * readelf.c (get_dynamic_type): Remove empty default from switch
1236 * Makefile.am (install-exec-local): Don't remove the file before
1237 checking whether $(bindir) == $(tooldir)/bin. From Maciej
1239 * Makefile.in: Rebuild.
1243 * objcopy.c: Removed spurious inclusion of elf/internal.h and
1248 * readelf.c: Consistantly use elf_ prefix for *_reloc_type
1253 * readelf.c (dump_relocations): Add dumps of HPPA and ARC
1256 (process_relocs): Do not abort if no string table can be found.
1260 * readelf.c: Remove definition of functions to return relocation
1261 symbol strings. They now get implicitly defined when include the
1262 system specific ELF header.
1266 * readelf.c: Before include system specific ELF header define
1267 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS. For now
1268 used for ppc, mips, and mn10300.
1272 * readelf.c (dump_relocations): Display number of unrecognised
1277 * readelf.c: Use symbolic names of relocation entries for the various
1278 architectures. Correct more layout details.
1279 Print names of MIPS specific section types. Print Alpha, ARM, and
1280 MIPS relocation type names.
1284 * objcopy.c (filter_symbols): Add code for strip all symbols case.
1285 (copy_objects): Strip all case is now processed also through
1286 filter_symbols. No marking symbols used in relocations when strip
1288 (copy_section): When strip all symbols case, remove relocations
1289 which are not in keep strip specific list.
1290 (strip_main): Remove guard `strip_specific_list == NULL' for
1291 setting up strip all symbols by default.
1295 * addr2line.c (find_address_in_section): Only consider a section
1296 if the pc value is completely contained within it.
1297 (translate_addresses): Don't crash if functionname or filename are
1302 * readelf.c (process_symbol_table): Fix little alignment problem
1303 in printed table header.
1307 * readelf.c: Correct reading of .dynamic section.
1308 (dynamic_section): Now a global variable.
1309 (process_mips_fpe_exception, process_mips_specific,
1310 process_arch_specific): New functions.
1311 (get_file_header): Call process_arch_specific.
1315 * readelf.c: Fix several versioning related bugs. Produce nicer
1317 Add support for processor specific information on MIPS.
1321 * readelf.c: Switch prototypes from unsigned short to unsigned
1327 * ieee.c (parse_ieee): Initialize info.global_vars and
1329 (parse_ieee_atn): Ignore register lifetime information reportedly
1330 emitted by MRI compiler.
1334 * Makefile.am (MAINTAINERCLEANFILES): Define.
1335 * Makefile.in: Rebuild.
1339 * readelf.c (byte_get): Use PARAMS in prototype.
1340 (error): Make it work with non-ANSI compilers.
1342 (get_ver_flags): Don't use an ANSI prototype in the definition.
1346 * objcopy.c (filter_bytes): Set size correctly if the size of the
1347 section is not an even multiple of the interleave. Based on patch
1352 * configure.com: Add vax/vms support.
1353 * makefile.vms-in: Renamed from makefile.vms. Add substitutions
1354 now done by configure.com.
1358 * stabs.c (parse_stab_range_type): Handle 4 and 8 byte signed
1359 integers with real upper bounds. Handle a lower bound one larger
1360 than the upper bound as a signed integer. Handle 8 byte signed
1362 (stab_demangle_template): Optionally return the demangled name of
1364 (stab_demangle_qualified): Treat a template name as a tagged
1366 (stab_demangle_fund_type): Likewise.
1370 * objcopy.c: Minor formatting improvements.
1371 * readelf.c: Minor output formatting improvement.
1375 * rclex.l: Add casts and change types to avoid warnings.
1376 * rcparse.y: Likewise.
1377 * resbin.c: Likewise.
1378 * rescoff.c: Likewise.
1379 * resrc.c: Likewise.
1381 * Makefile.am: Rebuild dependencies.
1382 (HFILES): Remove readelf.h.
1383 * Makefile.in: Rebuild.
1385 Based on patches from Andrew Kozin
1387 * winduni.h: New file, from windres.h.
1388 * winduni.c: New file, from windres.c.
1389 * windres.c: Move Unicode functions into winduni.c.
1390 * windres.h: Move Unicode declarations into winduni.h. Include
1392 (RT_ACCELERATOR): Rename from RT_ACCELERATORS to match Windows
1393 macro. Change all uses.
1394 (RT_PLUGPLAY, RT_VXD): Correct values.
1395 * Makefile.am (HFILES): Add windres.h.
1396 (CFILES): Add winduni.c.
1397 (windres_SOURCES): Add winduni.c.
1401 * readelf.c: Use BFD Internal and External Elf structures.
1402 * readelf.h: Removed - no longer needed.
1403 * Makefile.in: Remove readelf.c's dependency upon readelf.h.
1407 * objcopy.c (strip_main): keep_specific_list == NULL as additional
1408 condition to set up strip all symbols by default.
1409 (copy_archive): don't change archive when error in object files of
1414 * stabs.c (parse_number): Sign extend negative values correctly if
1415 bfd_vma is larger than unsigned long.
1419 * Makefile.am (install-exec-local): Don't let EXEEXT interfere
1420 with the program transform name.
1421 * Makefile.in: Rebuild.
1425 * readelf.c: Rewrite to use fopen/fread ratehr than mmap.
1427 Add --section-headers command line switch, which is an alias for
1430 Incorporate improvemnts made by Andreas Schwab
1432 formatting and version info display.
1434 * binutils.texi: Document --section-headers switch to readelf.
1438 * readelf.c: Include bfd.h and bucomm.h before system header
1440 (parse_args): Change type of c from char to int.
1444 * readelf.c (usage): Write to stdout, not stderr.
1448 * po/Make-in (all-yes): Depend on .pot file if maintainer mode
1450 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
1454 * readelf.c (get_ppc_rel_type): New PowerPC support.
1455 (dump_relocations): PowerPC uses RELA relocations.
1456 (get_machine_name): Spell PowerPC correctly.
1457 (get_file_type): Change unsigned short parameter to unsigned.
1458 (get_machine_name): Ditto.
1459 (get_machine_data): Return whether big endian or little endian.
1460 (get_machine_flags): Interpret PowerPC, M32R, and MIPS flags.
1461 (process_elf_header): Print endian-ess. Convert all numeric
1462 formats to long or unsigned long. Print out machine specific flag
1464 (process_section_headers): Increase name by 3 columns and decrease
1465 type by the same so that .gcc_except_table fits in the space.
1467 * readelf.h: Include elf/ppc.h, elf/mips.h, and elf/m32r.h to get
1468 machine specific flag bits.
1472 * readelf.c: Remove extraneous #includes. Fix warnings produced
1473 by -Wall when compiling under Linux.
1475 * Makefile.am (readelf_LDADD): Add $(LIBIBERTY).
1479 * stabs.c (struct stab_handle): Add self_crossref field.
1480 (parse_stab_string): If a tag is a cross reference to itself,
1481 don't define it in the tags list.
1482 (parse_stab_type): Set info->self_crossref.
1484 * debug.c (struct debug_type_real_list): Define.
1485 (debug_get_real_type): Add list parameter. Change all callers.
1486 Check for circularity to avoid crashing when it occurs.
1490 * readelf.c: New file: Display contents of ELF format file.
1491 * readelf.h: New file: Header file for readelf.c
1492 * Makefile.am: Add rules to build readelf.
1493 * Makefile.in: Rebuilt.
1494 * binutils.texi: Document readelf.
1495 * NEWS: Mention inclusion of readelf into binutils.
1496 * po/POTFILES.in; Rebuilt.
1500 * objcopy.c (setup_section): Adjust the section size if copy_byte
1502 (copy_section): Do not call bfd_set_section_size.
1506 * objcopy.c (copy_usage): Add missing \n\ from help description.
1510 * Makefile.am (YACC): Correct bison -L option.
1511 * Makefile.in: Rebuild.
1513 * binutils.texi, objdump.1: Document -p/--private-headers.
1517 * objcopy.c: Add new command line options: --change-section-lma
1518 and --change-section-vma. Rename old command line option
1519 --adjust-section-vma to --change-section-address. Rename
1520 --adjust-vma to --change-addresses and --adjust-start to
1521 --change-start. Provide aliases to support the old versions of
1522 these command line options.
1524 Change the names of macros and enum elements to upper case to
1525 match the GNU coding standard.
1527 Replace calls to fprintf (stderr,...) with calls to fatal () or
1528 non_fatal () as appropriate.
1530 * objcopy.1: Document command line option changes.
1531 * binutils.texi: Document command line option changes.
1533 * bucomm.h: New exported funtion from bucomm.c: non_fatal().
1534 * bucomm.c (non_fatal): New exported function. Just like fatal()
1535 except that it returns rather than calling xexit().
1537 (bfd_check_format_matches): Call fatal() rather than bfd_fatal().
1539 (check_matching_formats): Fix C formating.
1541 (parse_vma): Call fatal().
1546 * debug.c (debug_type_samep): Avoid endless loops comparing
1547 function and method parameter types.
1551 * dlltool.c (dump_iat): Comment out; not used.
1552 (display): Rename from tell. Change all callers.
1556 * dlltool.c: Add support for Thumb DLLs. Add support for
1557 interworking between ARM and Thumb programs and DLLs. Tidy the
1560 * binutils.texi: Document dlltool.
1562 * configure: Build dlltool for thumb-pe targets.
1564 * version.c (print_version): Include 1998 in copyright strings.
1566 * stabs.c (parse_stab): Support Win32 style directory separators.
1570 * po/Make-in (install-info): New target.
1574 * ar.c (usage): Extend information provided about command line
1579 * makefile.vms: Run dec c with /nodebug. Pass CC value when
1584 * configure: Build dlltool for thumb-pe target.
1585 * configure.in: Build dlltool for thumb-pe target.
1589 * Makefile.am (EXTRA_PROGRAMS): Change $(SRCONV_PROG) to sysconf
1590 sysdump coffdump to avoid extra $(EXEEXT).
1591 * Makefile.in: Rebuild.
1595 * configure.in: Stop appending EXEEXT to the end of
1596 SRCONV_PROG (wrong because that variable may contain multiple
1598 * Makefile.am: instead, add EXEEXTs to each SRCONV_PROG
1600 * Makefile.in: regenerate
1601 * configure: regenerate
1605 * addr2line.c (main): Conditionally call setlocale.
1606 * windres.c (main): Likewise.
1607 * sysdump.c (main): Likewise.
1608 * strings.c (main): Likewise.
1609 * srconv.c (main): Likewise.
1610 * size.c (main): Likewise.
1611 * objdump.c (main): Likewise.
1612 * objcopy.c (main): Likewise.
1613 * nm.c (main): Likewise.
1614 * nlmconv.c (main): Likewise.
1615 * dlltool.c (main): Likewise.
1616 * coffdump.c (main): Likewise.
1617 * ar.c (main): Likewise.
1618 * bucomm.h: Include <locale.h> if HAVE_LOCALE_H.
1619 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
1623 Add support for IMPORTS:
1624 * defparse.y (impline): Add IMPORTS syntaxes.
1625 * dlltool.c (ifunctype, iheadtype): New typedefs.
1626 (import_list): New static variable.
1627 (append_import): New static function.
1628 (def_import): Add an entry to import_list.
1629 (generate_idata_ofile): New static function.
1630 (gen_exp_file): Call generate_idata_ofile.
1631 * dlltool.h (def_import): Update declaration.
1635 * configure.in: Change version number to 2.9.4
1636 * configure: Rebuild.
1640 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
1644 * Makefile.am (INCLUDES): Search intl dirs for headers; define
1646 * addr2line.c (main): Call setlocale, bindtextdomain, textdomain.
1647 * ar.c (main): Likewise.
1648 * coffdump.c (main): Likewise.
1649 * dlltool.c (main): Likewise.
1650 * nlmconv.c (main): Likewise.
1651 * nm.c (main): Likewise.
1652 * objcopy.c (main): Likewise.
1653 * objdump.c (main): Likewise.
1654 * size.c (main): Likewise.
1655 * srconv.c (main): Likewise.
1656 * strings.c (main): Likewise.
1657 * sysdump.c (main): Likewise.
1658 * windres.c (main): Likewise.
1662 * Many files: Added gettext invocations around user-visible
1664 * bucomm.h: Added gettext-related includes and defines.
1665 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
1666 HAVE_LC_MESSAGES): Define.
1667 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
1668 po/Makefile. Use AM_PROG_LEX.
1669 * Makefile.am (SUBDIRS): New macro.
1670 (POTFILES): Likewise.
1671 (po/POTFILES.in): New target.
1672 (LDADD): Added INTLLIBS.
1673 (objdump_LDADD): Likewise.
1674 (c__filt_LDADD): Likewise.
1675 (ar_LDADD): Likewise.
1676 (ranlib_LDADD): Likewise.
1677 (dlltool_LDADD): Likewise.
1678 (windres_LDADD): Likewise.
1679 * po/Make-in, po/POTFILES.in, po/binutils.pot: New files.
1683 * objcopy.c (preserve_dates): New file static variable.
1684 (smart_rename): If preserve_dates, call set_times when copying.
1685 (strip_main): Remove preserve_dates local variable.
1686 (copy_main): Likewise.
1690 * Makefile.am (DISTSTUFF): Add defparse.h, defparse.c, rclex.c,
1691 rcparse.h, and rcparse.c
1692 * Makefile.in: Rebuild.
1696 * Makefile.am (PROGS): Move $(ADDR2LINE_PROG) to end, so that
1697 Makefile.in doesn't have an empty continuation line.
1698 (bin_PROGRAMS): Likewise.
1699 * Makefile.in: Rebuild.
1703 * Makefile.am (DISTCLEANFILES): Add site.exp and site.bak.
1704 (MOSTLYCLEANFILES): Add binutils.log, binutils.sum, and abcdefgh*.
1705 (mostlyclean-local): New target.
1706 * Makefile.in: Rebuild.
1712 * ar.c (usage): Mention S modifier.
1713 (main): Add S modifier.
1714 * ar.1, binutils.texi: Document S modifier.
1718 * binutils.texi: Use @itemx for a secondary item in a table.
1722 * dep-in.sed: Add rule to remove @OBJDIR@.
1723 * Makefile.am (dep.sed): Substitute for @OBJDIR@.
1724 * Makefile.in: Rebuild.
1728 * configure.in: Set version to 2.9.1.
1729 * configure: Rebuild.
1731 * Branched binutils 2.9.
1733 * Makefile.am (DISTCLEANFILES): Remove defparse.h, arparse.h,
1734 rcparse.h, and nlmheader.h.
1735 * Makefile.in: Rebuild.
1739 * Makefile.am (MOSTLYCLEANFILES): Define.
1740 * Makefile.in: Rebuild.
1742 Fix some gcc -Wall warnings:
1743 * nlmconv.c (main): Add casts to avoid warnings.
1744 (alpha_mangle_relocs): Likewise.
1745 * objdump.c (dump_section_stabs): Likewise.
1746 * size.c (print_sysv_format): Likewise.
1747 * srcconv.c (wr_ob): Likewise.
1748 * wrstabs.c (stab_modify_type): Likewise.
1749 (stab_variable): Likewise.
1750 * nlmconv.c (main): Initialize variables to avoid warnings.
1751 * nm.c (sort_symbols_by_size): Likewise.
1752 * objdump.c (disassemble_bytes): Likewise.
1753 * wrstabs.c (stab_end_class_type): Likewise.
1754 * coffgrok.c (do_sections_p2): Change j to unsigned int.
1755 (do_lines): Change l to unsigned int.
1756 * nlmheader.y (yylex): Change i to unsigned int.
1757 * nm.c (print_symbol): Change j to long.
1758 * size.c (lprint_number): Comment out.
1759 * srconv.c (wr_ob): Change i to bfd_size_type.
1760 * sysdump.c (unit_info_list): Comment out.
1761 (object_body_list, program_structure, debug_list): Likewise.
1762 * sysinfo.y (yyerror): Return value.
1766 * defparse.y (explist): Allow epsilon.
1771 * coffgrok.c (do_sections_p1): Use the section's lma instead of vma
1772 for the benefit of prom loaders.
1777 * Makefile.am (DISTSTUFF): New variable.
1778 (diststuff): New target.
1779 (DISTCLEANFILES): New variable.
1780 * Makefile.in: Rebuild.
1784 * rclex.l: Accept { and } as synonyms for BEGIN and END.
1788 * aclocal.m4, configure: Rebuild with libtool 1.2.
1792 * objdump.c (disassemble_data): Delete "++place" after call to
1793 find_symbol_for_address. Set disasm_info.symbols to array of
1794 symbols at the current address.
1798 * Makefile.am (install-exec-local): Install properly when ln
1799 fails or tooldir == prefix.
1803 * objcopy.c (compare_section_lma): Rename from _vma.
1804 (copy_object): Gap fill based on LMA not VMA.
1805 * binutils.texi: Update and clarify.
1806 * objcopy.1: Likewise.
1810 * dlltool.c (gen_exp_file): Generate _imp__%s as well as __imp_%s,
1811 for Microsoft compatibility.
1812 (make_one_lib_file): Likewise.
1814 * dlltool.c (make_one_lib_file): Don't add 1 to hint.
1818 * Makefile.am (AUTOMAKE_OPTIONS): Define.
1819 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
1823 * deflex.l: Accept '?' in symbol names, for VC++ mangled names.
1826 * addr2line.c (usage): Update bug-gnu-utils address.
1827 * ar.c (usage): Likewise.
1828 * nlmconv.c (show_usage): Likewise.
1829 * nm.c (usage): Likewise.
1830 * objcopy.c (copy_usage): Likewise.
1831 (strip_usage): Likewise.
1832 * objdump.c (usage): Likewise.
1833 * size.c (usage): Likewise.
1834 * strings.c (usage): Likewise.
1835 * windres.c (usage): Likewise.
1836 * binutils.texi (Bug Reporting): Likewise.
1840 * configure, aclocal.m4: Rebuild with new libtool.
1844 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
1848 * Makefile.am (CC_FOR_TARGET,nlmcomv.o): Change program_transform_name
1850 * Makefile.in: Regenerate.
1854 * dlltool.c: Define exit status macros for _WIN32 but not
1856 (gen_lib_file): Check for exit status of unlink.
1857 * resrc.c: Define popen and pclose if _WIN32 but not
1862 * configure.in: Remove vfork check.
1863 * nlmconv.c: Never include vfork.h.
1864 * aclocal.m4, configure, Makefile.in, config.in: Rebuild.
1868 * objcopy.c (copy_archive): Only pass one argument to mkdir if
1869 _WIN32 but not __CYGWIN32__.
1870 (smart_rename): Add code for _WIN32 (not __CYGWIN32__), to cope
1871 with different rename behaviour and lack of chown.
1873 * configure.in: Check for mingw32 when deciding whether to build
1875 * dlltool.c: Never include vfork.h.
1876 (run): Use pexecute rather than vfork.
1877 (gen_lib_file): Check for errors from bfd_set_archive_head and
1878 bfd_close. Close all the BFDs in the archive before deleting the
1883 * objdump.c (disassemble_bytes): Add flag INSN_HAS_RELOC to tell
1884 disassembly function there is a reloc on this line.
1888 * srconv.c (sh, h8300): Delete variables.
1889 (addrsize, toolname, rnames): New variables.
1890 (writeINT): Use addrsize.
1891 (wr_un): Use toolname.
1892 (wr_hd): Set up addrsize et al properly for h8300[hs].
1893 (walk_tree_symbol): Zero dsy. Use rnames.
1894 (wr_un, wr_hd, wr_ob, wr_du): Use proper bfd access macros.
1895 * sysdump.c (sh, h8300): Delete variables.
1896 (addrsize): New variable.
1898 (getone): Initialize it.
1899 (getBITS): Range check on MAX.
1901 For older changes see ChangeLog-9197
1907 version-control: never