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