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