3 * strings.c (main): Exit with zero status if no files are given
4 and standard input is read.
8 * mpw-config.in: Calculate underscore and put into makefile
9 fragment, generate config.h.
10 * mpw-make.sed: New file, sed commands to edit Unix makefile
12 * mpw-make.in: Remove.
13 * mac-binutils.r: New file, Mac resources.
17 * dlltool.c: (gen_exp_file): Always emit a .reloc section if
21 (gen_lib_file): Use imp_name_lab.
22 (main): Initialize imp_name_lab.
26 * configure.in: Call AC_HEADER_SYS_WAIT.
29 * dlltool.c: Include "libiberty.h" and "bucomm.h". Don't include
30 <stdio.h>, <stdlib.h>, or <string.h>. Don't include <wait.h>.
31 Include <sys/types.h>. Use HAVE_SYS_WAIT_H to control whether to
32 include <sys/wait.h> or define the wait macros by hand. Don't
34 (gen_lib_file): Don't assume that sprintf returns the number of
35 characters; use strlen instead.
39 * objdump.c (disassemble_data): Don't use the old BFD based
40 disassembler interface. Make info a const pointer.
44 * objdump.c (start_address): New variable.
45 (stop_address): New variable.
46 (usage): Mention --start-address and --stop-address.
47 (OPTION_START_ADDRESS, OPTION_STOP_ADDRESS): Define.
48 (long_options): Add "start-address" and "stop-address".
49 (disassemble_data): Handle start_address and stop_address.
50 (dump_data, dump_reloc_set): Likewise.
51 (main): Don't set seenflag for -l. Handle OPTION_START_ADDRESS
52 and OPTION_STOP_ADDRESS.
53 * objcopy.c (parse_vma): Move to bucomm.c.
54 * bucomm.c (parse_vma): New function, moved in from objcopy.c.
55 * bucomm.h (parse_vma): Declare.
56 * binutils.texi, objdump.1: Document new objdump options.
60 * Makefile.in (maintainer-clean): New target.
62 * ar.c (replace_members): Don't call write_archive if nothing
65 * objdump.c (disassemble_data): Add casts to avoid gcc warnings.
69 * config.in: Rename from config.h.in.
70 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
71 Check for config.h:config.in when creating stamp-h.
73 * Makefile.in (stamp-h): Depend upon config.in rather than
74 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
75 calling config.status.
77 * Makefile.in (distclean): Remove config.h, stamp-h, and
80 * nm.c (value_format): Initialize based on BFD64 and
82 (print_radix): New static variable.
83 (set_print_radix): Set print_radix. Adjust changes to
85 (print_value): New static function, to print 64 bit octal and
86 decimal values correctly.
87 (print_symbol_info_bsd): Check BFD64, not BFD_HOST_64_BIT. Use
89 (print_symbol_info_sysv): Use print_value.
90 (print_symbol_info_posix): Likewise.
94 * Makefile.in (*.o): Remove incorrect dependencies on
95 $(BFDDIR)/hosts/std-host.h.
97 * Makefile.in (INSTALL_DATA): Add -m 644.
98 (INSTALL_XFORM1): Likewise.
99 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@ rather than $(CC).
100 (mostlyclean): Remove config.log.
101 (distclean): Remove config.cache.
103 * configure.in: Call BFD_CC_FOR_BUILD and BFD_BINARY_FOPEN.
104 * configure: Rebuild.
108 * configure.in: Rewrite to use autoconf.
109 * aclocal.m4: New file.
110 * configure: New file, built by autoconf.
111 * acconfig.h: New file.
112 * config.h.in: New file, built by autoheader.
113 * Makefile.in: Various changes for new configure script. Also:
114 (PROGS): Remove $(SYSINFO_PROG).
115 (ALL_CFLAGS): Remove $(TDEFINES).
116 (version.o): Use $(ALL_CFLAGS).
117 (cplus-dem.o, dlltool.o, nlmconv.o): Likewise.
118 (sysdump.o): Depend upon bucomm.h and config.h.
119 (srconv.o, arsup.o, strings.o): Depend upon config.h.
120 (filemode.o): Don't depend upon ../bfd/sysdep.h.
121 (bucomm.o): Depend upon config.h, not ../bfd/sysdep.h.
122 (size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise.
123 (nlmheader.o, nlmconv.o): Likewise.
124 (distclean): Don't remove sysdep.h.
125 * bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h".
126 Include "fopen-same.h" or "fopen-bin.h", based on
127 USE_BINARY_FOPEN. Include <errno.h>, and declare errno if it is
128 not a macro. Include <unistd.h>, <string.h>, <strings.h>,
129 <stdlib.h>, and <fcntl.h> if they are present. Declare strchr,
130 strrchr, and strstr if no string header file exists. Include
131 <sys/file.h> if it exists and <fcntl.h> does not. Define
132 O_RDONLY and O_RDWR if necessary.
133 * ar.c: Don't include "sysdep.h". Do include <sys/types.h> and
134 <sys/stat.h>. Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME. Use
135 HAVE_UTIMES rather than !USE_UTIME. Don't include <errno.h>, and
137 * arsup.c: Don't include <sysdep.h>.
138 * bucomm.c: Don't include "sysdep.h". Include <stdio.h>,
139 <sys/types.h>, and <sys/stat.h>. Include <time.h> if it defines
140 time_t. Define time_t if necessary.
141 * coffdump.c: Don't include "sysdep.h".
142 * coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise.
143 * srconv.c, strings.c: Likewise.
144 * nm.c: Don't include "sysdep.h". Don't try to define HAVE_SBRK.
145 * objcopy.c: Don't include "sysdep.h". Include <sys/types.h> and
147 (simple_copy): Use creat rather than assuming that O_CREAT is
149 * objdump.c: Don't include "sysdep.h". Use
150 NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED.
151 * sysdump.c: Include "bfd.h" and "bucomm.h". Don't include
152 "sysdep.h" or <stdlib.h>.
153 (dump_symbol_info): Rename from symbol_info. Change all callers.
157 * configure.in (host_makefile_frag): Don't set. Substitute for
158 @CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile.
159 * Makefile.in (AR_FLAGS): Set to rc rather than qv.
160 (CC): Define as @CC@.
161 (CFLAGS): Set to @CFLAGS@.
162 (LDFLAGS): Define as @LDFLAGS@.
163 (ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).
165 * configure.in: Don't bother to call config.bfd for each target.
166 Just call it for the default target, and use the shell variable to
167 decide whether underscores are used.
171 * configure.in: match i[3-6]86-*-win32, not just i386-*-win32.
175 * dlltool.c (add_indirect): New.
177 (gen_exp_file): Timestamp should be 0. Insert prefix when
178 needed. New code for indirection.
179 (gen_lib_file): Timestamp should be 0. Insert prefix
181 (usage): Document --add-indirect.
182 (main): Cope with new option.
184 * objdump.c (dump_private_headers): New.
185 (usage): Document new option.
186 (long_option): Add private-headers.
187 (dump_bfd_private_header): New.
188 (main): Cope with new option.
192 * dlltool.c (run): Add missing 3rd arg to waitpid.
196 * Makefile.in (TOOL_PROGS): Include dlltool if needed.
200 * dlltool.c (rva): Deleted.
201 (rvaafter, rva_before): Use new assembler pseudo.
202 (flush_page, gen_exp_file, gen_lib_file): Use new way of RVAing.
203 (gen_exp_file): Don't generate .edata if no need.
204 (gen_lib_file): Don't make timestamp.
205 Put _iname in idata$7.
206 (workout_prefix): Fix memory initialization bug.
207 (usage): Tidy up, delete many single char options.
208 (main): rva option is gone.
212 * dlltool.c (options): image-base is a synonym for rva.
213 (gen_lib_file): Put dll name into ibase$7.
217 Modified to generate archives and objects rather than .s files.
218 * dlltool.c (run) New function.
219 (gen_exp_file, gen_lib_file): Use run.
220 (workout_prefix): New.
221 (usage): Document new options.
222 (main): Parse new options.
226 * dlltool.c (gen_exp_file): Fix RVA handling.
227 (rva_s, rva_n): Delete.
231 * nm.c (main): Ignore -e.
235 * Makefile.in (config.texi): New target. Write out a setting for
236 texinfo variable VERSION.
237 (binutils.dvi, binutils.info): Depend on it.
238 * binutils.texi: Include it, and reference @value{VERSION} instead
239 of explicitly specifying 2.2(!).
243 * coffgrok.c (do_type): Handle array dimensions the same way gdb
248 * dlltool.c (mtable): New fields.
249 (ASM_RVA_BEFORE, ASM_RVA_AFTER): New.
250 (flush_page): Use new macros.
254 * objcopy.c (mark_symbols_used_in_relocations): Handle sections
256 * coffgrok.c (do_sections_p1): Likewise.
260 * strings.c (print_strings): For compatibility with existing
261 strings programs, print strings which are not terminated with a
262 null byte or a newline.
263 * binutils.texi, strings.1: Update documentation accordingly.
265 * ar.c (replace_members): For compatibility with existing ar
266 programs, permit users to add the same file multiple times.
270 * strings.c (DATA_FLAGS): Remove SEC_DATA.
271 (main): If no file names are given, scan standard input.
272 * binutils.texi, strings.1: strings now scans non-data sections by
277 * srconv.c (wr_hd): Set afl field to 4 for bfd_arch_sh.
278 (writeINT): When size == -2, use 2 bytes for the h8300 and 4 bytes
281 * sysdump.c (fillup): Return size - 1, the last byte is a checksum
282 and shouldn't be counted.
283 * sysroff.info (hd): Changed segment identifier from a byte to a 1
284 bit field. The sysroff 2.0-01 specification seems to be in error
285 here. Reduce width of following "spare" field from 4 to 3 bits.
286 (rl): Changed order and width of first 4 bitfields to correspond
287 to sysroff specification.
288 (dln_head, dln_inside, dln_tail): Removed.
292 * nm.c (sort_symbols_by_size): Enclose expression being casted
293 in parens so result is casted, not just first operand. Can't
294 do pointer arithmetic on void* pointers.
298 * sysdump.c (dh): Changed format of output to be 16 hex digits
299 followed by 16 ascii characters, similar to Emacs' hexl-mode,
300 to make it easier to read.
305 * srconv.c (wr_tr): Write out handcrafted tr block.
306 (walk_tree_symbol): Use evallen and evalue instead of
307 vallen & value because of corresponding changes in
310 * sysdump.c (sysroff_swap_tr_in, sysroff_print_tr_out): New
313 * sysroff.info (tr): the tr block is a special case --- a block
314 without contents --- which can't be handled by generated code.
315 (den, dpp): only first byte is present for DENend, DPPend.
316 (dsy): describe a conditional portion of block, rename some fields.
317 (dps): describe a conditional portion of block.
320 * sysinfo.y (yyerror): write error message to standard error.
324 * Makefile.in (DISTSTUFF): Add arparse.h and sysinfo.h.
325 (mostlyclean): Remove y.output.
326 (clean): Remove sysroff, sysroff.c, sysroff.h, and sysinfo.
328 * nlmconv.c (powerpc_mangle_relocs): Cast memset arg to size_t.
329 * objcopy.c (copy_object): Likewise.
331 * nm.c (HAVE_SBRK): Define execpt on amigados and WINDOWS_NT.
332 (struct size_sym): Define.
333 (show_stats): New static variable.
334 (long_options): Add undocumented option "stats".
335 (main): Print memory stats if requested.
336 (sort_bfd, sort_dynamic, sort_x, sort_y): New static variables.
337 (numeric_forward): Use minisymbols rather than asymbols.
338 (non_numeric_forward): Likewise.
339 (size_forward1): Rename from size_forward. Use minisymbols.
340 (size_forward2): New static function.
341 (sort_symbols_by_size): Take new arguments dynamic, size, and
342 symsizep. Use minisymbols. Don't store the size back in the
343 symbol; store in a newly allocate struct size_sym array.
344 (display_rel_file): Read minisymbols rather than asymbols. Set
345 sort_* variables. Call print_size_symbols if sorting by size.
346 (filter_symbols): Take new arguments dynamic and size. Use
348 (print_symbols): Likewise. Call print_symbol for actual printing.
349 (print_size_symbols): New static function.
350 (print_symbol): New static function.
354 * objdump.c (dump_section_stabs): Only print each stabs section
356 (compare_relocs): Make it clear to gcc that this always returns a
361 * objcopy.c (simple_copy): Preserve errno on failure.
362 (smart_rename): Print error mesage if simple_copy fails.
366 * sysdump.c: re-indented file.
367 (module): read blocks sequentially instead of trying to parse
368 them, as that would require changing the parser recognize the
369 difference between a DPSstart and DPSend block.
370 (getone): Add break's between switch blocks as appropriate.
371 (object_body_list): parse blocks according to sysroff spec.
375 * sysroff.info: re-indented file, prior formatting was confusing
376 because it was indentation did not reflect nesting of conditional
377 records. Change "space size within segment" record in hd record
380 * sysinfo.y (cond_it_field): Use xcalloc instead of calloc.
382 * srconv.c (wr_cs): Reformatted cs header array, tag each byte
383 with a comment describing the field.
384 (wr_unit_info): Use SEEK_SET macro instead of constant 0.
385 (main): Use FOPEN_WB macro instead of literal "wb".
386 * sysroff.info: Remove fdl (dfl) field from cs block. Compare
387 ptr->type with ED_TYPE_CONST instead of constant 2 in ed block.
391 * nm.c (size_forward): Check yf against yn, not xn.
393 * objcopy.c (copy_archive): Record all output BFD's, and close
394 them before unlinking them and removing the temporary directory,
395 to avoid NFS problems.
397 * ar.c (replace_members): In verbose messages, use 'r' when
398 replacing a member, and 'a' when adding one.
400 * ar.c (ar_truncate): New static variable.
401 (normalize): Change return type to const char *. Add abfd
402 argument. Change all callers. If ar_truncate, chop the filename
403 to abfd->ar_max_namelen.
404 (main): For the 'f' modifier, set ar_truncate to true. Don't
405 change quick_append to replace if ar_truncate is true.
406 (do_quick_append): If ar_truncate, set BFD_TRADITIONAL_FORMAT.
407 (write_archive): Likewise.
408 * binutils.texi, ar.1: Document 'f' modifier.
410 * objcopy.c (enum strip_action): Define strip_unneeded.
411 (OPTION_STRIP_UNNEEDED): Define.
412 (strip_options): Add "strip-unneeded".
413 (copy_options): Likewise.
414 (copy_usage): Mention --strip-unneeded.
415 (strip_usage): Likewise.
416 (is_strip_section): Strip debugging sections if strip_unneeded.
417 (filter_symbols): If strip_unneeded, only keep BSF_KEEP symbols.
418 (copy_object): If strip_all, discard symbols without checking
420 (copy_object): Call filter_symbols if strip_unneeded.
421 (setup_section): Strip debugging sections if strip_unneeded.
422 (copy_section): Likewise.
423 (strip_main): Handle OPTION_STRIP_UNNEEDED.
424 (copy_main): Likewise.
425 * binutils.texi, objcopy.1, strip.1: Document --strip-unneeded.
429 * configure.in (i386-*-win32): New configuration.
430 * dlltool.c (killat, xlate, usage, long_options, main):
431 Understand and cope with -k option.
435 * ar.c: (extract_file): Change "#if POSIX_UTIME" to
436 "#ifdef POSIX_UTIME" to match other tests of POSIX_UTIME
437 and avoid lossage when POSIX_UTIME is not defined at all.
441 * ar.c: (print_contents.c, extract_file, do_quick_append):
442 Malloc buffers rather than allocate on stack (so it works
444 * deflex.l: Names can have an @ in them.
445 * dlltool.c: Loads of stuff. Can now generate .imp files which
450 * mpw-make.in (demangle.c.o): Remove.
451 (arparse.h): Depend on arparse.c instead of arparse.y.
455 * Makefile.in (DISTSTUFF): Don't include info here.
456 (diststuff): Include it here.
457 (realclean): Remove *.info.
459 * objdump.c (compare_relocs): If relocation entries have the same
460 address, keep them in file order.
464 * dlltool.c: Change names of generated files. .*.s-> -*.s
466 * objdump.c (dump_section_stabs): Check for names
467 which are supersets of selected names.
471 * dlltool.c (mtable, ARM jump): Must redirect via pc offsetable ptr.
475 * deflex.l, defparse.y, dlltool.c: New files.
476 * Makefile.in, configure.in: Support for them.
480 * sysdump.c: Include sysdep.h
481 (main): Open input with FOPEN_RB.
485 * objdump.c (wide_output): New flag variable.
486 (usage): Print new -w, --wide options.
487 (long_options): Add --wide support.
488 (dump_section_header): If --wide, don't print a newline between
489 the section's first line and the flags.
490 (objdump_print_address): Use unsigned comparisons for the binary
492 (disassemble_data): If --wide, don't put a \n between the
493 disassembly output and relocation information.
494 (main): Support -w option being the same as --wide.
500 * objcopy.c (smart_rename): make it smarter, clean up
505 * Makefile.in: Delete lines with lots of #### because four or more
506 indicate a point for makefile fragment substitution.
510 * configure.in: Don't build nlmconv on PowerPC eabi any more, it
515 * Makefile.in (EXPECT): Define.
516 (RUNTEST): Use one in source tree if present.
517 (check): Set `rootme' for $(EXPECT).
521 * srconv.c (main): Add support for -n option which disables
522 prescan of common symbols.
523 (wr_ob): If reading past the end of a section, fill with zeros.
527 * objdump.c (dump_section_header): Display load address after
528 virtual memory (run-time) address.
532 * Makefile.in (cplus-dem.o): Pass -DVERSION='"$(VERSION)"' to the
534 (DEMANGLER_PROG): No longer uses version.o.
538 Merge in support for Mac MPW as a host.
539 (Old change descriptions retained for informational value.)
541 * mpw-config.in (TDEFINES): Define as empty in makefile frag.
543 * mpw-config.in: Create mk.tmp, define ARCHDEFS in it.
545 * mpw-config.in: New file, MPW configure fragment for binutils.
546 * mpw-make.in (install-only): New target.
547 (install): Also depend on install-only.
549 * mpw-make.in (cplusfilt): Renamed from c++filt.
550 (INCLUDES): Add more paths.
552 * mpw-make.in: New file, MPW makefile fragment for binutils.
553 (Normally automatically generated from Makefile.in.)
557 * ar.c (write_archive): Call make_tempname to get output file
558 name, rather than using a fixed name based on the input file.
560 * objcopy.c (make_tempname): Copy from here...
561 * bucomm.c (make_tempname): ...to here, and make global.
562 * bucomm.h (make_tempname): Declare.
566 * strings.c: Include "bfd.h" before other headers. Include
568 * bucomm.c (print_arelt_descr): Cast st_uid and st_gid to long,
569 and print them with %ld.
573 * objcopy.c (strip_options): Add --keep-symbol.
574 (copy_options): Likewise.
575 (copy_usage): Mention --keep-symbol and -K.
576 (strip_usage): Likewise.
577 (keep_symbols): New static variable.
578 (is_strip_symbol): Adjust the return value according to
580 (strip_main): Handle -K. For -N, check that -K was not given.
581 (copy_main): Likewise.
582 * binutils.texi, objcopy.1, strip.1: Document -K.
586 * objcopy.c (copy_archive): Check result of mkdir.
587 (copy_main): Cast an xmalloc result.
589 * objdump.c (usage): Break long format string into shorter ones.
593 * bucomm.c (list_supported_targets): New function.
594 * bucomm.h (list_supported_targets): Declare.
595 * ar.c (usage): Call list_supported_targets.
596 * nm.c (usage): Likewise.
597 * objcopy.c (copy_usage, strip_usage): Likewise.
598 * objdump.c (usage): Likewise.
599 * size.c (usage): Likewise.
600 * strings.c (usage): Likewise.
604 * bucomm.c (print_arelt_descr): Cast st_size to long before
605 passing it to fprintf.
609 * objcopy.c (struct section_list): Add fields remove, set_flags,
610 and flags. Change adjust from boolean to enum.
611 (remove_sections): Remove static variable.
612 (sections_removed): New static variable.
613 (copy_options): Add --set-section-flags.
614 (copy_usage): Mention --set-section-flags.
615 (parse_flags): New static function.
616 (find_section_list): New static function.
617 (is_strip_symbol): Change return type from int to boolean.
618 (is_strip_section): New static function.
619 (filter_symbols): Call is_strip_section.
620 (copy_object): When adding sections, check for specified flags or
621 VMA. Call filter_symbols if any sections are being removed.
622 (setup_section): Use find_section_list function rather than
623 looking through remove_sections and adjust_sections. Handle
625 (copy_section): Use find_section_list rather than looking through
627 (strip_main): Use find_section_list instead of adding items to
629 (copy_main): Use find_section_list instead of adding items to
630 sections_removed and adjust_sections. Handle --set-section-flags.
631 * binutils.texi, objcopy.1: Document --set-section-flags.
635 * objdump.c (with_source_code): New global variable.
636 (usage): Mention -S/--source.
637 (long_options): Add --source.
638 (prev_functionname, prev_line): New static variables.
639 (struct print_file_list): Define.
640 (print_files): New static variable.
641 (skip_to_line, show_line): New static functions.
642 (disassemble_data): Call show_line to handle -l and -S.
644 * binutils.texi, objdump.1: Document -S/--source.
648 * objcopy.c (copy_usage): Rename parameter to avoid shadowing.
649 (strip_usage): Likewise.
651 * objcopy.c (struct section_add): Define.
652 (add_sections): New static variable.
653 (copy_options): Accept --add-section.
654 (copy_usage): Mention --add-section.
655 (copy_object): Add sections from the add_sections list.
656 (copy_main): Handle --add-section.
657 * binutils.texi, objcopy.1: Document --add-section.
661 * objdump.c (disassemble_data): Pass section offset, not absolute
662 address, to bfd_find_nearest_line.
664 * nlmconv.c (powerpc_mangle_relocs): Don't use const with
669 * objdump.c (compare_symbols): Use bfd_asymbol_value (VAR) rather
671 (objdump_print_address): Likewise.
672 (disassemble_data): Don't change the symbol values. It can
673 confuse bfd_canonicalize_reloc.
677 * configure.in: Add support for powerpc-*-ebai.
679 Wed Jan 18 10:02:12 1995 Steve Chamberlain <sac@splat>
681 * coffdump.c: Include sysdep.h.
682 (dump_coff_type): Handle coff_secdef_type.
683 * coffgrok.c : Include sysdep.h.
684 * srconv.c: Include libiberty.h
685 (absolute_p, dty_start, dty_end, dump_tree_structure): Remove.
689 * coffdump.c (dump_coff_scope): Cast pointer to unsigned long for
691 * coffgrok.c: Include bucomm.h. Don't declare xmalloc.
692 (push_scope): Declare type of parameter link.
693 * size.c: Include libiberty.h.
694 * srconv.c: Include bucomm.h.
695 (find_base): Declare at top of file.
696 (wr_hd): Add default case to architecture switch.
697 (wr_dps_start): Declare type of parameter nest.
698 (wr_du): Comment out variables used only in commented out blocks.
699 (wr_dus): Remove unused variable i.
700 (wr_sc): Remove unused variables myinfo, low, and high.
701 * strings.c: Include libiberty.h.
702 * sysdump.c: Include <ctype.h>.
706 * ar.c (main): Ignore 'f' modifier used on HP/UX 9.
710 * ar.c, nm.c, objcopy.c, objdump.c: Include progress.h.
711 * ar.c, nm.c, objcopy.c, objdump.c (main): Add START_PROGRESS
713 * ar.c (map_over_members, open_inarch): Call PROGRESS.
714 * nm.c (main, display_archive, filter_symbols, print_symbols):
717 * objcopy.c (copy_usage): Break up long usage string.
721 * objcopy.c (copy_object): Don't bother setting status after
722 nonfatal() "call", because it won't return.
726 * nlmconv.c (powerpc_mangle_relocs): Don't switch a reloc to use
727 the section symbol if the symbol is undefined.
731 * objcopy.c (add_strip_symbol): Cast return value of xmalloc.
735 * ar.c (replace_members): Pass current->filename to normalize when
736 checking for duplicates, because the filename of a newly added
737 file will not have been normalized yet.
741 * ar.c (main): Don't call do_quick_append if any of the archive
742 names are longer than 14 characters.
744 * objcopy.c (main): Fix is_strip test. From
749 * objcopy.c (add_strip_symbol): New function, adds a name to an
750 explicit list of symbols to strip.
751 (is_strip_symbol): New function, reports whether the name argument
752 is in the explicit list.
753 (filter_symbols): Check against is_strip_symbol above all.
754 (strip_main): Recognize -N option. If used, don't default to
756 (copy_main): Recognize -N option.
757 (strip_usage): Document -N and --strip-symbol options.
759 * objcopy.1, strip.1, binutils.texi: Document -N and
760 --strip-symbol options.
764 * objdump.c (display_target_list, display_info_table): Pass an
765 array to tmparg, rather than NULL, since some systems can't handle
768 * objcopy.c (copy_archive): Keep a list of the names of the
769 temporary files we created. Close each input BFD after we open
774 * Makefile.in (VERSION): Bump to 2.5.3.
778 * Makefile.in (install-info): Install info files from whatever
779 directory they were found in.
781 Patch from DJ Delorie:
782 * configure.bat: do c++filt -> cxxfilt right
784 * sysinfo.y: Include system header files early, so any potential
785 declaration of abort() occurs before its use.
787 * strings.c (strings_file): Try opening the file in binary mode
792 * ar.c (main): Treat ar qs like ar rs.
796 * objcopy.c (gap_fill): Explicitly initialize, for clarity.
797 (pad_to_set, pad_to): New static variables.
798 (copy_options): Accept --pad-to.
799 (copy_usage): Mention --pad-to.
800 (copy_object): Support --pad-to.
801 (compare_section_vma): Sort non loadable sections to the front.
802 Sort sections with the same VMA by size.
803 (copy_main): Handle --pad-to.
804 * binutils.texi, objcopy.1: Document --pad-to.
808 * objcopy.c (gap_fill_set, gap_fill): New static variables.
809 (copy_options): Accept --gap-fill.
810 (copy_usage): Mention --gap-fill.
811 (copy_object): Support --gap-fill.
812 (get_sections, compare_section_vma): New static functions.
813 (copy_main): Handle --gap-fill.
814 * binutils.texi, objcopy.1: Document --gap-fill.
818 * Makefile.in (check): Add a dummy else clause to the if
821 * objcopy.c (copy_object): Revert yesterday's change.
822 * binutils.texi, objcopy.1: Remove special mention of --set-start
823 and `binary' output format.
827 * objcopy.c (copy_object): If the output file format is `binary',
828 and the start address was not set using --set-start, default the
829 start address to zero. This hack is because the `binary' output
830 file format uses the start address to set the virtual address of
831 the first byte in the file.
832 * binutils.texi, objcopy.1: Add some notes on generating S-records
835 * nm.c (print_symdef_entry): Call print_symname to print the
836 symbol name, so that --demangle works.
838 * Makefile.in (mostlyclean): Remove tmpdir.
840 * objcopy.c (struct section_list): Add fields used, adjust, val.
841 (adjust_start, set_start_set, set_start): New static variables.
842 (adjust_section_vma, adjust_sections): New static variables.
843 (copy_options): Add --adjust-start, --adjust-vma,
844 --adjust-section-vma, --adjust-warnings, --no-adjust-warnings,
846 (parse_vma): New static function.
847 (copy_usage): Mention new options.
848 (copy_object): Handle --set-start and --adjust-start.
849 (setup_section): Correct type of last argument to PTR. Set used
850 field if section is removed. Handle --adjust-vma and
851 --adjust-section-vma.
852 (copy_section): Correct type of last argument to PTR.
853 (mark_symbols_used_in_relocations): Likewise.
854 (strip_main): Clear used field when handling -R.
855 (copy_main): Handle new options.
856 * binutils.texi (objcopy): Document new options.
857 * objcopy.1: Document new options.
861 * configure.in (configdirs): Remove definition--testsuite is no
863 * Makefile.in (testsuite): Remove target.
864 (site.exp): New target.
866 (clean, distclean): Don't recur into testsuite directory.
870 * Makefile.in (VERSION): Updated to 2.5.
871 * Version 2.5 released.
875 * Makefile.in (sysdump.o): Depends upon sysroff.c.
879 * nlmconv.c (link_inputs): Pass -Ur flag to ld so that the
880 ctor/dtor tables needed by C++ programs are built.
884 * Makefile.in (srconv.o): Add dependence on sysroff.c.
888 * configure.in: Use ${config_shell} when running config.bfd.
890 * Makefile.in (sysroff.h): Split target away from sysroff.c.
891 (srconv.o, sysdump.o): New targets.
892 (srconv, sysdump): Don't depend upon sysroff.c.
896 * Makefile.in (arparse.c): Don't ignore errors from mv.
897 (sysinfo.c): Likewise. Also, depend upon arparse.c, to prevent a
898 parallel make from trying to build both arparse.c and sysinfo.c
900 (nlmheader.c): Similar change.
901 (arparse.h): Separate target from arparse.c, so that a parallel
902 make does not try to build both at once. Depend upon arparse.c.
903 (sysinfo.h): Similar change.
905 * objdump.c (disassemble_data): Pass the reloc buffer to free, not
906 the pointer used to loop over the relocs.
910 * objdump.c (disassemble_data): Cast result of xmalloc.
914 * objdump.c (sorted_syms, sorted_symcount): New global variables.
915 (objdump_print_address): Use sorted_syms and sorted_symcount
916 instead of syms and symcount.
917 (disassemble_data): Don't bother to get the relocs before looping
918 over the sections. Before filtering and sorting the symbol table,
919 copy it into sorted_syms.
923 * objdump.c (struct objdump_disasm_info): Add field require_sec.
924 (objdump_print_address): If aux->require_sec, require that the
925 symbol be in aux->sec even if HAS_RELOC is not set. If we can't
926 find a smaller symbol in the right section, look for a larger one.
927 (disassemble_data): Set aux.require_sec around the
928 objdump_print_address call for the instruction address.
932 * ar.c: Call xexit rather than exit.
933 (output_filename, output_file, output_bfd): New static variables.
934 (remove_output): New static function.
935 (main): Call xatexit (remove_output). Call xexit rather than
937 (extract_file): Set output_filename and output_file while output
939 (write_archive): Likewise, but use output_bfd, not output_file.
940 * arsup.c: Include libiberty.h. Call xexit rather than exit.
941 * bucomm.c: Likewise.
943 * objdump.c (disassemble_all): New global variable.
944 (usage): Document --disassemble-all.
945 (long_options): Add disassemble-all as a synonym for -D.
946 (compare_symbols): Make pointers const.
947 (compare_relocs): New static function.
948 (disassemble_data): Rename disassemble to disassemble_fn to avoid
949 shadowing. If dump_reloc_info, print relocs along with
950 disassembly. Skip sections which are not SEC_CODE unless
951 disassemble_all or only is set.
952 (display_bfd): Don't call dump_relocs if disassemble is set.
953 (main): Accept and handle -D.
954 * binutils.texi: Document -D/--disassemble-all.
955 * objdump.1: Likewise.
959 * objdump.c (disassemble_data): Initialize prevline to 0. Make
960 prev_function non const. Copy functionname into an malloc buffer
961 when setting prev_function, instead of assuming that the string
964 * nm.c: Include libiberty.h.
965 (sort_by_size): New static variable.
966 (long_options): Add --size-sort.
967 (usage): Mention --size-sort.
968 (numeric_forward): Make static. Change from void * to PTR.
969 (numeric_reverse): Likewise.
970 (non_numeric_forward, non_numeric_reverse): Likewise.
971 (sorters): Change declaration from void * to PTR.
972 (size_forward, sort_symbol_by_size): New static functions.
973 (display_rel_file): Handle sort_by_size.
974 (filter_symbols): If sort_by_size, discard absolute and undefined
976 * binutils.texi (nm): Document --size-sort.
977 * nm.1: Document --size-sort.
981 * objcopy.c (copy_main): Initialize input_filename and
982 output_filename to NULL.
986 * Makefile.in (version.o): Depend upon Makefile, so that version.o
987 gets rebuilt when make variable VERSION is changed.
989 * objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.
993 * configure.in: Change i[34]86 to i[345]86.
997 * ar.c (ranlib_touch): Don't update the archive map if there isn't
1002 * ar.c: Include libiberty.h.
1003 (inarch): Remove variable.
1004 (map_over_members): Make static. Add arch argument, and use it
1005 instead of inarch. Change all callers.
1006 (main): Treat --version as -v. Accept -t argument. Accept any
1007 number of archive arguments. Catch and use open_inarch return
1008 value, rather than using inarch.
1009 (open_inarch): Return newly opened BFD, rather than using inarch.
1010 (do_quick_append): Make archive_filename const.
1011 (write_archive): Add iarch argument, and use it instead of inarch.
1013 (delete_members, move_members, replace_members): Likewise.
1014 (ranlib_only): Don't exit on success. Catch and use open_inarch
1016 (ranlib_touch): New function.
1017 * arsup.h (map_over_members): Don't declare.
1018 (ar_end, ar_extract): Declare.
1019 (open_inarch): Change return value in declaration to bfd *.
1020 * arsup.c (map_over_list): Make static. Always pass two arguments
1021 to function. Add arch argument, and use it instead of inarch.
1023 (ar_directory_doer): Make static. Add ignored second argument.
1025 (ar_directory): Use open_inarch return value rather than inarch.
1026 (ar_addlib_doer): Make static.
1027 (ar_addlib): Use open_inarch return value rather than inarch.
1028 (ar_extract): Remove unused local variable abfd.
1032 Add support for removing named sections to objcopy and strip.
1033 * objcopy.c (struct section_list): Define.
1034 (remove_sections): New static variable.
1035 (strip_options, copy_options): Add remove-section.
1036 (copy_usage, strip_usage): Mention -R and --remove-section.
1037 (setup_section): If section is in remove_sections list, ignore it.
1038 (copy_section): Likewise.
1039 (strip_main, copy_main): Handle -R.
1040 * binutils.texi, objcopy.1, strip.1: Document new options.
1044 * nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,
1045 so as not to conflict with the symvalue typedef in bfd.h.
1049 * nlmheader.y: Per current NetWare docs, accept a revision number
1050 of 0 and treat a revision number greater than 26 as 0.
1054 * objdump.c (objdump_print_address): Correct handling of end of
1055 symbols when looking for next symbol with a different value.
1059 * nm.c (numeric_forward): Treat undefined symbols as "less than"
1060 defined symbols with zero values. If numeric values are equal, or
1061 both symbols are undefined, sort alphabetically. Don't assume
1062 that the difference of two bfd_vma values will truncate to "int"
1063 and still have the same sign.
1064 (numeric_reverse): Call numeric_forward and negate the result.
1065 (print_symbol_info_bsd): For undefined symbols, print leading
1066 spaces equivalent to the width of a printed bfd_vma, rather than
1067 assuming that 8 will look right.
1071 * coffgrok.c (doit): Zero all fields of new structure.
1072 * srconv.c (sysroff_swap_*_out): Remove redundant trailing arg.
1073 * sysinfo.y: Generate sysroff_swap_*_out without requiring extra
1078 * nlmheader.y: Make "stack" and "stacksize" synonyms in the lexer
1079 rather than the parser.
1083 * config/mh-alphaosf, config/mh-apollo68v, config/mh-delta88:
1088 * objdump.c (slurp_dynamic_symtab): Try to get the dynamic symbols
1089 even if the bfd is not marked DYNAMIC. ELF executables are not
1090 marked DYNAMIC, but do have dynamic symbols.
1094 * coffgrok.c (do_where): Make data with no type 'int'.
1095 (do_define): Keep info on source file of a symbol.
1096 * coffgrok.h (coff_symbol): New field.
1097 * srconv.c (PROGRAM_VERSION): Now 1.3
1098 (wr_rl): Use external ref number for symbol.
1099 (wr_dus): Only keep one source file per debug unit.
1100 (wr_dln): Always emit line numbers for first source file,
1101 (wr_globals): Emit globals in the du of their owning source file.
1105 * nlmheader.y: Null terminate var_hdr->threadName.
1109 * Makefile.in (syslex.o, sysinfo.o): Permit C source files to be
1110 in $(srcdir), as they will be for FSF releases.
1114 * nlmconv.c (setup_sections): Preserve existing section flags when
1115 copying in flags from a new section.
1119 * objcopy.c: Include libiberty.h.
1120 (copy_file): If output_target is NULL, set it to the target of the
1125 * nlmconv.c (link_inputs): Fixed memory allocation bug.
1129 * configure.in: Change --with-targets to --enable-targets.
1133 * Makefile.in (sysinfo): Does not depend upon $(ADDL_LIBS).
1135 * nlmconv.c (powerpc_build_stubs): Don't generate the PowerPC
1136 NetWare custom header; no longer needed.
1137 (powerpc_mangle_relocs): Convert relocs against the uninitialized
1138 data section into relocs against the data section.
1140 * configure.in: Set nlmconv_defs to -DNLMCONV_cputype for all the
1141 netware targets. Write it into Makefile as NLMCONV_DEFS.
1142 * Makefile.in (nlmconv.o): Pass $(NLMCONV_DEFS) to $(CC).
1143 * nlmconv.c: Only compile code for specific CPU types if
1144 NLMCONV_cputype is defined.
1146 * nlmconv.c (main): Change uses of bfd_abs_section, etc., to use
1147 bfd_abs_section_ptr or bfd_is_abs_section, etc.
1148 (i386_mangle_relocs, alpha_mangle_relocs): Likewise.
1149 (powerpc_build_stubs): Likewise.
1150 * nm.c (filter_symbols, print_symbols): Likewise.
1151 * objcopy.c (filter_symbols): Likewise.
1152 (mark_symbols_used_in_relocations): Likewise.
1153 * objdump.c (remove_useless_symbols, dump_relocs): Likewise.
1154 * size.c (sysv_internal_printer): Likewise.
1158 * Makefile.in (MANPAGES): Remove $(DEMANGLER_PROG).
1159 (install): Install it explicitly, from build dir, not srcdir.
1163 * objdump.c: Don't include elf/internal.h.
1164 (bfd_elf_find_section): Don't declare.
1165 (read_section_stabs): No special handling for ELF. Always read
1170 * configure.in: Set UNDERSCORE in Makefile based on result of
1171 invoking config.bfd with a second argument of ``_''.
1172 * Makefile.in (underscore.c): Depend upon Makefile. Don't try to
1173 run $(CC) and $(NM), just use $(UNDERSCORE). Create via temporary
1175 (demangle.o): Remove target.
1176 ($(NM_PROG)): Don't depend upon demangle.o, and don't link against
1177 demangle.o. It's in libiberty anyhow.
1178 (cplus-dem.o): Don't depend upon demangle.o.
1179 * binutils.texi: Mention -n and --no-strip-underscores arguments
1184 * nm.c (long_options): Add --no-demangle to turn off --demangle,
1185 and --no-cplus for Linux compatibility.
1186 (usage): Mention --no-demangle.
1187 * binutils.texi: Document --no-demangle.
1191 * nm.c: HOST_64_BIT was renamed to BFD_HOST_64_BIT.
1193 * objcopy.c (copy_archive): Make the temporary directory in the
1194 same directory as the output BFD, since we may not have write
1195 permission on the current directory. Set the permissions of the
1196 new directory to 0700, not 0777.
1200 * configure.in: if this is an rs6000 (and we're not building for
1201 any other bfd targets) then build only nm (collect needs it on
1204 * Makefile.in: define TOOL_PROGS which the list of programes to
1205 install in $tooldir -- replaces a hard-coded list.
1209 * objdump.c (display_target_list): Remove unused local ok.
1213 * config/mh-alphaosf (CFLAGS): Don't specify both -g and -O;
1214 they're not compatible under native cc. Use -O1 instead.
1216 * Makefile.in (VERSION): Updated to cygnus-2.4.1.
1218 Changes from binutils-2.4 net release:
1220 * Makefile.in (MANPAGES): Use $(DEMANGLER_PROG).
1221 ($(DEMANGLER_PROG).1): Build from cxxfilt.man, using sed.
1222 * cxxfilt.man: Renamed from c++filt.1, replaced "c++filt" with
1223 magic token to be replaced by sed.
1227 * configure.bat: update for latest makefile.in
1231 * bucomm.c: Check ANSI_PROTOTYPES rather than __STDC__.
1235 * objcopy.c (copy_section): Set section size correctly if using
1240 * Makefile.in: Add rule for sysinfo.h
1244 * Makefile.in (SRCONV_PROG): Define.
1245 (PROGS): Use $(SRCONV_PROG) too.
1249 * Makefile.in (DISTSTUFF): Add sysinfo.c, syslex.c, in case
1250 someone configures with `targets=all'.
1251 (distclean): Remove y.*.
1252 (syslex.o): Depend on sysinfo.h.
1253 (sysinfo.c): Rename y.tab.h to sysinfo.h.
1254 (install-info): Don't try to install into $(infodir)/$(srcdir).
1255 * syslex.l: Include sysinfo.h, not y.tab.h.
1259 * syslex.l (yywrap): Define as function if not defined as a macro.
1261 * Makefile.in (objdump.o): Deleted special rule.
1262 * configure.in: Don't bother building ARCHDEFS variable for
1264 * objdump.c (ARCH_*): Deleted handling.
1265 (disassemble_data): Call `disassembler' from opcodes library.
1269 * Makefile.in (install): Correct handling of $(tooldir) and
1270 $(bindir) being on different devices.
1274 * sysdump.c (h8300, sh): Add declarations.
1278 * Makefile.in (syslex, sysinfo): Use CC_FOR_BUILD.
1279 * coffdump.c, coffgroc.c, coffgrog.h, srconv.c, sysdump.c,
1280 sysroff.info: Major changes.
1284 * objdump.c (print_section_stabs): Indicate the stab header symbol
1285 more clearly, print numbers of unrecognized stab n_type values.
1289 * nlmconv.c (copy_sections): Copy arelent pointers, not arelents.
1293 * Makefile.in (distclean): Remove $(PROGS) and underscore.c.
1297 * nlmconv.c (setup_sections): Remove special handling of .reginfo
1299 (copy_sections): Likewise.
1300 (alpha_mangle_relocs): Use bfd_ecoff_get_gp_value rather than the
1301 special ECOFF .reginfo section.
1303 * objcopy.c (copy_object): Call bfd_copy_private_bfd_data after
1304 copying everything else, to let it fiddle with the file in its
1307 * objdump.c: Include libiberty.h.
1308 (display_target_list): If a format fails, just go on to the next
1309 one. Check return value of bfd_set_format.
1310 (display_info_table): Likewise. Don't increment loop variable in
1311 for loop test, since that skips the first element.
1312 (display_target_tables): Rewrite loop for clarity. Ensure that it
1313 always prints at least one element.
1315 * nlmconv.c (main): Use CyGnUsEx rather than CyGnUsSeCs for
1316 sections header. Rename from cygnus_sections to cygnus_ext.
1320 * objdump.c (_DUMMY_NAME_): Don't define.
1321 (display_target_list): Use tmpnam to get a file name rather than
1322 using _DUMMY_NAME_. Unlink it when done.
1323 (display_info_table): Likewise.
1325 * nlmconv.c (secsec): New static variable.
1326 (main): Create .nlmsections section in output BFD. Store
1327 information about it in sections header.
1328 (setup_sections): Allocate space in sections header.
1329 (copy_sections): Copy zero sized sections. Put information about
1330 each section in the sections header.
1334 * nlmconv.c (powerpc_build_stubs): Take new outbfd argument.
1335 Change caller. Create custom header for new PowerPC NetWare
1338 * Makefile.in (nlmheader.o, nlmconv.o): Update dependencies.
1339 * nlmconv.c: Include bfd.h and libiberty.h with "", not <>.
1340 * nlmheader.y: Include bfd.h with "", not <>.
1344 * objdump.c: Do an ifdef on __GO32__, not unix.
1348 Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -R
1349 (--dynamic-reloc) arguments to objdump.
1350 * nm.c (dynamic): New static variable.
1351 (long_options): Added "dynamic".
1352 (usage): Mention -D and --dynamic.
1353 (main): Add D to getopt string. Handle -D by setting dynamic.
1354 (display_rel_file): If dynamic is non-zero, read dynamic symbols
1355 rather than normal symbols.
1356 * nm.1: Updated for -D (--dynamic) option.
1357 * objdump.c (dump_dynamic_symtab): New global variable.
1358 (dump_dynamic_reloc_info): New global variable.
1359 (dynsyms, dynsymcount): New global variables.
1360 (usage): Mention -R, -T, --dynamic-syms and --dynamic-reloc.
1361 (long_options): Added "dynamic-reloc" and "dynamic-syms".
1362 (slurp_symtab): If no symbols, return rather than exit.
1363 (slurp_dynamic_symtab): New function.
1364 (display_bfd): Handle dump_dynamic_symtab and
1365 dump_dynamic_reloc_info.
1366 (dump_symbols): Take new dynamic argument, indicating whether to
1367 display dynamic symbols.
1368 (dump_relocs): Move most printing into dump_reloc_set.
1369 (dump_dynamic_relocs): New function.
1370 (dump_reloc_set): New function, extracted from dump_relocs.
1371 (main): Add R and T to getopt string. Handle -T by setting
1372 dump_dynamic_symtab and -R by setting dump_dynamic_reloc_info.
1373 * objdump.1: Updated for -R (--dynamic-reloc) and -T
1374 (--dynamic-syms) options.
1375 * binutils.texi: Updated for new nm and objdump options.
1379 Update for recent BFD changes to symbol and reloc reading. Rename
1380 all uses of get_symtab_upper_bound to bfd_get_symtab_upper_bound.
1382 * coffgrok.c (symcount): Change to long.
1383 (do_sections_p1): Check for error return from
1384 bfd_get_reloc_upper_bound. Change relcount to long, and check for
1385 error from bfd_canonicalize_reloc.
1386 (coff_grok): Change storage to long. Check for error from
1387 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
1388 * nlmconv.c (main): Change symcount, newsymalloc, newsymcount, and
1389 i to long. Check for error from bfd_get_symtab_upper_bound and
1390 bfd_canonicalize_symtab.
1391 (copy_sections): Change reloc_size and reloc_count to long. Check
1392 for error from bfd_get_reloc_upper_bound and
1393 bfd_canonicalize_reloc.
1394 (mangle_relocs, i386_mangle_relocs, alpha_mangle_relocs): Change
1395 reloc_count_ptr argument to long *. Make corresponding changes to
1396 variables loaded from *reloc_count_ptr.
1397 * nm.c (display_rel_file): Change storage and symcount to long.
1398 Check for errors from bfd_get_symtab_upper_bound and
1399 bfd_canonicalize_symtab.
1400 * objcopy.c (filter_symbols): Change symcount, src_count and
1402 (copy_object): Change symcount to long. Pass another argument to
1403 fprintf. Check for errors from bfd_get_symtab_upper_bound and
1404 bfd_canonicalize_symtab.
1405 (copy_section): Change relcount to long. Check for errors from
1406 bfd_get_reloc_upper_bound and bfd_canonicalize_reloc.
1407 (mark_symbols_used_in_relocations): Change relcount and i to long.
1408 Check for errors form bfd_get_reloc_upper_bound and
1409 bfd_canonicalize_reloc.
1410 * objdump.c (storage): Remove global variable.
1411 (symcount): Changed to long.
1412 (slurp_symtab): New local variable storage. Check for errors from
1413 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
1414 (remove_useless_symbols): Change return value and count to long.
1415 (objdump_print_address): Change min, max, thisplace and i to long.
1416 (disassemble_data): Change i to long.
1417 (dump_symbols): Change count to long.
1418 (dump_relocs): Change relcount to long. Check for errors from
1419 bfd_ret_reloc_upper_bound and bfd_canonicalize_reloc.
1420 (display_info_table): Add casts when passing LONGEST_ARCH for
1425 * nm.c (display_archive): Close each archive element after it has
1427 * objdump.c (display_file): Likewise.
1431 * configure.in: Change error message to refer to bfd/config.bfd
1432 rather than bfd/configure.in.
1436 * More fixes for object formats which allow multiple sections
1438 * objcopy.c (setup_section): Make a new output section even if
1439 one already exists with the given name.
1440 (copy_section): Use isection->output_section rather than trying
1441 to look the output section up by its (possibly non-unique) name.
1443 * Makefile.in (install-info): Look for binutils.info in the
1444 current directory, then in $(srcdir). Don't use $<.
1448 * objdump.c (objdump_print_address): Make static. Declare with
1449 prototype. Change vardiff from int to bfd_signed_vma. Correct
1450 binary search termination condition. When looking for same
1451 section symbol in relocatable file, handle final symbol correctly.
1455 * Makefile.in: Avoid bug in hpux sed.
1457 * objcopy.c: Changes to keep it from stripping symbols used
1458 in output relocations.
1459 (mark_symbols_used_in_relocations): New function. Mark symbols
1460 used in output relocations with BSF_KEEP.
1461 (filter_symbols): Do not strip symbols marked with BSF_KEEP.
1462 (copy_object): Reorder actions. First setup sections, then
1463 build the output symbol table, then copy the section contents.
1467 * ar.c (write_archive): Allocate space for the null byte. From
1472 * Makefile.in: Built nm.new and strip.new to avoid problems with
1473 collect when . is in PATH.
1474 (STRIP_PROG): Change from strip to strip.new.
1475 (NM_PROG): Change from nm to nm.new.
1476 (install): Remove the .new when installing.
1480 * nlmconv.c (powerpc_build_stubs): Set BSF_DYNAMIC flag for each
1481 symbol for which we build a stub.
1482 (powerpc_mangle_relocs): Only reset TOC pointer for a call to a
1483 symbol with BSF_DYNAMIC flag set.
1487 * objcopy.c (filter_symbols): Use bfd_is_local_label to determine
1488 if a symbol represents a compiler-generated local label.
1489 (copy_object): Give the BFD backends a chance to copy any private
1490 bfd data from the input BFD to the output BFD.
1491 (setup_section): Give the BFD backends a chance to copy any private
1492 section data from the input section to the output section.
1496 * objcopy.c (mangle_section): Delete unused function.
1497 (setup_section): Set osection here instead of calling
1498 mangle section to do it.
1502 * ar.c (write_archive): Close inarch before unlinking it.
1506 * nlmconv.c (main): For PowerPC, call powerpc_build_stubs and
1507 powerpc_resolve_stubs. Use __GOT0, not __toc_start. Handle it if
1508 the start and end symbols are not in the text section.
1509 (struct powerpc_stub): New struct definition.
1510 (powerpc_stubs, powerpc_stub_insns): New static variables.
1511 (powerpc_initial_got_size): New static variable.
1512 (powerpc_build_stubs): New function.
1513 (powerpc_resolve_stubs): New function.
1514 (powerpc_mangle_relocs): Clear extraneous data in .got section.
1515 Rearrange reloc handling to handle ELF relocs that are not
1516 partial_inplace. Resolve PC relative relocs.
1520 * ar.c (move_members): Fix it so that the abi positional modifiers
1521 don't delete all archive members following the insert point.
1525 * coffgrok.[ch]: New files, understand coff objects.
1526 * coffdump.c: Uses coffgrok to dump out the debug info of a coff
1528 * sysroff.info: Description of a SYSROFF object file.
1529 * sysinfo.y, syslex.l: Parse info file, generate a reader, writer,
1530 header files and a printer.
1531 * srconv.c: Uses coffgrok.c and sysroff.info to convert a coff
1532 file to a SYSROFF file.
1536 * ar.c (do_quick_append): Pad with a genuine character 10,
1537 rather than whatever '\n' might happen to be.
1541 * nlmconv.c (main): Ignore debugging symbols when looking for
1542 special symbols by name.
1546 * nlmconv.c: Include libiberty.h.
1548 Support for PowerPC NetWare.
1549 * nlmconv.c (main): For PowerPC NetWare, automatically define the
1550 special symbols __toc_start.
1551 (select_output_format): Handle bfd_arch_powerpc.
1552 (mangle_relocs): Likewise.
1553 (powerpc_mangle_relocs): New function.
1557 * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
1558 size.c: Use bfd_get_error and bfd_set_error and new error names.
1562 * objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
1566 * objdump.c (disassemble_data): Handle bfd_arch_powerpc.
1570 * strings.c objdump.c nlmconv.c objcopy.c nm.c ar.c size.c (main):
1571 Call xmalloc_set_program_name.
1575 * objcopy.c (filter_bytes): Make MEMHUNK a char *, not PTR, so we
1576 can do arithmetic on it.
1580 * objdump.c (dump_section_stabs, read_section_stabs,
1581 print_section_stabs): Functions broken out of dump_stabs_1.
1582 Free the stabs and strings when done with them.
1586 * nlmconv.c (main): Use bfd_get_flavour instead of struct member.
1587 * ar.c (print_contents, extract_file), size.c
1588 (print_berkeley_format, print_sysv_format): Use bfd_get_filename and
1589 bfd_my_archive instead of dereferencing the structs directly.
1591 * ar.c: Use bfd_fatal and bfd_nonfatal instead of bfd_perror and exit.
1592 Indent. Remove DEFUNs.
1594 * nlmconv.c (main), objcopy.c (copy_file): Print matching formats
1596 * nm.c (display_file, display_archive), size.c (display_bfd):
1598 Print matching formats if there is an ambiguous match. Use
1599 bfd_nonfatal instead of hardcoded error message if nothing matches.
1601 * arsup.c, ar.c, objdump.c: Use bfd_get_filename instead of
1604 * nm.c (display_archive): New function, from code in display_file.
1605 (display_rel_file): Renamed from do_one_rel_file.
1608 (display_archive): New function from code in display_file.
1609 (display_file): Check bfd_close error return.
1611 * strings.c (strings_object_file): Check bfd_check_format
1614 * strings.c, objdump.c, size.c: Use bfd_nonfatal instead of bfd_perror.
1616 * bucomm.c: Delete references to exit_handler. It wasn't set
1617 anywhere, and now that we're using the libiberty xmalloc, it
1618 wouldn't always get called before exiting.
1619 (list_matching_formats): Function moved from objdump.c.
1620 * bucomm.h: Declare it.
1622 * objdump.c (disassemble_data): Move some variable decls closer to
1623 their use. Add some comments. Replace a nested block with a
1628 * objdump.c (display_target_list, display_info_table): Check that
1629 the bfd of the dummy output file is not null.
1633 * objcopy.c (filter_bytes): New function.
1634 (copy_section): Call it.
1635 (copy_options, copy_usage, copy_main): Add --byte option to
1636 activate it. Appropriate the -b option (which was an undocumented
1637 synonym for -F) for it, also. Add --interleave, -i option for
1639 (setup_section, copy_section, mangle_section): Renamed with no `s'
1641 * objcopy.1, binutils.texi: Document the new options.
1643 * objdump.c (display_target_tables, display_target_list):
1644 New functions broken out of display_info.
1645 Eliminate some magic constants. Use more meaningful variable names.
1646 (dump_bfd_header): New function broken out of display_bfd.
1647 (dump_section_header): New function broken out of dump_headers.
1648 (remove_useless_symbols): Don't shadow global variable name with
1650 (objdump_print_address): Fix backward test.
1654 * bucomm.c (print_arelt_descr): Change decl of `when' to time_t.
1655 * objdump.h: Removed.
1659 * objdump.c (display_file): Remove call to list_matching_formats.
1660 It would never be called.
1661 (list_matching_formats): Take an arg giving the list of matching
1663 (display_bfd): Pass the arg, and get it filled in by calling
1664 bfd_check_format_matches instead of bfd_check_format.
1665 (display_info, display_info_table): target_vector was renamed to
1668 * binutils.texi (objdump): Note some limitations of -h section
1673 * Makefile.in (MALLOC): Set to emptiness by default.
1674 (ALL_CFLAGS): Add and use.
1675 (arparse.h): Make it depend on arparse.y.
1676 * ar.c (libbfd.h): Don't require to be in ../bfd.
1677 * objdump.c (comp): Rename to compare_symbols.
1681 * objdump.c (list_matching_formats): If the file format is ambiguous,
1682 print the matching names so the user can choose one.
1683 (display_bfd): Call it.
1684 (display_file): Call it.
1688 * objdump.c (disassemble_data): Support bfd_arch_rs6000.
1692 * objdump.c (stab_name): Allocate dynamically.
1693 (stab_print): Use pointers to strings instead of char arrays.
1694 (dump_stabs): Change alloc and init of arrays appropriately.
1695 (dump_stabs_1): Always decide whether to print stab_name or
1696 the stab's type number, if unnamed.
1700 * objcopy.c (strip_main, copy_main): Don't clobber the input file
1703 * nlmconv.c (main): Warn about an attempt to use a shared library
1704 with uninitialized data.
1706 * nlmconv.c (setup_sections): Make sure that we align the
1707 output_offset of each input section appropriately.
1711 * objdump.c (dump_relocs): Don't crash if section name is NULL.
1715 * filemode.c (filemodestring): Commented out; not used.
1716 (mode_string): Use POSIX definitions.
1717 (ftypelet): Likewise.
1718 (rwx): Removed; no longer used.
1719 * bucomm.c: Include bucomm.h.
1720 (bfd_nonfatal, bfd_fatal): Argument is const.
1721 (fatal): Make __STDC__ version.
1722 * bucomm.h (mode_string): Declare.
1723 * Makefile.in (bucomm.o): Depend upon bucomm.h
1727 * bucomm.c (xmalloc, xrealloc): Deleted.
1728 * bucomm.h (xmalloc, xrealloc): Fix prototypes, to correspond to
1729 libiberty version of functions.
1733 * binutils.texi: Add a chapter summarizing the ways to select
1734 aspects of the target for each program.
1736 * objdump.c (long_options, usage): Add long equivalents for all
1737 remaining short options that lacked them.
1738 * binutils.texi objdump.1: Document them.
1740 * size.c (usage): Tweak usage message.
1741 * size.1: Add missing `=' in examples.
1743 * binutils.texi strip.1 objcopy.1 nlmconv.1 objcopy.c nlmconv.c:
1744 Use "--target=bfdname" as the option to select the BFD target,
1745 like nm and size already do.
1746 Reserve "--format=format" for textual output selection options, but
1747 for now keep old option names as obsolete for backward compatibility.
1749 * strings.c (main, strings_object_file, usage): Add --target option.
1750 * binutils.texi strings.1: Document it.
1754 * ar.c (main): Add \n in error message.
1759 * ar.c (main): Put parens around assignment used as truth value.
1760 * objcopy.c (strip_main): Remove unused variables. Return 0.
1761 (copy_main): Remove unused variables. Return 0.
1762 * objdump.c (display_bfd): Declare return value as void.
1763 (stab_print): Use "" instead of 0 to initialize array.
1764 (dump_stabs_1): Print vma using printf_vma.
1765 (display_info): Put parens around assignment used as truth value.
1766 * strings.c (print_strings): Cast printf arguments.
1768 * objcopy.c (copy_main): Use copy_options, not strip_options.
1770 * nlmheader.y (command): Warn about illegal date values.
1774 * bucomm.c bucomm.h: Run through indent. De-ansidecl-ify.
1775 (bfd_nonfatal): New function.
1776 (bfd_fatal): Call it.
1778 * objcopy.c (smart_rename): Do a copy if the dest file has
1779 multiple hard links. Remove source file on successful copy.
1780 Try to preserve mode and owner on successful rename.
1782 * objcopy.c: Run through indent. Clean up a bit.
1783 Make global variables static.
1784 Make {input,output}_{target,filename}, show_version local
1785 to various functions.
1786 New global variable `status' for exit status.
1787 (strip_main, copy_main): New functions with code from main.
1788 (nonfatal): New macro. Use it globally instead of bfd_perror and
1791 (copy_object): Call mangle_sections with bfd_map_over_sections.
1792 (mangle_sections): Adjust for new calling convention.
1796 * nlmheader.y (command): Accept MAP and FULLMAP without arguments.
1797 * nlmconv.c (main): Change error message for MAP and FULLMAP.
1801 * nlmconv.c (main): Warn about imported symbols that are not in
1802 the IMPORT list even if the IMPORT keyword is not used.
1804 * nlmconv.c (debug, unlink_on_exit): New static variables.
1805 (long_options): Add "debug" and "linker".
1806 (main): Handle -d and -l arguments. Make command line input and
1807 output files optional. Parse the command file before opening the
1808 BFD's, which requires storing more information in local variables.
1809 If INPUT names multiple files, link them together. Use OUTPUT for
1810 the output file name if not named on command line.
1811 (show_usage): Changed for new options.
1812 (link_inputs): New function to automatically invoke linker to
1813 handle multiple INPUT files.
1814 (choose_temp_base_try, choose_temp_base, pexecute): New functions,
1815 mostly copied from gcc/gcc.c.
1816 * nlmconv.h (input_files, output_file): Declare.
1817 * nlmheader.y (input_files, output_file): Define.
1818 (command): Support INPUT with a string_list argument. Support
1820 (string_list): Renamed from module_list.
1821 * Makefile.in (nlmconv.o): Define LD_NAME based on
1822 program_transform_name.
1826 * nlmheader.y (nlmheader_identify): New function. Use it to print
1827 the program name just once, instead of with every error message.
1831 * nlmconv.c (long_options): Changed --header-info to --header-file
1832 to match documentation and usage message.
1836 * objdump.c (dump_relocs): Avoid dereferencing a NULL sym_ptr_ptr
1841 * nlmconv.c (main): Change various types from bfd_size_type to
1842 size_t, since they have to be arguments to fread and fwrite.
1843 Change set from char * to unsigned char *.
1844 (select_output_format): Make mach argument unsigned. Handle
1846 (setup_sections): Don't copy the .reginfo section of an ECOFF
1847 file. Call bfd_set_reloc to initialize the relocation fields.
1848 (copy_sections): Don't copy the .reginfo section of an ECOFF file.
1849 Combine all relocs for a section.
1850 (mangle_relocs): Change type of relocs to permit specific
1851 functions to change it. Call alpha_mangle_relocs for alpha,
1852 default_mangle_relocs for other architectures.
1853 (default_mangle_relocs): New function. Adjust the address of all
1854 relocs by the output_offset.
1855 (i386_mangle_relocs): Change type of relocs argument. Cast length
1856 argument to memmove to size_t.
1857 (alpha_mangle_relocs): New function.
1861 * nlmconv.c (select_output_format): Use nlm32-sparc for
1866 * nlmconv.1: added man page
1867 * objcopy.1: fixed format errors
1871 * Makefile.in: Use CFLAGS as well as LDFLAGS when linking.
1875 * strings.1: Fix typo.
1879 * Makefile.in (DISTSTUFF): Build "info".
1880 (VERSION): Updated to cygnus-2.3.1; 2.3 has gone out.
1884 * objdump.c (dump_stabs): Handle stabs-in-som as implemented
1885 by the new BFD SOM assembler.
1889 * ar.1 c++filt.1 nm.1 objcopy.1 objdump.1 ranlib.1 size.1
1890 strings.1 strip.1: Replace \(em in NAME section with \- so
1891 makewhatis can grok it.
1895 * nlmconv.c (i386_mangle_relocs): Adjust reloc address by
1896 section output_offset.
1900 * binutils.texi: added nlmconv chapter
1904 * Makefile.in: Change RUNTESTFLAGS to RUNTEST_FLAGS
1908 * Makefile.in (distclean): Don't get rid of dvi or info files.
1912 * objcopy.c (S_ISLNK): Define as 0 if there's no S_IFLNK.
1916 * binutils.texi: Move objcopy docs into alphabetical order.
1918 * objdump.c: Use xmalloc instead of malloc.
1922 * objdump.c (info): Rename to formats_info.
1923 (dump_stabs_1): Better comments and formatting.
1927 * ar.c (main): Always create the archive when quick appending,
1928 even if no input files have been given.
1932 * nlmconv.c (main): Set sharedDebugRecordOffset and
1933 sharedDebugRecordCount fields in extended header.
1935 * nlmconv.c (main): Force moduleName field to upper case.
1939 * objcopy.c (main): Give a usage message if there are too many
1944 * Makefile.in (install-info): Rewrite to take advantage of VPATH,
1945 so FSF distributions (with info files in $(srcdir)) install
1947 (DISTSTUFF): Build nlmheader.c too.
1951 * ar.c (program_name): Don't define here.
1952 * objdump.c: Include "bucomm.h".
1953 (xmalloc): Don't declare here.
1954 (program_name): Don't define here.
1955 (program_version): Fixed type in declaration.
1956 * size.c: Include "bucomm.h".
1957 (program_name): Don't declare here.
1961 * objdump.c (fprintf): hide declaration in FPRINTF_ALREADY_DECLARED
1965 * nlmconv.c (i386_mangle_relocs): Resolve and remove PC relative
1966 relocs against defined symbols in the same section.
1970 * Makefile.in (binutils.dvi): use TEXIDIR to find texinfo.tex
1974 * objcopy.c (simple_copy, smart_rename): New functions.
1979 * Makefile.in (clean, distclean): Recurse into testsuite.
1983 * objcopy.c (setup_sections, copy_sections): If stripping, don't
1984 copy SEC_DEBUGGING sections.
1985 * objdump.c (dump_headers): Print SEC_DEBUGGING flag.
1987 * objdump.c (usage): Mention --stabs.
1989 * objcopy.c (copy_object): Copy all applicable file flags.
1990 (copy_file): Don't copy EXEC_P specially here.
1994 * nlmconv.c (main): Adjust data section size to correspond to bss
1995 alignment adjustment. Clear BSF_SECTION_SYM if symbol is moved to
1996 a different section. Use time_t for time variable.
1997 (setup_sections): Only put sections with contents in output NLM.
1998 (i386_mangle_relocs): No symbols are common at this point. Add
1999 casts to avoid warnings.
2003 * objdump.c: Made the --stabs option work for stabs-in-coff.
2004 (ELF_STAB_DISPLAY): Removed.
2005 (dump_elf_stabs): Renamed to dump_stabs, changed to run for
2006 any object file format.
2007 (dump_elf_stabs_1): Renamed to dump_stabs_1, added calls to
2008 generic BFD routines for non-ELF case, changed format of message
2009 for no-section-found case.
2010 (display_bfd): Always call dump_stabs if requested.
2011 (dump_data): Call bfd_section_size to get section size.
2015 * Makefile.in (install): Don't put strings in tooldir/bin.
2019 * nlmconv.c (total_bss_size): Removed.
2020 (main): Set the bss vma to always follow the data section. Move
2021 symbols into new sections, and adjust values by output_offset.
2022 (setup_sections): Don't copy all sections, but instead point all
2023 text sections to .text, all data sections to .data, and all bss
2025 (copy_sections): Adjust accordingly.
2029 Only build nlmconv if configured for a NetWare target.
2030 * configure.in: If we have some *-*-netware* target, or are using
2031 all targets, set BUILD_NLMCONV to $(NLMCONV_PROG) in Makefile.
2032 * Makefile.in (PROGS): Use $(BUILD_NLMCONV) rather than
2037 * objdump.c (ARCH_all): Define ARCH_hppa too.
2038 (dump_headers): Don't test for SEC_BALIGN if it's not defined by
2043 * nlmconv.c (main): Force creation of .bss section. Set up the
2044 sections before looking at the symbols. Move all common symbols
2045 into .bss section. Automatically define _edata and _end. Only
2046 export symbols in the export list, with multiple prefixes if
2047 necessary. Warn if no version. Always create extended header.
2048 Set date automatically if not already set.
2049 (setup_sections): Count size of bss sections.
2050 (mangle_relocs, i386_mangle_relocs): Accept section argument, and
2051 take reloc_count as a changeable pointer; changed callers.
2052 (i386_mangle_relocs): Remove PC relative relocs within a section,
2053 as they require no adjustment.
2054 * nlmheader.y: Fixed memory allocation throughout: token STRING is
2055 now allocated on the heap, and freed if not needed. Null
2056 terminated copyright message. Accept version with only two
2058 (symbol_list_opt): New nonterminal, either symbol_list or empty.
2059 (symbol_list): Use left recursion to avoid overflowing parser
2061 (yylex): Rearranged beginning of line check. Accept quoted
2062 strings using single quotes. End generic argument at comment
2063 character or parentheses.
2064 (string_list_append): Fixed.
2065 (string_list_append1): New function.
2067 * bucomm.h: The first argument to xrealloc is PTR, not char *.
2068 * bucomm.c (xrealloc): Use PTR rather than char *.
2069 * Makefile.in (objdump.o): Depend upon config.status to notice
2070 --with-targets changes.
2071 (nlmconv.o): Depend upon bucomm.h.
2075 * configure.in: Don't pass cpu to config.bfd.
2079 * Makefile.in ($(NM_PROG)): Depend on demangle.o.
2080 (demangle.o): New target.
2081 (cplus-dem.o): Depend on it, to force compilation order when doing
2084 * nm.c (print_symbol_info_{bsd,sysv,posix}): Take a bfd arg.
2085 (struct output_fns print_symbol_info): Ditto.
2086 (long_options, usage, main): Add -C --demangle option.
2087 (print_symname): New function, demangling if requested.
2088 (print_symbols, print_symbol_info_{bsd,sysv,posix}): Use it.
2092 * Makefile.in: Put CFLAGS last in compilation rules and omit from
2093 linking rules. Use ARCHDEFS to compile objdump.c.
2094 Update dependencies.
2095 * configure.in: Construct ARCHDEFS based on the BFD target makefile
2097 * objdump.c: Conditionalize calls to the print_insn_ARCH functions
2098 according to ARCHDEFS.
2102 * ar.c: Removed obsolete and non-functional GNU960 code.
2106 * size.c (berkeley_sum): New function.
2107 (bsssize, datasize, textsize): New global variables.
2108 (bss_section_name, data_section_name, text_section_name): Removed.
2109 (print_berkeley_format): Map berkeley_sum over all the sections,
2110 rather than only reporting sizes of specifically named sections.
2111 * Makefile.in ($(OBJDUMP_PROG)): Removed dependency on size.o.
2115 * nlmconv.c, nlmconv.h, nlmheader.y: New files for program to
2116 convert object files into NetWare Loadable Modules.
2117 * Makefile.in (NLMCONV_PROG): New macro, define to be nlmconv.
2118 (PROGS): Add NLMCONV_PROG.
2119 (nlmheader.c, nlmheader.o, nlmconv.o, $(NLMCONV_PROG)): New
2124 * Makefile.in: define MAKEOVERRIDES to an empty string
2128 * objcopy.c (copy_file): Make failures to process a file nonfatal.
2132 * nm.c: Add -B option, like --format=bsd.
2136 * objcopy.c (copy_file): If the file is neither an object nor an
2137 archive, give an error rather than returning success.
2141 * objdump.c (objdump_print_address): Prefer non-local symbols over
2142 local ones, and especially discriminate against debugging symbols.
2143 Also, for relocateable files, try to find a symbol in the current
2144 section, instead of picking one from some random section with a
2145 convenient value (read, section offset).
2146 (disassemble_data): Cast argument to malloc to size_t first.
2147 (dump_data): Likewise.
2148 (dump_relocs): If a single section name is specified, show relocs
2149 only for that section. Otherwise, silently omit sections without
2150 relocs. Format table nicely even if values are printed using 16
2151 digits instead of 8.
2155 * nm.c: Changes for final version of POSIX.2.
2156 (print_symbol_filename_{bsd,sysv,posix}): New functions.
2157 (formats): Add an element for a pointer to them.
2158 (print_symbols): Call it.
2159 (print_object_filename_posix, print_archive_member_posix): Produce
2160 output according to new POSIX.2 spec.
2162 * strings.c (print_strings): Handle STREAM being NULL.
2163 (strings_a_section): Pass a NULL.
2164 (main): Don't open /dev/null.
2168 * objdump.c (disassemble_data): Handle the m88k.
2169 (display_bfd): Use bfd_errmsg, rather than just claiming that the
2170 bfd is not an object file.
2174 * Makefile.in (TAGS): make work again by naming directories
2175 explicitly rather than depending on undefined macros.
2176 (INSTALL_XFORM): correct bad install target.
2180 * strings.c: Doc fixes.
2184 * Makefile.in: Note dependencies on bucomm.h.
2185 (cplus-dem.o): Link c++filt with version.o.
2187 * strings.c: Include bucomm.h and add prototypes to other decls.
2190 * bucomm.h: Declare xrealloc.
2192 * nm.c, objcopy.c, objdump.c, size.c, strings.c (main, usage): Add
2193 --help option. Put "GNU" in the version message.
2194 (usage): Take stream and exit status as args.
2195 (main): Pass new args to usage.
2199 * strings.c, strings.1: New files.
2200 * binutils.texi: Document strings.
2201 * Makefile.in: Add rules for it.
2205 * objdump.c: Use size-independent bfd elf section names.
2209 * objdump.c (objdump_print_address): Handle wide offsets by
2210 calling sprintf_vma.
2214 * objdump.c (syms2): Removed unused variable.
2215 * objdump.c (remove_useless_symbols): New function.
2216 * objdump.c (comp): Simplify.
2217 * objdump.c (dis-assemble_data): Make simpler and more
2218 efficient how we filter out useless symbols: Just filter
2219 BEFORE the sort (using remove_useless_symbols).
2220 * objdump.c (objdump_print_address): Simplify.
2221 Change output syntax to match gdb.
2225 * Makefile.in: canonicalize install.sh; for use within
2226 this directory (and subdirs)
2228 Mon Jun 14 12:13:22 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
2230 * Makefile.in (install, install-info): remove parentdir support,
2231 use INSTALL_XFORM; define INSTALL_XFORM
2235 * objcopy.c (copy_object): Fix bad size passed to xmalloc().
2239 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
2240 * configure.in: No longer need to configure to get sysdep.h.
2241 * objcopy.c (copy_object): Fix symbol table handling.
2245 * objcopy.c (filter_symbols): Cannot filter the symbols
2246 in place, because that confuses the relocs, so take separate
2247 parameter for output array.
2248 * objcopy.c (sympp): Make two variables: isympp and osympp.
2249 * objcopy.c (copy_object): Allocate separate array (osympp)
2250 for filtered symbols.
2252 Fri Jun 4 10:51:44 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2254 * Makefile.in: change recursion test to presence of a configured
2259 * Makefile.in (underscore.c): Hack the backquoted command so it
2260 doesn't cause Solaris make to bomb.
2264 * Makefile.in: added c++filt and objcopy to MANPAGES variable
2265 * .Sanitize: keep c++filt.1 and objcopy.1
2267 Thu Jun 3 00:32:52 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2269 * Makefile.in: rename LOADLIBES to EXTRALIBS
2273 * c++filt.1, objcopy.1: new man pages
2277 * Makefile.in (install): Also install ar and ranlib in
2278 $(tooldir)/bin; needed for building libgcc.a.
2279 * objdump.c (objdump_print_address): Fix the check
2280 "coincidental" label matches by dis-allowing undefined
2285 * biutils.texi: revised c++filt chapter
2289 * Makefile.in (FLAGS_TO_PASS): Pass down CC and CFLAGS.
2293 * objdump.c (slurp_symtab): Print warning for bad symbol table.
2294 (bfd_elf32_find_section, Elf32_Internal_Shdr): Updated
2295 declarations and uses.
2297 * Makefile.in (DISTSTUFF): Don't build binutils.mm.
2301 * nm.c: Add -f/--format, -P/--portability, -t/--radix options.
2302 Make global variables static.
2303 (main): Make -v like -n, not -V, and make -A like -o, for POSIX.2.
2304 (set_print_radix, set_output_format,
2305 print_{object_filename,archive_filename,archive_member,symbol_info}
2306 {bsd,sysv,posix}): New functions.
2307 (display_file, print_symbols): Call them.
2309 * ar.c: Improve error messages.
2311 * nm.c (main): Handle long options that just set a flag.
2313 * nm.c (main), ar.c (do_show_version), objcopy.c (main), size.c
2314 (main): Exit after printing the version number, per the GNU coding
2319 * README, Makefile.in: Minor updates for 2.2.
2323 * Makefile.in (underscore.c): Automatically generate
2324 (using nm) a file with the variable prepends_underscore.
2325 * Makefile.in (c++filt): Link underscore.o with cplus-dem.o
2326 so that initial underscores get removed iff appropriate.
2327 * binutils.texi: Preliminary documentation for c++filt.
2328 * Makefile.in, binutils.texi: Set to version 2.2.
2330 * NEWS: Mention copy->objcopy renaming and new c++filt program.
2334 * Makefile.in (cplus-dem.o, $(DEMANGLER_PROG)): Build the
2335 demangler via cplus-dem.o, rather than directly from the .c file.
2337 * objcopy.c: Renamed from copy.c, updated comments accordingly.
2338 * Makefile.in, binutils.texi: Renamed copy to objcopy.
2339 * is-strip.c, maybe-strip.c, not-strip.c: Updated comments for
2340 rename of copy to objcopy.
2344 * binutils.texi (strip, -v option): Fix typo.
2348 * Makefile.in (RUNTEST): Define.
2349 (FLAGS_TO_PASS): Pass down RUNTEST.
2353 * Makefile.in (DEMANGLER_PROG): Name it c++filt.
2354 (PROG): Also build and install COPY_PROG.
2358 * Makefile.in: Change definition of $(tooldir) to match FSF.
2362 * size.c (usage): Add missing options.
2363 (main): Clean up option parser.
2365 * objdump.c (usage): Add missing options.
2366 (display_file): Print program name before calling
2369 * nm.c (usage): Add missing options.
2370 (main): Clean up option parser.
2371 (display_file): Print program name before calling
2374 * copy.c (copy_usage, strip_usage): Add missing options.
2376 * ar.c (usage): New function.
2378 (open_inarch, do_quick_append): Print program name before calling
2383 * nm.c (main): Accept and ignore -A and -B for MIPS compatibility.
2387 * Makefile.in: Added FLAGS_TO_PASS so tests get run on freshly
2388 built binaries if they exist. (otherwise the path)
2392 * Makefile.in: Changed check target to use DejaGnu.
2396 * Makefile.in: Remove am29k-pinsn.c, i960-pinsn.c.
2397 objdump.c: a29k and i960 are `disassemble' not `print'.
2399 * objdump.c: Rename print_address to objdump_print_address
2400 and change parameters.
2401 (disassemble_data): Use objdump_print_address.
2405 * objdump.c (disassemble_data): print_insn_sparc is now a
2406 `disassemble' not a `print'.
2407 Makefile.in: Remove sparc-pinsn.c (now in libopcodes.a).
2409 * objdump.c (disassemble_data): Use new read_memory_func stuff.
2413 * objdump.c (fprintf): Declaration of variadic function had better
2414 be a prototype for ANSI C systems.
2416 Mon Mar 22 23:19:46 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2418 * Makefile.in: rename test-install to install-check
2422 * objdump.c (disassemble_data): Add H8500.
2426 * objdump.c (usage): Mention long options.
2430 * nm.c: Modify behavior of -o flag for archives to match
2431 BSD4.4 and Sunos 4: Prefix archive name before each line.
2433 * m68k-pinsn.c: Removed. Subsumed by ../opcodes/m68k-dis.c.
2434 * i386-pinsn.c: Removed. Subsumed by ../opcodes/i386-dis.c.
2435 * Makefile.in: Adjust accordingly.
2436 * objdump.c: Support new-style disassemblers (ones that use
2437 the interface of ../include/dis-asm.h).
2441 * Makefile.in: When making tar file, remove texinfo/*,
2442 except for texinfo/texinfo.tex.
2443 * ardup.c: Add extern declaration of strdup.
2444 * Makefile.in (testsuite): Add 'else true' since otherwise
2445 Ultrix /bin/sh complains.
2449 * Makefile.in: Set VERSION to 2.1.
2450 * README, NEWS: Updates.
2451 * nm.c: Add -v as a synonym for -V.
2455 * configure.in: added testsuite to configdirs.
2456 * Makefile.in: added support for building testsuite.
2460 * objdump.c (disassemble_data): Print function names when
2461 given by bfd_find_nearest_line. If not - still print
2466 * binutils/testsuite: made modifications to testcases, etc., to allow
2467 them to work properly given the reorganization of deja-gnu and the
2468 relocation of the testcases from deja-gnu to a "tool" subdirectory.
2472 * objdump.c (dump_data): Free up section contents each time
2477 * binutils/testsuite: Initial creation of binutils/testsuite.
2478 Migrated dejagnu testcases and support files for testing nm to
2479 binutils/testsuite from deja-gnu. These files were moved "as is"
2480 with no modifications. This migration is part of a major overhaul
2481 of dejagnu. The modifications to these testcases, etc., which
2482 will allow them to work with the new version of dejagnu will be
2483 made in a future update.
2487 * Makefile.in (LIBIBERTY_SRC_DIR, LIBIBERTY_BIN_DIR): New macros.
2488 * Makefile.in (LIBIBERTY): Use LIBIBERTY_BIN_DIR.
2489 * Makefile.in (DEMANGLER_PROG): New program to build. Add macro
2491 * Makefile.in (PROGS): Add DEMANGLER_PROG.
2495 * copy.c, nm.c, objdump.c, size.c: Use new bfd_is_com_section
2496 macro rather than checking for equality to bfd_com_section.
2500 * objdump.c (disassemble_data): Fix code to find first useless
2505 * objdump.c (disassemble_data): Use mips_print_insn for MIPS.
2506 Don't core dump if bfd_find_nearest_line returns false.
2510 * objdump.c (disassemble_data): know how to disassemble z8000s
2515 * arsup.h (interactive), bucomm.h (program_name): Prefix
2516 with 'extern', to avoid warnings from some compilers.
2520 * arparse.y: fix unnecessary shift/reduce
2524 * Makefile.in: Make check depend on all.
2525 * Makefile.in (distclean): Remove sysdep.h.
2526 * size.c: Use %u format where appropriate.
2527 * objdump.c: Standardize: L_SET -> SEEK_SET.
2528 * objdump.c: Use new macro bfd_asymbol_bfd.
2529 * configure.in: Allow std-host as the default ${mys_host}.
2531 Thu Dec 17 19:38:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2533 * Makefile.in: added dvi target, define and use TEXI2DVI
2537 * Makefile.in (dist): Fix permissions before release.
2538 * size.c: Use bfd_size_type (and long) where appropriate.
2539 * ar.c: Make writing a map the default, to be compatible
2540 with SYSV and Posix.2. Remove some bogus kludges that
2541 handled __.SYMDEF directly.
2544 Mon Nov 9 13:36:53 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2546 * Makefile.in: flex no longer needs the -S flag
2548 Sat Nov 7 15:06:13 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2550 * ar.c (extract_file): utime needs a pointer to a utimbuf
2552 * Makefile.in: handle -I includes better, adding $(BASEDIR)/bfd to
2553 the list (since some of the bfd/hosts/*.h files include other
2554 files from that directory)
2558 * i960-pinsn.c (MEM_MAX, MEM_SIZ): Set upper bound properly.
2562 Clean up some old BFD ansification macros.
2564 * arsup.h, bucomm.h, objdump.h: Remove EXFUN from binutils.
2565 It still remains as a local macro in gmalloc.c, which is derived
2566 from some other copy of GNU Malloc somewhere (FIXME).
2568 * ar.c, objdump.c, size.c: Replace EXFUN with PROTO. Make static
2570 * arsup.h: Declare extract_files.
2574 * ar.c (extract_file): instead of checking USG: if POSIX_UTIME,
2575 use utime and utimbuf structure, otherwise if USE_UTIME use utime
2576 and array of two longs, otherwise use utimes.
2580 * binutils.tex: Document yesterday's changes to strip and copy.
2584 * copy.c: Re-do command-line parsing to use getopt_long().
2585 Add long option names. Re-think option letters to be more
2587 * copy.c: New function filter_symbols() for stripping only
2588 debug-symbols and/or local symbols. Use these to support
2589 the previously-missing options of the old FSF strip.
2593 * configure.in (host): Use ${srcdir}/../bfd/configure.host rather
2594 than repeating a copy of it here.
2598 * copy.c (main): Even if is_strip, accept -d argument indicating
2599 alternate output format. Needed by gdb for Nindy.
2601 * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
2605 * binutils.texi: added documentation for "copy"
2607 Tue Oct 6 14:22:56 1992 Per Bothner (bothner at PersSony)
2609 * Makefile.in (*clean rules): Some cleaning up.
2610 * Makefile.in (dist): Make diststuff in gprof for a dist.
2612 * ar.c (do_show_version): New function.
2613 * ar.c (main): Fix so "ar -V" works.
2615 Thu Oct 1 22:44:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2617 * configure.in: now uses the cpu-vendor-os triple instead of
2622 * i960-pinsn.c: Change bzero to memset.
2623 * sparc-pinsn.c: Change index to strchr.
2627 * m68k-pinsn (print_insn_arg, fetch_arg): added support for
2628 operands to memory management instructions, from WRS.
2632 * Makefile.in (install): if $(tooldir) exists, install nm and
2633 strip in $(tooldir)/bin.
2637 * Makefile.in: Let's call it version 2.0.
2641 * Makefile.in: Bump to version 0.98.
2642 * TODO, README: Minor updates.
2644 * Makefile.in: Added mostlyclean, distclean rules,
2645 and cleaned up clean, realclean.
2649 * Makefile.in: map program names through program_transform_name
2654 * Makefile.in: Bump to versions 1.97.90.
2655 * cplus-dem.c: Removed. Was nowhere used - and if some
2656 programs are changed to to demangling should now use the
2657 versions in libiberty.
2661 * configure.in: add we32k
2665 * ar.c (map_over_members): if the element of the archive has a
2666 null name, fill it in.
2668 * nm.c (do_one_rel_file): only warn if a bfd's flags say there
2669 will be symbols and there aren't any.
2673 * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
2677 * nm.c objdump.c: Added support for a +version (-V)
2678 to print the version number.
2680 * ar.c, copy.c: Added support for a -V option to print
2685 * config/mh-apollo68v: removed -g from CC definition.
2687 * Makefile.in: always create installation directories.
2691 * m68k-pinsn.c: Minor fix in style of output (don't use
2692 range to indicate floating point control registers).
2696 * ar.c (main): Don't *always* set the verbose flag!
2700 * copy.c: When is_strip (because it is invoked as the strip
2701 program), follow traditional argv processing:
2702 'strip file1 file2' now strips file1 and file2, rather
2703 than stripping file1 (as input), leaving output in file2.
2707 * objdump.c (display_info, display_info_table): Call
2708 bfd_set_format() on dummy bfd before using it (twice).
2709 * ar.c: Make sure archive is created on command 'r'
2710 even when no elements are inserted. (Clean up and
2711 simplify some non-working related code.)
2715 * configure.in: hppa support doesn't assume hp OS (from sef).
2717 Sat Jul 18 14:35:22 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2719 * configure.in: recognize hppa hosts (bsd & hpux), error messages
2720 to stderr, not stdout
2724 * ar.1, binutils.texi, i960-pinsn.c, nm.1, objdump.1, ranlib.1,
2725 size.1, sparc-pinsn.c, strip.1: removed rcsid's.
2729 * Makefile.dos: removed rcsid.
2733 * objdump.c (display_bfd): print state of BFD_IS_RELAXABLE too
2737 * Makefile.in: Add program_suffix (parallel to program_prefix)
2739 Thu Jun 25 04:52:45 1992 John Gilmore (gnu at cygnus.com)
2741 * nm.c (sorters): Lint. Remove excess whitespace.
2745 * nm.c (valueof macro): Add missing parentheses.
2746 (Their lack screwed up numeric_forward().)
2748 Sun Jun 14 10:33:27 1992 John Gilmore (gnu at cygnus.com)
2750 * objdump.c (dump_elf_stabs): Also dump .stab.index and
2751 .stab.excl sections.
2752 (dump_elf_stabs_1): Split out main body of old dump_elf_stabs.
2753 * objdump.1, binutils.texi: Document new sections dumped.
2755 Fri Jun 12 22:23:35 1992 John Gilmore (gnu at cygnus.com)
2757 * size.c, objdump.c, bucomm.c: Lint.
2759 Thu Jun 11 01:19:06 1992 John Gilmore (gnu at cygnus.com)
2761 * objdump.c (dump_elf_stabs): New feature: --stabs prints out a
2762 .stab section from an ELF file. Installed under #ifdef
2763 ELF_STAB_DISPLAY so it can be easily disabled, since it requires
2764 bfd-internals header files and such.
2765 * objdump.1, binutils.texi: Update for --stabs. Also fix
2766 objdump's doc to use -- rather than + for long options.
2767 (FIXME: Not yet fixed everywhere in binutils.texinfo.)
2771 * objdump.c(display_info), patches from
2777 * objdump.c: Add another enum->int cast, for the sake of
2778 old compilers (such as PCC).
2782 * arlex.l: Don't include <sysdep.h> (unneeded conflicts).
2783 Add declaration of strdup().
2787 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
2788 rules, since these are used when building a distribution.
2789 * Makefile.in (arlex.c): Don't re-direct output, since that
2790 leaves a bogus output files if it fails.
2792 * arlex.l: Make work with lex, for what it's worth.
2793 * Makefile.in: Better lex support.
2794 * Makefile.in (dist): Generate flex and bison outputs
2799 * Makefile.in: get BISON definition right.
2803 * sanity.sh: default TMPDIR to ".".
2807 * binutils.texi: add doc for ar command language.
2811 * arparse.y: make END call ar_end
2812 * arsup.c (ar_end): added, deletes temp file if archive session
2818 * Makefile.in: use bison & flex from ../ if they exist. Also,
2821 * sanity.sh: remove temporary directory when finished.
2825 * Makefile.in: Bump to version 1.97.
2826 * ar.c: Declare errno for machines that need it.
2830 * objdump.c (display_info): Handle error cases without coredump.
2831 Close the dummy temporary file we open in the loop.
2832 * Makefile.in (arsup.o): Add kludge to build with Sun Make.
2836 * Makefile.in: added test-install target.
2838 * sanity.sh: new file.
2840 * Makefile.in: use sanity test on make check.
2844 * Makefile.in: rework CFLAGS so that they can be passed on the
2845 command line to make. Remove MINUS_G. Default CFLAGS to -g.
2849 * arsup.c, arsup.h, arparse.y, arlex.l: support for archive
2854 * Makefile.in: added check target.
2858 * Makefile.in: added clean-info target.
2862 * Makefile.in: remove $(COPY_PROG) from PROGS. It shouldn't be
2863 installed. added tooldir and program_prefix.
2867 * Makefile.in, configure.in: removed traces of namesubdir,
2868 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
2869 copyrights to '92, changed some from Cygnus to FSF.
2871 Sun Feb 16 12:53:02 1992 Per Bothner (bothner at cygnus.com)
2873 * Makefile.in: Bump version to 1.96, and remove -beta
2874 suffix from distribution name.
2875 * m68k-pinsn.c: New macro COERCE_SIGNED_CHAR to extract
2876 the signed value of a character (even if chars are unsigned).
2877 * sparc-pinsn.c: Add new operand types.
2879 Thu Feb 6 12:14:19 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2881 * objdump.c (disassemble_data): don't print a section's contents
2882 if it's not loadable (eg bss)
2884 Tue Jan 28 11:11:06 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2886 * m68k-pinsn.c (print_insn_arg): fixed so that -ve branch
2887 displacements don't get printed as large +ve ones.
2889 Fri Jan 24 14:47:53 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2891 * copy.c, nm.c, objdump.c, size.c : changed to use the
2895 Mon Dec 30 18:34:41 1991 Per Bothner (bothner at cygnus.com)
2897 * bucomm.c (print_arelt_descr): Tweek the output format
2898 so that 'ar tv' output follows Posix 1003.2/D11.
2899 Output is now also identical to Sun's (except __.SYMDEF).
2901 Mon Dec 30 06:09:53 1991 John Gilmore (gnu at cygnus.com)
2903 * Makefile.in: Make `make' output more readable.
2905 Wed Dec 18 15:04:45 1991 Per Bothner (bothner at cygnus.com)
2907 * Makefile.in: Bump to version 1.94.
2909 Wed Dec 11 16:48:09 1991 Steve Chamberlain (sac at cygnus.com)
2911 * ar.c: added "b" to fopens for dos
2912 * configdj.bat, makefile.dos new files from DJ
2914 Tue Dec 10 04:07:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
2916 * Makefile.in: infodir belongs in datadir.
2918 Sat Dec 7 17:09:37 1991 Steve Chamberlain (sac at rtl.cygnus.com)
2920 * bucomm.h: created to hold prototypes of bucomm.c
2921 * objdump.h: created to hold prototyes of objdump.c
2922 * am29k-pinsn.c: include objdump.h
2923 * ar.c: include bucomm.h, get ar.h from the right place and
2925 * bucomm.c: defunize bfd_fatal
2926 * copy.c: include bucomm.h, lint.
2927 * i960-pinsn.h: include bucomm.h
2928 * m68k-pinsn.h: lint
2929 * nm.c: include bucomm.h, lint
2931 * sparc-pinsn.c: include objdump.h
2935 Fri Dec 6 23:02:14 1991 K. Richard Pixley (rich at rtl.cygnus.com)
2937 * Makefile.in: added standards.text support. install using
2938 INSTALL_PROGRAM and INSTALL_DATA.
2940 * configure.in: configure now does all of it's work from objdir so
2941 make file existence tests against ${srcdir}.
2943 Thu Dec 5 22:46:22 1991 K. Richard Pixley (rich at rtl.cygnus.com)
2945 * Makefile.in: idestdir and ddestdir go away. Added copyrights
2946 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
2947 and mandir now keyed off datadir by default.
2949 Wed Dec 4 22:42:03 1991 Per Bothner (bothner at cygnus.com)
2951 * Makefile.in: Bump to version 1.93.
2952 * Makefile.in: Add make-strip.o:maybe-strip.c dependency
2953 for make versions that provide half-baked VPATH-support (e.g. Sun's).
2954 * size.c: Improvements suggested by
2956 - Don't emit (Berkeley) headers if no files were found.
2957 - Return a non-zero return code on failure.
2959 Sat Nov 30 21:34:19 1991 Steve Chamberlain (sac at rtl.cygnus.com)
2961 Changes due to include file renaming:
2962 * am29k-pinsn.c: a29k-opcode.h -> opcode/a29k.h
2963 * sparc-pinsn.c: sparc-opcode.h -> opcode/sparc.h
2964 * m68k-pinsn.c: m68k-opcode.h -> opcode/m68k.h
2965 * nm.c: stab.gnu.h -> aout/stab_gnu.h
2967 Tue Nov 19 19:20:43 1991 Per Bothner (bothner at cygnus.com)
2969 * README: Mention MINIMIZE flag for bfd's make.
2971 Mon Nov 18 12:05:37 1991 Per Bothner (bothner at cygnus.com)
2973 * README: Various improvements.
2975 Sun Nov 17 23:40:59 1991 Per Bothner (bothner at cygnus.com)
2977 * Makefile.in: Bump to version 1.92.
2978 * version.c, Makefile.in: Get version string from Makefile.
2979 * copy.c, is-strip.c, not-strip.c, maybe-strip.c, Makefile.in:
2980 Make the same change that we earlier did for ar/ranlib:
2981 Generate two different binaries for strip and copy and use
2982 a global variable with different values to distinguish
2983 ostrip from copy. (-1 means to use argv[0] to decide,
2984 so you can get the old behavior, but it is no longer the default).
2985 * copy.c (copy_file): Set EXEC_P of output bfd if input is so.
2986 * copy.c (main): If is_strip==-1, compare last 5 chars
2987 of argv[0], not the whole path.
2988 * copy.c (main): Return 0, not 1.
2989 * copy.c (setup_sections): Fix due to change in bfd_make_section
2990 now failing if asked for a duplicate section.
2991 * strip.c, ostrip.c: Removed obsolete files.
2992 * ar.c, not-ranlib.c, maybe-ranlib.c:
2993 Change encoding of is_ranlib variable to be consistent
2994 with is_strip for strip.copy (i.e -1 to means use argv[0]).
2996 Thu Nov 14 20:11:02 1991 Per Bothner (bothner at cygnus.com)
2998 * version.c (program_version): Update to version 1.92.
3000 Tue Nov 12 16:17:53 1991 Per Bothner (bothner at cygnus.com)
3002 * ar.c (get_pos_bfd): Previous fix was missing a "break".
3004 Thu Nov 7 08:55:56 1991 Steve Chamberlain (sac at cygnus.com)
3006 * am29k-pinsn.c: Fixed bug in mtacc, dmac and fmac instruction
3007 encodings. (Thaks to David Wood)
3009 Sun Nov 3 14:50:23 1991 Per Bothner (bothner at cygnus.com)
3011 * Makefile.in ($(DIST_NAME).tar.Z), TODO: Various fixes.
3012 * ar.c (get_pos_bfd): Fix to handling of before/after
3013 positioning options.
3014 * bucomm.c (fatal): MISSING_VFPRINTF is no longer an issue,
3015 since libiberty contains vfprintf etc if otherwise missing.
3016 * m68k-pinsn.c (print_insn_arg): Support BB/BW/BL
3017 type operands, as used by branch instructions.
3018 * nm.c: Delegate printing of symbols to BFD,
3019 by using bfd_print_symbol to do the formatting.
3021 Mon Oct 28 11:20:47 1991 Steve Chamberlain (steve at cygnus.com)
3023 * ar.c (write_archive.c): added unlink before rename since some
3024 systems can't rename onto an existant file.
3026 Mon Oct 21 09:47:23 1991 Steve Chamberlain (steve at rtl.cygnus.com)
3028 * nm.c: now doesn't crash if a symbol with no section and no
3031 Thu Oct 17 15:25:50 1991 Per Bothner (bothner at cygnus.com)
3033 * Makefile.in, version.c: Bump to version 1.91.
3035 Wed Oct 16 11:45:36 1991 Per Bothner (bothner at cygnus.com)
3037 * Makefile.in, ar.c, bucomm.c, copy.c, cplus-dem.c, filemode.c,
3038 i960-pinsn.c, m68k-pinsn.c, nm.c, objdump.c, size.c, sparc-pinsn.c,
3039 * strip.c: Add or update Copyright notice.
3040 * TODO: Add note on 'nm -a'.
3041 * version.c: Update version number to 1.90.
3042 * Makefile.in: Fix making of documentation for dist.
3044 Tue Oct 15 00:17:17 1991 Per Bothner (bothner at cygnus.com)
3047 * Makefile.in: New kludgy rules for making a tarfile.
3048 * Makefile.in: Fix bindir path.
3050 Mon Oct 14 17:34:29 1991 Roland H. Pesch (pesch at cygnus.com)
3052 * Makefile.in: add targets binutils.mm, binutils.me
3054 Fri Oct 11 22:44:21 1991 John Gilmore (gnu at cygnus.com)
3056 * Makefile.in: Avoid Sun Make VPATH bugs by adding dependencies.
3058 Fri Oct 11 12:51:33 1991 Roland H. Pesch (pesch at cygnus.com)
3060 * Makefile.in: add target "binutils.ms"
3062 * binutils.texinfo: minor restructuring for texi2roff comfort.
3064 Fri Oct 11 04:12:28 1991 John Gilmore (gnu at cygnus.com)
3066 Restructure configuration scheme for bfd, binutils, ld.
3068 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
3069 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
3070 Change some config names to match other dirs.
3071 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
3073 * Makefile.in: Use -I. to get sysdep.h.
3075 Wed Oct 9 22:42:56 1991 Per Bothner (bothner at cygnus.com)
3077 * nm.c (print_symbols): Handle NULL name field of symbol.
3078 * Makefile.in: Removed spurious comment.
3080 Tue Oct 8 16:55:03 1991 Roland H. Pesch (pesch at cygnus.com)
3082 * binutils.texinfo: minor typos, phrasing, formatting fixes.
3084 Tue Oct 8 15:13:20 1991 Per Bothner (bothner at cygnus.com)
3086 * configure.in: Get host file from ../bfd/config, not config.
3087 * config/*: Remove config directory and its files.
3089 Tue Oct 8 13:58:59 1991 Roland H. Pesch (pesch at cygnus.com)
3091 * Makefile.in: new targets binutils.dvi, binutils.info
3093 * binutils.texinfo: remove most remaining FIXME's, delete
3094 references to __.SYMDEF by name
3097 Tue Oct 8 10:23:44 1991 Steve Chamberlain (steve at cygnus.com)
3099 * objdump.c (print_address) Print addresses nicely.
3101 Mon Oct 7 11:31:05 1991 Per Bothner (bothner at cygnus.com)
3103 * ar.c, Makefile.in, new files {is,not,maybe}-ranlib.c:
3104 Make two different binaries for ar and ranlib, instead of
3105 distinguishing them at run time using argv[0].
3106 (Old behavior is still available if you "make ar_with_ranlib",
3107 but it is not the default.)
3108 * ranlib.sh (new): An alternative one-line
3109 shell implementation of ranlib.
3111 Fri Oct 4 21:49:44 1991 John Gilmore (gnu at cygnus.com)
3113 * objdump.c: Cope with renames of a few BFD types & enums.
3115 Fri Oct 4 19:08:09 1991 Roland H. Pesch (pesch at cygnus.com)
3117 * binutils.texinfo: add new file (rudimentary docn)
3119 Mon Sep 30 12:30:39 1991 Per Bothner (bothner at cygnus.com)
3121 * config/hmake-news: Add new file (for Sony NEWSOS3).
3122 * bucomm.c (fatal): Conditionally compile fatal() depending on
3123 MISSING_VFPRINTF, and don't confuse the issue with NO_VARARGS.
3124 * objdump.c (dump_headers): Trivial output format change.
3125 * objdump.c (display_info): Loop over integers, not enums,
3126 to appease old compilers.
3128 Mon May 20 16:14:07 1991 Steve Chamberlain (steve at cygint.cygnus.com)
3130 *objdump.c *nm.c *copy.c :hanged some types to work with 64 bit object files
3132 Thu May 16 16:06:55 1991 Steve Chamberlain (steve at cygint.cygnus.com)
3134 * objdump.c (print_address): Make disasembled output more
3135 consistent with gdb and as: Add 0x when printing hex.
3136 Don't print extra leading zeros.
3137 Attempt to not print "filename.o".
3138 * objdump.c: Add some enum-to-int casts to accomodate old compilers.
3141 Fri May 3 22:21:44 1991 John Gilmore (gnu at cygint.cygnus.com)
3143 * copy.c: Change =& constructs to = &, since they confuse older
3151 version-control: never