home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / binutils-1.8.x.tar.gz / binutils-1.8.x.tar / binutils / ChangeLog < prev    next >
Text File  |  1991-11-27  |  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_symbols): Likewise.
  200.     (rewrite_file_symbols): Likewise.
  201.     (write_file_syms): Likewise.
  202.     (modify_relocation): Likewise.
  203.  
  204. Mon May 28 16:25:59 1990  Mike Haertel  (mike at apple-gunkies)
  205.  
  206.     * Copied the binutils home to work on.  So please anyone
  207.     else don't make any changes!!!!
  208.  
  209.     * Removed gprof.texinfo from ARCHLIST because the file
  210.     it was symbolically linked to mysteriously disappeared.
  211.  
  212. Mon May 21 18:39:33 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
  213.  
  214.     * Makefile (clean): Also remove $(archpfx)*.o.
  215.  
  216.     * nm.c (print_one_symbol): Cast n_other and n_desc to unsigned
  217.     before passing to printf.
  218.  
  219. Tue May 15 15:19:49 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  220.  
  221.     * ARCHLIST: Add signame.h.
  222.  
  223. Sun May  6 23:41:35 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  224.  
  225.     * Makefile (dist): Don't make an uncompressed tar file.
  226.  
  227. Sat Apr  7 22:58:27 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  228.  
  229.     * Makefile (MALLOC): Add.
  230.     ARCHLIST: Add gmalloc.c.
  231.     gmalloc.c: New file linked from ../lib/malloc.
  232.  
  233. Fri Apr  6 00:02:22 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  234.  
  235.     * Makefile: Make objdump depend on a.out.gnu.h.
  236.  
  237.     * gprof.c: Remove never-used declaration of getopt.
  238.  
  239.     * gprof.c: Add REMOVE_TIME_IF_THERE to not complain on gcc-compiled
  240.     programs.
  241.  
  242. Tue Mar 20 15:41:22 1990  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  243.  
  244.     * hp-bin/mkhplib: Create a dummy libg.a.
  245.  
  246. Thu Mar  1 14:22:02 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  247.  
  248.     * ld.c (classify_arg, decode_option): Functions removed, with
  249.     some of the code moved to decode_command.
  250.     (decode_command): Use getopt_long_only instead of custom arg parser.
  251.     (usage, fatal, fatal_with_file): Use `progname' instead
  252.     of hardcoded name.
  253.     (usage): If STRING is null, don't print it.
  254.  
  255.     * Makefile: Link ld with GNU_GETOPT_LONG.
  256.  
  257. Wed Feb 28 14:32:06 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  258.  
  259.     * ranlib.c (main): Call psignal() with arguments in the correct    order.
  260.     signame.c, signame.h: New files (linked from ../lib).
  261.     ranlib.c: Include signame.h.
  262.  
  263.     * Makefile: Make sure LIBS is after every program which
  264.     uses GNU_GETOPT_LONG (for alloca()).
  265.  
  266. Thu Feb 15 23:35:07 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
  267.  
  268.     * ar.c (mywrite): New function which checks for errors.
  269.     All over: Use it instead of write.
  270.     (perror_with_name): If errno >= sys_nerr, print "unknown error"
  271.     not "can't open".
  272.     (extract_member): Use ferror to check for error.
  273.  
  274. Tue Feb 13 14:29:24 EST 1990    Jay Fenlason (hack@wookumz.ai.mit.edu)
  275.  
  276.     * strip.c (rewrite_file_symbols)  Seek to the right place in
  277.     COFF files.  A three line patch from Eliot Dresselhaus
  278.     (eliot@mgm.mit.edu).
  279.  
  280. Wed Jan 31 22:15:11 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  281.  
  282.     * hp-include: Remove sys/fcntl.h
  283.  
  284.     * nm.c [USG], ar.c [LOCKS]: Include <fcntl.h> not <sys/fcntl.h>.
  285.  
  286. Fri Jan 26 20:13:12 1990  Mike Haertel  (mike at rice-chex)
  287.  
  288.     * Makefile: Removed references to GNU CC in copyright notice.
  289.  
  290. Thu Jan 11 03:32:52 1990  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  291.  
  292.     * ARCHLIST: Include ARCHLIST in distribution.
  293.  
  294.     * ranlib.c: If X_OK is not defined, define it (for USG).
  295.     (main, touch_symdefs): Include program name in error messages.
  296.  
  297.     * strip.c (xmalloc): Don't check for size != 0.
  298.     (usage): New function.
  299.     (main): Call usage instead of fprintf or fatal.
  300.  
  301. Wed Jan 10 15:06:00 1990  Jim Kingdon  (kingdon at pogo)
  302.  
  303.     * ld.c (subfile_wanted_p): Never use a library to satisfy a
  304.     program's common symbol.
  305.  
  306.     * ld.c (symtab_init) [sun]: Use symbol_define for __DYNAMIC.
  307.     [sequent]: Same for _i387_flt.
  308.  
  309. Wed Jan 10 01:44:58 1990  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  310.  
  311.     * size.c (main): Exit with 0 status normally, instead of garbage.
  312.     * strip.c (main): Make -g a recognized option. Document -g in
  313.     usage message.  Exit with 0 status normally.
  314.     * nm.c (main): Exit with 0 status normally.
  315.     * gprof.c (main): Ditto.
  316.  
  317. Mon Jan  8 00:06:55 1990  Mike Haertel  (mike at rice-chex)
  318.  
  319.     * strip.c (main):  Made -g a synonym for -S (strip debugging
  320.     symbols) for greater mnemonic value.
  321.  
  322. Thu Dec 28 02:41:37 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  323.  
  324.     * objdump.c, ld.c, nm.c, size.c (xmalloc, xrealloc): Take the
  325.     change to return 0 if size is 0 back out.  bfox convinced me
  326.     that, assuming that programs do not allocate 0 bytes
  327.     intentionally, printing an error message if they try makes
  328.     it easier to track down the bug.
  329.  
  330. Sat Dec 23 00:49:43 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  331.  
  332.     * ld.c (usage): Mention some options that were missing from the
  333.     usage message.
  334.  
  335.     * ranlib.c (main): stbf wasn't defined.  Use access instead
  336.     of stat, since it tests for execute permission.
  337.  
  338. Fri Dec 22 23:38:15 1989  David J. MacKenzie  (djm at rice-chex)
  339.  
  340.     * ar.c, ld.c, nm.c: Put various alloca declaration stuff in
  341.     one place, and declare it as char * if not GNU C or sparc.
  342.  
  343.     * ld.c, nm.c, size.c (xmalloc, xrealloc): Return char *, not int.
  344.     Ok to return 0 if 0 bytes requested (ANSI C).
  345.     Fix declarations for [x][re]alloc.
  346.  
  347.     * strip.c (main): Combine fprintf calls for usage.
  348.  
  349. Fri Dec 22 11:23:26 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  350.  
  351.     * ranlib.c (main): Look for ar in /usr/local/gnubin first.
  352.     Rename `jak' to `junk'.
  353.     Move `#define vfork' to start of file.  Don't declare it extern.
  354.  
  355. Thu Dec 21 17:02:54 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  356.  
  357.     * gprof.c (main): Combine fprintf calls in usage message.
  358.  
  359.     * objdump.c (usage): Combine fprintf calls.
  360.  
  361.     * robotussin.c (main): Add dashes to usage message to reduce
  362.     confusion of three 'f's in a row . . . .
  363.  
  364.     * nm.c (main): Combine several fprintf calls to make usage
  365.     message easier to edit.
  366.  
  367.     * ld.c (usage): New function to print error message and usage message.
  368.     (decode_command, decode_option): Call usage instead of fatal.
  369.  
  370.     * ar.c (usage): New function to print error message and usage message.
  371.     (main): Call usage instead of fatal.
  372.  
  373. Fri Dec 15 16:05:38 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  374.  
  375.     * ld.c (perform_relocation) [CROSS_LINKER]: New code.
  376.  
  377. Tue Dec 12 00:17:41 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  378.  
  379.     * ld.c (symtab_init): Use _edata not __edata.
  380.  
  381. Mon Dec 11 23:34:51 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  382.  
  383.     * ld.c: Always call each_full_file with 2 args.
  384.  
  385. Mon Dec  4 16:02:43 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  386.  
  387.     * Makefile: Define bindir.
  388.     (install): Add semicolon to end of 'cp' and 'mv' lines.
  389.     (install): Double last '$' in 'mv' line.
  390.  
  391. Sat Dec  2 13:54:22 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  392.  
  393.     * objdump.c (usage): Remove stray newline in message.
  394.  
  395. Thu Nov 30 21:38:02 1989  David J. MacKenzie  (djm at rice-chex)
  396.  
  397.     * objdump.c (usage): Update to reflect Jim's change.
  398.  
  399. Thu Nov 30 19:05:17 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  400.  
  401.     * objdump.c (main): Rename +sym-links to +symbols.
  402.  
  403.     * nm.c (do_one_rel_file): Check for validity of string table
  404.     offsets to avoid core dumps on bad input files.
  405.  
  406.     * ld.c (process_subentry): Remove variable prev and assign
  407.     directly to *prev_addr.
  408.  
  409. Thu Nov 30 15:33:59 1989 Jay Fenlason (hack at gnu.ai.mit.edu)
  410.  
  411.     * Fixed gprof.c so it would compile and run.  Jim forgot
  412.     a } and said FUN1 when he meant EXT1 when he added
  413.     the demangle stuff.
  414.  
  415. Mon Nov 27 18:12:30 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  416.  
  417.     * objdump.c: Add page_size.
  418.     (main): Set it.
  419.  
  420. Mon Nov 27 16:35:50 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  421.  
  422.     * Makefile (dist): Give up on weird linking schemes for making
  423.     the distribution archive, and simply read the list of files to
  424.     put in the archive from a file.
  425.  
  426.     * gprof.c (main): Rename long options:
  427.     suppress-local to no-static, suppress-blurbs to brief,
  428.     suppress-arg-prof to no-prof, suppress-arg-time to no-time,
  429.     arg-prof-only to only-prof, arg-time-only to only-time.
  430.  
  431. Sun Nov 26 00:46:10 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  432.  
  433.     * gprof.c (main): Make long_options static.  Mention long
  434.     options in usage message.  Use common code for handling
  435.     equivalent long and short named options.
  436.  
  437. Fri Nov 24 03:44:04 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  438.  
  439.     * Makefile (dist): Don't distribute backup files in the hp-bin
  440.     and hp-include directories. 
  441.  
  442.     * strip.c (main): Add null terminating element to
  443.     long_options.  Print a usage message if an invalid option is
  444.     given. 
  445.  
  446.     * ranlib.c (main): Add `val' element to long_options elements.
  447.     Print a usage message if an invalid option is given.
  448.  
  449.     * gprof.c (main): Add null terminating element to
  450.     long_options.  Mention long options in usage message and exit
  451.     if an invalid option is given.
  452.  
  453.     * nm.c (main): Rename +debug-syms to +all and +reverse-sort to
  454.     +reverse.  Add null terminating element to long_options.
  455.     Print a usage message if given an invalid option.
  456.  
  457.     * objdump.c: Add program_name variable.
  458.     (main): Rename +syms to +sym-links.  Add null
  459.     terminating element to long_options.  Set program_name.
  460.     (usage): Mention long options and use program_name.
  461.     (xmalloc): New function to allocate memory with error check.
  462.     Global: use xmalloc instead of malloc.
  463.     Global: Use program_name in error messages.
  464.  
  465. Mon Nov 20 16:58:25 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  466.  
  467.     * objdump.c [!COFF_ENCAPSULATE]: Define N_MAGIC.
  468.  
  469.     * ld.c (main) [COFF_ENCAPSULATE]: Don't write coff header
  470.     for output of ld -A.
  471.     (read_file_symbols, read_header): Seek past coff header for
  472.     input with just_syms_flag set.
  473.  
  474. Fri Nov 17 02:45:43 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  475.  
  476.     * objdump.c (dump_header) [__GNU_EXEC_MACROS]: Don't access a_info
  477.     field of struct exec.
  478.  
  479.     * objdump.c: Include <a.out.h> not "a.out.gnu.h"
  480.  
  481.     * objdump.c (main): Make long_options static.
  482.  
  483. Thu Nov 16 22:55:38 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  484.  
  485.     * Makefile (ranlib): Depend on getopt.
  486.  
  487. Thu Nov 16 11:48:27 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  488.  
  489.     * ld.c (decode_option, case 'r'): Set default_magic instead
  490.     of magic.
  491.     (decode_command): Use default_magic.
  492.  
  493.     * Makefile (CPLUS_DEM): Use this for nm and gprof.
  494.  
  495.     * nm.c (print_one_symbol): Use cplus_demangle.
  496.  
  497.     * gprof.c (many): Use cplus_demangle when printing names.
  498.  
  499.     * ld.c (copdatrel): Use N_DATADDR(outheader) for correct
  500.     behavior under 'ld -r -n'.
  501.  
  502.     * ld.c (relocate_file_addresses): Use DATA_ADDR_DOT_O
  503.     instead of entry->header.a_text.
  504.  
  505. Wed Nov 15 13:08:49 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  506.  
  507.     * ld.c (digest_symbols): When padding data to 8 byte boundary,
  508.     set pad_data so that write_data() can write the padding.
  509.     Change old computation of pad_data to add to pad_data instead
  510.     of assigning into it.
  511.  
  512.     * ld.c (perform_relocation): Add variable data_input_address
  513.     to deal with NMAGIC input files.
  514.  
  515.     * ld.c (symbol_define): New function.
  516.     (symtab_init): Use it.
  517.  
  518.     * robotussin [sun386]: Merge sun386 changes.
  519.  
  520. Tue Nov 14 12:52:34 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  521.  
  522.     * Makefile (ld): Change ld to $(archpfx)ld.
  523.  
  524.     * Makefile (objdump): Add GNU_GETOPT_LONG to dependencies.
  525.  
  526.     * ld.c [pyr, hp300]: Define INITIALIZE_HEADER and N_{TXT,DATA}ADDR.
  527.  
  528. Sat Nov 11 12:08:21 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  529.  
  530.     * ld.c (symtab_init): Don't mess with user-defined "etext".
  531.     (digest_symbols): Check for e{text,data}_symbol null.
  532.  
  533.     * ld.c (main): Call symtab_init after load_symbols.
  534.  
  535.     * ld.c (write_output): Add call to unlink.
  536.  
  537. Wed Nov  8 11:19:08 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  538.  
  539.     * strip.c (relocation_info_ptr, RELOCATION_INFO_SYMBOL_NUM):
  540.     Added.
  541.     (modify_relocation): Use them.
  542.  
  543.     * Makefile (strip): Use GNU_GETOPT_LONG, not GNU_GETOPT.
  544.  
  545.     * ld.c [sun].  Set machtype based on machtype of object files.
  546.     (read_header): Call READ_HEADER_HOOK if defined.
  547.  
  548. Fri Nov  3 15:18:15 EST 1989 Jay Fenlason (hack@ai.mit.edu)
  549.  
  550.     * nm.c (main) make long_options static so it can be compiled with cc.
  551.     * strip.c (main) ditto.
  552.  
  553. Thu Oct 26 12:28:33 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  554.  
  555.     * Makefile (install): Supply missing `done'.
  556.  
  557. Tue Oct 17 12:50:46 1989  Mike Haertel  (mike at wheat-chex)
  558.  
  559.     * ld.c (enter_file_symbols): ignore symbols of type
  560.     N_SETV | N_EXT.  These shouldn't be here at all should
  561.     they?
  562.  
  563. Mon Oct 16 16:53:03 1989  Joseph Arceneaux  (jla at apple-gunkies.ai.mit.edu)
  564.  
  565.     * ld.c (process_subentry): New function called from
  566.     linear_library.
  567.  
  568. Fri Oct  6 10:46:40 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  569.  
  570.     * gprof.c [!HAVE_VPRINTF]: Put in v{f,s}printf emulations.
  571.  
  572. Mon Oct  2 17:20:42 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  573.  
  574.     * ld.c [sequent] (N_TXTADDR, N_DATADDR): Define these macros.
  575.     [sequent] (INITIALIZE_HEADER): Define this same as for i386.
  576.     (RELOC_MEMORY_SUB_P): New customization macro.
  577.     Define as 0 on sun 4.  Define as 0 for defaults.
  578.     [sequent] (RELOC_* macros): Definitions for sequent.
  579.     (decode_command, digest_symbols): Handle case where NMAGIC is undefined.
  580.     (enter_global_ref) [sequent]: Handle special N_SHUNDF code.
  581.     (digest_symbols, write_symbols) [sequent]: Adjust outheader.a_text.
  582.     (perform_relocation): Handle RELOC_MEMORY_SUB_P like ..._ADD_P.
  583.     (symtab_init) [sequent]: Define symbol `_387_flt' w/ value 0.
  584.  
  585. Fri Sep 22 11:06:25 EDT 1989    hack@ai.mit.edu
  586.  
  587.     * gprof.c (main) Installed Joy's code for using the long-option names.
  588.  
  589. Thu Sep 21 03:24:36 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  590.  
  591.     * ld.c (symtab_init) [sun]: Define __DYNAMIC as 0.
  592.     (perform_relocation) [RELOC_ADD_EXTRA]:
  593.     Special handling for relocatable_output case.
  594.     (read_file_relocation): Fix error message typos.
  595.  
  596. Mon Sep 18 14:40:40 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  597.  
  598.     * ld.c (digest_symbols): Pad data and bss to 8 byte boundary.
  599.  
  600. Fri Sep 15 16:42:33 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  601.  
  602.     * a.out.gnu.h [sony]: Defined SEGMENT_SIZE as 0x2000.
  603.  
  604.     * Makefile (ranlib): Include getopt in the link.
  605.     (objdump): New rule.
  606.     (install): New rule.
  607.  
  608. Fri Sep  1 01:32:01 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  609.  
  610.     * ranlib.c: Added copyright notice and license info.
  611.  
  612. Wed Aug 30 20:53:21 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  613.  
  614.     * Makefile (LIBS): Also get getopt1.o.
  615.     (dist): Include getopt1.c.
  616.  
  617.     * ranlib.c (main): Move long option array into main, and fixed it so it
  618.     will compile.
  619.  
  620.     * Makefile (dist): Link rather than copy files into the subdir.
  621.     Include system.h and getopt.h.
  622.  
  623. Thu Aug 24 14:33:48 1989  Randy Smith  (randy at hobbes.ai.mit.edu)
  624.  
  625.     * ld.c (do_file_warnings): Don't print out multiple definition
  626.     warnings at references.
  627.  
  628. Mon Aug 21 20:19:08 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  629.  
  630.     * ar.c (make_new_symdefs): Abort if MAPELT->info.name is nil.
  631.     (update_symdefs): In the loop that calls make_new_symdefs, reject
  632.     deleted members (i.e., TAIL->info.name == 0).
  633.  
  634.     * ar.c (make_new_symdefs): Return if we fail reading the header or the
  635.     magic number is bad.
  636.  
  637.     * ar.c (make_new_symdefs): Check for ridiculous string table offsets.
  638.  
  639.     * ranlib.c (main): If the child ar exits with a signal, print the
  640.     signal that killed it.
  641.  
  642.     * ar.c (make_new_symdefs): Check for a ridiculous string table size.
  643.  
  644.     * ar.c (write_archive): When fixing up symdefs, use each member's
  645.     new_offset rather than data_offset.
  646.  
  647.     * ar.c (update_symdefs): When the old archive's string table is too
  648.     small, die, don't just bitch.
  649.  
  650.     * ar.c (update_symdefs): Don't decrement num_old_symdefs when deleting
  651.     symdefs of deleted members.  After compactifying old symdefs, decrease
  652.     num_old_symdefs as necessary.
  653.  
  654.     * ar.c (update_symdefs): When removing symdefs of deleted members,
  655.     compare the symdef offsets to the mapelt's data offset, not its header
  656.     offset.
  657.  
  658. Sat Aug 19 08:07:26 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  659.  
  660.     * ar.c (header_from_map): Print correct message when truncating.
  661.  
  662.     * ar.c (find_mapelt_noerror, header_from_map): Truncate to 15 chars,
  663.     not 16.
  664.  
  665.     * ranlib.c (main): Don't do the first ar run an infinite number of
  666.     times.  One will suffice.
  667.  
  668.     * ranlib.c (main): Under -v, echo the ar command before running it.
  669.  
  670.     * ar.c (ignore_symdef): New variable.  If nonzero, only do symdef
  671.     processing if the `s' option is given.
  672.     (main): If one of the members given on the command line is __.SYMDEF,
  673.     set ignore_symdef.
  674.     (scan): If ignore_symdef is nonzero, don't set symdef_exists.
  675.  
  676.     * ar.c (find_mapelt_noerror): A mapelt matches NAME if the names are
  677.     the same for 14 characters and either both end in ".o", or they are the
  678.     same for as many more characters as they both have (i.e., the longer
  679.     name is truncated to the length of the shorter name for the
  680.     comparison).
  681.  
  682.     * ar.c (update_symdefs): When correcting a bad string table size,
  683.     correct the size of the __.SYMDEF member as well.
  684.  
  685.     * ar.c (update_symdefs): Keep track of the space in the string table
  686.     accounted for by deleted members.  If the old archive's string table
  687.     size was too big, correct it; if it was too small, die.
  688.  
  689. Tue Aug 15 00:54:37 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  690.  
  691.     * ranlib.c (main): Use getopt, and accept new `-v' option, which means
  692.     to pass `v' to ar.  Use vfork instead of fork.  Look at the status of
  693.     the children, and exit if it's nonzero.  Also added error checking on
  694.     several calls.
  695.  
  696.     * ar.c (write_archive): Fully initialize the new mapelt for __.SYMDEF.
  697.  
  698. Sun Aug    13 00:01:27 1989  Joy Kendall      (jak at hobbes.ai.mit.edu)
  699.  
  700.     * strip.c, nm.c, objdump.c:  Installed versions with long
  701.     named options available, i.e., getopt substituted with 
  702.     getopt_long.
  703.  
  704.     * Makefile: changed GNU_GETOPT to GNU_GETOPT_LONG (need to
  705.     make sure I did this right)
  706.  
  707. Wed Aug  9 00:24:34 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  708.  
  709.     * ar.c (write_archive): When rewriting the symdef member, seek to its
  710.     header offset, not its data offset.
  711.  
  712.     * ar.c (header_from_map): New function to convert a `struct mapelt' to
  713.     an ar header.
  714.  
  715.     * ar.c: Miscellaneous cosmetic clean-ups.
  716.  
  717.     * ar.c (copy_out_member): If truncating the member name, and the
  718.     desired name (which is too long) ends in ".o", make the written member
  719.     name end in ".o" as well.
  720.  
  721. Tue Aug  8 16:26:49 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  722.  
  723.     * ld.c (classify_arg): Added 'V' to the list of possible
  724.     argument having thingys.
  725.  
  726.     * ld.c (do_relocation_warnings, do_file_warnings): Changed
  727.     messages slightly and removed hack to allow N_WARNING name to
  728.     be a printf string taking stuff as arguments.
  729.  
  730. Mon Aug  7 16:27:04 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  731.  
  732.     * ld.c: Created set_element_prefixes (list of symbol name
  733.     prefixes to force symbols to be treated as set elements).
  734.     (main): Initialized to 0.
  735.     (decode_option): -V name recognized as defining a prefix.
  736.     (set_element_prefixed_p): New function.
  737.     (enter_file_symbols): Check every symbol to see if it has a
  738.     prefix; if so, change the type.
  739.     (subfile_wanted_p): A subfile isn't wanted if the symbol
  740.     definition indicated is a set element by prefix.
  741.  
  742.     * ld.c [N_WARNING]: Changed commenting.
  743.  
  744.     * ld.c (do_file_warnings): On the second pass for actual
  745.     warning symbols, warn only if it isn't a definition and it
  746.     isn't the reference used by the warning symbol itself.
  747.  
  748. Fri Aug  4 13:04:57 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  749.  
  750.     * ld.c: Remove the warning field from struct file entry.
  751.     (enter_file_symbols): Deal with N_WARNING symbols on a
  752.     per symbol basis instead of a per file basis.
  753.     (mark_flagged_symbols): Deleted.
  754.     (do_warnings): Don't call mark_flagged_symbols anymore.
  755.  
  756.     * ld.c: Improved commenting on new GNU symbols.
  757.  
  758.     * ld.c (subfile_wanted_p): Don't load in files for a set
  759.     element symbol definition.
  760.  
  761. Thu Aug  3 12:54:30 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  762.  
  763.     * ld.c (write_output): Checked return code on last chmod and
  764.     output error if there is one.
  765.  
  766. Wed Aug  2 13:26:16 1989  Randy Smith  (randy at hobbes.ai.mit.edu)
  767.  
  768.     * ld.c (enter_global_ref): Separate out cases of undefined
  769.     reference and defining it versus from stuff done whenever you
  770.     define a symbol.  Clean up assignment to sp->defined.
  771.  
  772. Tue Aug  1 23:12:07 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  773.  
  774.     * ld.c: Created count common_defined_global_count.
  775.     (main): Initialized to 0.
  776.     (symdef_library): Symbol is needed if it isn't defined OR it's
  777.     defined common.  Don't stop looking till we don't have any
  778.     more symbols defined as common.
  779.     (linear_library): Don't stop looking until we have no more
  780.     symbols defined as common.
  781.     (subfile_wanted_p): If a symbol is defined common, we want to
  782.     check for a real definition.  If it used to be undefined and
  783.     we've defined it by common, increment CDGC.
  784.     (enter_global_ref): If a symbol is defined common and it used
  785.     to be undefined, increment CDGC.  If it is defined for real
  786.     and it used to be defined common, decrement CDGC and zero
  787.     max_common_size (so we can tell that it isn't defined common
  788.     any more).  Rewrote logic to be cleaner.
  789.  
  790. Mon Jul 31 14:52:25 1989  Randy Smith  (randy at hobbes.ai.mit.edu)
  791.  
  792.     * ld.c (digest_symbols): Reverse the order of the set element
  793.     vector so that the elements will be in the order of the input
  794.     files to ld.
  795.  
  796. Mon Jul 31 00:19:05 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  797.  
  798.     * ld.c [sun && sparc]: Don't include alloca.h if !defined(__GNUC__).
  799.  
  800. Mon Jul 24 19:29:40 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  801.  
  802.     * ld.c (enter_global_ref): Produce a warning message and
  803.     rewrite not to be so dangerous if someone is clueless enough
  804.     to indirect a symbol to itself.
  805.  
  806. Fri Jul 14 04:04:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  807.  
  808.     * ar.c (write_archive): Don't zero out the count of old symdefs if we
  809.     just read some.
  810.     (update_symdefs): Don't copy symdefs onto themselves when compacting.
  811.  
  812. Wed Jul 12 16:16:36 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  813.  
  814.     * ar.c (write_archive): Use read_old_symdefs if the member is there.
  815.     (make_new_symdefs): Return if passed a deleted member.
  816.  
  817.     * ar.c (write_archive): Zero out the info of the new __.SYMDEF member
  818.     properly.
  819.  
  820. Mon Jul 10 22:16:08 1989  Randy Smith  (roland at hobbes.ai.mit.edu)
  821.  
  822.     * ld.c (enter_global_ref): Put the type of the nlist entry with the
  823.     strongest type into the "defined" field of the symbol.  Used this to
  824.     determine the first definition of a set element.
  825.  
  826. Wed Jul  5 17:29:27 1989  Randy Smith  (randy at apple-gunkies.ai.mit.edu)
  827.  
  828.     * ld.c (do_file_warnings): Find undefined references on second
  829.     passes. 
  830.  
  831. Fri Jun 30 03:32:50 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  832.  
  833.     * ar.c [__GNUC__]: Use __builtin_alloca.
  834.     [sparc]: Include <alloca.h>.
  835.  
  836.     * ar.c (copy_out_member): After writing the header, set the entry's
  837.     `data_offset' field to the current file position.
  838.     (write_archive): After copying out members, check for any whose data
  839.     offsets weren't known when the symdef member was written, fix up the
  840.     offsets, and rewrite the symdef member.
  841.  
  842. Thu Jun 29 21:29:35 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  843.  
  844.     * ar.c (main): Call exit (0), instead of running off the end.
  845.  
  846. Tue Jun 27 02:11:22 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  847.  
  848.     * ar.c (make_new_symdefs): Rewritten to correctly convert the namelist
  849.     to symdefs.
  850.  
  851.     * ar.c (replace_members): Write the archive if symdef_flag is true and
  852.     there is no symdef member.
  853.  
  854.     * Makefile: Added $(archpfx) where appropriate.
  855.  
  856.     * ld.c (symdef_library): When decode_library_subfile returns nil
  857.     (meaning it hit the end of the library archive), barf.
  858.  
  859. Mon Jun 26 17:41:38 1989  Randy Smith  (randy at hobbes.ai.mit.edu)
  860.  
  861.     * ld.c (do_warnings): Take out the blank line printed at the
  862.     end of the warning routine.
  863.  
  864.     * ld.c (do_file_warnings): When looking for multiple
  865.     definitions, don't print out references (things that are just
  866.     N_EXT).  
  867.  
  868. Sun Jun 25 15:17:42 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  869.  
  870.     * ar.c (requestedp): Removed unused function.
  871.     (find_mapelt): Use find_mapelt_noerror.
  872.     (find_mapelt_noerror): Compare only the first 16 chars of names.
  873.     (error): Accept more args.
  874.     (copy_out_member): Write a message if the member name is truncated.
  875.  
  876.     * GNUmakefile: Just include Makefile, rather than doing the silly
  877.     recursion bit.
  878.  
  879.     * ar.c (write_archive): Split unlocking and closing into new function
  880.     close_archive.
  881.     (replace_members): If nothing changed, don't write the archive!
  882.  
  883.     * ar.c: Only write old Unix style informational messages
  884.     (x - foo, a - bar, etc.).  1003.2 requires it (sigh).
  885.  
  886. Wed Jun 21 21:45:57 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  887.  
  888.     * ar.c (insert_in_map): Only write one message under -v.
  889.     (print_descr): Use puts instead of printf where applicable.
  890.  
  891.     * ar.c (copy_out_member): Don't say "copying ... to new archive" under
  892.     -v.  This amounts to listing the entire archive with each insertion.
  893.  
  894.     * Makefile (ranlib.o): Use $(bindir)/ar rather than `pwd`/ar.
  895.  
  896. Tue Jun 20 18:46:42 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  897.  
  898.     * ar.c (main): The `u' flag implies the `r' operation.
  899.  
  900. Mon Jun 12 19:12:37 1989  Jay Fenlason  (hack at apple-gunkies.ai.mit.edu)
  901.  
  902.     * nm.c  Fixed #ifndef N_WARNING to actually compile correctly.
  903.  
  904.     * ld.c (N_TXTADDR, N_DATADDR): Changed #ifdef vax to
  905.     #if defined(vax) || defined(sony_news)
  906.     so that it'll compile on the Sony's.
  907.  
  908. Tue Jun  6 15:27:10 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  909.  
  910.     * ld.c (print_files_defining_symbol): Eliminated.
  911.     (main): Zero the first cmdline references after it is allocated.
  912.     (add_cmdline_ref): Make sure that we don't overwrite the end of the
  913.     array. 
  914.  
  915. Sun May 28 15:15:42 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  916.  
  917.     * nm.c (,print_one_symbol): Added code to handle N_WARNING.
  918.  
  919. Thu May 11 20:26:23 1989  Mike Haertel  (mike at apple-gunkies.ai.mit.edu)
  920.  
  921.     * ld.c (read_file_symbols): Use a struct exec instead of an int
  922.     for magic number checking.
  923.     * nm.c (do_one_file): Similar change.
  924.     * size.c (do_one_file): Similar change.
  925.     * strip.c (file_open): Similar change.    
  926.  
  927. Thu May 11 16:33:51 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  928.  
  929.     * ar.c (update_symdefs): Detect null pointer in info.name.
  930.  
  931. Thu May  4 01:53:32 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  932.  
  933.     * Makefile: Provide $(LIBS) when linking strip.
  934.  
  935. Mon May  1 16:40:27 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  936.  
  937.     * ld.c (main): Change return from main to be exit from main
  938.     (supported on more systems).
  939.  
  940. Mon Apr 24 14:47:53 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  941.  
  942.     * ld.c (decode_option, classify_arg): Accept -Bstatic as no-op.
  943.  
  944. Mon Apr 24 13:08:48 1989  Jay Fenlason  (hack at apple-gunkies.ai.mit.edu)
  945.  
  946.     * gprof.c:  Removed #ifdef __STDC__ stuff from all the
  947.     function headers, etc.
  948.  
  949. Sun Apr 23 00:16:09 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  950.  
  951.     * ld.c: Define INITIALIZE_HEADER for ALTOS.
  952.  
  953.     * robotussin.c (reloc_segment): Handle R_RELLONG like R_DIR32.
  954.     (INPUT_MAGIC): Set it for 386 or 68k according to predef symbols.
  955.  
  956.     * ranlib.c: Handle USG.  Define bzero, gettimeofday.
  957.     New macro `seconds' defined for USG or BSD.
  958.     Include sys/types.h and fcntl.h.
  959.  
  960. Thu Apr 20 14:47:37 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  961.  
  962.     * robotussin.c: discard symbols in section -1.
  963.  
  964.     * libconvert: change *.o to * in for statement.
  965.  
  966. Mon Apr 10 16:54:43 1989  Pace Willisson   (pace at apple-gunkies.ai.mit.edu)
  967.  
  968.     * strip.c (rewrite_file_symbols): Make strip work for
  969.     COFF_ENCAPSULATE (it used to write the new exec header at
  970.     file offset 0, instead of using HEADER_SEEK_FD)
  971.  
  972. Fri Mar 10 15:50:45 1989  Randall Smith  (randy at sugar-bombs.ai.mit.edu)
  973.  
  974.     * ranlib.c (touch): Created to simply touch an archive (update the
  975.     date on the symdef member).  Done here since adding an option to
  976.     ar.c would be a hassle and using the routines in ar.c would
  977.     require doing almost all of the work of an "ar rs x.a" anyway.
  978.     Same result in both cases; differing amounts of time.
  979.  
  980. Mon Mar  6 15:27:56 1989  Jay Fenlason  (hack at apple-gunkies.ai.mit.edu)
  981.  
  982.     * gprof.c (ck_fclose) only fflush() streams opened for writing.
  983.  
  984. Sun Mar  5 17:13:37 1989  Randall Smith  (randy at gluteus.ai.mit.edu)
  985.  
  986.     * ar.c (write_archive): Modified test to write symdef header;
  987.     wasn't being done if the symdef map entry didn't need to be newly
  988.     created. 
  989.  
  990. Fri Mar  3 10:56:55 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  991.  
  992.     * *.*, Makefile: Changed to use new wording as directed by the new
  993.     GNU General Public License.
  994.     * COPYING: Created as a link to /gp/rms/COPYING.
  995.  
  996. Wed Feb 22 04:42:54 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  997.  
  998.     * Makefile: Use GNU getopt by preference.
  999.  
  1000.     * gprof.c [USG]: Define bcopy as macro.
  1001.  
  1002. Tue Feb 21 04:46:44 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1003.  
  1004.     * ld.c (INITIALIZE_HEADER) [HPUX]: Use N_SET_MACHTYPE.
  1005.  
  1006. Sat Feb 18 12:47:36 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1007.  
  1008.     * Makefile: Added note for using GNU getopt for app routines.
  1009.     Linked (symlink) it into this directory.
  1010.  
  1011.     * ld.c: Added #ifndef sony_news around inclusion of fcntl.h.  This
  1012.     file duplicates code in sys/file.h on the sony.
  1013.  
  1014.     * nm.c: Added include of alloca.h on a sun4 and use of
  1015.     __builtin_alloca if compiling with GCC.
  1016.  
  1017. Sat Feb 18 09:43:51 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1018.  
  1019.     * ar.c (write_archive): Don't die if info.name is 0 (member deleted).
  1020.     (scan): Reverse fread args, so value is right.
  1021.  
  1022. Fri Feb 17 05:19:50 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1023.  
  1024.     * ar.c (extract_members, scan): Open just a FILE *, and pass that.
  1025.     (extract_member, print_contents): Expect a FILE *; no need to fdopen.
  1026.  
  1027. Thu Feb 16 07:36:03 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1028.  
  1029.     * gprof.c: Reformatted.
  1030.  
  1031. Fri Feb  3 14:28:24 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1032.  
  1033.     * ld.c (do_warnings): Changed calls to each_full_file to each_file
  1034.     (which is what we want, since we are concerned with symbol
  1035.     definitions).
  1036.  
  1037.     * ld.c: Added a parameter MAX_ALIGNMENT, defined in #ifdef sparc
  1038.     and by default, to set the maximum necessary alignment for data
  1039.     objects on this machine.  This is necessary for allocation in the
  1040.     bss area.
  1041.     (digest_symbols): Made sure that everything allocated had the
  1042.     minimum of it's alignment (lowest bit set in the size) or the
  1043.     MAX_ALIGNMENT. 
  1044.  
  1045. Thu Jan 26 13:31:52 1989  Pace Willison  (pace at apple-gunkies.ai.mit.edu)
  1046.  
  1047.     * Makefile: Delete -Dnounderscore, add gprof to USG PROG list
  1048.  
  1049.     * ar.c (rename for USG): ignore error from first unlink
  1050.  
  1051.     * gprof.c: COFF_ENCAPSULATE and USG changes.
  1052.  
  1053.     * ld.c strip.c: Deal with internal labels starting with '.' on
  1054.     nounderscore machines and 'L' on normal ones (LPREFIX).
  1055.  
  1056.     * ld.c(next_debug_entry): Mask n_type field in switch statement
  1057.     since it is a char, and some of its values (N_SOL) are > 128, which
  1058.     get sign extended on some machines.
  1059.  
  1060.     * objdump.c: Deal with symbols that have no name; mask fields 
  1061.     of nlist before printing.
  1062.  
  1063. Mon Jan 23 14:08:43 1989  Randall Smith  (randy at plantaris.ai.mit.edu)
  1064.  
  1065.     * ld.c (coptxtrel, copdatrel): Made sure that, when relocation is
  1066.     being copied, that N_INDR symbols were properly followed.  Also
  1067.     made sure that the symbol indicies were correct even in the
  1068.     presence of indirection information.
  1069.  
  1070.     * ld.c (write_rel): When specifying symbol numbers, make sure to
  1071.     leave room for the extra undefined ref that will be written for
  1072.     the sake of N_INDR entries.
  1073.  
  1074.     * ld.c (write_syms): Fixed typo; a duplicate of the N_INDR entry
  1075.     was being written instead of the undefined ref required.
  1076.  
  1077. Tue Jan 17 16:23:56 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1078.  
  1079.     * strip.c (rename): Arranged to ignore return code from "unlink";
  1080.     file may not be there.
  1081.  
  1082. Thu Jan 12 15:24:23 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1083.  
  1084.     * Makefile: Modified "dist" target so as to get hp-*
  1085.     subdirectories. 
  1086.  
  1087.     * strip.c (rename): Added function to mimic BSD system call for
  1088.     system V.
  1089.  
  1090. Tue Jan 10 19:44:33 1989  Pace Willison  (pace at prep.ai.mit.edu)
  1091.  
  1092.     * Makefile: put -Dnounderscore back for COFF_ENCAPSULATE.
  1093.  
  1094. Tue Jan 10 17:58:50 1989  Randall Smith  (randy at cream-of-wheat.ai.mit.edu)
  1095.  
  1096.     * ld.c (linear_library, symdef_library, list_file_locals,
  1097.     write_file_syms): Took care to make sure that when the buffer
  1098.     pointed to by entry->strings became invalid, entry->strings was
  1099.     set to zero (either on a free or a function return if space had
  1100.     been allocated through alloca).
  1101.  
  1102.     * ld.c (getpagesize): Deleted define in hpux dependent section;
  1103.     taken care of when compiling on hpux because of define of USG in
  1104.     Makefile. 
  1105.  
  1106. Mon Jan  9 22:49:42 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1107.  
  1108.     * strip.c (strip_file): Effectively defer certain signals
  1109.     while rewriting the file.
  1110.  
  1111. Mon Jan  9 09:45:41 1989  Pace Willisson  (pace at prep.ai.mit.edu)
  1112.  
  1113.     * These changes improve support for COFF_ENCAPSULATE, and
  1114.     for the future development of the GNU exec header.  The
  1115.     main change is to rename the exec header field a_magic
  1116.     so that it can contain additional information.  Now, the
  1117.     magic number must be accessed with N_MAGIC(exec), and set
  1118.     with N_SET_MAGIC(exec,val).  Programs that only need to use
  1119.     N_BADMAG will not have to change.  Also COFF_ENCAPSULATE will
  1120.     no longer use "nounderscore", so that it will be more like
  1121.     normal bsd systems.  This means gcc must be updated before using
  1122.     these new tools.  (It is safe to put -Dnounderscore back in
  1123.     if you want to use an old gcc for a while.)
  1124.  
  1125.     * README-ENCAP: new documentation for how to set up to use
  1126.     COFF_ENCAPSULATE.
  1127.  
  1128.     * Makefile:  Add target for gnulib.
  1129.     Don't define 'nounderscore' (must tell gcc about that too.)
  1130.  
  1131.     * ar.c: Don't automatically define COFF_ENCAPSULATE.
  1132.  
  1133.     * nm.c: No need to initialize the header before reading it.
  1134.  
  1135.     * size.c: Include, sys/types.h, and sys/fcntl.h if USG
  1136.     * strip.c: Likewise--types.h before file.h.
  1137.  
  1138.     * ld.c, objdump.c, robotussin.c:
  1139.     Changed to use new exec macros for a_magic.
  1140.  
  1141.     * libconvert: now takes arguments
  1142.  
  1143.     * robotussin.c: don't automatically define nounderscore - leave
  1144.     that to the makefile, if desired
  1145.  
  1146. Fri Jan  6 13:06:37 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1147.  
  1148.     * ld.c (digest_symbols, write_text, write_data): Changed N_SETV
  1149.     from being in the text area to being in the data area.
  1150.     * nm.c, a.out.gnu.h: Changed comments to conform with above.
  1151.  
  1152.     * ld.c (do_file_warnings): Added loop to go through each external
  1153.     nlist entry and check for multiple definitions, as well as
  1154.     catching any references which weren't caught by the relocation
  1155.     pass. 
  1156.  
  1157.     * ld.c (address_to_line): Changed so that it will work (albeit
  1158.     slowly) with an address less than the current address.
  1159.     (do_file_warnings, do_relocation_warnings): Broke out scan through
  1160.     relocation entries into a separate function.  Added creation of a
  1161.     bitvector with each bit refereing to an nlist entry so that
  1162.     do_relocation_warnings could mark which symbol entries it had
  1163.     output for undefined references.
  1164.  
  1165. Thu Jan  5 20:36:44 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1166.  
  1167.     * ld.c: Cosmetic changes: Moved helper functions for
  1168.     do_file_warnings to before it and modified comments to
  1169.     next_debug_symbol and address_to_line.
  1170.  
  1171. Wed Jan  4 15:37:52 1989  Randall Smith  (randy at gluteus.ai.mit.edu)
  1172.  
  1173.     * ld.c: Added #define getpagesize() EXEC_PAGESIZE for hpux.
  1174.  
  1175.     * ld.c (do_warnings): Will now print out all undefined external
  1176.     symbols which were not referenced from the text or data sections
  1177.     separately.
  1178.     (do_file_warnings): Decreases undefined_global_sym_count for each
  1179.     symbol printed.
  1180.  
  1181. Tue Jan  3 23:43:41 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1182.  
  1183.     * Makefile (nm): Link with $(LIBS).
  1184.  
  1185.     * ld.c (getpagesize): HPUX definition deleted; not needed.
  1186.  
  1187. Mon Jan  2 23:04:35 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1188.  
  1189.     * ld.c (digest_symbols): Modified the creation of set vectors
  1190.     to include a zero word after the end  of the vector.
  1191.     (write_text): Made the same modification of the set vector section
  1192.     size. 
  1193.  
  1194. Sun Jan  1 12:01:22 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1195.  
  1196.     * ld.c: Fixed typo in description of relocation values, and
  1197.     changed note on RELOC_ADD_EXTRA to force is to be an lvalue if
  1198.     it's defined.
  1199.     (coptxtrel): If a specific relocation entry has just changed from
  1200.     external to internal, and we aren't supposed to add in memory on
  1201.     the new relocation value, make sure that the value of the symbol
  1202.     get's added to the ADD_EXTRA in the relocation value.  Otherwise,
  1203.     all the work we do in a partial linking will be wasted (will be in
  1204.     memory, but will be ignored on the next pass of the linker).
  1205.  
  1206. Sat Dec 31 13:13:01 1988  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1207.  
  1208.     * ld.c: Removed "|| TARGET == SUN2" from line 210; I believe that
  1209.     TARGET and SUN2 were both showing up defined as 0 on the sparc,
  1210.     which resulted in a redefine of the INITIALIZE_HEADER macro, back
  1211.     to sun2 style.
  1212.  
  1213. Thu Dec 29 01:48:03 1988  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1214.  
  1215.     * ld.c, ar.c: Don't define COFF_ENCAPSULATE automatically.
  1216.     The recommended Makefile change defines it.
  1217.  
  1218.     * ld.c (alloca): If compiling with GCC, use __builtin_alloca.
  1219.  
  1220.     * robotussin.c: New reformatted version with all variables renamed.
  1221.  
  1222.     * ranlib.c: New file, just runs `ar rs' on each specified file.
  1223.     * Makefile: Special hack to tell ranlib where to find GNU ar.
  1224.     (LIBS): Recommend -lPW on USG; ld needs it for alloca (if not GCC).
  1225.  
  1226. Sat Dec 24 13:59:09 1988  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1227.  
  1228.     * ld.c (error): Start with name of program running.
  1229.     (main): Set `progname' to that name.
  1230.     (digest_symbols): Fix punctuation and spelling in calls to `error'.
  1231.  
  1232. Tue Dec 20 21:49:46 1988  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1233.  
  1234.     * robotussin.c (INPUT_MAGIC): New macro, has the magic number
  1235.     to expect in input files.
  1236.     (nounderscore): New macro; as in ld, define it to inhibit
  1237.     adding underscore to symbols.
  1238.  
  1239.     * Makefile: Don't compile objdump on BSD; N_DATADDR causes trouble.
  1240.  
  1241. Tue Dec 20 14:57:38 1988  Pace Willisson  (pace at prep.at.mit.edu)
  1242.  
  1243.     * objdump.c: New program like the system 5 'dump' program.
  1244.     Documentation will follow...
  1245.  
  1246.     * Makefile: Set up CFLAGS for USG systems.  Added target
  1247.     libc.a to do robotussin conversion.  Added objdump.
  1248.  
  1249.     * libconvert: Wrote shell script to do robotussin conversion.
  1250.  
  1251.     * ar.c, ld.c: Don't define COFF_ENCAPSULATE if it is already defined.
  1252.  
  1253.     * ld.c: If i386, set a_machtype to M_386.  Use a_flags instead
  1254.     of a_encap.  Don't compute coff header if it isn't going to
  1255.     get written out.
  1256.  
  1257.     * robotussin.c: Define COFF_ENCAPSULATE. Include a.out.encap.h
  1258.     instead of a.out.h.  Check magic number of input
  1259.     file.  Skip over optional header, if present.  Don't ignore
  1260.     symbols with aux entries (they could be function definitions),
  1261.     instead, ignore symbols beginning with '.' (.text, etc).
  1262.     Don't prepend underscore to externals, since gcc doesn't do
  1263.     it now.  Don't run past the end of symbols that are exactly
  1264.     eight characters long.  Always write the string table size,
  1265.     even if it is empty.  Change relocation types handled from
  1266.     R_PCRBYTE, etc, to R_DIR32 and R_PCRLONG (these are the
  1267.     only two emitted by the system 5 assembler.)
  1268.  
  1269.     * size.c: Include <sys/types.h> so including sys/file.h will
  1270.     not get an error on USG systems.  Include fcntl.h on usg systems.
  1271.  
  1272.     * strip.c: Move inclusion of file.h to after types.h.  Include
  1273.     fcntl.h.  Add defintion of rename.
  1274.  
  1275. Fri Dec 16 13:55:11 1988  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1276.  
  1277.     * size.c: Delete all ROBOTUSSIN conditionals and contents.
  1278.     Change SYSV conditionals to USG.
  1279.     COFF_ENCAPSULATE conditionals for headers.
  1280.     (do_one_file, read_header): Skip encapsulation headers if any.
  1281.  
  1282.     * strip.c: Delete all ROBOTUSSIN conditionals and contents.
  1283.     Change SYSV conditionals to USG.
  1284.     COFF_ENCAPSULATE conditionals for headers.
  1285.     (file_open, read_header): Skip encapsulation headers if any.
  1286.  
  1287.     * strip.c: Change most fatal errors to nonfatal.
  1288.     (file_open, read_header, read_{file,entry}_symbols):
  1289.     Now return 0 for success, -1 for failure.
  1290.     Failure means do no more for the current file.
  1291.     (modify_relocation): Now just warn if strip a symbol needed
  1292.     for relocation, and warn only once per file.
  1293.     (error_with_file): New function, replaces most fatal_with_file.
  1294.     Print filename first, as in most programs.
  1295.     (fatal_with_file): Deleted.
  1296.     (rewrite_file_symbols): Use perror_file when system call fails.
  1297.  
  1298. Tue Dec 13 17:16:39 1988  Jay Fenlason  (hack at apple-gunkies.ai.mit.edu)
  1299.  
  1300.     * ar.c:  Changed pad character after odd-length archive member
  1301.     from \0 to \n so archives can be cmp'd with the output from /bin/ar
  1302.     Added fix for when ranlib is using ar to insert an __.SYMDEF member
  1303.  
  1304. Tue Dec 13 09:09:27 1988  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1305.  
  1306.     * ar.c: conditional #includes for USG.
  1307.     * COFF_ENCAPSULATE conditionals for headers.
  1308.     (extract_member): Don't do fchmod if USG.
  1309.     Alternate USG code to set modtimes of extracted members.
  1310.     (write_archive): Don't do fsync if USG.
  1311.     (make_new_symdefs): Skip encapsulation headers if any.
  1312.     [USG] (bcopy, bzero, bcmp): New fns.
  1313.  
  1314.     * nm.c: Delete all ROBOTUSSIN conditionals and contents.
  1315.     Include types.h.
  1316.     Change SYSV conditionals to USG.
  1317.     * COFF_ENCAPSULATE conditionals for headers.
  1318.     (do_one_file): Skip encapsulation headers if any.
  1319.     (read_header): Likewise.
  1320.  
  1321.     * ld.c: Delete all ROBOTUSSIN conditionals and contents.
  1322.     Change SYSV conditionals to USG.
  1323.     Change HEADER_TYPE back to `struct exec'.
  1324.     (L_SET): Define it if headers don't.
  1325.     * COFF_ENCAPSULATE conditionals for headers.
  1326.     (main): Update text_size differently if encapsulating.
  1327.     (write_header): Write the encapsulation headers if nec.
  1328.     Don't end with padding if encapsulation being done.
  1329.     [USG] (bzero, bcopy, getpagesize): New fns.
  1330.  
  1331. Tue Dec  6 13:26:56 1988  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1332.  
  1333.     * ld.c (do_file_warnings): Ignored text relocation entries that
  1334.     went through local symbols; any problems with lack of definitions
  1335.     etc. with them would have been caught by the compiler.
  1336.  
  1337. Mon Dec  5 16:13:22 1988  Jay Fenlason  (hack at sugar-bombs.ai.mit.edu)
  1338.  
  1339.     * ar.c (make_new_symdefs): On error, close the input files.
  1340.  
  1341. Thu Nov 10 18:15:07 1988  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1342.  
  1343.     * ld.c: Put declaration of alloca inside an #ifdef so that it
  1344.     wouldn't mess up on the sparc.
  1345.  
  1346.     * ld.c: Added #define CORE_ADDR for include of symseg.h from gdb
  1347.     and took out TARGET == SUN2 for sun2 INITIALIZE_HEADER.
  1348.  
  1349. Wed Nov  2 18:43:09 1988  Randall Smith  (randy at gluteus.ai.mit.edu)
  1350.  
  1351.     * ld.c: Merged in isi68k port.  This included a kludge for symbols
  1352.     starting with _$ (#ifdef DOLLAR_KLUDGE) and addition of the
  1353.     STANDARD_SEARCH_DIRS macro to override the default if it's
  1354.     defined. 
  1355.  
  1356.     * ld.c: Added code for the N_WARNING symbol type.  If a reference
  1357.     is found to a symbol in an input .o file which contains an
  1358.     N_WARNING symbol, a warning message (the name of the N_WARNING
  1359.     symbol) is printed.  This name is treated as a printf format
  1360.     string; the name of the symbol referenced (which caused the
  1361.     warning) is supplied as a single argument to the print which
  1362.     interpets this string.
  1363.  
  1364. Tue Nov  1 16:57:00 1988  Randall Smith  (randy at gluteus.ai.mit.edu)
  1365.  
  1366.     * ld.c: Added code for Sun 2.
  1367.  
  1368.     * ld.c: Modified access to the relocation information to be *much*
  1369.     more general; added in sparc support.  This change is a minor
  1370.     performance hit; the perform_relocation routine uses about 0.1
  1371.     seconds more time on linking gdb than did the original ld.
  1372.     (perform_relocation is about 5% of the total time the loader
  1373.     spends).  The price of generality.
  1374.  
  1375. Thu Aug  4 13:20:50 1988  Randy Smith  (randy at rice-chex.ai.mit.edu)
  1376.  
  1377.     * Modified ld.c to print only the first 10 unresolved references
  1378.     for each symbol, followed by a message indicating that there are
  1379.     more unresolved references that have not been printed (if indeed
  1380.     there are).  Made default behaivior upon errors *not* writing any
  1381.     output file at all.  Also added the -noinhibit-exec flag to force
  1382.     writing of an executable when that was desirable.
  1383.  
  1384. Tue Aug  2 12:04:01 1988  Randy Smith  (randy at rice-chex.ai.mit.edu)
  1385.  
  1386.     * Modified ld.c to give line numbers wherever possible on
  1387.     unreferenced symbols.  Added a new symbol (N_DSLNE) to allow for
  1388.     the same mapping of data location to line number as is done for
  1389.     text segments by N_SLINE.  Added code to sort the relocation
  1390.     entries when it is necessary to output these line numbers.  The
  1391.     assumption was made that both N_SLINE and N_DSLNE symbols would
  1392.     always be in order by address.
  1393.  
  1394. Wed Jul 27 15:13:08 1988  Randy Smith  (randy at rice-chex.ai.mit.edu)
  1395.  
  1396.     * Modified ld.c to include a facility for equivalencing two
  1397.     symbols (translating one to another).  Modified lib/a.out.h to
  1398.     include a definition of this new symbol.  Modified nm.c to
  1399.     recognize this symbol and all of the set element and vector
  1400.     symbols I had added before.
  1401.  
  1402. Thu Jul 21 17:06:10 1988  Randy Smith  (randy at rice-chex.ai.mit.edu)
  1403.  
  1404.     * Modified ld.c to printout source file and line numbers for
  1405.     unresolved references whenever possible (ie. whenever the input
  1406.     file has debugger symbols and the reference is from the text area).
  1407.  
  1408. Wed Jul 13 17:21:33 1988  Randy Smith  (randy at frosted-flakes.ai.mit.edu)
  1409.  
  1410.     * Modified ld.c and a.out.h to handle new types of symbols; the
  1411.     loader can now create "sets" of symbols from entries in its input
  1412.     files.  See a.out.h for more info.  Also fixed a bug in ld in
  1413.     which references to common areas that we not defined in one pass
  1414.     of the loader caused errors on the next.
  1415.  
  1416. Sat Jul  2 00:05:44 1988  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1417.  
  1418.     * ld.c (symdef_library): Error check was off by one.
  1419.  
  1420. Mon May  9 12:53:08 1988  Chris Hanson  (cph at kleph)
  1421.  
  1422.     * ar.c (replace_members): After updating map, write out
  1423.     `change_map->next' rather than `map', since the latter may be
  1424.     null.
  1425.  
  1426. Local Variables:
  1427. mode: indented-text
  1428. left-margin: 8
  1429. version-control: never
  1430. End:
  1431.