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