OSDN Git Service

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