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