* ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
[platform/upstream/binutils.git] / binutils / ChangeLog
index b3e1e58..dc1d5e7 100644 (file)
@@ -1,3 +1,475 @@
+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.
+       * nlmconv.c (main): Change error message for MAP and FULLMAP.
+
+Thu Dec  9 17:47:19 1993  Ian Lance Taylor  (ian@deneb.cygnus.com)
+
+       * nlmconv.c (main): Warn about imported symbols that are not in
+       the IMPORT list even if the IMPORT keyword is not used.
+
+       * nlmconv.c (debug, unlink_on_exit): New static variables.
+       (long_options): Add "debug" and "linker".
+       (main): Handle -d and -l arguments.  Make command line input and
+       output files optional.  Parse the command file before opening the
+       BFD's, which requires storing more information in local variables.
+       If INPUT names multiple files, link them together.  Use OUTPUT for
+       the output file name if not named on command line.
+       (show_usage): Changed for new options.
+       (link_inputs): New function to automatically invoke linker to
+       handle multiple INPUT files.
+       (choose_temp_base_try, choose_temp_base, pexecute): New functions,
+       mostly copied from gcc/gcc.c.
+       * nlmconv.h (input_files, output_file): Declare.
+       * nlmheader.y (input_files, output_file): Define.
+       (command): Support INPUT with a string_list argument.  Support
+       OUTPUT.
+       (string_list): Renamed from module_list.
+       * Makefile.in (nlmconv.o): Define LD_NAME based on
+       program_transform_name.
+
+Wed Dec  8 10:09:04 1993  Ian Lance Taylor  (ian@deneb.cygnus.com)
+
+       * nlmheader.y (nlmheader_identify): New function.  Use it to print
+       the program name just once, instead of with every error message.
+
+Mon Dec  6 16:11:32 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * nlmconv.c (long_options): Changed --header-info to --header-file
+       to match documentation and usage message.
+
+Sun Dec  5 01:31:01 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
+
+       * objdump.c (dump_relocs): Avoid dereferencing a NULL sym_ptr_ptr
+       in a relocation.
+
+Thu Dec  2 16:00:06 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * nlmconv.c (main): Change various types from bfd_size_type to
+       size_t, since they have to be arguments to fread and fwrite.
+       Change set from char * to unsigned char *.
+       (select_output_format): Make mach argument unsigned.  Handle
+       bfd_arch_alpha.
+       (setup_sections): Don't copy the .reginfo section of an ECOFF
+       file.  Call bfd_set_reloc to initialize the relocation fields.
+       (copy_sections): Don't copy the .reginfo section of an ECOFF file.
+       Combine all relocs for a section.
+       (mangle_relocs): Change type of relocs to permit specific
+       functions to change it.  Call alpha_mangle_relocs for alpha,
+       default_mangle_relocs for other architectures.
+       (default_mangle_relocs): New function.  Adjust the address of all
+       relocs by the output_offset.
+       (i386_mangle_relocs): Change type of relocs argument.  Cast length
+       argument to memmove to size_t.
+       (alpha_mangle_relocs): New function.    
+
+Wed Nov 17 17:38:58 1993  Sean Eric Fagan  (sef@cygnus.com)
+
+       * nlmconv.c (select_output_format): Use nlm32-sparc for
+       bfd_arch_sparc.
+
+Wed Nov 17 14:41:35 1993  Jeffrey Osier  (jeffrey@thepub.cygnus.com)
+
+        * nlmconv.1:   added man page
+       * objcopy.1:   fixed format errors
+
+Wed Nov 17 12:03:41 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * Makefile.in: Use CFLAGS as well as LDFLAGS when linking.
+
+Wed Nov 17 04:50:55 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * strings.1: Fix typo.
+
+Mon Nov 15 12:03:20 1993  Ken Raeburn  (raeburn@rtl.cygnus.com)
+
+       * Makefile.in (DISTSTUFF): Build "info".
+       (VERSION): Updated to cygnus-2.3.1; 2.3 has gone out.
+
+Sun Nov 14 00:27:24 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
+
+       * objdump.c (dump_stabs): Handle stabs-in-som as implemented
+       by the new BFD SOM assembler.
+
+Sat Nov 13 07:14:05 1993  David J. Mackenzie  (djm@rtl.cygnus.com)
+
+       * ar.1 c++filt.1 nm.1 objcopy.1 objdump.1 ranlib.1 size.1
+       strings.1 strip.1: Replace \(em in NAME section with \- so
+       makewhatis can grok it.
+
+Tue Nov  9 15:22:12 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * nlmconv.c (i386_mangle_relocs): Adjust reloc address by
+       section output_offset.
+
+Fri Nov  5 12:11:52 1993  Jeffrey Osier  (jeffrey@thepub.cygnus.com)
+
+       * binutils.texi:  added nlmconv chapter
+
+Wed Nov  3 16:10:50 1993  Jeffrey Wheat  (cassidy@cygnus.com)
+
+       * Makefile.in: Change RUNTESTFLAGS to RUNTEST_FLAGS
+
+Wed Nov  3 15:09:23 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
+
+       * Makefile.in (distclean): Don't get rid of dvi or info files.
+
+Tue Nov  2 13:29:59 1993  David J. Mackenzie  (djm@rtl.cygnus.com)
+
+       * objcopy.c (S_ISLNK): Define as 0 if there's no S_IFLNK.
+
+Fri Oct 29 16:02:34 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * binutils.texi: Move objcopy docs into alphabetical order.
+
+       * objdump.c: Use xmalloc instead of malloc.
+
+Fri Oct 29 11:11:14 1993  Stan Shebs  (shebs@rtl.cygnus.com)
+
+       * objdump.c (info): Rename to formats_info.
+       (dump_stabs_1): Better comments and formatting.
+
+Thu Oct 28 19:43:16 1993  Stan Shebs  (shebs@rtl.cygnus.com)
+
+       * ar.c (main): Always create the archive when quick appending,
+       even if no input files have been given.
+
+Wed Oct 27 12:03:06 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * nlmconv.c (main): Set sharedDebugRecordOffset and
+       sharedDebugRecordCount fields in extended header.
+
+       * nlmconv.c (main): Force moduleName field to upper case.
+
+Mon Oct 25 16:45:42 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * objcopy.c (main): Give a usage message if there are too many
+       arguments.
+
+Mon Oct 25 10:37:08 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
+
+       * Makefile.in (install-info): Rewrite to take advantage of VPATH,
+       so FSF distributions (with info files in $(srcdir)) install
+       properly.
+       (DISTSTUFF): Build nlmheader.c too.
+
+Fri Oct 22 11:43:23 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
+
+       * ar.c (program_name): Don't define here.
+       * objdump.c: Include "bucomm.h".
+       (xmalloc): Don't declare here.
+       (program_name): Don't define here.
+       (program_version): Fixed type in declaration.
+       * size.c: Include "bucomm.h".
+       (program_name): Don't declare here.
+
+Fri Oct 22 14:10:41 1993  Mark Eichin  (eichin@cygnus.com)
+
+       * objdump.c (fprintf): hide declaration in FPRINTF_ALREADY_DECLARED
+
+Fri Oct  1 12:43:00 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * nlmconv.c (i386_mangle_relocs): Resolve and remove PC relative
+       relocs against defined symbols in the same section.
+
+Thu Sep 30 16:46:26 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
+
+       * Makefile.in (binutils.dvi): use TEXIDIR to find texinfo.tex
+
+Sat Sep 25 18:09:29 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * objcopy.c (simple_copy, smart_rename): New functions.
+       (main): Use them.
+
+Fri Sep 24 15:38:29 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * Makefile.in (clean, distclean): Recurse into testsuite.
+
+Thu Sep 23 01:05:06 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * objcopy.c (setup_sections, copy_sections): If stripping, don't
+       copy SEC_DEBUGGING sections.
+       * objdump.c (dump_headers): Print SEC_DEBUGGING flag.
+
+       * objdump.c (usage): Mention --stabs.
+
+       * objcopy.c (copy_object): Copy all applicable file flags.
+       (copy_file): Don't copy EXEC_P specially here.
+
+Mon Sep 20 19:28:57 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * nlmconv.c (main): Adjust data section size to correspond to bss
+       alignment adjustment.  Clear BSF_SECTION_SYM if symbol is moved to
+       a different section.  Use time_t for time variable.
+       (setup_sections): Only put sections with contents in output NLM.
+       (i386_mangle_relocs): No symbols are common at this point.  Add
+       casts to avoid warnings.        
+
+Fri Sep 10 11:00:40 1993  Stan Shebs  (shebs@rtl.cygnus.com)
+
+       * objdump.c: Made the --stabs option work for stabs-in-coff.
+       (ELF_STAB_DISPLAY): Removed.
+       (dump_elf_stabs): Renamed to dump_stabs, changed to run for
+       any object file format.
+       (dump_elf_stabs_1): Renamed to dump_stabs_1, added calls to
+       generic BFD routines for non-ELF case, changed format of message
+       for no-section-found case.
+       (display_bfd): Always call dump_stabs if requested.
+       (dump_data): Call bfd_section_size to get section size.
+
+Fri Sep 10 08:12:23 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
+
+       * Makefile.in (install): Don't put strings in tooldir/bin.
+
+Mon Sep  6 15:39:04 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * nlmconv.c (total_bss_size): Removed.
+       (main): Set the bss vma to always follow the data section.  Move
+       symbols into new sections, and adjust values by output_offset.
+       (setup_sections): Don't copy all sections, but instead point all
+       text sections to .text, all data sections to .data, and all bss
+       sections to .bss.
+       (copy_sections): Adjust accordingly.
+
 Thu Sep  2 12:34:03 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
        Only build nlmconv if configured for a NetWare target.