2006-11-20 H.J. Lu <hongjiu.lu@intel.com>
[binutils.git] / ld / ChangeLog
blob7a9d971a27d028acc1ede93fcbc61564cc0f15af
1 2006-11-20  H.J. Lu  <hongjiu.lu@intel.com>
3         * ld.texinfo: Fix a typo.
5 2006-11-20  Alan Modra  <amodra@bigpond.net.au>
7         * emulparams/elf32_spu.sh (OTHER_SECTIONS): Define.
9 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
11         * emultempl/armelf.em (arm_elf_before_allocation): Only call
12         bfd_elf32_arm_process_before_allocation if no dynamic sections.
14 2006-11-08  Alan Modra  <amodra@bigpond.net.au>
16         * emultempl/elf32.em (gld*_before_allocation): Adjust output section
17         size for warning sections.
19 2006-11-06  Vladimir Prus  <vladimir@codesourcery.com>
21         * emultempl/elf32.em (gld*_before_allocation): Don't prepend
22         "warning" to the message.
24 2006-10-31  Pedro Alves  <pedro_alves@portugalmail.pt>
26         * pe-dll.c (autofilter_entry_type): Change name to const.
27         (pe_details_type) : Change target_name, object_target and
28         autofilter_symbollist to const.
29         (autofilter_symbollist_generic): Change to const.
30         (autofilter_symbollist_i386, pe_detail_list, pe_details,
31         autofilter_liblist, autofilter_objlist autofilter_symbolprefixlist,
32         autofilter_symbolsuffixlist): Likewise.
33         (is_import): Fix indentation.
34         (auto_export): Change afptr to const.  Move name declaration to
35         beginning of scope.
36         (make_tail): Clear undefined byte.
37         (jmp_ix86_bytes, jmp_sh_bytes, jmp_mips_bytes, jmp_arm_bytes): Change
38         to const.
39         (make_one): Change jmp_bytes to const.  Make idata$6 member size
40         arithmetic explicit and add comment.
42 2006-10-30  H.J. Lu  <hongjiu.lu@intel.com>
44         PR ld/3111
45         * ld.h (args_type): Remove reduce_memory_overheads.
47         * ldlang.c (lang_map): Updated.
48         (section_already_linked): Likewise.
49         (print_input_section): Likewise.
50         * ldmain.c (main): Likewise.
51         * lexsup.c (parse_args): Likewise.
53 2006-10-29  Pedro Alves  <pedro_alves@portugalmail.pt>
55         * pe-dll.c (make_singleton_name_thunk): Re-add the NULL terminator.
57 2006-10-27  Alan Modra  <amodra@bigpond.net.au>
59         * ldlang.c (lang_map): Don't say SEC_LINKER_CREATED and SEC_KEEP
60         sections have been discarded.
61         (lang_do_version_exports_section): Set SEC_KEEP on export section.
62         * emultempl/elf32.em (before_allocation): Set SEC_KEEP on warning
63         sections.
65 2006-10-26  Joseph S. Myers  <joseph@codesourcery.com>
66             Mark Mitchell  <mark@codesourcery.com>
68         * configure.tgt (arm*linux*): Support both big- and little-endian.
70 2006-10-25  H.J. Lu  <hongjiu.lu@intel.com>
72         * emulparams/hppa64linux.sh (LARGE_SECTIONS): Renamed to ...
73         (OTHER_BSS_SECTIONS): This.
74         * scripttempl/elf.sc (OTHER_BSS_SECTIONS): Support LARGE_SECTIONS.
75         (LARGE_SECTIONS): Move .lbss sections to OTHER_BSS_SECTIONS.
77 2006-10-25  Alan Modra  <amodra@bigpond.net.au>
78             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
79             Yukishige Shibata  <shibata@rd.scei.sony.co.jp>
80             Nobuhisa Fujinami  <fnami@rd.scei.sony.co.jp>
81             Takeaki Fukuoka  <fukuoka@rd.scei.sony.co.jp>
83         * emulparams/elf32_spu.sh: New file.
84         * emultempl/spu_inc.s: New file.
85         * emultempl/spu_ovl.S: New file.
86         * emultempl/spu_ovl.o: New file.
87         * emultempl/spuelf.em: New file.
88         * Makefile.am: Add SPU support.
89         * configure.tgt: Likewise.
90         * ldlang.c (load_symbols): Make global.
91         * ldlang.h (load_symbols): Declare.
92         * scripttempl/elf.sc (OTHER_BSS_SECTIONS): Add.
93         * Makefile.in: Regenerate.
95 2006-10-24  Ben Elliston  <bje@au.ibm.com>
97         * lexsup.c (parse_args): Add a comment noting a fall-through.
99 2006-10-24  H.J. Lu  <hongjiu.lu@intel.com>
101         * configure.in (AC_CHECK_HEADERS): Add limits.h and sys/param.h.
102         * configure: Regenerated.
103         * config.in: Likewise.
105 2006-10-23  Alan Modra  <amodra@bigpond.net.au>
107         * emulparams/h8300elf.sh (TINY_DATA_SECTION, TINY_BSS_SECTION): Don't
108         set section address on a relocatable link.
110         * ld.texinfo (Output Section Discarding): Fix xref.
112 2006-10-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
114         * emulparams/shelf32.sh: Set default stack to 0x80000.
115         * emulparams/shelf64.sh: Likewise.
117 2006-10-20  Richard Sandiford  <richard@codesourcery.com>
119         * emulparams/elf32bmip.sh (OTHER_GOT_RELOC_SECTIONS): Define.
120         * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_RELOC_SECTIONS): Likewise.
122 2006-10-19  Alan Modra  <amodra@bigpond.net.au>
124         * emultempl/armelf.em (arm_elf_before_allocation): Run
125         gld${EMULATION_NAME}_before_allocation later.
126         * ldlang.c (lang_size_sections_1): Revert 2006-09-15 change.
128 2006-10-18  Roy Marples  <uberlord@gentoo.org>
130         * emulparams/elf64_sparc_fbsd.sh (OUTPUT_FORMAT): Define as
131         elf64-sparc-freebsd.
133 2006-10-18  Joseph Myers  <joseph@codesourcery.com>
135         * configure.tgt (i[3-7]86-*-linux-*): Also define
136         targ_extra_libpath in want64 case.
137         * emulparams/elf_x86_64.sh: Handle i[3-7]86-*-linux-* the same as
138         x86_64*-linux*.
140 2006-10-17  Alan Modra  <amodra@bigpond.net.au>
142         * scripttempl/elf.sc (INTERP): Delete.  Move definition to..
143         (INITIAL_READONLY_SECTIONS): ..here.
144         * emulparams/criself.sh (INITIAL_READONLY_SECTIONS): Include .interp.
145         * emulparams/elf32bmip.sh (INITIAL_READONLY_SECTIONS): Ditto.
146         * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Ditto.
148 2006-10-17  Alan Modra  <amodra@bigpond.net.au>
150         * ldlang.c (strip_excluded_output_sections): Do strip sections
151         that define syms, but don't ignore them.
152         * ld.texinfo (Output Section Discarding): Revise.
153         * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Always call
154         finish_default.
156 2006-10-16  Richard Sandiford  <richard@codesourcery.com>
158         * Makefile.am (eelf64bmip.c): Depend on emulparams/elf64bmip-defs.sh.
159         (eelf64btsmip.c, eelf64ltsmip.c): Likewise.
160         * Makefile.in: Regenerate.
161         * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Include
162         .reginfo rather than .MIPS.options.
163         * emulparams/elf64bmip-defs.sh: New file.
164         * emulparams/elf64bmip.sh: Include it.
165         (COMMONPAGESIZE): Delete.
166         * emulparams/elf64btsmip.sh: As for elf64bmip.sh.
168 2006-10-12  Bob Wilson  <bob.wilson@acm.org>
170         * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Check
171         for linkonce XCC exception tables (".e" and ".h").
173 2006-10-11  Bob Wilson  <bob.wilson@acm.org>
175         * emulparams/elf32xtensa.sh (TEXT_PLT): Enable.
176         (OTHER_READONLY_SECTIONS): Add linkonce .xt_except_table sections.
177         (OTHER_READWRITE_SECTIONS): Add linkonce .xt_except_desc sections.
178         (OTHER_SDATA_SECTIONS): New.
179         * scripttempl/elfxtensa.sc: Import changes from elf.sc.
181 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
183         * ldlang.c (lang_append_dynamic_list): When appending, add all elements
184         of the dynamic list rather than just the first entry.
186 2006-10-10  Bob Wilson  <bob.wilson@acm.org>
188         * emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable.
190 2006-10-06  Mike Frysinger  <vapier@gentoo.org>
192         * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
194 2006-10-04  Bob Wilson  <bob.wilson@acm.org>
196         * emulparams/xtensa-config.sh: Delete file.
197         * emulparams/elf32xtensa.sh: Set MAXPAGESIZE here instead of including
198         xtensa-config.sh.
199         * Makefile.am (eelf32xtensa.c): Remove dependency on xtensa-config.sh.
200         * Makefile.in: Regenerate.
202 2006-10-03  Pedro Alves  <pedro_alves@portugalmail.pt>
204         * pe-dll.c : Fix typo.
205         (autofilter_symbolprefixlist) : Remove __imp_.
206         (is_import) : New.
207         (auto-export) : Remove  re-import check. Moved to callers.
208         (process_def_file) : Check is symbol is an import. Always
209         underscore __imp_.
210         Only skip underscore on underscored targets.
211         (make_one) : Always underscore __imp_.
212         (pe_create_runtime_relocator_reference) : Only underscore
213         _pei386_runtime_relocator on underscored targets.
214         (pe_process_import_defs) : Always underscore __imp_.
215         * pe.em (U) : New macro.
216         (set_pe_subsystem) : Remove underscore from _WinMainCRTStartup
217         on wince subsystem case.
218         (pe_find_data_imports) : Use U on "_head_".
219         (gld_${EMULATION_NAME}_unrecognized_file) : Use U.
221 2006-09-26  H.J. Lu  <hongjiu.lu@intel.com>
223         PR ld/3223
224         PR ld/3267
225         * ld.texinfo: Updated Output Section Discarding.
227         * ldlang.h (lang_output_section_statement_type): Add
228         section_relative_symbol.
229         * ldlang.c (strip_excluded_output_sections): Don't strip a
230         section with a symbol relative to it.
231         (lang_size_sections_1): Mark if an output section has a symbol
232         symbol relative to it.
234 2006-09-25  Bob Wilson  <bob.wilson@acm.org>
236         * ld.texinfo (Options): Update description of local symbols for -X.
238 2006-09-23  H.J. Lu  <hongjiu.lu@intel.com>
240         PR ld/3249
241         * scripttempl/elf.sc: Don't combine .gnu.linkonce.d.*personality*
242         and .gnu.linkonce.wi.* sections with .data and .debug_info for
243         relocatable link.
245 2006-09-20  Kai Tietz  <Kai.Tietz@onevision.com>
247         * configure.in: Add new target x86_64-pc-mingw64.
248         * configure: Regenerate.
249         * configure.tgt: Add definition of target emulation i386pep.
250         * Makefile.am: Add new target files for target-all.
251         * Makefile.in: Regenerate.
252         * pe-dll.c: Adjust to be inheritable by pep_dll.c as include.
253         Fix memory out of bounds excess for idata relocation section data.
254         * pep-dll.c: Add target specific shared object handling.
255         * pep-dll.h: Add target specific definitions for shared object handling.
256         * emulparams/i386pep.sh: Add new emulation params for target x86_64 coff.
257         * emultempl/pep.em: Add new emulation file for target x86_64 coff.
258         * po/POTFILES.in: Regenerate.
259         * scripttempl/pep.sc: Add linker script template for target x86_64 coff.
260         * NEWS: Mention new target.
262 2006-09-18  Thiemo Seufer  <ths@networkno.de>
264         * configure.tgt: Add mips*el-sde-elf* and mips*-sde-elf*
265         configurations.
267 2006-09-17  Mei Ligang  <ligang@sunnorth.com.cn>
269         * emulparams/scoreelf.sh: New file.
270         * emultempl/scoreelf.em: New file.
271         * Makefile.am: Add Score files.
272         * Makefile.in: Regenerate.
273         * configure.tgt: Add Score target.
274         * NEWS: Mention new target support.
276 2006-09-16  Nick Clifton  <nickc@redhat.com>
277             Pedro Alves  <pedro_alves@portugalmail.pt>
279         * ldctor.c: Make use of new STRING_COMMA_LEN and CONST_STRNEQ
280         macros defined in bfd.h.
281         * ldmain.c: Likewise.
282         * ldwrite.c: Likewise.
283         * lexsup.c: Likewise.
284         * pe-dll.c: Likewise.
285         * emultempl/aix.em: Likewise.
286         * emultempl/beos.em: Likewise.
287         * emultempl/elf32.em: Likewise.
288         * emultempl/pe.em: Likewise.
289         * emultempl/sunos.em: Likewise.
290         * emultempl/xtensaelf.em: Likewise.
292 2006-09-15  Nick Clifton  <nickc@redhat.com>
294         PR ld/3107
295         * ldlang.c (lang_size_sections_1): Do not abort when encountering
296         a non-empty section that is ignored.  Instead produce a warning
297         message.
299 2006-09-08  H.J. Lu  <hongjiu.lu@intel.com>
301         * ld.texinfo: Document --dynamic-list-cpp-typeinfo.
303 2006-09-07  H.J. Lu  <hongjiu.lu@intel.com>
305         * Makefile.am (CXX): Set to g++.
306         (CXX_FOR_TARGET): Likewise.
307         * Makefile.in: Regenerated.
309         * NEWS: Mention --dynamic-list.
311         * ld.texinfo: Document --dynamic-list.
313         * ldgram.y: Support dynamic list.
315         * ldlang.c (lang_process): Call lang_finalize_version_expr_head
316         on link_info.dynamic if needed.
317         (lang_append_dynamic_list): New.
318         (lang_append_dynamic_list_cpp_typeinfo): New.
319         * ldlang.h (lang_append_dynamic_list): Likewise.
320         * ldlang.h (lang_append_dynamic_list_cpp_typeinfo): Likewise.
322         * ldlex.h (input_enum): Add input_dynamic_list.
323         * ldlex.l: Handle it.
325         * ldmain.c (main): Initialize link_info.dynamic.
327         * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST and
328         OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
329         (ld_options): Add entries for OPTION_DYNAMIC_LIST and
330         OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
331         (parse_args): Handle OPTION_DYNAMIC_LIST and
332         OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
334 2006-09-07  Joel Sherrill <joel.sherrill@oarcorp.com>
336         * emulparams/h8300elf.sh: _tinydata should not be placed in
337         relocatables.
338         * emulparams/h8300.sh: Likewise.
339         * emulparams/h8300sxelf.sh: Likewise.
341 2006-09-05  H.J. Lu  <hongjiu.lu@intel.com>
343         PR ld/3015
344         * emultempl/elf32.em: Enable "-z relro" only if $COMMONPAGESIZE
345         is defined.
347 2006-08-29  Nathan Sidwell  <nathan@codesourcery.com>
349         * ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.
351 2006-08-28  Alan Modra  <amodra@bigpond.net.au>
353         * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
354         not match random object files in a path containing "crtbegin" or
355         "crtend" as part of a directory name.
356         * scripttempl/armbpabi.sc: Likewise.
357         * scripttempl/crisaout.sc: Likewise.
358         * scripttempl/elf32crx.sc: Likewise.
359         * scripttempl/elf32sh-symbian.sc: Likewise.
360         * scripttempl/elf_chaos.sc: Likewise.
361         * scripttempl/elfd10v.sc: Likewise.
362         * scripttempl/elfd30v.sc: Likewise.
363         * scripttempl/elfxtensa.sc: Likewise.
364         * scripttempl/iq2000.sc: Likewise.
365         * scripttempl/mmo.sc: Likewise.
366         * scripttempl/xstormy16.sc: Likewise.
368 2006-08-24  Bob Wilson  <bob.wilson@acm.org>
370         * emulparams/elf32xtensa.sh (.xt.prop): Add .xt.prop.*.
371         * scripttempl/elfxtensa.sc (.text): Add .literal.*.
373 2006-08-24  Pedro Alves  <pedro_alves@portugalmail.pt>
375         * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
376         Adjust the current address of DEFAULT_MEMORY_REGION even
377         when dot hasn't changed.
379 2006-08-23  Alan Modra  <amodra@bigpond.net.au>
381         * ldexp.c (fold_name <LOADADDR>): Return an absolute value
382         rather than a section relative value.
384 2006-08-22  Alan Modra  <amodra@bigpond.net.au>
386         * NEWS: Mention LMA default change.
387         * ld.texinfo (Output Section LMA): Update default description.
388         (Location Counter): Clarify backward movement.
389         * ldlang.c (lang_size_sections_1): Leave non-alloc sections with
390         default lma equal to vma.  Warn on backward movement of dot.
392 2006-08-22  Pedro Alves  <pedro_alves@portugalmail.pt>
394         * configure.tgt: Set targ_emul to arm_wince_pe for ARM
395         Windows CE targets.
397 2006-08-22  Pedro Alves  <pedro_alves@portugalmail.pt>
399         * Makefile.am: Split arm-wince into its own emulation.
400         * Makefile.in: Regenerate.
401         * pe-dll.c : Define PE_ARCH_arm_wince.
402         (pe_detail_list): Add PE_ARCH_arm_wince case.
403         (make_one): Handle PE_ARCH_arm_epoc and PE_ARCH_arm_wince cases.
404         * emulparams/arm_wince_pe.sh: New file.
405         * emultempl/pe.em: Handle new TARGET_IS_arm_wince_pe define.
406         Remap bfd_arm_allocate_interworking_sections,
407         bfd_arm_get_bfd_for_interworking and
408         bfd_arm_process_before_allocation for arm-pe and arm-wince-pe
409         targets too.
410         (gld_${EMULATION_NAME}_recognized_file): Handle arm-wince and
411         arm-epoc bfd format names.
413 2006-08-18  Paul Brook  <paul@codesourcery.com>
415         * emultempl/armelf.em (arm_elf_before_allocation): Call
416         gld${EMULATION_NAME}_before_allocation after setting interworking bfd.
418 2006-08-17  Pedro Alves  <pedro_alves@portugalmail.pt>
420         * pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
421         (generate_reloc): Revert to skipping sections without a SEC_LOAD flag,
422         and to not skipping .idata* sections.
424 2006-08-16  Alan Modra  <amodra@bigpond.net.au>
426         PR 3052
427         * ldlang.h (lang_output_section_statement_type): Replace
428         "processed" field with "processed_vma" and "processed_lma".
429         * ldlang.c (lang_do_assignments_1): Move lma setting code..
430         (lang_size_sections_1): ..to here.
431         (lang_reset_memory_regions): Adjust for
432         lang_output_section_statement_type change.
433         * ldexp.c (fold_name): Likewise.
435 2006-08-08  Peter S. Mazinger  <ps.m@gmx.net>
437         * emulparams/armelf.sh (MAXPAGESIZE): Changed to
438         "CONSTANT (MAXPAGESIZE)".
440 2006-08-08  H.J. Lu  <hongjiu.lu@intel.com>
442         PR ld/3006
443         * ldlang.c (lang_section_bst_type): Moved to ...
444         * ldlang.h: Here.
446         * ldlang.h (lang_wild_statement_struct): Add a tree field.
448         * ldlang.c (wild_sort_fast): Use the tree field for BST.
449         (wild): Likeise.
450         (analyze_walk_wild_section_handler): Initialize the tree field.
452 2006-08-08  H.J. Lu  <hongjiu.lu@intel.com>
454         PR ld/3009
455         * ldlang.c (update_wild_statements): Update the whole wild
456         section list.
458 2006-08-04  Nick Clifton  <nickc@redhat.com>
459             Mike Frysinger  <michael.frysinger@analog.com>
461         * scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
462         (__preinit_array_start, __preinit_array_end, __init_array_start,
463         __init_array_end, __fini_array_start, __fini_array_end, edata, end):
464         Use ${USER_LABEL_PREFIX}.
465         * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
466         (USER_LABEL_PREFIX): Set.
468 2006-08-04  Marcelo Tosatti  <marcelo@kvack.org>
470         * ldmain.c (main): Initialise print_gc_sections field of link_info
471         structure.
472         * lexsup.c: Add --print-gc-sections and --no-print-gc-sections
473         switches.
474         * ld.texinfo: Document new switches.
475         * NEWS: Mention new switches.
477 2006-08-04  Richard Sandiford  <richard@codesourcery.com>
478             Kazu Hirata  <kazu@codesourcery.com>
479             Phil Edwards  <phil@codesourcery.com>
481         * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
482         eshlelf_vxworks.o.
483         (eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
484         * Makefile.in: Regenerate.
485         * configure.tgt (sh-*-vxworks): Use shelf_vxworks and
486         shlelf_vxworks.
487         * emulparams/shelf_vxworks.sh: New file.
488         * emulparams/shlelf_vxworks.sh: Likewise.
489         * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
490         (OTHER_END_SYMBOLS): Likewise _ehdr.
491         (DATA_END_SYMBOLS): Likewise _edata.
492         * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
493         is indeed an ELF file before dealing with --force-dynamic.
495 2006-08-02  Petr Salinger  <Petr.Salinger@seznam.cz>
497         PR binutils/2983
498         * emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as
499         elf64-x86-64-freebsd.
501 2006-08-01  H.J. Lu  <hongjiu.lu@intel.com>
503         * ldlang.c (init_os): Add flags. Replace bfd_make_section with
504         bfd_make_section_with_flags.
505         (exp_init_os): Updated.
506         (lang_add_section): Call init_os with flags.
507         (map_input_to_output_sections): Likewise.
509 2006-07-29  Richard Sandiford  <richard@codesourcery.com>
511         * Makefile.am (eelf32b4300.c): Update dependencies.
512         (eelf32bmip.c): Likewise.
513         (eelf32bsmip.c): Likewise.
514         (eelf32btsmip.c): Likewise.
515         (eelf32btsmipn32.c): Likewise.
516         (eelf32ltsmip.c): Likewise.
517         (eelf32ltsmipn32.c): Likewise.
518         (eelf32ebmip.c): Likewise.
519         (eelf32ebmipvxworks.c): Likewise.
520         (eelf32elmip.c): Likewise.
521         (eelf32elmipvxworks.c): Likewise.
522         (eelf32bmipn32.c): Likewise.
523         (eelf32lmip.c): Likewise.
524         (eelf32mipswindiss.c): Likewise.
525         (eelf32lsmip.c): Likewise.
526         (eelf64bmip.c): Likewise.
527         (eelf64btsmip.c): Likewise.
528         (eelf64ltsmip.c): Likewise.
529         (emipsbig.c): Likewise.  Canonicalize ${GENSCRIPTS} line.
530         (emipsbsd.c): Likewise.
531         (emipsidt.c): Update dependencies.
532         (emipsidtl.c): Likewise.
533         (emipslit.c): Likewise.
534         (emipslnews.c): Likewise.
535         (emipspe.c): Likewise.  Fix ${GENSCRIPTS} invocation.
536         * Makefile.in: Regenerate.
537         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
538         * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
539         * emultempl/irix.em: Include emultempl/mipself.em.
540         * emultempl/mipself.em: New file.
542 2006-07-26  Alan Modra  <amodra@bigpond.net.au>
544         * emultempl/elf-generic.em (map_segments): Reorganise loop so that
545         layout happens before segment map.  Don't do segment map on
546         relocatable link.
548 2006-07-26  Alan Modra  <amodra@bigpond.net.au>
550         * ldexp.c (fold_name <LOADADDR>): Use the lma.
551         * ldlang.h (lang_memory_region_type): Delete old_length.  Add
552         last_os.
553         * ldlang.c (lang_memory_region_lookup): Init new field.
554         (lang_reset_memory_regions): Reset new field.
555         (lang_insert_orphan): Don't set load_base.
556         (lang_leave_overlay): Likewise.
557         (lang_size_sections_1): Delete unnecessary code setting lma_region
558         to region.  Correct lma region check.
559         (lang_do_assignments_1): Rename output_section_statement parm
560         to current_os.  Set lma from previous section in region.
562         * ldlang.c: Formatting.
564 2006-07-25  Bob Wilson  <bob.wilson@acm.org>
566         * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
567         Set discarded section's output_section to bfd_abs_section_ptr.
569 2006-07-26  Alan Modra  <amodra@bigpond.net.au>
571         * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
572         earlier.
574 2006-07-24  Bob Wilson  <bob.wilson@acm.org>
576         * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
577         in dep_sec_name for null terminator.  Make sure dep_sec_name has a
578         ".t" linkonce tag.
580 2006-07-14  Michael Wetherell  <mike.wetherell@ntlworld.com>
582         * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME):
583         Set for *-*-solaris2*.
585 2006-07-24  Ralk Wildenhues  <Ralf.Wildenhues@gmx.de>
587         * ld.texinfo: Fix spelling mistakes.
588         * ldint.texinfo: Likewise.
590 2006-07-23  Sonal Santan  <sonal.santan@xilinx.com>
592         * ldlang.c (lang_section_bst): New structure for sorting sections
593         by name.
594         (wild_sort_fast): New function: Insert a section into a binary
595         search tree.
596         (output_section_callback_fast): New function: Store a section in
597         BST.
598         (output_section_callback_tree_to_list): New function: Convert a
599         BST into a list.
600         (analyze_walk_wild_section_handler): Initialize handler_data
601         elements.
602         (wild): If the data is sorted by name use the BST method to sort
603         the names.
605 2006-07-19  Alan Modra  <amodra@bigpond.net.au>
607         * ld.h (handle_asneeded_cref): Declare.
608         * ldcref.c: Include objalloc.h.
609         (old_table, old_count, old_tab, alloc_mark): New variables.
610         (tabsize, entsize, refsize, old_symcount): Likewise.
611         (add_cref): Use bfd_hash_allocate for refs.
612         (handle_asneeded_cref): New function.
613         * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
615 2006-07-14  Michael Wetherell  <mike.wetherell@ntlworld.com>
617         * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
618         typo setting targ_extra_libpath.
620 2006-07-10  Jakub Jelinek  <jakub@redhat.com>
622         * scripttempl/elf.sc: Add .gnu.hash section.
623         * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
624         (gld${EMULATION_NAME}_add_options): Register --hash-style option.
625         (gld${EMULATION_NAME}_handle_option): Handle it.
626         (gld${EMULATION_NAME}_list_options): Document it.
627         * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
628         * ld.texinfo: Document --hash-style option.
630 2006-07-10  Nick Clifton  <nickc@redhat.com>
632         * po/zh_TW.po: New Chinese (traditional) translation.
633         * configure.in (ALL_LINGUAS): Add zh_TW.
634         * configure: Regenerate.
636 2006-07-07  Nick Clifton  <nickc@redhat.com>
638         PR ld/2874
639         * ld.texinfo: Remove "Using LD" from the title since it is
640         redundant.
642 2006-07-06  Mohammed Adnène Trojette  <adn@diwi.org>
644         PR ld/2877
645         * ld.texinfo: Fix spelling mistakes.
647 2006-06-27  Pedro Alves  <pedro_alves@portugalmail.pt>
648             Nick Clifton  <nickc@redhat.com>
650         * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
651         length of format strings in the libname_fmt[] array, rather than
652         relying upon a statically chosen value.  Adjust xmalloc call to
653         use this longest length.
655 2006-06-27  Nick Clifton  <nickc@redhat.com>
657         * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
658         -rpath-link.
660 2006-06-23  Daniel Jacobowitz  <dan@codesourcery.com>
662         * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
663         targ_extra_libpath.
665 2006-06-23  Pedro Alves <pedro_alves@portugalmail.pt>
667         * pe-dll.c (pe_details_type): Add new pointer for symbols list
668         autofilter.
669         (autofilter_symbollist): Split into autofilter_symbollist_generic
670         and autofilter_symbollist_i386.
671         (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
672         autofilter_symbollist_generic for all the others.
673         (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
674         cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
675         into autofilter_symbollist_i386.
676         (auto_export): Get autofilter_symbollist from pe_details.
678 2006-06-22  Nick Clifton  <nickc@redhat.com>
680         PR ld/2757
681         * emultempl/pe.em (gld_$_after_open): When reporting non PE format
682         output files mention the file name and the fact that it is an
683         output file.
685 2006-06-22  Danny Smith  <dannysmith@users.sourceforge.net>
687         * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
688         Restructure.  Add native "%s.lib" format to search list
689         * ld.texinfo (node WIN32): Update documentation on dynamic lib
690         search order. Add another reason for using import libs.
692 2006-06-21  Mark Shinwell  <shinwell@codesourcery.com>
694         * ldlang.c (lang_insert_orphan): Correctly handle the case where
695         the section is to end up after the section currently at the end
696         of the list in output_bfd.
698 2006-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
700         * emultempl/mmo.em: Improve comments.  Explain why there's
701         ELF-stuff here.
703 2006-06-21  Alan Modra  <amodra@bigpond.net.au>
705         * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
706         loop to ten iterations.  Throw away any previous linker generated
707         segment map.
708         * ldlang.c (lang_phdr_list): Make global.
709         * ldlang.h (lang_phdr_list): Declare.
710         * Makefile.am (ELF_GEN_DEPS): Define.  Use in emul deps.
711         * Makefile.in: Regenerate.
713 2006-06-20  Alan Modra  <amodra@bigpond.net.au>
715         * Makefile.am (ELF_DEPS): Define.  Use in emul file deps.  Fix
716         many ELF emul file deps that incorrectly said they needed elf32.em
717         instead of generic.em.  Add genelf.em as required.
718         * Makefile.in: Regenerate.
719         * ldlang.c (lang_process): Call ldemul_finish before
720         lang_check_section_addresses.
721         * emulparams/arcelf.sh: Generic elf target needs genelf.
722         * emulparams/d30v_e.sh: Likewise.
723         * emulparams/d30v_o.sh: Likewise.
724         * emulparams/d30velf.sh: Likewise.
725         * emulparams/elf32_dlx.sh: Likewise.
726         * emulparams/elf32_i860.sh: Likewise.
727         * emulparams/elf32fr30.sh: Likewise.
728         * emulparams/elf32frv.sh: Likewise.
729         * emulparams/elf32iq10.sh: Likewise.
730         * emulparams/elf32iq2000.sh: Likewise.
731         * emulparams/elf32mt.sh: Likewise.
732         * emulparams/mn10200.sh: Likewise.
733         * emulparams/or32.sh: Likewise.
734         * emulparams/or32elf.sh: Likewise.
735         * emulparams/pjelf.sh: Likewise.
736         * emulparams/msp430all.sh: Likewise.  Extract common entries.
737         * emulparams/pjlelf.sh: Include pjelf.sh.
738         * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
739         * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
740         * emultempl/elf-generic.em: New file.
741         * emultempl/genelf.em: New file.
742         * emultempl/elf32.em: Include elf-generic.em.
743         (gld${EMULATION_NAME}_layout_sections_again): Delete.
744         (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
745         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
746         (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish.  Call
747         gld${EMULATION_NAME}_map_segments.
748         (LDEMUL_FINISH): Update.
749         * emultempl/mmo.em: Correct comment.  Include elf-bfd.h and
750         source elf-generic.em.
751         (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
752         * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
753         (gld${EMULATION_NAME}_finish): Rename from ppc_finish.  Call
754         gld${EMULATION_NAME}_map_segments.
755         (LDEMUL_FINISH): Update.
757 2006-06-19  Alan Modra  <amodra@bigpond.net.au>
759         * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
761 2006-06-14  Kevin F. Quinn  <kevquinn@gentoo.org>
763         * ld.texinfo: Document new -z lazy option.
764         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
765         new option.
766         (gld${EMULATION_NAME}_list_options): Update help text.
768 2006-06-12  Fred Fish  <fnf@specifix.com>
770         * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
771         ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
772         generated by mips gcc.
774 2006-06-12  Thiemo Seufer  <ths@mips.com>
776         * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
777         Define.
779 2006-06-09  Alan Modra  <amodra@bigpond.net.au>
781         * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
782         * ldlang.c (struct out_section_hash_entry): Rename from
783         output_statement_hash_entry.  Delete output_section_statement_type
784         entry.  Add statement_union_type entry.  Adjust all users.
785         (output_section_statement_table): Rename from output_statement_table.
786         Adjust all users.
787         (output_section_statement_newfunc): Rename from
788         output_statement_newfunc.  Adjust all users.
789         (output_section_statement_table_init): Rename from
790         output_statement_table_init.  Adjust all users.
791         (output_section_statement_table_free): Rename from
792         output_statement_table_free.  Adjust all users.
794 2006-06-07  Joseph S. Myers  <joseph@codesourcery.com>
796         * po/Make-in (pdf, ps): New dummy targets.
798 2006-06-07  Alan Modra  <amodra@bigpond.net.au>
800         * ldlang.h (enum section_type): Delete dsect_section, copy_section,
801         info_section and overlay_section.  Add noalloc_section.
802         * ldlang.c (lang_add_section): Adjust.
803         * ldgram.y (type): Adjust.
805 2006-06-06  Alan Modra  <amodra@bigpond.net.au>
807         * ldlang.c (init_os): Whitespace.
808         (map_input_to_output_sections): Don't init_os for lang_input_section.
809         (print_all_symbols): Remove forward declaration.  Convert to ISO C.
811 2006-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
813         * po/Make-in (top_builddir): Define.
815 2006-06-05  Alan Modra  <amodra@bigpond.net.au>
817         * ldexp.c (exp_get_abs_int): Make error message the same as
818         others emitted in this file.
820 2006-06-05  Alan Modra  <amodra@bigpond.net.au>
822         * config.in: Regenerate.
824 2006-06-05  Alan Modra  <amodra@bigpond.net.au>
826         * ldlang.c (lookup_name): Delete dead code.  Remove FIXMEs.
828 2006-06-03  Alan Modra  <amodra@bigpond.net.au>
830         * emultempl/elf32.em (global_found): Make it a pointer.
831         (stat_needed, try_needed): Adjust.
832         (check_needed): Don't skip non-loaded as-needed entries.  Only
833         consider entries with both filename and the_bfd non-null.
834         (after_open): Try loading non-loaded as-needed libs to satisfy
835         DT_NEEDED libs.
837 2006-06-02  Joseph S. Myers  <joseph@codesourcery.com>
839         * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
840         * Makefile.in: Regenerate.
842 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
844         * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
845         and LIBINTL_DEP everywhere.
846         (INTLLIBS): Remove.
847         (INCLUDES): Use @INCINTL@.
848         * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
849         Remove local code for po/Makefile.
850         * Makefile.in, configure: Regenerated.
852 2006-05-30  H.J. Lu  <hongjiu.lu@intel.com>
854         * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
855         "CONSTANT (MAXPAGESIZE)".
856         * emulparams/armelf_nbsd.sh: Likewise.
857         * emulparams/armelf_vxworks.sh: Likewise.
858         * emulparams/armnto.sh: Likewise.
859         * emulparams/armsymbian.sh: Likewise.
860         * emulparams/crislinux.sh: Likewise.
861         * emulparams/elf32_i860.sh: Likewise.
862         * emulparams/elf32_i960.sh: Likewise.
863         * emulparams/elf32am33lin.sh: Likewise.
864         * emulparams/elf32bfinfd.sh: Likewise.
865         * emulparams/elf32bmipn32-defs.sh: Likewise.
866         * emulparams/elf32frvfd.sh: Likewise.
867         * emulparams/elf32i370.sh: Likewise.
868         * emulparams/elf32lppcnto.sh: Likewise.
869         * emulparams/elf32mcore.sh: Likewise.
870         * emulparams/elf32openrisc.sh: Likewise.
871         * emulparams/elf32ppcnto.sh: Likewise.
872         * emulparams/elf32ppcwindiss.sh: Likewise.
873         * emulparams/elf32vax.sh: Likewise.
874         * emulparams/elf32xc16x.sh: Likewise.
875         * emulparams/elf32xc16xl.sh: Likewise.
876         * emulparams/elf32xc16xs.sh: Likewise.
877         * emulparams/elf64_aix.sh: Likewise.
878         * emulparams/elf64hppa.sh: Likewise.
879         * emulparams/elf64mmix.sh: Likewise.
880         * emulparams/elf_i386_be.sh: Likewise.
881         * emulparams/elf_i386_chaos.sh: Likewise.
882         * emulparams/elf_i386_ldso.sh: Likewise.
883         * emulparams/hppa64linux.sh: Likewise.
884         * emulparams/hppalinux.sh: Likewise.
885         * emulparams/hppaobsd.sh: Likewise.
886         * emulparams/i386lynx.sh: Likewise.
887         * emulparams/i386moss.sh: Likewise.
888         * emulparams/i386nto.sh: Likewise.
889         * emulparams/i386nw.sh: Likewise.
890         * emulparams/m32relf_linux.sh: Likewise.
891         * emulparams/m68kpsos.sh: Likewise.
892         * emulparams/or32elf.sh: Likewise.
893         * emulparams/pjelf.sh: Likewise.
894         * emulparams/pjlelf.sh: Likewise.
895         * emulparams/ppclynx.sh: Likewise.
896         * emulparams/ppcnw.sh: Likewise.
897         * emulparams/shelf32_nbsd.sh : Likewise.
898         * emulparams/shelf_nbsd.sh: Likewise.
899         * emulparams/shelf_nto.sh: Likewise.
900         * emulparams/shlelf_nto.sh: Likewise.
901         * emulparams/xtensa-config.sh: Likewise.
903         * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
904         "CONSTANT (MAXPAGESIZE)".
905         (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
906         * emulparams/elf32_sparc.sh: Likewise.
907         * emulparams/elf32bmip.sh: Likewise.
908         * emulparams/elf32ppccommon.sh: Likewise.
909         * emulparams/elf64_ia64.sh: Likewise.
910         * emulparams/elf64_s390.sh: Likewise.
911         * emulparams/elf64_sparc.sh: Likewise.
912         * emulparams/elf64alpha.sh: Likewise.
913         * emulparams/elf64ppc.sh: Likewise.
914         * emulparams/elf_i386.sh: Likewise.
915         * emulparams/elf_i386_vxworks.sh: Likewise.
916         * emulparams/elf_s390.sh: Likewise.
917         * emulparams/elf_x86_64.sh: Likewise.
918         * emulparams/shlelf32_linux.sh: Likewise.
919         * emulparams/shlelf_linux.sh: Likewise.
921         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
922         "CONSTANT (COMMONPAGESIZE)".
923         * emulparams/elf32btsmipn32.sh: Likewise.
925         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
926         "-z max-page-size=" and "-z common-page-size=".
927         (gld${EMULATION_NAME}_list_options): Likewise.
929         * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
931         * ld.texinfo: Document "-z max-page-size=" and
932         "-z common-page-size=".
934         * ldexp.c (exp_print_token): Handle CONSTANT.
935         (fold_name): Likewise.
936         * ldgram.y: Likewise.
937         * ldlex.l: Likewise.
939         * ldmain.c (main): Initiliaze config.maxpagesize and
940         config.commonpagesize. Call bfd_emul_set_maxpagesize if
941         config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
942         config.commonpagesize config.maxpagesize isn't 0.
944 2006-05-30  Nick Clifton  <nickc@redhat.com>
946         * po/es.po: Updated Spanish translation.
948 2006-05-25  H.J. Lu  <hongjiu.lu@intel.com>
950         * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
952 2006-05-24  H.J. Lu  <hongjiu.lu@intel.com>
954         PR ld/1485
955         * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
956         bfd.  Support 64bit host for --enable-targets=all.
957         * configure: Regenerated.
959 2006-05-24  Nick Clifton  <nickc@redhat.com>
961         * po/vi.po: Updated Vietnamese translation.
963 2006-05-24  Bjoern Haase  <bjoern.m.haase@web.de>
965         * configure.tgt: Add avr6 to emulation list.
966         * Makefile.am: Add eavr6.o and corresponding rule.
967         * Makefile.in: Regenerate.
968         * emulparams/avr6.sh: New file.
969         * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
970         for target option support.
971         (EXTRA_EM_FILE): Add reference to new em template file avrelf.
972         * scripttempl/avr.sc: Add ".trampolines" section.
973         * emultempl/avrelf.em: Add new file for target specific options.
975 2006-05-22  Nick Clifton  <nickc@redhat.com>
977         * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
979 2006-05-19  Alan Modra  <amodra@bigpond.net.au>
981         * ldlang.c (lang_size_sections_1): Don't check mem regions for
982         os->ignored sections.
984 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
986         * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
987         before redoing one_lang_size_sections_pass.
989 2006-05-11  Carlos O'Donell  <carlos@codesourcery.com>
991         * ld.texinfo: Rename "Index" to "LD Index"
993 2006-05-11  Pedro Alves  <pedro_alves@portugalmail.pt>
995         * pe-dll.c (autofilter_symbollist): Add Dllmain,
996         DllMainCRTStartup, _DllMainCRTStartup and .text.
997         (autofilter_liblist): Add libcegcc.
998         (autofilter_symbolprefixlist): Add __imp_ and .idata$.
999         (generate_reloc): Do not skip sections without a SEC_LOAD flag,
1000         they can still contain relocs that need processing.
1001         Skip the .idata$6 section.
1002         (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
1003         (make_one): Use the new array.
1004         (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
1005         * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
1007 2006-05-05  Alan Modra  <amodra@bigpond.net.au>
1009         * ld.texinfo: Document PowerPC and PowerPC64 options.
1010         * gen-doc.texi: Enable.
1012 2006-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
1014         * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
1015         (TEXI2POD): Use AM_MAKEINFOFLAGS.
1016         (configdoc.texi): Don't set top_srcdir.
1017         * ld.texinfo: Don't use top_srcdir.
1018         * aclocal.m4, Makefile.in: Regenerated.
1020 2006-04-19  Alan Modra  <amodra@bigpond.net.au>
1022         * ldlang.c (wild): Tidy default_common_section loop.
1023         (print_input_section): Format.
1025         * configure: Regenerate.
1027 2006-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
1029         * po/POTFILES.in: Regenerated.
1031 2006-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
1033         * config.in: Regenerated.
1035 2006-04-14  David Heine  <dlheine@tensilica.com>
1036             Bob Wilson  <bob.wilson@acm.org>
1038         * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
1039         function to strip inconsistent linkonce sections.
1040         (input_section_linked_worker, input_section_linked): New.
1041         (is_inconsistent_linkonce_section): New.
1042         (xtensa_strip_inconsistent_linkonce_sections): New.
1044 2006-04-11  Diego Pettenò  <flameeyes@gentoo.org>
1046         * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
1047         and Dragonfly targets.
1048         * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
1049         * Makefile.am (HFILES): Add elf-hints-local.h.
1050         * elf-hints-local.h: New file.
1051         * Makefile.in: Regenerate.
1052         * configure: Regenerate.
1054 2006-04-07  Bernhard Fischer  <aldot@gcc.gnu.org>
1056         * ld.texinfo: Fix typo in documentation of --check-sections.
1058 2006-04-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1060         * ldlang.c (load_symbols): Set as_needed and add_needed according
1061         to the corresponding script's fields while processing it.
1063 2006-04-06  Carlos O'Donell  <carlos@codesourcery.com>
1065         * Makefile.am: Add install-html, install-html-am, and
1066         install-html-recursive targets.
1067         * Makefile.in: Regenerate.
1068         * configure.in: AC_SUBST datarootdir, docdir, htmldir.
1069         * configure: Regenerate.
1070         * po/Make-in: Add install-html target.
1072 2006-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1074         * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
1075         link_info.need_relax_finalize.
1077         * ldlang.c (relax_sections): New.
1078         (lang_process): Use. Call relax_sections link_info.relax_pass
1079         times.
1081         * ldmain.c (main): Set link_info.relax_pass to 1. Remove
1082         link_info.need_relax_finalize.
1084 2006-04-05  Alan Modra  <amodra@bigpond.net.au>
1086         * Makefile.am (GENSCRIPTS): Pass prefix.
1087         * Makefile.in: Regenerate.
1088         * genscripts.sh: Adjust for extra parameter.
1089         * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
1090         exists.
1091         (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
1092         * NEWS: Update.
1094 2006-04-05  Richard Sandiford  <richard@codesourcery.com>
1095             Daniel Jacobowitz  <dan@codesourcery.com>
1097         * configure.tgt (sparc*-*-vxworks*): New stanza.
1098         * emulparams/elf32_sparc_vxworks.sh: New file.
1099         * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
1100         (eelf32_sparc_vxworks.c): New rule.
1101         * Makefile.in: Regenerate.
1103 2006-04-04  Eric Botcazou  <ebotcazou@adacore.com>
1105         * ldlang.c (lang_map): Print the list of discarded input sections.
1106         (print_input_section): Change parameter and print zero-sized sections.
1107         (print_statement): Adjust call to print_input_section.
1109 2006-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
1111         * deffilep.y (def_image_name): If LIBRARY or NAME statement
1112         specifies an empty string, retain the name specified on command
1113         line.
1114         * ld.texinfo: Document above.
1116 2006-03-31  Jakub Jelinek  <jakub@redhat.com>
1118         * ldmisc.c (vfinfo): Revert 2005-10-05 changes.  If
1119         bfd_find_nearest_line succeeded for %C or %D, but filename
1120         is NULL, print section+offset at the end.
1122 2006-03-25  Bernd Schmidt  <bernd.schmidt@analog.com>
1124         * emulparams/elf32bfinfd.sh: New file.
1125         * emultempl/bfin.em: Delete.
1126         * emulparams/bfin.sh: Lose reference to bfin.em.
1127         * Makefile.am (eelf32bfin.c): Likewise.
1128         (eelf32bfinfd.c): New.
1129         * Makefile.in: Regenerate.
1130         * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
1131         targ_extra_emuls.
1133 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
1134             Daniel Jacobowitz  <dan@codesourcery.com>
1135             Phil Edwards  <phil@codesourcery.com>
1136             Zack Weinberg  <zack@codesourcery.com>
1137             Mark Mitchell  <mark@codesourcery.com>
1138             Nathan Sidwell  <nathan@codesourcery.com>
1140         * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
1141         separate VxWorks emulations.
1142         * emulparams/elf32ebmipvxworks.sh: New file.
1143         * emulparams/elf32elmipvxworks.sh: New file.
1144         * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
1145         eelf32elmipvxworks.o.
1146         (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
1147         * Makefile.in: Regenerate.
1149 2006-03-16  Alan Modra  <amodra@bigpond.net.au>
1151         PR 2434
1152         * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
1153         * ldlang.c (output_statement_table_init, lang_init): Likewise.
1154         * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
1155         (undefined_symbol): Likewise.
1157 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
1158             Daniel Jacobowitz  <dan@codesourcery.com>
1159             Zack Weinberg  <zack@codesourcery.com>
1160             Nathan Sidwell  <nathan@codesourcery.com>
1161             Paul Brook  <paul@codesourcery.com>
1162             Ricardo Anguiano  <anguiano@codesourcery.com>
1163             Phil Edwards  <phil@codesourcery.com>
1165         * emulparams/armelf_vxworks.sh: Include vxworks.sh.
1166         (MAXPAGESIZE): Define.
1167         * emulparams/vxworks.sh: Undefine EMBEDDED.
1168         * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
1169         * Makefile.in: Regenerate.
1171 2006-03-03  Bjoern Haase  <bjoern.m.haase@web.de>
1173         * scripttempl/avr.sc:  Add *(.jumptables) *(.lowtext) sections.
1174         Add KEEP() directives.
1175         Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
1176         .bss output sections.
1178 2006-03-03  Richard Sandiford  <richard@codesourcery.com>
1180         * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
1181         (EXTRA_EM_FILE): Define.
1182         * emultempl/vxworks.em: New file.
1183         * ld.texinfo (--force-dynamic): Document.
1184         * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
1185         on vxworks.em.
1186         * Makefile.in: Regenerate.
1188 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
1190         * emulparams/elf32ppccommon.sh: New file, extracted from...
1191         * emulparams/elf32ppc.sh: ...here.
1192         * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
1193         instead of elf32ppc.sh.
1194         (BSS_PLT): Remove override.
1195         * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
1196         (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
1197         (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
1198         (eelf32ppclinux.c): Likewise.
1199         (eelf32ppcvxworks.c): Likewise.  Add missing vxworks.sh dependency.
1200         * Makefile.in: Regenerate.
1202 2006-02-27  Carlos O'Donell  <carlos@codesourcery.com>
1204         * Makefile.am: Add html target.
1205         * Makefile.in: Regenerate.
1206         * po/Make-in: Add html target.
1208 2006-02-17  Shrirang Khisti  <shrirangk@kpitcummins.com>
1209             Anil Paranjape   <anilp1@kpitcummins.com>
1210             Shilin Shakti    <shilins@kpitcummins.com>
1212         * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
1213         * scripttemp/elf32xc16xl.sc: Default linker script for large model.
1214         * scripttemp/elf32xc16xs.sc: Default linker script for small model.
1215         * emulparams/elf32xc16x.sh: Emulation script for tiny model.
1216         * emulparams/elf32xc16xl.sh: Emulation script for large model.
1217         * emulparams/elf32xc16xs.sh: Emulation script for small model.
1218         * Makefile.am: Add entry to make xc16x target.
1219         * Makefile.in: Regenerate.
1220         * configure.tgt: Specify default and other emulation parameters
1221         for xc16x.
1222         * NEWS: Announce the support for the new target.
1224 2006-02-16  Nick Hudson  <nick.hudson@dsl.pipex.com>
1226         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1227         Use the traditional target.
1229 2006-02-13  Joseph S. Myers  <joseph@codesourcery.com>
1231         * configure.tgt (arm*b-*-linux-gnueabi): Change to
1232         arm*b-*-linux-*eabi.
1233         (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
1235 2006-02-08  H.J. Lu  <hongjiu.lu@intel.com>
1237         PR ld/2290
1238         * NEWS: Updated for the Linux linker search order change.
1240         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
1241         gld${EMULATION_NAME}_check_ld_so_conf before checking default
1242         search directories for DT_NEEDED entries.
1244 2006-02-07  Paul Brook  <paul@codesourcery.com>
1246         * emultempl/armelf.em: Include elf/arm.h.
1247         (arm_elf_finish): Set low address bit if enty point is a Thumb
1248         function.
1250 2006-02-01  Danny Smith  <dannysmith@users.sourceforge.net>
1252         * deffilep.y (def_image_name): If the image name does not have
1253         a suffix, append the default.
1254         * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
1256 2006-01-31  Danny Smith  dannysmith@users.sourceforge.net
1258         * NEWS: Mention support for forward exports in PE-COFF dll's.
1259         * ld.texinfo: Expand documentation of EXPORT statements in
1260         PE-COFF .def files.
1262 2006-01-31  Filip Navara  <navaraf@reactos.com>
1264         * deffile.h (struct def_file_export): Add field flag_forward.
1265         * pe-dll.c (process_def_file): Check for forward exports.
1266         (generate_edata): Generate forward export symbols.
1267         (fill_edata): Emit them.
1269         * pe-dll.c (process_def_file): Don't crash on malformed
1270         fastcall symbol names in .def file.
1272 2006-01-30  Nick Clifton  <nickc@redhat.com>
1274         * po/vi.po: Updated Vietnamese translation.
1276 2006-01-27  Yitzchak Scott-Thoennes  <sthoenna@efn.org>
1278         * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
1279         file:" as informational message, not a warning.
1281 2006-01-18  Roger Sayle  <roger@eyesopen.com>
1283         * emultempl/irix.em: Use lbasename instead of basename.
1285 2006-01-16  Nick Clifton  <nickc@redhat.com>
1287         * po/zh_CN.po: New Chinese (simplified) translation.
1288         * configure.in (ALL_LINGUAS): Add "zh_CH".
1289         * configure: Regenerate.
1291 2006-01-16  Bernhard Fischer  <aldot@gcc.gnu.org>
1293         * ld.texinfo (Options): Fix typo.
1295 For older changes see ChangeLog-2005
1297 Local Variables:
1298 mode: change-log
1299 left-margin: 8
1300 fill-column: 74
1301 version-control: never
1302 End: