* configure.in: Change i[34]86 to i[345]86.
[binutils-gdb.git] / ld / ChangeLog
index 873b0c99b4e5a4be977d6be9ea1c0333802d902e..f7df81645e0505959951e41a0ee47f5fe02a7e4e 100644 (file)
@@ -1,5 +1,280 @@
+Wed Aug 24 12:52:30 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * configure.in: Change i[34]86 to i[345]86.
+
+Sun Aug 21 16:17:19 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
+
+Thu Aug 18 15:37:45 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       Make the ELF linker handle orphaned sections reasonably.  Also,
+       define __start_SECNAME and __stop_SECNAME around sections whose
+       names can be represented in C, for the benefit of symbol sets in
+       glibc.
+       * ldemul.h (ldemul_place_orphan): Declare.
+       (ld_emulation_xfer_type): Add place_orphan field.
+       * ldemul.c (ldemul_place_orphan): New function.
+       * ldlang.h (wild_doit): Declare.
+       * ldlang.c (wild_doit): Make nonstatic.
+       (lang_place_orphans): Call ldemul_place_orphan.
+       * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
+       (hold_section, hold_use, hold_text, hold_data, hold_bss): New
+       static variables.
+       (gld${EMULATION_NAME}_place_orphan): New static function.
+       (gld${EMULATION_NAME}_place_section): New static function.
+       (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
+
+Tue Aug 16 00:17:20 1994  Eric Youngdale  (ericy@cais.cais.com)
+
+       * scripttempl/aout.sc: Add .linux-dynamic after .data.
+
+Tue Aug 16 00:08:22 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * lexsup.c (parse_args) Treat --dll-verbose as --version, for
+       Linux compatibility.  From hjl@nynexst.com (H.J. Lu).
+
+Mon Aug 15 17:17:33 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * ldexp.h (exp_get_abs_int): Declare.
+
+Sat Aug  6 01:45:39 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
+
+       * ldlang.c (lang_do_assignments):  Handle complex AT's better.
+       * ldexp.c (exp_get_abs_int):  New function.
+
+Fri Aug  5 20:55:55 1994  Jason Molenda (crash@phydeaux.cygnus.com)
+
+       * configure.in: add i960-nindy-coff support.
+
+Thu Aug  4 14:45:50 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * ldlex.l (yy_create_string_buffer): Handle change to internal
+       interface in flex 2.4.7.
+
+Tue Aug  2 11:52:06 1994  Eric Youngdale  (ericy@cais.cais.com)
+
+       * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
+       New function; add 0x20 to any use of -Ttext.
+       (gld${EMULATION_NAME}_create_output_section_statements): New
+       function.
+       (ld_${EMULATION_NAME}_emulation): Use the new function
+       gld${EMULATION_NAME}_create_output_section_statements.
+
+Mon Aug  1 15:50:44 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * scripttempl/mips.sc: Redo script to set . outside of sections
+       and not bother to explicitly specify section addresses.
+
+Tue Jul 26 11:02:35 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * scripttempl/elf.sc: Copy several more relocation sections into
+       the output.  Put .got.plt sections into .got.
+
+Fri Jul 22 12:15:36 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
+
+       Add a new script operator, PROVIDE, to define a symbol only if it
+       is needed.
+       * ldgram.y (PROVIDE): New token.
+       (assignment): Accept PROVIDE.
+       * ldlex.l (PROVIDE): New token.
+       * ldexp.h (node_type): Add etree_provide to node_class enum.
+       (exp_provide): Declare.
+       * ldexp.c (exp_fold_tree): Handle etree_provide.
+       (exp_provide): New function.
+       (exp_print_tree): Handle etree_provide.
+       * ld.texinfo: Document PROVIDE.
+
+       * ldlang.c (lang_common): Pass desired alignment to
+        lang_one_common as power of two.
+       (lang_one_common): Get common symbol alignment from linker hash
+       table entry.  Treat desired alignment as a power of two.
+
+       * ldlang.c (wild_section): Attach all section with the given name,
+       not just the first one.  If there is no name, attach all sections
+       even if the SEC_IS_COMMON flag is set.
+
+Wed Jul 20 15:49:27 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * ld.h (args_type): Add field rpath.
+       * lexsup.c (S_ISDIR): Define if not already defined.
+       (parse_args): Add support for -rpath.  If -R is used to name a
+       directory, treat it as -rpath for Solaris compatibility.
+       * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
+       Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
+       * ldmain.c (main): Initialize command_line.rpath to NULL.
+       * ld.texinfo: Document -rpath option.
+
+Sun Jul 10 00:33:24 1994  Ian Dall  (dall@hfrd.dsto.gov.au)
+
+       * emulparams/pc532machaout.sh: New file. Pc532 mach script
+       parameters. 
+
+       * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
+
+       * config/pc532mach.mt: New file. Pc532 mach target support.
+
+       * config/pc532mach.mh: New file. Pc532 mach host support.
+
+       * config/netbsd532.mt: New file. Netbsd 532 target support.
+
+       * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
+
+       * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
+       dependency.
+
+Fri Jul  8 10:57:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
+       bfd_abs_section_ptr, not &bfd_abs_section.
+
+       * lexsup.c (parse_args): Changed "retain-symbols-file" from
+       no_argument to required_argument.  From djm.
+
+Thu Jul  7 12:29:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
+       sections to force a VMA of 0; needed for ELF backends which have
+       not been converted to the new linker style.
+
+Mon Jul  4 19:35:45 1994  Jeff Law  (law@snake.cs.utah.edu)
+
+       * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
+       it was for the HPUX dynamic loader's use and it creates problems
+       with ELF GDB.
+
+Fri Jul  1 12:53:47 1994  Jeff Law  (law@snake.cs.utah.edu)
+
+       * ldlang.c (lang_do_assignments): No longer static.  Delete decl.
+       * ldlang.h (lang_do_assignments): Put external decl here.
+       * emultempl/hppaelf.em: Minor cleanups throughout file.
+       (hppa_elf_create_output_section_statements): Rewrite.
+       (hppaelf_finish): Rewrite.
+
+Wed Jun 29 16:50:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
+
+       * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic.  Do not
+       accept plain -B.
+       * ld.texinfo: -Bstatic is not ignored.
+
+Tue Jun 28 12:13:34 1994  Stan Shebs  (shebs@andros.cygnus.com)
+
+       * ldlex.l: Recognize \r the same as \n.
+
+Thu Jun 23 17:53:04 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       Preliminary support for generating shared libraries, from Eric
+       Youngdale <ericy@cais.cais.com>.
+       * genscripts.sh: If the emulation parameter file sets
+        GENERATE_SHLIB_SCRIPT, generate a .xs script file with
+       CREATE_SHLIB defined.
+       * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
+       link_info.shared is set, use the .xs script file.
+       * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
+       .interp section, and don't include TEXT_START_ADDR in the starting
+       address of the first section.
+       * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
+       * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
+
+Thu Jun 23 12:52:22 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
+
+       * configure.in: Change --with-targets to --enable-targets.
+
+Wed Jun 22 13:42:14 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * lexsup.c (parse_args): Add support for new options -( -) with
+       synonyms --start-group --end-group.
+       * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
+       (lang_group_statement_type): Define new struct.
+       (lang_statement_union_type): Add group_statement field.
+       (lang_enter_group, lang_leave_group): Declare.
+       * ldlang.c (lang_for_each_statement_worker): Handle
+       lang_group_statement_enum.
+       (map_input_to_output_sections, print_statement): Likewise.
+       (lang_size_sections, lang_do_assignments): Likewise.
+       (open_input_bfds): Completely rewrite.  Now does its own looping,
+       rather than using lang_for_each_statement.  Handle groups.
+       (lang_process): Update call to open_input_bfds.
+       (print_group): New static function.
+       (lang_enter_group, lang_leave_group): New static functions.
+       * ldfile.c (ldfile_open_file): If the file has already been
+       opened, just return rather than taking an assertion failure.
+       * ldver.c (help): Mention new options.
+       * ld.texinfo: Document new options.
+
+       * ldlang.c (end_of_data_section_statement_list): Don't define.
+       (lang_leave_output_section_statement): Don't set obsolete variable
+       end_of_data_section_statement_list.
+
+       * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
+       ALIGN.
+
+       * ldlang.c (lang_size_sections): Adjust current region address
+       even for sections with an explicit address.  From
+       ralphc@pyramid.com (Ralph Campbell).
+
+       * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
+       From jrs@world.std.com (Rick Sladkey).
+
+       * scripttempl/mipsbsd.sc: Let sections align to their natural
+       boundaries.
+
+Tue Jun 21 11:27:04 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
+       &bfd_abs_section.
+       (lang_abs_symbol_at_beginning_of): Likewise.
+       (lang_abs_symbol_at_end_of): Likewise.
+       (lang_size_sections): Use bfd_is_abs_section to check for the
+       absolute section.  Don't try to set the VMA or output_offset or
+       size of the absolute section.
+       * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
+       undefined section.
+
+Thu Jun 16 22:48:41 1994  Jeff Law  (law@snake.cs.utah.edu)
+
+       * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
+       when generating relocatable objects.
+
+Thu Jun 16 14:25:22 1994  Eric Youngdale  (ericy@cais.cais.com)
+
+       * emultempl/linux.em: New file providing support for linking
+       against Linux shared libraries.
+       * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
+       * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
+
 Thu Jun 16 12:22:01 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
+       * lexsup.c (parse_args): Add -shared to longopts, and handle it.
+       * ldmain.c (main): Initialize link_info.shared to false.  Give
+       error if link_info.relocateable and link_info.shared are both set.
+
+       * configure.in: If EMUL_EXTRA* is defined in a config file, treat
+       it as naming an emulation to be added to EMULATION_OFILES.
+       * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
+
+       * Makefile.in: Rebuilt dependencies.
+       (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
+       eelf64_sparc.o.  Remove $(OTHER_EMULATIONS).
+       (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
+       * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
+       (ei386linux.c): Remove; now in Makefile.in.
+       * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
+       * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
+       * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
+       * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
+       (eelf64_sparc.c): Remove; now in Makefile.in.
+       * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
+       (eelf32_sparc.c): Remove; now in Makefile.in.
+
+       * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
+       no owner--it might be bfd_abs_section.  From Eric Youngdale
+       <ericy@cais.cais.com>.
+
        * scripttempl/aout.sc: Let sections align to their natural
        boundaries.
 
@@ -3018,5 +3293,8 @@ Fri Oct  4 21:51:58 1991  John Gilmore  (gnu at cygnus.com)
 
 \f
 Local Variables:
+mode: indented-text
+left-margin: 8
+fill-column: 74
 version-control: never
 End: