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