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