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