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