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