* ld.texinfo (Input Section Basics): Clarify ordering of output
[deliverable/binutils-gdb.git] / ld / ChangeLog
index 61dc7579d1f88f3e4491af2388ba4efed2baa47d..956682c69e3f5045f81dcf56c3e09e1b6308277f 100644 (file)
@@ -1,3 +1,383 @@
+2001-08-03  Alan Modra  <amodra@bigpond.net.au>
+
+       * ld.texinfo (Input Section Basics): Clarify ordering of output
+       sections.
+       * ldlang.c (callback_t): Add wildcard_list param.
+       (walk_wild_section): Remove "section" param.  Rewrite for
+       lang_wild_statement_type change.  Remove unique_section_p test.
+       (walk_wild_file): Remove "section" param.
+       (walk_wild): Remove "section" and "file" params.
+       (lang_gc_wild): Likewise.
+       (wild): Likewise.  Modify for lang_wild_statement_type change.
+       (wild_sort): Likewise.  Add "sec" param.
+       (gc_section_callback): Likewise.
+       (output_section_callback): Likewise.  Do unique_section_p test.
+       (map_input_to_output_sections): Modify call to wild.
+       (lang_gc_sections_1): Likewise.
+       (print_wild_statement): Modify for lang_wild_statement_type
+       change.
+       (lang_add_wild): Replace filename, filenames_sorted param with
+       filespec.  Replace section_name, sections_sorted,
+       exclude_filename_list with section_list.
+       * ldlang.h (lang_add_wild): Here too.
+       (lang_wild_statement_type): Replace section_name, sections_sorted,
+       and exclude_filename_list with section_list.
+       * ldgram.y (current_file): Delete.
+       (%union): Add wildcard_list.
+       (file_NAME_list): Set type to wildcard_list.  Build a linked list
+       rather than calling lang_add_wild for each entry.
+       (input_section_spec_no_keep): Call lang_add_wild here instead.
+       * ld.h (struct wildcard_list): Declare.
+       * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
+
+2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
+
+       * ldmain.c (main): initialize link_info.pei386_auto_import
+       * pe-dll.c: new tables for auto-export filtering
+       (auto_export): change API, pass abfd for contextual filtering.
+       Loop thru tables of excluded symbols instead of comparing
+       "by hand".
+
+2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
+
+       * pe-dll.c: new variable pe_dll_enable_extra_debug. New
+       static variable current_sec (static struct sec *). Add
+       forward declaration for add_bfd_to_link.
+       (process_def_file): Don't export undefined symbols. Do not
+       export symbols starting with  "_imp__".  Call auto_export()
+       with new API.
+       (pe_walk_relocs_of_symbol): New function.
+       (generate_reloc): add optional extra debugging
+       (pe_dll_generate_def_file): eliminate extraneous initial blank
+       line in output
+       (make_one): enlarge symtab to make room for __nm__ symbols
+       (DATA auto-import support).
+       (make_singleton_name_thunk): New function.
+       (make_import_fixup_mark): New function.
+       (make_import_fixup_entry): New function.
+       (pe_create_import_fixup): New function.
+       (add_bfd_to_link): Specify that 'name' argument is a CONST
+       char *.
+       * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
+       declare new functions pe_walk_relocs_of_symbol and
+       pe_create_import_fixup.
+       * emultempl/pe.em: add new options --enable-auto-import,
+       --disable-auto-import, and --enable-extra-pe-debug.
+       (make_import_fixup): New function.
+       (pe_find_data_imports): New function.
+       (pr_sym): New function.
+       (gld_${EMULATION_NAME}_after_open): Add optional extra pe
+       debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
+       CODE.
+
+2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
+
+       * ld.texinfo: add additional documentation for
+       --export-all-symbols.  Document --out-implib,
+       --enable-auto-image-base, --disable-auto-image-base,
+       --dll-search-prefix, --enable-auto-import, and
+       --disable-auto-import.
+       * ldint.texinfo: Add detailed documentation on auto-import
+       implementation.
+
+2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
+       example.
+
+2001-07-24  Alan Modra  <amodra@bigpond.net.au>
+
+       * Makefile.am: Update dependencies with "make dep-am".
+       * Makefile.in: Regenerate
+
+2001-07-23  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldcref.c (check_section_sym_xref): New function.
+       (check_nocrossrefs): Call it.
+       (check_nocrossref): Interate over h->refs here instead of..
+       (check_refs): ..here.  Pass in the symbol name, section, and bfd
+       rather than hash_entry pointers.
+       (struct check_refs_info): Keep symbol name rather than hash entry.
+       Remove "same".
+       (check_reloc_refs): Tweak for above changes in check_refs_info.
+       Only report references to section syms when symname is NULL to
+       prevent duplicate messages for the same reloc.
+
+2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
+       available.  Do not print NULL trees.
+       (exp_print_token): Print unknown tokens with values > 126 as
+       decimal values not ASCII characters.
+
+       * ldlang.c (lang_leave_overlay): If a region is specified assign
+       it to all sections inside the overlay unless they have been
+       assigned to the own, non-default, memory region.
+
+       * README: Add header for consistency with other README files.
+
+2001-07-14  H.J. Lu  <hjl@gnu.org>
+
+       * emultempl/elf32.em (output_prev_sec_find): Never return
+       bfd_abs_section_ptr, bfd_com_section_ptr nor
+       bfd_und_section_ptr.
+
+2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * Makefile.am (em32relf.c): Chnage dependencu from generic.em to
+       elf32.em.
+       * Makefile.in: Regenerate.
+
+2001-07-14  matthew green  <mrg@eterna.com.au>
+
+       * configure.tgt (i386-*-netbsdelf*): New target.
+       (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
+
+2001-07-13  Jakub Jelinek  <jakub@redhat.com>
+
+       * emultempl/elf32.em (output_prev_sec_find): New.
+       (place_orphan): Use it.
+
+2001-07-11  H.J. Lu  <hjl@gnu.org>
+
+       * ldmain.c (main): Fix typos in the last change.
+
+2001-07-11  Jakub Jelinek  <jakub@redhat.com>
+
+       * ldmain.c (main): Disallow -F and -f without -shared.
+
+2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * emultempl/pe.em (after_open): Check for the output_bfd not
+       having any coff_data structure allocated to it.
+
+2001-07-09  David O'Brien  <obrien@FreeBSD.org>
+
+       * emultempl/elf32.em: Do not assuming that contents of the buffer
+       returned from basename function will remain unchanged accross other
+       function calls.
+
+2001-07-03  H.J. Lu  <hjl@gnu.org>
+
+       * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
+       2001-07-03. It creates dynamic entries even for static binaries.
+
+2001-07-03  Jakub Jelinek  <jakub@redhat.com>
+
+       * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
+       (DYNAMIC): Use it to reserve few dynamic entries for
+       post-linking tools.
+
+2001-06-27  Alan Modra  <amodra@bigpond.net.au>
+
+       * emulparams/hppa64linux.sh: New file.
+       * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
+       * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
+       (ehppa64linux.c): Add rule to make it.
+       Run "make dep-am".
+       * Makefile.in: Regenerate.
+
+2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
+
+       * ld.texinfo (Options, -r): Mention restrictions when using
+       different object formats.
+
+2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
+
+       * ldlang.c (lang_check): Emit fatal error if relocatable link
+       between different object flavours with relocations in input.
+
+2001-06-19  H.J. Lu  <hjl@gnu.org>
+
+       * ld.texinfo (-E, --export-dynamic): Mention --version-script.
+       (--version-script): Mention the language support.
+
+2001-06-19  H.J. Lu <hjl@gnu.org>
+
+       * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
+
+2001-06-18  H.J. Lu <hjl@gnu.org>
+
+       * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
+       (diststuff): Add $(MANS).
+       * Makefile.in: Regenerated.
+
+       * ld.1: Removed.
+
+2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
+       Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
+       * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
+       * ld.h (args_type): Remove member export_dynamic.  All users
+       changed to use struct bfd_link_info member.
+
+       * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
+       $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
+       * Makefile.in: Regenerate.
+
+2001-06-18  H.J. Lu  <hjl@gnu.org>
+
+       * ldlang.c (init_os): Add the newline to the einfo call.
+       (lang_check): Likewise.
+       (lang_do_version_exports_section): Likewise.
+
+2001-06-15  H.J. Lu  <hjl@gnu.org>
+
+       * lexsup.c (parse_args); Save optind to report unrecognized
+       option.
+
+2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
+
+       * ldlang.c (lang_check): Emit fatal error if relocatable link
+       between different object flavours.
+
+       * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
+       Set new link_info member export_dynamic.
+       * ldmain.c (main): Initialize new link_info member export_dynamic.
+
+2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * ldlang.c (walk_wild): Only call walk_wild_file if
+       lookup_name returns something.
+       (lookup_name): If load_symbols fails, return NULL.
+       (load_symbols): Chnage to a boolean function.
+       (open_input_bfds): If load_symbols fails then do not make the
+       executable.
+
+2001-06-08  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldlang.c (record_bfd_errors): Remove.
+
+       * emultempl/aix.em: Fix copyright dates.
+
+2001-06-07  Andreas Jaeger  <aj@suse.de>
+
+       * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
+       (TEXT_START_ADDR): Likewise.
+
+2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
+
+       * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
+
+2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
+
+       * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
+
+2001-05-31  H.J. Lu  <hjl@gnu.org>
+
+       * ldlang.c (open_input_bfds): Don't change the bfd error
+       handler whilst loading symbols.
+
+2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * configure.tgt: Remove i370-mvs architecture, it is not currently
+       supported.
+
+2001-05-25  H.J. Lu  <hjl@gnu.org>
+
+       * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
+       like emulparams/aixppc.sh.
+
+2001-05-25  H.J. Lu  <hjl@gnu.org>
+
+       * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
+       setting of output_filename after bfd_scan_arch.
+       * emultempl/pe.em: Likewise.
+
+2001-05-25  H.J. Lu  <hjl@gnu.org>
+
+       * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
+       like emulparams/aixppc.sh.
+
+       * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
+       instead of ${srcdir}/emultempl/stringify.sed.
+
+2001-05-25  Timothy Wall  <twall@oculustech.com>
+
+       * emulparams/elf64_aix.sh: Change settings to match IBM linker
+       output.
+
+2001-05-25  Alan Modra  <amodra@one.net.au>
+
+       * configure.host: Replace linuxoldld with linux*oldld.
+       * configure.tgt: Likewise.
+
+2001-05-24  H.J. Lu  <hjl@gnu.org>
+
+       * emultempl/stringify.sed: Removed again.
+
+2001-05-24  H.J. Lu  <hjl@gnu.org>
+
+       * emultempl/aix.em (OUTPUT_ARCH): Defined.
+       (gld${EMULATION_NAME}_before_parse): Initialize
+       ldfile_output_architecture, ldfile_output_machine and
+       ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
+       * emultempl/beos.em: Likewise.
+       * emultempl/elf32.em: Likewise.
+       * emultempl/linux.em: Likewise.
+       * emultempl/mipsecoff.em: Likewise.
+       * emultempl/pe.em: Likewise.
+       * emultempl/sunos.em: Likewise.
+
+2001-05-24 Tom Rix <trix@redhat.com>
+
+       * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
+       udate import file format.
+       (change_symbol_mode) New, same
+       (is_syscall) New, same
+       * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
+       * emulparams/aixppc64.sh : same
+       * emulparams/aixrs6.sh : same
+       * emulparams/ppcmacos.sh : same
+       * emultempl/aix.em : use strtoull to parse options
+       * Makefile.am : add eaixppc64 emulation for xcoff64
+       * Makefile.in : same
+       * configure.tgt : same
+
+       * scripttempl/aix.sc : default text section offset to 0x10000000
+        default data section offset to 0x20000000
+       add .sv3264 and .sv64 pseudo sections
+       loader and debug sections use the currect section offset.
+
+       * emultempl/aix.em : Add xcoff64 support
+       Add -binitfini support
+       (gld${EMULATION_NAME}_before_parse) -binitfini
+       (gld${EMULATION_NAME}_parse_args) same
+       (gld${EMULATION_NAME}_before_allocation) format change for special
+       sections
+
+       * emulparams/aixppc64.sh : New file for xcoff64 support
+
+2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
+
+       * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
+       variable to avoid non-portable shell construct.
+
+2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * ldmain.c (get_emulation): Add -mips5 command line argument.
+
+2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
+
+       * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
+       (ELF_INTERPRETER_NAME): Define it.
+       * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
+       it.
+       * configure.tgt (targ_emul, targ_extra_emuls)
+       [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
+       as primary, elf_i386 as extra.
+       * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
+       (eelf_i386_ldso.c): New rule.
+       * Makefile.in: Rebuilt.
+
+2001-05-22  Nick Clifton  <nickc@redhat.com>
+
+       * lexsup.c (ld_options):  Allow -I to be an alias for
+       --dynamic-linker.  This is for Solaris compatability.
+       * ld.texinfo: Document that -I can be used.
+       * ld.1: Regenerate.
+
 2001-05-16  Alan Modra  <amodra@one.net.au>
 
        * ldlang.c (wild_doit): Use linker_has_input to reliably determine
 
 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
 
-        * emulparams/elf32openrisc.sh: New file.
+       * emulparams/elf32openrisc.sh: New file.
 
-        * Makefile.am: Add OpenRISC target.
-        * Makefile.in: Regenerated.
+       * Makefile.am: Add OpenRISC target.
+       * Makefile.in: Regenerated.
 
-        * configure.tgt: Add openrisc-*-* mapping.
+       * configure.tgt: Add openrisc-*-* mapping.
 
 2001-05-02  Nick Clifton  <nickc@redhat.com>
 
        * emultempl/aix.em: Replace buystring with xstrdup.
        * emultempl/beos.em: Replace buystring with xstrdup.
-       
+
 2001-05-02  H.J. Lu  <hjl@gnu.org>
 
        * ldfile.c: Include "libiberty.h".
 
 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
 
-        * ldlang.c (load_symbols): Give emulation a chance
-        to process unrecognized file before fatal error is
-        reported, not after.
+       * ldlang.c (load_symbols): Give emulation a chance
+       to process unrecognized file before fatal error is
+       reported, not after.
 
 2001-04-27  Sean McNeil <sean@mcneil.com>
 
        * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
        after_allocation_default, not gld..._before_allocation.
 
-2001-02-28  Matt Hiller  <hiller@redhat.com>
-
-       * testsuite/ld-scripts/crossref.exp: Initialize flags to
-       [big_or_little_endian].
-       * testsuite/ld-undefined/undefined.exp: Ditto, and include $flags
-       in ld invocations.
-       * testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB,
-       -eb, -EL and -el.
-       (is_endian_output_format): New function.
-       (default_ld_link): Set flags to [big_or_little_endian] only if ld
-       is being invoked such that the output format being used is of
-       known endianness.
-       (default_ld_simple_link): Ditto.
-
 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
 
        * configure.in (BFD_VERSION): New.
 2001-02-26  H.J. Lu  <hjl@gnu.org>
 
        * ldlang.c (open_input_bfds): Set the bfd error handler so
-        that problems can be caught whilst loading symbols.
-        (record_bfd_errors): New function: Report BFD errors and mark
-        the executable output as being invalid.
+       that problems can be caught whilst loading symbols.
+       (record_bfd_errors): New function: Report BFD errors and mark
+       the executable output as being invalid.
 
 2001-02-22  Timothy Wall  <twall@cygnus.com>
 
This page took 0.028338 seconds and 4 git commands to generate.