OSDN Git Service

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