X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2FChangeLog;h=531a604142093b790ed46546787fdf7c16523029;hb=06647dfdde91b5ee1990706d2806197d58200a3d;hp=d39892c06da19d585c752dae6973b9ddd716c09e;hpb=a4f5ad884ecd1b56c973e0d562d97720140d1ec8;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ChangeLog b/ld/ChangeLog index d39892c06d..531a604142 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,750 @@ +2005-03-05 Alan Modra + + * po/ld.pot: Regenerate. + +2005-03-02 Jan Beulich + + * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink. + * pe-dll.c (pe_dll_generate_implib): Likewise. + +2005-02-24 Ben Elliston + + * ldfile.c: Remove GNU960 conditional code. + * emultempl/gld960.em: Likewise. + * emultempl/gld960c.em: Likewise. + * emultempl/lnk960.em: Likewise. + +2005-02-24 Nick Clifton + + * emultempl/lnk960.em (lnk960_before_parse): Remove redundant + empty string from calls to concat. + +2005-02-23 Nick Clifton + + * emultempl/lnk960.em (lnk960_before_parse): Terminate list of + arguments passed to concat() with a NULL. + + * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they + define types needed by ldfile.h + +2005-02-23 Alan Modra + + * pe-dll.c: Warning fixes. + * emultempl/sunos.em: Likewise. + +2005-02-22 Daniel Jacobowitz + + * ldlang.c (section_already_linked): Don't call + bfd_section_already_linked for dynamic objects. + +2005-02-22 Alan Modra + + * ldexp.c: Warning fixes. + * ldwrite.c: Likewise. + * emultempl/elf32.em: Likewise. + +2005-02-21 H.J. Lu + + * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI + tic54x input only. + (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF + and ECOFF output only. + +2005-02-21 Alan Modra + + * config.in: Regenerate. + * configure: Regenerate. + +2005-02-17 Zack Weinberg + + * ldexp.c (assigning_to_dot): New global flag. + (fold_name): If assigning_to_dot is true, object immediately to + an undefined symbol. + (exp_fold_tree): Set and clear assigning_to_dot around the + recursive call to exp_fold_tree to process the right-hand side + of an assignment to the location counter. + +2005-02-17 Paul Brook + + * scripttempl/armbpabi.sc: Add dummy name to version block. + +2005-02-17 Alan Modra + + * ldexp.c (new_abs): Init new.str. + +2005-02-15 Mark Mitchell + + * configure.in (AC_CHECK_FUNCS): Add glob. + * configure: Regenerated. + * emultempl/elf32.em (): Do not include if HAVE_GLOB is + not defined. + (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob + if HAVE_GLOB is not defined. + +2005-02-16 Kaz Kojima + + * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define + lib_path if NATIVE is yes. + +2005-02-16 Alan Modra + + * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make + an error creating fake bfd fatal. + (ppc_before_allocation): Continue on after errors. + (gld${EMULATION_NAME}_finish): Likewise. + +2005-02-15 Nick Clifton + + * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is + not declared. It is not used and its presence causes a compile + time warning. + +2005-02-11 Zack Weinberg + + * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): + If st.st_ino is zero, do not treat the library as a duplicate. + +2005-02-10 Jakub Jelinek + + * emultempl/hppaelf.em (hppaelf_create_output_section_statements): + Set BFD_LINKER_CREATED on the stubs bfd. + * emultempl/ppc64elf.em (ppc_create_output_section_statements): + Likewise. + +2005-02-08 Mark Mitchell + + * scripttempl/armbpabi.sc (VERSION): Make special section symbols + local. + (Image$$ER_RO$$Base): Define whenever RELOCATING. + (Image$$ER_RO$$Limit): Likewise. + (SHT$$INIT_ARRAY$$Base): Likewise. + (SHT$$INIT_ARRAY$$Limit): Likeise. + +2005-02-10 Ben Elliston + + * emultempl/beos.em: Remove #if 0 and #if 1 blocks. + +2005-02-08 Richard Sandiford + + * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath + to include o32 and n64 emulations. + (mips64*-*-linux-gnu*): Likewise. + +2005-02-08 Hans-Peter Nilsson + + * ldmain.c (warning_callback, warning_find_reloc): Prepend + "warning: " to warning messages. + +2005-02-04 Alan Modra + + * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't + look up symbol for etree_provide here. + +2005-02-02 Daniel Jacobowitz + + * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set. + +2005-02-01 Edward Welbourne + Nick Clifton + + * ld.texinfo (Source Code Reference): New node describing how to + access linker script defined variables from source code. + +2005-02-01 Alan Modra + + * ld.texinfo: Clarify --as-needed operation. + +2005-01-31 Andrew Cagney + + * configure: Regenerate to track ../gettext.m4. + +2005-01-31 Nick Clifton + + * ldver.c (ldversion): Bump reported copyright date to 2005. + +2005-01-31 Nick Clifton + + * configure.tgt: Remove obsolete targets m68k-lynxos and + sparc-lynxos. + +2005-01-28 Julian Brown + + * emultempl/armelf.em (fix_v4bx): New variable. + (arm_elf_create_output_section_statements): Communicate fix_v4bx flag + value to bfd. + (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX. + (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx. + (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx. + (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX. + * NEWS: Mention --fix-v4bx. + * ld.texinfo: Document --fix-v4bx. + +2005-01-25 Mark Mitchell + + * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so + as to include .ARM.exidx$${Base,Limit}. + * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment. + Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}. + Put .init_array, .fini_array, etc. into the read-only data + segment. + +2005-01-25 Alan Modra + + * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting. + (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were + only needed by an as-needed lib that didn't get linked. + +2005-01-23 Alan Modra + + * ld.texinfo (Output Section Keywords ): Correct + __DTOR_LIST__ description. + +2005-01-23 Alan Modra + + * ld.texinfo (Location Counter ): Document + effects of orphan section placement, and ". = ." workaround. + * Makefile.in: Regenerate. + +2005-01-22 Richard Sandiford + + * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;". + * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise. + +2005-01-21 Jakub Jelinek + + * ldgram.y (AS_NEEDED): New token. + (input_list): Handle AS_NEEDED ( input_list ). + * ldlex.l (AS_NEEDED): Add. + * ld.texinfo: Document AS_NEEDED (). + * NEWS: Mention AS_NEEDED (). + +2005-01-21 Ben Elliston + + * ldlang.c (lang_reasonable_defaults): Remove. + (lang_process): Don't call lang_reasonable_defaults. + + * ldexp.c (exp_assop): Remove #if 0'd code. + (exp_print_tree): Likewise. + * ldlang.c (lang_memory_region_lookup): Likewise. + (open_output): Likewise. + (lang_do_assignments_1): Likewise. + (lang_place_orphans): Likewise. + (lang_enter_output_section_statement): Likewise. + (lang_reasonable_defaults): Likewise. + * ldlang.h (struct lang_input_statement_struct): Likewise. + * mri.c (mri_draw_tree): Likewise. + (mri_load): Likewise. + * pe-dll.c (generate_reloc): Likewise. + (make_import_fixup_entry): Likewise. + (pe_as16): Likewise. + * emultempl/beos.em (set_pe_subsystem): Likewise. + * emultempl/hppaelf.em (hppaelf_after_parse): Likewise. + * emultempl/pe.em: Likewise. + * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise. + +2005-01-20 Daniel Jacobowitz + + * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o. + (earmelfb_linux_eabi.c): New target. + * Makefile.in: Regenerated. + * configure.tgt (arm*b-*-linux-gnueabi): New target. + * emulparams/armelfb_linux_eabi.sh: New file. + +2005-01-20 Nick Hudson + + PR ld/676 + * emultempl/hppaelf.em (hppaelf_create_output_section_statements): + Handle bfd_elf32_hppa_nbsd_vec. + +2005-01-19 Richard Sandiford + + * ldmain.h (ld_sysroot): Change type to a constant string. + * ldmain.c (ld_sysroot): Likewise. + (get_relative_sysroot, get_sysroot): New functions, adding command-line + support for changing the sysroot. + (main): Call the new functions. + * lexsup.c (OPTION_SYSROOT): New. + (ld_options): Add --sysroot. + (parse_args): Add a dummy handler for it. + * ld.texinfo (--sysroot): Document. + * NEWS: Mention the new --sysroot option. + +2005-01-18 Alan Modra + + * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call. + (lang_place_orphans): Don't abort on just_syms_flag, instead call + bfd_link_just_syms. + +2005-01-16 Danny Smith + + * defilep.y (def_name, def_library): Combine into... + (def_image_name): New function. Strip name to basename, + with warning. + +2005-01-12 Mark Kettenis + + * configure.in: Be sure to invoke config.sub using the shell. + * configure: Regenerate. + +2005-01-11 Alan Modra + + * configure.host: Correct sed patterns for last change. + +2005-01-10 Nick Clifton + + PR binutils/609 + * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this + to determine whether config.make_executable should be set to FALSE in + conjunction with config.fatal_warnings. + (info_msg, minfo, lfinof): Pass FALSE as the extra argument. + (einfo): Pass TRUE as the extra argument. + +2005-01-10 Greg Schaffer + + * configure.host (linux targets): Use "${CC} -dumpspecs" instead + of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0. + (ia64-*-aix): Delete - this target is obsolete, and would be + broken by this patch. + +2005-01-06 Eric Botcazou + + * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*. + (sparc64-sun-solaris2*): New host. + +2005-01-06 Paul Brook + + * Makefie.am: Add earmelf_vxworks. + * Makefile.in: Regenerate. + * configure.tgt: Make arm-*-vxworks a separate case. + * emulparams/armelf_vxworks.sh: New function. + +2005-01-06 Alan Modra + + * emultempl/ppc64elf.em (no_multi_toc): New var. + (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists. + (OPTION_NO_MULTI_TOC): Define. + (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support. + (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise. + +2005-01-05 Nick Clifton + + PR binutils/614 + * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding + Standard's specification for parsable error messages. + +2005-01-04 Paul Brook + + * Makefile.am: Correct dependency for earmsymbian.c. + * Makefile.in: Regenerate. + +2004-12-28 Danny Smith + + * emultempl/pe.em (set_pe_subsystem): Change second arg to + lang_add_entry to FALSE. + +2004-12-23 Nick Clifton + + PR 600 + * emulparams/shelf.sh (.stack): Increase stack start address to + 0x300000. + +2004-12-20 Nick Clifton + + * ldmain.c (main): Issue an error message if -static and -shared + are used together. + +2004-12-17 Jakub Jelinek + + * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields. + * ldexp.c (fold_binary) : Initialize them. + * ldlang.c (lang_size_sections): Use them to avoid wasting virtual + address space at DATA_SEGMENT_ALIGN. Fix computation of expected + PT_GNU_RELRO segment end. + +2004-12-14 P.J. Darcy + + * configure.tgt: Add s390x-ibm-tpf support. + +2004-12-16 Martin Kögler + + * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL + BFD. + +2004-12-07 Ben Elliston + + * ldemul.h: Forward declare struct option. + +2004-12-01 Danny Smith + + * scripttempl/pe.sc (.data): Add .jcr subsection. + +2004-11-30 Paul Brook + + * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge. + +2004-11-30 Tero Niemela + + * Makefile.am: Change LOCALEDIR to $(datadir)/share. + * Makefile.in: Regenerate. + +2004-11-26 Melissa Mears + + * emultempl/pe.em: Add --subsystem:xbox as well as + --subsystem:%d. + * ld.texinfo: (ld_options): Document acceptance of subsystem xbox + and numeric subsystems. + +2004-11-24 Alan Modra + + * ldexp.c (fold_name): Correct PR 338 fix. + +2004-11-19 Mark Mitchell + + * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o. + (earmelf_linux_eabi.c): New target. + * configure.tgt (arm*-*-linux-gnueabi): Handle it. + * emulparams/armelf_linux_eabi.sh: New file. + * Makefile.in: Regenerated. + +2004-11-19 Nick Clifton + + PR 518 + * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and + LENGTH fields in the MEMORY command, to explicitly state that + symbols cannot be used in their expressions. + +2004-11-19 Jon Beniston + + * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION. + * ld/ldgram.y: Add ORIGIN and LENGTH expressions. + * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions + which return the length and origin of a memory. + * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions. + * NEWS: Mention support for ORIGIN and LENGTH operators. + +2004-11-17 Daniel Jacobowitz + + * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use + a dynamic object for stubs. + +2004-11-04 Paul Brook + + * ld.texinfo: Document --default-imported-symver. + * ldmain.c (main): Set link_info.default_imported_symver. + * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER. + (ld_options): Add --default-imported-symver. + (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER. + +2004-11-08 Inderpreet Singh + Vineet Sharma + + * Makefile.am: Add entries for new maxq-coff target. + * Makefile.in: Regenerate. + * configure.tgt: Add support for maxq. + * emulparams/maxqcoff.sh: New File. + * scripttempl/maxqcoff.sc: New linker script for target maxq. + * NEWS: Mention the new target. + +2004-11-08 Aaron W. LaFramboise + + * testsuite/ld-scripts/weak.exp: Enable test on PE, + XFAIL non-i386 PE. + * testsuite/ld-undefined/weak-undef.exp: Enable test on PE, + XFAIL non-i386 PE. + * testsuite/lib/ld-lib.exp (is_pecoff_format): New. + +2004-11-04 Daniel Jacobowitz + + * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o. + (earmelf_oabi.c): Remove rule. + * configure.tgt: Remove arm-*-oabi and thumb-*-oabi. + * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files. + * Makefile.in: Regenerated. + +2004-11-04 Hans-Peter Nilsson + + * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout. + * emulparams/criself.sh (INIT_START): Remove emitted "push srp". + (FINI_START): Ditto. + (INIT_END): Remove emitted "jump [sp+]". + (FINI_END): Ditto. + +2004-11-04 Alan Modra + + * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt. + (no_opd_opt, no_toc_opt): New static vars. + (ppc_before_allocation): Don't edit opt if no_opd_opt. Call + ppc64_elf_edit_toc. + (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define. + (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize. + (PARSE_AND_LIST_OPTIONS): Describe new options. + (PARSE_AND_LIST_ARGS_CASES): Handle them. + +2004-10-27 Nick Clifton + + * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL, + parameter to invocation of lang_section_start. + * emultempl/aix.em (_handle_option): Likewise. + + * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c, + eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em. + * Makefile.in: Regenerate. + +2004-10-26 Mark Mitchell + + * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit + __exidx_{start,end} when not relocating. + +2004-10-25 Mark Mitchell + + * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc. + * ldexp.h (segment_type): New type. + (segments): New variable. + * ldexp.c (segments): New variable. + (exp_print_token): Handle SEGMENT_START. + (fold_binary): Likewise. + * ldgram.y (SEGMENT_START): Declare it as a token. + (exp): Handle SEGMENT_START. + * ldlang.h (lang_address_statement_type): Add segment field. + (lang_section_start): Change prototype. + * ldlang.c (map_input_to_output_sections): Do not process section + assignments if a corresponding SEGMENT_START has already been + seen. + (lang_section_start): Add segment parameter. + * ldlex.l (SEGMENT_START): Add it. + * lexsup.c (seg_segment_start): New function. + (parse_args): Use it for -Tbss, -Tdata, and -Ttext. + * ld.texinfo (SEGMENT_START): Document it. + * emulparams/armsymbian.sh (EMBEDDED): Set it. + * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment + base addresses. Do not map relocations. + * NEWS: Mention SEGMENT_START. + +2004-10-26 Paul Brook + + * ld.texinfo: Document --default-symver. + * ldmain.c (main): Set link_info.create_default_symver. + * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER. + (ld_options): Add default-symver. + (parse_args): Handle OPTION_DEFAULT_SYMVER. + +2004-10-24 Danny Smith + + * pe-dll.c (process_def_file): Don't export all symbols by default if + building a position-independent executable. + +2004-10-21 H.J. Lu + + PR 463 + * ldmain.c (reloc_overflow): Accept a pointer to struct + bfd_link_hash_entry. Report symbol location for relocation + overflow. + +2004-10-21 H.J. Lu + + * genscripts.sh (libpath.exp): Really generate for first + emulation only. + +2004-10-19 Danny Smith + + * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify + comparison and replacement of filenames. + +2004-10-19 H.J. Lu + + PR 459 + * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic + option on linker script as the one for linker script. + +2004-10-16 Daniel Jacobowitz + + * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs) + (check_excluded_libs): New. + (load_symbols): Call check_excluded_libs. + * ldlang.h (add_excluded_libs): New prototype. + * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define. + (gld${EMULATION_NAME}_add_options): Add --exclude-libs. + (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs. + * ld.texinfo (Command Line Variables): Document --exclude-libs. + (Options Specific to i386 PE Targets): Remove --exclude-libs. + +2004-10-15 Alan Modra + + * ldexp.c (exp_fold_tree): Don't immediately exit ld on a + failing link script assert. + + * ldctor.c (ldctor_add_set_entry): Fix comment typo. + +2004-10-14 H.J. Lu + + PR 445 + * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set. + (SMALL_DATA_DTOR): Set. + * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset. + (SMALL_DATA_DTOR): Unset. + * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors + after .data. If SMALL_DATA_DTOR is set, move .dtors after + .data. + +2004-10-14 Alan Modra + + PR 63 + * ldlang.h (lang_output_section_statement_type): Make "next" a + struct lang_output_section_statement_struct *. + (struct orphan_save): Move from elf32.em. Add "name" and "flags". + (lang_output_section_find_by_flags, lang_insert_orphan): Declare. + * ldlang.c (lang_output_section_find_1): Adjust for changed + output_section_statement "next". + (strip_excluded_output_sections): Likewise. + (lang_record_phdrs): Likewise. + (lang_output_section_find_by_flags): New function. + (output_prev_sec_find): Move from pe.em. Adjust iterator. + (lang_insert_orphan): New function. Tail end of elf32.em's + place_orphan merged with that from pe.em. Allow bfd_section to + be placed first. New heuristic for placing new output section + statement in existing script, and accompanying split of __start + symbol alignment into a separate assignment to dot. + (lang_add_section): Consistently use output->bfd_section rather than + an alias, section->output_section. + (map_input_to_output_sections): Rename overly long arg. Move + initialization of data_statement output section to here.. + (lang_check_section_addresses): ..from here. + (print_assignment): Correct printing of etree_assert. + (print_all_symbols): Don't bomb if userdata is NULL. + (IGNORE_SECTION): Rearrange. + * emultempl/elf32.em (output_rel_find): Adjust interator. + (output_prev_sec_find): Delete. + (struct orphan_save): Delete. + (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section + flags without creating a duplicate output section statement. + Revise code holding history of various orphan section placements. + Allow orphan sections to place before script specified output + sections. Call lang_output_section_find_by_flags when placement + by name fails. Use lang_insert_orphan. + * emultempl/mmo.em (output_prev_sec_find): Delete. + (struct orphan_save): Delete. + (mmo_place_orphan): Revise code holding history of orphan placement. + Allow orphans to place before existing output sections. Use + lang_insert_orphan. + * emultempl/pe.em (output_prev_sec_find): Delete. + (struct orphan_save): Delete. + (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of + lang_insert_orphan. + +2004-10-13 Mark Mitchell + + * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a + loadable segment. + +2004-10-13 Alan Modra + + PR 44 + * ldcref.c (check_section_sym_xref): Delete. + (check_local_sym_xref): New function. + (check_nocrossrefs): Adjust call. + * emultempl/pe.em (struct orphan_save): Add os_tail. + (place_orphan): Backport assorted fixes from elf32.em. + +2004-10-12 Bob Wilson + + * emultempl/xtensaelf.em: Use ISO C90 formatting. + +2004-10-11 Jakub Jelinek + + * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid + getline for portability. + + * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure. + (gld${EMULATION_NAME}_parse_ld_so_conf, + gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions. + (gld${EMULATION_NAME}_check_ld_so_conf): Use them. + +2004-10-11 Alan Modra + + PR 423 + * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are + rejected when linking statically. + +2004-10-08 Daniel Jacobowitz + + * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*. + +2004-10-07 Bob Wilson + + * ld.texinfo (Xtensa): Describe new linker relaxation to optimize + assembler-generated longcall sequences. Describe new --size-opt + option. + * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section. + * emultempl/xtensaelf.em (remove_section, + replace_insn_sec_with_prop_sec, replace_instruction_table_sections, + elf_xtensa_after_open): New. + (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT, + OPTION_NO_LITERAL_MOVEMENT): Define. + (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals. + (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement. + (PARSE_AND_LIST_OPTIONS): Add --size-opt. + (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT, + OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT. + (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open. + * scripttempl/elfxtensa.sc: Update with changes from elf.sc. + * Makefile.am (eelf32xtensa.c): Update dependencies. + * Makefile.in: Regenerate. + +2004-10-07 Jeff Baker + + * lexsup.c: Handle --warn-shared-textrel option. + (ld_options): Restore alpha sorting of options. + * ldmain.c (main): Initialise warn_shared_info field to FALSE. + * ld.texinfo: Add documentation for --warn-shared-textrel. + * NEWS: Added mention of --warn-shared-textrel option. + +2004-10-05 Tomer Levi + + * emultempl/crxelf.em (disable_relaxation): Add. + (crxelf_before_allocation): Enable --relax option by default. + (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX. + (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax. + (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX. + +2004-10-04 H.J. Lu + + * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and + --sort-section name|alignment. + + * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and + --sort-section name|alignment. + + * ld.h (sort_type): New enum. + (wildcard_spec): Change the type of `sorted' to sort_type. + + * ldgram.y (SORT): Removed. + (SORT_BY_NAME): Added. + (SORT_BY_ALIGNMENT): Added. + (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and + SORT_BY_ALIGNMENT. + (input_section_spec_no_keep): Updated `sorted'. + (statement): Replace SORT with SORT_BY_NAME. + + * ldlang.c (compare_section): New function to compare 2 + sections with different sorting schemes. + (wild_sort): Updated. Use compare_section. + (update_wild_statements): New function. + (lang_process): Call update_wild_statements before + map_input_to_output_sections. + + * ldlex.l (SORT_BY_NAME): New. + (SORT_BY_ALIGNMENT): New. + (SORT): Return SORT_BY_NAME. + + * ldmain.c (sort_section): New. Defined. + (main): Initialize it to none. + + * lexsup.c (option_values): Add OPTION_SORT_SECTION. + (ld_options): Add an entry for OPTION_SORT_SECTION. + (parse_args): Handle OPTION_SORT_SECTION. + + * mri.c (mri_draw_tree): Updated `sorted'. + 2004-10-04 Jakub Jelinek * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.