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