3 * scripttempl/elf.sc (INTERP): Delete. Move definition to..
4 (INITIAL_READONLY_SECTIONS): ..here.
5 * emulparams/criself.sh (INITIAL_READONLY_SECTIONS): Include .interp.
6 * emulparams/elf32bmip.sh (INITIAL_READONLY_SECTIONS): Ditto.
7 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Ditto.
11 * ldlang.c (strip_excluded_output_sections): Do strip sections
12 that define syms, but don't ignore them.
13 * ld.texinfo (Output Section Discarding): Revise.
14 * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Always call
19 * Makefile.am (eelf64bmip.c): Depend on emulparams/elf64bmip-defs.sh.
20 (eelf64btsmip.c, eelf64ltsmip.c): Likewise.
21 * Makefile.in: Regenerate.
22 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Include
23 .reginfo rather than .MIPS.options.
24 * emulparams/elf64bmip-defs.sh: New file.
25 * emulparams/elf64bmip.sh: Include it.
26 (COMMONPAGESIZE): Delete.
27 * emulparams/elf64btsmip.sh: As for elf64bmip.sh.
31 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Check
32 for linkonce XCC exception tables (".e" and ".h").
36 * emulparams/elf32xtensa.sh (TEXT_PLT): Enable.
37 (OTHER_READONLY_SECTIONS): Add linkonce .xt_except_table sections.
38 (OTHER_READWRITE_SECTIONS): Add linkonce .xt_except_desc sections.
39 (OTHER_SDATA_SECTIONS): New.
40 * scripttempl/elfxtensa.sc: Import changes from elf.sc.
44 * ldlang.c (lang_append_dynamic_list): When appending, add all elements
45 of the dynamic list rather than just the first entry.
49 * emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable.
53 * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
57 * emulparams/xtensa-config.sh: Delete file.
58 * emulparams/elf32xtensa.sh: Set MAXPAGESIZE here instead of including
60 * Makefile.am (eelf32xtensa.c): Remove dependency on xtensa-config.sh.
61 * Makefile.in: Regenerate.
65 * pe-dll.c : Fix typo.
66 (autofilter_symbolprefixlist) : Remove __imp_.
68 (auto-export) : Remove re-import check. Moved to callers.
69 (process_def_file) : Check is symbol is an import. Always
71 Only skip underscore on underscored targets.
72 (make_one) : Always underscore __imp_.
73 (pe_create_runtime_relocator_reference) : Only underscore
74 _pei386_runtime_relocator on underscored targets.
75 (pe_process_import_defs) : Always underscore __imp_.
76 * pe.em (U) : New macro.
77 (set_pe_subsystem) : Remove underscore from _WinMainCRTStartup
78 on wince subsystem case.
79 (pe_find_data_imports) : Use U on "_head_".
80 (gld_${EMULATION_NAME}_unrecognized_file) : Use U.
86 * ld.texinfo: Updated Output Section Discarding.
88 * ldlang.h (lang_output_section_statement_type): Add
89 section_relative_symbol.
90 * ldlang.c (strip_excluded_output_sections): Don't strip a
91 section with a symbol relative to it.
92 (lang_size_sections_1): Mark if an output section has a symbol
93 symbol relative to it.
97 * ld.texinfo (Options): Update description of local symbols for -X.
102 * scripttempl/elf.sc: Don't combine .gnu.linkonce.d.*personality*
103 and .gnu.linkonce.wi.* sections with .data and .debug_info for
108 * configure.in: Add new target x86_64-pc-mingw64.
109 * configure: Regenerate.
110 * configure.tgt: Add definition of target emulation i386pep.
111 * Makefile.am: Add new target files for target-all.
112 * Makefile.in: Regenerate.
113 * pe-dll.c: Adjust to be inheritable by pep_dll.c as include.
114 Fix memory out of bounds excess for idata relocation section data.
115 * pep-dll.c: Add target specific shared object handling.
116 * pep-dll.h: Add target specific definitions for shared object handling.
117 * emulparams/i386pep.sh: Add new emulation params for target x86_64 coff.
118 * emultempl/pep.em: Add new emulation file for target x86_64 coff.
119 * po/POTFILES.in: Regenerate.
120 * scripttempl/pep.sc: Add linker script template for target x86_64 coff.
121 * NEWS: Mention new target.
125 * configure.tgt: Add mips*el-sde-elf* and mips*-sde-elf*
130 * emulparams/scoreelf.sh: New file.
131 * emultempl/scoreelf.em: New file.
132 * Makefile.am: Add Score files.
133 * Makefile.in: Regenerate.
134 * configure.tgt: Add Score target.
135 * NEWS: Mention new target support.
140 * ldctor.c: Make use of new STRING_COMMA_LEN and CONST_STRNEQ
141 macros defined in bfd.h.
142 * ldmain.c: Likewise.
143 * ldwrite.c: Likewise.
144 * lexsup.c: Likewise.
145 * pe-dll.c: Likewise.
146 * emultempl/aix.em: Likewise.
147 * emultempl/beos.em: Likewise.
148 * emultempl/elf32.em: Likewise.
149 * emultempl/pe.em: Likewise.
150 * emultempl/sunos.em: Likewise.
151 * emultempl/xtensaelf.em: Likewise.
156 * ldlang.c (lang_size_sections_1): Do not abort when encountering
157 a non-empty section that is ignored. Instead produce a warning
162 * ld.texinfo: Document --dynamic-list-cpp-typeinfo.
166 * Makefile.am (CXX): Set to g++.
167 (CXX_FOR_TARGET): Likewise.
168 * Makefile.in: Regenerated.
170 * NEWS: Mention --dynamic-list.
172 * ld.texinfo: Document --dynamic-list.
174 * ldgram.y: Support dynamic list.
176 * ldlang.c (lang_process): Call lang_finalize_version_expr_head
177 on link_info.dynamic if needed.
178 (lang_append_dynamic_list): New.
179 (lang_append_dynamic_list_cpp_typeinfo): New.
180 * ldlang.h (lang_append_dynamic_list): Likewise.
181 * ldlang.h (lang_append_dynamic_list_cpp_typeinfo): Likewise.
183 * ldlex.h (input_enum): Add input_dynamic_list.
184 * ldlex.l: Handle it.
186 * ldmain.c (main): Initialize link_info.dynamic.
188 * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST and
189 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
190 (ld_options): Add entries for OPTION_DYNAMIC_LIST and
191 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
192 (parse_args): Handle OPTION_DYNAMIC_LIST and
193 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
197 * emulparams/h8300elf.sh: _tinydata should not be placed in
199 * emulparams/h8300.sh: Likewise.
200 * emulparams/h8300sxelf.sh: Likewise.
205 * emultempl/elf32.em: Enable "-z relro" only if $COMMONPAGESIZE
210 * ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.
214 * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
215 not match random object files in a path containing "crtbegin" or
216 "crtend" as part of a directory name.
217 * scripttempl/armbpabi.sc: Likewise.
218 * scripttempl/crisaout.sc: Likewise.
219 * scripttempl/elf32crx.sc: Likewise.
220 * scripttempl/elf32sh-symbian.sc: Likewise.
221 * scripttempl/elf_chaos.sc: Likewise.
222 * scripttempl/elfd10v.sc: Likewise.
223 * scripttempl/elfd30v.sc: Likewise.
224 * scripttempl/elfxtensa.sc: Likewise.
225 * scripttempl/iq2000.sc: Likewise.
226 * scripttempl/mmo.sc: Likewise.
227 * scripttempl/xstormy16.sc: Likewise.
231 * emulparams/elf32xtensa.sh (.xt.prop): Add .xt.prop.*.
232 * scripttempl/elfxtensa.sc (.text): Add .literal.*.
236 * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
237 Adjust the current address of DEFAULT_MEMORY_REGION even
238 when dot hasn't changed.
242 * ldexp.c (fold_name <LOADADDR>): Return an absolute value
243 rather than a section relative value.
247 * NEWS: Mention LMA default change.
248 * ld.texinfo (Output Section LMA): Update default description.
249 (Location Counter): Clarify backward movement.
250 * ldlang.c (lang_size_sections_1): Leave non-alloc sections with
251 default lma equal to vma. Warn on backward movement of dot.
255 * configure.tgt: Set targ_emul to arm_wince_pe for ARM
260 * Makefile.am: Split arm-wince into its own emulation.
261 * Makefile.in: Regenerate.
262 * pe-dll.c : Define PE_ARCH_arm_wince.
263 (pe_detail_list): Add PE_ARCH_arm_wince case.
264 (make_one): Handle PE_ARCH_arm_epoc and PE_ARCH_arm_wince cases.
265 * emulparams/arm_wince_pe.sh: New file.
266 * emultempl/pe.em: Handle new TARGET_IS_arm_wince_pe define.
267 Remap bfd_arm_allocate_interworking_sections,
268 bfd_arm_get_bfd_for_interworking and
269 bfd_arm_process_before_allocation for arm-pe and arm-wince-pe
271 (gld_${EMULATION_NAME}_recognized_file): Handle arm-wince and
272 arm-epoc bfd format names.
276 * emultempl/armelf.em (arm_elf_before_allocation): Call
277 gld${EMULATION_NAME}_before_allocation after setting interworking bfd.
281 * pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
282 (generate_reloc): Revert to skipping sections without a SEC_LOAD flag,
283 and to not skipping .idata* sections.
288 * ldlang.h (lang_output_section_statement_type): Replace
289 "processed" field with "processed_vma" and "processed_lma".
290 * ldlang.c (lang_do_assignments_1): Move lma setting code..
291 (lang_size_sections_1): ..to here.
292 (lang_reset_memory_regions): Adjust for
293 lang_output_section_statement_type change.
294 * ldexp.c (fold_name): Likewise.
298 * emulparams/armelf.sh (MAXPAGESIZE): Changed to
299 "CONSTANT (MAXPAGESIZE)".
304 * ldlang.c (lang_section_bst_type): Moved to ...
307 * ldlang.h (lang_wild_statement_struct): Add a tree field.
309 * ldlang.c (wild_sort_fast): Use the tree field for BST.
311 (analyze_walk_wild_section_handler): Initialize the tree field.
316 * ldlang.c (update_wild_statements): Update the whole wild
322 * scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
323 (__preinit_array_start, __preinit_array_end, __init_array_start,
324 __init_array_end, __fini_array_start, __fini_array_end, edata, end):
325 Use ${USER_LABEL_PREFIX}.
326 * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
327 (USER_LABEL_PREFIX): Set.
331 * ldmain.c (main): Initialise print_gc_sections field of link_info
333 * lexsup.c: Add --print-gc-sections and --no-print-gc-sections
335 * ld.texinfo: Document new switches.
336 * NEWS: Mention new switches.
342 * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
344 (eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
345 * Makefile.in: Regenerate.
346 * configure.tgt (sh-*-vxworks): Use shelf_vxworks and
348 * emulparams/shelf_vxworks.sh: New file.
349 * emulparams/shlelf_vxworks.sh: Likewise.
350 * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
351 (OTHER_END_SYMBOLS): Likewise _ehdr.
352 (DATA_END_SYMBOLS): Likewise _edata.
353 * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
354 is indeed an ELF file before dealing with --force-dynamic.
359 * emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as
360 elf64-x86-64-freebsd.
364 * ldlang.c (init_os): Add flags. Replace bfd_make_section with
365 bfd_make_section_with_flags.
366 (exp_init_os): Updated.
367 (lang_add_section): Call init_os with flags.
368 (map_input_to_output_sections): Likewise.
372 * Makefile.am (eelf32b4300.c): Update dependencies.
373 (eelf32bmip.c): Likewise.
374 (eelf32bsmip.c): Likewise.
375 (eelf32btsmip.c): Likewise.
376 (eelf32btsmipn32.c): Likewise.
377 (eelf32ltsmip.c): Likewise.
378 (eelf32ltsmipn32.c): Likewise.
379 (eelf32ebmip.c): Likewise.
380 (eelf32ebmipvxworks.c): Likewise.
381 (eelf32elmip.c): Likewise.
382 (eelf32elmipvxworks.c): Likewise.
383 (eelf32bmipn32.c): Likewise.
384 (eelf32lmip.c): Likewise.
385 (eelf32mipswindiss.c): Likewise.
386 (eelf32lsmip.c): Likewise.
387 (eelf64bmip.c): Likewise.
388 (eelf64btsmip.c): Likewise.
389 (eelf64ltsmip.c): Likewise.
390 (emipsbig.c): Likewise. Canonicalize ${GENSCRIPTS} line.
391 (emipsbsd.c): Likewise.
392 (emipsidt.c): Update dependencies.
393 (emipsidtl.c): Likewise.
394 (emipslit.c): Likewise.
395 (emipslnews.c): Likewise.
396 (emipspe.c): Likewise. Fix ${GENSCRIPTS} invocation.
397 * Makefile.in: Regenerate.
398 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
399 * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
400 * emultempl/irix.em: Include emultempl/mipself.em.
401 * emultempl/mipself.em: New file.
405 * emultempl/elf-generic.em (map_segments): Reorganise loop so that
406 layout happens before segment map. Don't do segment map on
411 * ldexp.c (fold_name <LOADADDR>): Use the lma.
412 * ldlang.h (lang_memory_region_type): Delete old_length. Add
414 * ldlang.c (lang_memory_region_lookup): Init new field.
415 (lang_reset_memory_regions): Reset new field.
416 (lang_insert_orphan): Don't set load_base.
417 (lang_leave_overlay): Likewise.
418 (lang_size_sections_1): Delete unnecessary code setting lma_region
419 to region. Correct lma region check.
420 (lang_do_assignments_1): Rename output_section_statement parm
421 to current_os. Set lma from previous section in region.
423 * ldlang.c: Formatting.
427 * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
428 Set discarded section's output_section to bfd_abs_section_ptr.
432 * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
437 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
438 in dep_sec_name for null terminator. Make sure dep_sec_name has a
443 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME):
444 Set for *-*-solaris2*.
448 * ld.texinfo: Fix spelling mistakes.
449 * ldint.texinfo: Likewise.
453 * ldlang.c (lang_section_bst): New structure for sorting sections
455 (wild_sort_fast): New function: Insert a section into a binary
457 (output_section_callback_fast): New function: Store a section in
459 (output_section_callback_tree_to_list): New function: Convert a
461 (analyze_walk_wild_section_handler): Initialize handler_data
463 (wild): If the data is sorted by name use the BST method to sort
468 * ld.h (handle_asneeded_cref): Declare.
469 * ldcref.c: Include objalloc.h.
470 (old_table, old_count, old_tab, alloc_mark): New variables.
471 (tabsize, entsize, refsize, old_symcount): Likewise.
472 (add_cref): Use bfd_hash_allocate for refs.
473 (handle_asneeded_cref): New function.
474 * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
478 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
479 typo setting targ_extra_libpath.
483 * scripttempl/elf.sc: Add .gnu.hash section.
484 * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
485 (gld${EMULATION_NAME}_add_options): Register --hash-style option.
486 (gld${EMULATION_NAME}_handle_option): Handle it.
487 (gld${EMULATION_NAME}_list_options): Document it.
488 * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
489 * ld.texinfo: Document --hash-style option.
493 * po/zh_TW.po: New Chinese (traditional) translation.
494 * configure.in (ALL_LINGUAS): Add zh_TW.
495 * configure: Regenerate.
500 * ld.texinfo: Remove "Using LD" from the title since it is
506 * ld.texinfo: Fix spelling mistakes.
511 * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
512 length of format strings in the libname_fmt[] array, rather than
513 relying upon a statically chosen value. Adjust xmalloc call to
514 use this longest length.
518 * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
523 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
528 * pe-dll.c (pe_details_type): Add new pointer for symbols list
530 (autofilter_symbollist): Split into autofilter_symbollist_generic
531 and autofilter_symbollist_i386.
532 (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
533 autofilter_symbollist_generic for all the others.
534 (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
535 cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
536 into autofilter_symbollist_i386.
537 (auto_export): Get autofilter_symbollist from pe_details.
542 * emultempl/pe.em (gld_$_after_open): When reporting non PE format
543 output files mention the file name and the fact that it is an
548 * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
549 Restructure. Add native "%s.lib" format to search list
550 * ld.texinfo (node WIN32): Update documentation on dynamic lib
551 search order. Add another reason for using import libs.
555 * ldlang.c (lang_insert_orphan): Correctly handle the case where
556 the section is to end up after the section currently at the end
557 of the list in output_bfd.
561 * emultempl/mmo.em: Improve comments. Explain why there's
566 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
567 loop to ten iterations. Throw away any previous linker generated
569 * ldlang.c (lang_phdr_list): Make global.
570 * ldlang.h (lang_phdr_list): Declare.
571 * Makefile.am (ELF_GEN_DEPS): Define. Use in emul deps.
572 * Makefile.in: Regenerate.
576 * Makefile.am (ELF_DEPS): Define. Use in emul file deps. Fix
577 many ELF emul file deps that incorrectly said they needed elf32.em
578 instead of generic.em. Add genelf.em as required.
579 * Makefile.in: Regenerate.
580 * ldlang.c (lang_process): Call ldemul_finish before
581 lang_check_section_addresses.
582 * emulparams/arcelf.sh: Generic elf target needs genelf.
583 * emulparams/d30v_e.sh: Likewise.
584 * emulparams/d30v_o.sh: Likewise.
585 * emulparams/d30velf.sh: Likewise.
586 * emulparams/elf32_dlx.sh: Likewise.
587 * emulparams/elf32_i860.sh: Likewise.
588 * emulparams/elf32fr30.sh: Likewise.
589 * emulparams/elf32frv.sh: Likewise.
590 * emulparams/elf32iq10.sh: Likewise.
591 * emulparams/elf32iq2000.sh: Likewise.
592 * emulparams/elf32mt.sh: Likewise.
593 * emulparams/mn10200.sh: Likewise.
594 * emulparams/or32.sh: Likewise.
595 * emulparams/or32elf.sh: Likewise.
596 * emulparams/pjelf.sh: Likewise.
597 * emulparams/msp430all.sh: Likewise. Extract common entries.
598 * emulparams/pjlelf.sh: Include pjelf.sh.
599 * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
600 * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
601 * emultempl/elf-generic.em: New file.
602 * emultempl/genelf.em: New file.
603 * emultempl/elf32.em: Include elf-generic.em.
604 (gld${EMULATION_NAME}_layout_sections_again): Delete.
605 (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
606 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
607 (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish. Call
608 gld${EMULATION_NAME}_map_segments.
609 (LDEMUL_FINISH): Update.
610 * emultempl/mmo.em: Correct comment. Include elf-bfd.h and
611 source elf-generic.em.
612 (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
613 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
614 (gld${EMULATION_NAME}_finish): Rename from ppc_finish. Call
615 gld${EMULATION_NAME}_map_segments.
616 (LDEMUL_FINISH): Update.
620 * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
624 * ld.texinfo: Document new -z lazy option.
625 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
627 (gld${EMULATION_NAME}_list_options): Update help text.
631 * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
632 ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
633 generated by mips gcc.
637 * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
642 * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
643 * ldlang.c (struct out_section_hash_entry): Rename from
644 output_statement_hash_entry. Delete output_section_statement_type
645 entry. Add statement_union_type entry. Adjust all users.
646 (output_section_statement_table): Rename from output_statement_table.
648 (output_section_statement_newfunc): Rename from
649 output_statement_newfunc. Adjust all users.
650 (output_section_statement_table_init): Rename from
651 output_statement_table_init. Adjust all users.
652 (output_section_statement_table_free): Rename from
653 output_statement_table_free. Adjust all users.
657 * po/Make-in (pdf, ps): New dummy targets.
661 * ldlang.h (enum section_type): Delete dsect_section, copy_section,
662 info_section and overlay_section. Add noalloc_section.
663 * ldlang.c (lang_add_section): Adjust.
664 * ldgram.y (type): Adjust.
668 * ldlang.c (init_os): Whitespace.
669 (map_input_to_output_sections): Don't init_os for lang_input_section.
670 (print_all_symbols): Remove forward declaration. Convert to ISO C.
674 * po/Make-in (top_builddir): Define.
678 * ldexp.c (exp_get_abs_int): Make error message the same as
679 others emitted in this file.
683 * config.in: Regenerate.
687 * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
691 * emultempl/elf32.em (global_found): Make it a pointer.
692 (stat_needed, try_needed): Adjust.
693 (check_needed): Don't skip non-loaded as-needed entries. Only
694 consider entries with both filename and the_bfd non-null.
695 (after_open): Try loading non-loaded as-needed libs to satisfy
700 * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
701 * Makefile.in: Regenerate.
705 * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
706 and LIBINTL_DEP everywhere.
708 (INCLUDES): Use @INCINTL@.
709 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
710 Remove local code for po/Makefile.
711 * Makefile.in, configure: Regenerated.
715 * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
716 "CONSTANT (MAXPAGESIZE)".
717 * emulparams/armelf_nbsd.sh: Likewise.
718 * emulparams/armelf_vxworks.sh: Likewise.
719 * emulparams/armnto.sh: Likewise.
720 * emulparams/armsymbian.sh: Likewise.
721 * emulparams/crislinux.sh: Likewise.
722 * emulparams/elf32_i860.sh: Likewise.
723 * emulparams/elf32_i960.sh: Likewise.
724 * emulparams/elf32am33lin.sh: Likewise.
725 * emulparams/elf32bfinfd.sh: Likewise.
726 * emulparams/elf32bmipn32-defs.sh: Likewise.
727 * emulparams/elf32frvfd.sh: Likewise.
728 * emulparams/elf32i370.sh: Likewise.
729 * emulparams/elf32lppcnto.sh: Likewise.
730 * emulparams/elf32mcore.sh: Likewise.
731 * emulparams/elf32openrisc.sh: Likewise.
732 * emulparams/elf32ppcnto.sh: Likewise.
733 * emulparams/elf32ppcwindiss.sh: Likewise.
734 * emulparams/elf32vax.sh: Likewise.
735 * emulparams/elf32xc16x.sh: Likewise.
736 * emulparams/elf32xc16xl.sh: Likewise.
737 * emulparams/elf32xc16xs.sh: Likewise.
738 * emulparams/elf64_aix.sh: Likewise.
739 * emulparams/elf64hppa.sh: Likewise.
740 * emulparams/elf64mmix.sh: Likewise.
741 * emulparams/elf_i386_be.sh: Likewise.
742 * emulparams/elf_i386_chaos.sh: Likewise.
743 * emulparams/elf_i386_ldso.sh: Likewise.
744 * emulparams/hppa64linux.sh: Likewise.
745 * emulparams/hppalinux.sh: Likewise.
746 * emulparams/hppaobsd.sh: Likewise.
747 * emulparams/i386lynx.sh: Likewise.
748 * emulparams/i386moss.sh: Likewise.
749 * emulparams/i386nto.sh: Likewise.
750 * emulparams/i386nw.sh: Likewise.
751 * emulparams/m32relf_linux.sh: Likewise.
752 * emulparams/m68kpsos.sh: Likewise.
753 * emulparams/or32elf.sh: Likewise.
754 * emulparams/pjelf.sh: Likewise.
755 * emulparams/pjlelf.sh: Likewise.
756 * emulparams/ppclynx.sh: Likewise.
757 * emulparams/ppcnw.sh: Likewise.
758 * emulparams/shelf32_nbsd.sh : Likewise.
759 * emulparams/shelf_nbsd.sh: Likewise.
760 * emulparams/shelf_nto.sh: Likewise.
761 * emulparams/shlelf_nto.sh: Likewise.
762 * emulparams/xtensa-config.sh: Likewise.
764 * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
765 "CONSTANT (MAXPAGESIZE)".
766 (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
767 * emulparams/elf32_sparc.sh: Likewise.
768 * emulparams/elf32bmip.sh: Likewise.
769 * emulparams/elf32ppccommon.sh: Likewise.
770 * emulparams/elf64_ia64.sh: Likewise.
771 * emulparams/elf64_s390.sh: Likewise.
772 * emulparams/elf64_sparc.sh: Likewise.
773 * emulparams/elf64alpha.sh: Likewise.
774 * emulparams/elf64ppc.sh: Likewise.
775 * emulparams/elf_i386.sh: Likewise.
776 * emulparams/elf_i386_vxworks.sh: Likewise.
777 * emulparams/elf_s390.sh: Likewise.
778 * emulparams/elf_x86_64.sh: Likewise.
779 * emulparams/shlelf32_linux.sh: Likewise.
780 * emulparams/shlelf_linux.sh: Likewise.
782 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
783 "CONSTANT (COMMONPAGESIZE)".
784 * emulparams/elf32btsmipn32.sh: Likewise.
786 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
787 "-z max-page-size=" and "-z common-page-size=".
788 (gld${EMULATION_NAME}_list_options): Likewise.
790 * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
792 * ld.texinfo: Document "-z max-page-size=" and
793 "-z common-page-size=".
795 * ldexp.c (exp_print_token): Handle CONSTANT.
796 (fold_name): Likewise.
797 * ldgram.y: Likewise.
800 * ldmain.c (main): Initiliaze config.maxpagesize and
801 config.commonpagesize. Call bfd_emul_set_maxpagesize if
802 config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
803 config.commonpagesize config.maxpagesize isn't 0.
807 * po/es.po: Updated Spanish translation.
811 * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
816 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
817 bfd. Support 64bit host for --enable-targets=all.
818 * configure: Regenerated.
822 * po/vi.po: Updated Vietnamese translation.
826 * configure.tgt: Add avr6 to emulation list.
827 * Makefile.am: Add eavr6.o and corresponding rule.
828 * Makefile.in: Regenerate.
829 * emulparams/avr6.sh: New file.
830 * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
831 for target option support.
832 (EXTRA_EM_FILE): Add reference to new em template file avrelf.
833 * scripttempl/avr.sc: Add ".trampolines" section.
834 * emultempl/avrelf.em: Add new file for target specific options.
838 * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
842 * ldlang.c (lang_size_sections_1): Don't check mem regions for
843 os->ignored sections.
847 * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
848 before redoing one_lang_size_sections_pass.
852 * ld.texinfo: Rename "Index" to "LD Index"
856 * pe-dll.c (autofilter_symbollist): Add Dllmain,
857 DllMainCRTStartup, _DllMainCRTStartup and .text.
858 (autofilter_liblist): Add libcegcc.
859 (autofilter_symbolprefixlist): Add __imp_ and .idata$.
860 (generate_reloc): Do not skip sections without a SEC_LOAD flag,
861 they can still contain relocs that need processing.
862 Skip the .idata$6 section.
863 (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
864 (make_one): Use the new array.
865 (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
866 * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
870 * ld.texinfo: Document PowerPC and PowerPC64 options.
871 * gen-doc.texi: Enable.
875 * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
876 (TEXI2POD): Use AM_MAKEINFOFLAGS.
877 (configdoc.texi): Don't set top_srcdir.
878 * ld.texinfo: Don't use top_srcdir.
879 * aclocal.m4, Makefile.in: Regenerated.
883 * ldlang.c (wild): Tidy default_common_section loop.
884 (print_input_section): Format.
886 * configure: Regenerate.
890 * po/POTFILES.in: Regenerated.
894 * config.in: Regenerated.
899 * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
900 function to strip inconsistent linkonce sections.
901 (input_section_linked_worker, input_section_linked): New.
902 (is_inconsistent_linkonce_section): New.
903 (xtensa_strip_inconsistent_linkonce_sections): New.
907 * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
908 and Dragonfly targets.
909 * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
910 * Makefile.am (HFILES): Add elf-hints-local.h.
911 * elf-hints-local.h: New file.
912 * Makefile.in: Regenerate.
913 * configure: Regenerate.
917 * ld.texinfo: Fix typo in documentation of --check-sections.
921 * ldlang.c (load_symbols): Set as_needed and add_needed according
922 to the corresponding script's fields while processing it.
926 * Makefile.am: Add install-html, install-html-am, and
927 install-html-recursive targets.
928 * Makefile.in: Regenerate.
929 * configure.in: AC_SUBST datarootdir, docdir, htmldir.
930 * configure: Regenerate.
931 * po/Make-in: Add install-html target.
935 * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
936 link_info.need_relax_finalize.
938 * ldlang.c (relax_sections): New.
939 (lang_process): Use. Call relax_sections link_info.relax_pass
942 * ldmain.c (main): Set link_info.relax_pass to 1. Remove
943 link_info.need_relax_finalize.
947 * Makefile.am (GENSCRIPTS): Pass prefix.
948 * Makefile.in: Regenerate.
949 * genscripts.sh: Adjust for extra parameter.
950 * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
952 (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
958 * configure.tgt (sparc*-*-vxworks*): New stanza.
959 * emulparams/elf32_sparc_vxworks.sh: New file.
960 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
961 (eelf32_sparc_vxworks.c): New rule.
962 * Makefile.in: Regenerate.
966 * ldlang.c (lang_map): Print the list of discarded input sections.
967 (print_input_section): Change parameter and print zero-sized sections.
968 (print_statement): Adjust call to print_input_section.
972 * deffilep.y (def_image_name): If LIBRARY or NAME statement
973 specifies an empty string, retain the name specified on command
975 * ld.texinfo: Document above.
979 * ldmisc.c (vfinfo): Revert 2005-10-05 changes. If
980 bfd_find_nearest_line succeeded for %C or %D, but filename
981 is NULL, print section+offset at the end.
985 * emulparams/elf32bfinfd.sh: New file.
986 * emultempl/bfin.em: Delete.
987 * emulparams/bfin.sh: Lose reference to bfin.em.
988 * Makefile.am (eelf32bfin.c): Likewise.
989 (eelf32bfinfd.c): New.
990 * Makefile.in: Regenerate.
991 * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
1001 * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
1002 separate VxWorks emulations.
1003 * emulparams/elf32ebmipvxworks.sh: New file.
1004 * emulparams/elf32elmipvxworks.sh: New file.
1005 * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
1006 eelf32elmipvxworks.o.
1007 (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
1008 * Makefile.in: Regenerate.
1013 * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
1014 * ldlang.c (output_statement_table_init, lang_init): Likewise.
1015 * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
1016 (undefined_symbol): Likewise.
1026 * emulparams/armelf_vxworks.sh: Include vxworks.sh.
1027 (MAXPAGESIZE): Define.
1028 * emulparams/vxworks.sh: Undefine EMBEDDED.
1029 * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
1030 * Makefile.in: Regenerate.
1034 * scripttempl/avr.sc: Add *(.jumptables) *(.lowtext) sections.
1035 Add KEEP() directives.
1036 Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
1037 .bss output sections.
1041 * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
1042 (EXTRA_EM_FILE): Define.
1043 * emultempl/vxworks.em: New file.
1044 * ld.texinfo (--force-dynamic): Document.
1045 * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
1047 * Makefile.in: Regenerate.
1051 * emulparams/elf32ppccommon.sh: New file, extracted from...
1052 * emulparams/elf32ppc.sh: ...here.
1053 * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
1054 instead of elf32ppc.sh.
1055 (BSS_PLT): Remove override.
1056 * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
1057 (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
1058 (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
1059 (eelf32ppclinux.c): Likewise.
1060 (eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
1061 * Makefile.in: Regenerate.
1065 * Makefile.am: Add html target.
1066 * Makefile.in: Regenerate.
1067 * po/Make-in: Add html target.
1073 * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
1074 * scripttemp/elf32xc16xl.sc: Default linker script for large model.
1075 * scripttemp/elf32xc16xs.sc: Default linker script for small model.
1076 * emulparams/elf32xc16x.sh: Emulation script for tiny model.
1077 * emulparams/elf32xc16xl.sh: Emulation script for large model.
1078 * emulparams/elf32xc16xs.sh: Emulation script for small model.
1079 * Makefile.am: Add entry to make xc16x target.
1080 * Makefile.in: Regenerate.
1081 * configure.tgt: Specify default and other emulation parameters
1083 * NEWS: Announce the support for the new target.
1087 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1088 Use the traditional target.
1092 * configure.tgt (arm*b-*-linux-gnueabi): Change to
1093 arm*b-*-linux-*eabi.
1094 (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
1099 * NEWS: Updated for the Linux linker search order change.
1101 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
1102 gld${EMULATION_NAME}_check_ld_so_conf before checking default
1103 search directories for DT_NEEDED entries.
1107 * emultempl/armelf.em: Include elf/arm.h.
1108 (arm_elf_finish): Set low address bit if enty point is a Thumb
1113 * deffilep.y (def_image_name): If the image name does not have
1114 a suffix, append the default.
1115 * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
1119 * NEWS: Mention support for forward exports in PE-COFF dll's.
1120 * ld.texinfo: Expand documentation of EXPORT statements in
1125 * deffile.h (struct def_file_export): Add field flag_forward.
1126 * pe-dll.c (process_def_file): Check for forward exports.
1127 (generate_edata): Generate forward export symbols.
1128 (fill_edata): Emit them.
1130 * pe-dll.c (process_def_file): Don't crash on malformed
1131 fastcall symbol names in .def file.
1135 * po/vi.po: Updated Vietnamese translation.
1139 * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
1140 file:" as informational message, not a warning.
1144 * emultempl/irix.em: Use lbasename instead of basename.
1148 * po/zh_CN.po: New Chinese (simplified) translation.
1149 * configure.in (ALL_LINGUAS): Add "zh_CH".
1150 * configure: Regenerate.
1154 * ld.texinfo (Options): Fix typo.
1156 For older changes see ChangeLog-2005
1162 version-control: never