* ldlang.c (map_input_to_output_sections): For lang_address, call
[binutils-gdb.git] / ld / ChangeLog
index e9db192d24e97d07a91996a62495bb6bb80fe355..41cdc4dbaddb1a24118098ee830a0caf1e5da72f 100644 (file)
@@ -1,3 +1,147 @@
+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.