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