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