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