4 * ar.c (get_pos_bfd): Add default_posname parameter. Change all
6 (replace_members): Default to replacing in the same position.
10 * rclex.l: Don't permit a comma in a STRING.
11 * rcparse.y (acc_entry): Warn if an inappropriate modifier is used
13 (acc_event): For a control character, set VIRTKEY, and force the
14 character to uppercase.
15 (acc_options): Don't require a comma separator.
19 * size.c (size_number): New function to provide size of field.
20 ({l,r}print_number): For octal and hex fields, print field using
21 '0' and '0x' suffixes. Do not include following tab.
22 (sysv_internal_sizer): Size section name, section size, and vma
24 (sysv_internal_printer): Use calculated sizes for the columns.
25 (print_sysv_format): Size columns before printing.
26 (print_berkeley_format): Print tabs between numbers now that
27 {l,r}print_number doesn't. Print fields right justified.
31 * objdump.c (objdump_print_addr_with_sym): Remove call to
32 disasm_symaddr() as this function no longer exists.
36 * objdump.c (objdump_print_addr_with_sym): Call disasm_symaddr()
37 to allow backend to know which symbol has just been displayed.
41 * windres.h (ESCAPE_*): Define standard escape sequences.
42 * rclex.l (handle_quotes): Handle standard escape sequences. Warn
43 about an unrecognized escape character.
44 * windres.c (unicode_print): Print standard escape sequences.
45 * rcparse.y (acc_event): Initialize $$.next.
46 * resbin.c (bin_to_res_menuitems): Don't set MENUITEM_POPUP or
47 MENUITEM_ENDMENU in the menu item flags.
48 (bin_to_res_accelerators): Allocate a structure (the old code
50 (res_to_bin_accelerator): Correct the test for setting ACC_LAST.
51 (res_to_bin_dialog): Save the extended style rather than saving
52 the style twice. Remove useless shadowing length variable. Set
53 the length of control data correctly.
54 * resrc.c (write_rc_dialog): Don't print the class or menu if the
55 string length is zero.
59 * stabs.c (parse_stab_argtypes): Don't try to parse the name of a
60 destructor as mangled argument types.
64 * addr2line.c (translate_addresses): Use bfd_scan_vma rather
65 than strtol to scan addresses.
69 * Makefile.am (bin_PROGRAMS): Don't use line continuations here.
73 * objcopy.c (copy_section): Don't crash if there is no particular
74 information for a section.
78 * objcopy.c (parse_flags): Make flag check case insensitive.
79 Check for `contents' flag. Give an error for unrecognized flags.
80 (copy_section): If the contents flag was set for a section that
81 had no contents, zero out the new contents.
82 * binutils.texi (objcopy): Document contents section flag.
86 * objcopy.c: Move new struct and variable definitions to top of
87 file. Remove obsolete add_strip_symbol and is_strip_symbol
88 declarations. Add prototype declarations for add_specific_symbol
89 and is_specified_symbol.
93 * configure.com (HAVE_SBRK): Undefine.
97 * objdump.c (objdump_symbol_at_address): New function. Returns
98 true if a symbol can be found at the address passed in.
99 (disassemble_data): Set the symbol_at_address_func field to point
100 to objdump_symbol_at_address.
104 * objcopy.c, objcopy.1, binutils.texi: "localize" is a better name
105 than "privatize". Update all references.
109 * binutils.texi (strip): Remove duplicate --target. From Marty
112 * nm.c (lineno_cache_bfd): New file static variable.
113 (lineno_cache_rel_bfd): New file static variable.
114 (display_archive): Clear lineno_cache_bfd and lineno_cache_rel_bfd
116 (display_file): Likewise.
117 (print_symbol): Use lineno_cache_bfd and lineno_cache_rel_bfd
118 instead of cache_bfd and cache_rel_bfd. Make seccount static, and
119 only set it when setting relocs.
123 * objcopy.c (keep_specific_list, privatize_specific_list,
124 weaken_specific_list): New variables.
125 (keep_symbols): Removed.
126 (add_specific_symbol): New function from the carcas of
127 add_strip_symbol. Takes a list as an argument.
128 (is_specified_symbol): Likewise from is_strip_symbol.
129 (filter_symbols): Honor the new privatize and weaken lists.
130 Optimize bfd_asymbol_name handling.
131 (copy_object, copy_options, copy_usage): Add privatize-symbol &
132 weaken-symbol options.
134 * objcopy.1, binutils.texi: Update docs.
138 * objdump.c (disassemble_data): Make "--prefix-addresses"
139 disassembly adjust to mixed-length instructions.
140 (objdump_print_addr_with_sym): Add "0x" prefix for hexadecimal
141 symbol-offsets in disassembly.
145 * objcopy.c (set_times): New static function, replacing
147 (strip_main): If preserve_dates, stat the input file before
148 copying it, and call set_times afterward.
149 (copy_main): Likewise.
151 * wrstabs.c (write_stabs_in_sections_debugging_info): Cast p to
152 char * when calling strcpy and strlen.
156 * binutils.texi (ar cmdline): Document that q now works like r.
159 * binutils.texi (size): The object file argument is optional.
162 * aclocal.m4: Rebuild with new libtool.
163 * configure: Rebuild.
167 * Makefile.am (EXEEXT_FOR_BUILD): New variable. Use it in all
168 references to the sysinfo program.
169 * configure.in: Rebuild with new bfd/acinclude.m4.
170 * Makefile.in: Rebuild.
174 * windres.c: Include <time.h>.
175 (define_resource): Set a timestamp for the resource.
179 * configure.in: Define TARGET in header file.
180 * acconfig.h (TARGET): Add #undef.
181 * Makefile.am (version.o, bucomm.o): Remove special targets.
182 * bucomm.c (target): Remove.
183 * nm.c (program_name): Don't declare.
184 (target): Make static.
185 * size.c (target): Make static.
186 * configure, config.in, Makefile.in: Rebuild.
190 * Makefile.am (check-DEJAGNU): Export r.
191 (.dep1): Use $(INCLUDES) rather than $(ALL_CFLAGS).
192 * Makefile.in: Rebuild.
194 * nlmheader.y: Use VERSIONK rather than VERSION.
196 * Makefile.am (STRIP_PROG): Change from strip.new to strip-new.
197 (NM_PROG): Change from nm.new to nm-new.
198 (TOOL_PROGS, install-exec-local): Adjust accordingly.
199 * Makefile.in: Rebuild.
203 * configure.in: Remove AC_ARG_PROGRAM; it's invoked by
205 * configure: Rebuild.
207 * Makefile.am (install-exec-local): Create $(tooldir)/bin before
208 trying to install anything into it.
209 * Makefile.in: Rebuild.
211 * Makefile.am (TOOL_PROGS): Use an explicit $(EXEEXT).
212 (install-exec-local): When handling $(noinst_PROGRAMS), only use
213 $(EXEEXT) on the installed file. When handling $(TOOL_PROGS),
214 handle $(EXEEXT) correctly.
215 * configure.in: Add an explicit $(EXEEXT) when substituting for
216 the name of a program to build.
217 * Makefile.in, configure: Rebuild.
219 * aclocal.m4, configure, Makefile.in: Rebuild with new automake
222 * deflex.l, defparse.y: Use VERSIONK rather than VERSION.
223 * rclex.l, rcparse.y: Likewise.
224 * Makefile.am (windres_SOURCES): Add $(BULIBS).
225 * Makefile.in: Rebuild.
229 * acinclude.m4: Include bfd/acinclude.m4, not bfd/acmacros.m4.
230 * aclocal.m4, configure: Rebuild with new libtool.
234 * Makefile.am: New file, based on old Makefile.in.
235 * acinclude.m4: New file, from old aclocal.m4.
236 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
237 shared library handling; now handled by libtool. Replace
238 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
239 AC_PROG_LEX, AC_DECL_YYTEST, AM_MAINTAINER_MODE, AM_CYGWIN32, and
240 AM_EXEEXT. Replace AC_PROG_INSTALL with AM_PROG_INSTALL. Remove
241 stamp-h handling in AC_OUTPUT.
242 * acconfig.h: Mention PACKAGE and VERSION.
243 * stamp-h.in: New file.
244 * Makefile.in: Now built with automake.
245 * aclocal.m4: Now built with aclocal.
246 * config.in, configure: Rebuild.
249 * rcparse.y (dialog): Default menu and class to be named.
250 (styles): If FONT is seen, set DS_SETFONT in dialog style.
251 * resbin.c (res_to_bin_dialog): Correct computation of font
257 * resbin.c (res_to_bin_menu): Correct computation of menu
259 * resrc.c (define_stringtable): Add 1 to resource ID.
263 * resbin.c (bin_to_res_string): Correct adjustment of data and
268 * nlmconv.c (link_inputs): Call libiberty pexecute function.
269 (pexecute) [multiple versions]: Remove.
273 * bucomm.c (make_tempname): If we might be using a DOS filesystem,
274 check for a backslash as well as a slash.
278 * windres.c (main): Quit if we didn't get any resources.
279 (usage): Fix --yydebug usage message.
280 * rescoff.c (write_coff_file): Don't free the relocation array
281 until after we've closed the BFD.
282 (read_coff_rsrc): Quit rather than try to read standard input.
283 (write_coff_file): Quit rather than try to write to standard
285 * rcparse.y: Add a couple of missing semicolons (accepted by bison
287 * binutils.texi: Document windres.
291 * resbin.c: New file.
292 * rclex.l, rcparse.y, rescoff.c, resrc.c, windres.c, windres.h:
293 Numerous fixes and improvements.
294 * Makefile.in: Rebuild dependencies.
295 (CFILES): Add resbin.c.
296 (WINDRES_OBJS): Add resbin.o.
300 First stab at Windows resource compiler:
301 * windres.h: New file.
302 * windres.c: New file.
304 * rcparse.y: New file.
306 * rescoff.c: New file.
307 * configure.in: Define and substitute BUILD_WINDRES.
308 * configure: Rebuild.
309 * Makefile.in: Rebuild dependencies.
310 (WINDRES_PROG): New variable.
311 (PROGS): Add @BUILD_WINDRES@.
312 (HFILES): Add dlltool.h and windres.h.
313 (CFILES): Add windres.c and resrc.c.
314 (GENERATED_CFILES): Add rcparse.c and rclex.c.
315 (WINDRES_OBJS): New variable.
316 $(WINDRES_PROG): New target.
317 (rcparse.c, rcparse.h, rclex.c): New targets.
321 * dlltool.c (export_type): Add data field.
322 (def_exports): Add data parameter. Change all callers.
323 (dump_def_info): Print data field.
324 (gen_def_file): Likewise.
325 (make_one_lib_file): Handle data field by not emitting simple
326 label and not emitting anything in SEC_TEXT.
327 (dtab): Print data field.
328 (process_duplicates): Merge data field.
329 * dlltool.h (def_exports): Update declaration.
330 * defparse.y (expline): Accept opt_DATA. Pass it to def_exports.
331 (opt_DATA): New non-terminal.
335 * dlltool.h: New file.
336 * deflex.l: Include dlltool.h and libiberty.h. Don't declare
337 strdup. Use xstrdup rather than strdup.
338 * defparse.y: Include bfd.h, bucomm.h, and dlltool.h.
339 * dlltool.c: Include dlltool.h and time.h. Make a lot of
340 variables and functions static. Make a lot of char * variables
341 and parameters const. Add declarations for static functions. Do
342 some reindenting. Hide more PowerPC stuff inside DLLTOOL_PPC.
346 * ar.c (bfd_special_undocumented_glue): Add const.
350 * Makefile.in (check): Pass CC_FOR_TARGET and CFLAGS_FOR_TARGET
355 * configure.in: Don't clear OPCODES when --enable-commonbfdlib is
357 * configure: Rebuild.
361 * Makefile.in (maintainer-clean realclean): Change *.info*
362 to binutils.info* to save sysroff.info.
366 * Makefile.in (INSTALL): Set to @INSTALL@.
367 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
368 (install): Depend upon installdirs. Use $(program_transform_name)
369 directly, rather than using $(INSTALL_XFORM) and
371 (installdirs): New target.
372 (install-info): Run mkinstalldirs.
376 * Makefile.in (INSTALL): Change install.sh to install-sh.
379 * Makefile.in: Always use $(SHELL) when running move-if-change.
380 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
381 * configure: Rebuild.
385 * configure.in: Add AC_FUNC_ALLOCA.
386 * configure, config.in: Rebuild.
387 * bucomm.h: Add alloca handling, copied from gas/as.h.
388 * dlltool.c: Add #pragma alloca for AIX to start of file.
389 * nlmconv.c: Likewise.
391 * Makefile.in (distclean): Remove site.exp and site.bak. Remove
392 everything that clean removes.
396 * Makefile.in (VERSION): Set to 2.8.1.
398 * Branched binutils 2.8.
402 * configure.com: New file.
403 * config.h-vms: Remove file.
404 * makefile.vms: Update for new configure scheme.
408 * objcopy.c (make_same_dates): Use statbuf, not buf, if not
413 * Makefile.in ($(OBJDUMP_PROG)): Don't link against BFDLIB twice.
414 * configure.in: Add AC_ARG_ENABLE for commonbfdlib. If it is set,
415 set OPCODES to empty.
416 * configure: Rebuild.
421 * objcopy.c: Include <utime.h> or <sys/time.h>.
422 (strip_options): Add "preserve-dates".
423 (copy_options): Likewise.
424 (copy_usage): Mention -p and --preserve-dates.
425 (strip_usage): Likewise.
426 (make_same_dates): New static function.
427 (strip_main): Handle -p.
428 (copy_main): Likewise.
429 * binutils.texi, strip.1, objcopy.1: Document new option.
431 addr2line.c contributed by Ulrich Lauther
433 * addr2line.c: New file.
434 * Makefile.in: Rebuild dependencies.
435 (ADDR2LINE_PROG): New variable.
436 (MANPAGES): Add addr2line.
437 (PROGS): Add $(ADDR2LINE_PROG).
438 (CFILES): Add addr2line.c.
439 ($(ADDR2LINE_PROG)): New target.
440 * binutils.texi: Document addr2line.
441 * addr2line.1: New file.
443 * version.c (print_version): Update copyright date.
447 * objdump.c (disassemble_data): Don't exit if a file cannot be
448 disassembled, instead just return.
452 * size.c (usage): Make definition match its prototype.
453 (display_bfd, lprint_number, rprint_number): Likewise.
454 (print_berkeley_format, sysv_internal_printer): Likewise.
455 (print_sysv_format): Likewise.
456 * nm.c (set_print_radix, set_output_format): Likewise.
457 * objcopy.c (filter_bytes): Likewise.
461 * Many files: Add function prototypes.
462 * ar.c (mri_emul, get_pos_bfd): Make static.
463 * arlex.l: Include "libiberty.h". Don't declare strdup. Use
464 xstrdup rather than strdup.
465 * arparse.y (yyerror): Make argument const. Correct typo.
466 * arsup.c (strdup): Don't declare.
467 (ar_save): Use xstrdup rather than strdup.
468 * filemode.c: Include "bucomm.h".
469 * nm.c (usage): Make static.
470 (print_symname): Make format and name const.
471 * objcopy.c (cat): Remove.
472 (copy_archive): Make output_target const. Use concat, not cat.
473 (copy_file, simple_copy, smart_rename): Make arguments const.
474 * objdump.c (read_section_stabs): Likewise.
475 (print_section_stabs): Likewise.
476 (display_target_tables): Don't declare getenv.
477 * strings.c (strings_object_file): Change file to const.
478 (print_strings): Change filename to const.
479 * Makefile.in: Rebuild dependencies.
483 * configure.in: Add BFD_NEED_DECLARATION(getenv).
484 * acconfig.h: Add NEED_DECLARATION_GETENV.
485 * bucomm.h (getenv): Declare if NEED_DECLARATION_GETENV.
486 * configure, config.in: Rebuild.
487 * nlmconv.c (getenv): Don't declare.
489 * Makefile.in: Rebuild dependencies.
494 * objdump.c: Include "demangle.h".
495 (do_demangle): New static variable.
496 (usage): Mention -C/--demangle.
497 (long_options): Add "demangle".
498 (objdump_print_symname): New static function.
499 (objdump_print_addr_with_sym): Use objdump_print_symname.
500 (disassemble_bytes): Likewise.
501 (dump_reloc_set): Likewise.
502 (dump_symbols): Demangle symbol name.
504 * binutils.texi, objdump.1: Document -C/--demangle.
506 * objdump.c (usage): Mention --no-show-raw-insn.
507 (long_options): Add "no-show-raw-insn".
508 (disassemble_bytes): Handle --no-show-raw-insn.
509 * binutils.texi, objdump.1: Document --no-show-raw-insn.
513 * rddbg.c (free_saved_stabs): Set the strings to NULL after being
518 * bucomm.c (set_default_bfd_target): New function.
519 * bucomm.h (set_default_bfd_target): Declare.
520 * ar.c (main): Call set_default_bfd_target.
521 * nlmconv.c (main): Likewise.
522 * nm.c (main): Likewise.
523 * objcopy.c (main): Likewise.
524 * objdump.c (main): Likewise.
525 * size.c (main): Likewise.
526 * strings.c (main): Likewise.
527 * Makefile.in (bucomm.o): New target, to define TARGET.
531 * objdump.c (adjust_section_vma): New static variable.
532 (usage): Mention --adjust-section-vma.
533 (OPTION_ADJUST_VMA): Define.
534 (long_options): Add "addjust-vma".
535 (display_bfd): If adjust_section_vma is not 0, add it to all the
537 (main): Handle OPTION_ADJUST_VMA.
538 * binutils.texi, objdump.1: Document --adjust-vma.
542 * nm.c (print_symbol): Cache the BFD as well as the symbols and
543 relocs, and don't try to use the symbols or relocs with a
548 * config.h-vms: sbrk() is provided on openVMS/Alpha.
549 * makefile.vms: allow compiling with current gcc snapshot.
553 * arsup.c, coffgrok.c, dlltool.c, nlmconv.c: Use xmalloc rather
558 * objdump.c (disassemble_data): Correct VMA argument to
559 find_symbol_for_address. Improve handling of code with no symbol
560 followed by code with a symbol.
564 * objdump.c (disassemble_bytes): Make output of raw instructions
565 work better for non-standard values of bytes_per_chunk and
570 * objdump.c (disassemble_bytes): Added code to allow some control
571 over the way raw instructions are displayed.
575 * stabs.c (struct bincl_file): Add next_stack field.
576 (push_bincl): Put the new file on both bincl_list and
577 bincl_stack. Clear the file_types field.
578 (pop_bincl): Use the next_stack field when popping the stack.
579 Don't put the file on bincl_list.
580 (find_excl): Include the file name when warning about an unfound
583 * debug.c (debug_type_samep): Don't crash if we are passed NULL.
587 * objcopy.1: Add missing space after .B.
591 * objdump.c (disassemble_data): Initialize `aux.require_sec'.
595 * objdump.c (objdump_print_value): Add skip_zeroes parameter.
597 (objdump_print_addr_with_sym): Likewise. Call objdump_print_value
599 (objdump_print_addr): New static function.
600 (objdump_print_address): Just call objdump_print_addr.
601 (disassemble_bytes): Print real address, not function offset.
602 Skip a certain number of leading zeroes.
604 * objdump.c (disassemble_zeroes): New static variable.
605 (usage): Mention --disassemble-zeroes.
606 (long_options): Add "disassemble-zeroes".
607 (disassemble_bytes): Check disassemble_zeroes.
611 * objdump.c (disassemble_bytes): Don't skip zeroes if the
612 disassembler has told us that we are in a branch delay slot.
616 * size.c (berkeley_sum): Rewrite. Skip sections which are not
617 SEC_ALLOC. Count SEC_READONLY sections as text.
621 * Makefile.in (maintainer-clean realclean): Remove *.info*, not
626 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
630 * configure.in: Work around bug in AC_FUNC_VFORK in autoconf 2.12.
631 * configure: Rebuild.
636 * objcopy.c (OPTION_WEAKEN): Define.
637 (copy_options): Add "weaken".
638 (copy_usage): Mention --weaken.
639 (weaken): New static variable.
640 (filter_symbols): Handle weaken.
641 (copy_object): Call filter_symbols if weaken.
642 (copy_main): Handle OPTION_WEAKEN.
643 * binutils.texi, objcopy.1: Document --weaken.
647 * mpw-make.sed: Use NewFolderRecursive for installation.
651 * Makefile.in (install): Add "else true" clause to cater to
652 broken "make" on some systems.
656 * ieee.c (parse_ieee_bb): Always initialize namcopy to avoid gcc
657 warning about uninitialized variable.
658 (ieee_read_cxx_class): Likewise, for pf.
659 (ieee_enum_type): Likewise, for i.
663 * wrstabs.c (stab_array_type): Add casts when printing
664 bfd_signed_vma values.
666 * configure: Rebuild with autoconf 2.12.
670 * objdump.c (disassemble_data): Don't crash if there is no
675 * ar.c (open_inarch): Don't call bfd_openr with a null name.
679 * binutils.texi: Add section on reporting bugs.
683 * stabs.c (struct stab_handle): Add bincl_list field.
684 (parse_stab): Pass value to push_bincl. Call find_excl for
686 (struct bincl_file): Add hash, file and file_types fields.
687 (push_bincl): Add hash parameter. Save it in the new hash field.
688 Save the file number in the new file field.
689 (pop_bincl): Put the bincl_file on bincl_list, rather than freeing
690 it. Save the file types in the new file_types field.
691 (find_excl): New static function.
693 * ieee.c (ieee_lineno): Don't compare line number addresses to
694 info->highaddr (undo part of October 28 patch).
698 * objdump.c (objdump_print_value): Don't print the empty string
703 * stabs.c (struct stab_handle): Add function_end field.
704 (start_stab): Initialize function_end.
705 (finish_stab): Pass info->function_end to debug_end_function.
706 (parse_stab): If info->function_end is set, use it as the address
707 which ends a function.
709 * ieee.c (ieee_array_type): Remember the correct size.
711 * ieee.c (ieee_finish_compilation_unit): Permit coalescing ranges
712 that are up to 0x1000 bytes apart, not just 64.
713 (ieee_add_bb11_blocks): Don't bother to emit a BB11 that is less
715 (ieee_lineno): Only emit line numbers that are less than
720 * ieee.c (struct ieee_defined_enum): Add defined field.
721 (ieee_enum_type): If the enum tag has been seen before but not
722 defined, reuse the same type index, and define it.
723 (ieee_tag_type): If this enum has not been defined, add an
724 undefined entry to the list of enums.
726 * objdump.c (disassemble_bytes): Let the disassembler override the
727 number of bytes printed on a line.
731 * objdump.c (prefix_addresses): New static variable.
732 (long_options): Add "prefix-addresses".
733 (compare_symbols): Sort BSF_FUNCTION symbols before other
735 (find_symbol_for_address): New static function, broken out of
736 objdump_print_address.
737 (objdump_print_addr_with_sym): New static function, broken out of
738 objdump_print_address.
739 (objdump_print_address): Call new functions.
740 (disassemble_bytes): New static function, broken out of
741 disassemble_data. Change disassembly format, unless
742 prefix_addresses is set.
743 (disassemble_data): Call disassemble_bytes. Unless
744 prefix_addresses is set, disassemble in chunks headed by a
746 * binutils.texi, objdump.1: Document --prefix-addresses.
748 * rddbg.c (read_section_stabs_debugging_info): Preserve the
749 backslash when concatenating multiple stabs strings.
753 * dlltool.c (scan_open_obj_file): Fix loop exit test.
754 Add missing parameter to def_exports.
758 * Makefile.in (LEX_OPTIONS): Set to empty string. -I -Cem is the
759 default for flex, and is not recognized by lex.
763 * binutils.texi (Target Selection): Document that you can now
764 specify targets using configuration triplets.
766 * ar.c (usage): Declare. Make sure all callers pass an argument.
770 * Makefile.in (clean): Remove config.log.
774 * makefile.vms: Bump version date.
778 * version.c (print_version): New function.
779 * bucomm.h (print_version): Declare.
780 * ar.c (program_version): Don't declare.
781 (do_show_version): Remove.
782 (usage): Add help parameter. Print bug report address.
783 (main): Set is_ranlib at start. Check for --help and --version.
784 Call print_version, not do_show_version.
785 * nlmconv.c (program_version): Don't declare.
786 (main): Call print_version.
787 (show_usage): Print bug report address.
788 * nm.c (program_version, print_version): Don't declare.
789 (usage): Print bug report address.
790 (main): Call print_version.
791 * objcopy.c (program_version): Don't declare.
792 (copy_usage): Print bug report address.
793 (strip_usage): Likewise.
794 (strip_main): Call print_version.
795 (copy_main): Likewise.
796 * objdump.c (program_version): Don't declare.
797 (usage): Print bug report address.
798 (main): Call print_version.
799 * size.c (program_version): Don't declare.
800 (usage): Print bug report address.
801 (main): Call print_version.
802 * strings.c (program_version): Don't declare.
803 (main): Call print_version.
804 (usage): Print bug report address.
805 * Makefile.in: Update dependencies.
809 * ieee.c: Revert Monday's reflocalp patch, and apply this patch
811 (write_ieee_debugging_info): Write a dummy type at the end of the
816 * ieee.c (struct ieee_write_type): Add reflocalp field.
817 (ieee_pointer_type): Set reflocalp after pushing type.
818 (ieee_function_type): If reflocalp is set, make this type local.
819 (ieee_range_type, ieee_array_type, ieee_set_type): Likewise.
820 (ieee_const_type, ieee_volatile_type): Likewise.
821 (ieee_struct_field, ieee_class_baseclass): Likewise.
823 * ieee.c (struct ieee_info): Add global_types field.
824 (parse_ieee_bb): When starting a BB1, initialize the types field
825 to the global_types field.
826 (parse_ieee_be): When ending a BB2, copy the types field to the
831 * objcopy.c (change_leading_char): New static variable.
832 (OPTION_CHANGE_LEADING_CHAR): Define.
833 (copy_options): Add "change-leading-char".
834 (copy_usage): Mention --change-leading-char.
835 (filter_symbols): Add obfd parameter. Change all callers.
836 Implement change_leading_char.
837 (copy_object): Call filter_symbols if change_leading_char.
838 (copy_main): Handle OPTION_CHANGE_LEADING_CHAR.
839 * binutils.texi, objcopy.1: Document --change-leading-char.
843 * ieee.c (ieee_enum_type): Don't check index into a NULL names
845 * nm.c (sort_symbols_by_size): Always initialize next.
846 * rdcoff.c (parse_coff_type): Warn about an incomprehensible
847 type rather than crashing.
848 * rddbg.c (read_symbol_stabs_debugging_info): Initialize f.
849 * stabs.c (parse_stab_members): Set context in all cases.
853 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
854 * configure: Regenerate.
858 * objdump.c (L_tmpnam): Never define.
859 (display_target_list): Use choose_temp_base instead of tmpnam.
860 (display_info_table): Likewise.
864 * stabs.c (parse_stab): An N_FUN symbol with an empty string
865 indicates the end of a function.
869 * wrstabs.c (struct string_hash_entry): Add next field.
870 (struct stab_write_handle): Change strings to a pointer to
871 string_hash_entry. Add last_strings field. Remove strings_alloc
873 (string_hash_newfunc): Initialize next field.
874 (stab_write_symbol): Copy string into hash table rather than into
875 buffer. Keep a list of hash table entries.
876 (write_stabs_in_sections_debugging_info): Initialize last_string.
877 Copy strings from list of hash table entries in memory.
878 (stab_modify_type): If the entry on the stack is a definition,
879 make a new definition rather than failing an assert.
880 (stab_array_type): The size is only zero if high is strictly less
883 * ieee.c (struct ieee_info): Add saw_filename field.
884 (parse_ieee): Initialize saw_filename.
885 (parse_ieee_bb): Set saw_filename for a BB1 or BB2. In a BB1,
886 discard the current variables and types. In a BB10, if no
887 filename has been seen, call debug_set_filename.
888 (parse_ieee_ty): In case 'g', the type is optional.
890 * prdbg.c (pr_fix_visibility): Don't abort on
891 DEBUG_VISIBILITY_IGNORE.
893 * debug.c (debug_name_type): Correct error message.
895 * configure.in: Substitute HLDENV.
896 * configure: Rebuild.
897 * Makefile.in (HLDENV): New variable. Use it whenever linking a
902 * mpw-make.sed: Add symbolic doublequotes around the version
907 * makefile.vms: Add better support for DEC C compilation.
908 Add new macros as in Makefile.in.
912 * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
913 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
914 (NEED_DECLARATION_SBRK): New macro.
915 * configure, config.in: Rebuild.
916 * bucomm.h (strstr): Declare if NEED_DECLARATION_STRSTR.
917 (sbrk): Declare if HAVE_SBRK and NEED_DECLARATION_SBRK.
919 * prdbg.c (pr_end_struct_type): Avoid using a string constant in
920 assert, for the benefit of broken assert macros.
924 * objdump.c (disassemble_data): Set disasm_info.flavour from
929 * dlltool.c (secdata): In non DLLTOOL_PPC case, change alignment
930 of .text section to 2.
934 * objdump.c (dump_section_stabs): Fix test for stabs sections
935 ending with numbers. This fixes a problem with .stab being
936 confused with .stab.index.
940 * stabs.c (stab_demangle_fund_type): Return a void * for a
941 template, rather than simply aborting.
945 * ar.c (open_inarch): Add file parameter. Change all callers. If
946 this is a newly created archive, set the target based on the
948 * arsup.h (open_inarch): Update declaration.
952 * Makefile.in (VERSION): Set to cygnus-2.7.1.
954 * Released binutils 2.7.
956 * rdcoff.c (parse_coff): Get address to pass to debug_end_function
957 from function size, not value of .ef symbol. From Ning
962 * objcopy.c (strip_main): Add -o option, and handle it.
963 (strip_usage): Mention -o.
964 * binutils.texi, strip.1: Mention -o.
968 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
969 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf set values.
971 * configure.in (AC_PREREQ): Autoconf 2.5 or higher.
975 * objdump.c (endian): New static variable.
976 (usage): Mention -EB/-EL/--endian.
977 (long_options): Add "endian".
978 (disassemble_data): If endianness was specified, replace
979 abfd->xvec with a copy of itself with the given endianness.
980 (main): Handle -EB/-EL/--endian.
981 * binutils.texi, objdump.1: Mention -EB/-EL/--endian.
983 * objdump.c: Make most variables and functions static.
985 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
986 using shared libraries.
987 * configure: Rebuild with autoconf 2.10.
991 * dlltool.c (secdata): Changed .rdata to .reldata so .reloc will work.
992 (make_one_lib_file): Removed cruft. (#if 1)
996 * objdump.c (stabs): Change from struct internal_nlist * to
998 (print_section_stabs): Fetch stabs information directly, rather
999 than assuming that struct internal_nlist is the right size.
1001 * binutils.texi: Document change to binary format: file position
1002 based on load address, not section VMA.
1004 * bucomm.h: Define SEEK_SET, SEEK_CUR, and SEEK_END if they are
1005 not already defined.
1009 * Makefile.in (DISTSTUFF): Add deflex.c.
1013 * config.h-vms, makefile.vms: New files.
1017 * dlltool.c (make_one_lib_file): Use BFD_RELOC_RVA rather than
1018 BFD_RELOC_32 in IDATA7.
1022 * nm.c (struct get_relocs_info): Define.
1023 (line_numbers): New static variable.
1024 (long_options): Add "line-numbers".
1025 (usage): Mention -l and --line-numbers.
1027 (print_symbol): Print line numbers if requested.
1028 (get_relocs): New static function.
1029 * binutils.texi, nm.1: Document -l/--line-numbers.
1033 * objdump.c (dump_reloc_set): Add sec parameter. Change all
1034 callers. If with_line_numbers is set, display line numbers of
1036 * binutils.texi, objdump.1: Document -l with -r.
1040 * ar.c (open_inarch): Report BFD error message if an archive can
1041 not be recognized. List matching formats if the file is
1042 ambiguously recognized.
1043 (ranlib_touch): Likewise.
1047 * README: Add notes on how to build if you don't have ar.
1049 * Makefile.in: Remove old incorrect setting of CC.
1053 * Makefile.in (install): Don't check to see if tooldir exists.
1054 Make $(tooldir) and $(tooldir)/bin.
1058 * strings.c (main): Make main an int function, not void.
1062 * nm.c (filter_symbols): Check for BSF_WEAK as well as
1064 * objcopy.c (filter_symbols): Likewise.
1068 * objcopy.c (copy_object): Make clear that it is only a warning
1069 when the output file can not represent the architecture.
1073 * objdump.c (disassemble_data): Don't refer to bytes past the end
1078 * rddbg.c (read_symbol_stabs_debugging_info): Move call to
1079 free_saved_stabs outside the loop over the symbols.
1083 * objdump.c (compare_symbols): Sort symbols whose names start with
1084 `.' after other symbols. If no other decision can be made, sort
1089 * dep-in.sed: Substitute $(BFDDIR) for @BFDDIR@.
1090 * Makefile.in: Rebuild dependencies.
1091 (dep.sed): Substitute $(BFDDIR) for @BFDDIR@.
1095 * rdcoff.c: New file.
1096 * rddbg.c (read_debugging_info): Read COFF symbols if COFF flavour
1097 and no stabs were found.
1098 * budbg.h (parse_coff): Declare.
1099 * Makefile.in: Rebuild dependencies.
1100 (CFILES): Add rdcoff.c.
1101 (DEBUG_OBJS): Add rdcoff.o.
1105 * nlmconv.c (choose_temp_base{,_try}): Delete, in libiberty now.
1106 (link_inputs): Update call to choose_temp_base.
1110 * configure.in: Permit --enable-shared to specify a list of
1112 * configure: Rebuild.
1116 * objdump.c (dump_section_header): Print the SEC_LINK_ONCE flag
1117 and the SEC_LINK_DUPLICATES field.
1121 * nlmconv.1: Changed to be recognized by catman -w on Solaris.
1125 * wrstabs.c (stab_enum_type): Set buf before using it.
1129 * stabs.c (struct stab_handle): Add field abfd.
1130 (start_stab): Add abfd parameter.
1131 (parse_stab_string): Skip the symbol leading char when searching
1132 for the value of a global symbol.
1133 * budbg.h (start_stab): Update declaration.
1134 * rddbg.c (read_section_stabs_debugging_info): Pass abfd to
1136 (read_symbol_stabs_debugging_info): Likewise.
1140 * wrstabs.c (stab_function_type): Output an empty typedef for an
1141 unused argument, rather than making up a meaningless name.
1142 (stab_variable): Use N_RSYM for a DEBUG_REGISTER variable.
1144 * ieee.c (struct ieee_info): Add global_vars field.
1145 (parse_ieee_be): When ending the global typedef block, copy the
1146 variables into info->global_vars.
1147 (parse_ieee_atn): Don't require an NN record for a pmisc ATN.
1148 (ieee_read_reference): Search the global variables after the local
1153 * objdump.c (disassemble_data): Make sure sym_name is always set.
1154 (dump_section_header): Always put a space after the section name.
1155 (dump_bfd_header): Terminate output with newline.
1159 * wrstabs.c: New file.
1160 * budbg.h (write_stabs_in_sections_debugging_info): Declare.
1161 * objcopy.c (write_debugging_info): For COFF or ELF, output stabs
1163 * Makefile.in: Rebuild dependencies.
1164 (CFILES): Add wrstabs.c.
1165 (WRITE_DEBUG_OBJS): New variable.
1166 ($(OBJCOPY_PROG)): Use $(WRITE_DEBUG_OBJS), not $(DEBUG_OBJS).
1167 ($(STRIP_PROG)): Likewise.
1169 * stabs.c (parse_stab_members): Make type stub detection more like
1172 * ieee.c (struct ieee_handle): Add fields complex_float_index and
1173 complex_double_index.
1174 (ieee_complex_type): Cache type index in complex_float_index and
1175 complex_double_index, depending upon size. Set size on type stack
1178 * ieee.c (ieee_empty_type): Use builtin_unknown, not 0.
1179 (ieee_void_type): Use builtin_void, not 1.
1181 * ieee.c (parse_ieee_ty): Handle 'V' type code.
1182 (parse_ieee_atn): Don't require two numbers for type 10.
1184 * ieee.c (parse_ieee_be): Add one to offset at end of function or
1187 * ieee.c (struct ieee_block): Add field skip.
1188 (parse_ieee_bb): Don't call debug_record_function for __XRYCPP
1189 function, and set skip field.
1190 (parse_ieee_be): Don't call debug_end_function if skip is set.
1192 * debug.c (struct debug_handle): Add fields current_write_lineno
1193 and current_write_lineno_index.
1194 (debug_write): Initialize current_write_lineno and
1195 current_write_lineno_index for each unit. Call
1196 debug_write_linenos rather than writing out the line numbers
1198 (debug_write_function): Call debug_write_linenos.
1199 (debug_write_block): Likewise.
1200 (debug_write_linenos): New static function.
1202 * debug.c (debug_write_type): For DEBUG_KIND_FUNCTION, push return
1203 type before arguments.
1207 * configure.in: Add AC_FUNC_VFORK.
1208 * configure, config.in: Rebuild.
1209 * dlltool.c, nlmconv.c: Include <vfork.h> if HAVE_VFORK_H is
1212 * stabs.c (parse_stab_range_type): A complex type is defined as a
1213 subrange of itself with the high bound zero.
1214 * ieee.c (ieee_complex_type): Don't crash on sizes of 12 or 16.
1218 * ieee.c (ieee_write_undefined_tag): Switch to global_types even
1220 (ieee_tag_type): For an enum, look through info->enums.
1222 * configure: Rebuild with autoconf 2.8.
1224 * debug.c (debug_type_samep): Don't loop endlessly in
1229 * rddbg.c (read_section_stabs_debugging_info): Call save_stab for
1230 each stab entry, call stab_context on an error, and call
1231 free_saved_stabs before rturning.
1232 (read_symbol_stabs_debugging_info): Likewise.
1233 (SAVE_STABS_COUNT): Define.
1234 (struct saved_stab): Define.
1235 (saved_stabs, saved_stabs_index): New static variables.
1236 (save_stab, stab_context, free_saved_stabs): New static functios.
1238 * objdump.c (stab_name): Remove.
1239 (struct stab_print): Remove.
1240 (stab_print): Remove.
1241 (dump_stabs): Don't initialize stab_name.
1242 (print_section_stabs): Call bfd_get_stab_name rather than using
1243 the stab_name array.
1247 * prdbg.c (pr_int_constant): Initialize info correctly.
1248 (pr_float_constant): Likewise.
1252 * mpw-make.sed: Update to handle shared library support.
1256 * Makefile.in ($(OBJDUMP_PROG)): Search $(BFDLIB) before
1261 * configure.in: Don't tamper with LDFLAGS. Call AC_PROG_CC before
1263 * configure: Rebuild.
1265 * configure.in: Substitute RPATH_ENVVAR.
1266 * configure: Rebuild.
1267 * Makefile.in (RPATH_ENVVAR): New variable.
1268 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
1270 * objcopy.c (smart_rename): Rather than doing chmod then chown, do
1271 chmod without setuid, then chown, then chmod with setuid.
1275 * arsup.c (map_over_list): Reindent. Don't assume that the
1276 function does not delete the BFD.
1277 (ar_addlib_doer): Don't set prev->next if prev is NULL.
1281 * ieee.c (ieee_regno_to_genreg): Convert register numbers for m68k
1283 (ieee_genreg_to_regno): Likewise.
1287 * ieee.c: Extensive changes to write code to put types in the
1288 global type block when possible, to output ranges for all memory
1289 occupied by the module, and to improve efficiency.
1291 * debug.c (struct debug_handle): Remove class_mark field. Add
1292 id_list and compare_list fields.
1293 (struct debug_class_id): Define.
1294 (struct debug_type_compare_list): Define.
1295 (debug_write): Initialize info->id_list
1296 (debug_write_name): Remove reference to info->class_mark.
1297 (debug_write_type): Get id for all structs and classes. Simplify
1298 test for whether struct has already been written.
1299 (debug_write_class_type): Get id for all classes. Simplify test
1300 for whether class has already been written.
1301 (debug_write_block): Don't write out blocks other than the top
1302 level block if they have no local variables.
1303 (debug_set_class_id): New static function.
1304 (debug_type_samep): New static function.
1305 (debug_class_type_samep): New static function.
1306 * prdbg.c (pr_start_struct_type): Always print id.
1307 (pr_start_class_type): Likewise.
1308 (pr_tag_type): Likewise.
1310 * stabs.c (struct stab_handle): Add syms and symcount fields.
1311 (start_stab): Add syms and symcount parameters. Change all
1313 (parse_stab_string): Look up global variables in the symbol table
1314 to get the right value.
1315 * budbg.h (start_stab): Update declaration.
1316 * rddbg.c (read_section_stabs_debugging_info): Add syms and
1317 symcount parameters. Change all callers.
1319 * stabs.c (parse_stab_array_type): If the index type is 0, use
1324 * ieee.c (ieee_start_compilation_unit): Clear modified and
1325 modified_alloc fields of info.
1327 * configure.in: Check for --enable-shared. Substitute new
1328 variables BFDLIB and OPCODES.
1329 * configure: Rebuild.
1330 * Makefile.in (BFDLIB): Set to @BFDLIB@.
1331 (OPCODES): Set to @OPCODES@.
1335 Support for building bfd and opcodes as shared libraries, based on
1337 * configure.in (HLDFLAGS): New substitution.
1338 * configure: Rebuild.
1339 * Makefile.in (HLDFLAGS): New variable. Make all links use
1340 $(HLDFLAGS) before $(CFLAGS) and $(LDFLAGS).
1341 (BFDLIB_DEP): New variable. Replace all occurrences of $(BFD) as
1342 a dependency with $(BFDLIB_DEP). Remove $(BFD) as a dependency if
1343 there is also a dependency on $(ADDL_DEPS).
1344 (BFDLIB): Rename from BFD; change all uses; set to -L../bfd -lbfd.
1345 (OPCODES_DEP): New variable. Replace all occurrends of $(OPCODES)
1346 as a dependency with $(OPCODES_DEP).
1347 (OPCODES): Set to -L../opcodes -lopcodes.
1348 (ADDL_DEPS): New variable. Replace all occurrences of
1349 $(ADDL_LIBS) as a dependency with $(ADDL_DEPS).
1350 (check): Set LD_LIBRARY_PATH in the environment.
1351 (config.status): Depend upon BFD configure.host and config.bfd.
1355 * objdump.c: #include stdarg.h or varargs.h.
1356 (objdump_print_value): Change FILE* arg to struct disassemble_info*.
1357 All callers updated. Use fprintf_func.
1358 (objdump_print_address): Consistently use fprintf_func.
1359 (objdump_sprintf): New function.
1360 (disassemble_data): Print insn into a buffer, print raw insn ourselves,
1361 then print insn mnemonic.
1365 * configure: Regenerate.
1369 * configure.in (i[3-6]86-*-win32): Becomes i[3-6]86-*-cygwin32.
1370 (powerpc*-*-cygwin32): New.
1371 * configure: Regenerated.
1375 * Makefile.in (distclean): Remove $(DEMANGLER_PROG).1.
1380 * objcopy.c (remove_leading_char): New static variable.
1381 (OPTION_REMOVE_LEADING_CHAR): Define.
1382 (copy_usage): Mention --remove-leading-char.
1383 (filter_symbols): If remove_leading_char, and the first character
1384 of a global symbol matches the symbol leading char of the BFD,
1385 remove the first character.
1386 (copy_object): Filter the symbols if remove_leading_char is set.
1387 (copy_main): Handle --remove-leading-char.
1388 * binutils.texi, objcopy.1: Document --remove-leading-char.
1392 * objdump.c (fprintf): Add prototype to avoid compiler warning on
1397 * binutils.texi (nm): Improve documentation on symbol types.
1398 (objdump): Reference the stabs manual from the discussion of the
1403 * mpw-make.sed: Add a "stamps" target.
1407 * objdump.c (dump_headers, dump_section_header): Change objdump -h
1408 output to be simpler and to include section file offsets.
1412 * stabs.c (parse_stab_members): Don't adjust voffset.
1414 * ieee.c (ieee_read_cxx_class): Don't multiply voffset by 4.
1415 (struct ieee_write_type): Add name field.
1416 (struct ieee_type_class): Remove name field. Change all uses to
1417 use new name field in type instead.
1418 (struct ieee_name_type): Likewise.
1419 (ieee_start_struct_type): Initialize name field of type.
1420 (ieee_start_class_type): Don't initialize classdef entry of tag.
1421 (ieee_class_method_var): Don't adjust voffset.
1422 (ieee_end_class_type): Likewise.
1423 (ieee_tag_type): Initialize new name field of type.
1424 (ieee_typdef): Set name after copying in type information.
1426 * debug.c (VOFFSET_STATIC_METHOD): Define as -1, not 1.
1428 * ieee.c (struct ieee_modified_type): Define.
1429 (struct ieee_handle): Add modified and modified_alloc fields.
1430 (ieee_get_modified_info): New static function.
1431 (ieee_pointer_type): Cache type index.
1432 (ieee_const_type): Likewise.
1433 (ieee_volatile_type): Likewise.
1435 * ieee.c (ieee_define_named_type): When creating a tag for an
1436 anonymous struct, copy the name into memory.
1437 (ieee_tag_type): Likewise.
1438 * debug.c (debug_write_type): Only check and set id field for an
1440 (debug_write_class_type): Likewise.
1442 * ieee.c: Various changes to write out types for functions and
1443 references, and to not write out unnecessary function types.
1445 * ieee.c (struct ieee_var): Remove variable field. Add kind
1446 field, and define some enum constants for it.
1447 (parse_ieee_ty): Set kind field of variable for 'x' and 'X' types.
1448 (parse_ieee_atn): Make an indirect slot for an external variable,
1449 although we otherwise don't record it. Set kind field rather than
1450 variable field of pvar.
1451 (ieee_read_cxx_class): Try to get the type of a static member.
1452 (ieee_read_reference): Check kind field rather than variable
1457 * ieee.c: Various changes to handle reading C++ reference type
1460 * debug.h (enum debug_var_kind): Add DEBUG_VAR_ILLEGAL.
1461 (enum debug_parm_kind): Add DEBUG_PARM_ILLEGAL.
1462 * debug.c (debug_get_parameter_types): Handle DEBUG_KIND_FUNCTION.
1464 * ieee.c: Various changes to write out definitions of C++ classes.
1466 * debug.c (debug_append_filename): Remove.
1467 * debug.h (debug_append_filename): Don't declare.
1469 * stabs.c (struct stab_handle): Remove last_type field. Add
1470 so_string and so_value fields.
1471 (finish_stab): Call stab_emit_pending_vars before calling
1472 debug_end_function. Don't warn about pending variables.
1473 (parse_stab): Accumulate N_SO strings until a non N_SO symbol is
1474 seen, rather than calling debug_append_filename. Call
1475 stab_emit_pending_vars before calling debug_end_function. Don't
1476 set info->last_type.
1480 * objdump.c (disassemble_data): Handle unknown endianness.
1481 Pass fprintf to INIT_DISASSEMBLE_INFO.
1485 Add new option --show-raw-insn.
1486 * objdump.c (show_raw_insn): New global.
1488 (long_options): Update.
1489 (disassemble_data): Set disasm_info.flags if --show-raw-insn.
1491 * objdump.c (disassemble_data): Set new arch,mach,endian fields in
1496 * ieee.c: Extensive changes to pass a single info argument around
1497 in the reading routines, rather than several arguments. Add code
1498 to read C++ debugging records.
1500 * debug.h (debug_get_type_size): Declare.
1501 (debug_get_field_name): Declare.
1502 (debug_get_field_bitpos): Declare.
1503 (debug_get_field_bitsize): Declare.
1504 (debug_get_field_visibility): Declare.
1505 (debug_get_field_physname): Declare.
1506 * debug.c (debug_get_real_type): Handle DEBUG_KIND_TAGGED.
1507 (debug_get_type_size): New function.
1508 (debug_get_field_name): New function.
1509 (debug_get_field_bitpos): New function.
1510 (debug_get_field_bitsize): New function.
1511 (debug_get_field_visibility): New function.
1512 (debug_get_field_physname): New function.
1513 (debug_write_type): Make sure we pass the real kind, not INDIRECT,
1514 to tag_type. Pass the name recursively for INDIRECT.
1518 * debug.h (struct debug_write_fns): Remove ellipsis_type. Add int
1519 and boolean parameters to function_type. Add boolean parameter to
1521 (debug_make_ellipsis_type): Don't declare.
1522 (debug_make_function_type): Add debug_type * and boolean
1523 parameters. Change all callers.
1524 (debug_make_method_type): Add boolean parameter. Change all
1526 (debug_get_parameter_types): Add boolean * parameter. Change all
1528 (debug_get_target_type): Declare.
1529 * debug.c (struct debug_function_type): Add fields arg_types and
1531 (struct debug_method_type): Add field varargs.
1532 (debug_ellipsis_type, ELLIPSIS_P): Remove.
1533 (debug_make_ellipsis_type): Remove.
1534 (debug_make_function_type): Add arg_types and varargs parameters.
1535 (debug_make_method_type): Add varargs parameter.
1536 (debug_get_parameter_types): Add pvarargs parameter.
1537 (debug_get_target_type): New function.
1538 (debug_write_type): In case DEBUG_KIND_FUNCTION, push argument
1539 types and pass count to function_type. In DEBUG_KIND_METHOD, use
1540 a signed int for the count, don't call ellipsis_type, and pass
1541 varargs to method_type.
1542 * stabs.c (struct stab_demangle_info): Add varargs field.
1543 (stab_demangle_argtypes): Add pvarargs parameter. Change all
1545 (stab_demangle_args): Likewise.
1546 (stab_demangle_type): In case 'F', pick up argument types.
1547 * prdbg.c (pr_ellipsis_type): Remove.
1548 (pr_function_type): Add argcount and varargs parameters.
1549 (pr_method_type): Add varargs parameter.
1550 * ieee.c (ieee_ellipsis_type): Remove.
1551 (ieee_function_type): Add argcount and varargs parameters.
1552 (ieee_method_type): Add varargs parameter. Remove most of
1553 function body, and just call ieee_function_type.
1555 * stabs.c: Include "demangle.h". Added several new static
1556 functions not listed below to demangle argument types; they are
1557 all called via stab_demangle_argtypes.
1558 (finish_stab): If the kind of an undefined tag is
1559 DEBUG_KIND_ILLEGAL, use DEBUG_KIND_STRUCT instead. Warn if there
1560 are any pending variable.
1561 (parse_stab): Don't close the function when the block depth goes
1562 to zero. Pass value to debug_end_function.
1563 (parse_stab_string): In case 'T', pass the name to
1565 (parse_stab_type): In case 'x', use stab_find_tagged_type. In
1566 case '#', handle functions with variable numbers of arguments.
1567 (parse_stab_struct_type): Add tagname parameter. Change all
1569 (parse_stab_members): Add tagname and typenums parameters. Change
1570 all callers. If the type of a method is a stub, call
1571 parse_stab_argtypes to demangle the argument types and get the
1572 physical name of the function.
1573 (parse_stab_argtypes): New static function.
1574 (stab_record_variable): For a DEBUG_GLOBAL or DEBUG_STATIC
1575 variable, call debug_record_variable immediately.
1576 (stab_find_tagged_type): New static function.
1578 * debug.h (enum debug_type_kind): Add DEBUG_KIND_ILLEGAL.
1579 (struct debug_write_fns): Add field ellipsis_type. Add id
1580 parameter to start_struct_type, start_class_type, and tag_type.
1581 (debug_make_ellipsis_type): Declare.
1582 (debug_find_named_type): Declare.
1583 (debug_get_type_kind): Declare.
1584 (debug_get_return_type): Declare.
1585 (debug_get_parameter_types): Declare.
1586 (debug_get_fields): Declare.
1587 (debug_get_field_type): Declare.
1588 * debug.c (struct debug_handle): Add fields class_id and base_id.
1589 (struct debug_class_type): Add field id.
1590 (struct debug_method_variant): Rename argtypes to physname.
1592 (debug_ellipsis_type): New static variable.
1593 (ELLIPSIS_P): New macro.
1594 (debug_make_ellipsis_type): New function.
1595 (debug_make_method_variant): Rename argtypes to physname.
1596 (debug_make_static_method_variant): Likewise.
1597 (debug_name_type): Always put types in the global namespace.
1598 (debug_find_named_type): New function.
1599 (debug_find_tagged_type): Treat DEBUG_KIND_ILLEGAL specially,
1600 rather than DEBUG_KIND_VOID.
1601 (debug_get_real_type): New static function.
1602 (debug_get_type_kind): New function.
1603 (debug_get_return_type): New function.
1604 (debug_get_parameter_types): New function.
1605 (debug_get_fields): New function.
1606 (debug_get_field_type): New function.
1607 (debug_write): Initialize base_id.
1608 (debug_write_type): Pass new id argument to tag_type. Handle
1609 DEBUG_KIND_ILLEGAL. Use id for DEBUG_KIND_STRUCT and
1610 DEBUG_KIND_UNION. Handle ellipsis for method arguments.
1611 (debug_write_class_type): Don't dereference kclass if it is NULL.
1613 * prdbg.c (pr_fns): Add pr_ellipsis_type.
1614 (pr_ellipsis_type): New static function.
1615 (pr_pointer_type): If this is a pointer to an array, parenthesize
1617 (pr_start_struct_type): Add id parameter.
1618 (pr_start_class_type): Likewise.
1619 (pr_tag_type): Likewise.
1620 (pr_fix_visibility): Add the visibility to the top of the stack,
1621 not the second element on the stack.
1622 (pr_struct_field): Pop the stack before calling pr_fix_visibility.
1623 (pr_class_static_member): Likewise.
1624 (pr_class_start_method): Don't push a type, just set the method
1625 name in the type on the top of the stack.
1626 (pr_class_end_method): Don't pop the stack.
1627 (pr_class_method_variant): Rename argtypes parameter to physname.
1628 Append const and volatile rather than prepending them. Add a
1629 space after the physname.
1630 (pr_class_static_method_variant): Likewise.
1631 * ieee.c (ieee_fns): Add ieee_ellipsis_type.
1632 (ieee_define_named_type): Use DEBUG_KIND_ILLEGAL rather than
1634 (write_ieee_debugging_info): Likewise.
1635 (ieee_typdef): Likewise.
1636 (ieee_ellipsis_type): New static function.
1637 (ieee_start_struct_type): Add id parameter.
1638 (ieee_start_class_type): Likewise.
1639 (ieee_tag_type): Likewise.
1640 (ieee_class_method_variant): Rename name to physname.
1641 (ieee_class_static_method_variant): Likewise.
1643 * Makefile.in (DEBUG_OBJS): Remove prdbg.o.
1644 ($(OBJDUMP_PROG)): Depend upon, and link against, prdbg.o.
1648 * dlltool.c (make_tail): Changed the order of the sections to avoid
1649 an alignment problem.
1653 * srconv.c (wr_du): Set du.stackfrmt to 0.
1654 (wr_un, wr_sc): Emit all sections, even those with 0 size.
1658 * srconv.c (wr_hd): Space size within segment was being
1659 stored in segment identifier field.
1663 * mpw-config.in (BUILD_NLMCONV, BUILD_SRCONV, SYSINFO_PROG,
1664 BUILD_DLLTOOL): Put definitions for these into makefile when
1665 configuring, instead of always clearing in mpw-make.sed.
1666 * mpw-make.sed: Edit out any host_alias or target_alias settings,
1667 fix pathname to BFD internal include files, remove dependency
1672 * objdump.c (dump_section_header): Add new section flags
1673 SEC_{EXCLUDE,SORT_ENTRIES}.
1677 * objcopy.c (filter_symbols): NULL terminate the output symbols.
1678 (copy_object): Allocate space for a possible extra NULL pointer.
1680 * debug.c (debug_make_undefined_tagged_type): Make sure we are
1681 given a kind of type we can handle.
1682 (debug_write_type): Handle undefined enums and structs.
1683 (debug_write_class_type): Handle undefined classes.
1684 * prdbg.c (pr_enum_type): Handle an undefined enum.
1685 * ieee.c (ieee_enum_type): Likewise.
1689 * Makefile.in: Updated dependencies.
1690 (ALLOCA, MALLOC): Remove variables.
1691 (ADDL_LIBS): Remove $(MALLOC) from definition.
1692 * alloca.c, gmalloc.c: Remove.
1696 * ieee.c: Add global function write_ieee_debugging_info and a
1697 bunch of static functions and structs used to write out IEEE
1698 debugging information.
1699 * budbg.h (write_ieee_debugging_info): Declare.
1701 * ieee.c (struct ieee_type): Add pslot field.
1702 (enum builtin_types): Define.
1703 (ieee_builtin_type): For a pointer, return a pointer to the named
1704 type. Use enum values rather than numbers.
1705 (ieee_alloc_type): New static function.
1706 (ieee_read_type_index): Use ieee_alloc_type.
1707 (parse_ieee_bb): Likewise.
1708 (parse_ieee_ty): Likewise. Use ieee_builtin_type for array range,
1709 rather than making a new integer type. Store the new type in the
1710 slot, if there is one.
1711 (parse_ieee_atn): Treat ATN10 as defining a register variable.
1712 (ieee_regno_to_genreg): Rename from ieee_regno_to_gen. Change all
1714 (ieee_genreg_to_regno): New static function.
1716 * stabs.c (parse_stab_type): Add new typename parameter. Change
1718 (parse_stab_range_type): Add new typename parameter. Change all
1721 * debug.h (struct debug_write_fns): Add tag parameter to
1722 enum_type, start_struct_type, and start_class_type.
1723 * debug.c (debug_write_type): Pass any tag name to
1724 start_struct_type, debug_write_class_type, and enum_type. If
1725 DEBUG_KIND_TAGGED, pass the name in the recursive call.
1726 (debug_write_class_type): Accept a new tag parameter, and pass it
1727 to start_class_type.
1728 * prdbg.c (pop_type): Don't remove '+' character.
1729 (pr_enum_type): Accept and use tag parameter.
1730 (pr_start_struct_type): Likewise.
1731 (pr_start_class_type): Likewise.
1732 (pr_class_baseclass): Adjust algorithm used to find where to put
1734 (pr_tag): Don't bother to insert the tag name.
1736 * objcopy.c: Include budbg.h.
1737 (convert_debugging): New static variable.
1738 (OPTION_DEBUGGING): Define.
1739 (copy_options): Add "debugging".
1740 (copy_usage): Mention --debugging.
1741 (is_strip_section): Skip debugging sections if convert_debugging.
1742 (setup_section, copy_section): Likewise.
1743 (filter_symbols): Skip debugging symbols if convert_debugging.
1744 (copy_object): If convert_debugging, read and write debugging
1746 (write_debugging_info): New static function.
1747 (copy_main): Handle --debugging.
1748 * Makefile.in (DEBUG_OBJS): New variable.
1749 ($(OBJCOPY_PROG)): Depend upon and link against $(DEBUG_OBJS).
1750 ($(STRIP_PROG)): Likewise.
1751 (OBJDUMP_OBJS): Remove variable.
1752 ($(OBJDUMP_PROG)): Use objdump.o $(DEBUG_OBJS) rather than
1754 * binutils.texi, objcopy.1: Document --debugging.
1758 * ieee.c: New file with code to read IEEE debugging information.
1759 * budbg.h (parse_ieee): Declare.
1760 * rddbg.c (read_debugging_info): Handle IEEE flavour files.
1761 (read_ieee_debugging_info): New static function.
1762 * Makefile.in: Rebuild dependencies.
1763 (CFILES): Add ieee.c.
1764 (OBJDUMP_OBJS): Add ieee.o.
1766 * bucomm.h (xrealloc): Change type of first parameter from char *
1771 * Makefile.in: Add targets to automatically rebuild dependencies.
1772 Remove targets which just listed dependencies of .o files.
1773 (DEP): New variable.
1774 (HFILES, GENERATED_HFILES): New variables.
1775 (CFILES, GENERATED_CFILES): New variables.
1776 (underscore.c): Don't do anything, just depend upon stamp-under.
1777 (stamp-under): New target; do what underscore.c used to do.
1778 (nlmconv.o): Depend upon sym.h and ecoff.h.
1779 (.dep, .dep1, dep.sed, dep, dep-in): New targets.
1780 (stage1, stage2, stage3, against, comparison): Remove.
1781 (de-stage1, de-stage2, de-stage3): Remove.
1782 (clean, distclean): Remove stamp-under and dep.sed.
1783 * dep-in.sed: New file.
1785 Implement generic debugging support. Implement a stabs reader and
1787 * budbg.h, debug.c, debug.h, prdbg.c, rddbg.c, stabs.c: New files.
1788 * objdump.c: Include "debug.h" and "budbg.h".
1789 (dump_debugging): New global variable.
1790 (usage): Mention --debugging.
1791 (long_options): Add "debugging".
1792 (display_bfd): Handle --debugging.
1793 * Makefile.in (OBJDUMP_OBJS): New variable.
1794 ($(OBJDUMP_PROG)): Use $(OBJDUMP_OBJS).
1795 * binutils.texi, objdump.1: Document --debugging.
1799 * nm.c ( long_options): Add "--defined-only" option.
1800 (usage): Update for new "--defined-only" option.
1801 (filter_symbols): Handle "--defined-only".
1805 * arparse.y: Include "bucomm.h", not <sysdep.h>.
1806 * nlmheader.y: Don't include "sysdep.h".
1810 * nm.c (print_symdef_entry): Check return value of
1811 bfd_get_elt_at_index.
1815 * configure.in (DLLTOOL_DEFS): Build dlltool for PowerPC if target
1816 is powerpc*-*-win* in addition to powerpc*-*-*pe*.
1820 * objdump.c (endian_string): New static function.
1821 (display_target_list): Use it.
1822 * nlmconv.c (main): Use new bfd_big_endian macro.
1826 * dlltool.c (fill_ordinals): Start from 1 if no other instructions
1831 * Makefile.in (clean): Remove $(DEMANGLER_PROG).1. From Ronald
1836 * mac-binutils.r: Fix copyright and version strings.
1838 * Makefile.in (version): Remove, no longer used.
1842 * mpw-make.sed (install, install-only): Edit in Mac-specific
1847 * dlltool.c (ppc_jtab): The binary glue for PowerPC dll linkage,
1848 including the return instruction.
1849 sinfo: added a preferred alignment field.
1850 (secdata): section data for the PowerPC version.
1851 (make_one_lib_file): More symbols, More sections (pdata, rdata)
1852 (make_tail): Use idata$6 instead of idata$7 for ppc. Also added a
1853 NULL idata$3 descriptor (temporary).
1857 * dlltool.c (fill_ordinals): Don't reference d_export_vec if
1858 there are no exported functions.
1862 * configure: Regenerate with autoconf 2.7.
1866 * dlltool.c (fill_ordinals): Start assigning ordinals at 1.
1868 * Makefile.in (EXPECT): Use $$r, not $${rootme}.
1869 (check): Set r, not rootme.
1873 * configure.in: Use BFD_NEED_DECLARATION.
1874 * acconfig.h: Put NEED_DECLARATION_FPRINTF in @TOP@ section.
1875 * configure, config.in: Rebuild with autoconf 2.6.
1879 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
1880 $(host_canonical) and $(target_canonical).
1884 Version 2.6 released.
1885 * Makefile.in (VERSION): Update to 2.6.
1889 * Makefile.in (CC_FOR_TARGET): Define.
1890 (check): Pass CC and CFLAGS to runtest.
1892 * nm.c (display_rel_file): Don't require a DYNAMIC object when
1893 dumping the dynamic symbol table.
1895 * objdump.c (compare_symbols): Sort global symbols before local
1896 symbols before debugging symbols.
1897 (objdump_print_address): Don't futz around looking for a global
1898 symbol with the same value.
1902 * dlltool.c: Use FOPEN_* macros rather than "r" or "w".
1904 * dlltool.c (fill_ordinals): Correct memset call.
1908 * mpw-make.sed (DEMANGLER_PROG): Edit out attempts to do anything
1913 * objcopy.c (setup_section): Copy the section lma independently of
1918 * arsup.c (ar_open): Cast malloc return value.
1922 * configure.in, configure (DLLTOOL_DEFS): Added ppc target.
1923 * dlltool.c (MPPC): Added basic PPC definitions.
1927 * configure.in: Don't treat rs6000-*-lynx* specially.
1928 * configure: Rebuild.
1929 * config/rslynx: Remove.
1930 * Makefile.in: Remove @target_makefile_fragment@.
1934 * bucomm.h: Include <sys/types.h>.
1935 * ar.c: Don't include <sys/types.h> or <stdio.h>.
1936 * bucomm.c, dlltool.c, nlmconv.c, objcopy.c, objdump.c: Likewise.
1940 * objdump.c: Include <sys/types.h>.
1942 Permit user to override DEMANGLER_PROG from command line. From
1944 * Makefile.in ($(DEMANGLER_PROG)): Depend upon
1945 $(DEMANGLER_PROG).1.
1946 (install): Don't depend upon $(DEMANGLER_PROG).1. Only install
1947 $(DEMANGLER_PROG).1 if $(DEMANGLER_PROG) is not empty.
1951 * Makefile.in (syslex.o): add -I$(srcdir) if compiling in a
1956 * objdump.c (objdump_print_value): New static function.
1957 (objdump_print_address): Use it. If we need the right section for
1958 the symbol, and we can't find it, print an offset from the section
1959 rather than using a symbol from some other section.
1963 * dlltool.c (no_idata4, no_idata5): New.
1964 (arm_jtab): Use correct encoding of jump instruction.
1965 (usage, main, make_head, make_tail): Act on no_idata4, no_idata5.
1969 * mpw-make.sed: Edit paths to generated y.tab.[ch] files.
1973 * binutils.texi: Change --with-targets to --enable-targets.
1977 * Makefile.in: Remove extraneous tab on otherwise empty line,
1978 which confuses many non-GNU versions of "make".
1982 * dlltool.c (i386_jtab, arm_jtab): New
1983 (gen_lib_file): Rewritten to use bfd.
1987 * Makefile.in (install): Don't give error message if dlltool
1992 * deflex.l: Allow quoting of IDs.
1993 * defparse.y (%union): string deleted.
1994 (command): DESCRIPTION takes ID.
1995 * dlltool.c (gen_def_file): Quote outgoing name if
1996 necessary. Preserve NONAME.
1997 (gen_lib_file): Run ranlib.
1998 (workout_prefix): Deleted.
1999 (main, usage, long_options): Add --as, --ranlib, --ar options.
2003 * dlltool.c (mtable): HOW_ALIGN_LONG, new.
2005 (d_low_ord, d_high_ord, d_named_funcs): New.
2006 (gen_exp_file): Create noname entries correctly.
2007 (gen_lib_file): Dump exports alphabetically.
2008 (process_duplicates): Count nonamed functions.
2009 (fill_ordinals): Keep track of highest ord too.
2010 (mangle_defs): Create alphabetically ordered list of names.
2014 * Makefile.in (TOOL_PROGS): Include DLLTOOL_PROG.
2018 * dlltool.c (add_underscore): New.
2019 (xlate): Use new name.
2020 (main, usage): Update.
2024 * sysinfo.y: Eliminate unused terminals "[" and "]" and unused
2025 nonterminal "name". One s/r conflict remains.
2029 * nm.c (print_symname): Don't try to demangle an empty
2031 * objdump.c (slurp_symtab): Reset symcount if there are
2033 (slurp_dynamic_symtab): Likewise, for dynsymcount.
2034 (disassemble_data): Fix memory leak: free sorted_syms when done.
2035 (display_bfd): Likewise, for syms and dynsyms.
2036 (dump_relocs): Don't print header before possibly generating an
2038 (dump_dynamic_relocs): Likewise.
2040 * ar.1, nm.1, objdump.1, size.1, strings.1, strip.1: Fix typos and
2045 * ar.c (do_quick_append): Comment out.
2046 (replace_members): Add quick argument.
2047 (main): Don't call do_quick_append.
2048 (open_inarch): Don't call quick_append to create an empty archive.
2049 Instead call bfd_openw/bfd_set_format/bfd_close.
2053 * bucomm.c: Always include time.h.
2057 * objdump.c (compare_symbols): Sort gnu_compiled and gcc2_compiled
2058 symbols after other symbols with the same value. Likewise for
2059 symbols which look like file names.
2060 (objdump_print_address): Always chose the first reasonable symbol
2065 * arsup.c (ar_save): Use rename, not unlink/link/unlink.
2069 * strings.c (main): Exit with zero status if no files are given
2070 and standard input is read.
2074 * mpw-config.in: Calculate underscore and put into makefile
2075 fragment, generate config.h.
2076 * mpw-make.sed: New file, sed commands to edit Unix makefile
2078 * mpw-make.in: Remove.
2079 * mac-binutils.r: New file, Mac resources.
2083 * dlltool.c: (gen_exp_file): Always emit a .reloc section if
2085 (imp_name_lab): New.
2086 (gen_def_file): New.
2087 (gen_lib_file): Use imp_name_lab.
2088 (main): Initialize imp_name_lab.
2092 * configure.in: Call AC_HEADER_SYS_WAIT.
2093 * configure: Rebuild.
2094 * config.in: Rebuild.
2095 * dlltool.c: Include "libiberty.h" and "bucomm.h". Don't include
2096 <stdio.h>, <stdlib.h>, or <string.h>. Don't include <wait.h>.
2097 Include <sys/types.h>. Use HAVE_SYS_WAIT_H to control whether to
2098 include <sys/wait.h> or define the wait macros by hand. Don't
2100 (gen_lib_file): Don't assume that sprintf returns the number of
2101 characters; use strlen instead.
2105 * objdump.c (disassemble_data): Don't use the old BFD based
2106 disassembler interface. Make info a const pointer.
2110 * objdump.c (start_address): New variable.
2111 (stop_address): New variable.
2112 (usage): Mention --start-address and --stop-address.
2113 (OPTION_START_ADDRESS, OPTION_STOP_ADDRESS): Define.
2114 (long_options): Add "start-address" and "stop-address".
2115 (disassemble_data): Handle start_address and stop_address.
2116 (dump_data, dump_reloc_set): Likewise.
2117 (main): Don't set seenflag for -l. Handle OPTION_START_ADDRESS
2118 and OPTION_STOP_ADDRESS.
2119 * objcopy.c (parse_vma): Move to bucomm.c.
2120 * bucomm.c (parse_vma): New function, moved in from objcopy.c.
2121 * bucomm.h (parse_vma): Declare.
2122 * binutils.texi, objdump.1: Document new objdump options.
2126 * Makefile.in (maintainer-clean): New target.
2128 * ar.c (replace_members): Don't call write_archive if nothing
2131 * objdump.c (disassemble_data): Add casts to avoid gcc warnings.
2135 * config.in: Rename from config.h.in.
2136 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2137 Check for config.h:config.in when creating stamp-h.
2138 * configure: Rebuild.
2139 * Makefile.in (stamp-h): Depend upon config.in rather than
2140 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
2141 calling config.status.
2143 * Makefile.in (distclean): Remove config.h, stamp-h, and
2146 * nm.c (value_format): Initialize based on BFD64 and
2147 BFD_HOST_64BIT_LONG.
2148 (print_radix): New static variable.
2149 (set_print_radix): Set print_radix. Adjust changes to
2151 (print_value): New static function, to print 64 bit octal and
2152 decimal values correctly.
2153 (print_symbol_info_bsd): Check BFD64, not BFD_HOST_64_BIT. Use
2155 (print_symbol_info_sysv): Use print_value.
2156 (print_symbol_info_posix): Likewise.
2160 * Makefile.in (*.o): Remove incorrect dependencies on
2161 $(BFDDIR)/hosts/std-host.h.
2163 * Makefile.in (INSTALL_DATA): Add -m 644.
2164 (INSTALL_XFORM1): Likewise.
2165 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@ rather than $(CC).
2166 (mostlyclean): Remove config.log.
2167 (distclean): Remove config.cache.
2169 * configure.in: Call BFD_CC_FOR_BUILD and BFD_BINARY_FOPEN.
2170 * configure: Rebuild.
2174 * configure.in: Rewrite to use autoconf.
2175 * aclocal.m4: New file.
2176 * configure: New file, built by autoconf.
2177 * acconfig.h: New file.
2178 * config.h.in: New file, built by autoheader.
2179 * Makefile.in: Various changes for new configure script. Also:
2180 (PROGS): Remove $(SYSINFO_PROG).
2181 (ALL_CFLAGS): Remove $(TDEFINES).
2182 (version.o): Use $(ALL_CFLAGS).
2183 (cplus-dem.o, dlltool.o, nlmconv.o): Likewise.
2184 (sysdump.o): Depend upon bucomm.h and config.h.
2185 (srconv.o, arsup.o, strings.o): Depend upon config.h.
2186 (filemode.o): Don't depend upon ../bfd/sysdep.h.
2187 (bucomm.o): Depend upon config.h, not ../bfd/sysdep.h.
2188 (size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise.
2189 (nlmheader.o, nlmconv.o): Likewise.
2190 (distclean): Don't remove sysdep.h.
2191 * bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h".
2192 Include "fopen-same.h" or "fopen-bin.h", based on
2193 USE_BINARY_FOPEN. Include <errno.h>, and declare errno if it is
2194 not a macro. Include <unistd.h>, <string.h>, <strings.h>,
2195 <stdlib.h>, and <fcntl.h> if they are present. Declare strchr,
2196 strrchr, and strstr if no string header file exists. Include
2197 <sys/file.h> if it exists and <fcntl.h> does not. Define
2198 O_RDONLY and O_RDWR if necessary.
2199 * ar.c: Don't include "sysdep.h". Do include <sys/types.h> and
2200 <sys/stat.h>. Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME. Use
2201 HAVE_UTIMES rather than !USE_UTIME. Don't include <errno.h>, and
2202 don't declare errno.
2203 * arsup.c: Don't include <sysdep.h>.
2204 * bucomm.c: Don't include "sysdep.h". Include <stdio.h>,
2205 <sys/types.h>, and <sys/stat.h>. Include <time.h> if it defines
2206 time_t. Define time_t if necessary.
2207 * coffdump.c: Don't include "sysdep.h".
2208 * coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise.
2209 * srconv.c, strings.c: Likewise.
2210 * nm.c: Don't include "sysdep.h". Don't try to define HAVE_SBRK.
2211 * objcopy.c: Don't include "sysdep.h". Include <sys/types.h> and
2213 (simple_copy): Use creat rather than assuming that O_CREAT is
2215 * objdump.c: Don't include "sysdep.h". Use
2216 NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED.
2217 * sysdump.c: Include "bfd.h" and "bucomm.h". Don't include
2218 "sysdep.h" or <stdlib.h>.
2219 (dump_symbol_info): Rename from symbol_info. Change all callers.
2223 * configure.in (host_makefile_frag): Don't set. Substitute for
2224 @CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile.
2225 * Makefile.in (AR_FLAGS): Set to rc rather than qv.
2226 (CC): Define as @CC@.
2227 (CFLAGS): Set to @CFLAGS@.
2228 (LDFLAGS): Define as @LDFLAGS@.
2229 (ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).
2231 * configure.in: Don't bother to call config.bfd for each target.
2232 Just call it for the default target, and use the shell variable to
2233 decide whether underscores are used.
2237 * configure.in: match i[3-6]86-*-win32, not just i386-*-win32.
2241 * dlltool.c (add_indirect): New.
2243 (gen_exp_file): Timestamp should be 0. Insert prefix when
2244 needed. New code for indirection.
2245 (gen_lib_file): Timestamp should be 0. Insert prefix
2247 (usage): Document --add-indirect.
2248 (main): Cope with new option.
2250 * objdump.c (dump_private_headers): New.
2251 (usage): Document new option.
2252 (long_option): Add private-headers.
2253 (dump_bfd_private_header): New.
2254 (main): Cope with new option.
2258 * dlltool.c (run): Add missing 3rd arg to waitpid.
2262 * Makefile.in (TOOL_PROGS): Include dlltool if needed.
2266 * dlltool.c (rva): Deleted.
2267 (rvaafter, rva_before): Use new assembler pseudo.
2268 (flush_page, gen_exp_file, gen_lib_file): Use new way of RVAing.
2269 (gen_exp_file): Don't generate .edata if no need.
2270 (gen_lib_file): Don't make timestamp.
2271 Put _iname in idata$7.
2272 (workout_prefix): Fix memory initialization bug.
2273 (usage): Tidy up, delete many single char options.
2274 (main): rva option is gone.
2278 * dlltool.c (options): image-base is a synonym for rva.
2279 (gen_lib_file): Put dll name into ibase$7.
2283 Modified to generate archives and objects rather than .s files.
2284 * dlltool.c (run) New function.
2285 (gen_exp_file, gen_lib_file): Use run.
2286 (workout_prefix): New.
2287 (usage): Document new options.
2288 (main): Parse new options.
2292 * dlltool.c (gen_exp_file): Fix RVA handling.
2293 (rva_s, rva_n): Delete.
2297 * nm.c (main): Ignore -e.
2301 * Makefile.in (config.texi): New target. Write out a setting for
2302 texinfo variable VERSION.
2303 (binutils.dvi, binutils.info): Depend on it.
2304 * binutils.texi: Include it, and reference @value{VERSION} instead
2305 of explicitly specifying 2.2(!).
2309 * coffgrok.c (do_type): Handle array dimensions the same way gdb
2314 * dlltool.c (mtable): New fields.
2315 (ASM_RVA_BEFORE, ASM_RVA_AFTER): New.
2316 (flush_page): Use new macros.
2320 * objcopy.c (mark_symbols_used_in_relocations): Handle sections
2321 with no relocations.
2322 * coffgrok.c (do_sections_p1): Likewise.
2326 * strings.c (print_strings): For compatibility with existing
2327 strings programs, print strings which are not terminated with a
2328 null byte or a newline.
2329 * binutils.texi, strings.1: Update documentation accordingly.
2331 * ar.c (replace_members): For compatibility with existing ar
2332 programs, permit users to add the same file multiple times.
2336 * strings.c (DATA_FLAGS): Remove SEC_DATA.
2337 (main): If no file names are given, scan standard input.
2338 * binutils.texi, strings.1: strings now scans non-data sections by
2343 * srconv.c (wr_hd): Set afl field to 4 for bfd_arch_sh.
2344 (writeINT): When size == -2, use 2 bytes for the h8300 and 4 bytes
2347 * sysdump.c (fillup): Return size - 1, the last byte is a checksum
2348 and shouldn't be counted.
2349 * sysroff.info (hd): Changed segment identifier from a byte to a 1
2350 bit field. The sysroff 2.0-01 specification seems to be in error
2351 here. Reduce width of following "spare" field from 4 to 3 bits.
2352 (rl): Changed order and width of first 4 bitfields to correspond
2353 to sysroff specification.
2354 (dln_head, dln_inside, dln_tail): Removed.
2358 * nm.c (sort_symbols_by_size): Enclose expression being casted
2359 in parens so result is casted, not just first operand. Can't
2360 do pointer arithmetic on void* pointers.
2364 * sysdump.c (dh): Changed format of output to be 16 hex digits
2365 followed by 16 ascii characters, similar to Emacs' hexl-mode,
2366 to make it easier to read.
2367 (xcalloc): fix typo.
2371 * srconv.c (wr_tr): Write out handcrafted tr block.
2372 (walk_tree_symbol): Use evallen and evalue instead of
2373 vallen & value because of corresponding changes in
2376 * sysdump.c (sysroff_swap_tr_in, sysroff_print_tr_out): New
2379 * sysroff.info (tr): the tr block is a special case --- a block
2380 without contents --- which can't be handled by generated code.
2381 (den, dpp): only first byte is present for DENend, DPPend.
2382 (dsy): describe a conditional portion of block, rename some fields.
2383 (dps): describe a conditional portion of block.
2386 * sysinfo.y (yyerror): write error message to standard error.
2390 * Makefile.in (DISTSTUFF): Add arparse.h and sysinfo.h.
2391 (mostlyclean): Remove y.output.
2392 (clean): Remove sysroff, sysroff.c, sysroff.h, and sysinfo.
2394 * nlmconv.c (powerpc_mangle_relocs): Cast memset arg to size_t.
2395 * objcopy.c (copy_object): Likewise.
2397 * nm.c (HAVE_SBRK): Define except on amigados and WINDOWS_NT.
2398 (struct size_sym): Define.
2399 (show_stats): New static variable.
2400 (long_options): Add undocumented option "stats".
2401 (main): Print memory stats if requested.
2402 (sort_bfd, sort_dynamic, sort_x, sort_y): New static variables.
2403 (numeric_forward): Use minisymbols rather than asymbols.
2404 (non_numeric_forward): Likewise.
2405 (size_forward1): Rename from size_forward. Use minisymbols.
2406 (size_forward2): New static function.
2407 (sort_symbols_by_size): Take new arguments dynamic, size, and
2408 symsizep. Use minisymbols. Don't store the size back in the
2409 symbol; store in a newly allocate struct size_sym array.
2410 (display_rel_file): Read minisymbols rather than asymbols. Set
2411 sort_* variables. Call print_size_symbols if sorting by size.
2412 (filter_symbols): Take new arguments dynamic and size. Use
2414 (print_symbols): Likewise. Call print_symbol for actual printing.
2415 (print_size_symbols): New static function.
2416 (print_symbol): New static function.
2420 * objdump.c (dump_section_stabs): Only print each stabs section
2422 (compare_relocs): Make it clear to gcc that this always returns a
2427 * objcopy.c (simple_copy): Preserve errno on failure.
2428 (smart_rename): Print error mesage if simple_copy fails.
2432 * sysdump.c: re-indented file.
2433 (module): read blocks sequentially instead of trying to parse
2434 them, as that would require changing the parser recognize the
2435 difference between a DPSstart and DPSend block.
2436 (getone): Add break's between switch blocks as appropriate.
2437 (object_body_list): parse blocks according to sysroff spec.
2441 * sysroff.info: re-indented file, prior formatting was confusing
2442 because it was indentation did not reflect nesting of conditional
2443 records. Change "space size within segment" record in hd record
2446 * sysinfo.y (cond_it_field): Use xcalloc instead of calloc.
2448 * srconv.c (wr_cs): Reformatted cs header array, tag each byte
2449 with a comment describing the field.
2450 (wr_unit_info): Use SEEK_SET macro instead of constant 0.
2451 (main): Use FOPEN_WB macro instead of literal "wb".
2452 * sysroff.info: Remove fdl (dfl) field from cs block. Compare
2453 ptr->type with ED_TYPE_CONST instead of constant 2 in ed block.
2457 * nm.c (size_forward): Check yf against yn, not xn.
2459 * objcopy.c (copy_archive): Record all output BFD's, and close
2460 them before unlinking them and removing the temporary directory,
2461 to avoid NFS problems.
2463 * ar.c (replace_members): In verbose messages, use 'r' when
2464 replacing a member, and 'a' when adding one.
2466 * ar.c (ar_truncate): New static variable.
2467 (normalize): Change return type to const char *. Add abfd
2468 argument. Change all callers. If ar_truncate, chop the filename
2469 to abfd->ar_max_namelen.
2470 (main): For the 'f' modifier, set ar_truncate to true. Don't
2471 change quick_append to replace if ar_truncate is true.
2472 (do_quick_append): If ar_truncate, set BFD_TRADITIONAL_FORMAT.
2473 (write_archive): Likewise.
2474 * binutils.texi, ar.1: Document 'f' modifier.
2476 * objcopy.c (enum strip_action): Define strip_unneeded.
2477 (OPTION_STRIP_UNNEEDED): Define.
2478 (strip_options): Add "strip-unneeded".
2479 (copy_options): Likewise.
2480 (copy_usage): Mention --strip-unneeded.
2481 (strip_usage): Likewise.
2482 (is_strip_section): Strip debugging sections if strip_unneeded.
2483 (filter_symbols): If strip_unneeded, only keep BSF_KEEP symbols.
2484 (copy_object): If strip_all, discard symbols without checking
2486 (copy_object): Call filter_symbols if strip_unneeded.
2487 (setup_section): Strip debugging sections if strip_unneeded.
2488 (copy_section): Likewise.
2489 (strip_main): Handle OPTION_STRIP_UNNEEDED.
2490 (copy_main): Likewise.
2491 * binutils.texi, objcopy.1, strip.1: Document --strip-unneeded.
2495 * configure.in (i386-*-win32): New configuration.
2496 * dlltool.c (killat, xlate, usage, long_options, main):
2497 Understand and cope with -k option.
2501 * ar.c: (extract_file): Change "#if POSIX_UTIME" to
2502 "#ifdef POSIX_UTIME" to match other tests of POSIX_UTIME
2503 and avoid lossage when POSIX_UTIME is not defined at all.
2507 * ar.c: (print_contents.c, extract_file, do_quick_append):
2508 Malloc buffers rather than allocate on stack (so it works
2510 * deflex.l: Names can have an @ in them.
2511 * dlltool.c: Loads of stuff. Can now generate .imp files which
2516 * mpw-make.in (demangle.c.o): Remove.
2517 (arparse.h): Depend on arparse.c instead of arparse.y.
2521 * Makefile.in (DISTSTUFF): Don't include info here.
2522 (diststuff): Include it here.
2523 (realclean): Remove *.info.
2525 * objdump.c (compare_relocs): If relocation entries have the same
2526 address, keep them in file order.
2530 * dlltool.c: Change names of generated files. .*.s-> -*.s
2532 * objdump.c (dump_section_stabs): Check for names
2533 which are supersets of selected names.
2537 * dlltool.c (mtable, ARM jump): Must redirect via pc offsetable ptr.
2541 * deflex.l, defparse.y, dlltool.c: New files.
2542 * Makefile.in, configure.in: Support for them.
2546 * sysdump.c: Include sysdep.h
2547 (main): Open input with FOPEN_RB.
2551 * objdump.c (wide_output): New flag variable.
2552 (usage): Print new -w, --wide options.
2553 (long_options): Add --wide support.
2554 (dump_section_header): If --wide, don't print a newline between
2555 the section's first line and the flags.
2556 (objdump_print_address): Use unsigned comparisons for the binary
2558 (disassemble_data): If --wide, don't put a \n between the
2559 disassembly output and relocation information.
2560 (main): Support -w option being the same as --wide.
2566 * objcopy.c (smart_rename): make it smarter, clean up
2571 * Makefile.in: Delete lines with lots of #### because four or more
2572 indicate a point for makefile fragment substitution.
2576 * configure.in: Don't build nlmconv on PowerPC eabi any more, it
2581 * Makefile.in (EXPECT): Define.
2582 (RUNTEST): Use one in source tree if present.
2583 (check): Set `rootme' for $(EXPECT).
2587 * srconv.c (main): Add support for -n option which disables
2588 prescan of common symbols.
2589 (wr_ob): If reading past the end of a section, fill with zeros.
2593 * objdump.c (dump_section_header): Display load address after
2594 virtual memory (run-time) address.
2598 * Makefile.in (cplus-dem.o): Pass -DVERSION='"$(VERSION)"' to the
2600 (DEMANGLER_PROG): No longer uses version.o.
2604 Merge in support for Mac MPW as a host.
2605 (Old change descriptions retained for informational value.)
2607 * mpw-config.in (TDEFINES): Define as empty in makefile frag.
2609 * mpw-config.in: Create mk.tmp, define ARCHDEFS in it.
2611 * mpw-config.in: New file, MPW configure fragment for binutils.
2612 * mpw-make.in (install-only): New target.
2613 (install): Also depend on install-only.
2615 * mpw-make.in (cplusfilt): Renamed from c++filt.
2616 (INCLUDES): Add more paths.
2618 * mpw-make.in: New file, MPW makefile fragment for binutils.
2619 (Normally automatically generated from Makefile.in.)
2623 * ar.c (write_archive): Call make_tempname to get output file
2624 name, rather than using a fixed name based on the input file.
2626 * objcopy.c (make_tempname): Copy from here...
2627 * bucomm.c (make_tempname): ...to here, and make global.
2628 * bucomm.h (make_tempname): Declare.
2632 * strings.c: Include "bfd.h" before other headers. Include
2634 * bucomm.c (print_arelt_descr): Cast st_uid and st_gid to long,
2635 and print them with %ld.
2639 * objcopy.c (strip_options): Add --keep-symbol.
2640 (copy_options): Likewise.
2641 (copy_usage): Mention --keep-symbol and -K.
2642 (strip_usage): Likewise.
2643 (keep_symbols): New static variable.
2644 (is_strip_symbol): Adjust the return value according to
2646 (strip_main): Handle -K. For -N, check that -K was not given.
2647 (copy_main): Likewise.
2648 * binutils.texi, objcopy.1, strip.1: Document -K.
2652 * objcopy.c (copy_archive): Check result of mkdir.
2653 (copy_main): Cast an xmalloc result.
2655 * objdump.c (usage): Break long format string into shorter ones.
2659 * bucomm.c (list_supported_targets): New function.
2660 * bucomm.h (list_supported_targets): Declare.
2661 * ar.c (usage): Call list_supported_targets.
2662 * nm.c (usage): Likewise.
2663 * objcopy.c (copy_usage, strip_usage): Likewise.
2664 * objdump.c (usage): Likewise.
2665 * size.c (usage): Likewise.
2666 * strings.c (usage): Likewise.
2670 * bucomm.c (print_arelt_descr): Cast st_size to long before
2671 passing it to fprintf.
2675 * objcopy.c (struct section_list): Add fields remove, set_flags,
2676 and flags. Change adjust from boolean to enum.
2677 (remove_sections): Remove static variable.
2678 (sections_removed): New static variable.
2679 (copy_options): Add --set-section-flags.
2680 (copy_usage): Mention --set-section-flags.
2681 (parse_flags): New static function.
2682 (find_section_list): New static function.
2683 (is_strip_symbol): Change return type from int to boolean.
2684 (is_strip_section): New static function.
2685 (filter_symbols): Call is_strip_section.
2686 (copy_object): When adding sections, check for specified flags or
2687 VMA. Call filter_symbols if any sections are being removed.
2688 (setup_section): Use find_section_list function rather than
2689 looking through remove_sections and adjust_sections. Handle
2690 --set-section-flags.
2691 (copy_section): Use find_section_list rather than looking through
2693 (strip_main): Use find_section_list instead of adding items to
2695 (copy_main): Use find_section_list instead of adding items to
2696 sections_removed and adjust_sections. Handle --set-section-flags.
2697 * binutils.texi, objcopy.1: Document --set-section-flags.
2701 * objdump.c (with_source_code): New global variable.
2702 (usage): Mention -S/--source.
2703 (long_options): Add --source.
2704 (prev_functionname, prev_line): New static variables.
2705 (struct print_file_list): Define.
2706 (print_files): New static variable.
2707 (skip_to_line, show_line): New static functions.
2708 (disassemble_data): Call show_line to handle -l and -S.
2710 * binutils.texi, objdump.1: Document -S/--source.
2714 * objcopy.c (copy_usage): Rename parameter to avoid shadowing.
2715 (strip_usage): Likewise.
2717 * objcopy.c (struct section_add): Define.
2718 (add_sections): New static variable.
2719 (copy_options): Accept --add-section.
2720 (copy_usage): Mention --add-section.
2721 (copy_object): Add sections from the add_sections list.
2722 (copy_main): Handle --add-section.
2723 * binutils.texi, objcopy.1: Document --add-section.
2727 * objdump.c (disassemble_data): Pass section offset, not absolute
2728 address, to bfd_find_nearest_line.
2730 * nlmconv.c (powerpc_mangle_relocs): Don't use const with
2735 * objdump.c (compare_symbols): Use bfd_asymbol_value (VAR) rather
2737 (objdump_print_address): Likewise.
2738 (disassemble_data): Don't change the symbol values. It can
2739 confuse bfd_canonicalize_reloc.
2743 * configure.in: Add support for powerpc-*-ebai.
2745 Wed Jan 18 10:02:12 1995 Steve Chamberlain <sac@splat>
2747 * coffdump.c: Include sysdep.h.
2748 (dump_coff_type): Handle coff_secdef_type.
2749 * coffgrok.c : Include sysdep.h.
2750 * srconv.c: Include libiberty.h
2751 (absolute_p, dty_start, dty_end, dump_tree_structure): Remove.
2755 * coffdump.c (dump_coff_scope): Cast pointer to unsigned long for
2757 * coffgrok.c: Include bucomm.h. Don't declare xmalloc.
2758 (push_scope): Declare type of parameter link.
2759 * size.c: Include libiberty.h.
2760 * srconv.c: Include bucomm.h.
2761 (find_base): Declare at top of file.
2762 (wr_hd): Add default case to architecture switch.
2763 (wr_dps_start): Declare type of parameter nest.
2764 (wr_du): Comment out variables used only in commented out blocks.
2765 (wr_dus): Remove unused variable i.
2766 (wr_sc): Remove unused variables myinfo, low, and high.
2767 * strings.c: Include libiberty.h.
2768 * sysdump.c: Include <ctype.h>.
2772 * ar.c (main): Ignore 'f' modifier used on HP/UX 9.
2776 * ar.c, nm.c, objcopy.c, objdump.c: Include progress.h.
2777 * ar.c, nm.c, objcopy.c, objdump.c (main): Add START_PROGRESS
2779 * ar.c (map_over_members, open_inarch): Call PROGRESS.
2780 * nm.c (main, display_archive, filter_symbols, print_symbols):
2783 * objcopy.c (copy_usage): Break up long usage string.
2787 * objcopy.c (copy_object): Don't bother setting status after
2788 nonfatal() "call", because it won't return.
2792 * nlmconv.c (powerpc_mangle_relocs): Don't switch a reloc to use
2793 the section symbol if the symbol is undefined.
2797 * objcopy.c (add_strip_symbol): Cast return value of xmalloc.
2801 * ar.c (replace_members): Pass current->filename to normalize when
2802 checking for duplicates, because the filename of a newly added
2803 file will not have been normalized yet.
2807 * ar.c (main): Don't call do_quick_append if any of the archive
2808 names are longer than 14 characters.
2810 * objcopy.c (main): Fix is_strip test. From
2815 * objcopy.c (add_strip_symbol): New function, adds a name to an
2816 explicit list of symbols to strip.
2817 (is_strip_symbol): New function, reports whether the name argument
2818 is in the explicit list.
2819 (filter_symbols): Check against is_strip_symbol above all.
2820 (strip_main): Recognize -N option. If used, don't default to
2822 (copy_main): Recognize -N option.
2823 (strip_usage): Document -N and --strip-symbol options.
2824 (copy_usage): Ditto.
2825 * objcopy.1, strip.1, binutils.texi: Document -N and
2826 --strip-symbol options.
2830 * objdump.c (display_target_list, display_info_table): Pass an
2831 array to tmparg, rather than NULL, since some systems can't handle
2834 * objcopy.c (copy_archive): Keep a list of the names of the
2835 temporary files we created. Close each input BFD after we open
2840 * Makefile.in (VERSION): Bump to 2.5.3.
2844 * Makefile.in (install-info): Install info files from whatever
2845 directory they were found in.
2847 Patch from DJ Delorie:
2848 * configure.bat: do c++filt -> cxxfilt right
2850 * sysinfo.y: Include system header files early, so any potential
2851 declaration of abort() occurs before its use.
2853 * strings.c (strings_file): Try opening the file in binary mode
2858 * ar.c (main): Treat ar qs like ar rs.
2862 * objcopy.c (gap_fill): Explicitly initialize, for clarity.
2863 (pad_to_set, pad_to): New static variables.
2864 (copy_options): Accept --pad-to.
2865 (copy_usage): Mention --pad-to.
2866 (copy_object): Support --pad-to.
2867 (compare_section_vma): Sort non loadable sections to the front.
2868 Sort sections with the same VMA by size.
2869 (copy_main): Handle --pad-to.
2870 * binutils.texi, objcopy.1: Document --pad-to.
2874 * objcopy.c (gap_fill_set, gap_fill): New static variables.
2875 (copy_options): Accept --gap-fill.
2876 (copy_usage): Mention --gap-fill.
2877 (copy_object): Support --gap-fill.
2878 (get_sections, compare_section_vma): New static functions.
2879 (copy_main): Handle --gap-fill.
2880 * binutils.texi, objcopy.1: Document --gap-fill.
2884 * Makefile.in (check): Add a dummy else clause to the if
2887 * objcopy.c (copy_object): Revert yesterday's change.
2888 * binutils.texi, objcopy.1: Remove special mention of --set-start
2889 and `binary' output format.
2893 * objcopy.c (copy_object): If the output file format is `binary',
2894 and the start address was not set using --set-start, default the
2895 start address to zero. This hack is because the `binary' output
2896 file format uses the start address to set the virtual address of
2897 the first byte in the file.
2898 * binutils.texi, objcopy.1: Add some notes on generating S-records
2901 * nm.c (print_symdef_entry): Call print_symname to print the
2902 symbol name, so that --demangle works.
2904 * Makefile.in (mostlyclean): Remove tmpdir.
2906 * objcopy.c (struct section_list): Add fields used, adjust, val.
2907 (adjust_start, set_start_set, set_start): New static variables.
2908 (adjust_section_vma, adjust_sections): New static variables.
2909 (copy_options): Add --adjust-start, --adjust-vma,
2910 --adjust-section-vma, --adjust-warnings, --no-adjust-warnings,
2912 (parse_vma): New static function.
2913 (copy_usage): Mention new options.
2914 (copy_object): Handle --set-start and --adjust-start.
2915 (setup_section): Correct type of last argument to PTR. Set used
2916 field if section is removed. Handle --adjust-vma and
2917 --adjust-section-vma.
2918 (copy_section): Correct type of last argument to PTR.
2919 (mark_symbols_used_in_relocations): Likewise.
2920 (strip_main): Clear used field when handling -R.
2921 (copy_main): Handle new options.
2922 * binutils.texi (objcopy): Document new options.
2923 * objcopy.1: Document new options.
2927 * configure.in (configdirs): Remove definition--testsuite is no
2929 * Makefile.in (testsuite): Remove target.
2930 (site.exp): New target.
2932 (clean, distclean): Don't recur into testsuite directory.
2936 * Makefile.in (VERSION): Updated to 2.5.
2937 * Version 2.5 released.
2941 * Makefile.in (sysdump.o): Depends upon sysroff.c.
2945 * nlmconv.c (link_inputs): Pass -Ur flag to ld so that the
2946 ctor/dtor tables needed by C++ programs are built.
2950 * Makefile.in (srconv.o): Add dependence on sysroff.c.
2954 * configure.in: Use ${config_shell} when running config.bfd.
2956 * Makefile.in (sysroff.h): Split target away from sysroff.c.
2957 (srconv.o, sysdump.o): New targets.
2958 (srconv, sysdump): Don't depend upon sysroff.c.
2962 * Makefile.in (arparse.c): Don't ignore errors from mv.
2963 (sysinfo.c): Likewise. Also, depend upon arparse.c, to prevent a
2964 parallel make from trying to build both arparse.c and sysinfo.c
2966 (nlmheader.c): Similar change.
2967 (arparse.h): Separate target from arparse.c, so that a parallel
2968 make does not try to build both at once. Depend upon arparse.c.
2969 (sysinfo.h): Similar change.
2971 * objdump.c (disassemble_data): Pass the reloc buffer to free, not
2972 the pointer used to loop over the relocs.
2976 * objdump.c (disassemble_data): Cast result of xmalloc.
2980 * objdump.c (sorted_syms, sorted_symcount): New global variables.
2981 (objdump_print_address): Use sorted_syms and sorted_symcount
2982 instead of syms and symcount.
2983 (disassemble_data): Don't bother to get the relocs before looping
2984 over the sections. Before filtering and sorting the symbol table,
2985 copy it into sorted_syms.
2989 * objdump.c (struct objdump_disasm_info): Add field require_sec.
2990 (objdump_print_address): If aux->require_sec, require that the
2991 symbol be in aux->sec even if HAS_RELOC is not set. If we can't
2992 find a smaller symbol in the right section, look for a larger one.
2993 (disassemble_data): Set aux.require_sec around the
2994 objdump_print_address call for the instruction address.
2998 * ar.c: Call xexit rather than exit.
2999 (output_filename, output_file, output_bfd): New static variables.
3000 (remove_output): New static function.
3001 (main): Call xatexit (remove_output). Call xexit rather than
3003 (extract_file): Set output_filename and output_file while output
3005 (write_archive): Likewise, but use output_bfd, not output_file.
3006 * arsup.c: Include libiberty.h. Call xexit rather than exit.
3007 * bucomm.c: Likewise.
3009 * objdump.c (disassemble_all): New global variable.
3010 (usage): Document --disassemble-all.
3011 (long_options): Add disassemble-all as a synonym for -D.
3012 (compare_symbols): Make pointers const.
3013 (compare_relocs): New static function.
3014 (disassemble_data): Rename disassemble to disassemble_fn to avoid
3015 shadowing. If dump_reloc_info, print relocs along with
3016 disassembly. Skip sections which are not SEC_CODE unless
3017 disassemble_all or only is set.
3018 (display_bfd): Don't call dump_relocs if disassemble is set.
3019 (main): Accept and handle -D.
3020 * binutils.texi: Document -D/--disassemble-all.
3021 * objdump.1: Likewise.
3025 * objdump.c (disassemble_data): Initialize prevline to 0. Make
3026 prev_function non const. Copy functionname into an malloc buffer
3027 when setting prev_function, instead of assuming that the string
3030 * nm.c: Include libiberty.h.
3031 (sort_by_size): New static variable.
3032 (long_options): Add --size-sort.
3033 (usage): Mention --size-sort.
3034 (numeric_forward): Make static. Change from void * to PTR.
3035 (numeric_reverse): Likewise.
3036 (non_numeric_forward, non_numeric_reverse): Likewise.
3037 (sorters): Change declaration from void * to PTR.
3038 (size_forward, sort_symbol_by_size): New static functions.
3039 (display_rel_file): Handle sort_by_size.
3040 (filter_symbols): If sort_by_size, discard absolute and undefined
3042 * binutils.texi (nm): Document --size-sort.
3043 * nm.1: Document --size-sort.
3047 * objcopy.c (copy_main): Initialize input_filename and
3048 output_filename to NULL.
3052 * Makefile.in (version.o): Depend upon Makefile, so that version.o
3053 gets rebuilt when make variable VERSION is changed.
3055 * objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.
3059 * configure.in: Change i[34]86 to i[345]86.
3063 * ar.c (ranlib_touch): Don't update the archive map if there isn't
3068 * ar.c: Include libiberty.h.
3069 (inarch): Remove variable.
3070 (map_over_members): Make static. Add arch argument, and use it
3071 instead of inarch. Change all callers.
3072 (main): Treat --version as -v. Accept -t argument. Accept any
3073 number of archive arguments. Catch and use open_inarch return
3074 value, rather than using inarch.
3075 (open_inarch): Return newly opened BFD, rather than using inarch.
3076 (do_quick_append): Make archive_filename const.
3077 (write_archive): Add iarch argument, and use it instead of inarch.
3079 (delete_members, move_members, replace_members): Likewise.
3080 (ranlib_only): Don't exit on success. Catch and use open_inarch
3082 (ranlib_touch): New function.
3083 * arsup.h (map_over_members): Don't declare.
3084 (ar_end, ar_extract): Declare.
3085 (open_inarch): Change return value in declaration to bfd *.
3086 * arsup.c (map_over_list): Make static. Always pass two arguments
3087 to function. Add arch argument, and use it instead of inarch.
3089 (ar_directory_doer): Make static. Add ignored second argument.
3091 (ar_directory): Use open_inarch return value rather than inarch.
3092 (ar_addlib_doer): Make static.
3093 (ar_addlib): Use open_inarch return value rather than inarch.
3094 (ar_extract): Remove unused local variable abfd.
3098 Add support for removing named sections to objcopy and strip.
3099 * objcopy.c (struct section_list): Define.
3100 (remove_sections): New static variable.
3101 (strip_options, copy_options): Add remove-section.
3102 (copy_usage, strip_usage): Mention -R and --remove-section.
3103 (setup_section): If section is in remove_sections list, ignore it.
3104 (copy_section): Likewise.
3105 (strip_main, copy_main): Handle -R.
3106 * binutils.texi, objcopy.1, strip.1: Document new options.
3110 * nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,
3111 so as not to conflict with the symvalue typedef in bfd.h.
3115 * nlmheader.y: Per current NetWare docs, accept a revision number
3116 of 0 and treat a revision number greater than 26 as 0.
3120 * objdump.c (objdump_print_address): Correct handling of end of
3121 symbols when looking for next symbol with a different value.
3125 * nm.c (numeric_forward): Treat undefined symbols as "less than"
3126 defined symbols with zero values. If numeric values are equal, or
3127 both symbols are undefined, sort alphabetically. Don't assume
3128 that the difference of two bfd_vma values will truncate to "int"
3129 and still have the same sign.
3130 (numeric_reverse): Call numeric_forward and negate the result.
3131 (print_symbol_info_bsd): For undefined symbols, print leading
3132 spaces equivalent to the width of a printed bfd_vma, rather than
3133 assuming that 8 will look right.
3137 * coffgrok.c (doit): Zero all fields of new structure.
3138 * srconv.c (sysroff_swap_*_out): Remove redundant trailing arg.
3139 * sysinfo.y: Generate sysroff_swap_*_out without requiring extra
3144 * nlmheader.y: Make "stack" and "stacksize" synonyms in the lexer
3145 rather than the parser.
3149 * config/mh-alphaosf, config/mh-apollo68v, config/mh-delta88:
3154 * objdump.c (slurp_dynamic_symtab): Try to get the dynamic symbols
3155 even if the bfd is not marked DYNAMIC. ELF executables are not
3156 marked DYNAMIC, but do have dynamic symbols.
3160 * coffgrok.c (do_where): Make data with no type 'int'.
3161 (do_define): Keep info on source file of a symbol.
3162 * coffgrok.h (coff_symbol): New field.
3163 * srconv.c (PROGRAM_VERSION): Now 1.3
3164 (wr_rl): Use external ref number for symbol.
3165 (wr_dus): Only keep one source file per debug unit.
3166 (wr_dln): Always emit line numbers for first source file,
3167 (wr_globals): Emit globals in the du of their owning source file.
3171 * nlmheader.y: Null terminate var_hdr->threadName.
3175 * Makefile.in (syslex.o, sysinfo.o): Permit C source files to be
3176 in $(srcdir), as they will be for FSF releases.
3180 * nlmconv.c (setup_sections): Preserve existing section flags when
3181 copying in flags from a new section.
3185 * objcopy.c: Include libiberty.h.
3186 (copy_file): If output_target is NULL, set it to the target of the
3191 * nlmconv.c (link_inputs): Fixed memory allocation bug.
3195 * configure.in: Change --with-targets to --enable-targets.
3199 * Makefile.in (sysinfo): Does not depend upon $(ADDL_LIBS).
3201 * nlmconv.c (powerpc_build_stubs): Don't generate the PowerPC
3202 NetWare custom header; no longer needed.
3203 (powerpc_mangle_relocs): Convert relocs against the uninitialized
3204 data section into relocs against the data section.
3206 * configure.in: Set nlmconv_defs to -DNLMCONV_cputype for all the
3207 netware targets. Write it into Makefile as NLMCONV_DEFS.
3208 * Makefile.in (nlmconv.o): Pass $(NLMCONV_DEFS) to $(CC).
3209 * nlmconv.c: Only compile code for specific CPU types if
3210 NLMCONV_cputype is defined.
3212 * nlmconv.c (main): Change uses of bfd_abs_section, etc., to use
3213 bfd_abs_section_ptr or bfd_is_abs_section, etc.
3214 (i386_mangle_relocs, alpha_mangle_relocs): Likewise.
3215 (powerpc_build_stubs): Likewise.
3216 * nm.c (filter_symbols, print_symbols): Likewise.
3217 * objcopy.c (filter_symbols): Likewise.
3218 (mark_symbols_used_in_relocations): Likewise.
3219 * objdump.c (remove_useless_symbols, dump_relocs): Likewise.
3220 * size.c (sysv_internal_printer): Likewise.
3224 * Makefile.in (MANPAGES): Remove $(DEMANGLER_PROG).
3225 (install): Install it explicitly, from build dir, not srcdir.
3229 * objdump.c: Don't include elf/internal.h.
3230 (bfd_elf_find_section): Don't declare.
3231 (read_section_stabs): No special handling for ELF. Always read
3236 * configure.in: Set UNDERSCORE in Makefile based on result of
3237 invoking config.bfd with a second argument of ``_''.
3238 * Makefile.in (underscore.c): Depend upon Makefile. Don't try to
3239 run $(CC) and $(NM), just use $(UNDERSCORE). Create via temporary
3241 (demangle.o): Remove target.
3242 ($(NM_PROG)): Don't depend upon demangle.o, and don't link against
3243 demangle.o. It's in libiberty anyhow.
3244 (cplus-dem.o): Don't depend upon demangle.o.
3245 * binutils.texi: Mention -n and --no-strip-underscores arguments
3250 * nm.c (long_options): Add --no-demangle to turn off --demangle,
3251 and --no-cplus for Linux compatibility.
3252 (usage): Mention --no-demangle.
3253 * binutils.texi: Document --no-demangle.
3257 * nm.c: HOST_64_BIT was renamed to BFD_HOST_64_BIT.
3259 * objcopy.c (copy_archive): Make the temporary directory in the
3260 same directory as the output BFD, since we may not have write
3261 permission on the current directory. Set the permissions of the
3262 new directory to 0700, not 0777.
3266 * configure.in: if this is an rs6000 (and we're not building for
3267 any other bfd targets) then build only nm (collect needs it on
3270 * Makefile.in: define TOOL_PROGS which the list of programes to
3271 install in $tooldir -- replaces a hard-coded list.
3275 * objdump.c (display_target_list): Remove unused local ok.
3279 * config/mh-alphaosf (CFLAGS): Don't specify both -g and -O;
3280 they're not compatible under native cc. Use -O1 instead.
3282 * Makefile.in (VERSION): Updated to cygnus-2.4.1.
3284 Changes from binutils-2.4 net release:
3286 * Makefile.in (MANPAGES): Use $(DEMANGLER_PROG).
3287 ($(DEMANGLER_PROG).1): Build from cxxfilt.man, using sed.
3288 * cxxfilt.man: Renamed from c++filt.1, replaced "c++filt" with
3289 magic token to be replaced by sed.
3293 * configure.bat: update for latest makefile.in
3297 * bucomm.c: Check ANSI_PROTOTYPES rather than __STDC__.
3301 * objcopy.c (copy_section): Set section size correctly if using
3306 * Makefile.in: Add rule for sysinfo.h
3310 * Makefile.in (SRCONV_PROG): Define.
3311 (PROGS): Use $(SRCONV_PROG) too.
3315 * Makefile.in (DISTSTUFF): Add sysinfo.c, syslex.c, in case
3316 someone configures with `targets=all'.
3317 (distclean): Remove y.*.
3318 (syslex.o): Depend on sysinfo.h.
3319 (sysinfo.c): Rename y.tab.h to sysinfo.h.
3320 (install-info): Don't try to install into $(infodir)/$(srcdir).
3321 * syslex.l: Include sysinfo.h, not y.tab.h.
3325 * syslex.l (yywrap): Define as function if not defined as a macro.
3327 * Makefile.in (objdump.o): Deleted special rule.
3328 * configure.in: Don't bother building ARCHDEFS variable for
3330 * objdump.c (ARCH_*): Deleted handling.
3331 (disassemble_data): Call `disassembler' from opcodes library.
3335 * Makefile.in (install): Correct handling of $(tooldir) and
3336 $(bindir) being on different devices.
3340 * sysdump.c (h8300, sh): Add declarations.
3344 * Makefile.in (syslex, sysinfo): Use CC_FOR_BUILD.
3345 * coffdump.c, coffgrok.c, coffgrok.h, srconv.c, sysdump.c,
3346 sysroff.info: Major changes.
3350 * objdump.c (print_section_stabs): Indicate the stab header symbol
3351 more clearly, print numbers of unrecognized stab n_type values.
3355 * nlmconv.c (copy_sections): Copy arelent pointers, not arelents.
3359 * Makefile.in (distclean): Remove $(PROGS) and underscore.c.
3363 * nlmconv.c (setup_sections): Remove special handling of .reginfo
3365 (copy_sections): Likewise.
3366 (alpha_mangle_relocs): Use bfd_ecoff_get_gp_value rather than the
3367 special ECOFF .reginfo section.
3369 * objcopy.c (copy_object): Call bfd_copy_private_bfd_data after
3370 copying everything else, to let it fiddle with the file in its
3373 * objdump.c: Include libiberty.h.
3374 (display_target_list): If a format fails, just go on to the next
3375 one. Check return value of bfd_set_format.
3376 (display_info_table): Likewise. Don't increment loop variable in
3377 for loop test, since that skips the first element.
3378 (display_target_tables): Rewrite loop for clarity. Ensure that it
3379 always prints at least one element.
3381 * nlmconv.c (main): Use CyGnUsEx rather than CyGnUsSeCs for
3382 sections header. Rename from cygnus_sections to cygnus_ext.
3386 * objdump.c (_DUMMY_NAME_): Don't define.
3387 (display_target_list): Use tmpnam to get a file name rather than
3388 using _DUMMY_NAME_. Unlink it when done.
3389 (display_info_table): Likewise.
3391 * nlmconv.c (secsec): New static variable.
3392 (main): Create .nlmsections section in output BFD. Store
3393 information about it in sections header.
3394 (setup_sections): Allocate space in sections header.
3395 (copy_sections): Copy zero sized sections. Put information about
3396 each section in the sections header.
3400 * nlmconv.c (powerpc_build_stubs): Take new outbfd argument.
3401 Change caller. Create custom header for new PowerPC NetWare
3404 * Makefile.in (nlmheader.o, nlmconv.o): Update dependencies.
3405 * nlmconv.c: Include bfd.h and libiberty.h with "", not <>.
3406 * nlmheader.y: Include bfd.h with "", not <>.
3410 * objdump.c: Do an ifdef on __GO32__, not unix.
3414 Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -R
3415 (--dynamic-reloc) arguments to objdump.
3416 * nm.c (dynamic): New static variable.
3417 (long_options): Added "dynamic".
3418 (usage): Mention -D and --dynamic.
3419 (main): Add D to getopt string. Handle -D by setting dynamic.
3420 (display_rel_file): If dynamic is non-zero, read dynamic symbols
3421 rather than normal symbols.
3422 * nm.1: Updated for -D (--dynamic) option.
3423 * objdump.c (dump_dynamic_symtab): New global variable.
3424 (dump_dynamic_reloc_info): New global variable.
3425 (dynsyms, dynsymcount): New global variables.
3426 (usage): Mention -R, -T, --dynamic-syms and --dynamic-reloc.
3427 (long_options): Added "dynamic-reloc" and "dynamic-syms".
3428 (slurp_symtab): If no symbols, return rather than exit.
3429 (slurp_dynamic_symtab): New function.
3430 (display_bfd): Handle dump_dynamic_symtab and
3431 dump_dynamic_reloc_info.
3432 (dump_symbols): Take new dynamic argument, indicating whether to
3433 display dynamic symbols.
3434 (dump_relocs): Move most printing into dump_reloc_set.
3435 (dump_dynamic_relocs): New function.
3436 (dump_reloc_set): New function, extracted from dump_relocs.
3437 (main): Add R and T to getopt string. Handle -T by setting
3438 dump_dynamic_symtab and -R by setting dump_dynamic_reloc_info.
3439 * objdump.1: Updated for -R (--dynamic-reloc) and -T
3440 (--dynamic-syms) options.
3441 * binutils.texi: Updated for new nm and objdump options.
3445 Update for recent BFD changes to symbol and reloc reading. Rename
3446 all uses of get_symtab_upper_bound to bfd_get_symtab_upper_bound.
3448 * coffgrok.c (symcount): Change to long.
3449 (do_sections_p1): Check for error return from
3450 bfd_get_reloc_upper_bound. Change relcount to long, and check for
3451 error from bfd_canonicalize_reloc.
3452 (coff_grok): Change storage to long. Check for error from
3453 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
3454 * nlmconv.c (main): Change symcount, newsymalloc, newsymcount, and
3455 i to long. Check for error from bfd_get_symtab_upper_bound and
3456 bfd_canonicalize_symtab.
3457 (copy_sections): Change reloc_size and reloc_count to long. Check
3458 for error from bfd_get_reloc_upper_bound and
3459 bfd_canonicalize_reloc.
3460 (mangle_relocs, i386_mangle_relocs, alpha_mangle_relocs): Change
3461 reloc_count_ptr argument to long *. Make corresponding changes to
3462 variables loaded from *reloc_count_ptr.
3463 * nm.c (display_rel_file): Change storage and symcount to long.
3464 Check for errors from bfd_get_symtab_upper_bound and
3465 bfd_canonicalize_symtab.
3466 * objcopy.c (filter_symbols): Change symcount, src_count and
3468 (copy_object): Change symcount to long. Pass another argument to
3469 fprintf. Check for errors from bfd_get_symtab_upper_bound and
3470 bfd_canonicalize_symtab.
3471 (copy_section): Change relcount to long. Check for errors from
3472 bfd_get_reloc_upper_bound and bfd_canonicalize_reloc.
3473 (mark_symbols_used_in_relocations): Change relcount and i to long.
3474 Check for errors form bfd_get_reloc_upper_bound and
3475 bfd_canonicalize_reloc.
3476 * objdump.c (storage): Remove global variable.
3477 (symcount): Changed to long.
3478 (slurp_symtab): New local variable storage. Check for errors from
3479 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
3480 (remove_useless_symbols): Change return value and count to long.
3481 (objdump_print_address): Change min, max, thisplace and i to long.
3482 (disassemble_data): Change i to long.
3483 (dump_symbols): Change count to long.
3484 (dump_relocs): Change relcount to long. Check for errors from
3485 bfd_ret_reloc_upper_bound and bfd_canonicalize_reloc.
3486 (display_info_table): Add casts when passing LONGEST_ARCH for
3491 * nm.c (display_archive): Close each archive element after it has
3493 * objdump.c (display_file): Likewise.
3497 * configure.in: Change error message to refer to bfd/config.bfd
3498 rather than bfd/configure.in.
3502 * More fixes for object formats which allow multiple sections
3504 * objcopy.c (setup_section): Make a new output section even if
3505 one already exists with the given name.
3506 (copy_section): Use isection->output_section rather than trying
3507 to look the output section up by its (possibly non-unique) name.
3509 * Makefile.in (install-info): Look for binutils.info in the
3510 current directory, then in $(srcdir). Don't use $<.
3514 * objdump.c (objdump_print_address): Make static. Declare with
3515 prototype. Change vardiff from int to bfd_signed_vma. Correct
3516 binary search termination condition. When looking for same
3517 section symbol in relocatable file, handle final symbol correctly.
3521 * Makefile.in: Avoid bug in hpux sed.
3523 * objcopy.c: Changes to keep it from stripping symbols used
3524 in output relocations.
3525 (mark_symbols_used_in_relocations): New function. Mark symbols
3526 used in output relocations with BSF_KEEP.
3527 (filter_symbols): Do not strip symbols marked with BSF_KEEP.
3528 (copy_object): Reorder actions. First setup sections, then
3529 build the output symbol table, then copy the section contents.
3533 * ar.c (write_archive): Allocate space for the null byte. From
3538 * Makefile.in: Built nm.new and strip.new to avoid problems with
3539 collect when . is in PATH.
3540 (STRIP_PROG): Change from strip to strip.new.
3541 (NM_PROG): Change from nm to nm.new.
3542 (install): Remove the .new when installing.
3546 * nlmconv.c (powerpc_build_stubs): Set BSF_DYNAMIC flag for each
3547 symbol for which we build a stub.
3548 (powerpc_mangle_relocs): Only reset TOC pointer for a call to a
3549 symbol with BSF_DYNAMIC flag set.
3553 * objcopy.c (filter_symbols): Use bfd_is_local_label to determine
3554 if a symbol represents a compiler-generated local label.
3555 (copy_object): Give the BFD backends a chance to copy any private
3556 bfd data from the input BFD to the output BFD.
3557 (setup_section): Give the BFD backends a chance to copy any private
3558 section data from the input section to the output section.
3562 * objcopy.c (mangle_section): Delete unused function.
3563 (setup_section): Set osection here instead of calling
3564 mangle section to do it.
3568 * ar.c (write_archive): Close inarch before unlinking it.
3572 * nlmconv.c (main): For PowerPC, call powerpc_build_stubs and
3573 powerpc_resolve_stubs. Use __GOT0, not __toc_start. Handle it if
3574 the start and end symbols are not in the text section.
3575 (struct powerpc_stub): New struct definition.
3576 (powerpc_stubs, powerpc_stub_insns): New static variables.
3577 (powerpc_initial_got_size): New static variable.
3578 (powerpc_build_stubs): New function.
3579 (powerpc_resolve_stubs): New function.
3580 (powerpc_mangle_relocs): Clear extraneous data in .got section.
3581 Rearrange reloc handling to handle ELF relocs that are not
3582 partial_inplace. Resolve PC relative relocs.
3586 * ar.c (move_members): Fix it so that the abi positional modifiers
3587 don't delete all archive members following the insert point.
3591 * coffgrok.[ch]: New files, understand coff objects.
3592 * coffdump.c: Uses coffgrok to dump out the debug info of a coff
3594 * sysroff.info: Description of a SYSROFF object file.
3595 * sysinfo.y, syslex.l: Parse info file, generate a reader, writer,
3596 header files and a printer.
3597 * srconv.c: Uses coffgrok.c and sysroff.info to convert a coff
3598 file to a SYSROFF file.
3602 * ar.c (do_quick_append): Pad with a genuine character 10,
3603 rather than whatever '\n' might happen to be.
3607 * nlmconv.c (main): Ignore debugging symbols when looking for
3608 special symbols by name.
3612 * nlmconv.c: Include libiberty.h.
3614 Support for PowerPC NetWare.
3615 * nlmconv.c (main): For PowerPC NetWare, automatically define the
3616 special symbols __toc_start.
3617 (select_output_format): Handle bfd_arch_powerpc.
3618 (mangle_relocs): Likewise.
3619 (powerpc_mangle_relocs): New function.
3623 * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
3624 size.c: Use bfd_get_error and bfd_set_error and new error names.
3628 * objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
3632 * objdump.c (disassemble_data): Handle bfd_arch_powerpc.
3636 * strings.c objdump.c nlmconv.c objcopy.c nm.c ar.c size.c (main):
3637 Call xmalloc_set_program_name.
3641 * objcopy.c (filter_bytes): Make MEMHUNK a char *, not PTR, so we
3642 can do arithmetic on it.
3646 * objdump.c (dump_section_stabs, read_section_stabs,
3647 print_section_stabs): Functions broken out of dump_stabs_1.
3648 Free the stabs and strings when done with them.
3652 * nlmconv.c (main): Use bfd_get_flavour instead of struct member.
3653 * ar.c (print_contents, extract_file), size.c
3654 (print_berkeley_format, print_sysv_format): Use bfd_get_filename and
3655 bfd_my_archive instead of dereferencing the structs directly.
3657 * ar.c: Use bfd_fatal and bfd_nonfatal instead of bfd_perror and exit.
3658 Indent. Remove DEFUNs.
3660 * nlmconv.c (main), objcopy.c (copy_file): Print matching formats
3662 * nm.c (display_file, display_archive), size.c (display_bfd):
3664 Print matching formats if there is an ambiguous match. Use
3665 bfd_nonfatal instead of hardcoded error message if nothing matches.
3667 * arsup.c, ar.c, objdump.c: Use bfd_get_filename instead of
3670 * nm.c (display_archive): New function, from code in display_file.
3671 (display_rel_file): Renamed from do_one_rel_file.
3674 (display_archive): New function from code in display_file.
3675 (display_file): Check bfd_close error return.
3677 * strings.c (strings_object_file): Check bfd_check_format
3680 * strings.c, objdump.c, size.c: Use bfd_nonfatal instead of bfd_perror.
3682 * bucomm.c: Delete references to exit_handler. It wasn't set
3683 anywhere, and now that we're using the libiberty xmalloc, it
3684 wouldn't always get called before exiting.
3685 (list_matching_formats): Function moved from objdump.c.
3686 * bucomm.h: Declare it.
3688 * objdump.c (disassemble_data): Move some variable decls closer to
3689 their use. Add some comments. Replace a nested block with a
3694 * objdump.c (display_target_list, display_info_table): Check that
3695 the bfd of the dummy output file is not null.
3699 * objcopy.c (filter_bytes): New function.
3700 (copy_section): Call it.
3701 (copy_options, copy_usage, copy_main): Add --byte option to
3702 activate it. Appropriate the -b option (which was an undocumented
3703 synonym for -F) for it, also. Add --interleave, -i option for
3705 (setup_section, copy_section, mangle_section): Renamed with no `s'
3707 * objcopy.1, binutils.texi: Document the new options.
3709 * objdump.c (display_target_tables, display_target_list):
3710 New functions broken out of display_info.
3711 Eliminate some magic constants. Use more meaningful variable names.
3712 (dump_bfd_header): New function broken out of display_bfd.
3713 (dump_section_header): New function broken out of dump_headers.
3714 (remove_useless_symbols): Don't shadow global variable name with
3716 (objdump_print_address): Fix backward test.
3720 * bucomm.c (print_arelt_descr): Change decl of `when' to time_t.
3721 * objdump.h: Removed.
3725 * objdump.c (display_file): Remove call to list_matching_formats.
3726 It would never be called.
3727 (list_matching_formats): Take an arg giving the list of matching
3729 (display_bfd): Pass the arg, and get it filled in by calling
3730 bfd_check_format_matches instead of bfd_check_format.
3731 (display_info, display_info_table): target_vector was renamed to
3734 * binutils.texi (objdump): Note some limitations of -h section
3739 * Makefile.in (MALLOC): Set to emptiness by default.
3740 (ALL_CFLAGS): Add and use.
3741 (arparse.h): Make it depend on arparse.y.
3742 * ar.c (libbfd.h): Don't require to be in ../bfd.
3743 * objdump.c (comp): Rename to compare_symbols.
3747 * objdump.c (list_matching_formats): If the file format is ambiguous,
3748 print the matching names so the user can choose one.
3749 (display_bfd): Call it.
3750 (display_file): Call it.
3754 * objdump.c (disassemble_data): Support bfd_arch_rs6000.
3758 * objdump.c (stab_name): Allocate dynamically.
3759 (stab_print): Use pointers to strings instead of char arrays.
3760 (dump_stabs): Change alloc and init of arrays appropriately.
3761 (dump_stabs_1): Always decide whether to print stab_name or
3762 the stab's type number, if unnamed.
3766 * objcopy.c (strip_main, copy_main): Don't clobber the input file
3769 * nlmconv.c (main): Warn about an attempt to use a shared library
3770 with uninitialized data.
3772 * nlmconv.c (setup_sections): Make sure that we align the
3773 output_offset of each input section appropriately.
3777 * objdump.c (dump_relocs): Don't crash if section name is NULL.
3781 * filemode.c (filemodestring): Commented out; not used.
3782 (mode_string): Use POSIX definitions.
3783 (ftypelet): Likewise.
3784 (rwx): Removed; no longer used.
3785 * bucomm.c: Include bucomm.h.
3786 (bfd_nonfatal, bfd_fatal): Argument is const.
3787 (fatal): Make __STDC__ version.
3788 * bucomm.h (mode_string): Declare.
3789 * Makefile.in (bucomm.o): Depend upon bucomm.h
3793 * bucomm.c (xmalloc, xrealloc): Deleted.
3794 * bucomm.h (xmalloc, xrealloc): Fix prototypes, to correspond to
3795 libiberty version of functions.
3799 * binutils.texi: Add a chapter summarizing the ways to select
3800 aspects of the target for each program.
3802 * objdump.c (long_options, usage): Add long equivalents for all
3803 remaining short options that lacked them.
3804 * binutils.texi objdump.1: Document them.
3806 * size.c (usage): Tweak usage message.
3807 * size.1: Add missing `=' in examples.
3809 * binutils.texi strip.1 objcopy.1 nlmconv.1 objcopy.c nlmconv.c:
3810 Use "--target=bfdname" as the option to select the BFD target,
3811 like nm and size already do.
3812 Reserve "--format=format" for textual output selection options, but
3813 for now keep old option names as obsolete for backward compatibility.
3815 * strings.c (main, strings_object_file, usage): Add --target option.
3816 * binutils.texi strings.1: Document it.
3820 * ar.c (main): Add \n in error message.
3825 * ar.c (main): Put parens around assignment used as truth value.
3826 * objcopy.c (strip_main): Remove unused variables. Return 0.
3827 (copy_main): Remove unused variables. Return 0.
3828 * objdump.c (display_bfd): Declare return value as void.
3829 (stab_print): Use "" instead of 0 to initialize array.
3830 (dump_stabs_1): Print vma using printf_vma.
3831 (display_info): Put parens around assignment used as truth value.
3832 * strings.c (print_strings): Cast printf arguments.
3834 * objcopy.c (copy_main): Use copy_options, not strip_options.
3836 * nlmheader.y (command): Warn about illegal date values.
3840 * bucomm.c bucomm.h: Run through indent. De-ansidecl-ify.
3841 (bfd_nonfatal): New function.
3842 (bfd_fatal): Call it.
3844 * objcopy.c (smart_rename): Do a copy if the dest file has
3845 multiple hard links. Remove source file on successful copy.
3846 Try to preserve mode and owner on successful rename.
3848 * objcopy.c: Run through indent. Clean up a bit.
3849 Make global variables static.
3850 Make {input,output}_{target,filename}, show_version local
3851 to various functions.
3852 New global variable `status' for exit status.
3853 (strip_main, copy_main): New functions with code from main.
3854 (nonfatal): New macro. Use it globally instead of bfd_perror and
3857 (copy_object): Call mangle_sections with bfd_map_over_sections.
3858 (mangle_sections): Adjust for new calling convention.
3862 * nlmheader.y (command): Accept MAP and FULLMAP without arguments.
3863 * nlmconv.c (main): Change error message for MAP and FULLMAP.
3867 * nlmconv.c (main): Warn about imported symbols that are not in
3868 the IMPORT list even if the IMPORT keyword is not used.
3870 * nlmconv.c (debug, unlink_on_exit): New static variables.
3871 (long_options): Add "debug" and "linker".
3872 (main): Handle -d and -l arguments. Make command line input and
3873 output files optional. Parse the command file before opening the
3874 BFD's, which requires storing more information in local variables.
3875 If INPUT names multiple files, link them together. Use OUTPUT for
3876 the output file name if not named on command line.
3877 (show_usage): Changed for new options.
3878 (link_inputs): New function to automatically invoke linker to
3879 handle multiple INPUT files.
3880 (choose_temp_base_try, choose_temp_base, pexecute): New functions,
3881 mostly copied from gcc/gcc.c.
3882 * nlmconv.h (input_files, output_file): Declare.
3883 * nlmheader.y (input_files, output_file): Define.
3884 (command): Support INPUT with a string_list argument. Support
3886 (string_list): Renamed from module_list.
3887 * Makefile.in (nlmconv.o): Define LD_NAME based on
3888 program_transform_name.
3892 * nlmheader.y (nlmheader_identify): New function. Use it to print
3893 the program name just once, instead of with every error message.
3897 * nlmconv.c (long_options): Changed --header-info to --header-file
3898 to match documentation and usage message.
3902 * objdump.c (dump_relocs): Avoid dereferencing a NULL sym_ptr_ptr
3907 * nlmconv.c (main): Change various types from bfd_size_type to
3908 size_t, since they have to be arguments to fread and fwrite.
3909 Change set from char * to unsigned char *.
3910 (select_output_format): Make mach argument unsigned. Handle
3912 (setup_sections): Don't copy the .reginfo section of an ECOFF
3913 file. Call bfd_set_reloc to initialize the relocation fields.
3914 (copy_sections): Don't copy the .reginfo section of an ECOFF file.
3915 Combine all relocs for a section.
3916 (mangle_relocs): Change type of relocs to permit specific
3917 functions to change it. Call alpha_mangle_relocs for alpha,
3918 default_mangle_relocs for other architectures.
3919 (default_mangle_relocs): New function. Adjust the address of all
3920 relocs by the output_offset.
3921 (i386_mangle_relocs): Change type of relocs argument. Cast length
3922 argument to memmove to size_t.
3923 (alpha_mangle_relocs): New function.
3927 * nlmconv.c (select_output_format): Use nlm32-sparc for
3932 * nlmconv.1: added man page
3933 * objcopy.1: fixed format errors
3937 * Makefile.in: Use CFLAGS as well as LDFLAGS when linking.
3941 * strings.1: Fix typo.
3945 * Makefile.in (DISTSTUFF): Build "info".
3946 (VERSION): Updated to cygnus-2.3.1; 2.3 has gone out.
3950 * objdump.c (dump_stabs): Handle stabs-in-som as implemented
3951 by the new BFD SOM assembler.
3955 * ar.1 c++filt.1 nm.1 objcopy.1 objdump.1 ranlib.1 size.1
3956 strings.1 strip.1: Replace \(em in NAME section with \- so
3957 makewhatis can grok it.
3961 * nlmconv.c (i386_mangle_relocs): Adjust reloc address by
3962 section output_offset.
3966 * binutils.texi: added nlmconv chapter
3970 * Makefile.in: Change RUNTESTFLAGS to RUNTEST_FLAGS
3974 * Makefile.in (distclean): Don't get rid of dvi or info files.
3978 * objcopy.c (S_ISLNK): Define as 0 if there's no S_IFLNK.
3982 * binutils.texi: Move objcopy docs into alphabetical order.
3984 * objdump.c: Use xmalloc instead of malloc.
3988 * objdump.c (info): Rename to formats_info.
3989 (dump_stabs_1): Better comments and formatting.
3993 * ar.c (main): Always create the archive when quick appending,
3994 even if no input files have been given.
3998 * nlmconv.c (main): Set sharedDebugRecordOffset and
3999 sharedDebugRecordCount fields in extended header.
4001 * nlmconv.c (main): Force moduleName field to upper case.
4005 * objcopy.c (main): Give a usage message if there are too many
4010 * Makefile.in (install-info): Rewrite to take advantage of VPATH,
4011 so FSF distributions (with info files in $(srcdir)) install
4013 (DISTSTUFF): Build nlmheader.c too.
4017 * ar.c (program_name): Don't define here.
4018 * objdump.c: Include "bucomm.h".
4019 (xmalloc): Don't declare here.
4020 (program_name): Don't define here.
4021 (program_version): Fixed type in declaration.
4022 * size.c: Include "bucomm.h".
4023 (program_name): Don't declare here.
4027 * objdump.c (fprintf): hide declaration in FPRINTF_ALREADY_DECLARED
4031 * nlmconv.c (i386_mangle_relocs): Resolve and remove PC relative
4032 relocs against defined symbols in the same section.
4036 * Makefile.in (binutils.dvi): use TEXIDIR to find texinfo.tex
4040 * objcopy.c (simple_copy, smart_rename): New functions.
4045 * Makefile.in (clean, distclean): Recurse into testsuite.
4049 * objcopy.c (setup_sections, copy_sections): If stripping, don't
4050 copy SEC_DEBUGGING sections.
4051 * objdump.c (dump_headers): Print SEC_DEBUGGING flag.
4053 * objdump.c (usage): Mention --stabs.
4055 * objcopy.c (copy_object): Copy all applicable file flags.
4056 (copy_file): Don't copy EXEC_P specially here.
4060 * nlmconv.c (main): Adjust data section size to correspond to bss
4061 alignment adjustment. Clear BSF_SECTION_SYM if symbol is moved to
4062 a different section. Use time_t for time variable.
4063 (setup_sections): Only put sections with contents in output NLM.
4064 (i386_mangle_relocs): No symbols are common at this point. Add
4065 casts to avoid warnings.
4069 * objdump.c: Made the --stabs option work for stabs-in-coff.
4070 (ELF_STAB_DISPLAY): Removed.
4071 (dump_elf_stabs): Renamed to dump_stabs, changed to run for
4072 any object file format.
4073 (dump_elf_stabs_1): Renamed to dump_stabs_1, added calls to
4074 generic BFD routines for non-ELF case, changed format of message
4075 for no-section-found case.
4076 (display_bfd): Always call dump_stabs if requested.
4077 (dump_data): Call bfd_section_size to get section size.
4081 * Makefile.in (install): Don't put strings in tooldir/bin.
4085 * nlmconv.c (total_bss_size): Removed.
4086 (main): Set the bss vma to always follow the data section. Move
4087 symbols into new sections, and adjust values by output_offset.
4088 (setup_sections): Don't copy all sections, but instead point all
4089 text sections to .text, all data sections to .data, and all bss
4091 (copy_sections): Adjust accordingly.
4095 Only build nlmconv if configured for a NetWare target.
4096 * configure.in: If we have some *-*-netware* target, or are using
4097 all targets, set BUILD_NLMCONV to $(NLMCONV_PROG) in Makefile.
4098 * Makefile.in (PROGS): Use $(BUILD_NLMCONV) rather than
4103 * objdump.c (ARCH_all): Define ARCH_hppa too.
4104 (dump_headers): Don't test for SEC_BALIGN if it's not defined by
4109 * nlmconv.c (main): Force creation of .bss section. Set up the
4110 sections before looking at the symbols. Move all common symbols
4111 into .bss section. Automatically define _edata and _end. Only
4112 export symbols in the export list, with multiple prefixes if
4113 necessary. Warn if no version. Always create extended header.
4114 Set date automatically if not already set.
4115 (setup_sections): Count size of bss sections.
4116 (mangle_relocs, i386_mangle_relocs): Accept section argument, and
4117 take reloc_count as a changeable pointer; changed callers.
4118 (i386_mangle_relocs): Remove PC relative relocs within a section,
4119 as they require no adjustment.
4120 * nlmheader.y: Fixed memory allocation throughout: token STRING is
4121 now allocated on the heap, and freed if not needed. Null
4122 terminated copyright message. Accept version with only two
4124 (symbol_list_opt): New nonterminal, either symbol_list or empty.
4125 (symbol_list): Use left recursion to avoid overflowing parser
4127 (yylex): Rearranged beginning of line check. Accept quoted
4128 strings using single quotes. End generic argument at comment
4129 character or parentheses.
4130 (string_list_append): Fixed.
4131 (string_list_append1): New function.
4133 * bucomm.h: The first argument to xrealloc is PTR, not char *.
4134 * bucomm.c (xrealloc): Use PTR rather than char *.
4135 * Makefile.in (objdump.o): Depend upon config.status to notice
4136 --with-targets changes.
4137 (nlmconv.o): Depend upon bucomm.h.
4141 * configure.in: Don't pass cpu to config.bfd.
4145 * Makefile.in ($(NM_PROG)): Depend on demangle.o.
4146 (demangle.o): New target.
4147 (cplus-dem.o): Depend on it, to force compilation order when doing
4150 * nm.c (print_symbol_info_{bsd,sysv,posix}): Take a bfd arg.
4151 (struct output_fns print_symbol_info): Ditto.
4152 (long_options, usage, main): Add -C --demangle option.
4153 (print_symname): New function, demangling if requested.
4154 (print_symbols, print_symbol_info_{bsd,sysv,posix}): Use it.
4158 * Makefile.in: Put CFLAGS last in compilation rules and omit from
4159 linking rules. Use ARCHDEFS to compile objdump.c.
4160 Update dependencies.
4161 * configure.in: Construct ARCHDEFS based on the BFD target makefile
4163 * objdump.c: Conditionalize calls to the print_insn_ARCH functions
4164 according to ARCHDEFS.
4168 * ar.c: Removed obsolete and non-functional GNU960 code.
4172 * size.c (berkeley_sum): New function.
4173 (bsssize, datasize, textsize): New global variables.
4174 (bss_section_name, data_section_name, text_section_name): Removed.
4175 (print_berkeley_format): Map berkeley_sum over all the sections,
4176 rather than only reporting sizes of specifically named sections.
4177 * Makefile.in ($(OBJDUMP_PROG)): Removed dependency on size.o.
4181 * nlmconv.c, nlmconv.h, nlmheader.y: New files for program to
4182 convert object files into NetWare Loadable Modules.
4183 * Makefile.in (NLMCONV_PROG): New macro, define to be nlmconv.
4184 (PROGS): Add NLMCONV_PROG.
4185 (nlmheader.c, nlmheader.o, nlmconv.o, $(NLMCONV_PROG)): New
4190 * Makefile.in: define MAKEOVERRIDES to an empty string
4194 * objcopy.c (copy_file): Make failures to process a file nonfatal.
4198 * nm.c: Add -B option, like --format=bsd.
4202 * objcopy.c (copy_file): If the file is neither an object nor an
4203 archive, give an error rather than returning success.
4207 * objdump.c (objdump_print_address): Prefer non-local symbols over
4208 local ones, and especially discriminate against debugging symbols.
4209 Also, for relocateable files, try to find a symbol in the current
4210 section, instead of picking one from some random section with a
4211 convenient value (read, section offset).
4212 (disassemble_data): Cast argument to malloc to size_t first.
4213 (dump_data): Likewise.
4214 (dump_relocs): If a single section name is specified, show relocs
4215 only for that section. Otherwise, silently omit sections without
4216 relocs. Format table nicely even if values are printed using 16
4217 digits instead of 8.
4221 * nm.c: Changes for final version of POSIX.2.
4222 (print_symbol_filename_{bsd,sysv,posix}): New functions.
4223 (formats): Add an element for a pointer to them.
4224 (print_symbols): Call it.
4225 (print_object_filename_posix, print_archive_member_posix): Produce
4226 output according to new POSIX.2 spec.
4228 * strings.c (print_strings): Handle STREAM being NULL.
4229 (strings_a_section): Pass a NULL.
4230 (main): Don't open /dev/null.
4234 * objdump.c (disassemble_data): Handle the m88k.
4235 (display_bfd): Use bfd_errmsg, rather than just claiming that the
4236 bfd is not an object file.
4240 * Makefile.in (TAGS): make work again by naming directories
4241 explicitly rather than depending on undefined macros.
4242 (INSTALL_XFORM): correct bad install target.
4246 * strings.c: Doc fixes.
4250 * Makefile.in: Note dependencies on bucomm.h.
4251 (cplus-dem.o): Link c++filt with version.o.
4253 * strings.c: Include bucomm.h and add prototypes to other decls.
4256 * bucomm.h: Declare xrealloc.
4258 * nm.c, objcopy.c, objdump.c, size.c, strings.c (main, usage): Add
4259 --help option. Put "GNU" in the version message.
4260 (usage): Take stream and exit status as args.
4261 (main): Pass new args to usage.
4265 * strings.c, strings.1: New files.
4266 * binutils.texi: Document strings.
4267 * Makefile.in: Add rules for it.
4271 * objdump.c: Use size-independent bfd elf section names.
4275 * objdump.c (objdump_print_address): Handle wide offsets by
4276 calling sprintf_vma.
4280 * objdump.c (syms2): Removed unused variable.
4281 * objdump.c (remove_useless_symbols): New function.
4282 * objdump.c (comp): Simplify.
4283 * objdump.c (dis-assemble_data): Make simpler and more
4284 efficient how we filter out useless symbols: Just filter
4285 BEFORE the sort (using remove_useless_symbols).
4286 * objdump.c (objdump_print_address): Simplify.
4287 Change output syntax to match gdb.
4291 * Makefile.in: canonicalize install.sh; for use within
4292 this directory (and subdirs)
4294 Mon Jun 14 12:13:22 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
4296 * Makefile.in (install, install-info): remove parentdir support,
4297 use INSTALL_XFORM; define INSTALL_XFORM
4301 * objcopy.c (copy_object): Fix bad size passed to xmalloc().
4305 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
4306 * configure.in: No longer need to configure to get sysdep.h.
4307 * objcopy.c (copy_object): Fix symbol table handling.
4311 * objcopy.c (filter_symbols): Cannot filter the symbols
4312 in place, because that confuses the relocs, so take separate
4313 parameter for output array.
4314 * objcopy.c (sympp): Make two variables: isympp and osympp.
4315 * objcopy.c (copy_object): Allocate separate array (osympp)
4316 for filtered symbols.
4318 Fri Jun 4 10:51:44 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4320 * Makefile.in: change recursion test to presence of a configured
4325 * Makefile.in (underscore.c): Hack the backquoted command so it
4326 doesn't cause Solaris make to bomb.
4330 * Makefile.in: added c++filt and objcopy to MANPAGES variable
4332 Thu Jun 3 00:32:52 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4334 * Makefile.in: rename LOADLIBES to EXTRALIBS
4338 * c++filt.1, objcopy.1: new man pages
4342 * Makefile.in (install): Also install ar and ranlib in
4343 $(tooldir)/bin; needed for building libgcc.a.
4344 * objdump.c (objdump_print_address): Fix the check
4345 "coincidental" label matches by dis-allowing undefined
4350 * binutils.texi: revised c++filt chapter
4354 * Makefile.in (FLAGS_TO_PASS): Pass down CC and CFLAGS.
4358 * objdump.c (slurp_symtab): Print warning for bad symbol table.
4359 (bfd_elf32_find_section, Elf32_Internal_Shdr): Updated
4360 declarations and uses.
4362 * Makefile.in (DISTSTUFF): Don't build binutils.mm.
4366 * nm.c: Add -f/--format, -P/--portability, -t/--radix options.
4367 Make global variables static.
4368 (main): Make -v like -n, not -V, and make -A like -o, for POSIX.2.
4369 (set_print_radix, set_output_format,
4370 print_{object_filename,archive_filename,archive_member,symbol_info}
4371 {bsd,sysv,posix}): New functions.
4372 (display_file, print_symbols): Call them.
4374 * ar.c: Improve error messages.
4376 * nm.c (main): Handle long options that just set a flag.
4378 * nm.c (main), ar.c (do_show_version), objcopy.c (main), size.c
4379 (main): Exit after printing the version number, per the GNU coding
4384 * README, Makefile.in: Minor updates for 2.2.
4388 * Makefile.in (underscore.c): Automatically generate
4389 (using nm) a file with the variable prepends_underscore.
4390 * Makefile.in (c++filt): Link underscore.o with cplus-dem.o
4391 so that initial underscores get removed iff appropriate.
4392 * binutils.texi: Preliminary documentation for c++filt.
4393 * Makefile.in, binutils.texi: Set to version 2.2.
4395 * NEWS: Mention copy->objcopy renaming and new c++filt program.
4399 * Makefile.in (cplus-dem.o, $(DEMANGLER_PROG)): Build the
4400 demangler via cplus-dem.o, rather than directly from the .c file.
4402 * objcopy.c: Renamed from copy.c, updated comments accordingly.
4403 * Makefile.in, binutils.texi: Renamed copy to objcopy.
4404 * is-strip.c, maybe-strip.c, not-strip.c: Updated comments for
4405 rename of copy to objcopy.
4409 * binutils.texi (strip, -v option): Fix typo.
4413 * Makefile.in (RUNTEST): Define.
4414 (FLAGS_TO_PASS): Pass down RUNTEST.
4418 * Makefile.in (DEMANGLER_PROG): Name it c++filt.
4419 (PROG): Also build and install COPY_PROG.
4423 * Makefile.in: Change definition of $(tooldir) to match FSF.
4427 * size.c (usage): Add missing options.
4428 (main): Clean up option parser.
4430 * objdump.c (usage): Add missing options.
4431 (display_file): Print program name before calling
4434 * nm.c (usage): Add missing options.
4435 (main): Clean up option parser.
4436 (display_file): Print program name before calling
4439 * copy.c (copy_usage, strip_usage): Add missing options.
4441 * ar.c (usage): New function.
4443 (open_inarch, do_quick_append): Print program name before calling
4448 * nm.c (main): Accept and ignore -A and -B for MIPS compatibility.
4452 * Makefile.in: Added FLAGS_TO_PASS so tests get run on freshly
4453 built binaries if they exist. (otherwise the path)
4457 * Makefile.in: Changed check target to use DejaGnu.
4461 * Makefile.in: Remove am29k-pinsn.c, i960-pinsn.c.
4462 objdump.c: a29k and i960 are `disassemble' not `print'.
4464 * objdump.c: Rename print_address to objdump_print_address
4465 and change parameters.
4466 (disassemble_data): Use objdump_print_address.
4470 * objdump.c (disassemble_data): print_insn_sparc is now a
4471 `disassemble' not a `print'.
4472 Makefile.in: Remove sparc-pinsn.c (now in libopcodes.a).
4474 * objdump.c (disassemble_data): Use new read_memory_func stuff.
4478 * objdump.c (fprintf): Declaration of variadic function had better
4479 be a prototype for ANSI C systems.
4481 Mon Mar 22 23:19:46 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4483 * Makefile.in: rename test-install to install-check
4487 * objdump.c (disassemble_data): Add H8500.
4491 * objdump.c (usage): Mention long options.
4495 * nm.c: Modify behavior of -o flag for archives to match
4496 BSD4.4 and Sunos 4: Prefix archive name before each line.
4498 * m68k-pinsn.c: Removed. Subsumed by ../opcodes/m68k-dis.c.
4499 * i386-pinsn.c: Removed. Subsumed by ../opcodes/i386-dis.c.
4500 * Makefile.in: Adjust accordingly.
4501 * objdump.c: Support new-style disassemblers (ones that use
4502 the interface of ../include/dis-asm.h).
4506 * Makefile.in: When making tar file, remove texinfo/*,
4507 except for texinfo/texinfo.tex.
4508 * ardup.c: Add extern declaration of strdup.
4509 * Makefile.in (testsuite): Add 'else true' since otherwise
4510 Ultrix /bin/sh complains.
4514 * Makefile.in: Set VERSION to 2.1.
4515 * README, NEWS: Updates.
4516 * nm.c: Add -v as a synonym for -V.
4520 * configure.in: added testsuite to configdirs.
4521 * Makefile.in: added support for building testsuite.
4525 * objdump.c (disassemble_data): Print function names when
4526 given by bfd_find_nearest_line. If not - still print
4531 * testsuite: made modifications to testcases, etc., to allow
4532 them to work properly given the reorganization of deja-gnu and the
4533 relocation of the testcases from deja-gnu to a "tool" subdirectory.
4537 * objdump.c (dump_data): Free up section contents each time
4542 * testsuite: Initial creation of binutils/testsuite.
4543 Migrated dejagnu testcases and support files for testing nm to
4544 binutils/testsuite from deja-gnu. These files were moved "as is"
4545 with no modifications. This migration is part of a major overhaul
4546 of dejagnu. The modifications to these testcases, etc., which
4547 will allow them to work with the new version of dejagnu will be
4548 made in a future update.
4552 * Makefile.in (LIBIBERTY_SRC_DIR, LIBIBERTY_BIN_DIR): New macros.
4553 * Makefile.in (LIBIBERTY): Use LIBIBERTY_BIN_DIR.
4554 * Makefile.in (DEMANGLER_PROG): New program to build. Add macro
4556 * Makefile.in (PROGS): Add DEMANGLER_PROG.
4560 * copy.c, nm.c, objdump.c, size.c: Use new bfd_is_com_section
4561 macro rather than checking for equality to bfd_com_section.
4565 * objdump.c (disassemble_data): Fix code to find first useless
4570 * objdump.c (disassemble_data): Use mips_print_insn for MIPS.
4571 Don't core dump if bfd_find_nearest_line returns false.
4575 * objdump.c (disassemble_data): know how to disassemble z8000s
4580 * arsup.h (interactive), bucomm.h (program_name): Prefix
4581 with 'extern', to avoid warnings from some compilers.
4585 * arparse.y: fix unnecessary shift/reduce
4589 * Makefile.in: Make check depend on all.
4590 * Makefile.in (distclean): Remove sysdep.h.
4591 * size.c: Use %u format where appropriate.
4592 * objdump.c: Standardize: L_SET -> SEEK_SET.
4593 * objdump.c: Use new macro bfd_asymbol_bfd.
4594 * configure.in: Allow std-host as the default ${mys_host}.
4596 Thu Dec 17 19:38:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4598 * Makefile.in: added dvi target, define and use TEXI2DVI
4602 * Makefile.in (dist): Fix permissions before release.
4603 * size.c: Use bfd_size_type (and long) where appropriate.
4604 * ar.c: Make writing a map the default, to be compatible
4605 with SYSV and Posix.2. Remove some bogus kludges that
4606 handled __.SYMDEF directly.
4609 Mon Nov 9 13:36:53 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4611 * Makefile.in: flex no longer needs the -S flag
4613 Sat Nov 7 15:06:13 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4615 * ar.c (extract_file): utime needs a pointer to a utimbuf
4617 * Makefile.in: handle -I includes better, adding $(BASEDIR)/bfd to
4618 the list (since some of the bfd/hosts/*.h files include other
4619 files from that directory)
4623 * i960-pinsn.c (MEM_MAX, MEM_SIZ): Set upper bound properly.
4627 Clean up some old BFD ansification macros.
4629 * arsup.h, bucomm.h, objdump.h: Remove EXFUN from binutils.
4630 It still remains as a local macro in gmalloc.c, which is derived
4631 from some other copy of GNU Malloc somewhere (FIXME).
4633 * ar.c, objdump.c, size.c: Replace EXFUN with PROTO. Make static
4635 * arsup.h: Declare extract_files.
4639 * ar.c (extract_file): instead of checking USG: if POSIX_UTIME,
4640 use utime and utimbuf structure, otherwise if USE_UTIME use utime
4641 and array of two longs, otherwise use utimes.
4645 * binutils.texi: Document yesterday's changes to strip and copy.
4649 * copy.c: Re-do command-line parsing to use getopt_long().
4650 Add long option names. Re-think option letters to be more
4652 * copy.c: New function filter_symbols() for stripping only
4653 debug-symbols and/or local symbols. Use these to support
4654 the previously-missing options of the old FSF strip.
4658 * configure.in (host): Use ${srcdir}/../bfd/configure.host rather
4659 than repeating a copy of it here.
4663 * copy.c (main): Even if is_strip, accept -d argument indicating
4664 alternate output format. Needed by gdb for Nindy.
4666 * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
4670 * binutils.texi: added documentation for "copy"
4672 Tue Oct 6 14:22:56 1992 Per Bothner (bothner at PersSony)
4674 * Makefile.in (*clean rules): Some cleaning up.
4675 * Makefile.in (dist): Make diststuff in gprof for a dist.
4677 * ar.c (do_show_version): New function.
4678 * ar.c (main): Fix so "ar -V" works.
4680 Thu Oct 1 22:44:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4682 * configure.in: now uses the cpu-vendor-os triple instead of
4687 * i960-pinsn.c: Change bzero to memset.
4688 * sparc-pinsn.c: Change index to strchr.
4692 * m68k-pinsn (print_insn_arg, fetch_arg): added support for
4693 operands to memory management instructions, from WRS.
4697 * Makefile.in (install): if $(tooldir) exists, install nm and
4698 strip in $(tooldir)/bin.
4702 * Makefile.in: Let's call it version 2.0.
4706 * Makefile.in: Bump to version 0.98.
4707 * TODO, README: Minor updates.
4709 * Makefile.in: Added mostlyclean, distclean rules,
4710 and cleaned up clean, realclean.
4714 * Makefile.in: map program names through program_transform_name
4719 * Makefile.in: Bump to versions 1.97.90.
4720 * cplus-dem.c: Removed. Was nowhere used - and if some
4721 programs are changed to to demangling should now use the
4722 versions in libiberty.
4726 * configure.in: add we32k
4730 * ar.c (map_over_members): if the element of the archive has a
4731 null name, fill it in.
4733 * nm.c (do_one_rel_file): only warn if a bfd's flags say there
4734 will be symbols and there aren't any.
4738 * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
4742 * nm.c objdump.c: Added support for a +version (-V)
4743 to print the version number.
4745 * ar.c, copy.c: Added support for a -V option to print
4750 * config/mh-apollo68v: removed -g from CC definition.
4752 * Makefile.in: always create installation directories.
4756 * m68k-pinsn.c: Minor fix in style of output (don't use
4757 range to indicate floating point control registers).
4761 * ar.c (main): Don't *always* set the verbose flag!
4765 * copy.c: When is_strip (because it is invoked as the strip
4766 program), follow traditional argv processing:
4767 'strip file1 file2' now strips file1 and file2, rather
4768 than stripping file1 (as input), leaving output in file2.
4772 * objdump.c (display_info, display_info_table): Call
4773 bfd_set_format() on dummy bfd before using it (twice).
4774 * ar.c: Make sure archive is created on command 'r'
4775 even when no elements are inserted. (Clean up and
4776 simplify some non-working related code.)
4780 * configure.in: hppa support doesn't assume hp OS (from sef).
4782 Sat Jul 18 14:35:22 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4784 * configure.in: recognize hppa hosts (bsd & hpux), error messages
4785 to stderr, not stdout
4789 * ar.1, binutils.texi, i960-pinsn.c, nm.1, objdump.1, ranlib.1,
4790 size.1, sparc-pinsn.c, strip.1: removed rcsid's.
4794 * Makefile.dos: removed rcsid.
4798 * objdump.c (display_bfd): print state of BFD_IS_RELAXABLE too
4802 * Makefile.in: Add program_suffix (parallel to program_prefix)
4804 Thu Jun 25 04:52:45 1992 John Gilmore (gnu at cygnus.com)
4806 * nm.c (sorters): Lint. Remove excess whitespace.
4810 * nm.c (valueof macro): Add missing parentheses.
4811 (Their lack screwed up numeric_forward().)
4813 Sun Jun 14 10:33:27 1992 John Gilmore (gnu at cygnus.com)
4815 * objdump.c (dump_elf_stabs): Also dump .stab.index and
4816 .stab.excl sections.
4817 (dump_elf_stabs_1): Split out main body of old dump_elf_stabs.
4818 * objdump.1, binutils.texi: Document new sections dumped.
4820 Fri Jun 12 22:23:35 1992 John Gilmore (gnu at cygnus.com)
4822 * size.c, objdump.c, bucomm.c: Lint.
4824 Thu Jun 11 01:19:06 1992 John Gilmore (gnu at cygnus.com)
4826 * objdump.c (dump_elf_stabs): New feature: --stabs prints out a
4827 .stab section from an ELF file. Installed under #ifdef
4828 ELF_STAB_DISPLAY so it can be easily disabled, since it requires
4829 bfd-internals header files and such.
4830 * objdump.1, binutils.texi: Update for --stabs. Also fix
4831 objdump's doc to use -- rather than + for long options.
4832 (FIXME: Not yet fixed everywhere in binutils.texinfo.)
4836 * objdump.c(display_info), patches from
4842 * objdump.c: Add another enum->int cast, for the sake of
4843 old compilers (such as PCC).
4847 * arlex.l: Don't include <sysdep.h> (unneeded conflicts).
4848 Add declaration of strdup().
4852 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
4853 rules, since these are used when building a distribution.
4854 * Makefile.in (arlex.c): Don't re-direct output, since that
4855 leaves a bogus output files if it fails.
4857 * arlex.l: Make work with lex, for what it's worth.
4858 * Makefile.in: Better lex support.
4859 * Makefile.in (dist): Generate flex and bison outputs
4864 * Makefile.in: get BISON definition right.
4868 * sanity.sh: default TMPDIR to ".".
4872 * binutils.texi: add doc for ar command language.
4876 * arparse.y: make END call ar_end
4877 * arsup.c (ar_end): added, deletes temp file if archive session
4883 * Makefile.in: use bison & flex from ../ if they exist. Also,
4886 * sanity.sh: remove temporary directory when finished.
4890 * Makefile.in: Bump to version 1.97.
4891 * ar.c: Declare errno for machines that need it.
4895 * objdump.c (display_info): Handle error cases without coredump.
4896 Close the dummy temporary file we open in the loop.
4897 * Makefile.in (arsup.o): Add kludge to build with Sun Make.
4901 * Makefile.in: added test-install target.
4903 * sanity.sh: new file.
4905 * Makefile.in: use sanity test on make check.
4909 * Makefile.in: rework CFLAGS so that they can be passed on the
4910 command line to make. Remove MINUS_G. Default CFLAGS to -g.
4914 * arsup.c, arsup.h, arparse.y, arlex.l: support for archive
4919 * Makefile.in: added check target.
4923 * Makefile.in: added clean-info target.
4927 * Makefile.in: remove $(COPY_PROG) from PROGS. It shouldn't be
4928 installed. added tooldir and program_prefix.
4932 * Makefile.in, configure.in: removed traces of namesubdir,
4933 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
4934 copyrights to '92, changed some from Cygnus to FSF.
4936 Sun Feb 16 12:53:02 1992 Per Bothner (bothner at cygnus.com)
4938 * Makefile.in: Bump version to 1.96, and remove -beta
4939 suffix from distribution name.
4940 * m68k-pinsn.c: New macro COERCE_SIGNED_CHAR to extract
4941 the signed value of a character (even if chars are unsigned).
4942 * sparc-pinsn.c: Add new operand types.
4944 Thu Feb 6 12:14:19 1992 Steve Chamberlain (sac at rtl.cygnus.com)
4946 * objdump.c (disassemble_data): don't print a section's contents
4947 if it's not loadable (eg bss)
4949 Tue Jan 28 11:11:06 1992 Steve Chamberlain (sac at rtl.cygnus.com)
4951 * m68k-pinsn.c (print_insn_arg): fixed so that -ve branch
4952 displacements don't get printed as large +ve ones.
4954 Fri Jan 24 14:47:53 1992 Steve Chamberlain (sac at rtl.cygnus.com)
4956 * copy.c, nm.c, objdump.c, size.c : changed to use the
4960 Mon Dec 30 18:34:41 1991 Per Bothner (bothner at cygnus.com)
4962 * bucomm.c (print_arelt_descr): Tweek the output format
4963 so that 'ar tv' output follows Posix 1003.2/D11.
4964 Output is now also identical to Sun's (except __.SYMDEF).
4966 Mon Dec 30 06:09:53 1991 John Gilmore (gnu at cygnus.com)
4968 * Makefile.in: Make `make' output more readable.
4970 Wed Dec 18 15:04:45 1991 Per Bothner (bothner at cygnus.com)
4972 * Makefile.in: Bump to version 1.94.
4974 Wed Dec 11 16:48:09 1991 Steve Chamberlain (sac at cygnus.com)
4976 * ar.c: added "b" to fopens for dos
4977 * configdj.bat, makefile.dos new files from DJ
4979 Tue Dec 10 04:07:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
4981 * Makefile.in: infodir belongs in datadir.
4983 Sat Dec 7 17:09:37 1991 Steve Chamberlain (sac at rtl.cygnus.com)
4985 * bucomm.h: created to hold prototypes of bucomm.c
4986 * objdump.h: created to hold prototyes of objdump.c
4987 * am29k-pinsn.c: include objdump.h
4988 * ar.c: include bucomm.h, get ar.h from the right place and
4990 * bucomm.c: defunize bfd_fatal
4991 * copy.c: include bucomm.h, lint.
4992 * i960-pinsn.h: include bucomm.h
4993 * m68k-pinsn.h: lint
4994 * nm.c: include bucomm.h, lint
4996 * sparc-pinsn.c: include objdump.h
5000 Fri Dec 6 23:02:14 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5002 * Makefile.in: added standards.text support. install using
5003 INSTALL_PROGRAM and INSTALL_DATA.
5005 * configure.in: configure now does all of it's work from objdir so
5006 make file existence tests against ${srcdir}.
5008 Thu Dec 5 22:46:22 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5010 * Makefile.in: idestdir and ddestdir go away. Added copyrights
5011 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
5012 and mandir now keyed off datadir by default.
5014 Wed Dec 4 22:42:03 1991 Per Bothner (bothner at cygnus.com)
5016 * Makefile.in: Bump to version 1.93.
5017 * Makefile.in: Add make-strip.o:maybe-strip.c dependency
5018 for make versions that provide half-baked VPATH-support (e.g. Sun's).
5019 * size.c: Improvements suggested by
5021 - Don't emit (Berkeley) headers if no files were found.
5022 - Return a non-zero return code on failure.
5024 Sat Nov 30 21:34:19 1991 Steve Chamberlain (sac at rtl.cygnus.com)
5026 Changes due to include file renaming:
5027 * am29k-pinsn.c: a29k-opcode.h -> opcode/a29k.h
5028 * sparc-pinsn.c: sparc-opcode.h -> opcode/sparc.h
5029 * m68k-pinsn.c: m68k-opcode.h -> opcode/m68k.h
5030 * nm.c: stab.gnu.h -> aout/stab_gnu.h
5032 Tue Nov 19 19:20:43 1991 Per Bothner (bothner at cygnus.com)
5034 * README: Mention MINIMIZE flag for bfd's make.
5036 Mon Nov 18 12:05:37 1991 Per Bothner (bothner at cygnus.com)
5038 * README: Various improvements.
5040 Sun Nov 17 23:40:59 1991 Per Bothner (bothner at cygnus.com)
5042 * Makefile.in: Bump to version 1.92.
5043 * version.c, Makefile.in: Get version string from Makefile.
5044 * copy.c, is-strip.c, not-strip.c, maybe-strip.c, Makefile.in:
5045 Make the same change that we earlier did for ar/ranlib:
5046 Generate two different binaries for strip and copy and use
5047 a global variable with different values to distinguish
5048 ostrip from copy. (-1 means to use argv[0] to decide,
5049 so you can get the old behavior, but it is no longer the default).
5050 * copy.c (copy_file): Set EXEC_P of output bfd if input is so.
5051 * copy.c (main): If is_strip==-1, compare last 5 chars
5052 of argv[0], not the whole path.
5053 * copy.c (main): Return 0, not 1.
5054 * copy.c (setup_sections): Fix due to change in bfd_make_section
5055 now failing if asked for a duplicate section.
5056 * strip.c, ostrip.c: Removed obsolete files.
5057 * ar.c, not-ranlib.c, maybe-ranlib.c:
5058 Change encoding of is_ranlib variable to be consistent
5059 with is_strip for strip.copy (i.e -1 to means use argv[0]).
5061 Thu Nov 14 20:11:02 1991 Per Bothner (bothner at cygnus.com)
5063 * version.c (program_version): Update to version 1.92.
5065 Tue Nov 12 16:17:53 1991 Per Bothner (bothner at cygnus.com)
5067 * ar.c (get_pos_bfd): Previous fix was missing a "break".
5069 Thu Nov 7 08:55:56 1991 Steve Chamberlain (sac at cygnus.com)
5071 * am29k-pinsn.c: Fixed bug in mtacc, dmac and fmac instruction
5072 encodings. (Thaks to David Wood)
5074 Sun Nov 3 14:50:23 1991 Per Bothner (bothner at cygnus.com)
5076 * Makefile.in ($(DIST_NAME).tar.Z), TODO: Various fixes.
5077 * ar.c (get_pos_bfd): Fix to handling of before/after
5078 positioning options.
5079 * bucomm.c (fatal): MISSING_VFPRINTF is no longer an issue,
5080 since libiberty contains vfprintf etc if otherwise missing.
5081 * m68k-pinsn.c (print_insn_arg): Support BB/BW/BL
5082 type operands, as used by branch instructions.
5083 * nm.c: Delegate printing of symbols to BFD,
5084 by using bfd_print_symbol to do the formatting.
5086 Mon Oct 28 11:20:47 1991 Steve Chamberlain (steve at cygnus.com)
5088 * ar.c (write_archive.c): added unlink before rename since some
5089 systems can't rename onto an existant file.
5091 Mon Oct 21 09:47:23 1991 Steve Chamberlain (steve at rtl.cygnus.com)
5093 * nm.c: now doesn't crash if a symbol with no section and no
5096 Thu Oct 17 15:25:50 1991 Per Bothner (bothner at cygnus.com)
5098 * Makefile.in, version.c: Bump to version 1.91.
5100 Wed Oct 16 11:45:36 1991 Per Bothner (bothner at cygnus.com)
5102 * Makefile.in, ar.c, bucomm.c, copy.c, cplus-dem.c, filemode.c,
5103 i960-pinsn.c, m68k-pinsn.c, nm.c, objdump.c, size.c, sparc-pinsn.c,
5104 * strip.c: Add or update Copyright notice.
5105 * TODO: Add note on 'nm -a'.
5106 * version.c: Update version number to 1.90.
5107 * Makefile.in: Fix making of documentation for dist.
5109 Tue Oct 15 00:17:17 1991 Per Bothner (bothner at cygnus.com)
5112 * Makefile.in: New kludgy rules for making a tarfile.
5113 * Makefile.in: Fix bindir path.
5115 Mon Oct 14 17:34:29 1991 Roland H. Pesch (pesch at cygnus.com)
5117 * Makefile.in: add targets binutils.mm, binutils.me
5119 Fri Oct 11 22:44:21 1991 John Gilmore (gnu at cygnus.com)
5121 * Makefile.in: Avoid Sun Make VPATH bugs by adding dependencies.
5123 Fri Oct 11 12:51:33 1991 Roland H. Pesch (pesch at cygnus.com)
5125 * Makefile.in: add target "binutils.ms"
5127 * binutils.texinfo: minor restructuring for texi2roff comfort.
5129 Fri Oct 11 04:12:28 1991 John Gilmore (gnu at cygnus.com)
5131 Restructure configuration scheme for bfd, binutils, ld.
5133 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
5134 Change some config names to match other dirs.
5135 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
5137 * Makefile.in: Use -I. to get sysdep.h.
5139 Wed Oct 9 22:42:56 1991 Per Bothner (bothner at cygnus.com)
5141 * nm.c (print_symbols): Handle NULL name field of symbol.
5142 * Makefile.in: Removed spurious comment.
5144 Tue Oct 8 16:55:03 1991 Roland H. Pesch (pesch at cygnus.com)
5146 * binutils.texinfo: minor typos, phrasing, formatting fixes.
5148 Tue Oct 8 15:13:20 1991 Per Bothner (bothner at cygnus.com)
5150 * configure.in: Get host file from ../bfd/config, not config.
5151 * config/*: Remove config directory and its files.
5153 Tue Oct 8 13:58:59 1991 Roland H. Pesch (pesch at cygnus.com)
5155 * Makefile.in: new targets binutils.dvi, binutils.info
5157 * binutils.texinfo: remove most remaining FIXME's, delete
5158 references to __.SYMDEF by name
5161 Tue Oct 8 10:23:44 1991 Steve Chamberlain (steve at cygnus.com)
5163 * objdump.c (print_address) Print addresses nicely.
5165 Mon Oct 7 11:31:05 1991 Per Bothner (bothner at cygnus.com)
5167 * ar.c, Makefile.in, new files {is,not,maybe}-ranlib.c:
5168 Make two different binaries for ar and ranlib, instead of
5169 distinguishing them at run time using argv[0].
5170 (Old behavior is still available if you "make ar_with_ranlib",
5171 but it is not the default.)
5172 * ranlib.sh (new): An alternative one-line
5173 shell implementation of ranlib.
5175 Fri Oct 4 21:49:44 1991 John Gilmore (gnu at cygnus.com)
5177 * objdump.c: Cope with renames of a few BFD types & enums.
5179 Fri Oct 4 19:08:09 1991 Roland H. Pesch (pesch at cygnus.com)
5181 * binutils.texinfo: add new file (rudimentary docn)
5183 Mon Sep 30 12:30:39 1991 Per Bothner (bothner at cygnus.com)
5185 * config/hmake-news: Add new file (for Sony NEWSOS3).
5186 * bucomm.c (fatal): Conditionally compile fatal() depending on
5187 MISSING_VFPRINTF, and don't confuse the issue with NO_VARARGS.
5188 * objdump.c (dump_headers): Trivial output format change.
5189 * objdump.c (display_info): Loop over integers, not enums,
5190 to appease old compilers.
5192 Mon May 20 16:14:07 1991 Steve Chamberlain (steve at cygint.cygnus.com)
5194 *objdump.c *nm.c *copy.c: Changed some types to work with 64 bit
5197 Thu May 16 16:06:55 1991 Steve Chamberlain (steve at cygint.cygnus.com)
5199 * objdump.c (print_address): Make disasembled output more
5200 consistent with gdb and as: Add 0x when printing hex.
5201 Don't print extra leading zeros.
5202 Attempt to not print "filename.o".
5203 * objdump.c: Add some enum-to-int casts to accommodate old compilers.
5206 Fri May 3 22:21:44 1991 John Gilmore (gnu at cygint.cygnus.com)
5208 * copy.c: Change =& constructs to = &, since they confuse older
5216 version-control: never