X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2FChangeLog;h=d25865bd2c60420b2a94f88bacc5f8a3e3f4eea7;hb=0ad8cf4c25a62008c63dc37481fc6ef2d94d9218;hp=45a0f30e606c130cbeb16b3f074a829569baf5bf;hpb=41b49281c1e98174596a161a525ef4991d92741c;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ChangeLog b/ld/ChangeLog index 45a0f30e60..d25865bd2c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,506 @@ +2000-07-16 Charles Wilson + + * src/ld/emultempl/pe.em (gld_*_open_dynamic_archive): New search + order for dynamic library '-lfoo' on pei386: libfoo.dll.a, + foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility + errors introduced by the old dynamic lib search order. + +2000-07-17 DJ Delorie + + * pe-dll.c (process_def_file): auto-export data items also + (pe_process_import_defs): also see if _imp_ form needed + +2000-07-12 Charles Wilson + + * pe-dll.c (make_one): fix a typo in the __imp_ name decoration + for dll import libraries + +2000-07-12 Mark Elbrecht + + * scripttempl/i386go32.sc: Support the g++ attribute init_priority in + gcc 2.95.2 and later. + +2000-07-11 Kazu Hirata + + * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error + message. + +2000-07-10 Alan Modra + + * ldemul.h (struct lang_input_statement_struct): Remove forward + declaration. + (struct search_dirs): Likewise. + * ldfile.h (struct lang_input_statement_struct): Likewise. + Protect file from multiple inclusion. + * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain + declaration from macro to file scope. + + * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order. + * ldgram.y: Likewise here. + * ldlang.c: And here. + * ldmain.c: And here. + * mpw-elfmips.c: And here. + * mpw-eppcmac.c: And here. + * emultempl/aix.em: And here. + * emultempl/armcoff.em: And here. + * emultempl/armelf.em: And here. + * emultempl/armelf_oabi.em: And here. + * emultempl/beos.em: And here. + * emultempl/elf32.em: And here. + * emultempl/hppaelf.em: And here. + * emultempl/linux.em: And here. + * emultempl/lnk960.em: And here. + * emultempl/pe.em: And here. + * emultempl/sunos.em: And here. + * mpw-esh.c: And here. Include ldexp.h and ldlang.h too. + * mpw-idtmips.c: Ditto. + * emultempl/generic.em: Ditto. + * emultempl/gld960.em: Ditto. + * emultempl/gld960c.em: Ditto. + * emultempl/mipsecoff.em: Ditto. + * emultempl/ticoff.em: Ditto. + * emultempl/vanilla.em: Ditto. + + * pe-dll.c: Include ldfile.h + * ldver.c: Include ldexp.h, ldlang.h, ldfile.h + + * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing + arguments to bfd_elf32_size_dynamic_sections call. + (gldelf32ebmip_place_orphan): Add missing arguments to + lang_leave_output_section_statement call. + +2000-07-10 H.J. Lu + + * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with + DLL_SUPPORT. + (strhash): Likewise. + (compute_dll_image_base): Likewise. + (pe_undef_found_sym): Likewise. + (pe_undef_cdecl_match): Likewise. + (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the + argument "arch" with ATTRIBUTE_UNUSED. + +2000-07-10 Alan Modra + + * configure.tgt: Remove extraneous hppa*-*-linux-gnu*. + + From Ryan Bradetich + * ldwrite.c (SSIZE): Remove to cure macro redefinition warning. + +2000-07-09 Alan Modra + + Changes to create multiple linker stubs, positioned immediately + before the section where they are required. + * emultempl/hppaelf.em: Include elf32-hppa.h. + (stub_sec, file_chain): Delete. + (hppaelf_create_output_section_statements): Don't make a stub + section here. + (hook_stub_info): New struct. + (hook_in_stub): New function. + (hppaelf_add_stub_section): New function. + (hppaelf_finish): Do nothing for relocateable links. Modify the + call to elf32_hppa_size_stubs. Move code for updating section + layout from here... + (hppaelf_layaout_sections_again): ..to here, a new function. + + * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix + broken list handling. Pass in a pointer to the list. + (hppaelf_finish): Update call to hppaelf_delete_padding_statements + for above changes. + (hppaelf_before_parse): Prototype. + (hppaelf_set_output_arch): Prototype. + (hppaelf_create_output_section_statements): Prototype. + (hppaelf_delete_padding_statements): Prototype. + (hppaelf_finish): Prototype. + + Merge from elf32.em + * emultempl/hppaelf.em: Include ctype.h. + (struct orphan_save): New. + (gld${EMULATION_NAME}_place_orphan): New. + (output_rel_find): New. + (hppaelf_get_script): Update from elf32.em. + (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation. + Change emulation_name field to "${EMULATION_NAME}". Add + gld${EMULATION_NAME}_place_orphan. + + * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add + ehppalinux.o, sort it. Regenerate dependencies. + (ehppalinux.c): Depend on hppaelf.em + * Makefile.in: Regenerate. + + * configure.tgt: targ_emul=hppalinux for hppa*linux + + * emulparams/hppalinux.sh: New. + * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex. + +2000-07-08 Alan Modra + + * lexsup.c (parse_args): Copy section name. + +2000-07-07 Charles Wilson + + * emultempl/pe.em: institute the following search order for + dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import + libs), libfoo.dll, foo.dll (link direct to dll). Fall back to + static lib (libfoo.a) if none of the above are found. + +2000-07-07 Mumit Khan + + * emultempl/pe.em (pe_enable_auto_image_base): New variable. + (longopts): New --{enable,disable}-auto-image-base options. + (gld_${EMULATION_NAME}_list_options): Document. + (gld_${EMULATION_NAME}_parse): Handle. + (strhash): New static function. + (compute_dll_image_base): New static function. + (gld_${EMULATION_NAME}_set_symbols): Use. + +2000-07-05 DJ Delorie + + * MAINTAINERS: new + +2000-07-01 Koundinya K + + * configure.tgt: Add traditional mips (mips*-*-sysv4*) target. + * emulparams/elf32btsmip.sh: New file. + * Makefile.am: Add traditional mips target. + * Makefile.in: Rebuild. + +2000-07-01 H.J. Lu + + * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for + automake to use YLWRAP. + * Makefile.in: Rebuild. + +2000-07-01 Alan Modra + + * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed + (CLEANFILES): Add DEPA. + * Makefile.in: Regenerate. + +2000-06-30 Timothy Wall + + * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode + the page in the upper octet of the address. + +2000-06-26 Marek Michalkiewicz + + * emulparams/avrmega161.sh (ARCH): Change to avr:5. + +2000-06-24 Alan Modra + + * NEWS: arm-elf does --gc-sections too. + +2000-06-22 Alan Modra + + * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we + find one. + * Makefile.in: Regenerate. + +2000-06-21 H.J. Lu + + * Makefile.am: Rebuild dependency. + * Makefile.in: Rebuild. + +2000-06-20 H.J. Lu + + * Makefile.am: Rebuild dependency. + * Makefile.in: Rebuild. + +2000-06-20 Timothy Wall + + * scripttempl/tic54xcoff.sc: New. + * ldlang.c (wild_doit): Propagate SEC_BLOCK flag. + * gen-doc.texi: Add flag for TI COFF. + * ld.texinfo: Add documentation for TI COFF handling switches. + * emultempl/ticoff.em: New. TI COFF handling. + * configure.tgt: Add tic54x target. + * Makefile.am: Add tic54x target. + * Makefile.in: Ditto. + +2000-06-20 Alan Modra + + * ldmain.c (set_scripts_dir): Correct pointer comparison when + checking for backslashes. + +2000-06-19 Alan Modra + + * NEWS: Move entries not in 2.10 above "Changes in version 2.10". + +2000-06-18 Alan Modra + + * NEWS: Update list of targets supporting --gc-sections. + + * scripttempl/elf.sc: KEEP .eh_frame contents. + * scripttempl/elfd30v.sc: Same here. + +2000-06-18 Stephane Carrez + + * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12 + and m68hc11 (elf). + * Makefile.in: Rebuild. + * configure.tgt: Recognize m68hc12 and m68hc11. + * scripttempl/elfm68hc12.sc: New file. + * emulparams/m68hc12elfb: New emulation. + * emulparams/m68hc12elf: New emulation. + * emulparams/m68hc11elfb.sh: New file. User configurable emulation + (includes a memory.x script to define the ROM and RAM banks). + * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh: + New configuration files for support of Motorola 68hc11 + +2000-06-15 Alan Modra + + * ldmain.c (main): Only change SEC_READONLY for final link. + +2000-06-13 H.J. Lu + + * configure: Regenerate. + +2000-06-08 David O'Brien + + * configure.in (VERSION): Update to show this is the CVS mainline. + +2000-06-07 Michael Sokolov + + * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all + input objects to be ECOFF. + (check_sections): einfo takes %B, not %P, to print a BFD name. + +2000-06-05 Michael Matz + + * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in + version scripts. + + * ldlex.l (V_IDENTIFIER): Accept `::' in symbols. + +2000-05-23 Marek Michalkiewicz + + * emulparams/avr1200.sh (STACK): Define as 0. + * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address. + * emulparams/avr4433.sh (STACK): Likewise. + * emulparams/avr44x4.sh (STACK): Likewise. + * emulparams/avr85xx.sh (STACK): Likewise. + * emulparams/avrmega103.sh (STACK): Likewise. + * emulparams/avrmega161.sh (STACK): Likewise. + * emulparams/avrmega603.sh (STACK): Likewise. + * scripttempl/elf32avr.sc (__data_start): Define for gcrt1. + (__stack): Define from ${STACK} for main(). + +2000-05-26 Alan Modra + + * Makefile.am: Update dependencies with "make dep-am" + * Makefile.in: Regenerate. + +2000-05-26 Eli Zaretskii + + * ldmain.c: Include filenames.h. + (set_scripts_dir): Support backslashes in program name. + +2000-05-22 Igor Shevlyakov + + * ldmain.c (main): When deciding if ".text" section should be + read-only, don't forget to reset SEC_READONLY because it + could be already set. + +2000-05-22 Thomas de Lellis + + * ld.1: Add documentation for new command line option: + --section-start = + This is a generic version of -Ttext etc. which accepts + any section name as a parameter instead of just text/data/ + bss. + * ld.texinfo: More docs. + * NEWS: More docs. + * lexsup.c: (parse_args): Recognize new command line option. + (ld_options): Add new option. + +2000-05-18 H.J. Lu + + * lexsup.c (parse_args): `i' == `r', not `q'. + +Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com) + + * configure.tgt (hppa*64*-*-*): Enable PA64 target. + +2000-05-17 S. Bharadwaj Yadavalli + Rick Gorton + + Add support for '-q' == '--emit-relocs' switch. + * ldmain.c (main): Default to false. + * lexsup.c (parse_args): Turn on emitrelocations flag if set. + * NEWS: Describe the emitrelocations switch. + * ld.texinfo: Describe the emitrelocations switch. + +2000-05-16 Charles Wilson + + * ld/emultempl/pe.em (_open_dynamic_archive): New function: Search + the library path for "foo.dll" and "libfoo.dll" dynamic libraries + before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo' + link options. + +2000-05-15 David O'Brien + + * lexsup.c (parse_args): Update the year in the copyright notice. + +2000-05-13 Alan Modra + + * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain): + Replace defines with those from intl/libgettext.h to quieten gcc + warnings. + +2000-05-10 H.J. Lu + + * ldlang.c (open_input_bfds): Don't load the same file within + a group again if the whole archive has been loaded already. + +2000-05-03 Alan Modra + + From Ulf Carlsson and Andreas Jaeger + * lexsup.c (set_section_start): Use bfd_scan_vma rather than + strtoul. + +Mon May 1 17:34:34 2000 Jim Wilson + + * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}. + + * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for + host "ia64-*-linux-gnu*". + +2000-04-29 Andreas Jaeger + + * ld.h: Correctly check GCC version. + +Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com) + + * Makefile.am: Add PA64 support. Add missing dependencies for + PA32 elf support. + * Makefile.in: Rebuilt. + * configure.tgt: Add PA64 support (currently disabled). + +2000-04-25 Alan Modra + + * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete. + (output_rel_find): New function. + (hold_section, hold_use): Delete. + (hold_text, hold_rodata, hold_data, hold_bss, hold_rel, + hold_interp): Make local to place_orphan. + (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find + rather than place_section to find possible previous use of orphan. + Similarly find the place-holder output sections. Use returned + value from lang_enter_output_section_statement rather than calling + lang_output_section_statement_lookup. + * emultempl/armelf.em: Same here. + * emultempl/pe.em: Similar to above, but no need for output_rel_find. + + * ldlang.c (lang_enter_output_section_statement): Return output + section statement. + * ldlang.h (lang_enter_output_section_statement): Change + declaration too. + + * ldlang.h (lang_output_section_statement): Export it. + * ldlang.c (lang_output_section_statement): Ditto. + +2000-04-24 Nick Clifton + + * ld.texinfo (Output Section Data): Add note that section data + commands cannot appear outside of section directives. + +2000-04-2 Matthew Green + + * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support. + +Fri Apr 21 13:20:53 2000 Richard Henderson + David Mosberger + + * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o. + (eelf64_ia64.c): New rule. + * Makefile.in: Rebuild. + * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets. + * emulparams/elf64_ia64.sh: New file. + +2000-04-21 Richard Henderson + + * scripttempl/elfd30v.sc: Place .gcc_except_table. + +2000-04-19 Alan Modra + + * dep-in.sed: Match space at start of file name, not at end. + +2000-04-18 H.J. Lu + + * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call + lang_leave_output_section_statement () after calling + lang_enter_output_section_statement (). + * emultempl/armelf.em: Likewise. + +2000-04-18 Alan Modra + + * emultempl/elf32.em (struct orphan_save): Add section field. + (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in + better order, and place first orphan section as we did before the + 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place. + Don't call make_bfd_section here, let wild_doit do the job for us. + Don't build a statement list when we'll only throw it away. + * emultempl/armelf.em: Ditto. + * emultempl/pe.em: Similarly. + +2000-04-14 Geoff Keating + + * scripttempl/elfppc.sc: Remove. + * emulparams/elf32ppc.sh: Use elf.sc. + * emulparams/elf32lppc.sh: Use elf.sc. + * emulparams/elf32ppclinux.sh: Use elf.sc. + * emulparams/elf32ppcsim.sh: New file. + * emulparams/elf32lppcsim.sh: New file. + * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim. + (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim. + * Makefile.in: Regenerate. + * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim. + +2000-04-14 Alan Modra + + * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process + ~SEC_ALLOC sections too. Init start address of debug sections. + * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto. + * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto. + Also set all relocateable section start addresses. + +2000-04-13 Geoff Keating + + * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections. + Add new BSS_PLT variable for when .plt need not be contained in + the file. Move _etext so that it is also after .fini, and provide + both etext and _etext with a leading underscore. Mark the start + and end of .sbss. + +2000-04-12 Alan Modra + + * emultempl/elf32.em (struct orphan_save): New. + (hold_text, hold_rodata, hold_data, hold_bss, hold_rel, + hold_interp): Make them struct orphan_save. + (gld${EMULATION_NAME}_place_section): Modify for new hold_*. + (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to + the end of the relevant section list. Also add associated section + statements to the end of any previous orphan statements. + * emultempl/armelf.em: Similarly. + * emultempl/pe.em: Similarly. + +2000-04-11 Alan Modra + + * ld.texinfo (Simple Example): Remove extraneous paragraph. + +Fri Apr 7 15:56:57 2000 Andrew Cagney + + * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add + --enable-build-warnings option. + * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions. + * Makefile.in, configure: Re-generate. + 2000-04-04 Alan Modra + * po/ld.pot: Regenerate. + + * lexsup.c (help): Restore translated part of bug string. + * Makefile.am (MKDEP): Use gcc -MM rather than mkdep. (DEP): Quote when passing vars to sub-make. Add warning message to end. @@ -181,11 +682,11 @@ * ldgram.y: Handle LMA region syntax. * ld.texinfo (Output Section Description): Describe LMA region usage. * emultempl/armelf.em (gld$place_orphan): Add default value for - lma region in call to lang_leave_output_statement. + lma region in call to lang_leave_output_section_statement. * emultempl/elf32.em (gld$place_orphan): Add default value for - lma region in call to lang_leave_output_statement. + lma region in call to lang_leave_output_section_statement. * emultempl/pe.em (gld$place_orphan): Add default value for - lma region in call to lang_leave_output_statement. + lma region in call to lang_leave_output_section_statement. 2000-02-04 Timothy Wall @@ -398,7 +899,7 @@ Wed Nov 3 23:31:19 1999 Jeffrey A Law (law@cygnus.com) 1999-09-22 Nick Clifton - * Makefile.am: Add earm_epoc_pe.c build target. + * Makefile.am: Add earm_epoc_pe.c build target. Sat Sep 18 07:57:10 1999 Jeffrey A Law (law@cygnus.com) @@ -9904,7 +10405,7 @@ Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com) Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com) * ldmain.c (main): Make config.magic_demand_paged be true - by default. Don't the WP_TEXT and D_PAGED flags of + by default. Don't set the WP_TEXT and D_PAGED flags of output_bfd here; it's too late, so set it when output_bfd is created (in ldlang.c). Also fix setting of EXEC_P flag * ldlang.c (ldlang_open_output): Set output_bfd->flags here.