include/elf:
[external/binutils.git] / ld / ChangeLog
1 2005-05-17  Zack Weinberg  <zack@codesourcery.com>
2
3         * ld-arm/mixed-app.d: Adjust expected disassembly a little.
4
5 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
6
7         * Makefile.am (ldver.texi): Don't use $<.
8         * Makefile.in: Regenerated.
9
10 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
11
12         * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
13         $(srcdir) before $(BFDDIR)/doc.
14         * Makefile.in: Regenerated.
15
16 2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17
18         PR 797
19         * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
20         take take a bfd_boolean, mark_used. Ignore assert failure if
21         mark_used is TRUE.
22         (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
23         (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
24         mark_used and pass down.
25         (fold_unary): Likewise.
26         (fold_binary): Likewise.
27         (fold_trinary): Likewise.
28         (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
29         (exp_trinop): Likewise.
30         (exp_unop): Likewise.
31         (exp_nameop): Likewise.
32         (exp_get_vma): Likewise.
33         (exp_get_fill): Likewise.
34         (exp_get_abs_int): Likewise.
35         (fold_name): Likewise. Set SEC_KEEP in output section flags.
36         (exp_mark_used_section): New.
37
38         * ldexp.h (exp_mark_used_section): New.
39
40         * ldlang.c (lang_output_section_statement_lookup_1): Set the
41         ignored field to FALSE.
42         (lang_mark_used_section_1): New.
43         (lang_mark_used_section): Call lang_mark_used_section_1.
44         (strip_excluded_output_sections): Call lang_mark_used_section
45         and check for unused sections.
46         (lang_size_sections_1): Skip an output section if it should
47         be ignored.
48         (lang_do_assignments_1): Likewise.
49         (lang_process): Don't call lang_mark_used_section here.
50
51         * ldlang.h (lang_output_section_statement_type): Change
52         all_input_readonly to bitfield. Add ignored.
53
54 2005-05-17  Lennert Buytenhek  <buytenh@wantstofly.org>
55             Peter S. Mazinger" <ps.m@gmx.net>
56
57         * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
58         * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
59
60 2005-05-17  Julian Brown <julian@codesourcery.com>
61
62         * ldlang.c (print_assignment): Do not rely upon a valid result
63         having a section associated with it.
64
65 2005-05-17  Nick Clifton  <nickc@redhat.com>
66
67         * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
68         see if the same value is being used on the rhs as on the lhs.
69         (print_assignment): Call scan_for_self_assignment and if it
70         returns true, do no display the result of the computation but
71         instead just the final value of the symbol on the lhs.
72         * ld.texinfo: Document this behaviour and provide an example of
73         when it will happen.
74
75 2005-05-15  Daniel Jacobowitz  <dan@codesourcery.com>
76
77         * Makefile.am (AM_MAKEINFOFLAGS): Define.
78         (TEXI2DVI): Define.
79         (ldver.texi): Depend on distributed files instead of built files.
80         (ld.info): Include $(srcdir) in the rule target.  Remove actions.
81         (ld.dvi): Remove actions.
82         (MAINTAINERCLEANFILES): Add configdoc.texi.
83         (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
84         (install-data-local): Renamed from install.
85         (Makefile): Remove explicit dependency.
86         * acinclude.m4: Remove obsolete code.
87         * configure.in: Update AC_PREREQ.  Remove extra $CONFIG_SHELL.
88         * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
89
90 2005-05-11  Bob Wilson  <bob.wilson@acm.org>
91
92         * scripttempl/elfxtensa.sc: Sync up with elf.sc.
93         * emulparams/elf32xtensa.sh (PLT, GOT): Define.
94
95 2005-05-11  Alan Modra  <amodra@bigpond.net.au>
96
97         * ldgram.y: Add SPECIAL token.
98         (sect_constraint): Handle SPECIAL.
99         * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
100         (map_input_to_output_sections): Likewise.
101         * ldlex.l (SPECIAL): Define.
102         * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
103         GOT, PLT, GOTPLT): Define.
104         * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
105         (ppc_after_open): New function.
106         (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
107         (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
108         (PARSE_AND_LIST_OPTIONS): Document them.
109         (PARSE_AND_LIST_ARGS_CASES): Handle them.
110         (LDEMUL_AFTER_OPEN): Define.
111         * scripttempl/elf.sc (PLT): Don't override existing define.
112         (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
113         placement rather than using NO_SMALL_DATA.  Emit GOTPLT for RELRO_NOW.
114
115 2005-05-10  Alan Modra  <amodra@bigpond.net.au>
116
117         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
118         (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
119         (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END.  Place after
120         DATA_SEGMENT_RELRO_END in script.
121
122 2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
123
124         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
125         Don't use a removed section.
126
127 2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
128
129         * ldmain.c (reloc_overflow): Use output_bfd if the symbol
130         is defined in the ABS section.
131
132 2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
133
134         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
135         Put back !link_info.relocatable.
136
137 2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
138
139         PR 878
140         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
141         Just check link_info.executable.
142
143 2005-05-06  Nick Clifton  <nickc@redhat.com>
144
145         * Update the address and phone number of the FSF organization in
146         the GPL notices in the following files:
147         aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
148         ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
149         ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
150         ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
151         ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
152         sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
153         emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
154         emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
155         emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
156         emultempl/ia64elf.em, emultempl/irix.em,  emultempl/linux.em,
157         emultempl/lnk960.em, emultempl/m68hc1xelf.em,
158         emultempl/m68kcoff.em, emultempl/m68kelf.em,
159         emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
160         emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
161         emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
162         emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
163         emultempl/vanilla.em, emultempl/xtensaelf.em
164
165 2005-05-05  H.J. Lu  <hongjiu.lu@intel.com>
166
167         * scripttempl/elf.sc: Document the usage of __bss_start.
168
169 2005-05-05  Paul Brook  <paul@codesourcery.com>
170
171         * Makefile.am: Add eelf_i386_vxworks.
172         * Makefile.in: Regenerate.
173         * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
174         * emulparams/elf_i386_vxworks.sh: New file.
175         * emulparams/vxworks.sh: New file.
176         * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
177
178 2005-05-04  H.J. Lu  <hongjiu.lu@intel.com>
179
180         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
181         Call _bfd_elf_provide_section_bound_symbols.
182
183 2005-05-04  Alan Modra  <amodra@bigpond.net.au>
184
185         * ldemul.c: Include bfdlink.h.
186         (ldemul_before_allocation): Assume before_allocation is non-zero.
187         (before_allocation_default): Call strip_excluded_output_sections.
188         * ldlang.c (stripped_excluded_sections): New variable.
189         (lang_add_section): Build input section list for each output
190         section, attached via map_head and map_tail pointers.
191         (strip_excluded_output_sections): Make global.  Traverse the
192         input section lists to find which output sections can go.  Clear
193         link_order pointers and set stripped_excluded_sections.
194         (lang_process): Call strip_excluded_output_sections.
195         * ldlang.h (strip_excluded_output_sections): Declare.
196         * ldwrite.c: Update throuhout for link_order_head -> map_head change.
197         * emultempl/aix.em (before_allocation): Call
198         strip_excluded_output_sections.
199         * emultempl/armcoff.em (before_allocation): Likewise.
200         * emultempl/beos.em (before_allocation): Likewise.
201         * emultempl/linux.em (before_allocation): Likewise.
202         * emultempl/pe.em (before_allocation): Likewise.
203         * emultempl/sunos.em (before_allocation): Likewise.
204         * emultempl/elf32.em (before_allocation): Likewise.  Call
205         bfd_elf_size_dynsym_hash_dynstr too.
206         * emultempl/lnk960.em (lnk960_before_allocation): Delete.
207         (ld_lnk960): Use before_allocation_default.
208
209 2005-05-02  H.J. Lu  <hongjiu.lu@intel.com>
210
211         * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
212         Updated for bfd_section_list_remove change.
213         * ldlang.c (lang_insert_orphan): Likewise.
214         (strip_excluded_output_sections): Likewise.
215         (sort_sections_by_lma): New.
216         (lang_check_section_addresses): Sort the sections before
217         checking addresses.
218
219 2005-04-29  Ralf Corsepius <ralf.corsepius@rtems.org>
220
221         * configure.tgt: Add h8300*-*-rtemscoff.
222         Switch h8300*-*-rtems* to elf.
223
224 2005-04-29  Ben Elliston  <bje@au.ibm.com>
225
226         * ldgram.y (lang_memory_region_type): Make static.
227         (ldgram_want_filename): Likewise.
228         * ldemul.c (ld_emulation): Make static.
229         * ldfile.h (ldfile_find_command_file): Remove extern.
230         * ldfile.c (ldfile_find_command_file): Make static.
231         * ldlang.h (unique_section_list): Remove extern declaration.
232         * ldlang.c (unique_section_list): Make static.
233         * mri.h (symbol_truncate): Remove extern declaration.
234         * mri.c (symbol_truncate): Make static.
235         (order, only_load, address, alias): Likewise.
236         (alignment, subalignment): Likewise.
237
238 2005-04-27  H.J. Lu  <hongjiu.lu@intel.com>
239
240         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
241         Use the first SEC_ALLOC section which isn't SEC_READONLY or the
242         last SEC_ALLOC section if such a section doesn't exist.
243
244 2005-04-24  Mark Kettenis  <kettenis@gnu.org>
245
246         * configure.host: Add *-*-openbsd support.
247
248 2005-04-15  Julian Brown  <julian@codesourcery.com>
249
250         * ld.texinfo: Document --use-blx.
251         * emultempl/armelf.em (use_blx): New variable.
252         (arm_elf_create_output_section_statements): Communicate value of
253         use_blx to bfd.
254         (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
255         (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
256         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
257
258 2005-04-14  Alan Modra  <amodra@bigpond.net.au>
259
260         * Makefile.am (NO_WERROR): Define.  Use instead of -Wno-error.
261         * configure.in: Include ../bfd/warning.m4 contents.
262         * Makefile.in: Regenerate.
263         * configure: Regenerate.
264
265 2005-04-12  Alan Modra  <amodra@bigpond.net.au>
266
267         * Makefile.am: Run "make dep-am".
268         (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
269         * Makefile.in: Regenerate.
270         * config.in: Regenerate.
271
272 2005-04-11  Alan Modra  <amodra@bigpond.net.au>
273
274         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
275         as_needed libs that were not needed.
276         (gld${EMULATION_NAME}_check_needed): Likewise.
277
278 2005-04-07  Nick Clifton  <nickc@redhat.com>
279
280         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
281         ldfile.h can use the lang_input_statement type.
282
283 2005-04-06  Jakub Jelinek  <jakub@redhat.com>
284
285         * ldlang.c: Formatting.
286         (walk_wild_consider_section): Remember return value from wildcardp.
287         (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
288         (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
289
290 2005-04-06  Robert O'Callahan  <rocallahan@novell.com>
291
292         * ld.h (lean_section_userdata_type): Remove.
293         (fat_section_userdata_type): Remove file field.
294         (SECTION_USERDATA_SIZE): Remove.
295         * ldlang.c (init_os): Eliminate initialization of unused
296         lean_section_userdata_type.
297
298         * ldlang.h (callback_t, walk_wild_section_handler_t): New
299         typedefs.
300         (struct lang_wild_statement_struct): Add walk_wild_section_handler
301         and handler_data fields.
302         * ldlang.c (callback_t): Removed.
303         (walk_wild_consider_section, walk_wild_section_general,
304         section_iterator_callback, find_section, is_simple_wild,
305         match_simple_wild, walk_wild_section_specs1_wild0,
306         walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
307         walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
308         wild_spec_can_overlap, analyze_walk_wild_section_handler): New
309         functions.
310         (lang_add_wild): Call analyze_walk_wild_section_handler.
311         (walk_wild_section): Renamed to walk_wild_section_general and
312         created a wrapper function.
313         (section_iterator_callback_data): New typedef.
314
315 2005-04-04  Nick Clifton  <nickc@redhat.com>
316
317         * configure.in: Add a check for <unistd.h> providing a prototype
318         for getopt() which is compatible with the one in
319         include/getopt.h.  If so then define HAVE_DECL_GETOPT.
320         * configure: Regenerate.
321         * config.in (HAVE_DECL_GETOPT): Add.
322         * ldemul.c: Include config.h
323         * lexsup.c: Likewise.
324         * emultempl/elf32.sc: Likewise.
325
326 2005-03-29  Alan Modra  <amodra@bigpond.net.au>
327
328         * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
329         New function, extracted from static void gld${EMULATION_NAME}_finish.
330         (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
331         (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
332         * emultempl/ppc64elf.em: Revert last change.
333         (ppc_layout_sections_again): Use
334         gld${EMULATION_NAME}_layout_sections_again.
335         (ppc_finish): Don't call gld${EMULATION_NAME}_finish.  Instead call
336         gld${EMULATION_NAME}_strip_empty_sections and
337         gld${EMULATION_NAME}_provide_init_fini_syms.
338         * emultempl/hppaelf.em: Similarly.
339
340 2005-03-29  Alan Modra  <amodra@bigpond.net.au>
341
342         * emultempl/ppc64elf.em (need_laying_out): Delete.  Remove all refs.
343         (ppc_finish): Don't call bfd_elf_discard_info.
344         * emultempl/hppaelf.em: Similarly.
345
346 2005-03-24  Nick Clifton  <nickc@redhat.com>
347
348         * po/fr.po: Updated French translation.
349
350 2005-03-23  Mike Frysinger  <vapier@gentoo.org>
351             Nick Clifton  <nickc@redhat.com>
352
353         * configure.host: Accept any C library to accompany a GNU Linux
354         implementation, not just the GNU C library.
355         * configure.tgt: Likewise.
356         * emultempl/elf32.em: Likewise.
357
358 2005-03-22  H.J. Lu  <hongjiu.lu@intel.com>
359
360         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
361         (gld${EMULATION_NAME}_finish): Call
362         gld${EMULATION_NAME}_provide_bound_symbols to provide
363         __preinit_array_start, __preinit_array_end, __init_array_start,
364         __init_array_end, __fini_array_start and __fini_array_end.
365
366         * scripttempl/elf.sc: Don't provide __preinit_array_start,
367         __preinit_array_end, __init_array_start, __init_array_end,
368         __fini_array_start nor __fini_array_end.
369
370 2005-03-23  Alan Modra  <amodra@bigpond.net.au>
371
372         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
373         SEC_EXCLUDE on .gnu.warning sections.
374
375 2005-03-22  Alan Modra  <amodra@bigpond.net.au>
376
377         * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
378
379 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
380
381         * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
382         function.
383         (LDEMUL_AFTER_ALLOCATION): Define.
384
385 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
386
387         * emultempl/ppc64elf.em (ppc_finish): Rename from
388         gld${EMULATION_NAME}_finish.  Call gld${EMULATION_NAME}_finish.
389         (LDEMUL_FINISH): Update.
390         * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
391         * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
392
393 2005-03-18  Julian Brown  <julian@codesourcery.com>
394
395         * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
396         .rel.fini_array.
397         (.rela.dyn): Add .rela.init_array, .rela.fini_array.
398         (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
399
400 2005-03-18  H.J. Lu  <hongjiu.lu@intel.com>
401
402         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
403         bfd_section when removing unused empty output sections for
404         non-relocatable link.
405
406 2005-03-19  Alan Modra  <amodra@bigpond.net.au>
407
408         * ldlang.c (lang_insert_orphan): Use old section_tail rather than
409         traversing the bfd section list to find pointer to new section.
410
411 2005-03-18  Alan Modra  <amodra@bigpond.net.au>
412
413         * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
414         input sections into .sdata and .sbss output respectively.
415
416 2005-03-16  David Heine  <dlheine@tensilica.com>
417             Bob Wilson  <bob.wilson@acm.org>
418
419         * ldlang.c (IGNORE_SECTION): Remove check for zero size.
420         (lang_check_section_addresses): Ignore zero size sections here.
421
422 2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>
423
424         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
425         unused empty output sections for non-relocatable link.
426
427         * ld.h (args_type): Remove gc_sections.
428
429         * ldlang.c (lang_mark_used_section): New.
430         (lang_gc_sections): Use link_info.gc_sections instead of
431         command_line.gc_sections.
432         * ldmain.c (main): Likewise.
433         * lexsup.c (parse_args): Likewise.
434         * ldlang.c (lang_process): Call lang_mark_used_section.
435
436         * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
437
438 2005-03-16  Nick Clifton  <nickc@redhat.com>
439             Ben Elliston  <bje@au.ibm.com>
440
441         * configure.in (werror): New switch: Add -Werror to the
442         compiler command line.  Enabled by default.  Disable via
443         --disable-werror.
444         * configure: Regenerate.
445
446 2005-03-16  Alan Modra  <amodra@bigpond.net.au>
447
448         * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
449         (OTHER_RELRO_SECTIONS): Set this instead.
450
451 2005-03-15  Nick Clifton  <nickc@redhat.com>
452
453         * NEWS: Add cutoff for changes in 2.16 release.
454
455 2005-03-15  Mikkel Krautz  <krautz@gmail.com>
456
457         * configure.tgt (x86_64-elf): Add target.
458
459 2005-03-15  Alan Modra  <amodra@bigpond.net.au>
460
461         * po/es.po: Commit new Spanish translation.
462
463 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
464
465         * ldexp.c (exp_fold_tree): Ensure return value is initialized.
466         Tidy etree_assert case.
467
468 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
469
470         * po/tr.po: Commit new Turkish translation.
471
472 2005-03-11  Daniel Jacobowitz  <dan@codesourcery.com>
473
474         * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
475         * Makefile.in: Regenerated.
476         * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
477
478 2005-03-07  Nick Clifton  <nickc@redhat.com>
479
480         * po/fr.po: Updated translation.
481
482 2005-03-05  Alan Modra  <amodra@bigpond.net.au>
483
484         * po/ld.pot: Regenerate.
485
486 2005-03-02  Jan Beulich  <jbeulich@novell.com>
487
488         * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
489         * pe-dll.c (pe_dll_generate_implib): Likewise.
490
491 2005-02-24  Ben Elliston  <bje@au.ibm.com>
492
493         * ldfile.c: Remove GNU960 conditional code.
494         * emultempl/gld960.em: Likewise.
495         * emultempl/gld960c.em: Likewise.
496         * emultempl/lnk960.em: Likewise.
497
498 2005-02-24  Nick Clifton  <nickc@redhat.com>
499
500         * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
501         empty string from calls to concat.
502
503 2005-02-23  Nick Clifton  <nickc@redhat.com>
504
505         * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
506         arguments passed to concat() with a NULL.
507
508         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
509         define types needed by ldfile.h
510
511 2005-02-23  Alan Modra  <amodra@bigpond.net.au>
512
513         * pe-dll.c: Warning fixes.
514         * emultempl/sunos.em: Likewise.
515
516 2005-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
517
518         * ldlang.c (section_already_linked): Don't call
519         bfd_section_already_linked for dynamic objects.
520
521 2005-02-22  Alan Modra  <amodra@bigpond.net.au>
522
523         * ldexp.c: Warning fixes.
524         * ldwrite.c: Likewise.
525         * emultempl/elf32.em: Likewise.
526
527 2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
528
529         * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
530         tic54x input only.
531         (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
532         and ECOFF output only.
533
534 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
535
536         * config.in: Regenerate.
537         * configure: Regenerate.
538
539 2005-02-17  Zack Weinberg  <zack@codesourcery.com>
540
541         * ldexp.c (assigning_to_dot): New global flag.
542         (fold_name): If assigning_to_dot is true, object immediately to
543         an undefined symbol.
544         (exp_fold_tree): Set and clear assigning_to_dot around the
545         recursive call to exp_fold_tree to process the right-hand side
546         of an assignment to the location counter.
547
548 2005-02-17  Paul Brook  <paul@codesourcery.com>
549
550         * scripttempl/armbpabi.sc: Add dummy name to version block.
551
552 2005-02-17  Alan Modra  <amodra@bigpond.net.au>
553
554         * ldexp.c (new_abs): Init new.str.
555
556 2005-02-15  Mark Mitchell  <mark@codesourcery.com>
557
558         * configure.in (AC_CHECK_FUNCS): Add glob.
559         * configure: Regenerated.
560         * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
561         not defined.
562         (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
563         if HAVE_GLOB is not defined.
564
565 2005-02-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
566
567         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
568         lib_path if NATIVE is yes.
569
570 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
571
572         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
573         an error creating fake bfd fatal.
574         (ppc_before_allocation): Continue on after errors.
575         (gld${EMULATION_NAME}_finish): Likewise.
576
577 2005-02-15  Nick Clifton  <nickc@redhat.com>
578
579         * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
580         not declared.  It is not used and its presence causes a compile
581         time warning.
582
583 2005-02-11  Zack Weinberg  <zack@codesourcery.com>
584
585         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
586         If st.st_ino is zero, do not treat the library as a duplicate.
587
588 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
589
590         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
591         Set BFD_LINKER_CREATED on the stubs bfd.
592         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
593         Likewise.
594
595 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
596
597         * scripttempl/armbpabi.sc (VERSION): Make special section symbols
598         local.
599         (Image$$ER_RO$$Base): Define whenever RELOCATING.
600         (Image$$ER_RO$$Limit): Likewise.
601         (SHT$$INIT_ARRAY$$Base): Likewise.
602         (SHT$$INIT_ARRAY$$Limit): Likeise.
603
604 2005-02-10  Ben Elliston  <bje@au.ibm.com>
605
606         * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
607
608 2005-02-08  Richard Sandiford  <rsandifo@redhat.com>
609
610         * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
611         to include o32 and n64 emulations.
612         (mips64*-*-linux-gnu*): Likewise.
613
614 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
615
616         * ldmain.c (warning_callback, warning_find_reloc): Prepend
617         "warning: " to warning messages.
618
619 2005-02-04  Alan Modra  <amodra@bigpond.net.au>
620
621         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
622         look up symbol for etree_provide here.
623
624 2005-02-02  Daniel Jacobowitz  <dan@codesourcery.com>
625
626         * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
627
628 2005-02-01  Edward Welbourne  <eddy@opera.com>
629             Nick Clifton  <nickc@redhat.com>
630
631         * ld.texinfo (Source Code Reference): New node describing how to
632         access linker script defined variables from source code.
633
634 2005-02-01  Alan Modra  <amodra@bigpond.net.au>
635
636         * ld.texinfo: Clarify --as-needed operation.
637
638 2005-01-31  Andrew Cagney  <cagney@gnu.org>
639
640         * configure: Regenerate to track ../gettext.m4.
641
642 2005-01-31  Nick Clifton  <nickc@redhat.com>
643
644         * ldver.c (ldversion): Bump reported copyright date to 2005.
645
646 2005-01-31  Nick Clifton  <nickc@redhat.com>
647
648         * configure.tgt: Remove obsolete targets m68k-lynxos and
649         sparc-lynxos.
650
651 2005-01-28  Julian Brown  <julian@codesourcery.com>
652
653         * emultempl/armelf.em (fix_v4bx): New variable.
654         (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
655         value to bfd.
656         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
657         (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
658         (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
659         (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
660         * NEWS: Mention --fix-v4bx.
661         * ld.texinfo: Document --fix-v4bx.
662
663 2005-01-25  Mark Mitchell  <mark@codesourcery.com>
664
665         * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
666         as to include .ARM.exidx$${Base,Limit}.
667         * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
668         Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
669         Put .init_array, .fini_array, etc. into the read-only data
670         segment.
671
672 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
673
674         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
675         (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
676         only needed by an as-needed lib that didn't get linked.
677
678 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
679
680         * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
681         __DTOR_LIST__ description.
682
683 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
684
685         * ld.texinfo (Location Counter <dot outside sections>): Document
686         effects of orphan section placement, and ". = ." workaround.
687         * Makefile.in: Regenerate.
688
689 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
690
691         * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
692         * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
693
694 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
695
696         * ldgram.y (AS_NEEDED): New token.
697         (input_list): Handle AS_NEEDED ( input_list ).
698         * ldlex.l (AS_NEEDED): Add.
699         * ld.texinfo: Document AS_NEEDED ().
700         * NEWS: Mention AS_NEEDED ().
701
702 2005-01-21  Ben Elliston  <bje@au.ibm.com>
703
704         * ldlang.c (lang_reasonable_defaults): Remove.
705         (lang_process): Don't call lang_reasonable_defaults.
706
707         * ldexp.c (exp_assop): Remove #if 0'd code.
708         (exp_print_tree): Likewise.
709         * ldlang.c (lang_memory_region_lookup): Likewise.
710         (open_output): Likewise.
711         (lang_do_assignments_1): Likewise.
712         (lang_place_orphans): Likewise.
713         (lang_enter_output_section_statement): Likewise.
714         (lang_reasonable_defaults): Likewise.
715         * ldlang.h (struct lang_input_statement_struct): Likewise.
716         * mri.c (mri_draw_tree): Likewise.
717         (mri_load): Likewise.
718         * pe-dll.c (generate_reloc): Likewise.
719         (make_import_fixup_entry): Likewise.
720         (pe_as16): Likewise.
721         * emultempl/beos.em (set_pe_subsystem): Likewise.
722         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
723         * emultempl/pe.em: Likewise.
724         * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
725
726 2005-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
727
728         * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
729         (earmelfb_linux_eabi.c): New target.
730         * Makefile.in: Regenerated.
731         * configure.tgt (arm*b-*-linux-gnueabi): New target.
732         * emulparams/armelfb_linux_eabi.sh: New file.
733
734 2005-01-20  Nick Hudson  <skrll@netbsd.org>
735
736         PR ld/676
737         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
738         Handle bfd_elf32_hppa_nbsd_vec.
739
740 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
741
742         * ldmain.h (ld_sysroot): Change type to a constant string.
743         * ldmain.c (ld_sysroot): Likewise.
744         (get_relative_sysroot, get_sysroot): New functions, adding command-line
745         support for changing the sysroot.
746         (main): Call the new functions.
747         * lexsup.c (OPTION_SYSROOT): New.
748         (ld_options): Add --sysroot.
749         (parse_args): Add a dummy handler for it.
750         * ld.texinfo (--sysroot): Document.
751         * NEWS: Mention the new --sysroot option.
752
753 2005-01-18  Alan Modra  <amodra@bigpond.net.au>
754
755         * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
756         (lang_place_orphans): Don't abort on just_syms_flag, instead call
757         bfd_link_just_syms.
758
759 2005-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
760
761         * defilep.y (def_name, def_library): Combine into...
762         (def_image_name): New function.  Strip name to basename,
763         with warning.
764
765 2005-01-12  Mark Kettenis  <kettenis@gnu.org>
766
767         * configure.in: Be sure to invoke config.sub using the shell.
768         * configure: Regenerate.
769
770 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
771
772         * configure.host: Correct sed patterns for last change.
773
774 2005-01-10  Nick Clifton  <nickc@redhat.com>
775
776         PR binutils/609
777         * ldmisc.c (vfinfo): Add an extra argument: is_warning.  Use this
778         to determine whether config.make_executable should be set to FALSE in
779         conjunction with config.fatal_warnings.
780         (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
781         (einfo): Pass TRUE as the extra argument.
782
783 2005-01-10  Greg Schaffer  <gschafer@zip.com.au>
784
785         * configure.host (linux targets): Use "${CC} -dumpspecs" instead
786         of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
787         (ia64-*-aix): Delete - this target is obsolete, and would be
788         broken by this patch.
789
790 2005-01-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
791
792         * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
793         (sparc64-sun-solaris2*): New host.
794
795 2005-01-06  Paul Brook  <paul@codesourcery.com>
796
797         * Makefie.am: Add earmelf_vxworks.
798         * Makefile.in: Regenerate.
799         * configure.tgt: Make arm-*-vxworks a separate case.
800         * emulparams/armelf_vxworks.sh: New function.
801
802 2005-01-06  Alan Modra  <amodra@bigpond.net.au>
803
804         * emultempl/ppc64elf.em (no_multi_toc): New var.
805         (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
806         (OPTION_NO_MULTI_TOC): Define.
807         (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
808         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
809
810 2005-01-05  Nick Clifton  <nickc@redhat.com>
811
812         PR binutils/614
813         * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
814         Standard's specification for parsable error messages.
815
816 2005-01-04  Paul Brook  <paul@codesourcery.com>
817
818         * Makefile.am: Correct dependency for earmsymbian.c.
819         * Makefile.in: Regenerate.
820
821 2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>
822
823         * emultempl/pe.em (set_pe_subsystem): Change second arg to
824         lang_add_entry to FALSE.
825
826 2004-12-23  Nick Clifton  <nickc@redhat.com>
827
828         PR 600
829         * emulparams/shelf.sh (.stack): Increase stack start address to
830         0x300000.
831
832 2004-12-20  Nick Clifton  <nickc@redhat.com>
833
834         * ldmain.c (main): Issue an error message if -static and -shared
835         are used together.
836
837 2004-12-17  Jakub Jelinek  <jakub@redhat.com>
838
839         * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
840         * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
841         * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
842         address space at DATA_SEGMENT_ALIGN.  Fix computation of expected
843         PT_GNU_RELRO segment end.
844
845 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
846
847         * configure.tgt: Add s390x-ibm-tpf support.
848
849 2004-12-16  Martin Kögler  <mkoegler@auto.tuwien.ac.at>
850
851         * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
852         BFD.
853
854 2004-12-07  Ben Elliston  <bje@gnu.org>
855
856         * ldemul.h: Forward declare struct option.
857
858 2004-12-01  Danny Smith  <dannysmith@users.sourceforge.net>
859
860         * scripttempl/pe.sc (.data): Add .jcr subsection.
861
862 2004-11-30  Paul Brook  <paul@codesourcery.com>
863
864         * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
865
866 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
867
868         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
869         * Makefile.in: Regenerate.
870
871 2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
872
873         * emultempl/pe.em: Add --subsystem:xbox as well as
874         --subsystem:%d.
875         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
876         and numeric subsystems.
877
878 2004-11-24  Alan Modra  <amodra@bigpond.net.au>
879
880         * ldexp.c (fold_name): Correct PR 338 fix.
881
882 2004-11-19  Mark Mitchell  <mark@codesourcery.com>
883
884         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
885         (earmelf_linux_eabi.c): New target.
886         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
887         * emulparams/armelf_linux_eabi.sh: New file.
888         * Makefile.in: Regenerated.
889
890 2004-11-19  Nick Clifton  <nickc@redhat.com>
891
892         PR 518
893         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
894         LENGTH fields in the MEMORY command, to explicitly state that
895         symbols cannot be used in their expressions.
896
897 2004-11-19  Jon Beniston <jon@beniston.com>
898
899         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
900         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
901         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
902         which return the length and origin of a memory.
903         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
904         * NEWS: Mention support for ORIGIN and LENGTH operators.
905
906 2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
907
908         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
909         a dynamic object for stubs.
910
911 2004-11-04  Paul Brook  <paul@codesourcery.com>
912
913         * ld.texinfo: Document --default-imported-symver.
914         * ldmain.c (main): Set link_info.default_imported_symver.
915         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
916         (ld_options): Add --default-imported-symver.
917         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
918
919 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
920             Vineet Sharma      <vineets@noida.hcltech.com>
921
922         * Makefile.am: Add entries for new maxq-coff target.
923         * Makefile.in: Regenerate.
924         * configure.tgt: Add support for maxq.
925         * emulparams/maxqcoff.sh: New File.
926         * scripttempl/maxqcoff.sc: New linker script for target maxq.
927         * NEWS: Mention the new target.
928
929 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
930
931         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
932         (earmelf_oabi.c): Remove rule.
933         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
934         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
935         * Makefile.in: Regenerated.
936
937 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
938
939         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
940         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
941         (FINI_START): Ditto.
942         (INIT_END): Remove emitted "jump [sp+]".
943         (FINI_END): Ditto.
944
945 2004-11-04  Alan Modra  <amodra@bigpond.net.au>
946
947         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
948         (no_opd_opt, no_toc_opt): New static vars.
949         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
950         ppc64_elf_edit_toc.
951         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
952         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
953         (PARSE_AND_LIST_OPTIONS): Describe new options.
954         (PARSE_AND_LIST_ARGS_CASES): Handle them.
955
956 2004-10-27  Nick Clifton  <nickc@redhat.com>
957
958         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
959         parameter to invocation of lang_section_start.
960         * emultempl/aix.em (_handle_option): Likewise.
961
962         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
963         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
964         * Makefile.in: Regenerate.
965
966 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
967
968         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
969         __exidx_{start,end} when not relocating.
970
971 2004-10-25  Mark Mitchell  <mark@codesourcery.com>
972
973         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
974         * ldexp.h (segment_type): New type.
975         (segments): New variable.
976         * ldexp.c (segments): New variable.
977         (exp_print_token): Handle SEGMENT_START.
978         (fold_binary): Likewise.
979         * ldgram.y (SEGMENT_START): Declare it as a token.
980         (exp): Handle SEGMENT_START.
981         * ldlang.h (lang_address_statement_type): Add segment field.
982         (lang_section_start): Change prototype.
983         * ldlang.c (map_input_to_output_sections): Do not process section
984         assignments if a corresponding SEGMENT_START has already been
985         seen.
986         (lang_section_start): Add segment parameter.
987         * ldlex.l (SEGMENT_START): Add it.
988         * lexsup.c (seg_segment_start): New function.
989         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
990         * ld.texinfo (SEGMENT_START): Document it.
991         * emulparams/armsymbian.sh (EMBEDDED): Set it.
992         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
993         base addresses.  Do not map relocations.
994         * NEWS: Mention SEGMENT_START.
995
996 2004-10-26  Paul Brook  <paul@codesourcery.com>
997
998         * ld.texinfo: Document --default-symver.
999         * ldmain.c (main): Set link_info.create_default_symver.
1000         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1001         (ld_options): Add default-symver.
1002         (parse_args): Handle OPTION_DEFAULT_SYMVER.
1003
1004 2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
1005
1006         * pe-dll.c (process_def_file): Don't export all symbols by default if
1007         building a position-independent executable.
1008
1009 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1010
1011         PR 463
1012         * ldmain.c (reloc_overflow): Accept a pointer to struct
1013         bfd_link_hash_entry. Report symbol location for relocation
1014         overflow.
1015
1016 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1017
1018         * genscripts.sh (libpath.exp): Really generate for first
1019         emulation only.
1020
1021 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
1022
1023         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1024         comparison and replacement of filenames.
1025
1026 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1027
1028         PR 459
1029         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1030         option on linker script as the one for linker script.
1031
1032 2004-10-16  Daniel Jacobowitz  <dan@debian.org>
1033
1034         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1035         (check_excluded_libs): New.
1036         (load_symbols): Call check_excluded_libs.
1037         * ldlang.h (add_excluded_libs): New prototype.
1038         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1039         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1040         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1041         * ld.texinfo (Command Line Variables): Document --exclude-libs.
1042         (Options Specific to i386 PE Targets): Remove --exclude-libs.
1043
1044 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
1045
1046         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1047         failing link script assert.
1048
1049         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1050
1051 2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
1052
1053         PR 445
1054         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1055         (SMALL_DATA_DTOR): Set.
1056         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1057         (SMALL_DATA_DTOR): Unset.
1058         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1059         after .data. If SMALL_DATA_DTOR is set, move .dtors after
1060         .data.
1061
1062 2004-10-14  Alan Modra  <amodra@bigpond.net.au>
1063
1064         PR 63
1065         * ldlang.h (lang_output_section_statement_type): Make "next" a
1066         struct lang_output_section_statement_struct *.
1067         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
1068         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1069         * ldlang.c (lang_output_section_find_1): Adjust for changed
1070         output_section_statement "next".
1071         (strip_excluded_output_sections): Likewise.
1072         (lang_record_phdrs): Likewise.
1073         (lang_output_section_find_by_flags): New function.
1074         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
1075         (lang_insert_orphan): New function.  Tail end of elf32.em's
1076         place_orphan merged with that from pe.em.  Allow bfd_section to
1077         be placed first.  New heuristic for placing new output section
1078         statement in existing script, and accompanying split of __start
1079         symbol alignment into a separate assignment to dot.
1080         (lang_add_section): Consistently use output->bfd_section rather than
1081         an alias, section->output_section.
1082         (map_input_to_output_sections): Rename overly long arg.  Move
1083         initialization of data_statement output section to here..
1084         (lang_check_section_addresses): ..from here.
1085         (print_assignment): Correct printing of etree_assert.
1086         (print_all_symbols): Don't bomb if userdata is NULL.
1087         (IGNORE_SECTION): Rearrange.
1088         * emultempl/elf32.em (output_rel_find): Adjust interator.
1089         (output_prev_sec_find): Delete.
1090         (struct orphan_save): Delete.
1091         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1092         flags without creating a duplicate output section statement.
1093         Revise code holding history of various orphan section placements.
1094         Allow orphan sections to place before script specified output
1095         sections.  Call lang_output_section_find_by_flags when placement
1096         by name fails.  Use lang_insert_orphan.
1097         * emultempl/mmo.em (output_prev_sec_find): Delete.
1098         (struct orphan_save): Delete.
1099         (mmo_place_orphan): Revise code holding history of orphan placement.
1100         Allow orphans to place before existing output sections.  Use
1101         lang_insert_orphan.
1102         * emultempl/pe.em (output_prev_sec_find): Delete.
1103         (struct orphan_save): Delete.
1104         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1105         lang_insert_orphan.
1106
1107 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
1108
1109         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1110         loadable segment.
1111
1112 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
1113
1114         PR 44
1115         * ldcref.c (check_section_sym_xref): Delete.
1116         (check_local_sym_xref): New function.
1117         (check_nocrossrefs): Adjust call.
1118         * emultempl/pe.em (struct orphan_save): Add os_tail.
1119         (place_orphan): Backport assorted fixes from elf32.em.
1120
1121 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
1122
1123         * emultempl/xtensaelf.em: Use ISO C90 formatting.
1124
1125 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
1126
1127         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1128         getline for portability.
1129
1130         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1131         (gld${EMULATION_NAME}_parse_ld_so_conf,
1132         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1133         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1134
1135 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
1136
1137         PR 423
1138         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1139         rejected when linking statically.
1140
1141 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
1142
1143         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1144
1145 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
1146
1147         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1148         assembler-generated longcall sequences.  Describe new --size-opt
1149         option.
1150         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1151         * emultempl/xtensaelf.em (remove_section,
1152         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1153         elf_xtensa_after_open): New.
1154         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1155         OPTION_NO_LITERAL_MOVEMENT): Define.
1156         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1157         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1158         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1159         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1160         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1161         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1162         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1163         * Makefile.am (eelf32xtensa.c): Update dependencies.
1164         * Makefile.in: Regenerate.
1165
1166 2004-10-07  Jeff Baker  <jbaker@qnx.com>
1167
1168         * lexsup.c: Handle --warn-shared-textrel option.
1169         (ld_options): Restore alpha sorting of options.
1170         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1171         * ld.texinfo: Add documentation for --warn-shared-textrel.
1172         * NEWS: Added mention of --warn-shared-textrel option.
1173
1174 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
1175
1176         * emultempl/crxelf.em (disable_relaxation): Add.
1177         (crxelf_before_allocation): Enable --relax option by default.
1178         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1179         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1180         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1181
1182 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
1183
1184         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1185         --sort-section name|alignment.
1186
1187         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1188         --sort-section name|alignment.
1189
1190         * ld.h (sort_type): New enum.
1191         (wildcard_spec): Change the type of `sorted' to sort_type.
1192
1193         * ldgram.y (SORT): Removed.
1194         (SORT_BY_NAME): Added.
1195         (SORT_BY_ALIGNMENT): Added.
1196         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1197         SORT_BY_ALIGNMENT.
1198         (input_section_spec_no_keep): Updated `sorted'.
1199         (statement): Replace SORT with SORT_BY_NAME.
1200
1201         * ldlang.c (compare_section): New function to compare 2
1202         sections with different sorting schemes.
1203         (wild_sort): Updated. Use compare_section.
1204         (update_wild_statements): New function.
1205         (lang_process): Call update_wild_statements before
1206         map_input_to_output_sections.
1207
1208         * ldlex.l (SORT_BY_NAME): New.
1209         (SORT_BY_ALIGNMENT): New.
1210         (SORT): Return SORT_BY_NAME.
1211
1212         * ldmain.c (sort_section): New. Defined.
1213         (main): Initialize it to none.
1214
1215         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1216         (ld_options): Add an entry for OPTION_SORT_SECTION.
1217         (parse_args): Handle OPTION_SORT_SECTION.
1218
1219         * mri.c (mri_draw_tree): Updated `sorted'.
1220
1221 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
1222
1223         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1224         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1225         argument.
1226         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1227         and . as second argument.
1228         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1229         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1230         (fold_binary): Add it here.  Insert padding to make relro_end
1231         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
1232         exp_dataseg_relro_adjust phase just use previously computed
1233         exp_data_seg.base.
1234         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1235         relro_adjust here.  Call lang_size_sections_1 once more if there
1236         was too big padding at DATA_SEGMENT_RELRO_END.
1237         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1238
1239 2004-10-01  Paul Brook  <paul@codesourcery.com>
1240
1241         * emulparams/armelf.sh: Add unwinding table sections.
1242
1243 2004-09-30  Filip Navara  <navaraf@reactos.com>
1244
1245         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1246         correct base address for position independant executables.
1247         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1248         executables as DLLs.
1249
1250 2004-09-30  Paul Brook  <paul@codesourcery.com>
1251
1252         * ld.texinfo: Document --target2=abs.
1253         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1254
1255 2004-09-29  Nick Clifton  <nickc@redhat.com>
1256
1257         * scripttempl/xstormy16.sc: Only perform the assignments to the
1258         ROM region when not performing a relocatable link.  The ROM region
1259         does not start at address 0, but the sections will.
1260         * Makefile.am: Fix linker script dependency for the generation of
1261         eelf32xstormy16.c.
1262         * Makefile.in: Regenerate.
1263
1264 2004-09-18  Filip Navara  <navaraf@reactos.com>
1265
1266         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1267         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1268         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1269         TARGET_PAGE_SIZE.
1270         * scripttempl/pe.sc: Make the virtual address and file offset synced if
1271         the alignment is lower than the target page size.
1272
1273 2004-09-27  Filip Navara  <navaraf@reactos.com>
1274
1275         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1276         def_file_parse to handle pe_def_file if NULL and prevent crash with
1277         invalid .def files.
1278
1279 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
1280
1281         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1282         --emit-stub-syms automatically when --emit-relocs.
1283
1284 2004-09-24  Paul Brook  <paul@codeosurcery.com>
1285
1286         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1287         .fini_array sections.
1288
1289 2004-09-19  Andreas Schwab  <schwab@suse.de>
1290
1291         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1292         base so that relro end is suitably aligned.
1293
1294 2004-09-17  Paul Brook  <paul@codesourcery.com>
1295
1296         * ld.texinfo: Rename arm-specific section.  Document --target*
1297         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1298         * emulparams/armelf_linux.sh: Ditto.
1299         * emulparams/armelf_nbsd.sh: Ditto.
1300         * emultempl/armelf.em: Set default for TARGET2_TYPE.
1301         (target2_type): New variable.
1302         (arm_elf_before_allocation): Don't pass target1_type.
1303         (arm_elf_create_output_section_statements): New function.
1304         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1305         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1306         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1307         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1308         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1309         argument to bfd_elf32_arm_process_before_allocation.
1310
1311 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
1312
1313         * ldexp.c (fold_name): Update u.undef.next refs.
1314         * emultempl/pe.em: Likewise.
1315         * emultempl/sunos.em: Likewise.
1316
1317 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
1318
1319         * Makefile.am: Run "make dep-am".
1320         * Makefile.in: Regenerate.
1321         * config.in: Regenerate.
1322         * configure: Regenerate.
1323         * aclocal.m4: Regenerate.
1324         * po/ld.pot: Regenerate.
1325
1326 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
1327
1328         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1329         (.fini): Likewise.
1330         (.jcr): Likewise.
1331
1332 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
1333
1334         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1335         to bfd_elf32_arm_process_before_allocation call.
1336
1337 2004-09-13  Paul Brook  <paul@codesourcery.com>
1338
1339         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1340         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
1341
1342 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1343
1344         * configure: Regenerated with autconfig 2.13.
1345
1346 2004-09-07  Andreas Schwab  <schwab@suse.de>
1347
1348         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1349         alignment before adjusting DATA_SEGMENT_RELRO_END.
1350
1351 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
1352
1353         * emulparams/armsymbian.sh: Use armbpabi script.
1354         * scripttempl/armbpabi.sc: New script.
1355
1356 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
1357
1358         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1359         (earmsymbian.c): New target.
1360         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1361         * Makefile.in: Regenerated.
1362         * aclocal.m4: Likewise.
1363         * configure: Likewise.
1364         * emulparams/armsymbian.sh: New file.
1365
1366 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
1367
1368         * scripttempl/elf32crx.sc: Edit file with comments.
1369         (.init): Add new section.
1370         (.fini): Likewise.
1371         (.ctor): Control the linkage order.
1372         (.dtor): Likewise.
1373
1374 2004-08-27  Nick Clifton  <nickc@redhat.com>
1375
1376         * emultempl/pe.em (after_open): Do not assume that either bfd is
1377         an archive.
1378
1379 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
1380
1381         * ldlang.c (lang_init): Don't compare with TRUE.
1382
1383 2004-08-25  Dmitry Diky  <diwil@spec.ru>
1384
1385         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1386         * scripttempl/elf32msp430.sc: Add .profiler section definition.
1387
1388 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1389
1390         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1391
1392 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
1393
1394         * configure.tgt (arm*-*-symbianelf*): New target.
1395         (arm*-*-eabi*): Likewise.
1396
1397 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
1398
1399         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1400         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1401         (OPTION_NON_OVERLAPPING_OPD): Define.
1402         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1403         --non-overlapping-opd option.
1404
1405 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
1406
1407         PR 338
1408         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1409         was already on the undefs list.
1410
1411 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
1412
1413         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1414         prefix the symbol field too.
1415
1416 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
1417
1418         * ldmain.c (link_callbacks): Remove "error_handler".
1419         * ldmisc.c: Include elf-bfd.h.
1420         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
1421         bfd_get_section_indent.
1422         (error_handler): Delete.
1423         * ldmisc.h (error_handler): Delete declaration.
1424
1425 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
1426
1427         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1428         ppc64_elf_restore_symbols.
1429
1430 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
1431
1432         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1433         .toc is too large on relocatable linking.
1434
1435 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
1436
1437         * emultempl/ppc64elf.em (ppc_after_open): Delete.
1438         (LDEMUL_AFTER_OPEN): Don't define.
1439
1440 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
1441
1442         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1443
1444 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
1445
1446         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1447         on power of 2.
1448
1449 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
1450
1451         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1452
1453 2004-07-26  Dmitry Diky  <diwil@spec.ru>
1454
1455         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1456         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1457         msp430xG439.
1458         * configure.tgt: Likewise.
1459         * emulparams/msp430all.sh: Likewise.
1460         * Makefile.in: Regenerate.
1461
1462 2004-07-23  Nick Clifton  <nickc@redhat.com>
1463
1464         * emultempl/elf32.em (_place_orphan): Use an already existing
1465         section name if that section does not have any flags set.
1466
1467 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1468
1469         * ldlang.c (already_linked_hash_entry): Removed.
1470         (already_linked): Likewise.
1471         (already_linked_table): Likewise.
1472         (section_already_linked): Call bfd_section_already_linked.
1473         (lang_process): Replace already_linked_table_init with
1474         bfd_section_already_linked_table_init and check return. Replace
1475         already_linked_table_free with bfd_section_already_linked_table_free.
1476
1477 2004-07-21  Nick Clifton  <nickc@redhat.com>
1478
1479         * ldlang.c (init_os): Make sure that the newly allocated userdata
1480         structure is zeroed out.
1481
1482 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
1483
1484         * NEWS: Mention the new --add-needed/--no-add-needed and
1485         --as-needed/--no-as-needed options.
1486
1487 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
1488
1489         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1490         check the add_needed field.
1491         (dt_needed): New struct.
1492         (gld${EMULATION_NAME}_try_needed): Change the first argument
1493         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1494         bit in the file where the DT_NEEDED entry comes from.
1495         (gld${EMULATION_NAME}_search_needed): Change the second
1496         argument to a pointer to struct dt_needed.
1497         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1498         (gld${EMULATION_NAME}_after_open): Likewise.
1499
1500         * ld.texinfo: Add --add-needed document.
1501         * ldlang.c (new_afile): Set p->add_needed.
1502         * ldlang.h (lang_input_statement_type): Add add_needed field.
1503         * ldmain.h (add_needed): Declare.
1504         * ldmain.c (add_needed): New global var.
1505         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1506         OPTION_NO_ADD_NEEDED.
1507         (ld_options): Likewise.
1508         (parse_args): Handle them.
1509
1510 2004-07-13  Christof Petig  <christof@petig-baender.de>
1511
1512         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1513         for endian-ness of extracted addend.
1514
1515 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
1516
1517         * pe-dll.c (auto_export):  Filter on just the import prefix,
1518         "_imp_", not "_imp__".
1519
1520 2004-07-09  Nick Clifton  <nickc@redhat.com>
1521
1522         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1523
1524 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
1525
1526         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1527         (eelf32crx.c): New target.
1528         * Makefile.in: Regenerate.
1529         * configure.tgt: Handle crx-*-elf*.
1530         * emulparams/elf32crx.sh: New file.
1531         * emultempl/crxelf.em: New file.
1532         * scripttempl/elf32crx.sc: New file.
1533         * NEWS: Mention new target.
1534
1535 2004-07-06  Nick Clifton  <nickc@redhat.com>
1536
1537         * Makefile.am: Add eshlsymbian.c.
1538         * Makefile.in: Regenerate.
1539         * configure.tgt: Add sh*-symbian-elf target.
1540         * emulparams/shlsymbian.sh: New file.  Configure the
1541         sh-symbian-elf linker scripts.
1542         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
1543         template for the sh-symbian-elf target.
1544
1545 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1546
1547         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1548         * emulparams/hppalinux.sh: Likewise.
1549         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1550         data segment and PLT_BEFORE_GOT is defined.
1551
1552 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
1553
1554         * ld.texinfo (WIN32): Document PE weak symbols.
1555
1556 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1557
1558         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1559
1560 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
1561
1562         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1563         the section.
1564
1565 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
1566
1567         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1568         size in rawsize.
1569
1570 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
1571
1572         * ldlang.c (print_output_section_statement): Don't print size before
1573         relaxation.
1574         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
1575
1576         * ldexp.c (fold_name): .. See below.
1577         * ldlang.c (section_already_linked, print_output_section_statement,
1578         print_input_section, insert_pad, size_input_section,
1579         lang_check_section_addresses, lang_size_sections_1,
1580         lang_size_sections, lang_do_assignments_1, lang_set_startof,
1581         lang_one_common, lang_reset_memory_regions, lang_process,
1582         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1583         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1584         * pe-dll.c (process_def_file, generate_reloc): ..
1585         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1586         gld${EMULATION_NAME}_before_allocation): ..
1587         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1588         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1589         sh64_elf_${EMULATION_NAME}_after_allocation): ..
1590         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1591         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1592         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1593         "size" instead of "_raw_size" and "_cooked_size".  Expand
1594         bfd_section_size macro invocations.
1595
1596 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1597
1598         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1599         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1600         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1601         ___crt_xt_end__.
1602         (.tls): Define ___tls_start__ and ___tls_end__.
1603
1604 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
1605
1606         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1607
1608 2004-06-18  Adam Nemet  <anemet@lnxw.com>
1609
1610         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1611         * configure: Regenerate.
1612
1613 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
1614
1615         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1616         .gcc_except_table output sections lost accidentally with
1617         -z relro patch.
1618
1619 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
1620
1621         * ldwrite.c (build_link_order): Use bfd_get_section_size
1622         instead of bfd_get_section_size_before_reloc or _raw_size.
1623         * pe-dll.c (process_def_file): Likewise.
1624
1625 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
1626
1627         From Richard Wirth <r.wirth@wirthware.de>
1628         * ldlang.c (lang_finish): Don't free lang_definedness_table.
1629
1630 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
1631
1632         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1633         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1634
1635 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
1636
1637         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
1638         throughout file.
1639         * lexsup.c: Formatting.  Wrap long lines.
1640         * ldwrite.c: Update copyright date.
1641
1642         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1643         (output_section_callback): Nor SEC_KEEP here.
1644         (gc_section_callback): Twiddle SEC_EXCLUDE here.
1645         (lang_gc_wild): Delete.  Fold into..
1646         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
1647         collecting.
1648         (lang_process): Always call lang_gc_sections.
1649         (lang_place_orphans): Handle SEC_EXCLUDE sections.
1650         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1651         SEC_EXCLUDE code.
1652
1653 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
1654
1655         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1656         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1657         * ldlang.c (lang_add_section): Likewise.
1658
1659 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
1660
1661         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1662         sections when doing a final link.  Clear SEC_EXCLUDE when doing
1663         a relocable link, except for SEC_DEBUGGING sections.
1664         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1665         same condition here to drop SEC_EXCLUDE orphan sections.
1666
1667 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
1668
1669         * ldlang.c (lang_process): Call bfd_merge_sections later, and
1670         only when not a relocatable link.
1671         (print_input_section): Handle SEC_EXCLUDE sections.
1672         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1673         (lang_do_assignments_1): Likewise.
1674         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1675         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1676         * emultempl/hppaelf.em (build_section_lists): Likewise.
1677         * emultempl/ppc64elf.em (build_toc_list): Likewise.
1678         (build_section_lists): Likewise.
1679
1680 2004-05-23  Andreas Schwab  <schwab@suse.de>
1681
1682         * ld.texinfo (Options): Fix typo in last change.
1683
1684 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
1685
1686         * ld.h (ld_config_type): Add new field: hash_table_size.
1687         * ldmain.c: Initialise the new field to zero.  If it is non-zero
1688         after parsing the linker's command line call
1689         bfd_hash_set_default_size.
1690         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1691         (ld_options): Add hash-size.
1692         (parse_args): Parse --hash-size option.  Allow
1693         --reduce-memory-overheads to set the default hash table size as
1694         well.
1695         * ld.texinfo: Document the new switch.  Also mention that
1696         --reduce-memory-overheads can affect the hash table size.
1697         * NEWS: Mention the new feature.
1698
1699 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
1700
1701         * NEWS: Mention new linker map file generation and the
1702         --reduce-memory-overheads option.
1703         * ld.texinfo: Document --reduce-memory-overheads option.
1704         * ld.h (map_symbol_def): New struct.
1705         (struct user_section_struct, section_userdata_type): Rename to:
1706         (struct lean_user_section_struct, lean_section_userdata_type).
1707         (struct fat_user_section_struct, fat_section_userdata_type): New.
1708         (SECTION_USERDATA_SIZE): Define.
1709         (args_type): New member reduce_memory_overheads.
1710         * ldlang.c (map_obstack): New static variable.
1711         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1712         (lang_map): Unless command_line.reduce_memory_overheads is set,
1713         initialize lists of defined symbols for each section.
1714         (print_input_section): Unless command_line.reduce_memory_overheads
1715         is set, use print_all_symbols.
1716         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1717         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1718         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1719         (ld_options): Add entry for --reduce-memory-overheads.
1720         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1721
1722 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
1723
1724         * ldgram.y (sect_constraint): New.
1725         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1726         (section): Add sect_constraint.  Pass additional argument
1727         to lang_enter_output_section_statement.
1728         * mri.c (mri_draw_tree): Pass additional argument to
1729         lang_enter_output_section_statement.
1730         * emultempl/pe.em (place_orphan): Likewise.
1731         (output_prev_sec_find): Disregard output section statements with
1732         constraint == -1.
1733         * emultempl/mmo.em (output_prev_sec_find): Likewise.
1734         (mmo_place_orphan): Pass additional argument to
1735         lang_enter_output_section_statement.
1736         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1737         statements with constraint == -1.
1738         (place_orphan): Pass additional argument to
1739         lang_enter_output_section_statement.
1740         * ldlang.c (lang_enter_overlay_section): Likewise.
1741         (lang_output_section_find_1): New.
1742         (lang_output_section_find): Use it.
1743         (lang_output_section_statement_lookup_1): New.
1744         (lang_output_section_statement_lookup): Use it.
1745         (check_section_callback, check_input_sections): New.
1746         (map_input_to_output_sections): Check if all input sections
1747         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1748         (strip_excluded_output_sections): Disregard output section statements
1749         with constraint == -1.
1750         (lang_record_phdrs): Likewise.
1751         (lang_enter_output_section_statement): Add constraint argument.
1752         Use lang_output_section_statement_lookup_1.
1753         * ldlang.h (lang_output_section_statement_type): Add constraint
1754         and all_input_readonly fields.
1755         (lang_enter_output_section_statement): Adjust prototype.
1756         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1757         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1758         segment if all input sections are readonly.
1759
1760 2004-05-19  Adam Nemet  <anemet@lnxw.com>
1761
1762         * scripttempl/i386lynx.sc: Remove file.
1763
1764 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
1765
1766         * ld.texinfo (Output Section Address): Correct subsection name.
1767
1768 2004-05-17  Adam Nemet  <anemet@lnxw.com>
1769
1770         * configure.tgt (powerpc-*-lynxos* case): New case.
1771         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1772         * emulparams/ppclynx.sh: New file.
1773         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1774         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1775         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1776         (eppclynx.c): New rule.
1777         * Makefile.in: Regenerate.
1778
1779 2004-05-13  Joel Sherrill <joel@oarcorp.com>
1780
1781         * configure.tgt (or32-*-rtems*): Switch to elf and
1782         support versioned targets.
1783
1784 2004-05-13  Nick Clifton  <nickc@redhat.com>
1785
1786         * po/fr.po: Updated French translation.
1787
1788 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
1789
1790         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1791         for binaries, -shared and -pie.
1792         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1793         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1794         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1795         (OTHER_RELRO_SECTIONS): ... this.
1796         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1797         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1798         -z relro and -z norelro.
1799         (gld${EMULATION_NAME}_list_options): Add it to usage.
1800         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1801         -z relro scripts when appropriate.
1802         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1803         Create separate .got.plt section if SEPARATE_GOTPLT.
1804         Move sections which are only written during relocation handling
1805         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
1806         before .data.  Add DATA_SEGMENT_RELRO_END directive.
1807         Include OTHER_RELRO_SECTIONS.
1808         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1809         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1810         (fold_unary): Likewise.
1811         (fold_binary): Handle -z relro.
1812         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1813         exp_dataseg_relro_adjust phases.  Add relro_end field.
1814         * ldmain.c (main): Initialize link_info.relro to FALSE.
1815         * ldlang.c (lang_size_sections): Handle -z relro.
1816
1817 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1818
1819         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1820
1821 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
1822
1823         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1824         before printing it with %W.
1825
1826 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1827             DJ Delorie  <dj@redhat.com>
1828
1829         * emultempl/pe.em (real_flags): New static.
1830         (OPTION_LARGE_ADDRESS_AWARE): New define.
1831         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1832         (gld_${EMULATION_NAME}_list_options): Likewise.
1833         (gld${EMULATION_NAME}_handle_option): Likewise.
1834         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1835         * ld.texinfo: Document it.
1836         * NEWS: Mention it.
1837
1838 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1839
1840         * NEWS: Mention DWARF 2 support for i386pe.
1841
1842 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
1843
1844         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1845         elf32-frvfdpic.
1846
1847 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
1848
1849         * ldlang.c (unique_section_p): Pass section parm, return true on
1850         group sections.
1851         (output_section_callback): Adjust.
1852         * ldlang.h (unique_section_p): Update prototype.
1853         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1854
1855 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
1856
1857         * ld.texinfo (--gc-sections): Remove restriction for
1858         dynamic linking.
1859
1860 2004-04-29  Brian Ford  <ford@vss.fsi.com>
1861
1862         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1863         for DWARF 2/3.  Update stab section's syntax.
1864
1865 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
1866
1867         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1868         (fill_edata): Correct pointer arithmetic.
1869
1870 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
1871
1872         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1873         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1874         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1875         (EXTRA_EM_FILE): Use mipsecoff.em
1876         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1877         (EXTRA_EM_FILE): Use mipsecoff.em
1878         * emultempl/mipsecoff.em: Restructure to be included as an
1879         extra emulation file.
1880         (check_sections, gld${EMULATION_NAME}_after_open)
1881         (gld${EMULATION_NAME}_after_allocation)
1882         (gld${EMULATION_NAME}_get_script)
1883         (ld_${EMULATION_NAME}_emulation): Remove
1884         (gld${EMULATION_NAME}_before_parse): Rename to...
1885         (mipsecoff_before_parse): This.
1886         (LDEMUL_BEFORE_PARSE): Define.
1887         * emultempl/mipself.em: Remove file.
1888         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1889         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1890         these symbols.
1891         * Makefile.am: Remove dependencies on emultempl/mipself.em.
1892         * Makefile.in: Regenerate.
1893
1894 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
1895
1896         * ld.texinfo (synthesizing on H8/300): Information about linker
1897         relaxation support for bit manipulation instructions and system
1898         control instructions is added.
1899
1900 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
1901
1902         * NEWS: Mention change in DEFINED semantics.
1903
1904 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
1905
1906         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1907         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1908         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1909
1910 2004-04-21  Ben Elliston  <bje@au.ibm.com>
1911
1912         * ld.texinfo (Simple Example): Add missing punctuation.
1913
1914 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
1915
1916         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1917
1918 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
1919
1920         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1921         specially.
1922
1923 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
1924
1925         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
1926         with default priority. Likewise for dtors.
1927
1928 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1929
1930         * configure.host: Remove mips*-dec-bsd* target.
1931         * configure.tgt: Likewise.
1932
1933 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
1934
1935         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1936         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1937         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1938         * emultempl/irix.em: New file.
1939         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1940         dependencies.
1941         * Makefile.in: Regenerate.
1942
1943 2004-04-01  Paul Brook  <paul@codesourcery.com>
1944
1945         * emultempl/armelf.em (byteswap_code): Add.
1946         (arm_elf_before_allocation): Pass extra parameter.
1947         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1948         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1949         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1950         * emultempl/armelf_oabi.em: Pass extra parameter.
1951         * ld.texinfo: Document --be8.
1952
1953 2004-03-30  Stan Shebs  <shebs@apple.com>
1954
1955         Remove long-obsolete MPW support.
1956         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1957         * Makefile.am (mpw): Remove file-presynthesizing actions.
1958         * Makefile.in: Likewise.
1959         * ldfile.c (slash): Remove MPW case.
1960         * ldlex.l [MPW]: Remove unused definition.
1961
1962 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
1963
1964         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1965         (eelf32cr16c.c): New target.
1966         * Makefile.in: Regenerate.
1967         * configure.tgt: Handle cr16c-*-elf*.
1968         * emulparams/elf32cr16c.sh: New file.
1969         * scripttempl/elfcr16c.sc: Likewise
1970         * NEWS: Mention support for new target.
1971
1972 2004-03-30  Nick Clifton  <nickc@redhat.com>
1973
1974         * po/sv.po: Updated Swedish translation.
1975
1976 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
1977
1978         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1979         * emultempl/hppaelf.em: Likewise.
1980         * emultempl/ppc64elf.em: Likewise.
1981         * emultempl/sh64elf.em: Likewise.
1982
1983 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
1984
1985         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1986         size_dynamic_sections call.
1987
1988 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
1989
1990         PR 51.
1991         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1992         link_info.wrap_char.
1993
1994 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1995
1996         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1997         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1998
1999 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
2000
2001         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2002
2003 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
2004
2005         * config.in: Regenerate.
2006         * po/ld.pot: Regenerate.
2007
2008 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
2009
2010         * ld.texinfo: Add --as-needed doco.
2011         * ldmain.c (as_needed): New global var.
2012         * ldmain.h (as_needed): Declare.
2013         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2014         OPTION_NO_AS_NEEDED.
2015         (ld_options): Likewise.
2016         (parse_args): Handle them.
2017         * ldlang.h (lang_input_statement_type): Add as_needed field.
2018         * ldlang.c (new_afile): Set p->as_needed.
2019         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2020         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2021         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2022
2023         * ldlang.c (open_input_bfds): Remove useless cast.
2024         (lang_do_assignments_1): Likewise.
2025         (lang_for_each_input_section): Delete.
2026
2027 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2028
2029         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
2030
2031 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
2032
2033         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2034         private when building implib.
2035
2036 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
2037
2038         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2039         SEC_THREAD_LOCAL.
2040         (IGNORE_SECTION): Ignore .tbss sections too.
2041         (lang_size_sections_1): .tbss sections do not advance dot.
2042
2043 2004-03-01  Andreas Schwab  <schwab@suse.de>
2044
2045         * ld.texinfo (Options): Fix example for --wrap.
2046
2047 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
2048
2049         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2050         not NULL.
2051
2052 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
2053
2054         * ldlang.c (lang_check): Use %P, not %E, in error message.
2055
2056 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
2057
2058         * ldlang.h (struct lang_output_section_state): Change processed
2059         field's type.
2060         * ldexp.c (check, invalid): Remove.
2061         (fold_name): Move valid_p assignments. Create undefined symbol
2062         when needed. Directly exampine section's processd flag.
2063         * ldlang.c (lang_output_section_statement_lookup): Adjust
2064         processed field init.
2065         (lang_size_sections_1): Allow LOADADDR when determining section's
2066         VMA. Adjust error message. Fold data statement's expr.
2067         (lang_size_sections): Correctly increment lang_statement_iteration.
2068
2069 2004-02-23  Alan Modra <amodra@bigpond.net.au>
2070
2071         * ldexp.c (fold_tree): Follow indirect symbols.
2072
2073 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
2074
2075         * ldgram.y (exp): Add two operand ALIGN.
2076         * ldexp.c (fold_binary): Add ALIGN_K case.
2077         * ld.texinfo (ALIGN): Document two operand version.
2078
2079 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
2080
2081         * ldlang.c (map_input_to_output_sections): Initialize sections
2082         mentioned in a data statement expression.
2083         (lang_do_assignments_1): Add data statement's expression's
2084         section's vma.
2085
2086 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
2087
2088         * ldgram.y (statement_anywhere): Add assert rule.
2089         * ldlang.c (exp_init_os): Add assert case.
2090
2091 2004-02-14  Andrew Cagney  <cagney@redhat.com>
2092
2093         * ldmain.c (remove_output): Call bfd_cache_close.
2094
2095 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
2096
2097         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2098         .MIPS.content* and .MIPS.events* sections.
2099
2100 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
2101
2102         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2103         .note.gnu.arm.ident to after allocated sections.  Mark its
2104         address as 0.
2105
2106 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
2107
2108         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2109         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2110         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2111         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2112         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2113
2114 2004-02-05  Nick Clifton  <nickc@redhat.com>
2115
2116         * emultempl/pe.em (_after_open): Fix typo in previous delta.
2117
2118 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
2119
2120         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2121
2122 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
2123
2124         * genscripts.sh: Fix typo.
2125
2126         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2127
2128 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
2129
2130         * emulparams/elf64_ia64.sh: Put .rela.opd into
2131         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2132
2133 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
2134
2135         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2136         * ld.texinfo (--omagic): Note that writable text section
2137         does not conform to published PE-COFF specs.
2138         (--enable-auto-import): Likewise.
2139
2140 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
2141
2142         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2143
2144 2004-01-13  Nick Clifton  <nickc@redhat.com>
2145
2146         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2147         which if true will prevent the LMA region being used as a
2148         replacement for a default VMA region.
2149         (lang_leave_output_section_statement): Pass extra parameter.
2150         (lang_leave_overlay): Likewise.
2151         * ld.texinfo (Output Section LMA): Document that the LMA
2152         region can be set to the VMA region if no VMA has been set.
2153         * ldlang.h (struct lang_output_section_phdr_list): Create a
2154         typedef for this type.  Minor formatting fixes.
2155
2156 2004-01-13  Nick Clifton  <nickc@redhat.com>
2157
2158         * ldlang.c (lang_size_sections_1): If dot is advanced, then
2159         assume that the section should be allocated.
2160
2161 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
2162
2163         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2164         sections.  Do ignore SEC_NEVER_LOAD sections.
2165         (lang_size_sections_1): Remove test made redundant with the above.
2166
2167 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
2168
2169         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2170         program_header_size.
2171
2172 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
2173
2174         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
2175         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2176         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
2177         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2178         (MAXPAGESIZE): Set to 64Kb.
2179         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2180         __ROFIXUP_END__.  Don't map .rofixup.got any more.
2181         * emulparams/elf32frv.sh (NOP): Set.
2182         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
2183         * configure.tgt: Add frv-*-*linux*.
2184         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
2185         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2186         (eelf32frvfd.c): New.
2187         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2188         * emulparams/elf32frv.sh: Reverted previous two patches.
2189         * emulparams/elf32frvfd.sh: New.
2190         * Makefile.in: Rebuilt.
2191         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
2192         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2193         .rofixup.got to .rofixup.
2194         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
2195         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2196         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2197
2198 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
2199
2200         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2201         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2202
2203 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
2204
2205         * ldexp.c (align_n): Make static.
2206         * ldexp.h (align_n): Delete declaration.
2207         * ldlang.h (lang_enter_output_section_statement): Remove
2208         block_value param.
2209         * ldlang.c (lang_enter_output_section_statement): Likewise.
2210         (TO_ADDR, TO_SIZE): Define.
2211         (opb_shift): New var.
2212         (init_opb): New function.
2213         (print_input_section): Call init_opb and use TO_ADDR.
2214         (print_data_statement, print_reloc_statement): Likewise.
2215         (print_padding_statement): Likewise.
2216         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2217         (lang_check_section_addresses): Likewise.
2218         (lang_size_sections_1): Likewise.
2219         (lang_do_assignments_1): Likewise.
2220         (lang_set_startof): Likewise.
2221         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
2222         (lang_process): Call init_opb.
2223         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2224         (lang_enter_overlay_section): Adjust
2225         lang_enter_output_section_statement call.
2226         * ldgram.y: Likewise.
2227         * mri.c (mri_draw_tree): Likewise.
2228         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2229         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2230         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2231
2232         * ldfile.c (ldfile_set_output_arch): Add defarch param.
2233         * ldfile.h (ldfile_set_output_arch): Ditto.
2234         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2235         ldfile_set_output_arch.
2236         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2237         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2238         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2239         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2240         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2241         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2242         * ldgram.y: Adjust ldfile_set_output_arch call.
2243         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2244         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2245         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2246         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2247         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2248         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2249         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2250
2251 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
2252
2253         * configure.tgt: Add m68k-uClinux target.
2254
2255 For older changes see ChangeLog-0203
2256 \f
2257 Local Variables:
2258 mode: change-log
2259 left-margin: 8
2260 fill-column: 74
2261 version-control: never
2262 End: