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