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