3 * objdump.c (dump_section_header): Add new section flags
4 SEC_{EXCLUDE,SORT_ENTRIES}.
8 * objcopy.c (filter_symbols): NULL terminate the output symbols.
9 (copy_object): Allocate space for a possible extra NULL pointer.
11 * debug.c (debug_make_undefined_tagged_type): Make sure we are
12 given a kind of type we can handle.
13 (debug_write_type): Handle undefined enums and structs.
14 (debug_write_class_type): Handle undefined classes.
15 * prdbg.c (pr_enum_type): Handle an undefined enum.
16 * ieee.c (ieee_enum_type): Likewise.
20 * Makefile.in: Updated dependencies.
21 (ALLOCA, MALLOC): Remove variables.
22 (ADDL_LIBS): Remove $(MALLOC) from definition.
23 * alloca.c, gmalloc.c: Remove.
27 * ieee.c: Add global function write_ieee_debugging_info and a
28 bunch of static functions and structs used to write out IEEE
29 debugging information.
30 * budbg.h (write_ieee_debugging_info): Declare.
32 * ieee.c (struct ieee_type): Add pslot field.
33 (enum builtin_types): Define.
34 (ieee_builtin_type): For a pointer, return a pointer to the named
35 type. Use enum values rather than numbers.
36 (ieee_alloc_type): New static function.
37 (ieee_read_type_index): Use ieee_alloc_type.
38 (parse_ieee_bb): Likewise.
39 (parse_ieee_ty): Likewise. Use ieee_builtin_type for array range,
40 rather than making a new integer type. Store the new type in the
41 slot, if there is one.
42 (parse_ieee_atn): Treat ATN10 as defining a register variable.
43 (ieee_regno_to_genreg): Rename from ieee_regno_to_gen. Change all
45 (ieee_genreg_to_regno): New static function.
47 * stabs.c (parse_stab_type): Add new typename parameter. Change
49 (parse_stab_range_type): Add new typename parameter. Change all
52 * debug.h (struct debug_write_fns): Add tag parameter to
53 enum_type, start_struct_type, and start_class_type.
54 * debug.c (debug_write_type): Pass any tag name to
55 start_struct_type, debug_write_class_type, and enum_type. If
56 DEBUG_KIND_TAGGED, pass the name in the recursive call.
57 (debug_write_class_type): Accept a new tag parameter, and pass it
59 * prdbg.c (pop_type): Don't remove '+' character.
60 (pr_enum_type): Accept and use tag parameter.
61 (pr_start_struct_type): Likewise.
62 (pr_start_class_type): Likewise.
63 (pr_class_baseclass): Adjust algorithm used to find where to put
65 (pr_tag): Don't bother to insert the tag name.
67 * objcopy.c: Include budbg.h.
68 (convert_debugging): New static variable.
69 (OPTION_DEBUGGING): Define.
70 (copy_options): Add "debugging".
71 (copy_usage): Mention --debugging.
72 (is_strip_section): Skip debugging sections if convert_debugging.
73 (setup_section, copy_section): Likewise.
74 (filter_symbols): Skip debugging symbols if convert_debugging.
75 (copy_object): If convert_debugging, read and write debugging
77 (write_debugging_info): New static function.
78 (copy_main): Handle --debugging.
79 * Makefile.in (DEBUG_OBJS): New variable.
80 ($(OBJCOPY_PROG)): Depend upon and link against $(DEBUG_OBJS).
81 ($(STRIP_PROG)): Likewise.
82 (OBJDUMP_OBJS): Remove variable.
83 ($(OBJDUMP_PROG)): Use objdump.o $(DEBUG_OBJS) rather than
85 * binutils.texi, objcopy.1: Document --debugging.
89 * ieee.c: New file with code to read IEEE debugging information.
90 * budbg.h (parse_ieee): Declare.
91 * rddbg.c (read_debugging_info): Handle IEEE flavour files.
92 (read_ieee_debugging_info): New static function.
93 * Makefile.in: Rebuild dependencies.
95 (OBJDUMP_OBJS): Add ieee.o.
97 * bucomm.h (xrealloc): Change type of first parameter from char *
102 * Makefile.in: Add targets to automatically rebuild dependencies.
103 Remove targets which just listed dependencies of .o files.
105 (HFILES, GENERATED_HFILES): New variables.
106 (CFILES, GENERATED_CFILES): New variables.
107 (underscore.c): Don't do anything, just depend upon stamp-under.
108 (stamp-under): New target; do what underscore.c used to do.
109 (nlmconv.o): Depend upon sym.h and ecoff.h.
110 (.dep, .dep1, dep.sed, dep, dep-in): New targets.
111 (stage1, stage2, stage3, against, comparison): Remove.
112 (de-stage1, de-stage2, de-stage3): Remove.
113 (clean, distclean): Remove stamp-under and dep.sed.
114 * dep-in.sed: New file.
116 Implement generic debugging support. Implement a stabs reader and
118 * budbg.h, debug.c, debug.h, prdbg.c, rddbg.c, stabs.c: New files.
119 * objdump.c: Include "debug.h" and "budbg.h".
120 (dump_debugging): New global variable.
121 (usage): Mention --debugging.
122 (long_options): Add "debugging".
123 (display_bfd): Handle --debugging.
124 * Makefile.in (OBJDUMP_OBJS): New variable.
125 ($(OBJDUMP_PROG)): Use $(OBJDUMP_OBJS).
126 * binutils.texi, objdump.1: Document --debugging.
130 * nm.c ( long_options): Add "--defined-only" option.
131 (usage): Update for new "--defined-only" option.
132 (filter_symbols): Handle "--defined-only".
136 * arparse.y: Include "bucomm.h", not <sysdep.h>.
137 * nlmheader.y: Don't include "sysdep.h".
141 * nm.c (print_symdef_entry): Check return value of
142 bfd_get_elt_at_index.
146 * configure.in (DLLTOOL_DEFS): Build dlltool for PowerPC if target
147 is powerpc*-*-win* in addition to powerpc*-*-*pe*.
151 * objdump.c (endian_string): New static function.
152 (display_target_list): Use it.
153 * nlmconv.c (main): Use new bfd_big_endian macro.
157 * dlltool.c (fill_ordinals): Start from 1 if no other instructions
162 * Makefile.in (clean): Remove $(DEMANGLER_PROG).1. From Ronald
167 * mac-binutils.r: Fix copyright and version strings.
169 * Makefile.in (version): Remove, no longer used.
173 * mpw-make.sed (install, install-only): Edit in Mac-specific
178 * dlltool.c (ppc_jtab): The binary glue for PowerPC dll linkage,
179 including the return instruction.
180 sinfo: added a preferred alignment field.
181 (secdata): section data for the PowerPC version.
182 (make_one_lib_file): More symbols, More sections (pdata, rdata)
183 (make_tail): Use idata$6 instead of idata$7 for ppc. Also added a
184 NULL idata$3 descriptor (temporary).
188 * dlltool.c (fill_ordinals): Don't reference d_export_vec if
189 there are no exported functions.
193 * configure: Regenerate with autoconf 2.7.
197 * dlltool.c (fill_ordinals): Start assigning ordinals at 1.
199 * Makefile.in (EXPECT): Use $$r, not $${rootme}.
200 (check): Set r, not rootme.
204 * configure.in: Use BFD_NEED_DECLARATION.
205 * acconfig.h: Put NEED_DECLARATION_FPRINTF in @TOP@ section.
206 * configure, config.in: Rebuild with autoconf 2.6.
210 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
211 $(host_canonical) and $(target_canonical).
215 Version 2.6 released.
216 * Makefile.in (VERSION): Update to 2.6.
220 * Makefile.in (CC_FOR_TARGET): Define.
221 (check): Pass CC and CFLAGS to runtest.
223 * nm.c (display_rel_file): Don't require a DYNAMIC object when
224 dumping the dynamic symbol table.
226 * objdump.c (compare_symbols): Sort global symbols before local
227 symbols before debugging symbols.
228 (objdump_print_address): Don't futz around looking for a global
229 symbol with the same value.
233 * dlltool.c: Use FOPEN_* macros rather than "r" or "w".
235 * dlltool.c (fill_ordinals): Correct memset call.
239 * mpw-make.sed (DEMANGLER_PROG): Edit out attempts to do anything
244 * objcopy.c (setup_section): Copy the section lma independently of
249 * arsup.c (ar_open): Cast malloc return value.
253 * configure.in, configure (DLLTOOL_DEFS): Added ppc target.
254 * dlltool.c (MPPC): Added basic PPC definitions.
258 * configure.in: Don't treat rs6000-*-lynx* specially.
259 * configure: Rebuild.
260 * config/rslynx: Remove.
261 * Makefile.in: Remove @target_makefile_fragment@.
265 * bucomm.h: Include <sys/types.h>.
266 * ar.c: Don't include <sys/types.h> or <stdio.h>.
267 * bucomm.c, dlltool.c, nlmconv.c, objcopy.c, objdump.c: Likewise.
271 * objdump.c: Include <sys/types.h>.
273 Permit user to override DEMANGLER_PROG from command line. From
275 * Makefile.in ($(DEMANGLER_PROG)): Depend upon
277 (install): Don't depend upon $(DEMANGLER_PROG).1. Only install
278 $(DEMANGLER_PROG).1 if $(DEMANGLER_PROG) is not empty.
282 * Makefile.in (syslex.o): add -I$(srcdir) if compiling in a
287 * objdump.c (objdump_print_value): New static function.
288 (objdump_print_address): Use it. If we need the right section for
289 the symbol, and we can't find it, print an offset from the section
290 rather than using a symbol from some other section.
294 * dlltool.c (no_idata4, no_idata5): New.
295 (arm_jtab): Use correct encoding of jump instruction.
296 (usage, main, make_head, make_tail): Act on no_idata4, no_idata5.
300 * mpw-make.sed: Edit paths to generated y.tab.[ch] files.
304 * binutils.texi: Change --with-targets to --enable-targets.
308 * Makefile.in: Remove extraneous tab on otherwise empty line,
309 which confuses many non-GNU versions of "make".
313 * dlltool.c (i386_jtab, arm_jtab): New
314 (gen_lib_file): Rewritten to use bfd.
318 * Makefile.in (install): Don't give error message if dlltool
323 * deflex.l: Allow quoting of IDs.
324 * defparse.y (%union): string deleted.
325 (command): DESCRIPTION takes ID.
326 * dlltool.c (gen_def_file): Quote outgoing name if
327 necessary. Preserve NONAME.
328 (gen_lib_file): Run ranlib.
329 (workout_prefix): Deleted.
330 (main, usage, long_options): Add --as, --ranlib, --ar options.
334 * dlltool.c (mtable): HOW_ALIGN_LONG, new.
336 (d_low_ord, d_high_ord, d_named_funcs): New.
337 (gen_exp_file): Create noname entries correctly.
338 (gen_lib_file): Dump exports alphabetically.
339 (process_duplicates): Count nonamed functions.
340 (fill_ordinals): Keep track of highest ord too.
341 (mangle_defs): Create alphabetically ordered list of names.
345 * Makefile.in (TOOL_PROGS): Include DLLTOOL_PROG.
349 * dlltool.c (add_underscore): New.
350 (xlate): Use new name.
351 (main, usage): Update.
355 * sysinfo.y: Eliminate unused terminals "[" and "]" and unused
356 nonterminal "name". One s/r conflict remains.
360 * nm.c (print_symname): Don't try to demangle an empty
362 * objdump.c (slurp_symtab): Reset symcount if there are
364 (slurp_dynamic_symtab): Likewise, for dynsymcount.
365 (disassemble_data): Fix memory leak: free sorted_syms when done.
366 (display_bfd): Likewise, for syms and dynsyms.
367 (dump_relocs): Don't print header before possibly generating an
369 (dump_dynamic_relocs): Likewise.
371 * ar.1, nm.1, objdump.1, size.1, strings.1, strip.1: Fix typos and
376 * ar.c (do_quick_append): Comment out.
377 (replace_members): Add quick argument.
378 (main): Don't call do_quick_append.
379 (open_inarch): Don't call quick_append to create an empty archive.
380 Instead call bfd_openw/bfd_set_format/bfd_close.
384 * bucomm.c: Always include time.h.
388 * objdump.c (compare_symbols): Sort gnu_compiled and gcc2_compiled
389 symbols after other symbols with the same value. Likewise for
390 symbols which look like file names.
391 (objdump_print_address): Always chose the first reasonable symbol
396 * arsup.c (ar_save): Use rename, not unlink/link/unlink.
400 * strings.c (main): Exit with zero status if no files are given
401 and standard input is read.
405 * mpw-config.in: Calculate underscore and put into makefile
406 fragment, generate config.h.
407 * mpw-make.sed: New file, sed commands to edit Unix makefile
409 * mpw-make.in: Remove.
410 * mac-binutils.r: New file, Mac resources.
414 * dlltool.c: (gen_exp_file): Always emit a .reloc section if
418 (gen_lib_file): Use imp_name_lab.
419 (main): Initialize imp_name_lab.
423 * configure.in: Call AC_HEADER_SYS_WAIT.
424 * configure: Rebuild.
425 * config.in: Rebuild.
426 * dlltool.c: Include "libiberty.h" and "bucomm.h". Don't include
427 <stdio.h>, <stdlib.h>, or <string.h>. Don't include <wait.h>.
428 Include <sys/types.h>. Use HAVE_SYS_WAIT_H to control whether to
429 include <sys/wait.h> or define the wait macros by hand. Don't
431 (gen_lib_file): Don't assume that sprintf returns the number of
432 characters; use strlen instead.
436 * objdump.c (disassemble_data): Don't use the old BFD based
437 disassembler interface. Make info a const pointer.
441 * objdump.c (start_address): New variable.
442 (stop_address): New variable.
443 (usage): Mention --start-address and --stop-address.
444 (OPTION_START_ADDRESS, OPTION_STOP_ADDRESS): Define.
445 (long_options): Add "start-address" and "stop-address".
446 (disassemble_data): Handle start_address and stop_address.
447 (dump_data, dump_reloc_set): Likewise.
448 (main): Don't set seenflag for -l. Handle OPTION_START_ADDRESS
449 and OPTION_STOP_ADDRESS.
450 * objcopy.c (parse_vma): Move to bucomm.c.
451 * bucomm.c (parse_vma): New function, moved in from objcopy.c.
452 * bucomm.h (parse_vma): Declare.
453 * binutils.texi, objdump.1: Document new objdump options.
457 * Makefile.in (maintainer-clean): New target.
459 * ar.c (replace_members): Don't call write_archive if nothing
462 * objdump.c (disassemble_data): Add casts to avoid gcc warnings.
466 * config.in: Rename from config.h.in.
467 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
468 Check for config.h:config.in when creating stamp-h.
469 * configure: Rebuild.
470 * Makefile.in (stamp-h): Depend upon config.in rather than
471 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
472 calling config.status.
474 * Makefile.in (distclean): Remove config.h, stamp-h, and
477 * nm.c (value_format): Initialize based on BFD64 and
479 (print_radix): New static variable.
480 (set_print_radix): Set print_radix. Adjust changes to
482 (print_value): New static function, to print 64 bit octal and
483 decimal values correctly.
484 (print_symbol_info_bsd): Check BFD64, not BFD_HOST_64_BIT. Use
486 (print_symbol_info_sysv): Use print_value.
487 (print_symbol_info_posix): Likewise.
491 * Makefile.in (*.o): Remove incorrect dependencies on
492 $(BFDDIR)/hosts/std-host.h.
494 * Makefile.in (INSTALL_DATA): Add -m 644.
495 (INSTALL_XFORM1): Likewise.
496 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@ rather than $(CC).
497 (mostlyclean): Remove config.log.
498 (distclean): Remove config.cache.
500 * configure.in: Call BFD_CC_FOR_BUILD and BFD_BINARY_FOPEN.
501 * configure: Rebuild.
505 * configure.in: Rewrite to use autoconf.
506 * aclocal.m4: New file.
507 * configure: New file, built by autoconf.
508 * acconfig.h: New file.
509 * config.h.in: New file, built by autoheader.
510 * Makefile.in: Various changes for new configure script. Also:
511 (PROGS): Remove $(SYSINFO_PROG).
512 (ALL_CFLAGS): Remove $(TDEFINES).
513 (version.o): Use $(ALL_CFLAGS).
514 (cplus-dem.o, dlltool.o, nlmconv.o): Likewise.
515 (sysdump.o): Depend upon bucomm.h and config.h.
516 (srconv.o, arsup.o, strings.o): Depend upon config.h.
517 (filemode.o): Don't depend upon ../bfd/sysdep.h.
518 (bucomm.o): Depend upon config.h, not ../bfd/sysdep.h.
519 (size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise.
520 (nlmheader.o, nlmconv.o): Likewise.
521 (distclean): Don't remove sysdep.h.
522 * bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h".
523 Include "fopen-same.h" or "fopen-bin.h", based on
524 USE_BINARY_FOPEN. Include <errno.h>, and declare errno if it is
525 not a macro. Include <unistd.h>, <string.h>, <strings.h>,
526 <stdlib.h>, and <fcntl.h> if they are present. Declare strchr,
527 strrchr, and strstr if no string header file exists. Include
528 <sys/file.h> if it exists and <fcntl.h> does not. Define
529 O_RDONLY and O_RDWR if necessary.
530 * ar.c: Don't include "sysdep.h". Do include <sys/types.h> and
531 <sys/stat.h>. Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME. Use
532 HAVE_UTIMES rather than !USE_UTIME. Don't include <errno.h>, and
534 * arsup.c: Don't include <sysdep.h>.
535 * bucomm.c: Don't include "sysdep.h". Include <stdio.h>,
536 <sys/types.h>, and <sys/stat.h>. Include <time.h> if it defines
537 time_t. Define time_t if necessary.
538 * coffdump.c: Don't include "sysdep.h".
539 * coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise.
540 * srconv.c, strings.c: Likewise.
541 * nm.c: Don't include "sysdep.h". Don't try to define HAVE_SBRK.
542 * objcopy.c: Don't include "sysdep.h". Include <sys/types.h> and
544 (simple_copy): Use creat rather than assuming that O_CREAT is
546 * objdump.c: Don't include "sysdep.h". Use
547 NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED.
548 * sysdump.c: Include "bfd.h" and "bucomm.h". Don't include
549 "sysdep.h" or <stdlib.h>.
550 (dump_symbol_info): Rename from symbol_info. Change all callers.
554 * configure.in (host_makefile_frag): Don't set. Substitute for
555 @CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile.
556 * Makefile.in (AR_FLAGS): Set to rc rather than qv.
557 (CC): Define as @CC@.
558 (CFLAGS): Set to @CFLAGS@.
559 (LDFLAGS): Define as @LDFLAGS@.
560 (ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).
562 * configure.in: Don't bother to call config.bfd for each target.
563 Just call it for the default target, and use the shell variable to
564 decide whether underscores are used.
568 * configure.in: match i[3-6]86-*-win32, not just i386-*-win32.
572 * dlltool.c (add_indirect): New.
574 (gen_exp_file): Timestamp should be 0. Insert prefix when
575 needed. New code for indirection.
576 (gen_lib_file): Timestamp should be 0. Insert prefix
578 (usage): Document --add-indirect.
579 (main): Cope with new option.
581 * objdump.c (dump_private_headers): New.
582 (usage): Document new option.
583 (long_option): Add private-headers.
584 (dump_bfd_private_header): New.
585 (main): Cope with new option.
589 * dlltool.c (run): Add missing 3rd arg to waitpid.
593 * Makefile.in (TOOL_PROGS): Include dlltool if needed.
597 * dlltool.c (rva): Deleted.
598 (rvaafter, rva_before): Use new assembler pseudo.
599 (flush_page, gen_exp_file, gen_lib_file): Use new way of RVAing.
600 (gen_exp_file): Don't generate .edata if no need.
601 (gen_lib_file): Don't make timestamp.
602 Put _iname in idata$7.
603 (workout_prefix): Fix memory initialization bug.
604 (usage): Tidy up, delete many single char options.
605 (main): rva option is gone.
609 * dlltool.c (options): image-base is a synonym for rva.
610 (gen_lib_file): Put dll name into ibase$7.
614 Modified to generate archives and objects rather than .s files.
615 * dlltool.c (run) New function.
616 (gen_exp_file, gen_lib_file): Use run.
617 (workout_prefix): New.
618 (usage): Document new options.
619 (main): Parse new options.
623 * dlltool.c (gen_exp_file): Fix RVA handling.
624 (rva_s, rva_n): Delete.
628 * nm.c (main): Ignore -e.
632 * Makefile.in (config.texi): New target. Write out a setting for
633 texinfo variable VERSION.
634 (binutils.dvi, binutils.info): Depend on it.
635 * binutils.texi: Include it, and reference @value{VERSION} instead
636 of explicitly specifying 2.2(!).
640 * coffgrok.c (do_type): Handle array dimensions the same way gdb
645 * dlltool.c (mtable): New fields.
646 (ASM_RVA_BEFORE, ASM_RVA_AFTER): New.
647 (flush_page): Use new macros.
651 * objcopy.c (mark_symbols_used_in_relocations): Handle sections
653 * coffgrok.c (do_sections_p1): Likewise.
657 * strings.c (print_strings): For compatibility with existing
658 strings programs, print strings which are not terminated with a
659 null byte or a newline.
660 * binutils.texi, strings.1: Update documentation accordingly.
662 * ar.c (replace_members): For compatibility with existing ar
663 programs, permit users to add the same file multiple times.
667 * strings.c (DATA_FLAGS): Remove SEC_DATA.
668 (main): If no file names are given, scan standard input.
669 * binutils.texi, strings.1: strings now scans non-data sections by
674 * srconv.c (wr_hd): Set afl field to 4 for bfd_arch_sh.
675 (writeINT): When size == -2, use 2 bytes for the h8300 and 4 bytes
678 * sysdump.c (fillup): Return size - 1, the last byte is a checksum
679 and shouldn't be counted.
680 * sysroff.info (hd): Changed segment identifier from a byte to a 1
681 bit field. The sysroff 2.0-01 specification seems to be in error
682 here. Reduce width of following "spare" field from 4 to 3 bits.
683 (rl): Changed order and width of first 4 bitfields to correspond
684 to sysroff specification.
685 (dln_head, dln_inside, dln_tail): Removed.
689 * nm.c (sort_symbols_by_size): Enclose expression being casted
690 in parens so result is casted, not just first operand. Can't
691 do pointer arithmetic on void* pointers.
695 * sysdump.c (dh): Changed format of output to be 16 hex digits
696 followed by 16 ascii characters, similar to Emacs' hexl-mode,
697 to make it easier to read.
702 * srconv.c (wr_tr): Write out handcrafted tr block.
703 (walk_tree_symbol): Use evallen and evalue instead of
704 vallen & value because of corresponding changes in
707 * sysdump.c (sysroff_swap_tr_in, sysroff_print_tr_out): New
710 * sysroff.info (tr): the tr block is a special case --- a block
711 without contents --- which can't be handled by generated code.
712 (den, dpp): only first byte is present for DENend, DPPend.
713 (dsy): describe a conditional portion of block, rename some fields.
714 (dps): describe a conditional portion of block.
717 * sysinfo.y (yyerror): write error message to standard error.
721 * Makefile.in (DISTSTUFF): Add arparse.h and sysinfo.h.
722 (mostlyclean): Remove y.output.
723 (clean): Remove sysroff, sysroff.c, sysroff.h, and sysinfo.
725 * nlmconv.c (powerpc_mangle_relocs): Cast memset arg to size_t.
726 * objcopy.c (copy_object): Likewise.
728 * nm.c (HAVE_SBRK): Define execpt on amigados and WINDOWS_NT.
729 (struct size_sym): Define.
730 (show_stats): New static variable.
731 (long_options): Add undocumented option "stats".
732 (main): Print memory stats if requested.
733 (sort_bfd, sort_dynamic, sort_x, sort_y): New static variables.
734 (numeric_forward): Use minisymbols rather than asymbols.
735 (non_numeric_forward): Likewise.
736 (size_forward1): Rename from size_forward. Use minisymbols.
737 (size_forward2): New static function.
738 (sort_symbols_by_size): Take new arguments dynamic, size, and
739 symsizep. Use minisymbols. Don't store the size back in the
740 symbol; store in a newly allocate struct size_sym array.
741 (display_rel_file): Read minisymbols rather than asymbols. Set
742 sort_* variables. Call print_size_symbols if sorting by size.
743 (filter_symbols): Take new arguments dynamic and size. Use
745 (print_symbols): Likewise. Call print_symbol for actual printing.
746 (print_size_symbols): New static function.
747 (print_symbol): New static function.
751 * objdump.c (dump_section_stabs): Only print each stabs section
753 (compare_relocs): Make it clear to gcc that this always returns a
758 * objcopy.c (simple_copy): Preserve errno on failure.
759 (smart_rename): Print error mesage if simple_copy fails.
763 * sysdump.c: re-indented file.
764 (module): read blocks sequentially instead of trying to parse
765 them, as that would require changing the parser recognize the
766 difference between a DPSstart and DPSend block.
767 (getone): Add break's between switch blocks as appropriate.
768 (object_body_list): parse blocks according to sysroff spec.
772 * sysroff.info: re-indented file, prior formatting was confusing
773 because it was indentation did not reflect nesting of conditional
774 records. Change "space size within segment" record in hd record
777 * sysinfo.y (cond_it_field): Use xcalloc instead of calloc.
779 * srconv.c (wr_cs): Reformatted cs header array, tag each byte
780 with a comment describing the field.
781 (wr_unit_info): Use SEEK_SET macro instead of constant 0.
782 (main): Use FOPEN_WB macro instead of literal "wb".
783 * sysroff.info: Remove fdl (dfl) field from cs block. Compare
784 ptr->type with ED_TYPE_CONST instead of constant 2 in ed block.
788 * nm.c (size_forward): Check yf against yn, not xn.
790 * objcopy.c (copy_archive): Record all output BFD's, and close
791 them before unlinking them and removing the temporary directory,
792 to avoid NFS problems.
794 * ar.c (replace_members): In verbose messages, use 'r' when
795 replacing a member, and 'a' when adding one.
797 * ar.c (ar_truncate): New static variable.
798 (normalize): Change return type to const char *. Add abfd
799 argument. Change all callers. If ar_truncate, chop the filename
800 to abfd->ar_max_namelen.
801 (main): For the 'f' modifier, set ar_truncate to true. Don't
802 change quick_append to replace if ar_truncate is true.
803 (do_quick_append): If ar_truncate, set BFD_TRADITIONAL_FORMAT.
804 (write_archive): Likewise.
805 * binutils.texi, ar.1: Document 'f' modifier.
807 * objcopy.c (enum strip_action): Define strip_unneeded.
808 (OPTION_STRIP_UNNEEDED): Define.
809 (strip_options): Add "strip-unneeded".
810 (copy_options): Likewise.
811 (copy_usage): Mention --strip-unneeded.
812 (strip_usage): Likewise.
813 (is_strip_section): Strip debugging sections if strip_unneeded.
814 (filter_symbols): If strip_unneeded, only keep BSF_KEEP symbols.
815 (copy_object): If strip_all, discard symbols without checking
817 (copy_object): Call filter_symbols if strip_unneeded.
818 (setup_section): Strip debugging sections if strip_unneeded.
819 (copy_section): Likewise.
820 (strip_main): Handle OPTION_STRIP_UNNEEDED.
821 (copy_main): Likewise.
822 * binutils.texi, objcopy.1, strip.1: Document --strip-unneeded.
826 * configure.in (i386-*-win32): New configuration.
827 * dlltool.c (killat, xlate, usage, long_options, main):
828 Understand and cope with -k option.
832 * ar.c: (extract_file): Change "#if POSIX_UTIME" to
833 "#ifdef POSIX_UTIME" to match other tests of POSIX_UTIME
834 and avoid lossage when POSIX_UTIME is not defined at all.
838 * ar.c: (print_contents.c, extract_file, do_quick_append):
839 Malloc buffers rather than allocate on stack (so it works
841 * deflex.l: Names can have an @ in them.
842 * dlltool.c: Loads of stuff. Can now generate .imp files which
847 * mpw-make.in (demangle.c.o): Remove.
848 (arparse.h): Depend on arparse.c instead of arparse.y.
852 * Makefile.in (DISTSTUFF): Don't include info here.
853 (diststuff): Include it here.
854 (realclean): Remove *.info.
856 * objdump.c (compare_relocs): If relocation entries have the same
857 address, keep them in file order.
861 * dlltool.c: Change names of generated files. .*.s-> -*.s
863 * objdump.c (dump_section_stabs): Check for names
864 which are supersets of selected names.
868 * dlltool.c (mtable, ARM jump): Must redirect via pc offsetable ptr.
872 * deflex.l, defparse.y, dlltool.c: New files.
873 * Makefile.in, configure.in: Support for them.
877 * sysdump.c: Include sysdep.h
878 (main): Open input with FOPEN_RB.
882 * objdump.c (wide_output): New flag variable.
883 (usage): Print new -w, --wide options.
884 (long_options): Add --wide support.
885 (dump_section_header): If --wide, don't print a newline between
886 the section's first line and the flags.
887 (objdump_print_address): Use unsigned comparisons for the binary
889 (disassemble_data): If --wide, don't put a \n between the
890 disassembly output and relocation information.
891 (main): Support -w option being the same as --wide.
897 * objcopy.c (smart_rename): make it smarter, clean up
902 * Makefile.in: Delete lines with lots of #### because four or more
903 indicate a point for makefile fragment substitution.
907 * configure.in: Don't build nlmconv on PowerPC eabi any more, it
912 * Makefile.in (EXPECT): Define.
913 (RUNTEST): Use one in source tree if present.
914 (check): Set `rootme' for $(EXPECT).
918 * srconv.c (main): Add support for -n option which disables
919 prescan of common symbols.
920 (wr_ob): If reading past the end of a section, fill with zeros.
924 * objdump.c (dump_section_header): Display load address after
925 virtual memory (run-time) address.
929 * Makefile.in (cplus-dem.o): Pass -DVERSION='"$(VERSION)"' to the
931 (DEMANGLER_PROG): No longer uses version.o.
935 Merge in support for Mac MPW as a host.
936 (Old change descriptions retained for informational value.)
938 * mpw-config.in (TDEFINES): Define as empty in makefile frag.
940 * mpw-config.in: Create mk.tmp, define ARCHDEFS in it.
942 * mpw-config.in: New file, MPW configure fragment for binutils.
943 * mpw-make.in (install-only): New target.
944 (install): Also depend on install-only.
946 * mpw-make.in (cplusfilt): Renamed from c++filt.
947 (INCLUDES): Add more paths.
949 * mpw-make.in: New file, MPW makefile fragment for binutils.
950 (Normally automatically generated from Makefile.in.)
954 * ar.c (write_archive): Call make_tempname to get output file
955 name, rather than using a fixed name based on the input file.
957 * objcopy.c (make_tempname): Copy from here...
958 * bucomm.c (make_tempname): ...to here, and make global.
959 * bucomm.h (make_tempname): Declare.
963 * strings.c: Include "bfd.h" before other headers. Include
965 * bucomm.c (print_arelt_descr): Cast st_uid and st_gid to long,
966 and print them with %ld.
970 * objcopy.c (strip_options): Add --keep-symbol.
971 (copy_options): Likewise.
972 (copy_usage): Mention --keep-symbol and -K.
973 (strip_usage): Likewise.
974 (keep_symbols): New static variable.
975 (is_strip_symbol): Adjust the return value according to
977 (strip_main): Handle -K. For -N, check that -K was not given.
978 (copy_main): Likewise.
979 * binutils.texi, objcopy.1, strip.1: Document -K.
983 * objcopy.c (copy_archive): Check result of mkdir.
984 (copy_main): Cast an xmalloc result.
986 * objdump.c (usage): Break long format string into shorter ones.
990 * bucomm.c (list_supported_targets): New function.
991 * bucomm.h (list_supported_targets): Declare.
992 * ar.c (usage): Call list_supported_targets.
993 * nm.c (usage): Likewise.
994 * objcopy.c (copy_usage, strip_usage): Likewise.
995 * objdump.c (usage): Likewise.
996 * size.c (usage): Likewise.
997 * strings.c (usage): Likewise.
1001 * bucomm.c (print_arelt_descr): Cast st_size to long before
1002 passing it to fprintf.
1006 * objcopy.c (struct section_list): Add fields remove, set_flags,
1007 and flags. Change adjust from boolean to enum.
1008 (remove_sections): Remove static variable.
1009 (sections_removed): New static variable.
1010 (copy_options): Add --set-section-flags.
1011 (copy_usage): Mention --set-section-flags.
1012 (parse_flags): New static function.
1013 (find_section_list): New static function.
1014 (is_strip_symbol): Change return type from int to boolean.
1015 (is_strip_section): New static function.
1016 (filter_symbols): Call is_strip_section.
1017 (copy_object): When adding sections, check for specified flags or
1018 VMA. Call filter_symbols if any sections are being removed.
1019 (setup_section): Use find_section_list function rather than
1020 looking through remove_sections and adjust_sections. Handle
1021 --set-section-flags.
1022 (copy_section): Use find_section_list rather than looking through
1024 (strip_main): Use find_section_list instead of adding items to
1026 (copy_main): Use find_section_list instead of adding items to
1027 sections_removed and adjust_sections. Handle --set-section-flags.
1028 * binutils.texi, objcopy.1: Document --set-section-flags.
1032 * objdump.c (with_source_code): New global variable.
1033 (usage): Mention -S/--source.
1034 (long_options): Add --source.
1035 (prev_functionname, prev_line): New static variables.
1036 (struct print_file_list): Define.
1037 (print_files): New static variable.
1038 (skip_to_line, show_line): New static functions.
1039 (disassemble_data): Call show_line to handle -l and -S.
1041 * binutils.texi, objdump.1: Document -S/--source.
1045 * objcopy.c (copy_usage): Rename parameter to avoid shadowing.
1046 (strip_usage): Likewise.
1048 * objcopy.c (struct section_add): Define.
1049 (add_sections): New static variable.
1050 (copy_options): Accept --add-section.
1051 (copy_usage): Mention --add-section.
1052 (copy_object): Add sections from the add_sections list.
1053 (copy_main): Handle --add-section.
1054 * binutils.texi, objcopy.1: Document --add-section.
1058 * objdump.c (disassemble_data): Pass section offset, not absolute
1059 address, to bfd_find_nearest_line.
1061 * nlmconv.c (powerpc_mangle_relocs): Don't use const with
1066 * objdump.c (compare_symbols): Use bfd_asymbol_value (VAR) rather
1068 (objdump_print_address): Likewise.
1069 (disassemble_data): Don't change the symbol values. It can
1070 confuse bfd_canonicalize_reloc.
1074 * configure.in: Add support for powerpc-*-ebai.
1076 Wed Jan 18 10:02:12 1995 Steve Chamberlain <sac@splat>
1078 * coffdump.c: Include sysdep.h.
1079 (dump_coff_type): Handle coff_secdef_type.
1080 * coffgrok.c : Include sysdep.h.
1081 * srconv.c: Include libiberty.h
1082 (absolute_p, dty_start, dty_end, dump_tree_structure): Remove.
1086 * coffdump.c (dump_coff_scope): Cast pointer to unsigned long for
1088 * coffgrok.c: Include bucomm.h. Don't declare xmalloc.
1089 (push_scope): Declare type of parameter link.
1090 * size.c: Include libiberty.h.
1091 * srconv.c: Include bucomm.h.
1092 (find_base): Declare at top of file.
1093 (wr_hd): Add default case to architecture switch.
1094 (wr_dps_start): Declare type of parameter nest.
1095 (wr_du): Comment out variables used only in commented out blocks.
1096 (wr_dus): Remove unused variable i.
1097 (wr_sc): Remove unused variables myinfo, low, and high.
1098 * strings.c: Include libiberty.h.
1099 * sysdump.c: Include <ctype.h>.
1103 * ar.c (main): Ignore 'f' modifier used on HP/UX 9.
1107 * ar.c, nm.c, objcopy.c, objdump.c: Include progress.h.
1108 * ar.c, nm.c, objcopy.c, objdump.c (main): Add START_PROGRESS
1110 * ar.c (map_over_members, open_inarch): Call PROGRESS.
1111 * nm.c (main, display_archive, filter_symbols, print_symbols):
1114 * objcopy.c (copy_usage): Break up long usage string.
1118 * objcopy.c (copy_object): Don't bother setting status after
1119 nonfatal() "call", because it won't return.
1123 * nlmconv.c (powerpc_mangle_relocs): Don't switch a reloc to use
1124 the section symbol if the symbol is undefined.
1128 * objcopy.c (add_strip_symbol): Cast return value of xmalloc.
1132 * ar.c (replace_members): Pass current->filename to normalize when
1133 checking for duplicates, because the filename of a newly added
1134 file will not have been normalized yet.
1138 * ar.c (main): Don't call do_quick_append if any of the archive
1139 names are longer than 14 characters.
1141 * objcopy.c (main): Fix is_strip test. From
1146 * objcopy.c (add_strip_symbol): New function, adds a name to an
1147 explicit list of symbols to strip.
1148 (is_strip_symbol): New function, reports whether the name argument
1149 is in the explicit list.
1150 (filter_symbols): Check against is_strip_symbol above all.
1151 (strip_main): Recognize -N option. If used, don't default to
1153 (copy_main): Recognize -N option.
1154 (strip_usage): Document -N and --strip-symbol options.
1155 (copy_usage): Ditto.
1156 * objcopy.1, strip.1, binutils.texi: Document -N and
1157 --strip-symbol options.
1161 * objdump.c (display_target_list, display_info_table): Pass an
1162 array to tmparg, rather than NULL, since some systems can't handle
1165 * objcopy.c (copy_archive): Keep a list of the names of the
1166 temporary files we created. Close each input BFD after we open
1171 * Makefile.in (VERSION): Bump to 2.5.3.
1175 * Makefile.in (install-info): Install info files from whatever
1176 directory they were found in.
1178 Patch from DJ Delorie:
1179 * configure.bat: do c++filt -> cxxfilt right
1181 * sysinfo.y: Include system header files early, so any potential
1182 declaration of abort() occurs before its use.
1184 * strings.c (strings_file): Try opening the file in binary mode
1189 * ar.c (main): Treat ar qs like ar rs.
1193 * objcopy.c (gap_fill): Explicitly initialize, for clarity.
1194 (pad_to_set, pad_to): New static variables.
1195 (copy_options): Accept --pad-to.
1196 (copy_usage): Mention --pad-to.
1197 (copy_object): Support --pad-to.
1198 (compare_section_vma): Sort non loadable sections to the front.
1199 Sort sections with the same VMA by size.
1200 (copy_main): Handle --pad-to.
1201 * binutils.texi, objcopy.1: Document --pad-to.
1205 * objcopy.c (gap_fill_set, gap_fill): New static variables.
1206 (copy_options): Accept --gap-fill.
1207 (copy_usage): Mention --gap-fill.
1208 (copy_object): Support --gap-fill.
1209 (get_sections, compare_section_vma): New static functions.
1210 (copy_main): Handle --gap-fill.
1211 * binutils.texi, objcopy.1: Document --gap-fill.
1215 * Makefile.in (check): Add a dummy else clause to the if
1218 * objcopy.c (copy_object): Revert yesterday's change.
1219 * binutils.texi, objcopy.1: Remove special mention of --set-start
1220 and `binary' output format.
1224 * objcopy.c (copy_object): If the output file format is `binary',
1225 and the start address was not set using --set-start, default the
1226 start address to zero. This hack is because the `binary' output
1227 file format uses the start address to set the virtual address of
1228 the first byte in the file.
1229 * binutils.texi, objcopy.1: Add some notes on generating S-records
1232 * nm.c (print_symdef_entry): Call print_symname to print the
1233 symbol name, so that --demangle works.
1235 * Makefile.in (mostlyclean): Remove tmpdir.
1237 * objcopy.c (struct section_list): Add fields used, adjust, val.
1238 (adjust_start, set_start_set, set_start): New static variables.
1239 (adjust_section_vma, adjust_sections): New static variables.
1240 (copy_options): Add --adjust-start, --adjust-vma,
1241 --adjust-section-vma, --adjust-warnings, --no-adjust-warnings,
1243 (parse_vma): New static function.
1244 (copy_usage): Mention new options.
1245 (copy_object): Handle --set-start and --adjust-start.
1246 (setup_section): Correct type of last argument to PTR. Set used
1247 field if section is removed. Handle --adjust-vma and
1248 --adjust-section-vma.
1249 (copy_section): Correct type of last argument to PTR.
1250 (mark_symbols_used_in_relocations): Likewise.
1251 (strip_main): Clear used field when handling -R.
1252 (copy_main): Handle new options.
1253 * binutils.texi (objcopy): Document new options.
1254 * objcopy.1: Document new options.
1258 * configure.in (configdirs): Remove definition--testsuite is no
1260 * Makefile.in (testsuite): Remove target.
1261 (site.exp): New target.
1263 (clean, distclean): Don't recur into testsuite directory.
1267 * Makefile.in (VERSION): Updated to 2.5.
1268 * Version 2.5 released.
1272 * Makefile.in (sysdump.o): Depends upon sysroff.c.
1276 * nlmconv.c (link_inputs): Pass -Ur flag to ld so that the
1277 ctor/dtor tables needed by C++ programs are built.
1281 * Makefile.in (srconv.o): Add dependence on sysroff.c.
1285 * configure.in: Use ${config_shell} when running config.bfd.
1287 * Makefile.in (sysroff.h): Split target away from sysroff.c.
1288 (srconv.o, sysdump.o): New targets.
1289 (srconv, sysdump): Don't depend upon sysroff.c.
1293 * Makefile.in (arparse.c): Don't ignore errors from mv.
1294 (sysinfo.c): Likewise. Also, depend upon arparse.c, to prevent a
1295 parallel make from trying to build both arparse.c and sysinfo.c
1297 (nlmheader.c): Similar change.
1298 (arparse.h): Separate target from arparse.c, so that a parallel
1299 make does not try to build both at once. Depend upon arparse.c.
1300 (sysinfo.h): Similar change.
1302 * objdump.c (disassemble_data): Pass the reloc buffer to free, not
1303 the pointer used to loop over the relocs.
1307 * objdump.c (disassemble_data): Cast result of xmalloc.
1311 * objdump.c (sorted_syms, sorted_symcount): New global variables.
1312 (objdump_print_address): Use sorted_syms and sorted_symcount
1313 instead of syms and symcount.
1314 (disassemble_data): Don't bother to get the relocs before looping
1315 over the sections. Before filtering and sorting the symbol table,
1316 copy it into sorted_syms.
1320 * objdump.c (struct objdump_disasm_info): Add field require_sec.
1321 (objdump_print_address): If aux->require_sec, require that the
1322 symbol be in aux->sec even if HAS_RELOC is not set. If we can't
1323 find a smaller symbol in the right section, look for a larger one.
1324 (disassemble_data): Set aux.require_sec around the
1325 objdump_print_address call for the instruction address.
1329 * ar.c: Call xexit rather than exit.
1330 (output_filename, output_file, output_bfd): New static variables.
1331 (remove_output): New static function.
1332 (main): Call xatexit (remove_output). Call xexit rather than
1334 (extract_file): Set output_filename and output_file while output
1336 (write_archive): Likewise, but use output_bfd, not output_file.
1337 * arsup.c: Include libiberty.h. Call xexit rather than exit.
1338 * bucomm.c: Likewise.
1340 * objdump.c (disassemble_all): New global variable.
1341 (usage): Document --disassemble-all.
1342 (long_options): Add disassemble-all as a synonym for -D.
1343 (compare_symbols): Make pointers const.
1344 (compare_relocs): New static function.
1345 (disassemble_data): Rename disassemble to disassemble_fn to avoid
1346 shadowing. If dump_reloc_info, print relocs along with
1347 disassembly. Skip sections which are not SEC_CODE unless
1348 disassemble_all or only is set.
1349 (display_bfd): Don't call dump_relocs if disassemble is set.
1350 (main): Accept and handle -D.
1351 * binutils.texi: Document -D/--disassemble-all.
1352 * objdump.1: Likewise.
1356 * objdump.c (disassemble_data): Initialize prevline to 0. Make
1357 prev_function non const. Copy functionname into an malloc buffer
1358 when setting prev_function, instead of assuming that the string
1361 * nm.c: Include libiberty.h.
1362 (sort_by_size): New static variable.
1363 (long_options): Add --size-sort.
1364 (usage): Mention --size-sort.
1365 (numeric_forward): Make static. Change from void * to PTR.
1366 (numeric_reverse): Likewise.
1367 (non_numeric_forward, non_numeric_reverse): Likewise.
1368 (sorters): Change declaration from void * to PTR.
1369 (size_forward, sort_symbol_by_size): New static functions.
1370 (display_rel_file): Handle sort_by_size.
1371 (filter_symbols): If sort_by_size, discard absolute and undefined
1373 * binutils.texi (nm): Document --size-sort.
1374 * nm.1: Document --size-sort.
1378 * objcopy.c (copy_main): Initialize input_filename and
1379 output_filename to NULL.
1383 * Makefile.in (version.o): Depend upon Makefile, so that version.o
1384 gets rebuilt when make variable VERSION is changed.
1386 * objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.
1390 * configure.in: Change i[34]86 to i[345]86.
1394 * ar.c (ranlib_touch): Don't update the archive map if there isn't
1399 * ar.c: Include libiberty.h.
1400 (inarch): Remove variable.
1401 (map_over_members): Make static. Add arch argument, and use it
1402 instead of inarch. Change all callers.
1403 (main): Treat --version as -v. Accept -t argument. Accept any
1404 number of archive arguments. Catch and use open_inarch return
1405 value, rather than using inarch.
1406 (open_inarch): Return newly opened BFD, rather than using inarch.
1407 (do_quick_append): Make archive_filename const.
1408 (write_archive): Add iarch argument, and use it instead of inarch.
1410 (delete_members, move_members, replace_members): Likewise.
1411 (ranlib_only): Don't exit on success. Catch and use open_inarch
1413 (ranlib_touch): New function.
1414 * arsup.h (map_over_members): Don't declare.
1415 (ar_end, ar_extract): Declare.
1416 (open_inarch): Change return value in declaration to bfd *.
1417 * arsup.c (map_over_list): Make static. Always pass two arguments
1418 to function. Add arch argument, and use it instead of inarch.
1420 (ar_directory_doer): Make static. Add ignored second argument.
1422 (ar_directory): Use open_inarch return value rather than inarch.
1423 (ar_addlib_doer): Make static.
1424 (ar_addlib): Use open_inarch return value rather than inarch.
1425 (ar_extract): Remove unused local variable abfd.
1429 Add support for removing named sections to objcopy and strip.
1430 * objcopy.c (struct section_list): Define.
1431 (remove_sections): New static variable.
1432 (strip_options, copy_options): Add remove-section.
1433 (copy_usage, strip_usage): Mention -R and --remove-section.
1434 (setup_section): If section is in remove_sections list, ignore it.
1435 (copy_section): Likewise.
1436 (strip_main, copy_main): Handle -R.
1437 * binutils.texi, objcopy.1, strip.1: Document new options.
1441 * nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,
1442 so as not to conflict with the symvalue typedef in bfd.h.
1446 * nlmheader.y: Per current NetWare docs, accept a revision number
1447 of 0 and treat a revision number greater than 26 as 0.
1451 * objdump.c (objdump_print_address): Correct handling of end of
1452 symbols when looking for next symbol with a different value.
1456 * nm.c (numeric_forward): Treat undefined symbols as "less than"
1457 defined symbols with zero values. If numeric values are equal, or
1458 both symbols are undefined, sort alphabetically. Don't assume
1459 that the difference of two bfd_vma values will truncate to "int"
1460 and still have the same sign.
1461 (numeric_reverse): Call numeric_forward and negate the result.
1462 (print_symbol_info_bsd): For undefined symbols, print leading
1463 spaces equivalent to the width of a printed bfd_vma, rather than
1464 assuming that 8 will look right.
1468 * coffgrok.c (doit): Zero all fields of new structure.
1469 * srconv.c (sysroff_swap_*_out): Remove redundant trailing arg.
1470 * sysinfo.y: Generate sysroff_swap_*_out without requiring extra
1475 * nlmheader.y: Make "stack" and "stacksize" synonyms in the lexer
1476 rather than the parser.
1480 * config/mh-alphaosf, config/mh-apollo68v, config/mh-delta88:
1485 * objdump.c (slurp_dynamic_symtab): Try to get the dynamic symbols
1486 even if the bfd is not marked DYNAMIC. ELF executables are not
1487 marked DYNAMIC, but do have dynamic symbols.
1491 * coffgrok.c (do_where): Make data with no type 'int'.
1492 (do_define): Keep info on source file of a symbol.
1493 * coffgrok.h (coff_symbol): New field.
1494 * srconv.c (PROGRAM_VERSION): Now 1.3
1495 (wr_rl): Use external ref number for symbol.
1496 (wr_dus): Only keep one source file per debug unit.
1497 (wr_dln): Always emit line numbers for first source file,
1498 (wr_globals): Emit globals in the du of their owning source file.
1502 * nlmheader.y: Null terminate var_hdr->threadName.
1506 * Makefile.in (syslex.o, sysinfo.o): Permit C source files to be
1507 in $(srcdir), as they will be for FSF releases.
1511 * nlmconv.c (setup_sections): Preserve existing section flags when
1512 copying in flags from a new section.
1516 * objcopy.c: Include libiberty.h.
1517 (copy_file): If output_target is NULL, set it to the target of the
1522 * nlmconv.c (link_inputs): Fixed memory allocation bug.
1526 * configure.in: Change --with-targets to --enable-targets.
1530 * Makefile.in (sysinfo): Does not depend upon $(ADDL_LIBS).
1532 * nlmconv.c (powerpc_build_stubs): Don't generate the PowerPC
1533 NetWare custom header; no longer needed.
1534 (powerpc_mangle_relocs): Convert relocs against the uninitialized
1535 data section into relocs against the data section.
1537 * configure.in: Set nlmconv_defs to -DNLMCONV_cputype for all the
1538 netware targets. Write it into Makefile as NLMCONV_DEFS.
1539 * Makefile.in (nlmconv.o): Pass $(NLMCONV_DEFS) to $(CC).
1540 * nlmconv.c: Only compile code for specific CPU types if
1541 NLMCONV_cputype is defined.
1543 * nlmconv.c (main): Change uses of bfd_abs_section, etc., to use
1544 bfd_abs_section_ptr or bfd_is_abs_section, etc.
1545 (i386_mangle_relocs, alpha_mangle_relocs): Likewise.
1546 (powerpc_build_stubs): Likewise.
1547 * nm.c (filter_symbols, print_symbols): Likewise.
1548 * objcopy.c (filter_symbols): Likewise.
1549 (mark_symbols_used_in_relocations): Likewise.
1550 * objdump.c (remove_useless_symbols, dump_relocs): Likewise.
1551 * size.c (sysv_internal_printer): Likewise.
1555 * Makefile.in (MANPAGES): Remove $(DEMANGLER_PROG).
1556 (install): Install it explicitly, from build dir, not srcdir.
1560 * objdump.c: Don't include elf/internal.h.
1561 (bfd_elf_find_section): Don't declare.
1562 (read_section_stabs): No special handling for ELF. Always read
1567 * configure.in: Set UNDERSCORE in Makefile based on result of
1568 invoking config.bfd with a second argument of ``_''.
1569 * Makefile.in (underscore.c): Depend upon Makefile. Don't try to
1570 run $(CC) and $(NM), just use $(UNDERSCORE). Create via temporary
1572 (demangle.o): Remove target.
1573 ($(NM_PROG)): Don't depend upon demangle.o, and don't link against
1574 demangle.o. It's in libiberty anyhow.
1575 (cplus-dem.o): Don't depend upon demangle.o.
1576 * binutils.texi: Mention -n and --no-strip-underscores arguments
1581 * nm.c (long_options): Add --no-demangle to turn off --demangle,
1582 and --no-cplus for Linux compatibility.
1583 (usage): Mention --no-demangle.
1584 * binutils.texi: Document --no-demangle.
1588 * nm.c: HOST_64_BIT was renamed to BFD_HOST_64_BIT.
1590 * objcopy.c (copy_archive): Make the temporary directory in the
1591 same directory as the output BFD, since we may not have write
1592 permission on the current directory. Set the permissions of the
1593 new directory to 0700, not 0777.
1597 * configure.in: if this is an rs6000 (and we're not building for
1598 any other bfd targets) then build only nm (collect needs it on
1601 * Makefile.in: define TOOL_PROGS which the list of programes to
1602 install in $tooldir -- replaces a hard-coded list.
1606 * objdump.c (display_target_list): Remove unused local ok.
1610 * config/mh-alphaosf (CFLAGS): Don't specify both -g and -O;
1611 they're not compatible under native cc. Use -O1 instead.
1613 * Makefile.in (VERSION): Updated to cygnus-2.4.1.
1615 Changes from binutils-2.4 net release:
1617 * Makefile.in (MANPAGES): Use $(DEMANGLER_PROG).
1618 ($(DEMANGLER_PROG).1): Build from cxxfilt.man, using sed.
1619 * cxxfilt.man: Renamed from c++filt.1, replaced "c++filt" with
1620 magic token to be replaced by sed.
1624 * configure.bat: update for latest makefile.in
1628 * bucomm.c: Check ANSI_PROTOTYPES rather than __STDC__.
1632 * objcopy.c (copy_section): Set section size correctly if using
1637 * Makefile.in: Add rule for sysinfo.h
1641 * Makefile.in (SRCONV_PROG): Define.
1642 (PROGS): Use $(SRCONV_PROG) too.
1646 * Makefile.in (DISTSTUFF): Add sysinfo.c, syslex.c, in case
1647 someone configures with `targets=all'.
1648 (distclean): Remove y.*.
1649 (syslex.o): Depend on sysinfo.h.
1650 (sysinfo.c): Rename y.tab.h to sysinfo.h.
1651 (install-info): Don't try to install into $(infodir)/$(srcdir).
1652 * syslex.l: Include sysinfo.h, not y.tab.h.
1656 * syslex.l (yywrap): Define as function if not defined as a macro.
1658 * Makefile.in (objdump.o): Deleted special rule.
1659 * configure.in: Don't bother building ARCHDEFS variable for
1661 * objdump.c (ARCH_*): Deleted handling.
1662 (disassemble_data): Call `disassembler' from opcodes library.
1666 * Makefile.in (install): Correct handling of $(tooldir) and
1667 $(bindir) being on different devices.
1671 * sysdump.c (h8300, sh): Add declarations.
1675 * Makefile.in (syslex, sysinfo): Use CC_FOR_BUILD.
1676 * coffdump.c, coffgroc.c, coffgrog.h, srconv.c, sysdump.c,
1677 sysroff.info: Major changes.
1681 * objdump.c (print_section_stabs): Indicate the stab header symbol
1682 more clearly, print numbers of unrecognized stab n_type values.
1686 * nlmconv.c (copy_sections): Copy arelent pointers, not arelents.
1690 * Makefile.in (distclean): Remove $(PROGS) and underscore.c.
1694 * nlmconv.c (setup_sections): Remove special handling of .reginfo
1696 (copy_sections): Likewise.
1697 (alpha_mangle_relocs): Use bfd_ecoff_get_gp_value rather than the
1698 special ECOFF .reginfo section.
1700 * objcopy.c (copy_object): Call bfd_copy_private_bfd_data after
1701 copying everything else, to let it fiddle with the file in its
1704 * objdump.c: Include libiberty.h.
1705 (display_target_list): If a format fails, just go on to the next
1706 one. Check return value of bfd_set_format.
1707 (display_info_table): Likewise. Don't increment loop variable in
1708 for loop test, since that skips the first element.
1709 (display_target_tables): Rewrite loop for clarity. Ensure that it
1710 always prints at least one element.
1712 * nlmconv.c (main): Use CyGnUsEx rather than CyGnUsSeCs for
1713 sections header. Rename from cygnus_sections to cygnus_ext.
1717 * objdump.c (_DUMMY_NAME_): Don't define.
1718 (display_target_list): Use tmpnam to get a file name rather than
1719 using _DUMMY_NAME_. Unlink it when done.
1720 (display_info_table): Likewise.
1722 * nlmconv.c (secsec): New static variable.
1723 (main): Create .nlmsections section in output BFD. Store
1724 information about it in sections header.
1725 (setup_sections): Allocate space in sections header.
1726 (copy_sections): Copy zero sized sections. Put information about
1727 each section in the sections header.
1731 * nlmconv.c (powerpc_build_stubs): Take new outbfd argument.
1732 Change caller. Create custom header for new PowerPC NetWare
1735 * Makefile.in (nlmheader.o, nlmconv.o): Update dependencies.
1736 * nlmconv.c: Include bfd.h and libiberty.h with "", not <>.
1737 * nlmheader.y: Include bfd.h with "", not <>.
1741 * objdump.c: Do an ifdef on __GO32__, not unix.
1745 Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -R
1746 (--dynamic-reloc) arguments to objdump.
1747 * nm.c (dynamic): New static variable.
1748 (long_options): Added "dynamic".
1749 (usage): Mention -D and --dynamic.
1750 (main): Add D to getopt string. Handle -D by setting dynamic.
1751 (display_rel_file): If dynamic is non-zero, read dynamic symbols
1752 rather than normal symbols.
1753 * nm.1: Updated for -D (--dynamic) option.
1754 * objdump.c (dump_dynamic_symtab): New global variable.
1755 (dump_dynamic_reloc_info): New global variable.
1756 (dynsyms, dynsymcount): New global variables.
1757 (usage): Mention -R, -T, --dynamic-syms and --dynamic-reloc.
1758 (long_options): Added "dynamic-reloc" and "dynamic-syms".
1759 (slurp_symtab): If no symbols, return rather than exit.
1760 (slurp_dynamic_symtab): New function.
1761 (display_bfd): Handle dump_dynamic_symtab and
1762 dump_dynamic_reloc_info.
1763 (dump_symbols): Take new dynamic argument, indicating whether to
1764 display dynamic symbols.
1765 (dump_relocs): Move most printing into dump_reloc_set.
1766 (dump_dynamic_relocs): New function.
1767 (dump_reloc_set): New function, extracted from dump_relocs.
1768 (main): Add R and T to getopt string. Handle -T by setting
1769 dump_dynamic_symtab and -R by setting dump_dynamic_reloc_info.
1770 * objdump.1: Updated for -R (--dynamic-reloc) and -T
1771 (--dynamic-syms) options.
1772 * binutils.texi: Updated for new nm and objdump options.
1776 Update for recent BFD changes to symbol and reloc reading. Rename
1777 all uses of get_symtab_upper_bound to bfd_get_symtab_upper_bound.
1779 * coffgrok.c (symcount): Change to long.
1780 (do_sections_p1): Check for error return from
1781 bfd_get_reloc_upper_bound. Change relcount to long, and check for
1782 error from bfd_canonicalize_reloc.
1783 (coff_grok): Change storage to long. Check for error from
1784 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
1785 * nlmconv.c (main): Change symcount, newsymalloc, newsymcount, and
1786 i to long. Check for error from bfd_get_symtab_upper_bound and
1787 bfd_canonicalize_symtab.
1788 (copy_sections): Change reloc_size and reloc_count to long. Check
1789 for error from bfd_get_reloc_upper_bound and
1790 bfd_canonicalize_reloc.
1791 (mangle_relocs, i386_mangle_relocs, alpha_mangle_relocs): Change
1792 reloc_count_ptr argument to long *. Make corresponding changes to
1793 variables loaded from *reloc_count_ptr.
1794 * nm.c (display_rel_file): Change storage and symcount to long.
1795 Check for errors from bfd_get_symtab_upper_bound and
1796 bfd_canonicalize_symtab.
1797 * objcopy.c (filter_symbols): Change symcount, src_count and
1799 (copy_object): Change symcount to long. Pass another argument to
1800 fprintf. Check for errors from bfd_get_symtab_upper_bound and
1801 bfd_canonicalize_symtab.
1802 (copy_section): Change relcount to long. Check for errors from
1803 bfd_get_reloc_upper_bound and bfd_canonicalize_reloc.
1804 (mark_symbols_used_in_relocations): Change relcount and i to long.
1805 Check for errors form bfd_get_reloc_upper_bound and
1806 bfd_canonicalize_reloc.
1807 * objdump.c (storage): Remove global variable.
1808 (symcount): Changed to long.
1809 (slurp_symtab): New local variable storage. Check for errors from
1810 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
1811 (remove_useless_symbols): Change return value and count to long.
1812 (objdump_print_address): Change min, max, thisplace and i to long.
1813 (disassemble_data): Change i to long.
1814 (dump_symbols): Change count to long.
1815 (dump_relocs): Change relcount to long. Check for errors from
1816 bfd_ret_reloc_upper_bound and bfd_canonicalize_reloc.
1817 (display_info_table): Add casts when passing LONGEST_ARCH for
1822 * nm.c (display_archive): Close each archive element after it has
1824 * objdump.c (display_file): Likewise.
1828 * configure.in: Change error message to refer to bfd/config.bfd
1829 rather than bfd/configure.in.
1833 * More fixes for object formats which allow multiple sections
1835 * objcopy.c (setup_section): Make a new output section even if
1836 one already exists with the given name.
1837 (copy_section): Use isection->output_section rather than trying
1838 to look the output section up by its (possibly non-unique) name.
1840 * Makefile.in (install-info): Look for binutils.info in the
1841 current directory, then in $(srcdir). Don't use $<.
1845 * objdump.c (objdump_print_address): Make static. Declare with
1846 prototype. Change vardiff from int to bfd_signed_vma. Correct
1847 binary search termination condition. When looking for same
1848 section symbol in relocatable file, handle final symbol correctly.
1852 * Makefile.in: Avoid bug in hpux sed.
1854 * objcopy.c: Changes to keep it from stripping symbols used
1855 in output relocations.
1856 (mark_symbols_used_in_relocations): New function. Mark symbols
1857 used in output relocations with BSF_KEEP.
1858 (filter_symbols): Do not strip symbols marked with BSF_KEEP.
1859 (copy_object): Reorder actions. First setup sections, then
1860 build the output symbol table, then copy the section contents.
1864 * ar.c (write_archive): Allocate space for the null byte. From
1869 * Makefile.in: Built nm.new and strip.new to avoid problems with
1870 collect when . is in PATH.
1871 (STRIP_PROG): Change from strip to strip.new.
1872 (NM_PROG): Change from nm to nm.new.
1873 (install): Remove the .new when installing.
1877 * nlmconv.c (powerpc_build_stubs): Set BSF_DYNAMIC flag for each
1878 symbol for which we build a stub.
1879 (powerpc_mangle_relocs): Only reset TOC pointer for a call to a
1880 symbol with BSF_DYNAMIC flag set.
1884 * objcopy.c (filter_symbols): Use bfd_is_local_label to determine
1885 if a symbol represents a compiler-generated local label.
1886 (copy_object): Give the BFD backends a chance to copy any private
1887 bfd data from the input BFD to the output BFD.
1888 (setup_section): Give the BFD backends a chance to copy any private
1889 section data from the input section to the output section.
1893 * objcopy.c (mangle_section): Delete unused function.
1894 (setup_section): Set osection here instead of calling
1895 mangle section to do it.
1899 * ar.c (write_archive): Close inarch before unlinking it.
1903 * nlmconv.c (main): For PowerPC, call powerpc_build_stubs and
1904 powerpc_resolve_stubs. Use __GOT0, not __toc_start. Handle it if
1905 the start and end symbols are not in the text section.
1906 (struct powerpc_stub): New struct definition.
1907 (powerpc_stubs, powerpc_stub_insns): New static variables.
1908 (powerpc_initial_got_size): New static variable.
1909 (powerpc_build_stubs): New function.
1910 (powerpc_resolve_stubs): New function.
1911 (powerpc_mangle_relocs): Clear extraneous data in .got section.
1912 Rearrange reloc handling to handle ELF relocs that are not
1913 partial_inplace. Resolve PC relative relocs.
1917 * ar.c (move_members): Fix it so that the abi positional modifiers
1918 don't delete all archive members following the insert point.
1922 * coffgrok.[ch]: New files, understand coff objects.
1923 * coffdump.c: Uses coffgrok to dump out the debug info of a coff
1925 * sysroff.info: Description of a SYSROFF object file.
1926 * sysinfo.y, syslex.l: Parse info file, generate a reader, writer,
1927 header files and a printer.
1928 * srconv.c: Uses coffgrok.c and sysroff.info to convert a coff
1929 file to a SYSROFF file.
1933 * ar.c (do_quick_append): Pad with a genuine character 10,
1934 rather than whatever '\n' might happen to be.
1938 * nlmconv.c (main): Ignore debugging symbols when looking for
1939 special symbols by name.
1943 * nlmconv.c: Include libiberty.h.
1945 Support for PowerPC NetWare.
1946 * nlmconv.c (main): For PowerPC NetWare, automatically define the
1947 special symbols __toc_start.
1948 (select_output_format): Handle bfd_arch_powerpc.
1949 (mangle_relocs): Likewise.
1950 (powerpc_mangle_relocs): New function.
1954 * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
1955 size.c: Use bfd_get_error and bfd_set_error and new error names.
1959 * objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
1963 * objdump.c (disassemble_data): Handle bfd_arch_powerpc.
1967 * strings.c objdump.c nlmconv.c objcopy.c nm.c ar.c size.c (main):
1968 Call xmalloc_set_program_name.
1972 * objcopy.c (filter_bytes): Make MEMHUNK a char *, not PTR, so we
1973 can do arithmetic on it.
1977 * objdump.c (dump_section_stabs, read_section_stabs,
1978 print_section_stabs): Functions broken out of dump_stabs_1.
1979 Free the stabs and strings when done with them.
1983 * nlmconv.c (main): Use bfd_get_flavour instead of struct member.
1984 * ar.c (print_contents, extract_file), size.c
1985 (print_berkeley_format, print_sysv_format): Use bfd_get_filename and
1986 bfd_my_archive instead of dereferencing the structs directly.
1988 * ar.c: Use bfd_fatal and bfd_nonfatal instead of bfd_perror and exit.
1989 Indent. Remove DEFUNs.
1991 * nlmconv.c (main), objcopy.c (copy_file): Print matching formats
1993 * nm.c (display_file, display_archive), size.c (display_bfd):
1995 Print matching formats if there is an ambiguous match. Use
1996 bfd_nonfatal instead of hardcoded error message if nothing matches.
1998 * arsup.c, ar.c, objdump.c: Use bfd_get_filename instead of
2001 * nm.c (display_archive): New function, from code in display_file.
2002 (display_rel_file): Renamed from do_one_rel_file.
2005 (display_archive): New function from code in display_file.
2006 (display_file): Check bfd_close error return.
2008 * strings.c (strings_object_file): Check bfd_check_format
2011 * strings.c, objdump.c, size.c: Use bfd_nonfatal instead of bfd_perror.
2013 * bucomm.c: Delete references to exit_handler. It wasn't set
2014 anywhere, and now that we're using the libiberty xmalloc, it
2015 wouldn't always get called before exiting.
2016 (list_matching_formats): Function moved from objdump.c.
2017 * bucomm.h: Declare it.
2019 * objdump.c (disassemble_data): Move some variable decls closer to
2020 their use. Add some comments. Replace a nested block with a
2025 * objdump.c (display_target_list, display_info_table): Check that
2026 the bfd of the dummy output file is not null.
2030 * objcopy.c (filter_bytes): New function.
2031 (copy_section): Call it.
2032 (copy_options, copy_usage, copy_main): Add --byte option to
2033 activate it. Appropriate the -b option (which was an undocumented
2034 synonym for -F) for it, also. Add --interleave, -i option for
2036 (setup_section, copy_section, mangle_section): Renamed with no `s'
2038 * objcopy.1, binutils.texi: Document the new options.
2040 * objdump.c (display_target_tables, display_target_list):
2041 New functions broken out of display_info.
2042 Eliminate some magic constants. Use more meaningful variable names.
2043 (dump_bfd_header): New function broken out of display_bfd.
2044 (dump_section_header): New function broken out of dump_headers.
2045 (remove_useless_symbols): Don't shadow global variable name with
2047 (objdump_print_address): Fix backward test.
2051 * bucomm.c (print_arelt_descr): Change decl of `when' to time_t.
2052 * objdump.h: Removed.
2056 * objdump.c (display_file): Remove call to list_matching_formats.
2057 It would never be called.
2058 (list_matching_formats): Take an arg giving the list of matching
2060 (display_bfd): Pass the arg, and get it filled in by calling
2061 bfd_check_format_matches instead of bfd_check_format.
2062 (display_info, display_info_table): target_vector was renamed to
2065 * binutils.texi (objdump): Note some limitations of -h section
2070 * Makefile.in (MALLOC): Set to emptiness by default.
2071 (ALL_CFLAGS): Add and use.
2072 (arparse.h): Make it depend on arparse.y.
2073 * ar.c (libbfd.h): Don't require to be in ../bfd.
2074 * objdump.c (comp): Rename to compare_symbols.
2078 * objdump.c (list_matching_formats): If the file format is ambiguous,
2079 print the matching names so the user can choose one.
2080 (display_bfd): Call it.
2081 (display_file): Call it.
2085 * objdump.c (disassemble_data): Support bfd_arch_rs6000.
2089 * objdump.c (stab_name): Allocate dynamically.
2090 (stab_print): Use pointers to strings instead of char arrays.
2091 (dump_stabs): Change alloc and init of arrays appropriately.
2092 (dump_stabs_1): Always decide whether to print stab_name or
2093 the stab's type number, if unnamed.
2097 * objcopy.c (strip_main, copy_main): Don't clobber the input file
2100 * nlmconv.c (main): Warn about an attempt to use a shared library
2101 with uninitialized data.
2103 * nlmconv.c (setup_sections): Make sure that we align the
2104 output_offset of each input section appropriately.
2108 * objdump.c (dump_relocs): Don't crash if section name is NULL.
2112 * filemode.c (filemodestring): Commented out; not used.
2113 (mode_string): Use POSIX definitions.
2114 (ftypelet): Likewise.
2115 (rwx): Removed; no longer used.
2116 * bucomm.c: Include bucomm.h.
2117 (bfd_nonfatal, bfd_fatal): Argument is const.
2118 (fatal): Make __STDC__ version.
2119 * bucomm.h (mode_string): Declare.
2120 * Makefile.in (bucomm.o): Depend upon bucomm.h
2124 * bucomm.c (xmalloc, xrealloc): Deleted.
2125 * bucomm.h (xmalloc, xrealloc): Fix prototypes, to correspond to
2126 libiberty version of functions.
2130 * binutils.texi: Add a chapter summarizing the ways to select
2131 aspects of the target for each program.
2133 * objdump.c (long_options, usage): Add long equivalents for all
2134 remaining short options that lacked them.
2135 * binutils.texi objdump.1: Document them.
2137 * size.c (usage): Tweak usage message.
2138 * size.1: Add missing `=' in examples.
2140 * binutils.texi strip.1 objcopy.1 nlmconv.1 objcopy.c nlmconv.c:
2141 Use "--target=bfdname" as the option to select the BFD target,
2142 like nm and size already do.
2143 Reserve "--format=format" for textual output selection options, but
2144 for now keep old option names as obsolete for backward compatibility.
2146 * strings.c (main, strings_object_file, usage): Add --target option.
2147 * binutils.texi strings.1: Document it.
2151 * ar.c (main): Add \n in error message.
2156 * ar.c (main): Put parens around assignment used as truth value.
2157 * objcopy.c (strip_main): Remove unused variables. Return 0.
2158 (copy_main): Remove unused variables. Return 0.
2159 * objdump.c (display_bfd): Declare return value as void.
2160 (stab_print): Use "" instead of 0 to initialize array.
2161 (dump_stabs_1): Print vma using printf_vma.
2162 (display_info): Put parens around assignment used as truth value.
2163 * strings.c (print_strings): Cast printf arguments.
2165 * objcopy.c (copy_main): Use copy_options, not strip_options.
2167 * nlmheader.y (command): Warn about illegal date values.
2171 * bucomm.c bucomm.h: Run through indent. De-ansidecl-ify.
2172 (bfd_nonfatal): New function.
2173 (bfd_fatal): Call it.
2175 * objcopy.c (smart_rename): Do a copy if the dest file has
2176 multiple hard links. Remove source file on successful copy.
2177 Try to preserve mode and owner on successful rename.
2179 * objcopy.c: Run through indent. Clean up a bit.
2180 Make global variables static.
2181 Make {input,output}_{target,filename}, show_version local
2182 to various functions.
2183 New global variable `status' for exit status.
2184 (strip_main, copy_main): New functions with code from main.
2185 (nonfatal): New macro. Use it globally instead of bfd_perror and
2188 (copy_object): Call mangle_sections with bfd_map_over_sections.
2189 (mangle_sections): Adjust for new calling convention.
2193 * nlmheader.y (command): Accept MAP and FULLMAP without arguments.
2194 * nlmconv.c (main): Change error message for MAP and FULLMAP.
2198 * nlmconv.c (main): Warn about imported symbols that are not in
2199 the IMPORT list even if the IMPORT keyword is not used.
2201 * nlmconv.c (debug, unlink_on_exit): New static variables.
2202 (long_options): Add "debug" and "linker".
2203 (main): Handle -d and -l arguments. Make command line input and
2204 output files optional. Parse the command file before opening the
2205 BFD's, which requires storing more information in local variables.
2206 If INPUT names multiple files, link them together. Use OUTPUT for
2207 the output file name if not named on command line.
2208 (show_usage): Changed for new options.
2209 (link_inputs): New function to automatically invoke linker to
2210 handle multiple INPUT files.
2211 (choose_temp_base_try, choose_temp_base, pexecute): New functions,
2212 mostly copied from gcc/gcc.c.
2213 * nlmconv.h (input_files, output_file): Declare.
2214 * nlmheader.y (input_files, output_file): Define.
2215 (command): Support INPUT with a string_list argument. Support
2217 (string_list): Renamed from module_list.
2218 * Makefile.in (nlmconv.o): Define LD_NAME based on
2219 program_transform_name.
2223 * nlmheader.y (nlmheader_identify): New function. Use it to print
2224 the program name just once, instead of with every error message.
2228 * nlmconv.c (long_options): Changed --header-info to --header-file
2229 to match documentation and usage message.
2233 * objdump.c (dump_relocs): Avoid dereferencing a NULL sym_ptr_ptr
2238 * nlmconv.c (main): Change various types from bfd_size_type to
2239 size_t, since they have to be arguments to fread and fwrite.
2240 Change set from char * to unsigned char *.
2241 (select_output_format): Make mach argument unsigned. Handle
2243 (setup_sections): Don't copy the .reginfo section of an ECOFF
2244 file. Call bfd_set_reloc to initialize the relocation fields.
2245 (copy_sections): Don't copy the .reginfo section of an ECOFF file.
2246 Combine all relocs for a section.
2247 (mangle_relocs): Change type of relocs to permit specific
2248 functions to change it. Call alpha_mangle_relocs for alpha,
2249 default_mangle_relocs for other architectures.
2250 (default_mangle_relocs): New function. Adjust the address of all
2251 relocs by the output_offset.
2252 (i386_mangle_relocs): Change type of relocs argument. Cast length
2253 argument to memmove to size_t.
2254 (alpha_mangle_relocs): New function.
2258 * nlmconv.c (select_output_format): Use nlm32-sparc for
2263 * nlmconv.1: added man page
2264 * objcopy.1: fixed format errors
2268 * Makefile.in: Use CFLAGS as well as LDFLAGS when linking.
2272 * strings.1: Fix typo.
2276 * Makefile.in (DISTSTUFF): Build "info".
2277 (VERSION): Updated to cygnus-2.3.1; 2.3 has gone out.
2281 * objdump.c (dump_stabs): Handle stabs-in-som as implemented
2282 by the new BFD SOM assembler.
2286 * ar.1 c++filt.1 nm.1 objcopy.1 objdump.1 ranlib.1 size.1
2287 strings.1 strip.1: Replace \(em in NAME section with \- so
2288 makewhatis can grok it.
2292 * nlmconv.c (i386_mangle_relocs): Adjust reloc address by
2293 section output_offset.
2297 * binutils.texi: added nlmconv chapter
2301 * Makefile.in: Change RUNTESTFLAGS to RUNTEST_FLAGS
2305 * Makefile.in (distclean): Don't get rid of dvi or info files.
2309 * objcopy.c (S_ISLNK): Define as 0 if there's no S_IFLNK.
2313 * binutils.texi: Move objcopy docs into alphabetical order.
2315 * objdump.c: Use xmalloc instead of malloc.
2319 * objdump.c (info): Rename to formats_info.
2320 (dump_stabs_1): Better comments and formatting.
2324 * ar.c (main): Always create the archive when quick appending,
2325 even if no input files have been given.
2329 * nlmconv.c (main): Set sharedDebugRecordOffset and
2330 sharedDebugRecordCount fields in extended header.
2332 * nlmconv.c (main): Force moduleName field to upper case.
2336 * objcopy.c (main): Give a usage message if there are too many
2341 * Makefile.in (install-info): Rewrite to take advantage of VPATH,
2342 so FSF distributions (with info files in $(srcdir)) install
2344 (DISTSTUFF): Build nlmheader.c too.
2348 * ar.c (program_name): Don't define here.
2349 * objdump.c: Include "bucomm.h".
2350 (xmalloc): Don't declare here.
2351 (program_name): Don't define here.
2352 (program_version): Fixed type in declaration.
2353 * size.c: Include "bucomm.h".
2354 (program_name): Don't declare here.
2358 * objdump.c (fprintf): hide declaration in FPRINTF_ALREADY_DECLARED
2362 * nlmconv.c (i386_mangle_relocs): Resolve and remove PC relative
2363 relocs against defined symbols in the same section.
2367 * Makefile.in (binutils.dvi): use TEXIDIR to find texinfo.tex
2371 * objcopy.c (simple_copy, smart_rename): New functions.
2376 * Makefile.in (clean, distclean): Recurse into testsuite.
2380 * objcopy.c (setup_sections, copy_sections): If stripping, don't
2381 copy SEC_DEBUGGING sections.
2382 * objdump.c (dump_headers): Print SEC_DEBUGGING flag.
2384 * objdump.c (usage): Mention --stabs.
2386 * objcopy.c (copy_object): Copy all applicable file flags.
2387 (copy_file): Don't copy EXEC_P specially here.
2391 * nlmconv.c (main): Adjust data section size to correspond to bss
2392 alignment adjustment. Clear BSF_SECTION_SYM if symbol is moved to
2393 a different section. Use time_t for time variable.
2394 (setup_sections): Only put sections with contents in output NLM.
2395 (i386_mangle_relocs): No symbols are common at this point. Add
2396 casts to avoid warnings.
2400 * objdump.c: Made the --stabs option work for stabs-in-coff.
2401 (ELF_STAB_DISPLAY): Removed.
2402 (dump_elf_stabs): Renamed to dump_stabs, changed to run for
2403 any object file format.
2404 (dump_elf_stabs_1): Renamed to dump_stabs_1, added calls to
2405 generic BFD routines for non-ELF case, changed format of message
2406 for no-section-found case.
2407 (display_bfd): Always call dump_stabs if requested.
2408 (dump_data): Call bfd_section_size to get section size.
2412 * Makefile.in (install): Don't put strings in tooldir/bin.
2416 * nlmconv.c (total_bss_size): Removed.
2417 (main): Set the bss vma to always follow the data section. Move
2418 symbols into new sections, and adjust values by output_offset.
2419 (setup_sections): Don't copy all sections, but instead point all
2420 text sections to .text, all data sections to .data, and all bss
2422 (copy_sections): Adjust accordingly.
2426 Only build nlmconv if configured for a NetWare target.
2427 * configure.in: If we have some *-*-netware* target, or are using
2428 all targets, set BUILD_NLMCONV to $(NLMCONV_PROG) in Makefile.
2429 * Makefile.in (PROGS): Use $(BUILD_NLMCONV) rather than
2434 * objdump.c (ARCH_all): Define ARCH_hppa too.
2435 (dump_headers): Don't test for SEC_BALIGN if it's not defined by
2440 * nlmconv.c (main): Force creation of .bss section. Set up the
2441 sections before looking at the symbols. Move all common symbols
2442 into .bss section. Automatically define _edata and _end. Only
2443 export symbols in the export list, with multiple prefixes if
2444 necessary. Warn if no version. Always create extended header.
2445 Set date automatically if not already set.
2446 (setup_sections): Count size of bss sections.
2447 (mangle_relocs, i386_mangle_relocs): Accept section argument, and
2448 take reloc_count as a changeable pointer; changed callers.
2449 (i386_mangle_relocs): Remove PC relative relocs within a section,
2450 as they require no adjustment.
2451 * nlmheader.y: Fixed memory allocation throughout: token STRING is
2452 now allocated on the heap, and freed if not needed. Null
2453 terminated copyright message. Accept version with only two
2455 (symbol_list_opt): New nonterminal, either symbol_list or empty.
2456 (symbol_list): Use left recursion to avoid overflowing parser
2458 (yylex): Rearranged beginning of line check. Accept quoted
2459 strings using single quotes. End generic argument at comment
2460 character or parentheses.
2461 (string_list_append): Fixed.
2462 (string_list_append1): New function.
2464 * bucomm.h: The first argument to xrealloc is PTR, not char *.
2465 * bucomm.c (xrealloc): Use PTR rather than char *.
2466 * Makefile.in (objdump.o): Depend upon config.status to notice
2467 --with-targets changes.
2468 (nlmconv.o): Depend upon bucomm.h.
2472 * configure.in: Don't pass cpu to config.bfd.
2476 * Makefile.in ($(NM_PROG)): Depend on demangle.o.
2477 (demangle.o): New target.
2478 (cplus-dem.o): Depend on it, to force compilation order when doing
2481 * nm.c (print_symbol_info_{bsd,sysv,posix}): Take a bfd arg.
2482 (struct output_fns print_symbol_info): Ditto.
2483 (long_options, usage, main): Add -C --demangle option.
2484 (print_symname): New function, demangling if requested.
2485 (print_symbols, print_symbol_info_{bsd,sysv,posix}): Use it.
2489 * Makefile.in: Put CFLAGS last in compilation rules and omit from
2490 linking rules. Use ARCHDEFS to compile objdump.c.
2491 Update dependencies.
2492 * configure.in: Construct ARCHDEFS based on the BFD target makefile
2494 * objdump.c: Conditionalize calls to the print_insn_ARCH functions
2495 according to ARCHDEFS.
2499 * ar.c: Removed obsolete and non-functional GNU960 code.
2503 * size.c (berkeley_sum): New function.
2504 (bsssize, datasize, textsize): New global variables.
2505 (bss_section_name, data_section_name, text_section_name): Removed.
2506 (print_berkeley_format): Map berkeley_sum over all the sections,
2507 rather than only reporting sizes of specifically named sections.
2508 * Makefile.in ($(OBJDUMP_PROG)): Removed dependency on size.o.
2512 * nlmconv.c, nlmconv.h, nlmheader.y: New files for program to
2513 convert object files into NetWare Loadable Modules.
2514 * Makefile.in (NLMCONV_PROG): New macro, define to be nlmconv.
2515 (PROGS): Add NLMCONV_PROG.
2516 (nlmheader.c, nlmheader.o, nlmconv.o, $(NLMCONV_PROG)): New
2521 * Makefile.in: define MAKEOVERRIDES to an empty string
2525 * objcopy.c (copy_file): Make failures to process a file nonfatal.
2529 * nm.c: Add -B option, like --format=bsd.
2533 * objcopy.c (copy_file): If the file is neither an object nor an
2534 archive, give an error rather than returning success.
2538 * objdump.c (objdump_print_address): Prefer non-local symbols over
2539 local ones, and especially discriminate against debugging symbols.
2540 Also, for relocateable files, try to find a symbol in the current
2541 section, instead of picking one from some random section with a
2542 convenient value (read, section offset).
2543 (disassemble_data): Cast argument to malloc to size_t first.
2544 (dump_data): Likewise.
2545 (dump_relocs): If a single section name is specified, show relocs
2546 only for that section. Otherwise, silently omit sections without
2547 relocs. Format table nicely even if values are printed using 16
2548 digits instead of 8.
2552 * nm.c: Changes for final version of POSIX.2.
2553 (print_symbol_filename_{bsd,sysv,posix}): New functions.
2554 (formats): Add an element for a pointer to them.
2555 (print_symbols): Call it.
2556 (print_object_filename_posix, print_archive_member_posix): Produce
2557 output according to new POSIX.2 spec.
2559 * strings.c (print_strings): Handle STREAM being NULL.
2560 (strings_a_section): Pass a NULL.
2561 (main): Don't open /dev/null.
2565 * objdump.c (disassemble_data): Handle the m88k.
2566 (display_bfd): Use bfd_errmsg, rather than just claiming that the
2567 bfd is not an object file.
2571 * Makefile.in (TAGS): make work again by naming directories
2572 explicitly rather than depending on undefined macros.
2573 (INSTALL_XFORM): correct bad install target.
2577 * strings.c: Doc fixes.
2581 * Makefile.in: Note dependencies on bucomm.h.
2582 (cplus-dem.o): Link c++filt with version.o.
2584 * strings.c: Include bucomm.h and add prototypes to other decls.
2587 * bucomm.h: Declare xrealloc.
2589 * nm.c, objcopy.c, objdump.c, size.c, strings.c (main, usage): Add
2590 --help option. Put "GNU" in the version message.
2591 (usage): Take stream and exit status as args.
2592 (main): Pass new args to usage.
2596 * strings.c, strings.1: New files.
2597 * binutils.texi: Document strings.
2598 * Makefile.in: Add rules for it.
2602 * objdump.c: Use size-independent bfd elf section names.
2606 * objdump.c (objdump_print_address): Handle wide offsets by
2607 calling sprintf_vma.
2611 * objdump.c (syms2): Removed unused variable.
2612 * objdump.c (remove_useless_symbols): New function.
2613 * objdump.c (comp): Simplify.
2614 * objdump.c (dis-assemble_data): Make simpler and more
2615 efficient how we filter out useless symbols: Just filter
2616 BEFORE the sort (using remove_useless_symbols).
2617 * objdump.c (objdump_print_address): Simplify.
2618 Change output syntax to match gdb.
2622 * Makefile.in: canonicalize install.sh; for use within
2623 this directory (and subdirs)
2625 Mon Jun 14 12:13:22 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
2627 * Makefile.in (install, install-info): remove parentdir support,
2628 use INSTALL_XFORM; define INSTALL_XFORM
2632 * objcopy.c (copy_object): Fix bad size passed to xmalloc().
2636 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
2637 * configure.in: No longer need to configure to get sysdep.h.
2638 * objcopy.c (copy_object): Fix symbol table handling.
2642 * objcopy.c (filter_symbols): Cannot filter the symbols
2643 in place, because that confuses the relocs, so take separate
2644 parameter for output array.
2645 * objcopy.c (sympp): Make two variables: isympp and osympp.
2646 * objcopy.c (copy_object): Allocate separate array (osympp)
2647 for filtered symbols.
2649 Fri Jun 4 10:51:44 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2651 * Makefile.in: change recursion test to presence of a configured
2656 * Makefile.in (underscore.c): Hack the backquoted command so it
2657 doesn't cause Solaris make to bomb.
2661 * Makefile.in: added c++filt and objcopy to MANPAGES variable
2662 * .Sanitize: keep c++filt.1 and objcopy.1
2664 Thu Jun 3 00:32:52 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2666 * Makefile.in: rename LOADLIBES to EXTRALIBS
2670 * c++filt.1, objcopy.1: new man pages
2674 * Makefile.in (install): Also install ar and ranlib in
2675 $(tooldir)/bin; needed for building libgcc.a.
2676 * objdump.c (objdump_print_address): Fix the check
2677 "coincidental" label matches by dis-allowing undefined
2682 * biutils.texi: revised c++filt chapter
2686 * Makefile.in (FLAGS_TO_PASS): Pass down CC and CFLAGS.
2690 * objdump.c (slurp_symtab): Print warning for bad symbol table.
2691 (bfd_elf32_find_section, Elf32_Internal_Shdr): Updated
2692 declarations and uses.
2694 * Makefile.in (DISTSTUFF): Don't build binutils.mm.
2698 * nm.c: Add -f/--format, -P/--portability, -t/--radix options.
2699 Make global variables static.
2700 (main): Make -v like -n, not -V, and make -A like -o, for POSIX.2.
2701 (set_print_radix, set_output_format,
2702 print_{object_filename,archive_filename,archive_member,symbol_info}
2703 {bsd,sysv,posix}): New functions.
2704 (display_file, print_symbols): Call them.
2706 * ar.c: Improve error messages.
2708 * nm.c (main): Handle long options that just set a flag.
2710 * nm.c (main), ar.c (do_show_version), objcopy.c (main), size.c
2711 (main): Exit after printing the version number, per the GNU coding
2716 * README, Makefile.in: Minor updates for 2.2.
2720 * Makefile.in (underscore.c): Automatically generate
2721 (using nm) a file with the variable prepends_underscore.
2722 * Makefile.in (c++filt): Link underscore.o with cplus-dem.o
2723 so that initial underscores get removed iff appropriate.
2724 * binutils.texi: Preliminary documentation for c++filt.
2725 * Makefile.in, binutils.texi: Set to version 2.2.
2727 * NEWS: Mention copy->objcopy renaming and new c++filt program.
2731 * Makefile.in (cplus-dem.o, $(DEMANGLER_PROG)): Build the
2732 demangler via cplus-dem.o, rather than directly from the .c file.
2734 * objcopy.c: Renamed from copy.c, updated comments accordingly.
2735 * Makefile.in, binutils.texi: Renamed copy to objcopy.
2736 * is-strip.c, maybe-strip.c, not-strip.c: Updated comments for
2737 rename of copy to objcopy.
2741 * binutils.texi (strip, -v option): Fix typo.
2745 * Makefile.in (RUNTEST): Define.
2746 (FLAGS_TO_PASS): Pass down RUNTEST.
2750 * Makefile.in (DEMANGLER_PROG): Name it c++filt.
2751 (PROG): Also build and install COPY_PROG.
2755 * Makefile.in: Change definition of $(tooldir) to match FSF.
2759 * size.c (usage): Add missing options.
2760 (main): Clean up option parser.
2762 * objdump.c (usage): Add missing options.
2763 (display_file): Print program name before calling
2766 * nm.c (usage): Add missing options.
2767 (main): Clean up option parser.
2768 (display_file): Print program name before calling
2771 * copy.c (copy_usage, strip_usage): Add missing options.
2773 * ar.c (usage): New function.
2775 (open_inarch, do_quick_append): Print program name before calling
2780 * nm.c (main): Accept and ignore -A and -B for MIPS compatibility.
2784 * Makefile.in: Added FLAGS_TO_PASS so tests get run on freshly
2785 built binaries if they exist. (otherwise the path)
2789 * Makefile.in: Changed check target to use DejaGnu.
2793 * Makefile.in: Remove am29k-pinsn.c, i960-pinsn.c.
2794 objdump.c: a29k and i960 are `disassemble' not `print'.
2796 * objdump.c: Rename print_address to objdump_print_address
2797 and change parameters.
2798 (disassemble_data): Use objdump_print_address.
2802 * objdump.c (disassemble_data): print_insn_sparc is now a
2803 `disassemble' not a `print'.
2804 Makefile.in: Remove sparc-pinsn.c (now in libopcodes.a).
2806 * objdump.c (disassemble_data): Use new read_memory_func stuff.
2810 * objdump.c (fprintf): Declaration of variadic function had better
2811 be a prototype for ANSI C systems.
2813 Mon Mar 22 23:19:46 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2815 * Makefile.in: rename test-install to install-check
2819 * objdump.c (disassemble_data): Add H8500.
2823 * objdump.c (usage): Mention long options.
2827 * nm.c: Modify behavior of -o flag for archives to match
2828 BSD4.4 and Sunos 4: Prefix archive name before each line.
2830 * m68k-pinsn.c: Removed. Subsumed by ../opcodes/m68k-dis.c.
2831 * i386-pinsn.c: Removed. Subsumed by ../opcodes/i386-dis.c.
2832 * Makefile.in: Adjust accordingly.
2833 * objdump.c: Support new-style disassemblers (ones that use
2834 the interface of ../include/dis-asm.h).
2838 * Makefile.in: When making tar file, remove texinfo/*,
2839 except for texinfo/texinfo.tex.
2840 * ardup.c: Add extern declaration of strdup.
2841 * Makefile.in (testsuite): Add 'else true' since otherwise
2842 Ultrix /bin/sh complains.
2846 * Makefile.in: Set VERSION to 2.1.
2847 * README, NEWS: Updates.
2848 * nm.c: Add -v as a synonym for -V.
2852 * configure.in: added testsuite to configdirs.
2853 * Makefile.in: added support for building testsuite.
2857 * objdump.c (disassemble_data): Print function names when
2858 given by bfd_find_nearest_line. If not - still print
2863 * binutils/testsuite: made modifications to testcases, etc., to allow
2864 them to work properly given the reorganization of deja-gnu and the
2865 relocation of the testcases from deja-gnu to a "tool" subdirectory.
2869 * objdump.c (dump_data): Free up section contents each time
2874 * binutils/testsuite: Initial creation of binutils/testsuite.
2875 Migrated dejagnu testcases and support files for testing nm to
2876 binutils/testsuite from deja-gnu. These files were moved "as is"
2877 with no modifications. This migration is part of a major overhaul
2878 of dejagnu. The modifications to these testcases, etc., which
2879 will allow them to work with the new version of dejagnu will be
2880 made in a future update.
2884 * Makefile.in (LIBIBERTY_SRC_DIR, LIBIBERTY_BIN_DIR): New macros.
2885 * Makefile.in (LIBIBERTY): Use LIBIBERTY_BIN_DIR.
2886 * Makefile.in (DEMANGLER_PROG): New program to build. Add macro
2888 * Makefile.in (PROGS): Add DEMANGLER_PROG.
2892 * copy.c, nm.c, objdump.c, size.c: Use new bfd_is_com_section
2893 macro rather than checking for equality to bfd_com_section.
2897 * objdump.c (disassemble_data): Fix code to find first useless
2902 * objdump.c (disassemble_data): Use mips_print_insn for MIPS.
2903 Don't core dump if bfd_find_nearest_line returns false.
2907 * objdump.c (disassemble_data): know how to disassemble z8000s
2912 * arsup.h (interactive), bucomm.h (program_name): Prefix
2913 with 'extern', to avoid warnings from some compilers.
2917 * arparse.y: fix unnecessary shift/reduce
2921 * Makefile.in: Make check depend on all.
2922 * Makefile.in (distclean): Remove sysdep.h.
2923 * size.c: Use %u format where appropriate.
2924 * objdump.c: Standardize: L_SET -> SEEK_SET.
2925 * objdump.c: Use new macro bfd_asymbol_bfd.
2926 * configure.in: Allow std-host as the default ${mys_host}.
2928 Thu Dec 17 19:38:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2930 * Makefile.in: added dvi target, define and use TEXI2DVI
2934 * Makefile.in (dist): Fix permissions before release.
2935 * size.c: Use bfd_size_type (and long) where appropriate.
2936 * ar.c: Make writing a map the default, to be compatible
2937 with SYSV and Posix.2. Remove some bogus kludges that
2938 handled __.SYMDEF directly.
2941 Mon Nov 9 13:36:53 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2943 * Makefile.in: flex no longer needs the -S flag
2945 Sat Nov 7 15:06:13 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2947 * ar.c (extract_file): utime needs a pointer to a utimbuf
2949 * Makefile.in: handle -I includes better, adding $(BASEDIR)/bfd to
2950 the list (since some of the bfd/hosts/*.h files include other
2951 files from that directory)
2955 * i960-pinsn.c (MEM_MAX, MEM_SIZ): Set upper bound properly.
2959 Clean up some old BFD ansification macros.
2961 * arsup.h, bucomm.h, objdump.h: Remove EXFUN from binutils.
2962 It still remains as a local macro in gmalloc.c, which is derived
2963 from some other copy of GNU Malloc somewhere (FIXME).
2965 * ar.c, objdump.c, size.c: Replace EXFUN with PROTO. Make static
2967 * arsup.h: Declare extract_files.
2971 * ar.c (extract_file): instead of checking USG: if POSIX_UTIME,
2972 use utime and utimbuf structure, otherwise if USE_UTIME use utime
2973 and array of two longs, otherwise use utimes.
2977 * binutils.tex: Document yesterday's changes to strip and copy.
2981 * copy.c: Re-do command-line parsing to use getopt_long().
2982 Add long option names. Re-think option letters to be more
2984 * copy.c: New function filter_symbols() for stripping only
2985 debug-symbols and/or local symbols. Use these to support
2986 the previously-missing options of the old FSF strip.
2990 * configure.in (host): Use ${srcdir}/../bfd/configure.host rather
2991 than repeating a copy of it here.
2995 * copy.c (main): Even if is_strip, accept -d argument indicating
2996 alternate output format. Needed by gdb for Nindy.
2998 * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
3002 * binutils.texi: added documentation for "copy"
3004 Tue Oct 6 14:22:56 1992 Per Bothner (bothner at PersSony)
3006 * Makefile.in (*clean rules): Some cleaning up.
3007 * Makefile.in (dist): Make diststuff in gprof for a dist.
3009 * ar.c (do_show_version): New function.
3010 * ar.c (main): Fix so "ar -V" works.
3012 Thu Oct 1 22:44:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3014 * configure.in: now uses the cpu-vendor-os triple instead of
3019 * i960-pinsn.c: Change bzero to memset.
3020 * sparc-pinsn.c: Change index to strchr.
3024 * m68k-pinsn (print_insn_arg, fetch_arg): added support for
3025 operands to memory management instructions, from WRS.
3029 * Makefile.in (install): if $(tooldir) exists, install nm and
3030 strip in $(tooldir)/bin.
3034 * Makefile.in: Let's call it version 2.0.
3038 * Makefile.in: Bump to version 0.98.
3039 * TODO, README: Minor updates.
3041 * Makefile.in: Added mostlyclean, distclean rules,
3042 and cleaned up clean, realclean.
3046 * Makefile.in: map program names through program_transform_name
3051 * Makefile.in: Bump to versions 1.97.90.
3052 * cplus-dem.c: Removed. Was nowhere used - and if some
3053 programs are changed to to demangling should now use the
3054 versions in libiberty.
3058 * configure.in: add we32k
3062 * ar.c (map_over_members): if the element of the archive has a
3063 null name, fill it in.
3065 * nm.c (do_one_rel_file): only warn if a bfd's flags say there
3066 will be symbols and there aren't any.
3070 * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
3074 * nm.c objdump.c: Added support for a +version (-V)
3075 to print the version number.
3077 * ar.c, copy.c: Added support for a -V option to print
3082 * config/mh-apollo68v: removed -g from CC definition.
3084 * Makefile.in: always create installation directories.
3088 * m68k-pinsn.c: Minor fix in style of output (don't use
3089 range to indicate floating point control registers).
3093 * ar.c (main): Don't *always* set the verbose flag!
3097 * copy.c: When is_strip (because it is invoked as the strip
3098 program), follow traditional argv processing:
3099 'strip file1 file2' now strips file1 and file2, rather
3100 than stripping file1 (as input), leaving output in file2.
3104 * objdump.c (display_info, display_info_table): Call
3105 bfd_set_format() on dummy bfd before using it (twice).
3106 * ar.c: Make sure archive is created on command 'r'
3107 even when no elements are inserted. (Clean up and
3108 simplify some non-working related code.)
3112 * configure.in: hppa support doesn't assume hp OS (from sef).
3114 Sat Jul 18 14:35:22 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3116 * configure.in: recognize hppa hosts (bsd & hpux), error messages
3117 to stderr, not stdout
3121 * ar.1, binutils.texi, i960-pinsn.c, nm.1, objdump.1, ranlib.1,
3122 size.1, sparc-pinsn.c, strip.1: removed rcsid's.
3126 * Makefile.dos: removed rcsid.
3130 * objdump.c (display_bfd): print state of BFD_IS_RELAXABLE too
3134 * Makefile.in: Add program_suffix (parallel to program_prefix)
3136 Thu Jun 25 04:52:45 1992 John Gilmore (gnu at cygnus.com)
3138 * nm.c (sorters): Lint. Remove excess whitespace.
3142 * nm.c (valueof macro): Add missing parentheses.
3143 (Their lack screwed up numeric_forward().)
3145 Sun Jun 14 10:33:27 1992 John Gilmore (gnu at cygnus.com)
3147 * objdump.c (dump_elf_stabs): Also dump .stab.index and
3148 .stab.excl sections.
3149 (dump_elf_stabs_1): Split out main body of old dump_elf_stabs.
3150 * objdump.1, binutils.texi: Document new sections dumped.
3152 Fri Jun 12 22:23:35 1992 John Gilmore (gnu at cygnus.com)
3154 * size.c, objdump.c, bucomm.c: Lint.
3156 Thu Jun 11 01:19:06 1992 John Gilmore (gnu at cygnus.com)
3158 * objdump.c (dump_elf_stabs): New feature: --stabs prints out a
3159 .stab section from an ELF file. Installed under #ifdef
3160 ELF_STAB_DISPLAY so it can be easily disabled, since it requires
3161 bfd-internals header files and such.
3162 * objdump.1, binutils.texi: Update for --stabs. Also fix
3163 objdump's doc to use -- rather than + for long options.
3164 (FIXME: Not yet fixed everywhere in binutils.texinfo.)
3168 * objdump.c(display_info), patches from
3174 * objdump.c: Add another enum->int cast, for the sake of
3175 old compilers (such as PCC).
3179 * arlex.l: Don't include <sysdep.h> (unneeded conflicts).
3180 Add declaration of strdup().
3184 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
3185 rules, since these are used when building a distribution.
3186 * Makefile.in (arlex.c): Don't re-direct output, since that
3187 leaves a bogus output files if it fails.
3189 * arlex.l: Make work with lex, for what it's worth.
3190 * Makefile.in: Better lex support.
3191 * Makefile.in (dist): Generate flex and bison outputs
3196 * Makefile.in: get BISON definition right.
3200 * sanity.sh: default TMPDIR to ".".
3204 * binutils.texi: add doc for ar command language.
3208 * arparse.y: make END call ar_end
3209 * arsup.c (ar_end): added, deletes temp file if archive session
3215 * Makefile.in: use bison & flex from ../ if they exist. Also,
3218 * sanity.sh: remove temporary directory when finished.
3222 * Makefile.in: Bump to version 1.97.
3223 * ar.c: Declare errno for machines that need it.
3227 * objdump.c (display_info): Handle error cases without coredump.
3228 Close the dummy temporary file we open in the loop.
3229 * Makefile.in (arsup.o): Add kludge to build with Sun Make.
3233 * Makefile.in: added test-install target.
3235 * sanity.sh: new file.
3237 * Makefile.in: use sanity test on make check.
3241 * Makefile.in: rework CFLAGS so that they can be passed on the
3242 command line to make. Remove MINUS_G. Default CFLAGS to -g.
3246 * arsup.c, arsup.h, arparse.y, arlex.l: support for archive
3251 * Makefile.in: added check target.
3255 * Makefile.in: added clean-info target.
3259 * Makefile.in: remove $(COPY_PROG) from PROGS. It shouldn't be
3260 installed. added tooldir and program_prefix.
3264 * Makefile.in, configure.in: removed traces of namesubdir,
3265 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
3266 copyrights to '92, changed some from Cygnus to FSF.
3268 Sun Feb 16 12:53:02 1992 Per Bothner (bothner at cygnus.com)
3270 * Makefile.in: Bump version to 1.96, and remove -beta
3271 suffix from distribution name.
3272 * m68k-pinsn.c: New macro COERCE_SIGNED_CHAR to extract
3273 the signed value of a character (even if chars are unsigned).
3274 * sparc-pinsn.c: Add new operand types.
3276 Thu Feb 6 12:14:19 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3278 * objdump.c (disassemble_data): don't print a section's contents
3279 if it's not loadable (eg bss)
3281 Tue Jan 28 11:11:06 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3283 * m68k-pinsn.c (print_insn_arg): fixed so that -ve branch
3284 displacements don't get printed as large +ve ones.
3286 Fri Jan 24 14:47:53 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3288 * copy.c, nm.c, objdump.c, size.c : changed to use the
3292 Mon Dec 30 18:34:41 1991 Per Bothner (bothner at cygnus.com)
3294 * bucomm.c (print_arelt_descr): Tweek the output format
3295 so that 'ar tv' output follows Posix 1003.2/D11.
3296 Output is now also identical to Sun's (except __.SYMDEF).
3298 Mon Dec 30 06:09:53 1991 John Gilmore (gnu at cygnus.com)
3300 * Makefile.in: Make `make' output more readable.
3302 Wed Dec 18 15:04:45 1991 Per Bothner (bothner at cygnus.com)
3304 * Makefile.in: Bump to version 1.94.
3306 Wed Dec 11 16:48:09 1991 Steve Chamberlain (sac at cygnus.com)
3308 * ar.c: added "b" to fopens for dos
3309 * configdj.bat, makefile.dos new files from DJ
3311 Tue Dec 10 04:07:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
3313 * Makefile.in: infodir belongs in datadir.
3315 Sat Dec 7 17:09:37 1991 Steve Chamberlain (sac at rtl.cygnus.com)
3317 * bucomm.h: created to hold prototypes of bucomm.c
3318 * objdump.h: created to hold prototyes of objdump.c
3319 * am29k-pinsn.c: include objdump.h
3320 * ar.c: include bucomm.h, get ar.h from the right place and
3322 * bucomm.c: defunize bfd_fatal
3323 * copy.c: include bucomm.h, lint.
3324 * i960-pinsn.h: include bucomm.h
3325 * m68k-pinsn.h: lint
3326 * nm.c: include bucomm.h, lint
3328 * sparc-pinsn.c: include objdump.h
3332 Fri Dec 6 23:02:14 1991 K. Richard Pixley (rich at rtl.cygnus.com)
3334 * Makefile.in: added standards.text support. install using
3335 INSTALL_PROGRAM and INSTALL_DATA.
3337 * configure.in: configure now does all of it's work from objdir so
3338 make file existence tests against ${srcdir}.
3340 Thu Dec 5 22:46:22 1991 K. Richard Pixley (rich at rtl.cygnus.com)
3342 * Makefile.in: idestdir and ddestdir go away. Added copyrights
3343 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
3344 and mandir now keyed off datadir by default.
3346 Wed Dec 4 22:42:03 1991 Per Bothner (bothner at cygnus.com)
3348 * Makefile.in: Bump to version 1.93.
3349 * Makefile.in: Add make-strip.o:maybe-strip.c dependency
3350 for make versions that provide half-baked VPATH-support (e.g. Sun's).
3351 * size.c: Improvements suggested by
3353 - Don't emit (Berkeley) headers if no files were found.
3354 - Return a non-zero return code on failure.
3356 Sat Nov 30 21:34:19 1991 Steve Chamberlain (sac at rtl.cygnus.com)
3358 Changes due to include file renaming:
3359 * am29k-pinsn.c: a29k-opcode.h -> opcode/a29k.h
3360 * sparc-pinsn.c: sparc-opcode.h -> opcode/sparc.h
3361 * m68k-pinsn.c: m68k-opcode.h -> opcode/m68k.h
3362 * nm.c: stab.gnu.h -> aout/stab_gnu.h
3364 Tue Nov 19 19:20:43 1991 Per Bothner (bothner at cygnus.com)
3366 * README: Mention MINIMIZE flag for bfd's make.
3368 Mon Nov 18 12:05:37 1991 Per Bothner (bothner at cygnus.com)
3370 * README: Various improvements.
3372 Sun Nov 17 23:40:59 1991 Per Bothner (bothner at cygnus.com)
3374 * Makefile.in: Bump to version 1.92.
3375 * version.c, Makefile.in: Get version string from Makefile.
3376 * copy.c, is-strip.c, not-strip.c, maybe-strip.c, Makefile.in:
3377 Make the same change that we earlier did for ar/ranlib:
3378 Generate two different binaries for strip and copy and use
3379 a global variable with different values to distinguish
3380 ostrip from copy. (-1 means to use argv[0] to decide,
3381 so you can get the old behavior, but it is no longer the default).
3382 * copy.c (copy_file): Set EXEC_P of output bfd if input is so.
3383 * copy.c (main): If is_strip==-1, compare last 5 chars
3384 of argv[0], not the whole path.
3385 * copy.c (main): Return 0, not 1.
3386 * copy.c (setup_sections): Fix due to change in bfd_make_section
3387 now failing if asked for a duplicate section.
3388 * strip.c, ostrip.c: Removed obsolete files.
3389 * ar.c, not-ranlib.c, maybe-ranlib.c:
3390 Change encoding of is_ranlib variable to be consistent
3391 with is_strip for strip.copy (i.e -1 to means use argv[0]).
3393 Thu Nov 14 20:11:02 1991 Per Bothner (bothner at cygnus.com)
3395 * version.c (program_version): Update to version 1.92.
3397 Tue Nov 12 16:17:53 1991 Per Bothner (bothner at cygnus.com)
3399 * ar.c (get_pos_bfd): Previous fix was missing a "break".
3401 Thu Nov 7 08:55:56 1991 Steve Chamberlain (sac at cygnus.com)
3403 * am29k-pinsn.c: Fixed bug in mtacc, dmac and fmac instruction
3404 encodings. (Thaks to David Wood)
3406 Sun Nov 3 14:50:23 1991 Per Bothner (bothner at cygnus.com)
3408 * Makefile.in ($(DIST_NAME).tar.Z), TODO: Various fixes.
3409 * ar.c (get_pos_bfd): Fix to handling of before/after
3410 positioning options.
3411 * bucomm.c (fatal): MISSING_VFPRINTF is no longer an issue,
3412 since libiberty contains vfprintf etc if otherwise missing.
3413 * m68k-pinsn.c (print_insn_arg): Support BB/BW/BL
3414 type operands, as used by branch instructions.
3415 * nm.c: Delegate printing of symbols to BFD,
3416 by using bfd_print_symbol to do the formatting.
3418 Mon Oct 28 11:20:47 1991 Steve Chamberlain (steve at cygnus.com)
3420 * ar.c (write_archive.c): added unlink before rename since some
3421 systems can't rename onto an existant file.
3423 Mon Oct 21 09:47:23 1991 Steve Chamberlain (steve at rtl.cygnus.com)
3425 * nm.c: now doesn't crash if a symbol with no section and no
3428 Thu Oct 17 15:25:50 1991 Per Bothner (bothner at cygnus.com)
3430 * Makefile.in, version.c: Bump to version 1.91.
3432 Wed Oct 16 11:45:36 1991 Per Bothner (bothner at cygnus.com)
3434 * Makefile.in, ar.c, bucomm.c, copy.c, cplus-dem.c, filemode.c,
3435 i960-pinsn.c, m68k-pinsn.c, nm.c, objdump.c, size.c, sparc-pinsn.c,
3436 * strip.c: Add or update Copyright notice.
3437 * TODO: Add note on 'nm -a'.
3438 * version.c: Update version number to 1.90.
3439 * Makefile.in: Fix making of documentation for dist.
3441 Tue Oct 15 00:17:17 1991 Per Bothner (bothner at cygnus.com)
3444 * Makefile.in: New kludgy rules for making a tarfile.
3445 * Makefile.in: Fix bindir path.
3447 Mon Oct 14 17:34:29 1991 Roland H. Pesch (pesch at cygnus.com)
3449 * Makefile.in: add targets binutils.mm, binutils.me
3451 Fri Oct 11 22:44:21 1991 John Gilmore (gnu at cygnus.com)
3453 * Makefile.in: Avoid Sun Make VPATH bugs by adding dependencies.
3455 Fri Oct 11 12:51:33 1991 Roland H. Pesch (pesch at cygnus.com)
3457 * Makefile.in: add target "binutils.ms"
3459 * binutils.texinfo: minor restructuring for texi2roff comfort.
3461 Fri Oct 11 04:12:28 1991 John Gilmore (gnu at cygnus.com)
3463 Restructure configuration scheme for bfd, binutils, ld.
3465 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
3466 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
3467 Change some config names to match other dirs.
3468 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
3470 * Makefile.in: Use -I. to get sysdep.h.
3472 Wed Oct 9 22:42:56 1991 Per Bothner (bothner at cygnus.com)
3474 * nm.c (print_symbols): Handle NULL name field of symbol.
3475 * Makefile.in: Removed spurious comment.
3477 Tue Oct 8 16:55:03 1991 Roland H. Pesch (pesch at cygnus.com)
3479 * binutils.texinfo: minor typos, phrasing, formatting fixes.
3481 Tue Oct 8 15:13:20 1991 Per Bothner (bothner at cygnus.com)
3483 * configure.in: Get host file from ../bfd/config, not config.
3484 * config/*: Remove config directory and its files.
3486 Tue Oct 8 13:58:59 1991 Roland H. Pesch (pesch at cygnus.com)
3488 * Makefile.in: new targets binutils.dvi, binutils.info
3490 * binutils.texinfo: remove most remaining FIXME's, delete
3491 references to __.SYMDEF by name
3494 Tue Oct 8 10:23:44 1991 Steve Chamberlain (steve at cygnus.com)
3496 * objdump.c (print_address) Print addresses nicely.
3498 Mon Oct 7 11:31:05 1991 Per Bothner (bothner at cygnus.com)
3500 * ar.c, Makefile.in, new files {is,not,maybe}-ranlib.c:
3501 Make two different binaries for ar and ranlib, instead of
3502 distinguishing them at run time using argv[0].
3503 (Old behavior is still available if you "make ar_with_ranlib",
3504 but it is not the default.)
3505 * ranlib.sh (new): An alternative one-line
3506 shell implementation of ranlib.
3508 Fri Oct 4 21:49:44 1991 John Gilmore (gnu at cygnus.com)
3510 * objdump.c: Cope with renames of a few BFD types & enums.
3512 Fri Oct 4 19:08:09 1991 Roland H. Pesch (pesch at cygnus.com)
3514 * binutils.texinfo: add new file (rudimentary docn)
3516 Mon Sep 30 12:30:39 1991 Per Bothner (bothner at cygnus.com)
3518 * config/hmake-news: Add new file (for Sony NEWSOS3).
3519 * bucomm.c (fatal): Conditionally compile fatal() depending on
3520 MISSING_VFPRINTF, and don't confuse the issue with NO_VARARGS.
3521 * objdump.c (dump_headers): Trivial output format change.
3522 * objdump.c (display_info): Loop over integers, not enums,
3523 to appease old compilers.
3525 Mon May 20 16:14:07 1991 Steve Chamberlain (steve at cygint.cygnus.com)
3527 *objdump.c *nm.c *copy.c :hanged some types to work with 64 bit object files
3529 Thu May 16 16:06:55 1991 Steve Chamberlain (steve at cygint.cygnus.com)
3531 * objdump.c (print_address): Make disasembled output more
3532 consistent with gdb and as: Add 0x when printing hex.
3533 Don't print extra leading zeros.
3534 Attempt to not print "filename.o".
3535 * objdump.c: Add some enum-to-int casts to accomodate old compilers.
3538 Fri May 3 22:21:44 1991 John Gilmore (gnu at cygint.cygnus.com)
3540 * copy.c: Change =& constructs to = &, since they confuse older
3548 version-control: never