3 * emulparams/elf64_sparc_fbsd.sh (OUTPUT_FORMAT): Define as elf64-sparc-freebsd.
7 * configure.tgt (i[3-7]86-*-linux-*): Also define
8 targ_extra_libpath in want64 case.
9 * emulparams/elf_x86_64.sh: Handle i[3-7]86-*-linux-* the same as
14 * scripttempl/elf.sc (INTERP): Delete. Move definition to..
15 (INITIAL_READONLY_SECTIONS): ..here.
16 * emulparams/criself.sh (INITIAL_READONLY_SECTIONS): Include .interp.
17 * emulparams/elf32bmip.sh (INITIAL_READONLY_SECTIONS): Ditto.
18 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Ditto.
22 * ldlang.c (strip_excluded_output_sections): Do strip sections
23 that define syms, but don't ignore them.
24 * ld.texinfo (Output Section Discarding): Revise.
25 * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Always call
30 * Makefile.am (eelf64bmip.c): Depend on emulparams/elf64bmip-defs.sh.
31 (eelf64btsmip.c, eelf64ltsmip.c): Likewise.
32 * Makefile.in: Regenerate.
33 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Include
34 .reginfo rather than .MIPS.options.
35 * emulparams/elf64bmip-defs.sh: New file.
36 * emulparams/elf64bmip.sh: Include it.
37 (COMMONPAGESIZE): Delete.
38 * emulparams/elf64btsmip.sh: As for elf64bmip.sh.
42 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Check
43 for linkonce XCC exception tables (".e" and ".h").
47 * emulparams/elf32xtensa.sh (TEXT_PLT): Enable.
48 (OTHER_READONLY_SECTIONS): Add linkonce .xt_except_table sections.
49 (OTHER_READWRITE_SECTIONS): Add linkonce .xt_except_desc sections.
50 (OTHER_SDATA_SECTIONS): New.
51 * scripttempl/elfxtensa.sc: Import changes from elf.sc.
55 * ldlang.c (lang_append_dynamic_list): When appending, add all elements
56 of the dynamic list rather than just the first entry.
60 * emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable.
64 * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
68 * emulparams/xtensa-config.sh: Delete file.
69 * emulparams/elf32xtensa.sh: Set MAXPAGESIZE here instead of including
71 * Makefile.am (eelf32xtensa.c): Remove dependency on xtensa-config.sh.
72 * Makefile.in: Regenerate.
76 * pe-dll.c : Fix typo.
77 (autofilter_symbolprefixlist) : Remove __imp_.
79 (auto-export) : Remove re-import check. Moved to callers.
80 (process_def_file) : Check is symbol is an import. Always
82 Only skip underscore on underscored targets.
83 (make_one) : Always underscore __imp_.
84 (pe_create_runtime_relocator_reference) : Only underscore
85 _pei386_runtime_relocator on underscored targets.
86 (pe_process_import_defs) : Always underscore __imp_.
87 * pe.em (U) : New macro.
88 (set_pe_subsystem) : Remove underscore from _WinMainCRTStartup
89 on wince subsystem case.
90 (pe_find_data_imports) : Use U on "_head_".
91 (gld_${EMULATION_NAME}_unrecognized_file) : Use U.
97 * ld.texinfo: Updated Output Section Discarding.
99 * ldlang.h (lang_output_section_statement_type): Add
100 section_relative_symbol.
101 * ldlang.c (strip_excluded_output_sections): Don't strip a
102 section with a symbol relative to it.
103 (lang_size_sections_1): Mark if an output section has a symbol
104 symbol relative to it.
108 * ld.texinfo (Options): Update description of local symbols for -X.
113 * scripttempl/elf.sc: Don't combine .gnu.linkonce.d.*personality*
114 and .gnu.linkonce.wi.* sections with .data and .debug_info for
119 * configure.in: Add new target x86_64-pc-mingw64.
120 * configure: Regenerate.
121 * configure.tgt: Add definition of target emulation i386pep.
122 * Makefile.am: Add new target files for target-all.
123 * Makefile.in: Regenerate.
124 * pe-dll.c: Adjust to be inheritable by pep_dll.c as include.
125 Fix memory out of bounds excess for idata relocation section data.
126 * pep-dll.c: Add target specific shared object handling.
127 * pep-dll.h: Add target specific definitions for shared object handling.
128 * emulparams/i386pep.sh: Add new emulation params for target x86_64 coff.
129 * emultempl/pep.em: Add new emulation file for target x86_64 coff.
130 * po/POTFILES.in: Regenerate.
131 * scripttempl/pep.sc: Add linker script template for target x86_64 coff.
132 * NEWS: Mention new target.
136 * configure.tgt: Add mips*el-sde-elf* and mips*-sde-elf*
141 * emulparams/scoreelf.sh: New file.
142 * emultempl/scoreelf.em: New file.
143 * Makefile.am: Add Score files.
144 * Makefile.in: Regenerate.
145 * configure.tgt: Add Score target.
146 * NEWS: Mention new target support.
151 * ldctor.c: Make use of new STRING_COMMA_LEN and CONST_STRNEQ
152 macros defined in bfd.h.
153 * ldmain.c: Likewise.
154 * ldwrite.c: Likewise.
155 * lexsup.c: Likewise.
156 * pe-dll.c: Likewise.
157 * emultempl/aix.em: Likewise.
158 * emultempl/beos.em: Likewise.
159 * emultempl/elf32.em: Likewise.
160 * emultempl/pe.em: Likewise.
161 * emultempl/sunos.em: Likewise.
162 * emultempl/xtensaelf.em: Likewise.
167 * ldlang.c (lang_size_sections_1): Do not abort when encountering
168 a non-empty section that is ignored. Instead produce a warning
173 * ld.texinfo: Document --dynamic-list-cpp-typeinfo.
177 * Makefile.am (CXX): Set to g++.
178 (CXX_FOR_TARGET): Likewise.
179 * Makefile.in: Regenerated.
181 * NEWS: Mention --dynamic-list.
183 * ld.texinfo: Document --dynamic-list.
185 * ldgram.y: Support dynamic list.
187 * ldlang.c (lang_process): Call lang_finalize_version_expr_head
188 on link_info.dynamic if needed.
189 (lang_append_dynamic_list): New.
190 (lang_append_dynamic_list_cpp_typeinfo): New.
191 * ldlang.h (lang_append_dynamic_list): Likewise.
192 * ldlang.h (lang_append_dynamic_list_cpp_typeinfo): Likewise.
194 * ldlex.h (input_enum): Add input_dynamic_list.
195 * ldlex.l: Handle it.
197 * ldmain.c (main): Initialize link_info.dynamic.
199 * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST and
200 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
201 (ld_options): Add entries for OPTION_DYNAMIC_LIST and
202 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
203 (parse_args): Handle OPTION_DYNAMIC_LIST and
204 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
208 * emulparams/h8300elf.sh: _tinydata should not be placed in
210 * emulparams/h8300.sh: Likewise.
211 * emulparams/h8300sxelf.sh: Likewise.
216 * emultempl/elf32.em: Enable "-z relro" only if $COMMONPAGESIZE
221 * ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.
225 * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
226 not match random object files in a path containing "crtbegin" or
227 "crtend" as part of a directory name.
228 * scripttempl/armbpabi.sc: Likewise.
229 * scripttempl/crisaout.sc: Likewise.
230 * scripttempl/elf32crx.sc: Likewise.
231 * scripttempl/elf32sh-symbian.sc: Likewise.
232 * scripttempl/elf_chaos.sc: Likewise.
233 * scripttempl/elfd10v.sc: Likewise.
234 * scripttempl/elfd30v.sc: Likewise.
235 * scripttempl/elfxtensa.sc: Likewise.
236 * scripttempl/iq2000.sc: Likewise.
237 * scripttempl/mmo.sc: Likewise.
238 * scripttempl/xstormy16.sc: Likewise.
242 * emulparams/elf32xtensa.sh (.xt.prop): Add .xt.prop.*.
243 * scripttempl/elfxtensa.sc (.text): Add .literal.*.
247 * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
248 Adjust the current address of DEFAULT_MEMORY_REGION even
249 when dot hasn't changed.
253 * ldexp.c (fold_name <LOADADDR>): Return an absolute value
254 rather than a section relative value.
258 * NEWS: Mention LMA default change.
259 * ld.texinfo (Output Section LMA): Update default description.
260 (Location Counter): Clarify backward movement.
261 * ldlang.c (lang_size_sections_1): Leave non-alloc sections with
262 default lma equal to vma. Warn on backward movement of dot.
266 * configure.tgt: Set targ_emul to arm_wince_pe for ARM
271 * Makefile.am: Split arm-wince into its own emulation.
272 * Makefile.in: Regenerate.
273 * pe-dll.c : Define PE_ARCH_arm_wince.
274 (pe_detail_list): Add PE_ARCH_arm_wince case.
275 (make_one): Handle PE_ARCH_arm_epoc and PE_ARCH_arm_wince cases.
276 * emulparams/arm_wince_pe.sh: New file.
277 * emultempl/pe.em: Handle new TARGET_IS_arm_wince_pe define.
278 Remap bfd_arm_allocate_interworking_sections,
279 bfd_arm_get_bfd_for_interworking and
280 bfd_arm_process_before_allocation for arm-pe and arm-wince-pe
282 (gld_${EMULATION_NAME}_recognized_file): Handle arm-wince and
283 arm-epoc bfd format names.
287 * emultempl/armelf.em (arm_elf_before_allocation): Call
288 gld${EMULATION_NAME}_before_allocation after setting interworking bfd.
292 * pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
293 (generate_reloc): Revert to skipping sections without a SEC_LOAD flag,
294 and to not skipping .idata* sections.
299 * ldlang.h (lang_output_section_statement_type): Replace
300 "processed" field with "processed_vma" and "processed_lma".
301 * ldlang.c (lang_do_assignments_1): Move lma setting code..
302 (lang_size_sections_1): ..to here.
303 (lang_reset_memory_regions): Adjust for
304 lang_output_section_statement_type change.
305 * ldexp.c (fold_name): Likewise.
309 * emulparams/armelf.sh (MAXPAGESIZE): Changed to
310 "CONSTANT (MAXPAGESIZE)".
315 * ldlang.c (lang_section_bst_type): Moved to ...
318 * ldlang.h (lang_wild_statement_struct): Add a tree field.
320 * ldlang.c (wild_sort_fast): Use the tree field for BST.
322 (analyze_walk_wild_section_handler): Initialize the tree field.
327 * ldlang.c (update_wild_statements): Update the whole wild
333 * scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
334 (__preinit_array_start, __preinit_array_end, __init_array_start,
335 __init_array_end, __fini_array_start, __fini_array_end, edata, end):
336 Use ${USER_LABEL_PREFIX}.
337 * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
338 (USER_LABEL_PREFIX): Set.
342 * ldmain.c (main): Initialise print_gc_sections field of link_info
344 * lexsup.c: Add --print-gc-sections and --no-print-gc-sections
346 * ld.texinfo: Document new switches.
347 * NEWS: Mention new switches.
353 * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
355 (eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
356 * Makefile.in: Regenerate.
357 * configure.tgt (sh-*-vxworks): Use shelf_vxworks and
359 * emulparams/shelf_vxworks.sh: New file.
360 * emulparams/shlelf_vxworks.sh: Likewise.
361 * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
362 (OTHER_END_SYMBOLS): Likewise _ehdr.
363 (DATA_END_SYMBOLS): Likewise _edata.
364 * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
365 is indeed an ELF file before dealing with --force-dynamic.
370 * emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as
371 elf64-x86-64-freebsd.
375 * ldlang.c (init_os): Add flags. Replace bfd_make_section with
376 bfd_make_section_with_flags.
377 (exp_init_os): Updated.
378 (lang_add_section): Call init_os with flags.
379 (map_input_to_output_sections): Likewise.
383 * Makefile.am (eelf32b4300.c): Update dependencies.
384 (eelf32bmip.c): Likewise.
385 (eelf32bsmip.c): Likewise.
386 (eelf32btsmip.c): Likewise.
387 (eelf32btsmipn32.c): Likewise.
388 (eelf32ltsmip.c): Likewise.
389 (eelf32ltsmipn32.c): Likewise.
390 (eelf32ebmip.c): Likewise.
391 (eelf32ebmipvxworks.c): Likewise.
392 (eelf32elmip.c): Likewise.
393 (eelf32elmipvxworks.c): Likewise.
394 (eelf32bmipn32.c): Likewise.
395 (eelf32lmip.c): Likewise.
396 (eelf32mipswindiss.c): Likewise.
397 (eelf32lsmip.c): Likewise.
398 (eelf64bmip.c): Likewise.
399 (eelf64btsmip.c): Likewise.
400 (eelf64ltsmip.c): Likewise.
401 (emipsbig.c): Likewise. Canonicalize ${GENSCRIPTS} line.
402 (emipsbsd.c): Likewise.
403 (emipsidt.c): Update dependencies.
404 (emipsidtl.c): Likewise.
405 (emipslit.c): Likewise.
406 (emipslnews.c): Likewise.
407 (emipspe.c): Likewise. Fix ${GENSCRIPTS} invocation.
408 * Makefile.in: Regenerate.
409 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
410 * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
411 * emultempl/irix.em: Include emultempl/mipself.em.
412 * emultempl/mipself.em: New file.
416 * emultempl/elf-generic.em (map_segments): Reorganise loop so that
417 layout happens before segment map. Don't do segment map on
422 * ldexp.c (fold_name <LOADADDR>): Use the lma.
423 * ldlang.h (lang_memory_region_type): Delete old_length. Add
425 * ldlang.c (lang_memory_region_lookup): Init new field.
426 (lang_reset_memory_regions): Reset new field.
427 (lang_insert_orphan): Don't set load_base.
428 (lang_leave_overlay): Likewise.
429 (lang_size_sections_1): Delete unnecessary code setting lma_region
430 to region. Correct lma region check.
431 (lang_do_assignments_1): Rename output_section_statement parm
432 to current_os. Set lma from previous section in region.
434 * ldlang.c: Formatting.
438 * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
439 Set discarded section's output_section to bfd_abs_section_ptr.
443 * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
448 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
449 in dep_sec_name for null terminator. Make sure dep_sec_name has a
454 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME):
455 Set for *-*-solaris2*.
459 * ld.texinfo: Fix spelling mistakes.
460 * ldint.texinfo: Likewise.
464 * ldlang.c (lang_section_bst): New structure for sorting sections
466 (wild_sort_fast): New function: Insert a section into a binary
468 (output_section_callback_fast): New function: Store a section in
470 (output_section_callback_tree_to_list): New function: Convert a
472 (analyze_walk_wild_section_handler): Initialize handler_data
474 (wild): If the data is sorted by name use the BST method to sort
479 * ld.h (handle_asneeded_cref): Declare.
480 * ldcref.c: Include objalloc.h.
481 (old_table, old_count, old_tab, alloc_mark): New variables.
482 (tabsize, entsize, refsize, old_symcount): Likewise.
483 (add_cref): Use bfd_hash_allocate for refs.
484 (handle_asneeded_cref): New function.
485 * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
489 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
490 typo setting targ_extra_libpath.
494 * scripttempl/elf.sc: Add .gnu.hash section.
495 * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
496 (gld${EMULATION_NAME}_add_options): Register --hash-style option.
497 (gld${EMULATION_NAME}_handle_option): Handle it.
498 (gld${EMULATION_NAME}_list_options): Document it.
499 * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
500 * ld.texinfo: Document --hash-style option.
504 * po/zh_TW.po: New Chinese (traditional) translation.
505 * configure.in (ALL_LINGUAS): Add zh_TW.
506 * configure: Regenerate.
511 * ld.texinfo: Remove "Using LD" from the title since it is
517 * ld.texinfo: Fix spelling mistakes.
522 * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
523 length of format strings in the libname_fmt[] array, rather than
524 relying upon a statically chosen value. Adjust xmalloc call to
525 use this longest length.
529 * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
534 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
539 * pe-dll.c (pe_details_type): Add new pointer for symbols list
541 (autofilter_symbollist): Split into autofilter_symbollist_generic
542 and autofilter_symbollist_i386.
543 (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
544 autofilter_symbollist_generic for all the others.
545 (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
546 cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
547 into autofilter_symbollist_i386.
548 (auto_export): Get autofilter_symbollist from pe_details.
553 * emultempl/pe.em (gld_$_after_open): When reporting non PE format
554 output files mention the file name and the fact that it is an
559 * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
560 Restructure. Add native "%s.lib" format to search list
561 * ld.texinfo (node WIN32): Update documentation on dynamic lib
562 search order. Add another reason for using import libs.
566 * ldlang.c (lang_insert_orphan): Correctly handle the case where
567 the section is to end up after the section currently at the end
568 of the list in output_bfd.
572 * emultempl/mmo.em: Improve comments. Explain why there's
577 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
578 loop to ten iterations. Throw away any previous linker generated
580 * ldlang.c (lang_phdr_list): Make global.
581 * ldlang.h (lang_phdr_list): Declare.
582 * Makefile.am (ELF_GEN_DEPS): Define. Use in emul deps.
583 * Makefile.in: Regenerate.
587 * Makefile.am (ELF_DEPS): Define. Use in emul file deps. Fix
588 many ELF emul file deps that incorrectly said they needed elf32.em
589 instead of generic.em. Add genelf.em as required.
590 * Makefile.in: Regenerate.
591 * ldlang.c (lang_process): Call ldemul_finish before
592 lang_check_section_addresses.
593 * emulparams/arcelf.sh: Generic elf target needs genelf.
594 * emulparams/d30v_e.sh: Likewise.
595 * emulparams/d30v_o.sh: Likewise.
596 * emulparams/d30velf.sh: Likewise.
597 * emulparams/elf32_dlx.sh: Likewise.
598 * emulparams/elf32_i860.sh: Likewise.
599 * emulparams/elf32fr30.sh: Likewise.
600 * emulparams/elf32frv.sh: Likewise.
601 * emulparams/elf32iq10.sh: Likewise.
602 * emulparams/elf32iq2000.sh: Likewise.
603 * emulparams/elf32mt.sh: Likewise.
604 * emulparams/mn10200.sh: Likewise.
605 * emulparams/or32.sh: Likewise.
606 * emulparams/or32elf.sh: Likewise.
607 * emulparams/pjelf.sh: Likewise.
608 * emulparams/msp430all.sh: Likewise. Extract common entries.
609 * emulparams/pjlelf.sh: Include pjelf.sh.
610 * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
611 * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
612 * emultempl/elf-generic.em: New file.
613 * emultempl/genelf.em: New file.
614 * emultempl/elf32.em: Include elf-generic.em.
615 (gld${EMULATION_NAME}_layout_sections_again): Delete.
616 (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
617 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
618 (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish. Call
619 gld${EMULATION_NAME}_map_segments.
620 (LDEMUL_FINISH): Update.
621 * emultempl/mmo.em: Correct comment. Include elf-bfd.h and
622 source elf-generic.em.
623 (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
624 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
625 (gld${EMULATION_NAME}_finish): Rename from ppc_finish. Call
626 gld${EMULATION_NAME}_map_segments.
627 (LDEMUL_FINISH): Update.
631 * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
635 * ld.texinfo: Document new -z lazy option.
636 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
638 (gld${EMULATION_NAME}_list_options): Update help text.
642 * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
643 ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
644 generated by mips gcc.
648 * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
653 * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
654 * ldlang.c (struct out_section_hash_entry): Rename from
655 output_statement_hash_entry. Delete output_section_statement_type
656 entry. Add statement_union_type entry. Adjust all users.
657 (output_section_statement_table): Rename from output_statement_table.
659 (output_section_statement_newfunc): Rename from
660 output_statement_newfunc. Adjust all users.
661 (output_section_statement_table_init): Rename from
662 output_statement_table_init. Adjust all users.
663 (output_section_statement_table_free): Rename from
664 output_statement_table_free. Adjust all users.
668 * po/Make-in (pdf, ps): New dummy targets.
672 * ldlang.h (enum section_type): Delete dsect_section, copy_section,
673 info_section and overlay_section. Add noalloc_section.
674 * ldlang.c (lang_add_section): Adjust.
675 * ldgram.y (type): Adjust.
679 * ldlang.c (init_os): Whitespace.
680 (map_input_to_output_sections): Don't init_os for lang_input_section.
681 (print_all_symbols): Remove forward declaration. Convert to ISO C.
685 * po/Make-in (top_builddir): Define.
689 * ldexp.c (exp_get_abs_int): Make error message the same as
690 others emitted in this file.
694 * config.in: Regenerate.
698 * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
702 * emultempl/elf32.em (global_found): Make it a pointer.
703 (stat_needed, try_needed): Adjust.
704 (check_needed): Don't skip non-loaded as-needed entries. Only
705 consider entries with both filename and the_bfd non-null.
706 (after_open): Try loading non-loaded as-needed libs to satisfy
711 * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
712 * Makefile.in: Regenerate.
716 * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
717 and LIBINTL_DEP everywhere.
719 (INCLUDES): Use @INCINTL@.
720 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
721 Remove local code for po/Makefile.
722 * Makefile.in, configure: Regenerated.
726 * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
727 "CONSTANT (MAXPAGESIZE)".
728 * emulparams/armelf_nbsd.sh: Likewise.
729 * emulparams/armelf_vxworks.sh: Likewise.
730 * emulparams/armnto.sh: Likewise.
731 * emulparams/armsymbian.sh: Likewise.
732 * emulparams/crislinux.sh: Likewise.
733 * emulparams/elf32_i860.sh: Likewise.
734 * emulparams/elf32_i960.sh: Likewise.
735 * emulparams/elf32am33lin.sh: Likewise.
736 * emulparams/elf32bfinfd.sh: Likewise.
737 * emulparams/elf32bmipn32-defs.sh: Likewise.
738 * emulparams/elf32frvfd.sh: Likewise.
739 * emulparams/elf32i370.sh: Likewise.
740 * emulparams/elf32lppcnto.sh: Likewise.
741 * emulparams/elf32mcore.sh: Likewise.
742 * emulparams/elf32openrisc.sh: Likewise.
743 * emulparams/elf32ppcnto.sh: Likewise.
744 * emulparams/elf32ppcwindiss.sh: Likewise.
745 * emulparams/elf32vax.sh: Likewise.
746 * emulparams/elf32xc16x.sh: Likewise.
747 * emulparams/elf32xc16xl.sh: Likewise.
748 * emulparams/elf32xc16xs.sh: Likewise.
749 * emulparams/elf64_aix.sh: Likewise.
750 * emulparams/elf64hppa.sh: Likewise.
751 * emulparams/elf64mmix.sh: Likewise.
752 * emulparams/elf_i386_be.sh: Likewise.
753 * emulparams/elf_i386_chaos.sh: Likewise.
754 * emulparams/elf_i386_ldso.sh: Likewise.
755 * emulparams/hppa64linux.sh: Likewise.
756 * emulparams/hppalinux.sh: Likewise.
757 * emulparams/hppaobsd.sh: Likewise.
758 * emulparams/i386lynx.sh: Likewise.
759 * emulparams/i386moss.sh: Likewise.
760 * emulparams/i386nto.sh: Likewise.
761 * emulparams/i386nw.sh: Likewise.
762 * emulparams/m32relf_linux.sh: Likewise.
763 * emulparams/m68kpsos.sh: Likewise.
764 * emulparams/or32elf.sh: Likewise.
765 * emulparams/pjelf.sh: Likewise.
766 * emulparams/pjlelf.sh: Likewise.
767 * emulparams/ppclynx.sh: Likewise.
768 * emulparams/ppcnw.sh: Likewise.
769 * emulparams/shelf32_nbsd.sh : Likewise.
770 * emulparams/shelf_nbsd.sh: Likewise.
771 * emulparams/shelf_nto.sh: Likewise.
772 * emulparams/shlelf_nto.sh: Likewise.
773 * emulparams/xtensa-config.sh: Likewise.
775 * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
776 "CONSTANT (MAXPAGESIZE)".
777 (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
778 * emulparams/elf32_sparc.sh: Likewise.
779 * emulparams/elf32bmip.sh: Likewise.
780 * emulparams/elf32ppccommon.sh: Likewise.
781 * emulparams/elf64_ia64.sh: Likewise.
782 * emulparams/elf64_s390.sh: Likewise.
783 * emulparams/elf64_sparc.sh: Likewise.
784 * emulparams/elf64alpha.sh: Likewise.
785 * emulparams/elf64ppc.sh: Likewise.
786 * emulparams/elf_i386.sh: Likewise.
787 * emulparams/elf_i386_vxworks.sh: Likewise.
788 * emulparams/elf_s390.sh: Likewise.
789 * emulparams/elf_x86_64.sh: Likewise.
790 * emulparams/shlelf32_linux.sh: Likewise.
791 * emulparams/shlelf_linux.sh: Likewise.
793 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
794 "CONSTANT (COMMONPAGESIZE)".
795 * emulparams/elf32btsmipn32.sh: Likewise.
797 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
798 "-z max-page-size=" and "-z common-page-size=".
799 (gld${EMULATION_NAME}_list_options): Likewise.
801 * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
803 * ld.texinfo: Document "-z max-page-size=" and
804 "-z common-page-size=".
806 * ldexp.c (exp_print_token): Handle CONSTANT.
807 (fold_name): Likewise.
808 * ldgram.y: Likewise.
811 * ldmain.c (main): Initiliaze config.maxpagesize and
812 config.commonpagesize. Call bfd_emul_set_maxpagesize if
813 config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
814 config.commonpagesize config.maxpagesize isn't 0.
818 * po/es.po: Updated Spanish translation.
822 * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
827 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
828 bfd. Support 64bit host for --enable-targets=all.
829 * configure: Regenerated.
833 * po/vi.po: Updated Vietnamese translation.
837 * configure.tgt: Add avr6 to emulation list.
838 * Makefile.am: Add eavr6.o and corresponding rule.
839 * Makefile.in: Regenerate.
840 * emulparams/avr6.sh: New file.
841 * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
842 for target option support.
843 (EXTRA_EM_FILE): Add reference to new em template file avrelf.
844 * scripttempl/avr.sc: Add ".trampolines" section.
845 * emultempl/avrelf.em: Add new file for target specific options.
849 * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
853 * ldlang.c (lang_size_sections_1): Don't check mem regions for
854 os->ignored sections.
858 * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
859 before redoing one_lang_size_sections_pass.
863 * ld.texinfo: Rename "Index" to "LD Index"
867 * pe-dll.c (autofilter_symbollist): Add Dllmain,
868 DllMainCRTStartup, _DllMainCRTStartup and .text.
869 (autofilter_liblist): Add libcegcc.
870 (autofilter_symbolprefixlist): Add __imp_ and .idata$.
871 (generate_reloc): Do not skip sections without a SEC_LOAD flag,
872 they can still contain relocs that need processing.
873 Skip the .idata$6 section.
874 (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
875 (make_one): Use the new array.
876 (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
877 * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
881 * ld.texinfo: Document PowerPC and PowerPC64 options.
882 * gen-doc.texi: Enable.
886 * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
887 (TEXI2POD): Use AM_MAKEINFOFLAGS.
888 (configdoc.texi): Don't set top_srcdir.
889 * ld.texinfo: Don't use top_srcdir.
890 * aclocal.m4, Makefile.in: Regenerated.
894 * ldlang.c (wild): Tidy default_common_section loop.
895 (print_input_section): Format.
897 * configure: Regenerate.
901 * po/POTFILES.in: Regenerated.
905 * config.in: Regenerated.
910 * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
911 function to strip inconsistent linkonce sections.
912 (input_section_linked_worker, input_section_linked): New.
913 (is_inconsistent_linkonce_section): New.
914 (xtensa_strip_inconsistent_linkonce_sections): New.
918 * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
919 and Dragonfly targets.
920 * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
921 * Makefile.am (HFILES): Add elf-hints-local.h.
922 * elf-hints-local.h: New file.
923 * Makefile.in: Regenerate.
924 * configure: Regenerate.
928 * ld.texinfo: Fix typo in documentation of --check-sections.
932 * ldlang.c (load_symbols): Set as_needed and add_needed according
933 to the corresponding script's fields while processing it.
937 * Makefile.am: Add install-html, install-html-am, and
938 install-html-recursive targets.
939 * Makefile.in: Regenerate.
940 * configure.in: AC_SUBST datarootdir, docdir, htmldir.
941 * configure: Regenerate.
942 * po/Make-in: Add install-html target.
946 * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
947 link_info.need_relax_finalize.
949 * ldlang.c (relax_sections): New.
950 (lang_process): Use. Call relax_sections link_info.relax_pass
953 * ldmain.c (main): Set link_info.relax_pass to 1. Remove
954 link_info.need_relax_finalize.
958 * Makefile.am (GENSCRIPTS): Pass prefix.
959 * Makefile.in: Regenerate.
960 * genscripts.sh: Adjust for extra parameter.
961 * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
963 (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
969 * configure.tgt (sparc*-*-vxworks*): New stanza.
970 * emulparams/elf32_sparc_vxworks.sh: New file.
971 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
972 (eelf32_sparc_vxworks.c): New rule.
973 * Makefile.in: Regenerate.
977 * ldlang.c (lang_map): Print the list of discarded input sections.
978 (print_input_section): Change parameter and print zero-sized sections.
979 (print_statement): Adjust call to print_input_section.
983 * deffilep.y (def_image_name): If LIBRARY or NAME statement
984 specifies an empty string, retain the name specified on command
986 * ld.texinfo: Document above.
990 * ldmisc.c (vfinfo): Revert 2005-10-05 changes. If
991 bfd_find_nearest_line succeeded for %C or %D, but filename
992 is NULL, print section+offset at the end.
996 * emulparams/elf32bfinfd.sh: New file.
997 * emultempl/bfin.em: Delete.
998 * emulparams/bfin.sh: Lose reference to bfin.em.
999 * Makefile.am (eelf32bfin.c): Likewise.
1000 (eelf32bfinfd.c): New.
1001 * Makefile.in: Regenerate.
1002 * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
1012 * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
1013 separate VxWorks emulations.
1014 * emulparams/elf32ebmipvxworks.sh: New file.
1015 * emulparams/elf32elmipvxworks.sh: New file.
1016 * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
1017 eelf32elmipvxworks.o.
1018 (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
1019 * Makefile.in: Regenerate.
1024 * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
1025 * ldlang.c (output_statement_table_init, lang_init): Likewise.
1026 * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
1027 (undefined_symbol): Likewise.
1037 * emulparams/armelf_vxworks.sh: Include vxworks.sh.
1038 (MAXPAGESIZE): Define.
1039 * emulparams/vxworks.sh: Undefine EMBEDDED.
1040 * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
1041 * Makefile.in: Regenerate.
1045 * scripttempl/avr.sc: Add *(.jumptables) *(.lowtext) sections.
1046 Add KEEP() directives.
1047 Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
1048 .bss output sections.
1052 * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
1053 (EXTRA_EM_FILE): Define.
1054 * emultempl/vxworks.em: New file.
1055 * ld.texinfo (--force-dynamic): Document.
1056 * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
1058 * Makefile.in: Regenerate.
1062 * emulparams/elf32ppccommon.sh: New file, extracted from...
1063 * emulparams/elf32ppc.sh: ...here.
1064 * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
1065 instead of elf32ppc.sh.
1066 (BSS_PLT): Remove override.
1067 * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
1068 (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
1069 (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
1070 (eelf32ppclinux.c): Likewise.
1071 (eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
1072 * Makefile.in: Regenerate.
1076 * Makefile.am: Add html target.
1077 * Makefile.in: Regenerate.
1078 * po/Make-in: Add html target.
1084 * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
1085 * scripttemp/elf32xc16xl.sc: Default linker script for large model.
1086 * scripttemp/elf32xc16xs.sc: Default linker script for small model.
1087 * emulparams/elf32xc16x.sh: Emulation script for tiny model.
1088 * emulparams/elf32xc16xl.sh: Emulation script for large model.
1089 * emulparams/elf32xc16xs.sh: Emulation script for small model.
1090 * Makefile.am: Add entry to make xc16x target.
1091 * Makefile.in: Regenerate.
1092 * configure.tgt: Specify default and other emulation parameters
1094 * NEWS: Announce the support for the new target.
1098 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1099 Use the traditional target.
1103 * configure.tgt (arm*b-*-linux-gnueabi): Change to
1104 arm*b-*-linux-*eabi.
1105 (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
1110 * NEWS: Updated for the Linux linker search order change.
1112 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
1113 gld${EMULATION_NAME}_check_ld_so_conf before checking default
1114 search directories for DT_NEEDED entries.
1118 * emultempl/armelf.em: Include elf/arm.h.
1119 (arm_elf_finish): Set low address bit if enty point is a Thumb
1124 * deffilep.y (def_image_name): If the image name does not have
1125 a suffix, append the default.
1126 * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
1130 * NEWS: Mention support for forward exports in PE-COFF dll's.
1131 * ld.texinfo: Expand documentation of EXPORT statements in
1136 * deffile.h (struct def_file_export): Add field flag_forward.
1137 * pe-dll.c (process_def_file): Check for forward exports.
1138 (generate_edata): Generate forward export symbols.
1139 (fill_edata): Emit them.
1141 * pe-dll.c (process_def_file): Don't crash on malformed
1142 fastcall symbol names in .def file.
1146 * po/vi.po: Updated Vietnamese translation.
1150 * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
1151 file:" as informational message, not a warning.
1155 * emultempl/irix.em: Use lbasename instead of basename.
1159 * po/zh_CN.po: New Chinese (simplified) translation.
1160 * configure.in (ALL_LINGUAS): Add "zh_CH".
1161 * configure: Regenerate.
1165 * ld.texinfo (Options): Fix typo.
1167 For older changes see ChangeLog-2005
1173 version-control: never