home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 7 / FreshFishVol7.bin / bbs / gnu / binutils-1.8.x-src.lha / GNU / src / amiga / binutils-1.8.x / ChangeLog < prev    next >
Text File  |  1993-09-22  |  54KB  |  1,431 lines

  1. Thu Jun 28 17:03:51 1990  Mike Haertel  (mike at ducky)
  2.  
  3.     * ld.c: (compute_mach_o_section_offsets):  Bug fix for -r.
  4.     (relocate_file_addresses): Replace ~N_EXT with N_TYPE,
  5.     undoing earlier change which broke -g.
  6.  
  7. Wed Jun 20 13:34:11 1990  Mike Haertel  (mike at thor.acc.stolaf.edu)
  8.  
  9.     * gprof.c: Make qsort compare functions take const void *
  10.     arguments for compatibility with the standard.
  11.  
  12. Tue Jun 19 19:23:41 1990  Mike Haertel  (mike at ducky)
  13.  
  14.     * ld.c: (do_file_warnings, do_relocation_warnings):
  15.     Always print the object file name in error messages,
  16.     even if we also know a source file name.  Use
  17.     print_file_name() to properly print the names of
  18.     files that came from libraries.
  19.     (getpagesize): Fake getpagesize() for sun 4's.
  20.  
  21. Wed Jun 13 13:11:21 1990  Mike Haertel  (mike at ducky)
  22.  
  23.     * Makefile: (ld): Link the demangler.
  24.     * cplus-dem.c: Don't include <memory.h> on NeXT.
  25.     * ld.c:    Include <sys/resource.h> unless USG.
  26.     (demangler): New variable; unconditionally set
  27.     to cplus_demangle().  This is different from how
  28.     ld++ did it, but conditionalizing on whether -lg++
  29.     is specified seems too much of a kludge.  The
  30.     demangler will only demangle names that look like
  31.     they came from g++ anyway.
  32.     (main): Attempt to raise the stack limit so we
  33.     don't barf on large files.
  34.     (decode_command): Add new option `-nostdlib', with
  35.     new flag `no_standard_dirs'.
  36.     (file_open): Eliminate unused variable `p'.
  37.     Deal with the case of no standard library dirs.
  38.     (enter_file_symbols): Eliminate unused `lowest_set_vector'.
  39.     (enter_global_ref): Logically and nlist.n_type with
  40.     ~N_EXT rather than N_TYPE; otherwise, e.g.,  <stab.h>'s
  41.     N_FUN would get turned into N_TEXT, which we don't want.
  42.     (subfile_wanted_p): Eliminate Kingdon's "if the user
  43.     declares 'int pipe;' we don't want to get 'pipe()'
  44.     from the library" bugfix, because (first of all)
  45.     it breaks g++, and secondly, it was generally wrong.
  46.     If the user declares "int errno;" and the library
  47.     declares "int errno = 0;" we want to get the library's
  48.     version.  The proper fix will require some thought.
  49.     (digest_symbols): Eliminated unused variable `erred'.
  50.     (relocate_file_addresses): Use ~N_EXT instead of N_TYPE.
  51.     (address_to_line): Likewise.
  52.     (do_relocation_warnings): Eliminate unused variables
  53.     `next' and `source'.  Use the demangler to print names.
  54.     (do_file_warnings): Use the demangler when possible.
  55.     (do_warnings): Eliminate unused variable `i'.
  56.     (initialize_a_out_data_start): If no entry symbol
  57.     was given, set it to "start", if sequent.
  58.     (perform_relocation): Eliminate variable `data_input_address'
  59.     performing copy propogation by hand to the one place it
  60.     was used.  Get rid of misleading comments.
  61.     (coptxtrel): Use ~N_EXT instead of N_TYPE.
  62.     (copdatrel): Likewise.
  63.     (write_syms): Likewise.
  64.  
  65. Tue Jun 12 11:16:26 1990  Mike Haertel  (mike at ducky)
  66.  
  67.     * Makefile: Use $(CFLAGS) when linking.
  68.     * ar.c: (struct member_desc): date is long.
  69.     (scan): Fully initialize member_desc.
  70.     (delete_from_map): Clobber info.name instead
  71.     of unlinking from list.
  72.     (update_symdefs): Only install new symdefs for
  73.     members that *have* them.
  74.     Changes for MACH_O:
  75.     (read_header_info): New function.
  76.     (make_new_symdefs): Use it.
  77.     * gprof.c: fread() returns size_t for ANSI.
  78.     Declare qsort() properly for ANSI.
  79.     Move #include <assert.h> to the top.
  80.     size_t is an unsigned int.
  81.     Changes for MACH_O:
  82.     (read_header_info): New function.
  83.     (main): Use it.
  84.     (badsym): Allow N_SECT symbols.
  85.     (fatal): Print a space after the colon.
  86.     * ld.c: Changes for MACH_O:
  87.     (struct file_entry):  New fields containing header
  88.     info but no explicit struct exec, as well as file type info.
  89.     Also section ordinals for Mach-O files.
  90.     (output_file_type): New global variable.
  91.     (output_style): New global variable, also supersedes
  92.     the flag relocatable_output.
  93.     Removed a.out specific stuff from global variables.
  94.     (output_*_offset): New global variables initialized
  95.     according to the output file type.
  96.     (decode_command): Remove a.out specific stuff.
  97.     (deduce_file_type): New function.
  98.     (read_a_out_header): New function.
  99.     (read_mach_o_header): New function.
  100.     (read_header): Use the above functions.
  101.     (read_entry_symbols): Use new file_entry fields;
  102.     call translate_mach_o_symbols().
  103.     (read_entry_strings): Use new file_entry fields;
  104.     no longer deduce symseg presence.
  105.     (read_file_symbols): Use deduce_file_type().
  106.     (enter_file_symbols): Use new file_entry fields.
  107.     Display N_INDR refs differently.  Move default: in
  108.     display switch out of #ifdef sequent.
  109.     (contains_symbol): Use new file_entry fields.
  110.     (symdef_library): Use xmalloc().  Remember to
  111.     free subentry->strings, but only if we allocated them.
  112.     (process_subentry): Use new file_entry fields.
  113.     (subfile_wanted_p): Likewise.
  114.     (digest_symbols): Use new functions initialize_text_start()
  115.     and initialize_data_start().  Remove a.out specific stuff.
  116.     (consider_file_section_lengths): Use new file_entry fields.
  117.     (relocate_file_addresses): Use new file_entry fields.
  118.     (describe_file_sections): Likewise.
  119.     (list_file_locals): Likewise.
  120.     (next_debug_entry): Likewise.
  121.     (init_debug_scan): Likewise.
  122.     (do_relocation_warnings): Likewise.
  123.     (do_file_warnings): Likewise.
  124.     (do_warnings): Use new global output_style.
  125.     (initialize_a_out_text_start): New function.
  126.     (initialize_a_out_data_start): New function.
  127.     (compute_a_out_section_offsets): New function.
  128.     (compute_more_a_out_section_offsets): New function.
  129.     (write_a_out_header): New function.
  130.     (translate_mach_o_symbols): New function.
  131.     (translate_mach_o_relocation): New function.
  132.     (initialize_mach_o_text_start): New function.
  133.     (initialize_mach_o_data_start): New function.
  134.     (compute_mach_o_section_offsets): New function.
  135.     (compute_more_mach_o_section_offsets): New function.
  136.     (write_mach_o_header): New function.
  137.     (generate_mach_o_symbols): New function.
  138.     (generate_mach_o_relocations): New function.
  139.     (initialize_text_start): New function switch on
  140.     ouput_file_type.
  141.     (initialize_data_start): Likewise.
  142.     (compute_section_offsets): Likewise.
  143.     (compute_more_section_offsets): Likewise.
  144.     (write_header): Switch on output_file_type.
  145.     (write_output): Use the above functions.  Bug fix
  146.     for umask().
  147.     (write_text):  Use output_text_offset.
  148.     (text_offset): No longer used.
  149.     (read_file_relocation): Use new file_entry fields.
  150.     Call translate_mach_o_relocation() for Mach-O input files.
  151.     (copy_text): Likewise.
  152.     (write_data): Use output_data_offset.
  153.     (copy_data): Use new file_entry fields.  Call
  154.     translate_mach_o_relocation() for Mach-O input files.
  155.     (perform_relocation): Use new file_entry fields.
  156.     (write_rel): Use output_*rel_offset.
  157.     (coptxtrel): Use new file_entry fields.  Call
  158.     generate_mach_o_relocations() for Mach-O output files.
  159.     (copdatrel): Likewise.
  160.     (write_string_table): Use output_strs_{offset,size}.
  161.     (write_syms):Use output_{syms,strs}_{offset,size}.
  162.     Use n_sect field if N_SECT is defined.  Call
  163.     generate_mach_o_symbols() for Mach-O output files.
  164.     (write_file_syms): Likewise.
  165.     (write_symsegs): Use output_symseg_offset.
  166.     (write_file_symseg): Use new file_entry fields.
  167.     Changes for NeXT:
  168.     (N_TXTADDR): Provide version for NeXT.
  169.     (N_DATADDR): Provide version for NeXT.
  170.     (enter_global_ref): Deal with NeXT N_INDR weirdness.
  171.     (compute_a_out_section_offsets): Likewise.
  172.     (CPU_TYPE, et al): Mach-O info for the NeXT.
  173.     (compute_mach_o_section_offsets): Deal with N_INDR
  174.     strangeness.
  175.     (write_rel): Likewise.
  176.     (coptxtrel): Likewise.
  177.     (copdatrel): Likewise.
  178.     (write_syms): Likewise.
  179.     (symtab_init): Deal with NeXT shared library strangeness.
  180.     * nm.c: Changes for MACH_O:
  181.     (do_one_file): Remove a.out specific stuff.
  182.     (read_header_info): New function.
  183.     (do_one_rel_file): Use it.
  184.     (read_header): Removed.
  185.     (print_one_symbol): Deal with Mach-O section ordinals.
  186.     * size.c: Changes for MACH_O:
  187.     (do_one_file): Remove a.out specific stuff.
  188.     (read_header_info): New function.
  189.     (do_one_rel_file): Use it.
  190.     (read_header): Removed.
  191.     * strip.c: Changes for MACH_O:
  192.     (struct file_entry): Remove struct exec; add generic
  193.     fields to contain necessary information.
  194.     (main): Use new file_entry fields.
  195.     (file_open): Remove a.out specific stuff.
  196.     (read_header): Use new file_entry fields.  Handle
  197.     Mach-O files.
  198.     (read_entry_symbols): Use new file_entry fields.
  199.     (count_file_