* ldlang.c (map_input_to_output_sections): For lang_address, call
[binutils-gdb.git] / ld / ChangeLog
index 1a1156913003f7ac2b593a458aba0aa5e2feafd9..41cdc4dbaddb1a24118098ee830a0caf1e5da72f 100644 (file)
@@ -1,3 +1,191 @@
+Thu Jun  9 00:17:20 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * ldlang.c (map_input_to_output_sections): For lang_address, call
+       init_os if it hasn't already been called.
+
+Thu Jun  2 17:24:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       Add support for SunOS shared libraries.
+       * aout.sc: Don't define __DYNAMIC here.  Add new sections used by
+       shared library support code.
+       * emultempl/sunos.em: New file.
+       * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
+       * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
+       * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
+       (esun3.c): Likewise.
+
+       * ldlang.c: Minor formatting cleanups.
+       (lang_for_each_input_file): New function.
+       * ldlang.h (lang_for_each_input_file): Declare.
+
+       * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
+       field.
+       (search_head): Declare.
+       (ldfile_add_library_path): Add new cmdline argument in prototype.
+       * ldfile.c (search_head): Make non-static.
+       (search_dirs_type): Move to ldfile.h.
+       (ldfile_add_library_path): Accept cmdline argument, and save it.
+       * lexsup.c (parse_args): Pass true for new cmdline argument of
+       ldfile_add_library_path.
+       (set_default_dirlist): Likewise.
+       * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
+       argument of ldfile_add_library_path.
+       * ldgram.y (ifile_p1): Likewise.
+
+Wed Jun  1 14:24:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * ldlang.h (lang_input_statement_type): Remove fields subfiles,
+       total_size, superfile and chain.
+       * ldfile.c (open_a): Don't clear search_dirs_flag.
+       (ldfile_open_file): Don't try to open superfile.  Assert that file
+       has not already been opened.
+       * ldlang.c (new_afile): Don't initialize superfile.
+       * ldmain.c (add_archive_element): Don't initialize subfiles or
+       chain or superfile.  Initialize search_dirs_flag to false.
+
+Fri May 27 12:25:33 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
+
+       * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
+
+       Changes from binutils-2.4 release:
+
+       * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
+       variables, use whitespace, so scripts don't break.
+
+       * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
+
+       * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
+
+       * cdtest-bar.cc: Renamed from cdtest-func.cc.
+       * Makefile.in: Noted change.
+
+       * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
+       don't know where that's supposed to come from, or why it's
+       necessary.
+
+       Wed May 11 22:32:00 1994  DJ Delorie (dj@ctron.com)
+
+       * configure.bat: update to latest makefile.in
+       * emulpara/go32.sh: set to coff-go32 not aout
+       * emultemp/generic.em: strength-reduce the structure of
+         this shell script, since the only available shell for
+         DOS can't handle complex syntax.
+       * emultemp/stringify.sed: for "sed -f" instead of inline.
+       * makefile.in: depend on stringify.sed as well as genscripts.sh
+       * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
+       * genscripts.sh: empty variables aren't always considered "set",
+         so set them to "y" instead.
+
+Fri May 27 01:08:14 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * ldlang.c (entry_symbol): Make static.
+       (lang_add_entry): Add cmdline argument.
+       * ldlang.h (lang_add_entry): Change prototype.
+       * ldgram.y (statement_anywhere): Change lang_add_entry call.
+       * lexsup.c (parse_args): Likewise.
+
+Tue May 24 16:13:43 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
+       .reginfo an address.
+       (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
+       (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
+       * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
+
+Thu May 19 13:31:33 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       Add support for ELF shared libraries.
+       * ld.h (ld_config_type): Add field dynamic_link.
+       * ldmain.c (main): Initialize config.dynamic_link to false.  Warn
+       on attempts to use -r with -relax, -call_shared or -s.
+       * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
+       OPTION_NON_SHARED.  Add OPTION_IGNORE.  Adjust macro values
+       accordingly.  Add "dy" and "non_shared" options.  Change "Qy" to
+       OPTION_IGNORE for now.  Handle OPTION_CALL_SHARED and
+       OPTION_NON_SHARED by setting dynamic_link field accordingly.
+       Handle OPTION_IGNORE by ignoring it.  Clear dynamic_link field for
+       -r and -Ur.
+       * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
+       opening a file with a .so extension first.
+       * emultempl/elf32.em: New file.
+       * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
+       (NONPAGED_TEXT_START_ADDR): Likewise.
+       (TEMPLATE_NAME): Define as elf32.
+       (DATA_PLT): Define.
+       * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
+       * scripttempl/elf.sc: Add placement for new dynamic sections.
+       Don't use CREATE_OBJECT_SYMBOLS.  Define _etext, _edata and _end
+       outside of any section.  Don't use ALIGN(8); just let one section
+       VMA follow another.  Put .dynbss in .bss.  Don't mention debugging
+       sections; they'll be handled correctly anyhow.
+       * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
+
+Wed May 18 10:15:39 1994  Ian Lance Taylor  (ian@cygnus.com)
+
+       * Makefile.in (install): Redirect output of ln to /dev/null.
+
+Mon May 16 13:35:08 1994  Jeff Law  (law@snake.cs.utah.edu)
+
+       * emultempl/hppaelf.em: Change all references of
+       .hppa_linker_stubs to .PARISC.stubs.
+       * scripttempl/hppaelf.sc: Likewise.
+
+Fri May 13 13:00:38 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * ldlang.c (print_output_section_statement): Change ``no attached
+       output section'' message slightly.
+       (lang_do_assignments): Don't recurse down if there is no real
+       section.
+
+       * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
+       match corresponding change in emulation templates.
+       * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
+       * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
+
+Wed May 11 18:16:46 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
+
+       * ldver.c (ldversion): Updated version number.
+
+       * cdtest-foo.cc: Use explicit "#pragma implementation".
+       * cdtest-bar.cc: Renamed from cdtest-func.cc.
+       * Makefile.in: References to cdtest-func.o changed to
+       cdtest-bar.o.
+
+Wed May 11 16:24:19 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       Don't create unnecessary output sections.
+       * ldlang.c (out_bfd_get_section_by_name): Remove.
+       (wild_section): Call bfd_get_section_by_name rather than
+       our_bfd_get_section_by_name.  Don't call wild_doit if there is no
+       section.
+       (lang_create_output_section_statements): Remove.
+       (map_input_to_output_sections): For several cases, call init_os if
+       it has not already been called.
+       (lang_size_sections): If output section was not created, skip it.
+       (lang_process): Don't call lan_create_output_section_statements.
+       (lang_place_orphans): Skip files with just_syms_flags set to true.
+       * ld.texinfo: Document change.
+
+Tue May 10 14:31:16 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * ldlang.c (wild_doit): Don't bother initializing the vma and
+       section size.  Don't special case SEC_SHARED_LIBRARY.
+       (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
+       specially.
+
+Fri May  6 12:24:27 1994  Steve Chamberlain  (sac@cygnus.com)
+
+       * config/go32.mh : New file for Xgo32X.
+
+Fri May  6 15:15:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
+       before calling einfo, since we are reporting an fopen failure.
+       From jrs@world.std.com (Rick Sladkey).
+
+       * configure.in: Use "e" rather than "em_" as prefix for
+       emulations.
+
 Fri May  6 01:08:14 1994  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
 
        * emultempl/generic.em: Use "e" rather than "em_" as prefix for
@@ -574,17 +762,6 @@ Tue Jan 18 16:18:15 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
        * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
        for a.out.
 
-Fri Jan 14 12:37:16 1994  Ian Lance Taylor  (ian@cygnus.com)
-
-       Motorola Delta sysV68 support from phdm@info.ucl.ac.BE (Philippe
-       De Muyter).
-       * configure.in (m68k-motorola-sysv*) New target.
-       * config/delta68.mt: New file.
-       * emulparams/delta68.sh: New file.
-       * scripttempl/delta68.sc: New file.
-       * Makefile.in (ALL_EMULATIONS): Added em_delta68.o.
-       (em_delta68.c): New target.
-
 Tue Jan 11 13:22:04 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
        * ldmain.c (add_archive_element): If trace_files or