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