* ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
[platform/upstream/binutils.git] / binutils / ChangeLog
index fe1248a..dc1d5e7 100644 (file)
@@ -1,3 +1,242 @@
+Thu Feb 17 09:28:23 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c, 
+       size.c: Use bfd_get_error and bfd_set_error and new error names.
+
+Fri Feb 11 15:54:51 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
+
+Mon Feb  7 19:45:52 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * objdump.c (disassemble_data): Handle bfd_arch_powerpc.
+
+Sun Feb  6 22:08:20 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * strings.c objdump.c nlmconv.c objcopy.c nm.c ar.c size.c (main):
+       Call xmalloc_set_program_name.
+
+Fri Feb  4 10:46:01 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * objcopy.c (filter_bytes): Make MEMHUNK a char *, not PTR, so we
+       can do arithmetic on it.
+
+Thu Feb  3 14:06:41 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * objdump.c (dump_section_stabs, read_section_stabs,
+       print_section_stabs): Functions broken out of dump_stabs_1.
+       Free the stabs and strings when done with them.
+
+Wed Feb  2 13:42:23 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * nlmconv.c (main): Use bfd_get_flavour instead of struct member.
+       * ar.c (print_contents, extract_file), size.c
+       (print_berkeley_format, print_sysv_format): Use bfd_get_filename and 
+       bfd_my_archive instead of dereferencing the structs directly.
+
+       * ar.c: Use bfd_fatal and bfd_nonfatal instead of bfd_perror and exit.
+       Indent.  Remove DEFUNs.
+
+       * nlmconv.c (main), objcopy.c (copy_file): Print matching formats
+       if ambiguous match.
+       * nm.c (display_file, display_archive), size.c (display_bfd):
+       Eliminate gotos.
+       Print matching formats if there is an ambiguous match.  Use
+       bfd_nonfatal instead of hardcoded error message if nothing matches.
+
+       * arsup.c, ar.c, objdump.c: Use bfd_get_filename instead of
+       abfd->filename. 
+
+       * nm.c (display_archive): New function, from code in display_file.
+       (display_rel_file): Renamed from do_one_rel_file.
+
+       * size.c: Indent.
+       (display_archive): New function from code in display_file.
+       (display_file): Check bfd_close error return.
+
+       * strings.c (strings_object_file): Check bfd_check_format
+       error return.
+
+       * strings.c, objdump.c, size.c: Use bfd_nonfatal instead of bfd_perror.
+
+       * bucomm.c: Delete references to exit_handler.  It wasn't set
+       anywhere, and now that we're using the libiberty xmalloc, it
+       wouldn't always get called before exiting.
+       (list_matching_formats): Function moved from objdump.c.
+       * bucomm.h: Declare it.
+
+       * objdump.c (disassemble_data): Move some variable decls closer to
+       their use.  Add some comments.  Replace a nested block with a
+       return. 
+
+Mon Jan 31 18:50:41 1994  Stan Shebs  (shebs@andros.cygnus.com)
+
+       * objdump.c (display_target_list, display_info_table): Check that
+       the bfd of the dummy output file is not null.
+
+Wed Jan 26 13:13:18 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * objcopy.c (filter_bytes): New function.
+       (copy_section): Call it.
+       (copy_options, copy_usage, copy_main): Add --byte option to
+       activate it.  Appropriate the -b option (which was an undocumented
+       synonym for -F) for it, also.  Add --interleave, -i option for
+       additional control.
+       (setup_section, copy_section, mangle_section): Renamed with no `s'
+       on the end.
+       * objcopy.1, binutils.texi: Document the new options.
+
+       * objdump.c (display_target_tables, display_target_list):
+       New functions broken out of display_info.
+       Eliminate some magic constants.  Use more meaningful variable names.
+       (dump_bfd_header): New function broken out of display_bfd.
+       (dump_section_header): New function broken out of dump_headers.
+       (remove_useless_symbols): Don't shadow global variable name with
+       parameter. 
+       (objdump_print_address): Fix backward test.
+
+Tue Jan 25 19:40:54 1994  Stan Shebs  (shebs@andros.cygnus.com)
+
+       * bucomm.c (print_arelt_descr): Change decl of `when' to time_t.
+       * objdump.h: Removed.
+
+Mon Jan 24 13:29:02 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * objdump.c (display_file): Remove call to list_matching_formats.
+       It would never be called.
+       (list_matching_formats): Take an arg giving the list of matching
+       formats.
+       (display_bfd): Pass the arg, and get it filled in by calling
+       bfd_check_format_matches instead of bfd_check_format.
+       (display_info, display_info_table): target_vector was renamed to
+       bfd_target_vector. 
+
+       * binutils.texi (objdump): Note some limitations of -h section
+       address printing.
+
+Sat Jan 22 16:20:46 1994  Stan Shebs  (shebs@andros.cygnus.com)
+
+       * Makefile.in (MALLOC): Set to emptiness by default.
+       (ALL_CFLAGS): Add and use.
+       (arparse.h): Make it depend on arparse.y.
+       * ar.c (libbfd.h): Don't require to be in ../bfd.
+       * objdump.c (comp): Rename to compare_symbols.
+
+Fri Jan 21 20:22:30 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * objdump.c (list_matching_formats): If the file format is ambiguous,
+       print the matching names so the user can choose one.
+       (display_bfd): Call it.
+       (display_file): Call it.
+
+Fri Jan 21 19:17:25 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * objdump.c (disassemble_data): Support bfd_arch_rs6000.
+
+Mon Jan 17 13:57:25 1994  Stan Shebs  (shebs@andros.cygnus.com)
+
+       * objdump.c (stab_name): Allocate dynamically.
+       (stab_print): Use pointers to strings instead of char arrays.
+       (dump_stabs): Change alloc and init of arrays appropriately.    
+       (dump_stabs_1): Always decide whether to print stab_name or
+       the stab's type number, if unnamed.
+
+Fri Jan 14 14:42:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * objcopy.c (strip_main, copy_main): Don't clobber the input file
+       if copy_file fails.
+
+       * nlmconv.c (main): Warn about an attempt to use a shared library
+       with uninitialized data.
+
+       * nlmconv.c (setup_sections): Make sure that we align the
+       output_offset of each input section appropriately.
+
+Thu Jan 13 17:32:44 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * objdump.c (dump_relocs): Don't crash if section name is NULL.
+
+Tue Jan 11 19:46:33 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * filemode.c (filemodestring): Commented out; not used.
+       (mode_string): Use POSIX definitions.
+       (ftypelet): Likewise.
+       (rwx): Removed; no longer used.
+       * bucomm.c: Include bucomm.h.
+       (bfd_nonfatal, bfd_fatal): Argument is const.
+       (fatal): Make __STDC__ version.
+       * bucomm.h (mode_string): Declare.
+       * Makefile.in (bucomm.o): Depend upon bucomm.h
+
+Sun Jan  9 12:03:20 1994  Ken Raeburn  (raeburn@rtl.cygnus.com)
+
+       * bucomm.c (xmalloc, xrealloc): Deleted.
+       * bucomm.h (xmalloc, xrealloc): Fix prototypes, to correspond to
+       libiberty version of functions.
+
+Thu Jan  6 06:18:15 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * binutils.texi: Add a chapter summarizing the ways to select
+       aspects of the target for each program.
+
+       * objdump.c (long_options, usage): Add long equivalents for all
+       remaining short options that lacked them.
+       * binutils.texi objdump.1: Document them.
+
+       * size.c (usage): Tweak usage message.
+       * size.1: Add missing `=' in examples.
+
+       * binutils.texi strip.1 objcopy.1 nlmconv.1 objcopy.c nlmconv.c:
+       Use "--target=bfdname" as the option to select the BFD target,
+       like nm and size already do.
+       Reserve "--format=format" for textual output selection options, but
+       for now keep old option names as obsolete for backward compatibility.
+
+       * strings.c (main, strings_object_file, usage): Add --target option.
+       * binutils.texi strings.1: Document it.
+
+Sat Jan  1 13:58:24 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * ar.c (main): Add \n in error message.
+
+Thu Dec 23 12:23:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       gcc -Wall lint:
+       * ar.c (main): Put parens around assignment used as truth value.
+       * objcopy.c (strip_main): Remove unused variables.  Return 0.
+       (copy_main): Remove unused variables.  Return 0.
+       * objdump.c (display_bfd): Declare return value as void.
+       (stab_print): Use "" instead of 0 to initialize array.
+       (dump_stabs_1): Print vma using printf_vma.
+       (display_info): Put parens around assignment used as truth value.
+       * strings.c (print_strings): Cast printf arguments.
+
+       * objcopy.c (copy_main): Use copy_options, not strip_options.
+
+       * nlmheader.y (command): Warn about illegal date values.
+
+Wed Dec 15 11:18:03 1993  David J. MacKenzie  (djm@frosty.eng.umd.edu)
+
+       * bucomm.c bucomm.h: Run through indent.  De-ansidecl-ify.
+       (bfd_nonfatal): New function.
+       (bfd_fatal): Call it.
+
+       * objcopy.c (smart_rename): Do a copy if the dest file has
+       multiple hard links.  Remove source file on successful copy.
+       Try to preserve mode and owner on successful rename.
+
+       * objcopy.c: Run through indent.  Clean up a bit.
+       Make global variables static.
+       Make {input,output}_{target,filename}, show_version local
+       to various functions.
+       New global variable `status' for exit status.
+       (strip_main, copy_main): New functions with code from main.
+       (nonfatal): New macro.  Use it globally instead of bfd_perror and
+       bfd_fatal.
+
+       (copy_object): Call mangle_sections with bfd_map_over_sections.
+       (mangle_sections): Adjust for new calling convention.
+
 Fri Dec 10 11:28:11 1993  Ian Lance Taylor  (ian@deneb.cygnus.com)
 
        * nlmheader.y (command): Accept MAP and FULLMAP without arguments.