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