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