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