2007-01-01 Mike Stump <mrs@apple.com>
[binutils.git] / ld / ChangeLog
blob60e2d79a452dd4e20ded5252f7e24688a006e683
1 2007-01-02  Alan Modra  <amodra@bigpond.net.au>
3         * pe-dll.c: Include pe-dll.h.
4         * pep-dll.c (pe_bfd_is_dll): Define.
6 2006-12-23  Kazu Hirata  <kazu@codesourcery.com>
8         * configure.tgt: Recognize fido.
10 2006-12-18  Pedro Alves  <pedro_alves@portugalmail.pt>
12         * pe-dll.c (pe_bfd_is_dll): New function.
13         * pe-dll.h (pe_bfd_is_dll): Declare.
14         * emultempl/pe.em (gld_${EMULATION_NAME}_recognized_file): Recognize
15         dlls using pe_bfd_is_dll instead of using the filename extension.
17 2006-12-15  Ulrich Weigand  <uweigand@de.ibm.com>
19         * configure.tgt (NATIVE_LIB_DIRS): Specify for spu-*-elf*.
21 2006-12-12  Daniel Jacobowitz  <dan@codesourcery.com>
23         * Makefile.am (ld_TEXINFOS): Set.
24         (ld.info ld.dvi ld.html): Delete rule.
25         * Makefile.in: Regenerated.
27 2006-12-12  Ina Pandit  <inap@kpitcummins.com>
29         * ldlang.c (print_output_section_statement): Print load address
30         when lma differs from vma.
32 2006-12-11  Daniel Jacobowitz  <dan@codesourcery.com>
34         * configure.in: Define GENINSRC_NEVER.
35         * doc/Makefile.am (ld.info): Remove srcdir prefix.
36         (MAINTAINERCLEANFILES): Add info file.
37         (DISTCLEANFILES): Pretend to add info file.
38         * po/Make-in (.po.gmo): Put gmo files in objdir.
39         * configure, Makefile.in: Regenerated.
41 2006-12-04  Jan Beulich  <jbeulich@novell.com>
43         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Create
44         .eh_frame_hdr section here.
46 2006-11-27  Ian Lance Taylor  <ian@airs.com>
48         * Makefile.am (EXTRA_DIST): Put spu_ovl.o in the emultempl
49         subdirectory.
50         * Makefile.in: Regenerate.
52 2006-11-27  Bob Wilson  <bob.wilson@acm.org>
54         * emultempl/xtensaelf.em (XSHAL_ABI): Add default definition.
55         (replace_insn_sec_with_prop_sec): Use bfd_make_section_with_flags.
56         Delete redundant code to set sections flags and alignment.
57         (xt_config_info_unpack_and_check, check_xtensa_info): New.
58         (elf_xtensa_after_open): Iterate over input statements instead of
59         link_info.input_bfds.
60         (elf_xtensa_before_allocation): Likewise.  Call check_xtensa_info for
61         each input, and write a new .xtensa.info section in the output.
63 2006-11-22  Nick Clifton  <nickc@redhat.com>
65         * configure.in (LINGUAS): Add ga.
66         * po/ga.po: New Irish translation.
68 2006-11-20  H.J. Lu  <hongjiu.lu@intel.com>
70         * ld.texinfo: Fix a typo.
72 2006-11-20  Alan Modra  <amodra@bigpond.net.au>
74         * emulparams/elf32_spu.sh (OTHER_SECTIONS): Define.
76 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
78         * emultempl/armelf.em (arm_elf_before_allocation): Only call
79         bfd_elf32_arm_process_before_allocation if no dynamic sections.
81 2006-11-08  Alan Modra  <amodra@bigpond.net.au>
83         * emultempl/elf32.em (gld*_before_allocation): Adjust output section
84         size for warning sections.
86 2006-11-06  Vladimir Prus  <vladimir@codesourcery.com>
88         * emultempl/elf32.em (gld*_before_allocation): Don't prepend
89         "warning" to the message.
91 2006-10-31  Pedro Alves  <pedro_alves@portugalmail.pt>
93         * pe-dll.c (autofilter_entry_type): Change name to const.
94         (pe_details_type) : Change target_name, object_target and
95         autofilter_symbollist to const.
96         (autofilter_symbollist_generic): Change to const.
97         (autofilter_symbollist_i386, pe_detail_list, pe_details,
98         autofilter_liblist, autofilter_objlist autofilter_symbolprefixlist,
99         autofilter_symbolsuffixlist): Likewise.
100         (is_import): Fix indentation.
101         (auto_export): Change afptr to const.  Move name declaration to
102         beginning of scope.
103         (make_tail): Clear undefined byte.
104         (jmp_ix86_bytes, jmp_sh_bytes, jmp_mips_bytes, jmp_arm_bytes): Change
105         to const.
106         (make_one): Change jmp_bytes to const.  Make idata$6 member size
107         arithmetic explicit and add comment.
109 2006-10-30  H.J. Lu  <hongjiu.lu@intel.com>
111         PR ld/3111
112         * ld.h (args_type): Remove reduce_memory_overheads.
114         * ldlang.c (lang_map): Updated.
115         (section_already_linked): Likewise.
116         (print_input_section): Likewise.
117         * ldmain.c (main): Likewise.
118         * lexsup.c (parse_args): Likewise.
120 2006-10-29  Pedro Alves  <pedro_alves@portugalmail.pt>
122         * pe-dll.c (make_singleton_name_thunk): Re-add the NULL terminator.
124 2006-10-27  Alan Modra  <amodra@bigpond.net.au>
126         * ldlang.c (lang_map): Don't say SEC_LINKER_CREATED and SEC_KEEP
127         sections have been discarded.
128         (lang_do_version_exports_section): Set SEC_KEEP on export section.
129         * emultempl/elf32.em (before_allocation): Set SEC_KEEP on warning
130         sections.
132 2006-10-26  Joseph S. Myers  <joseph@codesourcery.com>
133             Mark Mitchell  <mark@codesourcery.com>
135         * configure.tgt (arm*linux*): Support both big- and little-endian.
137 2006-10-25  H.J. Lu  <hongjiu.lu@intel.com>
139         * emulparams/hppa64linux.sh (LARGE_SECTIONS): Renamed to ...
140         (OTHER_BSS_SECTIONS): This.
141         * scripttempl/elf.sc (OTHER_BSS_SECTIONS): Support LARGE_SECTIONS.
142         (LARGE_SECTIONS): Move .lbss sections to OTHER_BSS_SECTIONS.
144 2006-10-25  Alan Modra  <amodra@bigpond.net.au>
145             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
146             Yukishige Shibata  <shibata@rd.scei.sony.co.jp>
147             Nobuhisa Fujinami  <fnami@rd.scei.sony.co.jp>
148             Takeaki Fukuoka  <fukuoka@rd.scei.sony.co.jp>
150         * emulparams/elf32_spu.sh: New file.
151         * emultempl/spu_inc.s: New file.
152         * emultempl/spu_ovl.S: New file.
153         * emultempl/spu_ovl.o: New file.
154         * emultempl/spuelf.em: New file.
155         * Makefile.am: Add SPU support.
156         * configure.tgt: Likewise.
157         * ldlang.c (load_symbols): Make global.
158         * ldlang.h (load_symbols): Declare.
159         * scripttempl/elf.sc (OTHER_BSS_SECTIONS): Add.
160         * Makefile.in: Regenerate.
162 2006-10-24  Ben Elliston  <bje@au.ibm.com>
164         * lexsup.c (parse_args): Add a comment noting a fall-through.
166 2006-10-24  H.J. Lu  <hongjiu.lu@intel.com>
168         * configure.in (AC_CHECK_HEADERS): Add limits.h and sys/param.h.
169         * configure: Regenerated.
170         * config.in: Likewise.
172 2006-10-23  Alan Modra  <amodra@bigpond.net.au>
174         * emulparams/h8300elf.sh (TINY_DATA_SECTION, TINY_BSS_SECTION): Don't
175         set section address on a relocatable link.
177         * ld.texinfo (Output Section Discarding): Fix xref.
179 2006-10-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
181         * emulparams/shelf32.sh: Set default stack to 0x80000.
182         * emulparams/shelf64.sh: Likewise.
184 2006-10-20  Richard Sandiford  <richard@codesourcery.com>
186         * emulparams/elf32bmip.sh (OTHER_GOT_RELOC_SECTIONS): Define.
187         * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_RELOC_SECTIONS): Likewise.
189 2006-10-19  Alan Modra  <amodra@bigpond.net.au>
191         * emultempl/armelf.em (arm_elf_before_allocation): Run
192         gld${EMULATION_NAME}_before_allocation later.
193         * ldlang.c (lang_size_sections_1): Revert 2006-09-15 change.
195 2006-10-18  Roy Marples  <uberlord@gentoo.org>
197         * emulparams/elf64_sparc_fbsd.sh (OUTPUT_FORMAT): Define as
198         elf64-sparc-freebsd.
200 2006-10-18  Joseph Myers  <joseph@codesourcery.com>
202         * configure.tgt (i[3-7]86-*-linux-*): Also define
203         targ_extra_libpath in want64 case.
204         * emulparams/elf_x86_64.sh: Handle i[3-7]86-*-linux-* the same as
205         x86_64*-linux*.
207 2006-10-17  Alan Modra  <amodra@bigpond.net.au>
209         * scripttempl/elf.sc (INTERP): Delete.  Move definition to..
210         (INITIAL_READONLY_SECTIONS): ..here.
211         * emulparams/criself.sh (INITIAL_READONLY_SECTIONS): Include .interp.
212         * emulparams/elf32bmip.sh (INITIAL_READONLY_SECTIONS): Ditto.
213         * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Ditto.
215 2006-10-17  Alan Modra  <amodra@bigpond.net.au>
217         * ldlang.c (strip_excluded_output_sections): Do strip sections
218         that define syms, but don't ignore them.
219         * ld.texinfo (Output Section Discarding): Revise.
220         * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Always call
221         finish_default.
223 2006-10-16  Richard Sandiford  <richard@codesourcery.com>
225         * Makefile.am (eelf64bmip.c): Depend on emulparams/elf64bmip-defs.sh.
226         (eelf64btsmip.c, eelf64ltsmip.c): Likewise.
227         * Makefile.in: Regenerate.
228         * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Include
229         .reginfo rather than .MIPS.options.
230         * emulparams/elf64bmip-defs.sh: New file.
231         * emulparams/elf64bmip.sh: Include it.
232         (COMMONPAGESIZE): Delete.
233         * emulparams/elf64btsmip.sh: As for elf64bmip.sh.
235 2006-10-12  Bob Wilson  <bob.wilson@acm.org>
237         * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Check
238         for linkonce XCC exception tables (".e" and ".h").
240 2006-10-11  Bob Wilson  <bob.wilson@acm.org>
242         * emulparams/elf32xtensa.sh (TEXT_PLT): Enable.
243         (OTHER_READONLY_SECTIONS): Add linkonce .xt_except_table sections.
244         (OTHER_READWRITE_SECTIONS): Add linkonce .xt_except_desc sections.
245         (OTHER_SDATA_SECTIONS): New.
246         * scripttempl/elfxtensa.sc: Import changes from elf.sc.
248 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
250         * ldlang.c (lang_append_dynamic_list): When appending, add all elements
251         of the dynamic list rather than just the first entry.
253 2006-10-10  Bob Wilson  <bob.wilson@acm.org>
255         * emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable.
257 2006-10-06  Mike Frysinger  <vapier@gentoo.org>
259         * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
261 2006-10-04  Bob Wilson  <bob.wilson@acm.org>
263         * emulparams/xtensa-config.sh: Delete file.
264         * emulparams/elf32xtensa.sh: Set MAXPAGESIZE here instead of including
265         xtensa-config.sh.
266         * Makefile.am (eelf32xtensa.c): Remove dependency on xtensa-config.sh.
267         * Makefile.in: Regenerate.
269 2006-10-03  Pedro Alves  <pedro_alves@portugalmail.pt>
271         * pe-dll.c : Fix typo.
272         (autofilter_symbolprefixlist) : Remove __imp_.
273         (is_import) : New.
274         (auto-export) : Remove  re-import check. Moved to callers.
275         (process_def_file) : Check is symbol is an import. Always
276         underscore __imp_.
277         Only skip underscore on underscored targets.
278         (make_one) : Always underscore __imp_.
279         (pe_create_runtime_relocator_reference) : Only underscore
280         _pei386_runtime_relocator on underscored targets.
281         (pe_process_import_defs) : Always underscore __imp_.
282         * pe.em (U) : New macro.
283         (set_pe_subsystem) : Remove underscore from _WinMainCRTStartup
284         on wince subsystem case.
285         (pe_find_data_imports) : Use U on "_head_".
286         (gld_${EMULATION_NAME}_unrecognized_file) : Use U.
288 2006-09-26  H.J. Lu  <hongjiu.lu@intel.com>
290         PR ld/3223
291         PR ld/3267
292         * ld.texinfo: Updated Output Section Discarding.
294         * ldlang.h (lang_output_section_statement_type): Add
295         section_relative_symbol.
296         * ldlang.c (strip_excluded_output_sections): Don't strip a
297         section with a symbol relative to it.
298         (lang_size_sections_1): Mark if an output section has a symbol
299         symbol relative to it.
301 2006-09-25  Bob Wilson  <bob.wilson@acm.org>
303         * ld.texinfo (Options): Update description of local symbols for -X.
305 2006-09-23  H.J. Lu  <hongjiu.lu@intel.com>
307         PR ld/3249
308         * scripttempl/elf.sc: Don't combine .gnu.linkonce.d.*personality*
309         and .gnu.linkonce.wi.* sections with .data and .debug_info for
310         relocatable link.
312 2006-09-20  Kai Tietz  <Kai.Tietz@onevision.com>
314         * configure.in: Add new target x86_64-pc-mingw64.
315         * configure: Regenerate.
316         * configure.tgt: Add definition of target emulation i386pep.
317         * Makefile.am: Add new target files for target-all.
318         * Makefile.in: Regenerate.
319         * pe-dll.c: Adjust to be inheritable by pep_dll.c as include.
320         Fix memory out of bounds excess for idata relocation section data.
321         * pep-dll.c: Add target specific shared object handling.
322         * pep-dll.h: Add target specific definitions for shared object handling.
323         * emulparams/i386pep.sh: Add new emulation params for target x86_64 coff.
324         * emultempl/pep.em: Add new emulation file for target x86_64 coff.
325         * po/POTFILES.in: Regenerate.
326         * scripttempl/pep.sc: Add linker script template for target x86_64 coff.
327         * NEWS: Mention new target.
329 2006-09-18  Thiemo Seufer  <ths@networkno.de>
331         * configure.tgt: Add mips*el-sde-elf* and mips*-sde-elf*
332         configurations.
334 2006-09-17  Mei Ligang  <ligang@sunnorth.com.cn>
336         * emulparams/scoreelf.sh: New file.
337         * emultempl/scoreelf.em: New file.
338         * Makefile.am: Add Score files.
339         * Makefile.in: Regenerate.
340         * configure.tgt: Add Score target.
341         * NEWS: Mention new target support.
343 2006-09-16  Nick Clifton  <nickc@redhat.com>
344             Pedro Alves  <pedro_alves@portugalmail.pt>
346         * ldctor.c: Make use of new STRING_COMMA_LEN and CONST_STRNEQ
347         macros defined in bfd.h.
348         * ldmain.c: Likewise.
349         * ldwrite.c: Likewise.
350         * lexsup.c: Likewise.
351         * pe-dll.c: Likewise.
352         * emultempl/aix.em: Likewise.
353         * emultempl/beos.em: Likewise.
354         * emultempl/elf32.em: Likewise.
355         * emultempl/pe.em: Likewise.
356         * emultempl/sunos.em: Likewise.
357         * emultempl/xtensaelf.em: Likewise.
359 2006-09-15  Nick Clifton  <nickc@redhat.com>
361         PR ld/3107
362         * ldlang.c (lang_size_sections_1): Do not abort when encountering
363         a non-empty section that is ignored.  Instead produce a warning
364         message.
366 2006-09-08  H.J. Lu  <hongjiu.lu@intel.com>
368         * ld.texinfo: Document --dynamic-list-cpp-typeinfo.
370 2006-09-07  H.J. Lu  <hongjiu.lu@intel.com>
372         * Makefile.am (CXX): Set to g++.
373         (CXX_FOR_TARGET): Likewise.
374         * Makefile.in: Regenerated.
376         * NEWS: Mention --dynamic-list.
378         * ld.texinfo: Document --dynamic-list.
380         * ldgram.y: Support dynamic list.
382         * ldlang.c (lang_process): Call lang_finalize_version_expr_head
383         on link_info.dynamic if needed.
384         (lang_append_dynamic_list): New.
385         (lang_append_dynamic_list_cpp_typeinfo): New.
386         * ldlang.h (lang_append_dynamic_list): Likewise.
387         * ldlang.h (lang_append_dynamic_list_cpp_typeinfo): Likewise.
389         * ldlex.h (input_enum): Add input_dynamic_list.
390         * ldlex.l: Handle it.
392         * ldmain.c (main): Initialize link_info.dynamic.
394         * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST and
395         OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
396         (ld_options): Add entries for OPTION_DYNAMIC_LIST and
397         OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
398         (parse_args): Handle OPTION_DYNAMIC_LIST and
399         OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
401 2006-09-07  Joel Sherrill <joel.sherrill@oarcorp.com>
403         * emulparams/h8300elf.sh: _tinydata should not be placed in
404         relocatables.
405         * emulparams/h8300.sh: Likewise.
406         * emulparams/h8300sxelf.sh: Likewise.
408 2006-09-05  H.J. Lu  <hongjiu.lu@intel.com>
410         PR ld/3015
411         * emultempl/elf32.em: Enable "-z relro" only if $COMMONPAGESIZE
412         is defined.
414 2006-08-29  Nathan Sidwell  <nathan@codesourcery.com>
416         * ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.
418 2006-08-28  Alan Modra  <amodra@bigpond.net.au>
420         * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
421         not match random object files in a path containing "crtbegin" or
422         "crtend" as part of a directory name.
423         * scripttempl/armbpabi.sc: Likewise.
424         * scripttempl/crisaout.sc: Likewise.
425         * scripttempl/elf32crx.sc: Likewise.
426         * scripttempl/elf32sh-symbian.sc: Likewise.
427         * scripttempl/elf_chaos.sc: Likewise.
428         * scripttempl/elfd10v.sc: Likewise.
429         * scripttempl/elfd30v.sc: Likewise.
430         * scripttempl/elfxtensa.sc: Likewise.
431         * scripttempl/iq2000.sc: Likewise.
432         * scripttempl/mmo.sc: Likewise.
433         * scripttempl/xstormy16.sc: Likewise.
435 2006-08-24  Bob Wilson  <bob.wilson@acm.org>
437         * emulparams/elf32xtensa.sh (.xt.prop): Add .xt.prop.*.
438         * scripttempl/elfxtensa.sc (.text): Add .literal.*.
440 2006-08-24  Pedro Alves  <pedro_alves@portugalmail.pt>
442         * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
443         Adjust the current address of DEFAULT_MEMORY_REGION even
444         when dot hasn't changed.
446 2006-08-23  Alan Modra  <amodra@bigpond.net.au>
448         * ldexp.c (fold_name <LOADADDR>): Return an absolute value
449         rather than a section relative value.
451 2006-08-22  Alan Modra  <amodra@bigpond.net.au>
453         * NEWS: Mention LMA default change.
454         * ld.texinfo (Output Section LMA): Update default description.
455         (Location Counter): Clarify backward movement.
456         * ldlang.c (lang_size_sections_1): Leave non-alloc sections with
457         default lma equal to vma.  Warn on backward movement of dot.
459 2006-08-22  Pedro Alves  <pedro_alves@portugalmail.pt>
461         * configure.tgt: Set targ_emul to arm_wince_pe for ARM
462         Windows CE targets.
464 2006-08-22  Pedro Alves  <pedro_alves@portugalmail.pt>
466         * Makefile.am: Split arm-wince into its own emulation.
467         * Makefile.in: Regenerate.
468         * pe-dll.c : Define PE_ARCH_arm_wince.
469         (pe_detail_list): Add PE_ARCH_arm_wince case.
470         (make_one): Handle PE_ARCH_arm_epoc and PE_ARCH_arm_wince cases.
471         * emulparams/arm_wince_pe.sh: New file.
472         * emultempl/pe.em: Handle new TARGET_IS_arm_wince_pe define.
473         Remap bfd_arm_allocate_interworking_sections,
474         bfd_arm_get_bfd_for_interworking and
475         bfd_arm_process_before_allocation for arm-pe and arm-wince-pe
476         targets too.
477         (gld_${EMULATION_NAME}_recognized_file): Handle arm-wince and
478         arm-epoc bfd format names.
480 2006-08-18  Paul Brook  <paul@codesourcery.com>
482         * emultempl/armelf.em (arm_elf_before_allocation): Call
483         gld${EMULATION_NAME}_before_allocation after setting interworking bfd.
485 2006-08-17  Pedro Alves  <pedro_alves@portugalmail.pt>
487         * pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
488         (generate_reloc): Revert to skipping sections without a SEC_LOAD flag,
489         and to not skipping .idata* sections.
491 2006-08-16  Alan Modra  <amodra@bigpond.net.au>
493         PR 3052
494         * ldlang.h (lang_output_section_statement_type): Replace
495         "processed" field with "processed_vma" and "processed_lma".
496         * ldlang.c (lang_do_assignments_1): Move lma setting code..
497         (lang_size_sections_1): ..to here.
498         (lang_reset_memory_regions): Adjust for
499         lang_output_section_statement_type change.
500         * ldexp.c (fold_name): Likewise.
502 2006-08-08  Peter S. Mazinger  <ps.m@gmx.net>
504         * emulparams/armelf.sh (MAXPAGESIZE): Changed to
505         "CONSTANT (MAXPAGESIZE)".
507 2006-08-08  H.J. Lu  <hongjiu.lu@intel.com>
509         PR ld/3006
510         * ldlang.c (lang_section_bst_type): Moved to ...
511         * ldlang.h: Here.
513         * ldlang.h (lang_wild_statement_struct): Add a tree field.
515         * ldlang.c (wild_sort_fast): Use the tree field for BST.
516         (wild): Likeise.
517         (analyze_walk_wild_section_handler): Initialize the tree field.
519 2006-08-08  H.J. Lu  <hongjiu.lu@intel.com>
521         PR ld/3009
522         * ldlang.c (update_wild_statements): Update the whole wild
523         section list.
525 2006-08-04  Nick Clifton  <nickc@redhat.com>
526             Mike Frysinger  <michael.frysinger@analog.com>
528         * scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
529         (__preinit_array_start, __preinit_array_end, __init_array_start,
530         __init_array_end, __fini_array_start, __fini_array_end, edata, end):
531         Use ${USER_LABEL_PREFIX}.
532         * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
533         (USER_LABEL_PREFIX): Set.
535 2006-08-04  Marcelo Tosatti  <marcelo@kvack.org>
537         * ldmain.c (main): Initialise print_gc_sections field of link_info
538         structure.
539         * lexsup.c: Add --print-gc-sections and --no-print-gc-sections
540         switches.
541         * ld.texinfo: Document new switches.
542         * NEWS: Mention new switches.
544 2006-08-04  Richard Sandiford  <richard@codesourcery.com>
545             Kazu Hirata  <kazu@codesourcery.com>
546             Phil Edwards  <phil@codesourcery.com>
548         * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
549         eshlelf_vxworks.o.
550         (eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
551         * Makefile.in: Regenerate.
552         * configure.tgt (sh-*-vxworks): Use shelf_vxworks and
553         shlelf_vxworks.
554         * emulparams/shelf_vxworks.sh: New file.
555         * emulparams/shlelf_vxworks.sh: Likewise.
556         * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
557         (OTHER_END_SYMBOLS): Likewise _ehdr.
558         (DATA_END_SYMBOLS): Likewise _edata.
559         * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
560         is indeed an ELF file before dealing with --force-dynamic.
562 2006-08-02  Petr Salinger  <Petr.Salinger@seznam.cz>
564         PR binutils/2983
565         * emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as
566         elf64-x86-64-freebsd.
568 2006-08-01  H.J. Lu  <hongjiu.lu@intel.com>
570         * ldlang.c (init_os): Add flags. Replace bfd_make_section with
571         bfd_make_section_with_flags.
572         (exp_init_os): Updated.
573         (lang_add_section): Call init_os with flags.
574         (map_input_to_output_sections): Likewise.
576 2006-07-29  Richard Sandiford  <richard@codesourcery.com>
578         * Makefile.am (eelf32b4300.c): Update dependencies.
579         (eelf32bmip.c): Likewise.
580         (eelf32bsmip.c): Likewise.
581         (eelf32btsmip.c): Likewise.
582         (eelf32btsmipn32.c): Likewise.
583         (eelf32ltsmip.c): Likewise.
584         (eelf32ltsmipn32.c): Likewise.
585         (eelf32ebmip.c): Likewise.
586         (eelf32ebmipvxworks.c): Likewise.
587         (eelf32elmip.c): Likewise.
588         (eelf32elmipvxworks.c): Likewise.
589         (eelf32bmipn32.c): Likewise.
590         (eelf32lmip.c): Likewise.
591         (eelf32mipswindiss.c): Likewise.
592         (eelf32lsmip.c): Likewise.
593         (eelf64bmip.c): Likewise.
594         (eelf64btsmip.c): Likewise.
595         (eelf64ltsmip.c): Likewise.
596         (emipsbig.c): Likewise.  Canonicalize ${GENSCRIPTS} line.
597         (emipsbsd.c): Likewise.
598         (emipsidt.c): Update dependencies.
599         (emipsidtl.c): Likewise.
600         (emipslit.c): Likewise.
601         (emipslnews.c): Likewise.
602         (emipspe.c): Likewise.  Fix ${GENSCRIPTS} invocation.
603         * Makefile.in: Regenerate.
604         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
605         * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
606         * emultempl/irix.em: Include emultempl/mipself.em.
607         * emultempl/mipself.em: New file.
609 2006-07-26  Alan Modra  <amodra@bigpond.net.au>
611         * emultempl/elf-generic.em (map_segments): Reorganise loop so that
612         layout happens before segment map.  Don't do segment map on
613         relocatable link.
615 2006-07-26  Alan Modra  <amodra@bigpond.net.au>
617         * ldexp.c (fold_name <LOADADDR>): Use the lma.
618         * ldlang.h (lang_memory_region_type): Delete old_length.  Add
619         last_os.
620         * ldlang.c (lang_memory_region_lookup): Init new field.
621         (lang_reset_memory_regions): Reset new field.
622         (lang_insert_orphan): Don't set load_base.
623         (lang_leave_overlay): Likewise.
624         (lang_size_sections_1): Delete unnecessary code setting lma_region
625         to region.  Correct lma region check.
626         (lang_do_assignments_1): Rename output_section_statement parm
627         to current_os.  Set lma from previous section in region.
629         * ldlang.c: Formatting.
631 2006-07-25  Bob Wilson  <bob.wilson@acm.org>
633         * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
634         Set discarded section's output_section to bfd_abs_section_ptr.
636 2006-07-26  Alan Modra  <amodra@bigpond.net.au>
638         * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
639         earlier.
641 2006-07-24  Bob Wilson  <bob.wilson@acm.org>
643         * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
644         in dep_sec_name for null terminator.  Make sure dep_sec_name has a
645         ".t" linkonce tag.
647 2006-07-14  Michael Wetherell  <mike.wetherell@ntlworld.com>
649         * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME):
650         Set for *-*-solaris2*.
652 2006-07-24  Ralk Wildenhues  <Ralf.Wildenhues@gmx.de>
654         * ld.texinfo: Fix spelling mistakes.
655         * ldint.texinfo: Likewise.
657 2006-07-23  Sonal Santan  <sonal.santan@xilinx.com>
659         * ldlang.c (lang_section_bst): New structure for sorting sections
660         by name.
661         (wild_sort_fast): New function: Insert a section into a binary
662         search tree.
663         (output_section_callback_fast): New function: Store a section in
664         BST.
665         (output_section_callback_tree_to_list): New function: Convert a
666         BST into a list.
667         (analyze_walk_wild_section_handler): Initialize handler_data
668         elements.
669         (wild): If the data is sorted by name use the BST method to sort
670         the names.
672 2006-07-19  Alan Modra  <amodra@bigpond.net.au>
674         * ld.h (handle_asneeded_cref): Declare.
675         * ldcref.c: Include objalloc.h.
676         (old_table, old_count, old_tab, alloc_mark): New variables.
677         (tabsize, entsize, refsize, old_symcount): Likewise.
678         (add_cref): Use bfd_hash_allocate for refs.
679         (handle_asneeded_cref): New function.
680         * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
682 2006-07-14  Michael Wetherell  <mike.wetherell@ntlworld.com>
684         * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
685         typo setting targ_extra_libpath.
687 2006-07-10  Jakub Jelinek  <jakub@redhat.com>
689         * scripttempl/elf.sc: Add .gnu.hash section.
690         * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
691         (gld${EMULATION_NAME}_add_options): Register --hash-style option.
692         (gld${EMULATION_NAME}_handle_option): Handle it.
693         (gld${EMULATION_NAME}_list_options): Document it.
694         * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
695         * ld.texinfo: Document --hash-style option.
697 2006-07-10  Nick Clifton  <nickc@redhat.com>
699         * po/zh_TW.po: New Chinese (traditional) translation.
700         * configure.in (ALL_LINGUAS): Add zh_TW.
701         * configure: Regenerate.
703 2006-07-07  Nick Clifton  <nickc@redhat.com>
705         PR ld/2874
706         * ld.texinfo: Remove "Using LD" from the title since it is
707         redundant.
709 2006-07-06  Mohammed Adnène Trojette  <adn@diwi.org>
711         PR ld/2877
712         * ld.texinfo: Fix spelling mistakes.
714 2006-06-27  Pedro Alves  <pedro_alves@portugalmail.pt>
715             Nick Clifton  <nickc@redhat.com>
717         * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
718         length of format strings in the libname_fmt[] array, rather than
719         relying upon a statically chosen value.  Adjust xmalloc call to
720         use this longest length.
722 2006-06-27  Nick Clifton  <nickc@redhat.com>
724         * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
725         -rpath-link.
727 2006-06-23  Daniel Jacobowitz  <dan@codesourcery.com>
729         * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
730         targ_extra_libpath.
732 2006-06-23  Pedro Alves <pedro_alves@portugalmail.pt>
734         * pe-dll.c (pe_details_type): Add new pointer for symbols list
735         autofilter.
736         (autofilter_symbollist): Split into autofilter_symbollist_generic
737         and autofilter_symbollist_i386.
738         (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
739         autofilter_symbollist_generic for all the others.
740         (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
741         cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
742         into autofilter_symbollist_i386.
743         (auto_export): Get autofilter_symbollist from pe_details.
745 2006-06-22  Nick Clifton  <nickc@redhat.com>
747         PR ld/2757
748         * emultempl/pe.em (gld_$_after_open): When reporting non PE format
749         output files mention the file name and the fact that it is an
750         output file.
752 2006-06-22  Danny Smith  <dannysmith@users.sourceforge.net>
754         * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
755         Restructure.  Add native "%s.lib" format to search list
756         * ld.texinfo (node WIN32): Update documentation on dynamic lib
757         search order. Add another reason for using import libs.
759 2006-06-21  Mark Shinwell  <shinwell@codesourcery.com>
761         * ldlang.c (lang_insert_orphan): Correctly handle the case where
762         the section is to end up after the section currently at the end
763         of the list in output_bfd.
765 2006-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
767         * emultempl/mmo.em: Improve comments.  Explain why there's
768         ELF-stuff here.
770 2006-06-21  Alan Modra  <amodra@bigpond.net.au>
772         * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
773         loop to ten iterations.  Throw away any previous linker generated
774         segment map.
775         * ldlang.c (lang_phdr_list): Make global.
776         * ldlang.h (lang_phdr_list): Declare.
777         * Makefile.am (ELF_GEN_DEPS): Define.  Use in emul deps.
778         * Makefile.in: Regenerate.
780 2006-06-20  Alan Modra  <amodra@bigpond.net.au>
782         * Makefile.am (ELF_DEPS): Define.  Use in emul file deps.  Fix
783         many ELF emul file deps that incorrectly said they needed elf32.em
784         instead of generic.em.  Add genelf.em as required.
785         * Makefile.in: Regenerate.
786         * ldlang.c (lang_process): Call ldemul_finish before
787         lang_check_section_addresses.
788         * emulparams/arcelf.sh: Generic elf target needs genelf.
789         * emulparams/d30v_e.sh: Likewise.
790         * emulparams/d30v_o.sh: Likewise.
791         * emulparams/d30velf.sh: Likewise.
792         * emulparams/elf32_dlx.sh: Likewise.
793         * emulparams/elf32_i860.sh: Likewise.
794         * emulparams/elf32fr30.sh: Likewise.
795         * emulparams/elf32frv.sh: Likewise.
796         * emulparams/elf32iq10.sh: Likewise.
797         * emulparams/elf32iq2000.sh: Likewise.
798         * emulparams/elf32mt.sh: Likewise.
799         * emulparams/mn10200.sh: Likewise.
800         * emulparams/or32.sh: Likewise.
801         * emulparams/or32elf.sh: Likewise.
802         * emulparams/pjelf.sh: Likewise.
803         * emulparams/msp430all.sh: Likewise.  Extract common entries.
804         * emulparams/pjlelf.sh: Include pjelf.sh.
805         * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
806         * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
807         * emultempl/elf-generic.em: New file.
808         * emultempl/genelf.em: New file.
809         * emultempl/elf32.em: Include elf-generic.em.
810         (gld${EMULATION_NAME}_layout_sections_again): Delete.
811         (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
812         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
813         (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish.  Call
814         gld${EMULATION_NAME}_map_segments.
815         (LDEMUL_FINISH): Update.
816         * emultempl/mmo.em: Correct comment.  Include elf-bfd.h and
817         source elf-generic.em.
818         (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
819         * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
820         (gld${EMULATION_NAME}_finish): Rename from ppc_finish.  Call
821         gld${EMULATION_NAME}_map_segments.
822         (LDEMUL_FINISH): Update.
824 2006-06-19  Alan Modra  <amodra@bigpond.net.au>
826         * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
828 2006-06-14  Kevin F. Quinn  <kevquinn@gentoo.org>
830         * ld.texinfo: Document new -z lazy option.
831         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
832         new option.
833         (gld${EMULATION_NAME}_list_options): Update help text.
835 2006-06-12  Fred Fish  <fnf@specifix.com>
837         * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
838         ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
839         generated by mips gcc.
841 2006-06-12  Thiemo Seufer  <ths@mips.com>
843         * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
844         Define.
846 2006-06-09  Alan Modra  <amodra@bigpond.net.au>
848         * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
849         * ldlang.c (struct out_section_hash_entry): Rename from
850         output_statement_hash_entry.  Delete output_section_statement_type
851         entry.  Add statement_union_type entry.  Adjust all users.
852         (output_section_statement_table): Rename from output_statement_table.
853         Adjust all users.
854         (output_section_statement_newfunc): Rename from
855         output_statement_newfunc.  Adjust all users.
856         (output_section_statement_table_init): Rename from
857         output_statement_table_init.  Adjust all users.
858         (output_section_statement_table_free): Rename from
859         output_statement_table_free.  Adjust all users.
861 2006-06-07  Joseph S. Myers  <joseph@codesourcery.com>
863         * po/Make-in (pdf, ps): New dummy targets.
865 2006-06-07  Alan Modra  <amodra@bigpond.net.au>
867         * ldlang.h (enum section_type): Delete dsect_section, copy_section,
868         info_section and overlay_section.  Add noalloc_section.
869         * ldlang.c (lang_add_section): Adjust.
870         * ldgram.y (type): Adjust.
872 2006-06-06  Alan Modra  <amodra@bigpond.net.au>
874         * ldlang.c (init_os): Whitespace.
875         (map_input_to_output_sections): Don't init_os for lang_input_section.
876         (print_all_symbols): Remove forward declaration.  Convert to ISO C.
878 2006-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
880         * po/Make-in (top_builddir): Define.
882 2006-06-05  Alan Modra  <amodra@bigpond.net.au>
884         * ldexp.c (exp_get_abs_int): Make error message the same as
885         others emitted in this file.
887 2006-06-05  Alan Modra  <amodra@bigpond.net.au>
889         * config.in: Regenerate.
891 2006-06-05  Alan Modra  <amodra@bigpond.net.au>
893         * ldlang.c (lookup_name): Delete dead code.  Remove FIXMEs.
895 2006-06-03  Alan Modra  <amodra@bigpond.net.au>
897         * emultempl/elf32.em (global_found): Make it a pointer.
898         (stat_needed, try_needed): Adjust.
899         (check_needed): Don't skip non-loaded as-needed entries.  Only
900         consider entries with both filename and the_bfd non-null.
901         (after_open): Try loading non-loaded as-needed libs to satisfy
902         DT_NEEDED libs.
904 2006-06-02  Joseph S. Myers  <joseph@codesourcery.com>
906         * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
907         * Makefile.in: Regenerate.
909 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
911         * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
912         and LIBINTL_DEP everywhere.
913         (INTLLIBS): Remove.
914         (INCLUDES): Use @INCINTL@.
915         * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
916         Remove local code for po/Makefile.
917         * Makefile.in, configure: Regenerated.
919 2006-05-30  H.J. Lu  <hongjiu.lu@intel.com>
921         * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
922         "CONSTANT (MAXPAGESIZE)".
923         * emulparams/armelf_nbsd.sh: Likewise.
924         * emulparams/armelf_vxworks.sh: Likewise.
925         * emulparams/armnto.sh: Likewise.
926         * emulparams/armsymbian.sh: Likewise.
927         * emulparams/crislinux.sh: Likewise.
928         * emulparams/elf32_i860.sh: Likewise.
929         * emulparams/elf32_i960.sh: Likewise.
930         * emulparams/elf32am33lin.sh: Likewise.
931         * emulparams/elf32bfinfd.sh: Likewise.
932         * emulparams/elf32bmipn32-defs.sh: Likewise.
933         * emulparams/elf32frvfd.sh: Likewise.
934         * emulparams/elf32i370.sh: Likewise.
935         * emulparams/elf32lppcnto.sh: Likewise.
936         * emulparams/elf32mcore.sh: Likewise.
937         * emulparams/elf32openrisc.sh: Likewise.
938         * emulparams/elf32ppcnto.sh: Likewise.
939         * emulparams/elf32ppcwindiss.sh: Likewise.
940         * emulparams/elf32vax.sh: Likewise.
941         * emulparams/elf32xc16x.sh: Likewise.
942         * emulparams/elf32xc16xl.sh: Likewise.
943         * emulparams/elf32xc16xs.sh: Likewise.
944         * emulparams/elf64_aix.sh: Likewise.
945         * emulparams/elf64hppa.sh: Likewise.
946         * emulparams/elf64mmix.sh: Likewise.
947         * emulparams/elf_i386_be.sh: Likewise.
948         * emulparams/elf_i386_chaos.sh: Likewise.
949         * emulparams/elf_i386_ldso.sh: Likewise.
950         * emulparams/hppa64linux.sh: Likewise.
951         * emulparams/hppalinux.sh: Likewise.
952         * emulparams/hppaobsd.sh: Likewise.
953         * emulparams/i386lynx.sh: Likewise.
954         * emulparams/i386moss.sh: Likewise.
955         * emulparams/i386nto.sh: Likewise.
956         * emulparams/i386nw.sh: Likewise.
957         * emulparams/m32relf_linux.sh: Likewise.
958         * emulparams/m68kpsos.sh: Likewise.
959         * emulparams/or32elf.sh: Likewise.
960         * emulparams/pjelf.sh: Likewise.
961         * emulparams/pjlelf.sh: Likewise.
962         * emulparams/ppclynx.sh: Likewise.
963         * emulparams/ppcnw.sh: Likewise.
964         * emulparams/shelf32_nbsd.sh : Likewise.
965         * emulparams/shelf_nbsd.sh: Likewise.
966         * emulparams/shelf_nto.sh: Likewise.
967         * emulparams/shlelf_nto.sh: Likewise.
968         * emulparams/xtensa-config.sh: Likewise.
970         * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
971         "CONSTANT (MAXPAGESIZE)".
972         (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
973         * emulparams/elf32_sparc.sh: Likewise.
974         * emulparams/elf32bmip.sh: Likewise.
975         * emulparams/elf32ppccommon.sh: Likewise.
976         * emulparams/elf64_ia64.sh: Likewise.
977         * emulparams/elf64_s390.sh: Likewise.
978         * emulparams/elf64_sparc.sh: Likewise.
979         * emulparams/elf64alpha.sh: Likewise.
980         * emulparams/elf64ppc.sh: Likewise.
981         * emulparams/elf_i386.sh: Likewise.
982         * emulparams/elf_i386_vxworks.sh: Likewise.
983         * emulparams/elf_s390.sh: Likewise.
984         * emulparams/elf_x86_64.sh: Likewise.
985         * emulparams/shlelf32_linux.sh: Likewise.
986         * emulparams/shlelf_linux.sh: Likewise.
988         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
989         "CONSTANT (COMMONPAGESIZE)".
990         * emulparams/elf32btsmipn32.sh: Likewise.
992         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
993         "-z max-page-size=" and "-z common-page-size=".
994         (gld${EMULATION_NAME}_list_options): Likewise.
996         * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
998         * ld.texinfo: Document "-z max-page-size=" and
999         "-z common-page-size=".
1001         * ldexp.c (exp_print_token): Handle CONSTANT.
1002         (fold_name): Likewise.
1003         * ldgram.y: Likewise.
1004         * ldlex.l: Likewise.
1006         * ldmain.c (main): Initiliaze config.maxpagesize and
1007         config.commonpagesize. Call bfd_emul_set_maxpagesize if
1008         config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
1009         config.commonpagesize config.maxpagesize isn't 0.
1011 2006-05-30  Nick Clifton  <nickc@redhat.com>
1013         * po/es.po: Updated Spanish translation.
1015 2006-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1017         * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
1019 2006-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1021         PR ld/1485
1022         * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
1023         bfd.  Support 64bit host for --enable-targets=all.
1024         * configure: Regenerated.
1026 2006-05-24  Nick Clifton  <nickc@redhat.com>
1028         * po/vi.po: Updated Vietnamese translation.
1030 2006-05-24  Bjoern Haase  <bjoern.m.haase@web.de>
1032         * configure.tgt: Add avr6 to emulation list.
1033         * Makefile.am: Add eavr6.o and corresponding rule.
1034         * Makefile.in: Regenerate.
1035         * emulparams/avr6.sh: New file.
1036         * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
1037         for target option support.
1038         (EXTRA_EM_FILE): Add reference to new em template file avrelf.
1039         * scripttempl/avr.sc: Add ".trampolines" section.
1040         * emultempl/avrelf.em: Add new file for target specific options.
1042 2006-05-22  Nick Clifton  <nickc@redhat.com>
1044         * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
1046 2006-05-19  Alan Modra  <amodra@bigpond.net.au>
1048         * ldlang.c (lang_size_sections_1): Don't check mem regions for
1049         os->ignored sections.
1051 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
1053         * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
1054         before redoing one_lang_size_sections_pass.
1056 2006-05-11  Carlos O'Donell  <carlos@codesourcery.com>
1058         * ld.texinfo: Rename "Index" to "LD Index"
1060 2006-05-11  Pedro Alves  <pedro_alves@portugalmail.pt>
1062         * pe-dll.c (autofilter_symbollist): Add Dllmain,
1063         DllMainCRTStartup, _DllMainCRTStartup and .text.
1064         (autofilter_liblist): Add libcegcc.
1065         (autofilter_symbolprefixlist): Add __imp_ and .idata$.
1066         (generate_reloc): Do not skip sections without a SEC_LOAD flag,
1067         they can still contain relocs that need processing.
1068         Skip the .idata$6 section.
1069         (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
1070         (make_one): Use the new array.
1071         (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
1072         * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
1074 2006-05-05  Alan Modra  <amodra@bigpond.net.au>
1076         * ld.texinfo: Document PowerPC and PowerPC64 options.
1077         * gen-doc.texi: Enable.
1079 2006-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
1081         * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
1082         (TEXI2POD): Use AM_MAKEINFOFLAGS.
1083         (configdoc.texi): Don't set top_srcdir.
1084         * ld.texinfo: Don't use top_srcdir.
1085         * aclocal.m4, Makefile.in: Regenerated.
1087 2006-04-19  Alan Modra  <amodra@bigpond.net.au>
1089         * ldlang.c (wild): Tidy default_common_section loop.
1090         (print_input_section): Format.
1092         * configure: Regenerate.
1094 2006-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
1096         * po/POTFILES.in: Regenerated.
1098 2006-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
1100         * config.in: Regenerated.
1102 2006-04-14  David Heine  <dlheine@tensilica.com>
1103             Bob Wilson  <bob.wilson@acm.org>
1105         * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
1106         function to strip inconsistent linkonce sections.
1107         (input_section_linked_worker, input_section_linked): New.
1108         (is_inconsistent_linkonce_section): New.
1109         (xtensa_strip_inconsistent_linkonce_sections): New.
1111 2006-04-11  Diego Pettenò  <flameeyes@gentoo.org>
1113         * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
1114         and Dragonfly targets.
1115         * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
1116         * Makefile.am (HFILES): Add elf-hints-local.h.
1117         * elf-hints-local.h: New file.
1118         * Makefile.in: Regenerate.
1119         * configure: Regenerate.
1121 2006-04-07  Bernhard Fischer  <aldot@gcc.gnu.org>
1123         * ld.texinfo: Fix typo in documentation of --check-sections.
1125 2006-04-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1127         * ldlang.c (load_symbols): Set as_needed and add_needed according
1128         to the corresponding script's fields while processing it.
1130 2006-04-06  Carlos O'Donell  <carlos@codesourcery.com>
1132         * Makefile.am: Add install-html, install-html-am, and
1133         install-html-recursive targets.
1134         * Makefile.in: Regenerate.
1135         * configure.in: AC_SUBST datarootdir, docdir, htmldir.
1136         * configure: Regenerate.
1137         * po/Make-in: Add install-html target.
1139 2006-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1141         * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
1142         link_info.need_relax_finalize.
1144         * ldlang.c (relax_sections): New.
1145         (lang_process): Use. Call relax_sections link_info.relax_pass
1146         times.
1148         * ldmain.c (main): Set link_info.relax_pass to 1. Remove
1149         link_info.need_relax_finalize.
1151 2006-04-05  Alan Modra  <amodra@bigpond.net.au>
1153         * Makefile.am (GENSCRIPTS): Pass prefix.
1154         * Makefile.in: Regenerate.
1155         * genscripts.sh: Adjust for extra parameter.
1156         * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
1157         exists.
1158         (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
1159         * NEWS: Update.
1161 2006-04-05  Richard Sandiford  <richard@codesourcery.com>
1162             Daniel Jacobowitz  <dan@codesourcery.com>
1164         * configure.tgt (sparc*-*-vxworks*): New stanza.
1165         * emulparams/elf32_sparc_vxworks.sh: New file.
1166         * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
1167         (eelf32_sparc_vxworks.c): New rule.
1168         * Makefile.in: Regenerate.
1170 2006-04-04  Eric Botcazou  <ebotcazou@adacore.com>
1172         * ldlang.c (lang_map): Print the list of discarded input sections.
1173         (print_input_section): Change parameter and print zero-sized sections.
1174         (print_statement): Adjust call to print_input_section.
1176 2006-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
1178         * deffilep.y (def_image_name): If LIBRARY or NAME statement
1179         specifies an empty string, retain the name specified on command
1180         line.
1181         * ld.texinfo: Document above.
1183 2006-03-31  Jakub Jelinek  <jakub@redhat.com>
1185         * ldmisc.c (vfinfo): Revert 2005-10-05 changes.  If
1186         bfd_find_nearest_line succeeded for %C or %D, but filename
1187         is NULL, print section+offset at the end.
1189 2006-03-25  Bernd Schmidt  <bernd.schmidt@analog.com>
1191         * emulparams/elf32bfinfd.sh: New file.
1192         * emultempl/bfin.em: Delete.
1193         * emulparams/bfin.sh: Lose reference to bfin.em.
1194         * Makefile.am (eelf32bfin.c): Likewise.
1195         (eelf32bfinfd.c): New.
1196         * Makefile.in: Regenerate.
1197         * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
1198         targ_extra_emuls.
1200 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
1201             Daniel Jacobowitz  <dan@codesourcery.com>
1202             Phil Edwards  <phil@codesourcery.com>
1203             Zack Weinberg  <zack@codesourcery.com>
1204             Mark Mitchell  <mark@codesourcery.com>
1205             Nathan Sidwell  <nathan@codesourcery.com>
1207         * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
1208         separate VxWorks emulations.
1209         * emulparams/elf32ebmipvxworks.sh: New file.
1210         * emulparams/elf32elmipvxworks.sh: New file.
1211         * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
1212         eelf32elmipvxworks.o.
1213         (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
1214         * Makefile.in: Regenerate.
1216 2006-03-16  Alan Modra  <amodra@bigpond.net.au>
1218         PR 2434
1219         * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
1220         * ldlang.c (output_statement_table_init, lang_init): Likewise.
1221         * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
1222         (undefined_symbol): Likewise.
1224 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
1225             Daniel Jacobowitz  <dan@codesourcery.com>
1226             Zack Weinberg  <zack@codesourcery.com>
1227             Nathan Sidwell  <nathan@codesourcery.com>
1228             Paul Brook  <paul@codesourcery.com>
1229             Ricardo Anguiano  <anguiano@codesourcery.com>
1230             Phil Edwards  <phil@codesourcery.com>
1232         * emulparams/armelf_vxworks.sh: Include vxworks.sh.
1233         (MAXPAGESIZE): Define.
1234         * emulparams/vxworks.sh: Undefine EMBEDDED.
1235         * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
1236         * Makefile.in: Regenerate.
1238 2006-03-03  Bjoern Haase  <bjoern.m.haase@web.de>
1240         * scripttempl/avr.sc:  Add *(.jumptables) *(.lowtext) sections.
1241         Add KEEP() directives.
1242         Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
1243         .bss output sections.
1245 2006-03-03  Richard Sandiford  <richard@codesourcery.com>
1247         * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
1248         (EXTRA_EM_FILE): Define.
1249         * emultempl/vxworks.em: New file.
1250         * ld.texinfo (--force-dynamic): Document.
1251         * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
1252         on vxworks.em.
1253         * Makefile.in: Regenerate.
1255 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
1257         * emulparams/elf32ppccommon.sh: New file, extracted from...
1258         * emulparams/elf32ppc.sh: ...here.
1259         * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
1260         instead of elf32ppc.sh.
1261         (BSS_PLT): Remove override.
1262         * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
1263         (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
1264         (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
1265         (eelf32ppclinux.c): Likewise.
1266         (eelf32ppcvxworks.c): Likewise.  Add missing vxworks.sh dependency.
1267         * Makefile.in: Regenerate.
1269 2006-02-27  Carlos O'Donell  <carlos@codesourcery.com>
1271         * Makefile.am: Add html target.
1272         * Makefile.in: Regenerate.
1273         * po/Make-in: Add html target.
1275 2006-02-17  Shrirang Khisti  <shrirangk@kpitcummins.com>
1276             Anil Paranjape   <anilp1@kpitcummins.com>
1277             Shilin Shakti    <shilins@kpitcummins.com>
1279         * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
1280         * scripttemp/elf32xc16xl.sc: Default linker script for large model.
1281         * scripttemp/elf32xc16xs.sc: Default linker script for small model.
1282         * emulparams/elf32xc16x.sh: Emulation script for tiny model.
1283         * emulparams/elf32xc16xl.sh: Emulation script for large model.
1284         * emulparams/elf32xc16xs.sh: Emulation script for small model.
1285         * Makefile.am: Add entry to make xc16x target.
1286         * Makefile.in: Regenerate.
1287         * configure.tgt: Specify default and other emulation parameters
1288         for xc16x.
1289         * NEWS: Announce the support for the new target.
1291 2006-02-16  Nick Hudson  <nick.hudson@dsl.pipex.com>
1293         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1294         Use the traditional target.
1296 2006-02-13  Joseph S. Myers  <joseph@codesourcery.com>
1298         * configure.tgt (arm*b-*-linux-gnueabi): Change to
1299         arm*b-*-linux-*eabi.
1300         (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
1302 2006-02-08  H.J. Lu  <hongjiu.lu@intel.com>
1304         PR ld/2290
1305         * NEWS: Updated for the Linux linker search order change.
1307         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
1308         gld${EMULATION_NAME}_check_ld_so_conf before checking default
1309         search directories for DT_NEEDED entries.
1311 2006-02-07  Paul Brook  <paul@codesourcery.com>
1313         * emultempl/armelf.em: Include elf/arm.h.
1314         (arm_elf_finish): Set low address bit if enty point is a Thumb
1315         function.
1317 2006-02-01  Danny Smith  <dannysmith@users.sourceforge.net>
1319         * deffilep.y (def_image_name): If the image name does not have
1320         a suffix, append the default.
1321         * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
1323 2006-01-31  Danny Smith  dannysmith@users.sourceforge.net
1325         * NEWS: Mention support for forward exports in PE-COFF dll's.
1326         * ld.texinfo: Expand documentation of EXPORT statements in
1327         PE-COFF .def files.
1329 2006-01-31  Filip Navara  <navaraf@reactos.com>
1331         * deffile.h (struct def_file_export): Add field flag_forward.
1332         * pe-dll.c (process_def_file): Check for forward exports.
1333         (generate_edata): Generate forward export symbols.
1334         (fill_edata): Emit them.
1336         * pe-dll.c (process_def_file): Don't crash on malformed
1337         fastcall symbol names in .def file.
1339 2006-01-30  Nick Clifton  <nickc@redhat.com>
1341         * po/vi.po: Updated Vietnamese translation.
1343 2006-01-27  Yitzchak Scott-Thoennes  <sthoenna@efn.org>
1345         * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
1346         file:" as informational message, not a warning.
1348 2006-01-18  Roger Sayle  <roger@eyesopen.com>
1350         * emultempl/irix.em: Use lbasename instead of basename.
1352 2006-01-16  Nick Clifton  <nickc@redhat.com>
1354         * po/zh_CN.po: New Chinese (simplified) translation.
1355         * configure.in (ALL_LINGUAS): Add "zh_CH".
1356         * configure: Regenerate.
1358 2006-01-16  Bernhard Fischer  <aldot@gcc.gnu.org>
1360         * ld.texinfo (Options): Fix typo.
1362 For older changes see ChangeLog-2005
1364 Local Variables:
1365 mode: change-log
1366 left-margin: 8
1367 fill-column: 74
1368 version-control: never
1369 End: