60ff9b387184741d258343b7eb497d94ed809099
[external/binutils.git] / ld / ChangeLog
1 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
2
3         * ld.texinfo (Forced Output Alignment): Specify that this is an
4         alignment increase, not an override.
5         * ldlang.c (init_os): Set output section alignment here..
6         (lang_add_section): ..rather than here.
7         (lang_size_sections_1): Consolidate alignment code.  Warn if section
8         alignment affects start address when explicit address given.
9
10 2005-11-07  Steve Ellcey  <sje@cup.hp.com>
11
12         * configure: Regenerate after modifying bfd/warning.m4.
13
14 2005-11-07  Olaf Hering  <olh@suse.de>
15
16         * ldmain.c (main): Add \n to error message.
17
18 2005-11-04  Alan Modra  <amodra@bigpond.net.au>
19
20         * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
21         (output_statement_newfunc): Rewrite.
22         (lang_output_section_find_1): Merge into..
23         (lang_output_section_find): ..here.
24         (lang_output_section_statement_lookup_1): Rewrite to handle
25         multiple sections with the same name.
26         (output_statement_table_init): Commonise error message.
27         (lang_init, open_output): Likewise.
28
29 2005-11-03  Paul Brook  <paul@codesourcery.com>
30
31         * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
32         * scripttempl/armbpabi.sc: Make init/fini array consistent with
33         elf.sc.
34         * scripttempl/elf32sh-symbian.sc: Ditto.
35         * scripttempl/elfxtensa.sc: Ditto.
36
37 2005-11-03  Alan Modra  <amodra@bigpond.net.au>
38
39         * ldlang.h (lang_output_section_statement_type): Rearrange.  Remove
40         memspec.  Make "processed" a bitfield.
41         (lang_data_statement_type, lang_reloc_statement_type): Rename
42         output_vma to output_offset.
43         * ldlang.c (lang_output_section_statement_lookup_1): Init
44         all_input_readonly.  Don't init memspec.
45         (init_os): Remove incorrect comment.
46         (print_data_statement, print_reloc_statement): Adjust for
47         lang_data_statement_type and lang_reloc_statement_type change.
48         (lang_size_sections_1, lang_add_reloc): Likewise.
49         * ldwrite.c (build_link_order): Likewise.
50
51 2005-10-30  Mark Mitchell  <mark@codesourcery.com>
52
53         * lexsup.c (help): Document "@FILE".
54
55 2005-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56
57         * Makefile.am: Run "make dep-am".
58         * Makefile.in: Regenerated.
59
60         * dep-in.sed: Replace " ./" with " ".
61
62 2005-10-25  Arnold Metselaar  <arnold.metselaar@planet.nl>
63
64         * Makefile.am: Add support for Z80
65         * Makefile.in: Regenerated
66         * configure.tgt: Add z80-*-coff
67         * emulparams/z80.sh: New file.
68         * emultempl/z80.em: New file.
69         * scripttempl/z80.sc New file.
70         * NEWS: Mention this new support.
71
72 2005-10-25  Alan Modra  <amodra@bigpond.net.au>
73
74         * po/ld.pot: Regenerate.
75
76 2005-10-25  Chris Metcalf <cdmetcalf@comcast.net>
77
78         * ld.texinfo (--reduce-memory-overheads): Fix typo.
79
80 2005-10-23  H.J. Lu  <hongjiu.lu@intel.com>
81
82         PR ld/1487
83         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
84         bfd_match_sections_by_type to match section types.
85
86         * ldlang.c (init_os): Take the input section. Call
87         bfd_init_private_section_data if the input section isn't NULL.
88         (exp_init_os): Pass NULL to init_os.
89         (map_input_to_output_sections): Likewise.
90         (lang_add_section): Pass the input section to init_os.
91
92 2005-10-19  Paul Brook  <paul@codesourcery.com>
93
94         * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
95
96 2005-10-15  H.J. Lu  <hongjiu.lu@intel.com>
97
98         PR ld/1467
99         * emultempl/elf32.em: Include "elf-bfd.h".
100         (gld${EMULATION_NAME}_place_orphan): Check section type and
101         don't use section name for ELF input sections.
102
103         * ld.texinfo: Document orphan section processing.
104
105         * ldlang.c (lang_output_section_find_by_flags): Match section
106         types by calling bfd_match_sections_by_type.
107
108 2005-10-13  Mark Mitchell  <mark@codesourcery.com>
109
110         * ld.texino: Describe double-quoted string syntax for version
111         nodes.
112         * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
113         * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
114         Adjust calls to lang_new_vers_pattern to pass literal_p argument.
115         * ldlang.c (lang_vers_match): Fix indentation.  Do not glob-match
116         version nodes without a pattern.
117         (lang_new_vers_pattern): Add literal_p parameter.
118         (lang_do_version_exports_section): Pass it.
119
120 2005-10-12  Mark Mitchell  <mark@codesourcery.com>
121
122         * NEWS: Mention @file.
123
124 2005-10-05  H.J. Lu  <hongjiu.lu@intel.com>
125
126         PR ld/1396
127         * ldcref.c (check_refs): Accept bfd_boolean.
128         (check_local_sym_xref): Pass FALSE to check_refs.
129         (check_nocrossref): Pass TRUE to check_refs.
130         (check_refs_info): Add bfd_boolean.
131         (check_refs): Add bfd_boolean to check_refs_info.
132         (check_reloc_refs): Match relocations with proper symbols.
133
134         * ldmisc.c (vfinfo): Don't add extra ":\n".
135
136 2005-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
137
138         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
139         default entry symbol to ENTRY here.
140         * scripttempl/pe.sc: Not here.
141
142 2005-09-30  James E Wilson  <wilson@specifix.com>
143
144         * ldlang.c (lang_startup): Add missing ": " to einfo call.
145
146 2005-09-30  H.J. Lu  <hongjiu.lu@intel.com>
147
148         * Makefile.am: Run "make dep-am".
149         * Makefile.in: Regenerated.
150         * aclocal.m4: Likewise.
151
152 2005-09-30  H.J. Lu  <hongjiu.lu@intel.com>
153
154         * ldlang.c (output_statement_hash_entry): New type.
155         (output_statement_table): New variable for hash table.
156         (output_statement_newfunc): New function.
157         (output_statement_table_init): Likewise.
158         (output_statement_table_free): Likewise.
159         (lang_init): Call output_statement_table_init.
160         (lang_finish): Renamed to ...
161         (lang_end): This.
162         (lang_process): Updated.
163         (lang_finish): New function.
164         (lang_output_section_find_1): Use hash table.
165         (lang_output_section_statement_lookup_1): Likewise.
166
167         * ldlang.h (lang_finish): New.
168
169         * ldmain.c (main): Call lang_finish.
170
171 2005-09-30  Mark Mitchell  <mark@codesourcery.com>
172
173         * ldmain.c (main): Use expandargv.
174
175 2005-09-30  Catherine Moore  <clm@cm00re.com>
176
177         * Makefile.am: Bfin support.
178         * Makefile.in: Regenerated.
179         * aclocal.m4: Regenerated.
180         * configure.tgt: Bfin support.
181         * emulparams/bfin.sh: New file.
182         * emultempl/bfin.em: New file.
183
184 2005-09-30  Matthias Kurz  <mk@baerlap.north.de>
185
186         * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
187         version of <locale.h> when ENABLE_NLS is not defined.
188
189 2005-09-27  H.J. Lu  <hongjiu.lu@intel.com>
190
191         * ld.texinfo (ALIGN): Document it as forcing output section
192         alignment.
193
194         * ldgram.y (ALIGN): Support it for forcing output section
195         alignment.
196
197 2005-09-20  Alan Modra  <amodra@bigpond.net.au>
198
199         * ldlang.h (lang_output_section_statement_struct): Change type of
200         "processed" to bfd_boolean.
201         * ldexp.c (fold_name): Update references to os->processed.
202         * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
203         (lang_size_sections_1): Likewise.
204         (lang_reset_memory_regions): Likewise.
205
206         PR ld/1353
207         * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
208         so that unused output section statements affect dot.
209
210 2005-09-08  Jakub Jelinek  <jakub@redhat.com>
211
212         * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
213         and --eh-frame-hdr options.
214
215 2005-09-07  Alan Modra  <amodra@bigpond.net.au>
216
217         * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
218         (exp_fold_tree_1): Print assert message only in final stage of
219         linking.  Trigger assertion failure if expression cannot be
220         evaluated.
221
222 2005-09-06  H.J. Lu  <hongjiu.lu@intel.com>
223
224         PR ld/1263
225         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
226         --just-symbols on DSO.
227
228 2005-08-18  Alan Modra  <amodra@bigpond.net.au>
229
230         * scripttempl/elf.sc: Remove commented out defines.
231
232 2005-08-18  Alan Modra  <amodra@bigpond.net.au>
233
234         * emulparams/a29k.sh: Delete.
235         * emulparams/ebmon29k.sh: Delete.
236         * emulparams/sa29200.sh: Delete.
237         * Makefile.am: Remove a29k support.
238         * configure.tgt: Likewise.
239         * ld.texinfo: Likewise.
240         * Makefile.in: Regenerate.
241
242 2005-08-17  Jakub Jelinek  <jakub@redhat.com>
243
244         * ldgram.y (vers_defns): Don't lose pattern list before
245         extern NAME {}.  Handle global, local and extern symbol names.
246
247 2005-08-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
248
249         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
250         Don't increment rel_count of .cranges here.  Set rawsize of .cranges.
251
252 2005-08-10  Nick Clifton  <nickc@redhat.com>
253
254         * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
255         before lang_size_sections.
256
257 2005-08-09  Alan Modra  <amodra@bigpond.net.au>
258
259         * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
260
261 2005-08-08  Eric Doenges <Eric.Doenges@betty-tv.com>
262
263         * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
264         Add rules to build these emulations.
265         * Makefile.in: Regenerate.
266         * configure.tgt (msp430): Add the new variants to the
267         targ_extra_emuls list.
268         * emulparams/msp430all.sh: Add entries for the msp430x21xx
269         variants.
270
271 2005-08-05  H.J. Lu  <hongjiu.lu@intel.com>
272
273         * ld.texinfo: Document PROVIDE_HIDDEN.
274
275         * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
276         (exp_provide): Add and set hidden.
277
278         * ldexp.h (etree_type): Add hidden to assign.
279
280         * ldgram.y (PROVIDE_HIDDEN): New.
281         * ldlex.l (PROVIDE_HIDDEN): Likewise.
282
283         * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
284         symbols.
285
286 2005-08-05  Alan Modra  <amodra@bigpond.net.au>
287
288         * emulparams/elf_x86_64.sh: Revert last change.
289         * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
290
291 2005-08-05  Alan Modra  <amodra@bigpond.net.au>
292
293         * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
294         OTHER_END_SYMBOLS.
295         * emulparams/armelf_linux.sh: Likewise.
296         * emulparams/armnto.sh: Likewise.
297         * emulparams/criself.sh: Likewise.
298         * emulparams/elf32mcore.sh: Likewise.
299         * emulparams/criself.sh (OTHER_SYMBOLS): Define.
300         * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
301         (OTHER_END_SYMBOLS): Don't define.
302         * emulparams/elf32fr30.sh: Likewise.
303         * emulparams/elf64mmix.sh: Likewise.
304         * emulparams/hppa64linux.sh: Likewise.
305         * emulparams/m32relf.sh: Likewise.
306         * emulparams/vxworks.sh: Likewise.
307         * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
308         (OTHER_BSS_END_SYMBOLS): Add.
309         (OTHER_END_SYMBOLS): Move before current end sym definitions.
310         (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
311         * scripttempl/elf.sc: Likewise.
312         * scripttempl/elf32sh-symbian.sc: Likewise.
313         * scripttempl/elf_chaos.sc: Likewise.
314         * scripttempl/elfxtensa.sc: Likewise.
315         * scripttempl/iq2000.sc: Likewise.
316         * scripttempl/xstormy16.sc: Likewise.
317
318         * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
319         (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
320         (REL_LARGE, LARGE_SECTIONS): Add.
321         * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
322         (REL_LARGE): Define.
323         * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
324         (LARGE_SECTIONS): Define.
325         * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
326         (LARGE_SECTIONS): Define.
327
328 2005-08-04  Alan Modra  <amodra@bigpond.net.au>
329
330         * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
331         * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
332         (struct ld_emulation_xfer_struct): Remove do_assignments field.
333         * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
334         * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
335         (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
336         * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
337         * emultempl/armcoff.em: Likewise.
338         * emultempl/beos.em: Likewise.
339         * emultempl/generic.em: Likewise.
340         * emultempl/gld960.em: Likewise.
341         * emultempl/gld960c.em: Likewise.
342         * emultempl/linux.em: Likewise.
343         * emultempl/lnk960.em: Likewise.
344         * emultempl/m68kcoff.em: Likewise.
345         * emultempl/pe.em: Likewise.
346         * emultempl/sunos.em: Likewise.
347         * emultempl/ticoff.em: Likewise.
348         * emultempl/vanilla.em: Likewise.
349         * emultempl/elf32.em: Likewise.
350         (gld*_provide_bound_symbols): Delete.
351         (gld*_provide_init_fini_syms): Delete.
352         (gld*_before_allocation): Don't call ldemul_do_assignments.
353         * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
354         (LDEMUL_DO_ASSIGNMENTS): Delete.
355         * scripttempl/elf.sc: Provide init/fini syms.  Add SBSS_START_SYMBOLS,
356         SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
357
358 2005-08-04  Alan Modra  <amodra@bigpond.net.au>
359
360         * Makefile.am (eelf32m32c.c): Fix dependencies.
361         * Makefile.in: Regenerate.
362
363 2005-08-04  Alan Modra  <amodra@bigpond.net.au>
364
365         * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
366         (finish_default): New function.
367         * ldemul.h (finish_default): Declare.
368         * emultempl/aix.em (gld*_before_allocation): Call
369         before_allocation_default rather than strip_excluded_output_sections.
370         (ld_*_emulation): Init finish field to finish_default.
371         * emultempl/armcoff.em: Likewise.
372         * emultempl/beos.em: Likewise.
373         * emultempl/elf32.em: Likewise.
374         * emultempl/generic.em: Likewise.
375         * emultempl/gld960.em: Likewise.
376         * emultempl/gld960c.em: Likewise.
377         * emultempl/hppaelf.em: Likewise.
378         * emultempl/linux.em: Likewise.
379         * emultempl/lnk960.em: Likewise.
380         * emultempl/m68kcoff.em: Likewise.
381         * emultempl/mmo.em: Likewise.
382         * emultempl/pe.em: Likewise.
383         * emultempl/ppc64elf.em: Likewise.
384         * emultempl/sunos.em: Likewise.
385         * emultempl/ticoff.em: Likewise.
386         * emultempl/vanilla.em: Likewise.
387
388 2005-08-03  Alan Modra  <amodra@bigpond.net.au>
389
390         * ldlang.c (exp_init_os): Handle etree_provide.
391         * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
392         (OTHER_BSS_END_SYMBOLS): ..this.
393         * emulparams/armelf_linux.sh: Likewise.
394         * emulparams/armnto.sh: Likewise.
395         * emulparams/criself.sh: Likewise.
396         * emulparams/crislinux.sh: Likewise.
397         * emulparams/elf32frv.sh: Likewise.
398         * emulparams/elf32mcore.sh: Likewise.
399         * emulparams/elf32ppc.sh: Likewise.
400         * emulparams/elf32ppclinux.sh: Likewise.
401         * emulparams/hppa64linux.sh: Likewise.
402         * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
403         $OTHER_BSS_END_SYMBOLS.
404         * scripttempl/elf32sh-symbian.sc: Likewise.
405         * scripttempl/elf_chaos.sc: Likewise.
406         * scripttempl/iq2000.sc: Likewise.
407         * scripttempl/xstormy16.sc: Likewise.
408         * scripttempl/elf.sc: Likewise.  Delete __bss_start comment.
409         * scripttempl/elfxtensa.sc: Likewise.
410
411 2005-07-29  Nick Clifton  <nickc@redhat.com>
412
413         * ldmain.c (main): Allow -shared and -static to be used together.
414         * ld.texinfo (-static): Mention that it is allowed with -shared.
415
416 2005-07-28  DJ Delorie  <dj@redhat.com>
417
418         * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
419         unary & address operator, as that breaks GCC's strict aliasing
420         rules.
421
422 2005-07-25  Jan Hubicka  <jh@suse.cz>
423             H.J. Lu  <hongjiu.lu@intel.com>
424
425         * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
426
427         * scripttempl/elf.sc: Updated for large section support.
428
429 2005-07-21  Ralf Corsepius  <ralf.corsepius@rtems.org>
430
431         * configure.tgt: Remove i[3-7]86-*-rtemself*.
432         Remove sparc-*-rtemself*.
433
434 2005-07-21  Ben Elliston  <bje@gnu.org>
435
436         * ldgram.y (ldgram_want_filename): Remove unused static.
437
438 2005-07-20  DJ Delorie  <dj@redhat.com>
439
440         * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
441         (EXTRA_EM_FILE): New.
442
443 2005-07-19  H.J. Lu  <hongjiu.lu@intel.com>
444
445         * ldmain.c (main): Reindent.
446
447 2005-07-19  Paul Brook  <paul@codesourcery.com>
448
449         * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
450         to determine dynamic linker name.
451
452 2005-07-18  Nick Clifton  <nickc@redhat.com>
453
454         * configure.tgt: Restore alpha ordering to list of arches.
455
456 2005-07-16  Alan Modra  <amodra@bigpond.net.au>
457
458         * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
459         (gld*_before_allocation): Call ldemul_do_assignments rather than
460         gld*_provide_init_fini_syms directly.
461         * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
462         (ppc_do_assignments): New function.
463         (LDEMUL_AFTER_ALLOCATION): Don't define.
464         (LDEMUL_DO_ASSIGNMENTS): Define.
465
466 2005-07-16  Alan Modra  <amodra@bigpond.net.au>
467
468         * Makefile.am: Run "make dep-am".
469         (emipsidt.c, emipsidtl.c): Depend on generic.em.
470         * Makefile.in: Regenerate.
471
472 2005-07-15  Alan Modra  <amodra@bigpond.net.au>
473
474         * ldemul.c (ldemul_do_assignments): New function.
475         (do_assignments_default): New function.
476         * ldemul.h (ldemul_do_assignments): Declare.
477         (do_assignments_default): Declare.
478         (struct ld_emulation_xfer_struct): Add do_assignments.
479         * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
480         * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
481         * emultempl/armcoff.em: Likewise.
482         * emultempl/beos.em: Likewise.
483         * emultempl/generic.em: Likewise.
484         * emultempl/gld960.em: Likewise.
485         * emultempl/gld960c.em: Likewise.
486         * emultempl/linux.em: Likewise.
487         * emultempl/lnk960.em: Likewise.
488         * emultempl/m68kcoff.em: Likewise.
489         * emultempl/pe.em: Likewise.
490         * emultempl/sunos.em: Likewise.
491         * emultempl/ticoff.em: Likewise.
492         * emultempl/vanilla.em: Likewise.
493         * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
494         (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
495
496 2005-07-14  Jim Blandy  <jimb@redhat.com>
497
498         Add support for the Renesas M32C and M16C.
499         * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
500         (eelf32m32c.c): New target.
501         * Makefile.in: Regenerated.
502         * configure.tgt: Add case for m32c-*-elf.
503         * emulparams/elf32m32c.sh: New file.
504
505 2005-07-14  Alan Modra  <amodra@bigpond.net.au>
506
507         * ldlang.c (strip_excluded_output_sections): Don't call
508         bfd_gc_sections.
509         * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
510         (gld*_provide_init_fini_syms): Move.
511         (gld*_before_allocation): Call the above from here..
512         (gld*_finish): ..not here.  Call _bfd_elf_fix_excluded_sec_syms.
513         * emultempl/hppaelf.em (hppaelf_finish): Likewise.
514         * emultempl/ppc64elf.em (ppc_finish): Likewise.
515
516 2005-07-10  Ralf Corsepius <ralf.corsepius@rtems.org>
517
518         * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
519         i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
520         powerpcle-*-rtems*.
521
522 2005-07-09  Christopher Faylor  <cgf@timesys.com>
523
524         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
525         relocation by default.
526         (compute_dll_image_base): Avoid linking into cygwin dll address space.
527
528 2005-07-08  Alan Modra  <amodra@bigpond.net.au>
529
530         * ldlang.c (wild_sort): Formatting.
531         (strip_excluded_output_sections): Strip zero size sections here.
532         * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
533         (gld*_finish): Don't call the above.
534         * emultempl/hppaelf.em (hppaelf_finish): Likewise.
535         * emultempl/ppc64elf.em (ppc_finish): Likewise.
536
537 2005-07-05  Paul Brook  <paul@codesourcery.com>
538
539         * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
540         (eelf32ppcvxworks.o): Add dependencies.
541         * Makefile.in: Regenerate.
542         * configure.tgt: Add entry for powerpc-vxworks.
543         * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
544         * emulparams/elf32ppcvxworks.sh: New file.
545         * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
546         (is_ppc_elf32_vec): New function.
547         (ppc_after_open, ppc_before_allocation,
548         gld${EMULATION_NAME}_after_allocation): Use it.
549
550 2005-07-05  Peter S. Mazinger" <ps.m@gmx.net>
551
552         * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
553         * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
554
555 2005-07-04  Mike Frysinger <vapier@gentoo.org>
556
557         * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
558         name.
559
560 2005-07-04  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
561
562         * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
563
564 2005-07-04  Aurelien Jarno  <aurel32@debian.org>
565
566         * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
567
568 2005-07-01  Alan Modra  <amodra@bigpond.net.au>
569
570         * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
571
572 2005-06-30  Ben Elliston  <bje@gnu.org>
573
574         * Makefile.am (check-DEJAGNU): Don't search for expect.
575         * Makefile.in: Regenerate.
576
577 2005-06-30  Ben Elliston  <bje@gnu.org>
578
579         * Makefile.am (EXPECT): Set to expect.
580         (RUNTEST): Likewise, set to runtest.
581         * Makefile.in: Regenerate.
582
583 2005-06-16  Alexander Klimov  <alserkli@inbox.ru>
584
585         * emultempl/armelf.em: Add quotes to avoid a null test
586         expression.
587
588 2005-06-12  Daniel Jacobowitz  <dan@codesourcery.com>
589
590         * ld.texinfo (Command Line Options): Add @item for --hash-size.
591
592 2005-06-10  Alan Modra  <amodra@bigpond.net.au>
593
594         * scripttempt/elf.sc (.bss): Align tail in a way that allows
595         empty section pruning.
596
597 2005-06-09  Steve Ellcey  <sje@cup.hp.com>
598
599         * configure.in (AM_BINUTILS_WARNINGS): Add.
600         (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
601         * config.in: Regenerate.
602         * configure: Regenerate.
603         * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
604         * ldmain.c: Ditto.
605
606 2005-06-09  Alan Modra  <amodra@bigpond.net.au>
607
608         * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
609
610 2005-06-09  Alan Modra  <amodra@bigpond.net.au>
611
612         * ld.h (lang_phase_type): Move to..
613         * ldexp.h: ..here.  Add lang_mark_phase_enum.
614         (node_type): Remove etree_undef and etree_unspec.
615         (exp_data_seg): Delete.
616         (struct ldexp_control, expld): New.
617         (invalid, exp_mark_used_section): Delete.
618         (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
619         exp_get_abs_int): Update prototypes.
620         * ldexp.c (assigning_to_dot): Delete.
621         (expld): Define.
622         (make_abs): Operate directly on expld.result.  Update all callers.
623         (new_abs): Likewise.  Return void.
624         (new_rel_from_abs): Rename from new_rel_from_section.
625         (new_rel, new_rel_from_abs): Operate on expld.result and return void.
626         Update all callers.
627         (fold_unary): Operate on expld.result and return void.  Remove
628         "current_section", "allocation_done", "dot", "dotp" and "mark_used"
629         params.  Update all callers.
630         (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
631         (fold_unary <ALIGN_K>): Ensure alignment is absolute.
632         (fold_unary <ABSOLUTE>): Use make_abs.
633         (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
634         allocating_phase.
635         (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
636         (fold_binary <'%','/'>): Don't error if marking.
637         (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
638         marking.
639         (fold_name <NAME>): Remove FIXME; -R is handled correctly.  Don't
640         error when marking.
641         (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
642         (exp_fold_tree_1): Don't error when marking.
643         (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
644         (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
645         current section, instead check for NULL dotp.
646         (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
647         source unless the symbol is referenced and undefined.
648         (exp_fold_tree): Remove "allocation_done" and "dot" params.  Save
649         params to expld.
650         (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
651         and "mark_used" params.  Save params to expld.  Update all callers.
652         (exp_assop): Do without temp var.
653         (exp_print_tree <etree_undef>): Delete code.
654         (exp_get_vma): Remove "allocation_done" param.  Correct error return.
655         (exp_get_fill, exp_get_abs_int): Likewise.
656         (exp_get_value_int): Remove "allocation_done" param.
657         (exp_mark_used_section): Delete.
658         * ldgram.y (fill_exp): Update exp_get_fill call.
659         (origin_spec, length_spec): Update exp_get_vma call.
660         * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
661         (lang_mark_used_section_1, lang_mark_used_section): Delete.
662         (strip_excluded_output_sections): Call one_lang_size_sections_pass in
663         marking mode.  Merge old lang_mark_used_section code.  Correct handling
664         of output sections with excluded input sections and data statements.
665         Don't drop non-zero sized sections.  Don't zap os->bfd_section.
666         Do set SEC_EXCLUDE when appropriate.
667         (print_output_section_statement): Update for changed ldexp.c
668         interface.
669         (print_assignment, lang_size_sections_1): Likewise.
670         (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
671         (lang_new_phdr, lang_record_phdrs): Likewise.
672         (lang_size_sections): Likewise.
673         (insert_pad): Use following statement if it is a pad, rather than
674         creating a new one.
675         (lang_size_sections_1 <lang_output_section_statement_enum>): Do
676         process ignored output section to set vma and lma, but don't
677         update dot for these sections.  Don't error if marking.
678         (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
679         update dot for ignored sections.
680         (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
681         section with SEC_ALLOC.
682         (one_lang_size_sections_pass): New function.
683         (lang_size_sections): Remove first five params.  Set expld.phase on
684         entry and exit.   Use one_lang_size_sections_pass.
685         (lang_do_assignments): Remove all params.  Update all callers.
686         (lang_reset_memory_regions): Clear os->processed for all output
687         section statements.
688         * ldlang.h (lang_do_assignments): Update prototype.
689         (lang_size_sections): Likewise.
690         (one_lang_size_sections_pass): Declare.
691         * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
692         lang_size_sections and lang_do_assignments calls.
693         * emultempl/elf32.em (layout_sections_again): Likewise.
694         * emultempl/ppc64elf.em (ppc_before_allocation): Use
695         one_lang_size_sections_pass.
696
697 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
698
699         * emulparams/elf32ms1.sh: New.
700
701 2005-06-07  Eric Christopher  <echristo@redhat.com>
702
703         * Makefile.am (eelf32ms1.c): Use tab.
704         * Makefile.in: Regenerate.
705
706 2005-06-07  Aldy Hernandez  <aldyh@redhat.com>
707             Michael Snyder  <msnyder@redhat.com>
708             Stan Cox  <scox@redhat.com>
709
710         * configure.tgt: Same.
711
712         * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
713         (eelf32ms1.c): Add eelf32ms1.c rule.
714
715         * Makefile.in: Regenerate.
716
717 2005-06-06  Alan Modra  <amodra@bigpond.net.au>
718
719         * emultempl/ppc64elf.em (ppc_before_allocation): Always run
720         ppc64_elf_edit_opd.
721
722 2005-06-05  H.J. Lu  <hongjiu.lu@intel.com>
723
724         * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
725         section only if the symbol will be defined.
726
727 2005-06-04  H.J. Lu  <hongjiu.lu@intel.com>
728
729         PR 992
730         * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
731         section for etree_assign, etree_provide and etree_provided.
732         Call fold_binary on etree_binary.
733
734         * ldlang.c (lang_mark_used_section_1): Handle load base.
735
736 2005-06-03  Alan Modra  <amodra@bigpond.net.au>
737
738         * ldmain.c (link_callbacks): Add einfo.
739         (add_archive_element): Use passed info, not link_info.
740         (constructor_callback): Likewise.
741         (reloc_overflow): Don't handle null bfd specially.
742         (reloc_dangerous, unattached_reloc): Likewise.
743         * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
744         (vfinfo <C, D, G>): Handle null bfd.  Wrap comments.
745
746 2005-06-02  Alan Modra  <amodra@bigpond.net.au>
747
748         * ldexp.h (etree_value_type): Use "asection *" in place of
749         "struct lang_output_section_statement_struct *" for "section".
750         (exp_fold_tree): Likewise.
751         (exp_mark_used_section): Likewise.
752         * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
753         fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
754         exp_mark_used_section): Likewise for "current_section" param.
755         (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
756         exp_get_abs_int): Adjust for above changes.
757         * ldlang.c (lang_mark_used_section_1, print_assignment,
758         lang_size_sections_1, lang_do_assignments_1): Likewise.
759         * ldexp.c (fold_name): Init entire result struct.
760
761 2005-06-01  Maciej W. Rozycki  <macro@linux-mips.org>
762
763         * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
764
765 2005-05-31  Zack Weinberg  <zack@codesourcery.com>
766
767         * ldlang.c (entry_symbol_default): New file-scope global.
768         (lang_finish): Use it, not a hardwired "start".
769         (lang_default_entry): Set it.
770         * ldlang.h: Declare lang_default_entry.
771         * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
772         not lang_add_entry, to override default entry point symbol.
773
774 2005-05-29  Richard Henderson  <rth@redhat.com>
775
776         * emulparams/elf64alpha.sh (PLT): New.
777         (TEXT_PLT): New.
778         * emultempl/alphaelf.em (disable_relaxation): New.
779         (limit_32bit): Rename from elf64alpha_32bit; update all users.
780         (elf64_alpha_use_secureplt): Declare.
781         (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
782         (alpha_after_open): New.
783         (alpha_before_allocation): New.
784         (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
785         (PARSE_AND_LIST_LONGOPTS): Include them.
786         (PARSE_AND_LIST_OPTIONS): Likewise.
787         (PARSE_AND_LIST_ARGS_CASES): Likewise.
788         (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
789         * scripttempl/elf.sc (TEXT_PLT): New.
790         (PLT): Use it.
791
792 2005-05-27  Andreas Schwab  <schwab@suse.de>
793
794         * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
795
796 2005-05-24  Alan Modra  <amodra@bigpond.net.au>
797
798         * emultempl/ppc32elf.em (after_allocation): Don't call
799         ppc_elf_set_sdata_syms when relocatable.
800
801 2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
802
803         * Makefile.am (ld.1): Revert the last 2 changes.
804         (info-recursive): Depend on ld.1.
805         * Makefile.in: Regenerated.
806
807 2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
808
809         * Makefile.am (ld.1): Depend on "info" instead of
810         "configdoc.texi ldver.texi".
811         * Makefile.in: Regenerated.
812
813 2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
814
815         * Makefile.am (ld.1): Depend on "info".
816         * Makefile.in: Regenerated.
817
818 2005-05-19  Zack Weinberg  <zack@codesourcery.com>
819
820         * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
821         * Makefile.in: Regenerate.
822
823 2005-05-17  Zack Weinberg  <zack@codesourcery.com>
824
825         * ld-arm/mixed-app.d: Adjust expected disassembly a little.
826
827 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
828
829         * Makefile.am (ldver.texi): Don't use $<.
830         * Makefile.in: Regenerated.
831
832 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
833
834         * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
835         $(srcdir) before $(BFDDIR)/doc.
836         * Makefile.in: Regenerated.
837
838 2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>
839
840         PR 797
841         * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
842         take take a bfd_boolean, mark_used. Ignore assert failure if
843         mark_used is TRUE.
844         (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
845         (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
846         mark_used and pass down.
847         (fold_unary): Likewise.
848         (fold_binary): Likewise.
849         (fold_trinary): Likewise.
850         (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
851         (exp_trinop): Likewise.
852         (exp_unop): Likewise.
853         (exp_nameop): Likewise.
854         (exp_get_vma): Likewise.
855         (exp_get_fill): Likewise.
856         (exp_get_abs_int): Likewise.
857         (fold_name): Likewise. Set SEC_KEEP in output section flags.
858         (exp_mark_used_section): New.
859
860         * ldexp.h (exp_mark_used_section): New.
861
862         * ldlang.c (lang_output_section_statement_lookup_1): Set the
863         ignored field to FALSE.
864         (lang_mark_used_section_1): New.
865         (lang_mark_used_section): Call lang_mark_used_section_1.
866         (strip_excluded_output_sections): Call lang_mark_used_section
867         and check for unused sections.
868         (lang_size_sections_1): Skip an output section if it should
869         be ignored.
870         (lang_do_assignments_1): Likewise.
871         (lang_process): Don't call lang_mark_used_section here.
872
873         * ldlang.h (lang_output_section_statement_type): Change
874         all_input_readonly to bitfield. Add ignored.
875
876 2005-05-17  Lennert Buytenhek  <buytenh@wantstofly.org>
877             Peter S. Mazinger" <ps.m@gmx.net>
878
879         * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
880         * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
881
882 2005-05-17  Julian Brown <julian@codesourcery.com>
883
884         * ldlang.c (print_assignment): Do not rely upon a valid result
885         having a section associated with it.
886
887 2005-05-17  Nick Clifton  <nickc@redhat.com>
888
889         * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
890         see if the same value is being used on the rhs as on the lhs.
891         (print_assignment): Call scan_for_self_assignment and if it
892         returns true, do no display the result of the computation but
893         instead just the final value of the symbol on the lhs.
894         * ld.texinfo: Document this behaviour and provide an example of
895         when it will happen.
896
897 2005-05-15  Daniel Jacobowitz  <dan@codesourcery.com>
898
899         * Makefile.am (AM_MAKEINFOFLAGS): Define.
900         (TEXI2DVI): Define.
901         (ldver.texi): Depend on distributed files instead of built files.
902         (ld.info): Include $(srcdir) in the rule target.  Remove actions.
903         (ld.dvi): Remove actions.
904         (MAINTAINERCLEANFILES): Add configdoc.texi.
905         (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
906         (install-data-local): Renamed from install.
907         (Makefile): Remove explicit dependency.
908         * acinclude.m4: Remove obsolete code.
909         * configure.in: Update AC_PREREQ.  Remove extra $CONFIG_SHELL.
910         * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
911
912 2005-05-11  Bob Wilson  <bob.wilson@acm.org>
913
914         * scripttempl/elfxtensa.sc: Sync up with elf.sc.
915         * emulparams/elf32xtensa.sh (PLT, GOT): Define.
916
917 2005-05-11  Alan Modra  <amodra@bigpond.net.au>
918
919         * ldgram.y: Add SPECIAL token.
920         (sect_constraint): Handle SPECIAL.
921         * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
922         (map_input_to_output_sections): Likewise.
923         * ldlex.l (SPECIAL): Define.
924         * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
925         GOT, PLT, GOTPLT): Define.
926         * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
927         (ppc_after_open): New function.
928         (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
929         (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
930         (PARSE_AND_LIST_OPTIONS): Document them.
931         (PARSE_AND_LIST_ARGS_CASES): Handle them.
932         (LDEMUL_AFTER_OPEN): Define.
933         * scripttempl/elf.sc (PLT): Don't override existing define.
934         (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
935         placement rather than using NO_SMALL_DATA.  Emit GOTPLT for RELRO_NOW.
936
937 2005-05-10  Alan Modra  <amodra@bigpond.net.au>
938
939         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
940         (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
941         (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END.  Place after
942         DATA_SEGMENT_RELRO_END in script.
943
944 2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
945
946         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
947         Don't use a removed section.
948
949 2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
950
951         * ldmain.c (reloc_overflow): Use output_bfd if the symbol
952         is defined in the ABS section.
953
954 2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
955
956         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
957         Put back !link_info.relocatable.
958
959 2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
960
961         PR 878
962         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
963         Just check link_info.executable.
964
965 2005-05-06  Nick Clifton  <nickc@redhat.com>
966
967         * Update the address and phone number of the FSF organization in
968         the GPL notices in the following files:
969         aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
970         ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
971         ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
972         ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
973         ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
974         sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
975         emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
976         emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
977         emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
978         emultempl/ia64elf.em, emultempl/irix.em,  emultempl/linux.em,
979         emultempl/lnk960.em, emultempl/m68hc1xelf.em,
980         emultempl/m68kcoff.em, emultempl/m68kelf.em,
981         emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
982         emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
983         emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
984         emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
985         emultempl/vanilla.em, emultempl/xtensaelf.em
986
987 2005-05-05  H.J. Lu  <hongjiu.lu@intel.com>
988
989         * scripttempl/elf.sc: Document the usage of __bss_start.
990
991 2005-05-05  Paul Brook  <paul@codesourcery.com>
992
993         * Makefile.am: Add eelf_i386_vxworks.
994         * Makefile.in: Regenerate.
995         * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
996         * emulparams/elf_i386_vxworks.sh: New file.
997         * emulparams/vxworks.sh: New file.
998         * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
999
1000 2005-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1001
1002         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1003         Call _bfd_elf_provide_section_bound_symbols.
1004
1005 2005-05-04  Alan Modra  <amodra@bigpond.net.au>
1006
1007         * ldemul.c: Include bfdlink.h.
1008         (ldemul_before_allocation): Assume before_allocation is non-zero.
1009         (before_allocation_default): Call strip_excluded_output_sections.
1010         * ldlang.c (stripped_excluded_sections): New variable.
1011         (lang_add_section): Build input section list for each output
1012         section, attached via map_head and map_tail pointers.
1013         (strip_excluded_output_sections): Make global.  Traverse the
1014         input section lists to find which output sections can go.  Clear
1015         link_order pointers and set stripped_excluded_sections.
1016         (lang_process): Call strip_excluded_output_sections.
1017         * ldlang.h (strip_excluded_output_sections): Declare.
1018         * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1019         * emultempl/aix.em (before_allocation): Call
1020         strip_excluded_output_sections.
1021         * emultempl/armcoff.em (before_allocation): Likewise.
1022         * emultempl/beos.em (before_allocation): Likewise.
1023         * emultempl/linux.em (before_allocation): Likewise.
1024         * emultempl/pe.em (before_allocation): Likewise.
1025         * emultempl/sunos.em (before_allocation): Likewise.
1026         * emultempl/elf32.em (before_allocation): Likewise.  Call
1027         bfd_elf_size_dynsym_hash_dynstr too.
1028         * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1029         (ld_lnk960): Use before_allocation_default.
1030
1031 2005-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1032
1033         * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1034         Updated for bfd_section_list_remove change.
1035         * ldlang.c (lang_insert_orphan): Likewise.
1036         (strip_excluded_output_sections): Likewise.
1037         (sort_sections_by_lma): New.
1038         (lang_check_section_addresses): Sort the sections before
1039         checking addresses.
1040
1041 2005-04-29  Ralf Corsepius <ralf.corsepius@rtems.org>
1042
1043         * configure.tgt: Add h8300*-*-rtemscoff.
1044         Switch h8300*-*-rtems* to elf.
1045
1046 2005-04-29  Ben Elliston  <bje@au.ibm.com>
1047
1048         * ldgram.y (lang_memory_region_type): Make static.
1049         (ldgram_want_filename): Likewise.
1050         * ldemul.c (ld_emulation): Make static.
1051         * ldfile.h (ldfile_find_command_file): Remove extern.
1052         * ldfile.c (ldfile_find_command_file): Make static.
1053         * ldlang.h (unique_section_list): Remove extern declaration.
1054         * ldlang.c (unique_section_list): Make static.
1055         * mri.h (symbol_truncate): Remove extern declaration.
1056         * mri.c (symbol_truncate): Make static.
1057         (order, only_load, address, alias): Likewise.
1058         (alignment, subalignment): Likewise.
1059
1060 2005-04-27  H.J. Lu  <hongjiu.lu@intel.com>
1061
1062         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1063         Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1064         last SEC_ALLOC section if such a section doesn't exist.
1065
1066 2005-04-24  Mark Kettenis  <kettenis@gnu.org>
1067
1068         * configure.host: Add *-*-openbsd support.
1069
1070 2005-04-15  Julian Brown  <julian@codesourcery.com>
1071
1072         * ld.texinfo: Document --use-blx.
1073         * emultempl/armelf.em (use_blx): New variable.
1074         (arm_elf_create_output_section_statements): Communicate value of
1075         use_blx to bfd.
1076         (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1077         (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1078         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1079
1080 2005-04-14  Alan Modra  <amodra@bigpond.net.au>
1081
1082         * Makefile.am (NO_WERROR): Define.  Use instead of -Wno-error.
1083         * configure.in: Include ../bfd/warning.m4 contents.
1084         * Makefile.in: Regenerate.
1085         * configure: Regenerate.
1086
1087 2005-04-12  Alan Modra  <amodra@bigpond.net.au>
1088
1089         * Makefile.am: Run "make dep-am".
1090         (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1091         * Makefile.in: Regenerate.
1092         * config.in: Regenerate.
1093
1094 2005-04-11  Alan Modra  <amodra@bigpond.net.au>
1095
1096         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1097         as_needed libs that were not needed.
1098         (gld${EMULATION_NAME}_check_needed): Likewise.
1099
1100 2005-04-07  Nick Clifton  <nickc@redhat.com>
1101
1102         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
1103         ldfile.h can use the lang_input_statement type.
1104
1105 2005-04-06  Jakub Jelinek  <jakub@redhat.com>
1106
1107         * ldlang.c: Formatting.
1108         (walk_wild_consider_section): Remember return value from wildcardp.
1109         (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1110         (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1111
1112 2005-04-06  Robert O'Callahan  <rocallahan@novell.com>
1113
1114         * ld.h (lean_section_userdata_type): Remove.
1115         (fat_section_userdata_type): Remove file field.
1116         (SECTION_USERDATA_SIZE): Remove.
1117         * ldlang.c (init_os): Eliminate initialization of unused
1118         lean_section_userdata_type.
1119
1120         * ldlang.h (callback_t, walk_wild_section_handler_t): New
1121         typedefs.
1122         (struct lang_wild_statement_struct): Add walk_wild_section_handler
1123         and handler_data fields.
1124         * ldlang.c (callback_t): Removed.
1125         (walk_wild_consider_section, walk_wild_section_general,
1126         section_iterator_callback, find_section, is_simple_wild,
1127         match_simple_wild, walk_wild_section_specs1_wild0,
1128         walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1129         walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1130         wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1131         functions.
1132         (lang_add_wild): Call analyze_walk_wild_section_handler.
1133         (walk_wild_section): Renamed to walk_wild_section_general and
1134         created a wrapper function.
1135         (section_iterator_callback_data): New typedef.
1136
1137 2005-04-04  Nick Clifton  <nickc@redhat.com>
1138
1139         * configure.in: Add a check for <unistd.h> providing a prototype
1140         for getopt() which is compatible with the one in
1141         include/getopt.h.  If so then define HAVE_DECL_GETOPT.
1142         * configure: Regenerate.
1143         * config.in (HAVE_DECL_GETOPT): Add.
1144         * ldemul.c: Include config.h
1145         * lexsup.c: Likewise.
1146         * emultempl/elf32.sc: Likewise.
1147
1148 2005-03-29  Alan Modra  <amodra@bigpond.net.au>
1149
1150         * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1151         New function, extracted from static void gld${EMULATION_NAME}_finish.
1152         (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1153         (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1154         * emultempl/ppc64elf.em: Revert last change.
1155         (ppc_layout_sections_again): Use
1156         gld${EMULATION_NAME}_layout_sections_again.
1157         (ppc_finish): Don't call gld${EMULATION_NAME}_finish.  Instead call
1158         gld${EMULATION_NAME}_strip_empty_sections and
1159         gld${EMULATION_NAME}_provide_init_fini_syms.
1160         * emultempl/hppaelf.em: Similarly.
1161
1162 2005-03-29  Alan Modra  <amodra@bigpond.net.au>
1163
1164         * emultempl/ppc64elf.em (need_laying_out): Delete.  Remove all refs.
1165         (ppc_finish): Don't call bfd_elf_discard_info.
1166         * emultempl/hppaelf.em: Similarly.
1167
1168 2005-03-24  Nick Clifton  <nickc@redhat.com>
1169
1170         * po/fr.po: Updated French translation.
1171
1172 2005-03-23  Mike Frysinger  <vapier@gentoo.org>
1173             Nick Clifton  <nickc@redhat.com>
1174
1175         * configure.host: Accept any C library to accompany a GNU Linux
1176         implementation, not just the GNU C library.
1177         * configure.tgt: Likewise.
1178         * emultempl/elf32.em: Likewise.
1179
1180 2005-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1181
1182         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1183         (gld${EMULATION_NAME}_finish): Call
1184         gld${EMULATION_NAME}_provide_bound_symbols to provide
1185         __preinit_array_start, __preinit_array_end, __init_array_start,
1186         __init_array_end, __fini_array_start and __fini_array_end.
1187
1188         * scripttempl/elf.sc: Don't provide __preinit_array_start,
1189         __preinit_array_end, __init_array_start, __init_array_end,
1190         __fini_array_start nor __fini_array_end.
1191
1192 2005-03-23  Alan Modra  <amodra@bigpond.net.au>
1193
1194         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1195         SEC_EXCLUDE on .gnu.warning sections.
1196
1197 2005-03-22  Alan Modra  <amodra@bigpond.net.au>
1198
1199         * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1200
1201 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
1202
1203         * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1204         function.
1205         (LDEMUL_AFTER_ALLOCATION): Define.
1206
1207 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
1208
1209         * emultempl/ppc64elf.em (ppc_finish): Rename from
1210         gld${EMULATION_NAME}_finish.  Call gld${EMULATION_NAME}_finish.
1211         (LDEMUL_FINISH): Update.
1212         * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1213         * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1214
1215 2005-03-18  Julian Brown  <julian@codesourcery.com>
1216
1217         * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1218         .rel.fini_array.
1219         (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1220         (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1221
1222 2005-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1223
1224         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1225         bfd_section when removing unused empty output sections for
1226         non-relocatable link.
1227
1228 2005-03-19  Alan Modra  <amodra@bigpond.net.au>
1229
1230         * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1231         traversing the bfd section list to find pointer to new section.
1232
1233 2005-03-18  Alan Modra  <amodra@bigpond.net.au>
1234
1235         * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1236         input sections into .sdata and .sbss output respectively.
1237
1238 2005-03-16  David Heine  <dlheine@tensilica.com>
1239             Bob Wilson  <bob.wilson@acm.org>
1240
1241         * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1242         (lang_check_section_addresses): Ignore zero size sections here.
1243
1244 2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1245
1246         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1247         unused empty output sections for non-relocatable link.
1248
1249         * ld.h (args_type): Remove gc_sections.
1250
1251         * ldlang.c (lang_mark_used_section): New.
1252         (lang_gc_sections): Use link_info.gc_sections instead of
1253         command_line.gc_sections.
1254         * ldmain.c (main): Likewise.
1255         * lexsup.c (parse_args): Likewise.
1256         * ldlang.c (lang_process): Call lang_mark_used_section.
1257
1258         * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1259
1260 2005-03-16  Nick Clifton  <nickc@redhat.com>
1261             Ben Elliston  <bje@au.ibm.com>
1262
1263         * configure.in (werror): New switch: Add -Werror to the
1264         compiler command line.  Enabled by default.  Disable via
1265         --disable-werror.
1266         * configure: Regenerate.
1267
1268 2005-03-16  Alan Modra  <amodra@bigpond.net.au>
1269
1270         * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1271         (OTHER_RELRO_SECTIONS): Set this instead.
1272
1273 2005-03-15  Nick Clifton  <nickc@redhat.com>
1274
1275         * NEWS: Add cutoff for changes in 2.16 release.
1276
1277 2005-03-15  Mikkel Krautz  <krautz@gmail.com>
1278
1279         * configure.tgt (x86_64-elf): Add target.
1280
1281 2005-03-15  Alan Modra  <amodra@bigpond.net.au>
1282
1283         * po/es.po: Commit new Spanish translation.
1284
1285 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
1286
1287         * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1288         Tidy etree_assert case.
1289
1290 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
1291
1292         * po/tr.po: Commit new Turkish translation.
1293
1294 2005-03-11  Daniel Jacobowitz  <dan@codesourcery.com>
1295
1296         * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1297         * Makefile.in: Regenerated.
1298         * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1299
1300 2005-03-07  Nick Clifton  <nickc@redhat.com>
1301
1302         * po/fr.po: Updated translation.
1303
1304 2005-03-05  Alan Modra  <amodra@bigpond.net.au>
1305
1306         * po/ld.pot: Regenerate.
1307
1308 2005-03-02  Jan Beulich  <jbeulich@novell.com>
1309
1310         * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1311         * pe-dll.c (pe_dll_generate_implib): Likewise.
1312
1313 2005-02-24  Ben Elliston  <bje@au.ibm.com>
1314
1315         * ldfile.c: Remove GNU960 conditional code.
1316         * emultempl/gld960.em: Likewise.
1317         * emultempl/gld960c.em: Likewise.
1318         * emultempl/lnk960.em: Likewise.
1319
1320 2005-02-24  Nick Clifton  <nickc@redhat.com>
1321
1322         * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1323         empty string from calls to concat.
1324
1325 2005-02-23  Nick Clifton  <nickc@redhat.com>
1326
1327         * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1328         arguments passed to concat() with a NULL.
1329
1330         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1331         define types needed by ldfile.h
1332
1333 2005-02-23  Alan Modra  <amodra@bigpond.net.au>
1334
1335         * pe-dll.c: Warning fixes.
1336         * emultempl/sunos.em: Likewise.
1337
1338 2005-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
1339
1340         * ldlang.c (section_already_linked): Don't call
1341         bfd_section_already_linked for dynamic objects.
1342
1343 2005-02-22  Alan Modra  <amodra@bigpond.net.au>
1344
1345         * ldexp.c: Warning fixes.
1346         * ldwrite.c: Likewise.
1347         * emultempl/elf32.em: Likewise.
1348
1349 2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
1350
1351         * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1352         tic54x input only.
1353         (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1354         and ECOFF output only.
1355
1356 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
1357
1358         * config.in: Regenerate.
1359         * configure: Regenerate.
1360
1361 2005-02-17  Zack Weinberg  <zack@codesourcery.com>
1362
1363         * ldexp.c (assigning_to_dot): New global flag.
1364         (fold_name): If assigning_to_dot is true, object immediately to
1365         an undefined symbol.
1366         (exp_fold_tree): Set and clear assigning_to_dot around the
1367         recursive call to exp_fold_tree to process the right-hand side
1368         of an assignment to the location counter.
1369
1370 2005-02-17  Paul Brook  <paul@codesourcery.com>
1371
1372         * scripttempl/armbpabi.sc: Add dummy name to version block.
1373
1374 2005-02-17  Alan Modra  <amodra@bigpond.net.au>
1375
1376         * ldexp.c (new_abs): Init new.str.
1377
1378 2005-02-15  Mark Mitchell  <mark@codesourcery.com>
1379
1380         * configure.in (AC_CHECK_FUNCS): Add glob.
1381         * configure: Regenerated.
1382         * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1383         not defined.
1384         (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1385         if HAVE_GLOB is not defined.
1386
1387 2005-02-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1388
1389         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1390         lib_path if NATIVE is yes.
1391
1392 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
1393
1394         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1395         an error creating fake bfd fatal.
1396         (ppc_before_allocation): Continue on after errors.
1397         (gld${EMULATION_NAME}_finish): Likewise.
1398
1399 2005-02-15  Nick Clifton  <nickc@redhat.com>
1400
1401         * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1402         not declared.  It is not used and its presence causes a compile
1403         time warning.
1404
1405 2005-02-11  Zack Weinberg  <zack@codesourcery.com>
1406
1407         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1408         If st.st_ino is zero, do not treat the library as a duplicate.
1409
1410 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
1411
1412         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1413         Set BFD_LINKER_CREATED on the stubs bfd.
1414         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1415         Likewise.
1416
1417 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
1418
1419         * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1420         local.
1421         (Image$$ER_RO$$Base): Define whenever RELOCATING.
1422         (Image$$ER_RO$$Limit): Likewise.
1423         (SHT$$INIT_ARRAY$$Base): Likewise.
1424         (SHT$$INIT_ARRAY$$Limit): Likeise.
1425
1426 2005-02-10  Ben Elliston  <bje@au.ibm.com>
1427
1428         * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1429
1430 2005-02-08  Richard Sandiford  <rsandifo@redhat.com>
1431
1432         * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1433         to include o32 and n64 emulations.
1434         (mips64*-*-linux-gnu*): Likewise.
1435
1436 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
1437
1438         * ldmain.c (warning_callback, warning_find_reloc): Prepend
1439         "warning: " to warning messages.
1440
1441 2005-02-04  Alan Modra  <amodra@bigpond.net.au>
1442
1443         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1444         look up symbol for etree_provide here.
1445
1446 2005-02-02  Daniel Jacobowitz  <dan@codesourcery.com>
1447
1448         * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1449
1450 2005-02-01  Edward Welbourne  <eddy@opera.com>
1451             Nick Clifton  <nickc@redhat.com>
1452
1453         * ld.texinfo (Source Code Reference): New node describing how to
1454         access linker script defined variables from source code.
1455
1456 2005-02-01  Alan Modra  <amodra@bigpond.net.au>
1457
1458         * ld.texinfo: Clarify --as-needed operation.
1459
1460 2005-01-31  Andrew Cagney  <cagney@gnu.org>
1461
1462         * configure: Regenerate to track ../gettext.m4.
1463
1464 2005-01-31  Nick Clifton  <nickc@redhat.com>
1465
1466         * ldver.c (ldversion): Bump reported copyright date to 2005.
1467
1468 2005-01-31  Nick Clifton  <nickc@redhat.com>
1469
1470         * configure.tgt: Remove obsolete targets m68k-lynxos and
1471         sparc-lynxos.
1472
1473 2005-01-28  Julian Brown  <julian@codesourcery.com>
1474
1475         * emultempl/armelf.em (fix_v4bx): New variable.
1476         (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1477         value to bfd.
1478         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1479         (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1480         (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1481         (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1482         * NEWS: Mention --fix-v4bx.
1483         * ld.texinfo: Document --fix-v4bx.
1484
1485 2005-01-25  Mark Mitchell  <mark@codesourcery.com>
1486
1487         * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1488         as to include .ARM.exidx$${Base,Limit}.
1489         * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1490         Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1491         Put .init_array, .fini_array, etc. into the read-only data
1492         segment.
1493
1494 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
1495
1496         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1497         (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1498         only needed by an as-needed lib that didn't get linked.
1499
1500 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
1501
1502         * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1503         __DTOR_LIST__ description.
1504
1505 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
1506
1507         * ld.texinfo (Location Counter <dot outside sections>): Document
1508         effects of orphan section placement, and ". = ." workaround.
1509         * Makefile.in: Regenerate.
1510
1511 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
1512
1513         * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1514         * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1515
1516 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
1517
1518         * ldgram.y (AS_NEEDED): New token.
1519         (input_list): Handle AS_NEEDED ( input_list ).
1520         * ldlex.l (AS_NEEDED): Add.
1521         * ld.texinfo: Document AS_NEEDED ().
1522         * NEWS: Mention AS_NEEDED ().
1523
1524 2005-01-21  Ben Elliston  <bje@au.ibm.com>
1525
1526         * ldlang.c (lang_reasonable_defaults): Remove.
1527         (lang_process): Don't call lang_reasonable_defaults.
1528
1529         * ldexp.c (exp_assop): Remove #if 0'd code.
1530         (exp_print_tree): Likewise.
1531         * ldlang.c (lang_memory_region_lookup): Likewise.
1532         (open_output): Likewise.
1533         (lang_do_assignments_1): Likewise.
1534         (lang_place_orphans): Likewise.
1535         (lang_enter_output_section_statement): Likewise.
1536         (lang_reasonable_defaults): Likewise.
1537         * ldlang.h (struct lang_input_statement_struct): Likewise.
1538         * mri.c (mri_draw_tree): Likewise.
1539         (mri_load): Likewise.
1540         * pe-dll.c (generate_reloc): Likewise.
1541         (make_import_fixup_entry): Likewise.
1542         (pe_as16): Likewise.
1543         * emultempl/beos.em (set_pe_subsystem): Likewise.
1544         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1545         * emultempl/pe.em: Likewise.
1546         * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1547
1548 2005-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
1549
1550         * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1551         (earmelfb_linux_eabi.c): New target.
1552         * Makefile.in: Regenerated.
1553         * configure.tgt (arm*b-*-linux-gnueabi): New target.
1554         * emulparams/armelfb_linux_eabi.sh: New file.
1555
1556 2005-01-20  Nick Hudson  <skrll@netbsd.org>
1557
1558         PR ld/676
1559         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1560         Handle bfd_elf32_hppa_nbsd_vec.
1561
1562 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
1563
1564         * ldmain.h (ld_sysroot): Change type to a constant string.
1565         * ldmain.c (ld_sysroot): Likewise.
1566         (get_relative_sysroot, get_sysroot): New functions, adding command-line
1567         support for changing the sysroot.
1568         (main): Call the new functions.
1569         * lexsup.c (OPTION_SYSROOT): New.
1570         (ld_options): Add --sysroot.
1571         (parse_args): Add a dummy handler for it.
1572         * ld.texinfo (--sysroot): Document.
1573         * NEWS: Mention the new --sysroot option.
1574
1575 2005-01-18  Alan Modra  <amodra@bigpond.net.au>
1576
1577         * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1578         (lang_place_orphans): Don't abort on just_syms_flag, instead call
1579         bfd_link_just_syms.
1580
1581 2005-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
1582
1583         * defilep.y (def_name, def_library): Combine into...
1584         (def_image_name): New function.  Strip name to basename,
1585         with warning.
1586
1587 2005-01-12  Mark Kettenis  <kettenis@gnu.org>
1588
1589         * configure.in: Be sure to invoke config.sub using the shell.
1590         * configure: Regenerate.
1591
1592 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
1593
1594         * configure.host: Correct sed patterns for last change.
1595
1596 2005-01-10  Nick Clifton  <nickc@redhat.com>
1597
1598         PR binutils/609
1599         * ldmisc.c (vfinfo): Add an extra argument: is_warning.  Use this
1600         to determine whether config.make_executable should be set to FALSE in
1601         conjunction with config.fatal_warnings.
1602         (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1603         (einfo): Pass TRUE as the extra argument.
1604
1605 2005-01-10  Greg Schaffer  <gschafer@zip.com.au>
1606
1607         * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1608         of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1609         (ia64-*-aix): Delete - this target is obsolete, and would be
1610         broken by this patch.
1611
1612 2005-01-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1613
1614         * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1615         (sparc64-sun-solaris2*): New host.
1616
1617 2005-01-06  Paul Brook  <paul@codesourcery.com>
1618
1619         * Makefie.am: Add earmelf_vxworks.
1620         * Makefile.in: Regenerate.
1621         * configure.tgt: Make arm-*-vxworks a separate case.
1622         * emulparams/armelf_vxworks.sh: New function.
1623
1624 2005-01-06  Alan Modra  <amodra@bigpond.net.au>
1625
1626         * emultempl/ppc64elf.em (no_multi_toc): New var.
1627         (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1628         (OPTION_NO_MULTI_TOC): Define.
1629         (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1630         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1631
1632 2005-01-05  Nick Clifton  <nickc@redhat.com>
1633
1634         PR binutils/614
1635         * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1636         Standard's specification for parsable error messages.
1637
1638 2005-01-04  Paul Brook  <paul@codesourcery.com>
1639
1640         * Makefile.am: Correct dependency for earmsymbian.c.
1641         * Makefile.in: Regenerate.
1642
1643 2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>
1644
1645         * emultempl/pe.em (set_pe_subsystem): Change second arg to
1646         lang_add_entry to FALSE.
1647
1648 2004-12-23  Nick Clifton  <nickc@redhat.com>
1649
1650         PR 600
1651         * emulparams/shelf.sh (.stack): Increase stack start address to
1652         0x300000.
1653
1654 2004-12-20  Nick Clifton  <nickc@redhat.com>
1655
1656         * ldmain.c (main): Issue an error message if -static and -shared
1657         are used together.
1658
1659 2004-12-17  Jakub Jelinek  <jakub@redhat.com>
1660
1661         * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1662         * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1663         * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1664         address space at DATA_SEGMENT_ALIGN.  Fix computation of expected
1665         PT_GNU_RELRO segment end.
1666
1667 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
1668
1669         * configure.tgt: Add s390x-ibm-tpf support.
1670
1671 2004-12-16  Martin Kögler  <mkoegler@auto.tuwien.ac.at>
1672
1673         * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1674         BFD.
1675
1676 2004-12-07  Ben Elliston  <bje@gnu.org>
1677
1678         * ldemul.h: Forward declare struct option.
1679
1680 2004-12-01  Danny Smith  <dannysmith@users.sourceforge.net>
1681
1682         * scripttempl/pe.sc (.data): Add .jcr subsection.
1683
1684 2004-11-30  Paul Brook  <paul@codesourcery.com>
1685
1686         * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1687
1688 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
1689
1690         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1691         * Makefile.in: Regenerate.
1692
1693 2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
1694
1695         * emultempl/pe.em: Add --subsystem:xbox as well as
1696         --subsystem:%d.
1697         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1698         and numeric subsystems.
1699
1700 2004-11-24  Alan Modra  <amodra@bigpond.net.au>
1701
1702         * ldexp.c (fold_name): Correct PR 338 fix.
1703
1704 2004-11-19  Mark Mitchell  <mark@codesourcery.com>
1705
1706         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1707         (earmelf_linux_eabi.c): New target.
1708         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1709         * emulparams/armelf_linux_eabi.sh: New file.
1710         * Makefile.in: Regenerated.
1711
1712 2004-11-19  Nick Clifton  <nickc@redhat.com>
1713
1714         PR 518
1715         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1716         LENGTH fields in the MEMORY command, to explicitly state that
1717         symbols cannot be used in their expressions.
1718
1719 2004-11-19  Jon Beniston <jon@beniston.com>
1720
1721         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1722         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1723         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1724         which return the length and origin of a memory.
1725         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1726         * NEWS: Mention support for ORIGIN and LENGTH operators.
1727
1728 2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
1729
1730         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1731         a dynamic object for stubs.
1732
1733 2004-11-04  Paul Brook  <paul@codesourcery.com>
1734
1735         * ld.texinfo: Document --default-imported-symver.
1736         * ldmain.c (main): Set link_info.default_imported_symver.
1737         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1738         (ld_options): Add --default-imported-symver.
1739         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1740
1741 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
1742             Vineet Sharma      <vineets@noida.hcltech.com>
1743
1744         * Makefile.am: Add entries for new maxq-coff target.
1745         * Makefile.in: Regenerate.
1746         * configure.tgt: Add support for maxq.
1747         * emulparams/maxqcoff.sh: New File.
1748         * scripttempl/maxqcoff.sc: New linker script for target maxq.
1749         * NEWS: Mention the new target.
1750
1751 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
1752
1753         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1754         (earmelf_oabi.c): Remove rule.
1755         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1756         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1757         * Makefile.in: Regenerated.
1758
1759 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
1760
1761         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1762         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1763         (FINI_START): Ditto.
1764         (INIT_END): Remove emitted "jump [sp+]".
1765         (FINI_END): Ditto.
1766
1767 2004-11-04  Alan Modra  <amodra@bigpond.net.au>
1768
1769         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1770         (no_opd_opt, no_toc_opt): New static vars.
1771         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
1772         ppc64_elf_edit_toc.
1773         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1774         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1775         (PARSE_AND_LIST_OPTIONS): Describe new options.
1776         (PARSE_AND_LIST_ARGS_CASES): Handle them.
1777
1778 2004-10-27  Nick Clifton  <nickc@redhat.com>
1779
1780         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1781         parameter to invocation of lang_section_start.
1782         * emultempl/aix.em (_handle_option): Likewise.
1783
1784         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1785         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1786         * Makefile.in: Regenerate.
1787
1788 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
1789
1790         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1791         __exidx_{start,end} when not relocating.
1792
1793 2004-10-25  Mark Mitchell  <mark@codesourcery.com>
1794
1795         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1796         * ldexp.h (segment_type): New type.
1797         (segments): New variable.
1798         * ldexp.c (segments): New variable.
1799         (exp_print_token): Handle SEGMENT_START.
1800         (fold_binary): Likewise.
1801         * ldgram.y (SEGMENT_START): Declare it as a token.
1802         (exp): Handle SEGMENT_START.
1803         * ldlang.h (lang_address_statement_type): Add segment field.
1804         (lang_section_start): Change prototype.
1805         * ldlang.c (map_input_to_output_sections): Do not process section
1806         assignments if a corresponding SEGMENT_START has already been
1807         seen.
1808         (lang_section_start): Add segment parameter.
1809         * ldlex.l (SEGMENT_START): Add it.
1810         * lexsup.c (seg_segment_start): New function.
1811         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1812         * ld.texinfo (SEGMENT_START): Document it.
1813         * emulparams/armsymbian.sh (EMBEDDED): Set it.
1814         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1815         base addresses.  Do not map relocations.
1816         * NEWS: Mention SEGMENT_START.
1817
1818 2004-10-26  Paul Brook  <paul@codesourcery.com>
1819
1820         * ld.texinfo: Document --default-symver.
1821         * ldmain.c (main): Set link_info.create_default_symver.
1822         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1823         (ld_options): Add default-symver.
1824         (parse_args): Handle OPTION_DEFAULT_SYMVER.
1825
1826 2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
1827
1828         * pe-dll.c (process_def_file): Don't export all symbols by default if
1829         building a position-independent executable.
1830
1831 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1832
1833         PR 463
1834         * ldmain.c (reloc_overflow): Accept a pointer to struct
1835         bfd_link_hash_entry. Report symbol location for relocation
1836         overflow.
1837
1838 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1839
1840         * genscripts.sh (libpath.exp): Really generate for first
1841         emulation only.
1842
1843 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
1844
1845         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1846         comparison and replacement of filenames.
1847
1848 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1849
1850         PR 459
1851         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1852         option on linker script as the one for linker script.
1853
1854 2004-10-16  Daniel Jacobowitz  <dan@debian.org>
1855
1856         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1857         (check_excluded_libs): New.
1858         (load_symbols): Call check_excluded_libs.
1859         * ldlang.h (add_excluded_libs): New prototype.
1860         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1861         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1862         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1863         * ld.texinfo (Command Line Variables): Document --exclude-libs.
1864         (Options Specific to i386 PE Targets): Remove --exclude-libs.
1865
1866 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
1867
1868         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1869         failing link script assert.
1870
1871         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1872
1873 2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
1874
1875         PR 445
1876         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1877         (SMALL_DATA_DTOR): Set.
1878         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1879         (SMALL_DATA_DTOR): Unset.
1880         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1881         after .data. If SMALL_DATA_DTOR is set, move .dtors after
1882         .data.
1883
1884 2004-10-14  Alan Modra  <amodra@bigpond.net.au>
1885
1886         PR 63
1887         * ldlang.h (lang_output_section_statement_type): Make "next" a
1888         struct lang_output_section_statement_struct *.
1889         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
1890         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1891         * ldlang.c (lang_output_section_find_1): Adjust for changed
1892         output_section_statement "next".
1893         (strip_excluded_output_sections): Likewise.
1894         (lang_record_phdrs): Likewise.
1895         (lang_output_section_find_by_flags): New function.
1896         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
1897         (lang_insert_orphan): New function.  Tail end of elf32.em's
1898         place_orphan merged with that from pe.em.  Allow bfd_section to
1899         be placed first.  New heuristic for placing new output section
1900         statement in existing script, and accompanying split of __start
1901         symbol alignment into a separate assignment to dot.
1902         (lang_add_section): Consistently use output->bfd_section rather than
1903         an alias, section->output_section.
1904         (map_input_to_output_sections): Rename overly long arg.  Move
1905         initialization of data_statement output section to here..
1906         (lang_check_section_addresses): ..from here.
1907         (print_assignment): Correct printing of etree_assert.
1908         (print_all_symbols): Don't bomb if userdata is NULL.
1909         (IGNORE_SECTION): Rearrange.
1910         * emultempl/elf32.em (output_rel_find): Adjust interator.
1911         (output_prev_sec_find): Delete.
1912         (struct orphan_save): Delete.
1913         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1914         flags without creating a duplicate output section statement.
1915         Revise code holding history of various orphan section placements.
1916         Allow orphan sections to place before script specified output
1917         sections.  Call lang_output_section_find_by_flags when placement
1918         by name fails.  Use lang_insert_orphan.
1919         * emultempl/mmo.em (output_prev_sec_find): Delete.
1920         (struct orphan_save): Delete.
1921         (mmo_place_orphan): Revise code holding history of orphan placement.
1922         Allow orphans to place before existing output sections.  Use
1923         lang_insert_orphan.
1924         * emultempl/pe.em (output_prev_sec_find): Delete.
1925         (struct orphan_save): Delete.
1926         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1927         lang_insert_orphan.
1928
1929 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
1930
1931         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1932         loadable segment.
1933
1934 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
1935
1936         PR 44
1937         * ldcref.c (check_section_sym_xref): Delete.
1938         (check_local_sym_xref): New function.
1939         (check_nocrossrefs): Adjust call.
1940         * emultempl/pe.em (struct orphan_save): Add os_tail.
1941         (place_orphan): Backport assorted fixes from elf32.em.
1942
1943 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
1944
1945         * emultempl/xtensaelf.em: Use ISO C90 formatting.
1946
1947 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
1948
1949         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1950         getline for portability.
1951
1952         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1953         (gld${EMULATION_NAME}_parse_ld_so_conf,
1954         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1955         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1956
1957 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
1958
1959         PR 423
1960         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1961         rejected when linking statically.
1962
1963 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
1964
1965         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1966
1967 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
1968
1969         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1970         assembler-generated longcall sequences.  Describe new --size-opt
1971         option.
1972         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1973         * emultempl/xtensaelf.em (remove_section,
1974         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1975         elf_xtensa_after_open): New.
1976         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1977         OPTION_NO_LITERAL_MOVEMENT): Define.
1978         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1979         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1980         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1981         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1982         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1983         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1984         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1985         * Makefile.am (eelf32xtensa.c): Update dependencies.
1986         * Makefile.in: Regenerate.
1987
1988 2004-10-07  Jeff Baker  <jbaker@qnx.com>
1989
1990         * lexsup.c: Handle --warn-shared-textrel option.
1991         (ld_options): Restore alpha sorting of options.
1992         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1993         * ld.texinfo: Add documentation for --warn-shared-textrel.
1994         * NEWS: Added mention of --warn-shared-textrel option.
1995
1996 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
1997
1998         * emultempl/crxelf.em (disable_relaxation): Add.
1999         (crxelf_before_allocation): Enable --relax option by default.
2000         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2001         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2002         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2003
2004 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2005
2006         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2007         --sort-section name|alignment.
2008
2009         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2010         --sort-section name|alignment.
2011
2012         * ld.h (sort_type): New enum.
2013         (wildcard_spec): Change the type of `sorted' to sort_type.
2014
2015         * ldgram.y (SORT): Removed.
2016         (SORT_BY_NAME): Added.
2017         (SORT_BY_ALIGNMENT): Added.
2018         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2019         SORT_BY_ALIGNMENT.
2020         (input_section_spec_no_keep): Updated `sorted'.
2021         (statement): Replace SORT with SORT_BY_NAME.
2022
2023         * ldlang.c (compare_section): New function to compare 2
2024         sections with different sorting schemes.
2025         (wild_sort): Updated. Use compare_section.
2026         (update_wild_statements): New function.
2027         (lang_process): Call update_wild_statements before
2028         map_input_to_output_sections.
2029
2030         * ldlex.l (SORT_BY_NAME): New.
2031         (SORT_BY_ALIGNMENT): New.
2032         (SORT): Return SORT_BY_NAME.
2033
2034         * ldmain.c (sort_section): New. Defined.
2035         (main): Initialize it to none.
2036
2037         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2038         (ld_options): Add an entry for OPTION_SORT_SECTION.
2039         (parse_args): Handle OPTION_SORT_SECTION.
2040
2041         * mri.c (mri_draw_tree): Updated `sorted'.
2042
2043 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
2044
2045         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2046         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2047         argument.
2048         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2049         and . as second argument.
2050         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2051         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2052         (fold_binary): Add it here.  Insert padding to make relro_end
2053         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
2054         exp_dataseg_relro_adjust phase just use previously computed
2055         exp_data_seg.base.
2056         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2057         relro_adjust here.  Call lang_size_sections_1 once more if there
2058         was too big padding at DATA_SEGMENT_RELRO_END.
2059         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2060
2061 2004-10-01  Paul Brook  <paul@codesourcery.com>
2062
2063         * emulparams/armelf.sh: Add unwinding table sections.
2064
2065 2004-09-30  Filip Navara  <navaraf@reactos.com>
2066
2067         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2068         correct base address for position independant executables.
2069         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2070         executables as DLLs.
2071
2072 2004-09-30  Paul Brook  <paul@codesourcery.com>
2073
2074         * ld.texinfo: Document --target2=abs.
2075         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2076
2077 2004-09-29  Nick Clifton  <nickc@redhat.com>
2078
2079         * scripttempl/xstormy16.sc: Only perform the assignments to the
2080         ROM region when not performing a relocatable link.  The ROM region
2081         does not start at address 0, but the sections will.
2082         * Makefile.am: Fix linker script dependency for the generation of
2083         eelf32xstormy16.c.
2084         * Makefile.in: Regenerate.
2085
2086 2004-09-18  Filip Navara  <navaraf@reactos.com>
2087
2088         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2089         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2090         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2091         TARGET_PAGE_SIZE.
2092         * scripttempl/pe.sc: Make the virtual address and file offset synced if
2093         the alignment is lower than the target page size.
2094
2095 2004-09-27  Filip Navara  <navaraf@reactos.com>
2096
2097         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2098         def_file_parse to handle pe_def_file if NULL and prevent crash with
2099         invalid .def files.
2100
2101 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
2102
2103         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2104         --emit-stub-syms automatically when --emit-relocs.
2105
2106 2004-09-24  Paul Brook  <paul@codeosurcery.com>
2107
2108         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2109         .fini_array sections.
2110
2111 2004-09-19  Andreas Schwab  <schwab@suse.de>
2112
2113         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2114         base so that relro end is suitably aligned.
2115
2116 2004-09-17  Paul Brook  <paul@codesourcery.com>
2117
2118         * ld.texinfo: Rename arm-specific section.  Document --target*
2119         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2120         * emulparams/armelf_linux.sh: Ditto.
2121         * emulparams/armelf_nbsd.sh: Ditto.
2122         * emultempl/armelf.em: Set default for TARGET2_TYPE.
2123         (target2_type): New variable.
2124         (arm_elf_before_allocation): Don't pass target1_type.
2125         (arm_elf_create_output_section_statements): New function.
2126         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2127         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2128         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2129         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2130         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2131         argument to bfd_elf32_arm_process_before_allocation.
2132
2133 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
2134
2135         * ldexp.c (fold_name): Update u.undef.next refs.
2136         * emultempl/pe.em: Likewise.
2137         * emultempl/sunos.em: Likewise.
2138
2139 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
2140
2141         * Makefile.am: Run "make dep-am".
2142         * Makefile.in: Regenerate.
2143         * config.in: Regenerate.
2144         * configure: Regenerate.
2145         * aclocal.m4: Regenerate.
2146         * po/ld.pot: Regenerate.
2147
2148 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
2149
2150         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2151         (.fini): Likewise.
2152         (.jcr): Likewise.
2153
2154 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
2155
2156         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2157         to bfd_elf32_arm_process_before_allocation call.
2158
2159 2004-09-13  Paul Brook  <paul@codesourcery.com>
2160
2161         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2162         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
2163
2164 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2165
2166         * configure: Regenerated with autconfig 2.13.
2167
2168 2004-09-07  Andreas Schwab  <schwab@suse.de>
2169
2170         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2171         alignment before adjusting DATA_SEGMENT_RELRO_END.
2172
2173 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
2174
2175         * emulparams/armsymbian.sh: Use armbpabi script.
2176         * scripttempl/armbpabi.sc: New script.
2177
2178 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
2179
2180         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2181         (earmsymbian.c): New target.
2182         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2183         * Makefile.in: Regenerated.
2184         * aclocal.m4: Likewise.
2185         * configure: Likewise.
2186         * emulparams/armsymbian.sh: New file.
2187
2188 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
2189
2190         * scripttempl/elf32crx.sc: Edit file with comments.
2191         (.init): Add new section.
2192         (.fini): Likewise.
2193         (.ctor): Control the linkage order.
2194         (.dtor): Likewise.
2195
2196 2004-08-27  Nick Clifton  <nickc@redhat.com>
2197
2198         * emultempl/pe.em (after_open): Do not assume that either bfd is
2199         an archive.
2200
2201 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
2202
2203         * ldlang.c (lang_init): Don't compare with TRUE.
2204
2205 2004-08-25  Dmitry Diky  <diwil@spec.ru>
2206
2207         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2208         * scripttempl/elf32msp430.sc: Add .profiler section definition.
2209
2210 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
2211
2212         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2213
2214 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
2215
2216         * configure.tgt (arm*-*-symbianelf*): New target.
2217         (arm*-*-eabi*): Likewise.
2218
2219 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
2220
2221         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2222         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2223         (OPTION_NON_OVERLAPPING_OPD): Define.
2224         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2225         --non-overlapping-opd option.
2226
2227 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
2228
2229         PR 338
2230         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2231         was already on the undefs list.
2232
2233 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
2234
2235         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2236         prefix the symbol field too.
2237
2238 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
2239
2240         * ldmain.c (link_callbacks): Remove "error_handler".
2241         * ldmisc.c: Include elf-bfd.h.
2242         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
2243         bfd_get_section_indent.
2244         (error_handler): Delete.
2245         * ldmisc.h (error_handler): Delete declaration.
2246
2247 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
2248
2249         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2250         ppc64_elf_restore_symbols.
2251
2252 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
2253
2254         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2255         .toc is too large on relocatable linking.
2256
2257 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
2258
2259         * emultempl/ppc64elf.em (ppc_after_open): Delete.
2260         (LDEMUL_AFTER_OPEN): Don't define.
2261
2262 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
2263
2264         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2265
2266 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
2267
2268         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2269         on power of 2.
2270
2271 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
2272
2273         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2274
2275 2004-07-26  Dmitry Diky  <diwil@spec.ru>
2276
2277         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2278         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2279         msp430xG439.
2280         * configure.tgt: Likewise.
2281         * emulparams/msp430all.sh: Likewise.
2282         * Makefile.in: Regenerate.
2283
2284 2004-07-23  Nick Clifton  <nickc@redhat.com>
2285
2286         * emultempl/elf32.em (_place_orphan): Use an already existing
2287         section name if that section does not have any flags set.
2288
2289 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
2290
2291         * ldlang.c (already_linked_hash_entry): Removed.
2292         (already_linked): Likewise.
2293         (already_linked_table): Likewise.
2294         (section_already_linked): Call bfd_section_already_linked.
2295         (lang_process): Replace already_linked_table_init with
2296         bfd_section_already_linked_table_init and check return. Replace
2297         already_linked_table_free with bfd_section_already_linked_table_free.
2298
2299 2004-07-21  Nick Clifton  <nickc@redhat.com>
2300
2301         * ldlang.c (init_os): Make sure that the newly allocated userdata
2302         structure is zeroed out.
2303
2304 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
2305
2306         * NEWS: Mention the new --add-needed/--no-add-needed and
2307         --as-needed/--no-as-needed options.
2308
2309 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
2310
2311         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2312         check the add_needed field.
2313         (dt_needed): New struct.
2314         (gld${EMULATION_NAME}_try_needed): Change the first argument
2315         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2316         bit in the file where the DT_NEEDED entry comes from.
2317         (gld${EMULATION_NAME}_search_needed): Change the second
2318         argument to a pointer to struct dt_needed.
2319         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2320         (gld${EMULATION_NAME}_after_open): Likewise.
2321
2322         * ld.texinfo: Add --add-needed document.
2323         * ldlang.c (new_afile): Set p->add_needed.
2324         * ldlang.h (lang_input_statement_type): Add add_needed field.
2325         * ldmain.h (add_needed): Declare.
2326         * ldmain.c (add_needed): New global var.
2327         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2328         OPTION_NO_ADD_NEEDED.
2329         (ld_options): Likewise.
2330         (parse_args): Handle them.
2331
2332 2004-07-13  Christof Petig  <christof@petig-baender.de>
2333
2334         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2335         for endian-ness of extracted addend.
2336
2337 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
2338
2339         * pe-dll.c (auto_export):  Filter on just the import prefix,
2340         "_imp_", not "_imp__".
2341
2342 2004-07-09  Nick Clifton  <nickc@redhat.com>
2343
2344         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2345
2346 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
2347
2348         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2349         (eelf32crx.c): New target.
2350         * Makefile.in: Regenerate.
2351         * configure.tgt: Handle crx-*-elf*.
2352         * emulparams/elf32crx.sh: New file.
2353         * emultempl/crxelf.em: New file.
2354         * scripttempl/elf32crx.sc: New file.
2355         * NEWS: Mention new target.
2356
2357 2004-07-06  Nick Clifton  <nickc@redhat.com>
2358
2359         * Makefile.am: Add eshlsymbian.c.
2360         * Makefile.in: Regenerate.
2361         * configure.tgt: Add sh*-symbian-elf target.
2362         * emulparams/shlsymbian.sh: New file.  Configure the
2363         sh-symbian-elf linker scripts.
2364         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
2365         template for the sh-symbian-elf target.
2366
2367 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2368
2369         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2370         * emulparams/hppalinux.sh: Likewise.
2371         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2372         data segment and PLT_BEFORE_GOT is defined.
2373
2374 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
2375
2376         * ld.texinfo (WIN32): Document PE weak symbols.
2377
2378 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2379
2380         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2381
2382 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
2383
2384         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2385         the section.
2386
2387 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
2388
2389         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2390         size in rawsize.
2391
2392 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
2393
2394         * ldlang.c (print_output_section_statement): Don't print size before
2395         relaxation.
2396         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
2397
2398         * ldexp.c (fold_name): .. See below.
2399         * ldlang.c (section_already_linked, print_output_section_statement,
2400         print_input_section, insert_pad, size_input_section,
2401         lang_check_section_addresses, lang_size_sections_1,
2402         lang_size_sections, lang_do_assignments_1, lang_set_startof,
2403         lang_one_common, lang_reset_memory_regions, lang_process,
2404         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2405         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2406         * pe-dll.c (process_def_file, generate_reloc): ..
2407         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2408         gld${EMULATION_NAME}_before_allocation): ..
2409         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2410         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2411         sh64_elf_${EMULATION_NAME}_after_allocation): ..
2412         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2413         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2414         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2415         "size" instead of "_raw_size" and "_cooked_size".  Expand
2416         bfd_section_size macro invocations.
2417
2418 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2419
2420         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2421         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2422         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2423         ___crt_xt_end__.
2424         (.tls): Define ___tls_start__ and ___tls_end__.
2425
2426 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
2427
2428         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2429
2430 2004-06-18  Adam Nemet  <anemet@lnxw.com>
2431
2432         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2433         * configure: Regenerate.
2434
2435 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
2436
2437         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2438         .gcc_except_table output sections lost accidentally with
2439         -z relro patch.
2440
2441 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
2442
2443         * ldwrite.c (build_link_order): Use bfd_get_section_size
2444         instead of bfd_get_section_size_before_reloc or _raw_size.
2445         * pe-dll.c (process_def_file): Likewise.
2446
2447 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
2448
2449         From Richard Wirth <r.wirth@wirthware.de>
2450         * ldlang.c (lang_finish): Don't free lang_definedness_table.
2451
2452 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
2453
2454         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2455         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2456
2457 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
2458
2459         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
2460         throughout file.
2461         * lexsup.c: Formatting.  Wrap long lines.
2462         * ldwrite.c: Update copyright date.
2463
2464         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2465         (output_section_callback): Nor SEC_KEEP here.
2466         (gc_section_callback): Twiddle SEC_EXCLUDE here.
2467         (lang_gc_wild): Delete.  Fold into..
2468         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
2469         collecting.
2470         (lang_process): Always call lang_gc_sections.
2471         (lang_place_orphans): Handle SEC_EXCLUDE sections.
2472         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2473         SEC_EXCLUDE code.
2474
2475 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
2476
2477         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2478         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2479         * ldlang.c (lang_add_section): Likewise.
2480
2481 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
2482
2483         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2484         sections when doing a final link.  Clear SEC_EXCLUDE when doing
2485         a relocable link, except for SEC_DEBUGGING sections.
2486         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2487         same condition here to drop SEC_EXCLUDE orphan sections.
2488
2489 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
2490
2491         * ldlang.c (lang_process): Call bfd_merge_sections later, and
2492         only when not a relocatable link.
2493         (print_input_section): Handle SEC_EXCLUDE sections.
2494         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2495         (lang_do_assignments_1): Likewise.
2496         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2497         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2498         * emultempl/hppaelf.em (build_section_lists): Likewise.
2499         * emultempl/ppc64elf.em (build_toc_list): Likewise.
2500         (build_section_lists): Likewise.
2501
2502 2004-05-23  Andreas Schwab  <schwab@suse.de>
2503
2504         * ld.texinfo (Options): Fix typo in last change.
2505
2506 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
2507
2508         * ld.h (ld_config_type): Add new field: hash_table_size.
2509         * ldmain.c: Initialise the new field to zero.  If it is non-zero
2510         after parsing the linker's command line call
2511         bfd_hash_set_default_size.
2512         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2513         (ld_options): Add hash-size.
2514         (parse_args): Parse --hash-size option.  Allow
2515         --reduce-memory-overheads to set the default hash table size as
2516         well.
2517         * ld.texinfo: Document the new switch.  Also mention that
2518         --reduce-memory-overheads can affect the hash table size.
2519         * NEWS: Mention the new feature.
2520
2521 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
2522
2523         * NEWS: Mention new linker map file generation and the
2524         --reduce-memory-overheads option.
2525         * ld.texinfo: Document --reduce-memory-overheads option.
2526         * ld.h (map_symbol_def): New struct.
2527         (struct user_section_struct, section_userdata_type): Rename to:
2528         (struct lean_user_section_struct, lean_section_userdata_type).
2529         (struct fat_user_section_struct, fat_section_userdata_type): New.
2530         (SECTION_USERDATA_SIZE): Define.
2531         (args_type): New member reduce_memory_overheads.
2532         * ldlang.c (map_obstack): New static variable.
2533         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2534         (lang_map): Unless command_line.reduce_memory_overheads is set,
2535         initialize lists of defined symbols for each section.
2536         (print_input_section): Unless command_line.reduce_memory_overheads
2537         is set, use print_all_symbols.
2538         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2539         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2540         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2541         (ld_options): Add entry for --reduce-memory-overheads.
2542         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2543
2544 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
2545
2546         * ldgram.y (sect_constraint): New.
2547         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2548         (section): Add sect_constraint.  Pass additional argument
2549         to lang_enter_output_section_statement.
2550         * mri.c (mri_draw_tree): Pass additional argument to
2551         lang_enter_output_section_statement.
2552         * emultempl/pe.em (place_orphan): Likewise.
2553         (output_prev_sec_find): Disregard output section statements with
2554         constraint == -1.
2555         * emultempl/mmo.em (output_prev_sec_find): Likewise.
2556         (mmo_place_orphan): Pass additional argument to
2557         lang_enter_output_section_statement.
2558         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2559         statements with constraint == -1.
2560         (place_orphan): Pass additional argument to
2561         lang_enter_output_section_statement.
2562         * ldlang.c (lang_enter_overlay_section): Likewise.
2563         (lang_output_section_find_1): New.
2564         (lang_output_section_find): Use it.
2565         (lang_output_section_statement_lookup_1): New.
2566         (lang_output_section_statement_lookup): Use it.
2567         (check_section_callback, check_input_sections): New.
2568         (map_input_to_output_sections): Check if all input sections
2569         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2570         (strip_excluded_output_sections): Disregard output section statements
2571         with constraint == -1.
2572         (lang_record_phdrs): Likewise.
2573         (lang_enter_output_section_statement): Add constraint argument.
2574         Use lang_output_section_statement_lookup_1.
2575         * ldlang.h (lang_output_section_statement_type): Add constraint
2576         and all_input_readonly fields.
2577         (lang_enter_output_section_statement): Adjust prototype.
2578         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2579         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2580         segment if all input sections are readonly.
2581
2582 2004-05-19  Adam Nemet  <anemet@lnxw.com>
2583
2584         * scripttempl/i386lynx.sc: Remove file.
2585
2586 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
2587
2588         * ld.texinfo (Output Section Address): Correct subsection name.
2589
2590 2004-05-17  Adam Nemet  <anemet@lnxw.com>
2591
2592         * configure.tgt (powerpc-*-lynxos* case): New case.
2593         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2594         * emulparams/ppclynx.sh: New file.
2595         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2596         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2597         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2598         (eppclynx.c): New rule.
2599         * Makefile.in: Regenerate.
2600
2601 2004-05-13  Joel Sherrill <joel@oarcorp.com>
2602
2603         * configure.tgt (or32-*-rtems*): Switch to elf and
2604         support versioned targets.
2605
2606 2004-05-13  Nick Clifton  <nickc@redhat.com>
2607
2608         * po/fr.po: Updated French translation.
2609
2610 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
2611
2612         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2613         for binaries, -shared and -pie.
2614         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2615         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2616         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2617         (OTHER_RELRO_SECTIONS): ... this.
2618         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2619         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2620         -z relro and -z norelro.
2621         (gld${EMULATION_NAME}_list_options): Add it to usage.
2622         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2623         -z relro scripts when appropriate.
2624         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2625         Create separate .got.plt section if SEPARATE_GOTPLT.
2626         Move sections which are only written during relocation handling
2627         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
2628         before .data.  Add DATA_SEGMENT_RELRO_END directive.
2629         Include OTHER_RELRO_SECTIONS.
2630         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2631         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2632         (fold_unary): Likewise.
2633         (fold_binary): Handle -z relro.
2634         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2635         exp_dataseg_relro_adjust phases.  Add relro_end field.
2636         * ldmain.c (main): Initialize link_info.relro to FALSE.
2637         * ldlang.c (lang_size_sections): Handle -z relro.
2638
2639 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2640
2641         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2642
2643 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
2644
2645         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2646         before printing it with %W.
2647
2648 2004-05-07  Brian Ford  <ford@vss.fsi.com>
2649             DJ Delorie  <dj@redhat.com>
2650
2651         * emultempl/pe.em (real_flags): New static.
2652         (OPTION_LARGE_ADDRESS_AWARE): New define.
2653         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2654         (gld_${EMULATION_NAME}_list_options): Likewise.
2655         (gld${EMULATION_NAME}_handle_option): Likewise.
2656         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2657         * ld.texinfo: Document it.
2658         * NEWS: Mention it.
2659
2660 2004-05-07  Brian Ford  <ford@vss.fsi.com>
2661
2662         * NEWS: Mention DWARF 2 support for i386pe.
2663
2664 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
2665
2666         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2667         elf32-frvfdpic.
2668
2669 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
2670
2671         * ldlang.c (unique_section_p): Pass section parm, return true on
2672         group sections.
2673         (output_section_callback): Adjust.
2674         * ldlang.h (unique_section_p): Update prototype.
2675         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2676
2677 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
2678
2679         * ld.texinfo (--gc-sections): Remove restriction for
2680         dynamic linking.
2681
2682 2004-04-29  Brian Ford  <ford@vss.fsi.com>
2683
2684         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2685         for DWARF 2/3.  Update stab section's syntax.
2686
2687 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
2688
2689         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2690         (fill_edata): Correct pointer arithmetic.
2691
2692 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
2693
2694         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2695         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2696         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2697         (EXTRA_EM_FILE): Use mipsecoff.em
2698         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2699         (EXTRA_EM_FILE): Use mipsecoff.em
2700         * emultempl/mipsecoff.em: Restructure to be included as an
2701         extra emulation file.
2702         (check_sections, gld${EMULATION_NAME}_after_open)
2703         (gld${EMULATION_NAME}_after_allocation)
2704         (gld${EMULATION_NAME}_get_script)
2705         (ld_${EMULATION_NAME}_emulation): Remove
2706         (gld${EMULATION_NAME}_before_parse): Rename to...
2707         (mipsecoff_before_parse): This.
2708         (LDEMUL_BEFORE_PARSE): Define.
2709         * emultempl/mipself.em: Remove file.
2710         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2711         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2712         these symbols.
2713         * Makefile.am: Remove dependencies on emultempl/mipself.em.
2714         * Makefile.in: Regenerate.
2715
2716 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
2717
2718         * ld.texinfo (synthesizing on H8/300): Information about linker
2719         relaxation support for bit manipulation instructions and system
2720         control instructions is added.
2721
2722 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
2723
2724         * NEWS: Mention change in DEFINED semantics.
2725
2726 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
2727
2728         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2729         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2730         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2731
2732 2004-04-21  Ben Elliston  <bje@au.ibm.com>
2733
2734         * ld.texinfo (Simple Example): Add missing punctuation.
2735
2736 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
2737
2738         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2739
2740 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
2741
2742         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2743         specially.
2744
2745 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
2746
2747         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
2748         with default priority. Likewise for dtors.
2749
2750 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2751
2752         * configure.host: Remove mips*-dec-bsd* target.
2753         * configure.tgt: Likewise.
2754
2755 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
2756
2757         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2758         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2759         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2760         * emultempl/irix.em: New file.
2761         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2762         dependencies.
2763         * Makefile.in: Regenerate.
2764
2765 2004-04-01  Paul Brook  <paul@codesourcery.com>
2766
2767         * emultempl/armelf.em (byteswap_code): Add.
2768         (arm_elf_before_allocation): Pass extra parameter.
2769         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2770         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2771         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2772         * emultempl/armelf_oabi.em: Pass extra parameter.
2773         * ld.texinfo: Document --be8.
2774
2775 2004-03-30  Stan Shebs  <shebs@apple.com>
2776
2777         Remove long-obsolete MPW support.
2778         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2779         * Makefile.am (mpw): Remove file-presynthesizing actions.
2780         * Makefile.in: Likewise.
2781         * ldfile.c (slash): Remove MPW case.
2782         * ldlex.l [MPW]: Remove unused definition.
2783
2784 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
2785
2786         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2787         (eelf32cr16c.c): New target.
2788         * Makefile.in: Regenerate.
2789         * configure.tgt: Handle cr16c-*-elf*.
2790         * emulparams/elf32cr16c.sh: New file.
2791         * scripttempl/elfcr16c.sc: Likewise
2792         * NEWS: Mention support for new target.
2793
2794 2004-03-30  Nick Clifton  <nickc@redhat.com>
2795
2796         * po/sv.po: Updated Swedish translation.
2797
2798 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
2799
2800         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2801         * emultempl/hppaelf.em: Likewise.
2802         * emultempl/ppc64elf.em: Likewise.
2803         * emultempl/sh64elf.em: Likewise.
2804
2805 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
2806
2807         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2808         size_dynamic_sections call.
2809
2810 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
2811
2812         PR 51.
2813         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2814         link_info.wrap_char.
2815
2816 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2817
2818         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2819         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2820
2821 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
2822
2823         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2824
2825 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
2826
2827         * config.in: Regenerate.
2828         * po/ld.pot: Regenerate.
2829
2830 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
2831
2832         * ld.texinfo: Add --as-needed doco.
2833         * ldmain.c (as_needed): New global var.
2834         * ldmain.h (as_needed): Declare.
2835         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2836         OPTION_NO_AS_NEEDED.
2837         (ld_options): Likewise.
2838         (parse_args): Handle them.
2839         * ldlang.h (lang_input_statement_type): Add as_needed field.
2840         * ldlang.c (new_afile): Set p->as_needed.
2841         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2842         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2843         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2844
2845         * ldlang.c (open_input_bfds): Remove useless cast.
2846         (lang_do_assignments_1): Likewise.
2847         (lang_for_each_input_section): Delete.
2848
2849 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2850
2851         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
2852
2853 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
2854
2855         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2856         private when building implib.
2857
2858 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
2859
2860         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2861         SEC_THREAD_LOCAL.
2862         (IGNORE_SECTION): Ignore .tbss sections too.
2863         (lang_size_sections_1): .tbss sections do not advance dot.
2864
2865 2004-03-01  Andreas Schwab  <schwab@suse.de>
2866
2867         * ld.texinfo (Options): Fix example for --wrap.
2868
2869 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
2870
2871         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2872         not NULL.
2873
2874 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
2875
2876         * ldlang.c (lang_check): Use %P, not %E, in error message.
2877
2878 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
2879
2880         * ldlang.h (struct lang_output_section_state): Change processed
2881         field's type.
2882         * ldexp.c (check, invalid): Remove.
2883         (fold_name): Move valid_p assignments. Create undefined symbol
2884         when needed. Directly exampine section's processd flag.
2885         * ldlang.c (lang_output_section_statement_lookup): Adjust
2886         processed field init.
2887         (lang_size_sections_1): Allow LOADADDR when determining section's
2888         VMA. Adjust error message. Fold data statement's expr.
2889         (lang_size_sections): Correctly increment lang_statement_iteration.
2890
2891 2004-02-23  Alan Modra <amodra@bigpond.net.au>
2892
2893         * ldexp.c (fold_tree): Follow indirect symbols.
2894
2895 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
2896
2897         * ldgram.y (exp): Add two operand ALIGN.
2898         * ldexp.c (fold_binary): Add ALIGN_K case.
2899         * ld.texinfo (ALIGN): Document two operand version.
2900
2901 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
2902
2903         * ldlang.c (map_input_to_output_sections): Initialize sections
2904         mentioned in a data statement expression.
2905         (lang_do_assignments_1): Add data statement's expression's
2906         section's vma.
2907
2908 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
2909
2910         * ldgram.y (statement_anywhere): Add assert rule.
2911         * ldlang.c (exp_init_os): Add assert case.
2912
2913 2004-02-14  Andrew Cagney  <cagney@redhat.com>
2914
2915         * ldmain.c (remove_output): Call bfd_cache_close.
2916
2917 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
2918
2919         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2920         .MIPS.content* and .MIPS.events* sections.
2921
2922 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
2923
2924         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2925         .note.gnu.arm.ident to after allocated sections.  Mark its
2926         address as 0.
2927
2928 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
2929
2930         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2931         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2932         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2933         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2934         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2935
2936 2004-02-05  Nick Clifton  <nickc@redhat.com>
2937
2938         * emultempl/pe.em (_after_open): Fix typo in previous delta.
2939
2940 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
2941
2942         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2943
2944 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
2945
2946         * genscripts.sh: Fix typo.
2947
2948         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2949
2950 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
2951
2952         * emulparams/elf64_ia64.sh: Put .rela.opd into
2953         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2954
2955 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
2956
2957         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2958         * ld.texinfo (--omagic): Note that writable text section
2959         does not conform to published PE-COFF specs.
2960         (--enable-auto-import): Likewise.
2961
2962 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
2963
2964         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2965
2966 2004-01-13  Nick Clifton  <nickc@redhat.com>
2967
2968         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2969         which if true will prevent the LMA region being used as a
2970         replacement for a default VMA region.
2971         (lang_leave_output_section_statement): Pass extra parameter.
2972         (lang_leave_overlay): Likewise.
2973         * ld.texinfo (Output Section LMA): Document that the LMA
2974         region can be set to the VMA region if no VMA has been set.
2975         * ldlang.h (struct lang_output_section_phdr_list): Create a
2976         typedef for this type.  Minor formatting fixes.
2977
2978 2004-01-13  Nick Clifton  <nickc@redhat.com>
2979
2980         * ldlang.c (lang_size_sections_1): If dot is advanced, then
2981         assume that the section should be allocated.
2982
2983 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
2984
2985         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2986         sections.  Do ignore SEC_NEVER_LOAD sections.
2987         (lang_size_sections_1): Remove test made redundant with the above.
2988
2989 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
2990
2991         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2992         program_header_size.
2993
2994 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
2995
2996         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
2997         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2998         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
2999         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3000         (MAXPAGESIZE): Set to 64Kb.
3001         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3002         __ROFIXUP_END__.  Don't map .rofixup.got any more.
3003         * emulparams/elf32frv.sh (NOP): Set.
3004         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
3005         * configure.tgt: Add frv-*-*linux*.
3006         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
3007         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3008         (eelf32frvfd.c): New.
3009         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3010         * emulparams/elf32frv.sh: Reverted previous two patches.
3011         * emulparams/elf32frvfd.sh: New.
3012         * Makefile.in: Rebuilt.
3013         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
3014         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3015         .rofixup.got to .rofixup.
3016         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
3017         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3018         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3019
3020 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
3021
3022         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3023         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3024
3025 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
3026
3027         * ldexp.c (align_n): Make static.
3028         * ldexp.h (align_n): Delete declaration.
3029         * ldlang.h (lang_enter_output_section_statement): Remove
3030         block_value param.
3031         * ldlang.c (lang_enter_output_section_statement): Likewise.
3032         (TO_ADDR, TO_SIZE): Define.
3033         (opb_shift): New var.
3034         (init_opb): New function.
3035         (print_input_section): Call init_opb and use TO_ADDR.
3036         (print_data_statement, print_reloc_statement): Likewise.
3037         (print_padding_statement): Likewise.
3038         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
3039         (lang_check_section_addresses): Likewise.
3040         (lang_size_sections_1): Likewise.
3041         (lang_do_assignments_1): Likewise.
3042         (lang_set_startof): Likewise.
3043         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
3044         (lang_process): Call init_opb.
3045         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
3046         (lang_enter_overlay_section): Adjust
3047         lang_enter_output_section_statement call.
3048         * ldgram.y: Likewise.
3049         * mri.c (mri_draw_tree): Likewise.
3050         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3051         * emultempl/mmo.em (mmo_place_orphan): Likewise.
3052         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3053
3054         * ldfile.c (ldfile_set_output_arch): Add defarch param.
3055         * ldfile.h (ldfile_set_output_arch): Ditto.
3056         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3057         ldfile_set_output_arch.
3058         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3059         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3060         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3061         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3062         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3063         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3064         * ldgram.y: Adjust ldfile_set_output_arch call.
3065         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3066         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3067         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3068         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3069         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3070         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3071         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3072
3073 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
3074
3075         * configure.tgt: Add m68k-uClinux target.
3076
3077 For older changes see ChangeLog-0203
3078 \f
3079 Local Variables:
3080 mode: change-log
3081 left-margin: 8
3082 fill-column: 74
3083 version-control: never
3084 End: