6b8c9959a22db16f455635b88ad27414662f0fbe
[external/binutils.git] / ld / ChangeLog
1 2003-10-02  Ivan Warren <ivan@vmfacility.fr>
2
3         * pe-dll.c (make_one): Correct sym def order & pick right sym for
4         .idata$7 reloc.
5
6 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
7
8         * NEWS: Add an indication of the cutoff for 2.14.
9
10 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
11
12         * ldmain.c (get_emulation): Ignore "-mips64r2".
13
14 2003-09-03  Robert Millan  <robertmh@gnu.org>
15
16         * configure.host: Match GNU/KFreeBSD with new kfreebsd*-gnu
17         triplet.
18         * configure.tgt: Likewise.
19
20 2003-08-29  Jafa  <jafa@silicondust.com>
21
22         * emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define.
23
24 2003-08-21  Nick Clifton  <nickc@redhat.com>
25
26         * po/tr.po: Updated Turkish translation.
27
28 2003-08-20  Nick Clifton  <nickc@redhat.com>
29
30         * ldmain.c: Initialise the new fields in bfd_link_info to
31         NOT_YET_SET.
32         * lexsup.c (enum option_values): New enum.  Use this to
33         replace the handed coded values for the long switch options.
34         (ld_options): Add 'unresolved-symbols',
35         'warn-unresolved-symbols' and 'error-unresolved-symbols'.
36         (parse_args): Handle the new switches.  Set the values of
37         unresolved_symbols_in_objects and
38         unresolved_symbols_in_shared_libs appropriately.  If they were
39         not initialised by the command line, install default values.
40         * emultempl/elf32.em (handle_option): Update OPTION_GROUP and
41         -z defs to use the new fields in bfd_link_info.
42         * ld.texinfo: Document the new switches.
43         * NEWS: Mention this feature.
44
45 2003-08-15 Dmitry Diky <diwil@mail.ru>
46         
47         * Makefile.am (GENSCRIPTS_EXTRA): New script definition which
48         calls genscripts_extra.sh.
49         Rearrange all msp430 depends using this script.
50         * Makefile.in: Regenerate.
51         * genscripts_extra.sh: New file: Similar to genscripts.sh, except
52         that the script to be run to generate the emulations can be passed
53         as an optional parameter instead of being computed from the
54         emulation name.
55         * emulparams/msp430all.sh: New file: Combine all msp430 subdevice
56         definitions into one file.
57         * emulparams/msp430x*.sh: Removed.
58
59 2003-08-15  Nick Clifton  <nickc@redhat.com>
60
61         * ld.texinfo (Options): Put keywords for the -z option into a
62         table.  Add more text describing what the -z now option does.
63
64 2003-08-14  Alan Modra  <amodra@bigpond.net.au>
65
66         * dep-in.sed: Remove libintl.h.
67         * Makefile.am (POTFILES.in): Unset LC_COLLATE.
68         * Makefile.in: Regenerate.
69
70 2003-08-13  Alan Modra  <amodra@bigpond.net.au>
71
72         * genscripts.sh (libpath.exp): Only generate for first emulation.
73         (LIB_PATH): Correct order of paths.  Don't add $tool_lib when
74         already present or when LIB_PATH is set to ":".
75
76 2003-08-12  Ian Lance Taylor  <ian@airs.com>
77
78         * ldmain.c (undefined_symbol): Change parameter name from `fatal'
79         to `error'.  If only a warning, put warning in the reported
80         string.  Consistently set failure flag when not a warning.
81
82 2003-08-08 Dmitry Diky <diwil@mail.ru>
83
84         * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
85         gcc order.
86         * Makefile.in: Regenerate.
87         * configure.tgt: Add extra emulations.
88         * emulparams/msp430xE423.sh: New file.
89         * emulparams/msp430xE427.sh: New file.
90         * emulparams/msp430xW425.sh: New file.
91         * emulparams/msp430xE425.sh: New file.  
92         * emulparams/msp430xW423.sh: New file.  
93         * emulparams/msp430xW427.sh: New file.
94
95 2003-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
96
97         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
98         Change second (cmdline) arg to lang_add_entry to FALSE.
99         (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
100
101 2003-08-05  Christian Groessler  <chris@groessler.org>
102             Jason Eckhardt  <jle@rice.edu>
103
104         * configure.tgt: Recognize new target i860-*-coff.
105         * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
106         (ecoff_i860.c): New rule.
107         * emulparams/coff_i860.sh: New file.
108         * scripttempl/i860coff.sc: New file.
109         * Makefile.in: Regenerate.
110
111 2003-08-04  Nick Clifton  <nickc@redhat.com>
112
113         * emultempl/elf32.em (before_allocation): Prepend "warning: "
114         to messages produced for .gnu.warning.SYMBOL sections.
115
116 2003-08-04  Alan Modra  <amodra@bigpond.net.au>
117
118         * emultempl/elf32.em (output_rel_find): Add "isdyn" param.  Put
119         .rel.dyn before other reloc sections.  Don't stop looking for reloc
120         sections on finding one that isn't allocated.  Match .rel even when
121         placing .rela and vice versa, when setting last_rel and
122         last_rel_alloc for the first time.  If no reloc sections in script,
123         prefer allocated section over non-alloc.
124         (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
125
126 2003-07-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
127
128         * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
129         section for shared library.
130         * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
131         * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
132
133 2003-07-29  Stephane Carrez  <stcarrez@nerim.fr>
134
135         * scripttempl/elfm68hc12.sc: Add gcc_except_table.
136         * scripttempl/elfm68hc11.sc: Likewise.
137
138 2003-07-28  Alan Modra  <amodra@bigpond.net.au>
139
140         * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
141
142         * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
143
144 2003-07-27  Alan Modra  <amodra@bigpond.net.au>
145
146         * ld.texinfo: Typo fixes.  Document SUBALIGN.
147         * ldgram.y (opt_subalign): Add.
148         * ldlex.l (SUBALIGN): Recognize.
149         * ldlang.c (overlay_subalign): New var.
150         (lang_enter_overlay): Add subalign param.
151         (lang_enter_overlay_section): Pass overlay_subalign to
152         lang_enter_output_section_statement.
153         * ldlang.h (lang_enter_overlay): Update.
154
155 2003-07-24  Nick Clifton  <nickc@redhat.com>
156
157         * po/fr.po: Updated French translation.
158
159 2003-07-23  Stephane Carrez  <stcarrez@nerim.fr>
160
161         * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
162         account .tramp sections;
163         * scripttempl/elfm68hc12.sc: Likewise.
164
165 2003-07-17  Charles Wilson  <cwilson@ece.gatech.edu>
166
167         * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
168
169 2003-07-17  Nick Clifton  <nickc@redhat.com>
170
171         * po/es.po: New Spanish translation.
172
173 2003-07-11  Alan Modra  <amodra@bigpond.net.au>
174
175         * po/ld.pot: Regenerate.
176
177 2003-07-10  Bob Wilson  <bob.wilson@acm.org>
178
179         * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
180         with new .got.loc section.
181         (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
182         non-relocating links.
183         (OTHER_SECTIONS): Add .xt.lit here.  Change it to keep linkonce
184         sections separate for non-relocating links; likewise for .xt.insn.
185
186 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
187
188         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
189         * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
190         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
191         * configure.host (am33_2.0-*-linux*): Added.
192         * configure.tgt (am33_2.0-*-linux*): Likewise.
193         * emulparams/elf32am33lin.sh: New.
194         * Makefile.am (eelf32am33lin.c): New rule.
195         * Makefile.in: Rebuilt.
196
197 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
198
199         2001-04-17  Alexandre Oliva  <aoliva@redhat.com>
200         * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
201         (GENERATE_SHLIB_SCRIPT): Likewise.
202
203 2003-07-10  Alan Modra  <amodra@bigpond.net.au>
204
205         * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
206         (GOT): Define.
207         * emultempl/ppc64elf.em (stub_added): New static var.
208         (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
209         (ppc_add_stub_section): Set stub_added.
210         (gld${EMULATION_NAME}_finish): Look for .got rather than .toc.  Adjust
211         ppc64_elf_size_stubs call and test for stubs.
212         * scripttempl/elf.sc (GOT): Define and use.
213
214 2003-07-08  J"orn Rennecke <joern.rennecke@superh.com>
215
216         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
217         Allow second call from ldemul_finish.
218
219 2003-07-04  J"orn Rennecke <joern.rennecke@superh.com>
220
221         * emulparams/shelf32.sh (STACK_ADDR): Don't define.
222         (OTHER_SECTIONS): Include .stack.
223         * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
224
225 2003-07-02  Jakub Jelinek  <jakub@redhat.com>
226
227         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
228         .opd if -pie.
229         (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
230         * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
231         if -pie.
232
233 2003-06-28  Alan Modra  <amodra@bigpond.net.au>
234
235         * ld.h: Convert to C90, remove unnecessary prototypes and casts.
236         Replace PTR with void *.  Formatting.
237         * ldcref.c: Likewise.
238         * ldctor.c: Likewise.
239         * ldctor.h: Likewise.
240         * ldemul.h: Likewise.
241         * ldexp.c: Likewise.
242         * ldexp.h: Likewise.
243         * ldfile.c: Likewise.
244         * ldfile.h: Likewise.
245         * ldlang.c: Likewise.
246         * ldlang.h: Likewise.
247         * ldlex.h: Likewise.
248         * ldlex.l: Likewise.
249         * ldmain.c: Likewise.
250         * ldmain.h: Likewise.
251         * ldmisc.c: Likewise.
252         * ldmisc.h: Likewise.
253         * ldver.h: Likewise.
254         * ldwrite.c: Likewise.
255         * ldwrite.h: Likewise.
256         * lexsup.c: Likewise.
257         * mri.c: Likewise.
258         * mri.h: Likewise.
259         * pe-dll.c: Likewise.
260         * pe-dll.h: Likewise.
261         * deffilep.y: Likewise.
262         * deffile.h: Likewise.  Don't include ansidecl.h.
263         * emulparams/elf32mcore.sh: Remove unnecessary cast.
264         * emultempl/m68kcoff.em: Likewise.
265         * emultempl/m68kelf.em: Likewise.
266         * emultempl/ticoff.em: Remove lang_add_output_format declaration.
267         * sysdep.h: Don't include ansidecl.h.
268         * Makefile.am: Run "make dep-am".
269         * Makefile.in: Regenerate.
270
271 2003-06-27  Nick Clifton  <nickc@redhat.com>
272
273         * deffilep.y (def_file_add_directive): Cope with NUL seperated
274         directives.  Fix reporting of unparseable directives.
275         (def_error): Check for a NULL def_filename.
276
277 2003-06-27  Alan Modra  <amodra@bigpond.net.au>
278
279         * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
280         and casts.  Replace PTR with void *.  Formatting.
281         * emultempl/alphaelf.em: Likewise.
282         * emultempl/armcoff.em: Likewise.
283         * emultempl/armelf.em: Likewise.
284         * emultempl/armelf_oabi.em: Likewise.
285         * emultempl/beos.em: Likewise.
286         * emultempl/elf32.em: Likewise.
287         * emultempl/generic.em: Likewise.
288         * emultempl/gld960.em: Likewise.
289         * emultempl/gld960c.em: Likewise.
290         * emultempl/hppaelf.em: Likewise.
291         * emultempl/linux.em: Likewise.
292         * emultempl/lnk960.em: Likewise.
293         * emultempl/m68hc1xelf.em: Likewise.
294         * emultempl/m68kcoff.em: Likewise.
295         * emultempl/m68kelf.em: Likewise.
296         * emultempl/mipsecoff.em: Likewise.
297         * emultempl/mipself.em: Likewise.
298         * emultempl/mmix-elfnmmo.em: Likewise.
299         * emultempl/mmixelf.em: Likewise.
300         * emultempl/mmo.em: Likewise.
301         * emultempl/needrelax.em: Likewise.
302         * emultempl/netbsd.em: Likewise.
303         * emultempl/pe.em: Likewise.
304         * emultempl/sh64elf.em: Likewise.
305         * emultempl/sunos.em: Likewise.
306         * emultempl/ticoff.em: Likewise.
307         * emultempl/vanilla.em: Likewise.
308         * emultempl/xtensaelf.em: Likewise.
309         * Makefile.am: Correct dependencies.
310         * Makefile.in: Regenerate.
311
312 2003-06-25  Alan Modra  <amodra@bigpond.net.au>
313
314         * ld.texinfo: Correct spelling of "relocatable".
315         * ldctor.c: Likewise.
316         * ldexp.c: Likewise.
317         * ldfile.c: Likewise.
318         * ldint.texinfo: Likewise.
319         * ldlang.c: Likewise.
320         * ldmain.c: Likewise.
321         * ldwrite.c: Likewise.
322         * lexsup.c: Likewise.
323         * emultempl/aix.em: Likewise.
324         * emultempl/alphaelf.em: Likewise.
325         * emultempl/armcoff.em: Likewise.
326         * emultempl/armelf_oabi.em: Likewise.
327         * emultempl/beos.em: Likewise.
328         * emultempl/elf32.em: Likewise.
329         * emultempl/generic.em: Likewise.
330         * emultempl/gld960.em: Likewise.
331         * emultempl/gld960c.em: Likewise.
332         * emultempl/hppaelf.em: Likewise.
333         * emultempl/linux.em: Likewise.
334         * emultempl/lnk960.em: Likewise.
335         * emultempl/m68hc1xelf.em: Likewise.
336         * emultempl/m68kcoff.em: Likewise.
337         * emultempl/m68kelf.em: Likewise.
338         * emultempl/mipsecoff.em: Likewise.
339         * emultempl/mipself.em: Likewise.
340         * emultempl/mmix-elfnmmo.em: Likewise.
341         * emultempl/mmo.em: Likewise.
342         * emultempl/needrelax.em: Likewise.
343         * emultempl/pe.em: Likewise.
344         * emultempl/ppc64elf.em: Likewise.
345         * emultempl/sh64elf.em: Likewise.
346         * emultempl/sunos.em: Likewise.
347         * emultempl/ticoff.em: Likewise.
348         * emultempl/xtensaelf.em: Likewise.
349
350 2003-06-24  Alan Modra  <amodra@bigpond.net.au>
351
352         * emultempl/ppc32elf.em: Convert to C90.
353
354 2003-06-20  Alan Modra  <amodra@bigpond.net.au>
355
356         * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
357         unnecessary prototypes and casts.
358
359 2003-06-19  Alan Modra  <amodra@bigpond.net.au>
360
361         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
362         statistics from ppc64_elf_build_stubs.
363
364 2003-06-19  Alan Modra  <amodra@bigpond.net.au>
365
366         * emultempl/ppc64elf.em (build_section_lists): Check return status
367         from ppc64_elf_next_input_section.
368
369 2003-06-17  H.J. Lu <hongjiu.lu@intel.com>
370
371         * ldlang.c (section_already_linked): Put back assignment of
372         kept_section.
373
374 2003-06-17  Rainer Keuchel  <rkeuchel@allgeier.com>
375
376         * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
377         reloc.
378
379 2003-06-17  Loren James Rittle  <rittle@latour.rsch.comm.mot.com>
380
381         * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
382         if not produced by gcc.
383
384 2003-06-16  Hans-Peter Nilsson  <hp@axis.com>
385
386         * configure.tgt: Add specific case for cris-*-linux-gnu*
387         with crislinux emulation only.
388
389 2003-06-13  Robert Millan  <zeratul2@wanadoo.es>
390
391         * configure.tgt: Add i386-netbsd-gnu target.
392
393 2003-06-12  Richard Sandiford  <rsandifo@redhat.com>
394
395         * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
396         to $targ_extra_libpath.
397
398 2003-06-11  H.J. Lu <hongjiu.lu@intel.com>
399
400         * po/Make-in (DESTDIR): New.
401         (install-data-yes): Support $(DESTDIR).
402         (uninstall): Likewise.
403
404 2003-06-10  Doug Evans  <dje@sebabeach.org>
405
406         * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
407         * Makefile.in: Regenerate.
408
409 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
410
411         * configure.tgt (h8300*): Add h8300sxn emulations.
412         * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
413         (eh8300sxn.c, eh8300sxnelf.c): New rules.
414         * Makefile.in: Regenerate.
415         * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
416         * scripttempl/h8300sxn.sc: New file.
417
418 2003-06-10  Alan Modra  <amodra@bigpond.net.au>
419
420         * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
421         CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
422
423 2003-06-08  Alan Modra  <amodra@bigpond.net.au>
424
425         * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
426         (build_toc_list): New function.
427         (gld${EMULATION_NAME}_finish): Call build_toc_list and
428         ppc64_elf_reinit_toc.  Adjust ppc64_elf_build_stubs call.
429         (OPTION_STUBSYMS): Define.
430         (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
431         (PARSE_AND_LIST_OPTIONS): Document.
432         (PARSE_AND_LIST_ARGS_CASES): Handle.
433
434 2003-06-05  Roland McGrath  <roland@redhat.com>
435
436         * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
437         extra \t in -z noexecstack line.
438
439 2003-05-23  Jakub Jelinek  <jakub@redhat.com>
440
441         * ldgram.y (phdr_type): Grok PT_GNU_STACK.
442         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
443         -z execstack and -z noexecstack.
444         (gld${EMULATION_NAME}_list_options): Likewise.
445         * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
446
447 2003-06-03  Michael Snyder  <msnyder@redhat.com>
448         and Bernd Schmidt   <bernds@redhat.com>
449         and Alexandre Oliva <aoliva@redhat.com>
450
451         * Makefile.am: Add new emulations for h8300sx.
452         * Makefile.in: Regenerate.
453         * configure.tgt: Add new emulations.
454         * emulparams/h8300sx.sh: New emulation.
455         * emulparams/h8300sxelf.sh: Ditto.
456         * scripttempl/h8300sx.sc: Ditto.
457
458 2003-06-03  H.J. Lu <hongjiu.lu@intel.com>
459
460         * ldmisc.c: Include "bfdlink.h".
461         (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
462         and -LD_DEFINITION_IN_DISCARDED_SECTION.
463
464         * Makefile.am: Rebuild dependency.
465         * Makefile.in: Regenerated.
466
467 2003-06-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
468
469         * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
470         * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
471
472 2003-06-02  Fabrizio Gennari  <fabrizio.ge@tiscalinet.it>
473
474         * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
475         sorted alphabetically, instead of exported_symbols, which is
476         sorted by ordinal.
477
478 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
479             Jakub Jelinek  <jakub@redhat.com>
480
481         * lexsup.c (OPTION_PIE): Define.
482         (ld_options): Add -pie and --pic-executable options.
483         (parse_args): Handle OPTION_PIE.
484         * ldmain.c (main): Initialize link_info.pie and
485         link_info.executable.
486         * genscripts.sh: Generate PIE scripts.
487         * ld.texinfo: Document -pie and --pic-executable options.
488         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
489         (gld${EMULATION_NAME}_place_orphan): Likewise.
490         (gld${EMULATION_NAME}_get_script): Include PIE scripts.
491         * scripttempl/elf.sc: In PIE scripts set . the same way as in
492         shared scripts.
493         * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
494         * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
495         * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
496         * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
497         * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
498         * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
499         * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
500         * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
501         * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
502         * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
503         * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
504
505 2003-05-30  H.J. Lu <hongjiu.lu@intel.com>
506
507         * genscripts.sh: Create tmpdir/libpath.exp.
508
509 2003-05-30  Nick Clifton  <nickc@redhat.com>
510
511         * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
512         with a test for a NULL bfd_for_interworking.
513
514 2003-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
515
516         * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
517         correctly for more recent versions of NetBSD.
518         (alpha*-*-netbsd*): Remove.
519         (i[3-7]86-*-netbsd*): Remove.
520
521 2003-05-29  Nick Clifton  <nickc@redhat.com>
522
523         * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
524
525 2003-05-26  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
526
527         * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
528         trap on pointer crops.
529
530 2003-05-21  Marcus Comstedt  <marcus@mc.pp.se>
531
532         * configure.tgt: Check for a target triplet of shl-...-netbsdelf
533         as well as shle-...-netbsdelf.
534
535 2003-05-16  Kelley Cook  <kelleycook@wideopenwest.com>
536
537         * configure.host: Accept i[3-7]86 variants.
538         * configure.tgt: Likewise.
539
540 2003-05-15  H.J. Lu <hongjiu.lu@intel.com>
541
542         * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
543
544 2003-05-09  Daniel Jacobowitz  <drow@mvista.com>
545
546         * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
547         (earmelfb.c, earmelfb_linux.c): New rules.
548         * Makefile.in: Regenerated.
549         * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
550         * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
551
552 2003-05-09  Nick Clifton  <nickc@redhat.com>
553
554         * ldlang.c (lang_size_sections_1): Default to generating a
555         fatal error message if a loadable section is not allocated
556         to a memory region when regions are defined.
557
558 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
559
560         * Makefile.am (em68hc11elf.c): Correct dependencies.
561         (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
562         * Makefile.in: Regenerate.
563         * emultempl/elf32.em (find_exp_assignment): Adjust for changed
564         bfd_elf_record_link_assignment name.
565
566 2003-05-07  Alexandre Oliva  <aoliva@redhat.com>
567
568         * ldmain.h (overflow_cutoff_limit): Declare.
569         * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
570         (reloc_overflow): Limit error messages based on it.
571         * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
572         unlimited.
573
574 2003-05-05  Alan Modra  <amodra@bigpond.net.au>
575
576         * ldlex.l: Accept C style comments in version scripts.
577
578 2003-04-28  H.J. Lu <hjl@gnu.org>
579
580         * ldlang.c (lang_process): Add the relax finalize pass.
581
582         * ldmain.c (main): Initialize link_info.relax_finalizing to
583         FALSE.
584
585 2003-04-24  Roland McGrath  <roland@redhat.com>
586
587         * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
588         If a name string is unknown, give an error rather than crashing later.
589
590 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
591
592         * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
593         eh8300hnelf.o, eh8300snelf.o and respective rules.
594         * Makefile.in: Regenerate.
595         * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
596         * emulparams/h8300hn.sh: New
597         * emulparams/h8300sn.sh: New
598         * emulparams/h8300hnelf.sh: New
599         * emulparams/h8300snelf.sh: New
600         * scripttempl/h8300hn.sc: new
601         * scripttempl/h8300sn.sc: new
602
603 2003-04-23  H.J. Lu <hjl@gnu.org>
604
605         * ldmain.c (link_callbacks): Initialize error_handler.
606
607         * ldmisc.c (error_handler): New function.
608
609         * ldmisc.h (error_handler): New prototype.
610
611 2003-04-21  Stephane Carrez  <stcarrez@nerim.fr>
612
613         * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
614         * emulparams/m68hc11elfb.sh: Likewise.
615         * emulparams/m68hc12elf.sh: Likewise.
616         * emulparams/m68hc12elfb.sh: Likewise.
617
618 2003-04-19  Stephane Carrez  <stcarrez@nerim.fr>
619
620         * emultempl/m68hc1xelf.em: New file to generate far trampolines on
621         68HC11 and 68HC12.
622         (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
623         generate.
624         (LDEMUL_FINISH): Override to generate the trampolines after gc and
625         linker relaxation.
626         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
627         stub file for trampolines.
628         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
629         --no-trampoline and --bank-window to control the memory bank window.
630
631 2003-04-18  H.J. Lu <hjl@gnu.org>
632
633         * ldfile.c (ldfile_add_library_path): Remove the unused
634         variable.
635
636 2003-04-18  Andrew Haley  <aph@cambridge.redhat.com>
637
638         * scripttempl/xstormy16.sc (__data, __rdata): New.
639
640 2003-04-16  Nick Clifton  <nickc@redhat.com>
641
642         * scripttempl/xstormy16.sc: Add .jcr section mapping.
643
644 2003-04-15  H.J. Lu <hjl@gnu.org>
645
646         From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
647
648         * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
649
650 2003-04-15  Rohit Kumar Srivastava <rohits@kpitcummins.com>
651
652         * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
653         * ld.texinfo: Likewise.
654
655 2003-04-14  Alan Modra  <amodra@bigpond.net.au>
656
657         From Prashanth Tamraparni <prashanth_t@in.ibm.com>
658         * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
659         other variants of crtbegin.o, crtend.o.
660         (DTOR): Likewise.
661         * scripttempl/crisaout.sc (ctors, dtors): Likewise.
662         * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
663         * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
664         * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
665         * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
666         * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
667         * scripttempl/mmo.sc (ctors, dtors): Likewise.
668         * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
669
670 2003-04-09   Dmitry Diky  <diwil@mail.ru>
671
672         * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
673         sections to respect C++  constructor/destructor. Add ctors/dtors
674         start/stop definitions.
675         * scripttempl/elf32msp430_3.sc: Likewise.
676
677 2003-04-06  Nick Clifton  <nickc@redhat.com>
678
679         * ld.texinfo (Options): Add a reminder of the target specific
680         nature to the description of the i386 PE specific options, for
681         readers who have not read all the way through the manual.
682
683 2003-04-04  Svein E. Seldal  <Svein.Seldal@solidas.com>
684
685         * configure.tgt: Fixed bug in list of targ_extra_emuls.
686         * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
687         cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
688         * emulparams/tic3xcoff_onchip.sh: Ditto
689         * emulparams/tic4xcoff.sh: Ditto
690         * scripttempl/tic4xcoff.sc: Ditto
691
692 2003-04-03  Nick Clifton  <nickc@redhat.com>
693
694         * NEWS: Mention support for Xtensa architecture.
695
696 2003-04-02  Nick Clifton  <nickc@redhat.com>
697
698         * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
699
700 2003-04-01  Danny Smith <dannysmith@users.sourceforge.net>
701
702         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
703         Don't call pe_dll_build_section() if link_info.relocateable.
704         (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
705         if link_info.relocateable.
706
707 2003-04-01  Fabrizio Gennari  <fabrizio.ge@tiscalinet.it>
708
709         * pe-dll.c (process_def_file): Don't create an export
710         section if there are no exports and we're building an exe
711         (pe_dll_build_sections): Ditto
712         (pe_dll_fill_sections): Conditionalize setting
713         abfd->dll true on info->shared
714         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
715         If i386pe or armpe, call pe_dll_build_section()
716         for both exe's and dll's, not just dll's.
717         (gld_${EMULATION_NAME}_finish): For all targets except
718         shpe and mipspe, call pe_dll_fill_sections() for both
719         exe's and dll's, not just dll's.
720
721 2003-04-02  Bob Wilson  <bob.wilson@acm.org>
722
723         * emulparams/xtensa-config.sh: Remove comment indicating that this is
724         a generated file.
725
726 2003-04-01  Bob Wilson  <bob.wilson@acm.org>
727
728         * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
729         (eelf32xtensa.c): New target.
730         * Makefile.in: Regenerate.
731         * configure.tgt: Handle xtensa-*-*.
732         * gen-doc.texi: Set XTENSA variable.
733         * ld.texinfo: Set XTENSA variable.  Add new Xtensa node.
734         * emulparams/elf32xtensa.sh: New file.
735         * emulparams/xtensa-config.sh: Likewise.
736         * emultempl/xtensaelf.em: Likewise.
737         * scripttempl/elfxtensa.sc: Likewise.
738
739 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
740
741         * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
742         targ_extra_libpath.  Add elf64ppc to ppc targ_extra_libpath
743         if --enable-64-bit-bfd.
744
745 2003-04-01  Nick Clifton  <nickc@redhat.com>
746
747         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
748         note section.
749         * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
750         name of note section.
751
752 2003-03-31  Alexandre Oliva  <aoliva@redhat.com>
753
754         * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
755         --section-start.
756
757 2003-03-31  David Heine  <dlheine@suif.stanford.edu>
758
759         * ldfile.c (ldfile_add_library_path): Always allocate space for
760         the filename.
761         * ldlang.c (lang_register_vers_node): Free the node if it cannot
762         be used.
763         * ldmain.c (set_scripts_dir): Always free the constructed
764         directory name.
765         (add_keepsyms_file): Fix memory leak.
766         * ldmisc.c (vfinfo): Likewise.
767         * lexsup.c (parse_args): Likewise.
768
769 2003-03-25  Stan Cox   <scox@redhat.com>
770             Nick Clifton  <nickc@redhat.com>
771
772         Contribute support for Intel's iWMMXt chip - an ARM variant:
773
774         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
775         * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
776         * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
777         (.bss): Likewise.
778
779 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
780
781         * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
782         * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
783         (main): Initialize them.
784         * ldfile.c: Include pathnames.h.
785         (is_sysrooted_pathname): New.
786         (ldfile_add_library_path): Use it.
787         (ldfile_open_file_search): Likewise.  Use IS_ABSOLUTE_PATH.  Don't
788         search_dirs if given an absolute pathname.
789         (ldfile_open_file): Issue error message for sysrooted
790         absolute pathnames.
791         * Makefile.am: Updated dependencies.
792         * Makefile.in: Rebuild.
793
794 2003-03-24  Daniel Néri  <dne@mayonnaise.net>
795
796         * ld.texinfo: Rename all occurances of C54X to TIC54X.
797
798 2003-03-19  Andreas Schwab  <schwab@suse.de>
799
800         * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
801         eof.
802
803 2003-03-18  Danny Smith  <dannysmith@users.sourceforge.net>
804
805         * deffilep.y (opt_base): If no number given, set to default
806         (-1), not 0.
807
808 2003-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
809
810         * deffilep.y (def_import): Use default extension of "dll"
811         if no extension provided in parsed IMPORT definition.
812
813         * deffilep.y (def_lex): Revert 2003-03-12 change.
814         (dot_name): New id type and rule.
815         (expline): Use instead of ID.
816         (opt_equal_name): Likewise.
817
818 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
819
820         * deffilep.y (def_lex): Accept '.' as valid non-lead char.
821
822 2003-03-07  Christopher Faylor  <cgf@redhat.com>
823
824         * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
825         apparent accidental removal on 2003-01-06.
826
827 2003-03-04  Dmitry Diky  <diwil@mail.ru>
828
829         * Makefile.am: Add new devices x1122 x1132 emulation
830         * configure.tgt: Likewise.
831         * Makefile.in: Regenerate.
832         * emulparams/msp430x1122.sh: New file.
833         * emulparams/msp430x1132.sh: New file.
834
835 2003-03-03  Alexandre Oliva  <aoliva@redhat.com>
836
837         * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
838         well.
839
840         * ldfile.h (struct search_dirs): Added sysrooted field.
841         * ldlang.h (struct lang_input_statement_struct): Likewise.
842         * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
843         (ldfile_open_file_search): Look for sysrooted filename starting
844         with / in ld_sysroot instead of in the current directory.  Clear
845         sysrooted flag if it's found in the current directory.  Set it
846         from the search directory's sysrooted flag where it is found
847         otherwise.
848         * ldlang.c (ldlang_sysrooted_script): New static variable.
849         (new_afile): Mark search_file_enums as sysrooted if
850         ldlang_sysrooted_script.
851         (load_symbols): Set ldlang_sysrooted_script according to the
852         script's sysrooted field while processing it.
853         * ld.texinfo: Document INPUT behavior in sysroot.
854
855 2003-03-02  Danny Smith  <dannysmith@users.sourceforge.net>
856
857         * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
858
859 2003-03-03  Alan Modra  <amodra@bigpond.net.au>
860
861         * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
862         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
863         PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
864         PARSE_AND_LIST_EPILOGUE): Don't define.
865         * emultempl/alphaelf.em: New file.
866
867 2003-03-01  Alan Modra  <amodra@bigpond.net.au>
868
869         * ldemul.c: Include getopt.h.
870         * emultempl/elf32.em: Include getopt.h earlier.
871         * emultempl/ticoff.em: Likewise.
872
873 2003-02-28  Alan Modra  <amodra@bigpond.net.au>
874
875         * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
876         support when scripts read from files.
877
878 2003-02-28  Alan Modra  <amodra@bigpond.net.au>
879
880         * ldemul.c (ldemul_parse_args): Return FALSE by default.
881         * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
882         comment.
883
884         * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
885         (ldemul_parse_args): Return bfd_boolean.  Formatting.
886         * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
887         (ldemul_parse_args): Adjust.
888         (struct ld_emulation_xfer_struct): Add add_options and handle_option.
889         Return bfd_boolean from parse_args.
890         * lexsup.c (parse_args): Malloc shortopts, longopts and
891         really_longopts.  Call ldemul_add_options and ldemul_handle_option.
892         * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
893         gld${EMULATION_NAME}_parse_args.
894         (gld${EMULATION_NAME}_handle_option): Likewise.
895         (ld_${EMULATION_NAME}_emulation): Adjust initializer.
896         * emultempl/armcoff.em: As for aix.em, but remove parse_args.
897         * emultempl/beos.em: Likewise.
898         * emultempl/pe.em: Likewise.
899         * emultempl/ticoff.em: Likewise.
900         * emultempl/elf32.em: Likewise.  Don't duplicate long options either.
901         (gld${EMULATION_NAME}_add_sysroot): Prototype.
902         * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
903         options.
904         * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
905         * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
906         * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
907         * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
908         initializer.
909         * emultempl/generic.em: Likewise.
910         * emultempl/gld960.em: Likewise.
911         * emultempl/gld960c.em: Likewise.
912         * emultempl/linux.em: Likewise.
913         * emultempl/lnk960.em: Likewise.
914         * emultempl/m68kcoff.em: Likewise.
915         * emultempl/mipsecoff.em: Likewise.
916         * emultempl/sunos.em: Likewise.
917         * emultempl/vanilla.em: Likewise.
918         * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
919
920 2003-02-25  Alexandre Oliva  <aoliva@redhat.com>
921
922         * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
923         memory allocation error.
924
925         * Makefile.am (ldmain.o): Define TOOLBINDIR.
926         * Makefile.in: Rebuilt.
927         * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
928
929 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
930
931         * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
932         call os_region_check when it is set.
933         (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
934         lang_size_sections_1.
935         (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
936         only for the last call, not on every relaxation iteration.
937         * ldlang.h (lang_size_sections): Update prototype.
938         * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
939         to lang_size_sections.
940         (pe_exe_fill_sections): Likewise.
941         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
942         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
943         * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
944         (ppc_layout_sections_again): Likewise.
945
946 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
947
948         * gen-doc.texi: Set ARM and HPPA variables.
949         * ld.texinfo: Fix typos and obvious texinfo mistakes.  Make section
950         title capitalization more consistent.  Add missing menu entries for
951         machine-specific sections and conditionalize them consistently.
952         Conditionalize text that is irrelevant when SingleFormat is set.
953         Add @group divisions to improve page breaks in long examples.
954         Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
955         is correct.  Remove "FIXME" comment about not using
956         @raisesections/@lowersections.  Use @raisesections/@lowersections
957         consistently for machine-specific sections.  Change to be more polite
958         about poor bug reports.  Replace FDL appendix with include of fdl.texi.
959         Move WIN32 node to match its order in the menus.
960         * fdl.texi: New file.
961
962 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
963
964         * configure.in (TARGET_SYSTEM_ROOT): Set default to
965         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
966         '${exec_prefix}' (in addition to the expansion thereof) as
967         relocatable.
968         * configure: Rebuilt.
969
970 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
971
972         * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
973
974 2003-02-20  Harri Porten  <porten@kde.org>
975
976         * ldgram.y (vers_defns): Allow optional trailing semicolon in
977         EXTERN NAME block;
978
979 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
980
981         * emultempl/ppc32elf.em: New file.
982         * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
983         * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
984         (eelf32lppcnto.c): Likewise.
985         (eelf32lppcsim.c): Likewise.
986         (eelf32ppcnto.c): Likewise.
987         (eelf32ppc.c): Likewise.
988         (eelf32ppc_fbsd.c): Likewise.
989         (eelf32ppcsim.c): Likewise.
990         (eelf32ppclinux.c): Likewise.
991         * Makefile.in: Regenerate.
992
993 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
994
995         * ld.texinfo: Remove spaces between @samp and opening brace.
996
997 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
998
999         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
1000         hash creator.
1001         (ppc_before_allocation): Don't do optimizations if wrong hash table.
1002         (gld${EMULATION_NAME}_finish): Ditto.
1003
1004 2003-02-17  Nick Clifton  <nickc@redhat.com>
1005
1006         * ldmain.c (main) Default allow_shlib_undefined to true.
1007         * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
1008         (parse_args): Parse the new switch.
1009         * ld.texinfo: Document new switch and default behaviour of
1010         allowing undefined symbols in shared libraries.
1011
1012 2003-02-11 Dmitry Diky  <diwil@mail.ru>
1013
1014         * scripttempl/elf32msp430.sc: Add new data anchors definitions.
1015         * scripttempl/elf32msp430_3.sc: Likewise.
1016
1017 2003-02-11  Uwe Stieber  <uwe@wwws.de>
1018
1019         * configure.tgt: Add support for kaOS as cross build target
1020         system.
1021
1022 2003-02-10  John Daivid Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1023
1024         * hppaelf.em (group_size): Change default back to 1.
1025
1026 2003-02-09  Alan Modra  <amodra@bigpond.net.au>
1027
1028         * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
1029
1030 2003-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1031
1032         * hppaelf.em (group_size): Change default to -1.
1033
1034 2003-02-07  Nick Clifton  <nickc@redhat.com>
1035
1036         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
1037         opt.
1038         (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
1039         no-pipeline-knowledge.  This will prevent the getopt package from
1040         thinking that there are any shorter abbreviations for
1041         --no-pipeline-knowledge.
1042
1043 2003-02-07  Jakub Jelinek  <jakub@redhat.com>
1044
1045         * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
1046         which already have it.  Avoid duplicates.
1047
1048 2003-02-06  Jakub Jelinek  <jakub@redhat.com>
1049
1050         * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
1051         * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
1052         * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
1053
1054 2003-02-05  Alan Modra  <amodra@bigpond.net.au>
1055
1056         * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
1057         call ppc64_elf_tls_optimize.
1058
1059 2003-02-03  Daniel Jacobowitz  <drow@mvista.com>
1060
1061         * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
1062         outside of GNU/Linux conditional.
1063
1064 2003-01-28  Ralf Habacker  <ralf.habacker@freenet.de>
1065
1066         * deffilep.y (def_get_module): New function: locate an already
1067         added module.
1068         * deffile.h (def_get_module): New prototype.
1069         * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
1070         a dll multiple times.
1071
1072 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
1073
1074         * emultempl/sh64elf.em: Include elf32-sh64.h.
1075         (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
1076         sh64_elf_section_data.
1077         (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
1078
1079 2003-01-23  Wu Yongwei  <adah@netstd.com>
1080
1081         * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
1082         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
1083         cross-80th-column-margin "an" to the next line.
1084
1085 2003-01-21  Nick Clifton  <nickc@redhat.com>
1086
1087         * emulparams/tic3xcoff-onchip.sh: Rename to ...z
1088         * emulparams/tic3xcoff_onchip.sh: ...this.
1089         * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
1090         * Makefile.in: Regenerate.
1091
1092 2003-01-21  Fabio Alemagna  <falemagn@aros.org>
1093
1094         * configure.tgt: Handle i[3456]86-*-aros*
1095
1096 2003-01-19  Svein E. Seldal  <Svein.Seldal@solidas.com>
1097
1098         * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
1099         * Makefile.in: Regenerate
1100         * configure.tgt: Added extra target emulations
1101         * emulparams/tic3xcoff.sh: Remove old settings
1102         * emulparams/tic4xcoff.sh: Ditto
1103         * emulparams/tic3xcoff-onchip.sh: Added new
1104         * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
1105         * scripttempl/tic3xcoff.sc: Remove
1106
1107 2003-01-17  Andreas Jaeger  <aj@suse.de>
1108
1109         * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
1110         skip ':'.
1111
1112 2003-01-16  Alan Modra  <amodra@bigpond.net.au>
1113
1114         * Makefile.in: Regenerate.
1115
1116 2002-01-14  Charles Wilson  <cwilson@ece.gatech.edu>
1117
1118         * ld.texinfo (node WIN32): Some clarifications
1119         and formatting fixups.
1120
1121 2003-01-09  Chris Demetriou  <cgd@broadcom.com>
1122
1123         * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
1124         order, and handle (ignore) -mips32r2.
1125
1126 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
1127
1128         * ldmain.c (main): Make sure ld_sysroot is initialized.
1129
1130 2003-01-06  Daniel Jacobowitz  <drow@mvista.com>
1131
1132         * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1133
1134         * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1135         (GENSCRIPTS): Add @use_sysroot@.
1136         * Makefile.in: Regenerated.
1137         * configure.host: Move setting of NATIVE_LIB_DIRS to...
1138         * configure.tgt: ... here.  Use ${target} instead of ${host}
1139         for NATIVE_LIB_DIRS.
1140         * configure.in: Add --with-sysroot.
1141         * configure: Regenerated.
1142         * genscripts.sh: Accept use_sysroot option.  Set new variables
1143         NATIVE and USE_LIBPATH.  Prepend "=" to directory names if
1144         $use_sysroot.  Don't search $tool_lib if $use_sysroot.
1145         * ldfile.c (ldfile_add_library_path): Handle leading '='.
1146         * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1147         (ld_sysroot): New variable.
1148         (main): Initialize ld_sysroot.
1149         * ldmain.h (ld_sysroot): New extern.
1150         * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1151         searching $EMULATION_LIBPATH.
1152         (gld${EMULATION_NAME}_add_sysroot): New function.
1153         (gld${EMULATION_NAME}_check_ld_so_conf): Use it.  Honor ld_sysroot.
1154         (gld${EMULATION_NAME}_after_open): Likewise.  Only search
1155         environment variables if $NATIVE.
1156         * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1157         * NEWS: Mention --with-sysroot.
1158
1159         * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1160         instead of setting LIB_PATH.
1161         * emulparams/elf32ppc.sh: Likewise.
1162         * emulparams/elf64_s390.sh: Likewise.
1163         * emulparams/elf64_sparc.sh: Likewise.
1164         * emulparams/elf64ppc.sh: Likewise.
1165         * emulparams/elf_x86_64.sh: Likewise.
1166
1167         * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1168         * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1169
1170 2003-01-03  Charles Wilson  <cwilson@ece.gatech.edu>
1171
1172         * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1173
1174 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
1175
1176         * Makefile.am (ldmain.o): Pass BINDIR.
1177         * Makefile.in: Regenerated.
1178         * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1179         search path.
1180
1181 2003-01-02  Ben Elliston  <bje@redhat.com>
1182
1183         * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1184         (eelf32iq2000.c): New target.
1185         * Makefile.in: Regenerate.
1186         * configure.tgt: Handle iq2000-*-elf.
1187         * emulparams/elf32iq10.sh: New file.
1188         * emulparams/elf32iq2000.sh: New file.
1189         * scripttempl/iq2000.sc: New file.
1190
1191 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1192
1193         * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1194         and _pei386_runtime_relocator to the exclude list.
1195
1196 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
1197
1198         * ldfile.c: Fix comment typos.
1199         * ldlang.c: Likewise.
1200         * mri.c: Likewise.
1201         * pe-dll.c: Likewise.
1202
1203 2003-01-01  Daniel Jacobowitz  <drow@mvista.com>
1204
1205         Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1206         * Makefile.am (ld.1): Depend on configdoc.texi
1207         and ldver.texi.
1208         * Makefile.in: Regenerated.
1209
1210 2002-12-24  Dmitry Diky  <diwil@mail.ru>
1211
1212         * Makefile.am: Add msp430 target.
1213         * configure.tgt: Likewise.
1214         * Makefile.in: Regenerate.
1215         * emulparams/msp430x???.sh: New files.  Linker script parameters
1216         for various msp430 configurations.
1217         * gen-doc.texi: Enable msp430 documenation.
1218         * ld.texinfo: Document msp430 sections.
1219         * scripttempl/elf32msp430.sc: New file.  Linker script for msp430.
1220         * scripttempl/elf32msp430_3.sc: New file.  Linker script for msp430.
1221
1222 2002-12-30  Ralf Habacker  <Ralf.Habacker@freenet.de>
1223             Charles Wilson  <cwilson@ece.gatech.edu>
1224
1225         * config.in (HAVE_REALPATH): New entry.
1226         (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1227
1228 2002-12-30  Ralf Habacker  <ralf.habacker@freenet.de>
1229
1230         * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1231         symbols'.
1232
1233 2002-12-23  Alan Modra  <amodra@bigpond.net.au>
1234
1235         * ldmain.c (main): Init "strip_discarded".
1236         * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1237         (OPTION_NO_STRIP_DISCARDED): Define.
1238         (ld_options): Add "strip-discarded" and "no-strip-discarded".
1239         (parse_args): Handle them.
1240
1241 2002-12-23  Nick Clifton  <nickc@redhat.com>
1242
1243         * ld.h (struct args_type): Add new field
1244         'accept_unknown_input_architecture'.
1245         * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1246         to false.
1247         * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1248         bfd_arch_get_compatible.
1249         * ldfile.c (ldfile_try_open_bfd): Likewise.
1250         * lexsup.c (ld_options): Add new command line switch
1251         --accept-unknown-input-architecture and its inverse.
1252         (parse_args): Handle --accept-unknown-input-architecture.
1253         * ld.texinfo: Document new linker option.
1254         * NEWS: Mention new linker option.
1255
1256 2002-12-20  Alan Modra  <amodra@bigpond.net.au>
1257
1258         * ldmain.c (main): Re-order link_info initialization.  Init all
1259         fields.
1260
1261 2002-12-19  Charles Wilson  <cwilson@ece.gatech.edu>
1262
1263         * ld.texinfo: Clarify and extend the documentation
1264         in the Machine Dependent, WIN32 section.
1265
1266 2002-12-18  Ralf Habacker  <ralf.habacker@freenet.de>
1267
1268         * ld.texinfo: Add win32 machine depending section.
1269         * gen-doc.texi: Enable win32 machine depending section.
1270
1271         * configure.host: Add win32 library search path.
1272
1273 2002-12-17  Ralf Habacker  <ralf.habacker@freenet.de>
1274
1275         * emultempl/pe.em (pe_find_data_imports): Don't search for data
1276         import when auto-import is disabled.
1277
1278 2002-12-17  Danny Smith  <dannysmith@users.sourceforge.net>
1279
1280         * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1281         account for trailing '\0'.
1282
1283 2002-12-17  Nick Clifton  <nickc@redhat.com>
1284
1285         * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1286         so that it is not confused with -c.
1287
1288 2002-12-13  Ralf Habacker  <Ralf.Habacker@freenet.de>
1289             Charles Wilson  <cwilson@ece.gatech.edu>
1290
1291         * configure.in: Add check for realpath function.
1292         * configure: Regenerate.
1293         * config.in: Regenerate.
1294         * aclocal.m4: Regenerate.
1295         * deffile.h: Add .data field to def_file_import
1296         structure.
1297         * pe-dll.c (pe_proces_import_defs): Use .data field of
1298         def_file_import structure to initialize flag_data field of
1299         def_file_export structure.
1300         (pe_implied_import_dll): New variables exp_funcbase and
1301         [data|bss]_[start|end].  Use DLL's internal name to set dll_name,
1302         not filename (which may be a symlink).  Scan the sections and
1303         initialize [data|bss]_[start|end].  When scanning the export
1304         table, skip _nm_ symbols, and mark any symbols whose rva indicates
1305         that it is in the .bss or .data sections as data.
1306         * sysdep.h: Include limits.h and sys/param.h, and define
1307         LD_PATHMAX as appropriate.  Also define REALPATH as realpath if it
1308         exists, NULL otherwise.
1309         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1310         pe_process_import_defs before pe_find_data_imports, so that
1311         auto-import will check the virtual implib as well as "real"
1312         implibs.
1313         (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1314         symlinks to their target; check that the target's extension is
1315         .dll before calling pe_implied_import_dll(), not the filename
1316         itself (which may be a symlink).
1317
1318 2002-12-10  Alan Modra  <amodra@bigpond.net.au>
1319
1320         * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1321         (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1322         list too.
1323
1324 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
1325
1326         * ldlang.h: Formatting.
1327
1328 2002-12-07  Alan Modra  <amodra@bigpond.net.au>
1329
1330         * ldlang.c (init_os): Ensure sections mentioned in load_base
1331         are initialized.
1332
1333 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
1334
1335         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1336         load_base for orphans that follow a section with load_base set.
1337
1338 2002-12-01  H.J. Lu <hjl@gnu.org>
1339
1340         * ld.texinfo: Remove the extra `;' in sample version script.
1341
1342 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
1343
1344         * configure.host: Correct dynamic-linker for powerpc64 hosts.
1345
1346         * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1347         * Makefile.in: Regenerate.
1348
1349         * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1350         ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1351         ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1352         emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1353         emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1354         emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1355         emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1356         emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1357         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1358         emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1359         emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1360         boolean with bfd_boolean, true with TRUE, false with FALSE.  Simplify
1361         comparisons of bfd_boolean vars with TRUE/FALSE.  Formatting.
1362
1363 2002-11-27  David O'Brien  <obrien@FreeBSD.org>
1364
1365         * configure.host: Fix generic FreeBSD configuration entry.
1366
1367 2002-11-27  H.J. Lu <hjl@gnu.org>
1368
1369         * ld.texinfo: Add the missing `;' to sample version scripts.
1370
1371 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
1372
1373         * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1374
1375 2002-11-14  Egor Duda  <deo@logos-m.ru>
1376
1377         * ldmain.c (main): Make runtime relocs disabled by default. Remove
1378         assignment which has no effect.
1379         * pe-dll.h (pe_create_import_fixup): Change prototype.
1380         * pe-dll.c (make_runtime_pseudo_reloc): New function.
1381         (pe_create_runtime_relocator_reference): Ditto.
1382         (pe_create_import_fixup): Handle relocations with non-zero addends.
1383         * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1384         --disable-runtime-pseudo-reloc.
1385         (make_import_fixup): Handle relocations with non-zero addends. Create
1386         an external reference to _pei386_runtime_relocator symbol if at least
1387         one pseudo reloc was created.
1388         * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1389         --disable-runtime-pseudo-reloc options.
1390
1391 2002-11-12  Earl Chew <earl_chew@agilent.com>
1392
1393         * ldlang.c (lang_add_section): Discard debugging sections that have
1394         been marked SEC_EXCLUDE.
1395
1396 2002-11-12  Nick Clifton  <nickc@redhat.com>
1397
1398         * configure.in (ALL_LINGUAS): Add da.
1399         * configure: Regenerate.
1400         * po/da.po: New Danish translation.
1401
1402 2002-11-12  Alan Modra  <amodra@bigpond.net.au>
1403
1404         * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1405         (LDEMUL_BEFORE_ALLOCATION): Define.
1406         (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1407         linking.
1408         * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1409
1410 2002-11-11  Christopher Faylor  <cgf@redhat.com>
1411
1412         * configure.tgt (LIB_PATH): Default to searching w32api directory under
1413         cygwin.
1414
1415 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
1416
1417         * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1418         of restricted auto-export libs.
1419
1420 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
1421
1422         * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1423         creative library naming instances like, e.g., libstdc++-2.a.
1424
1425 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
1426
1427         * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1428         * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1429
1430 2002-11-07  Danny Smith  <dannysmith@users.sourceforge.net>
1431
1432         * deffilep.y (def_lex): Handle '@' as first character of an ID.
1433         * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1434         (make_one): Don't prefix decorated fastcall symbols with '_'.
1435         (pe_process_import_defs): Likewise.
1436         * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1437         symbols to cdecl names or vise-versa.
1438
1439 2002-10-13  Eric Kohl  <ekohl@rz-online.de>
1440
1441         * pe-dll.c (process_def_file): Handle fastcall symbols when
1442         generating undecorated aliases.  Don't prefix decorated fastcall
1443         symbols with '_'.
1444         (fill_exported_offsets): Don't prefix decorated fastcall symbols
1445         with '_'.
1446
1447 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
1448
1449         * emultempl/aix.em: Use include <> for generated headers.
1450         * emultempl/beos.em: Likewise.
1451         * emultempl/elf32.em: Likewise.
1452         * emultempl/pe.em: Likewise.
1453         * ldctor.c: Likewise.
1454         * ldexp.c: Likewise.
1455         * ldfile.c: Likewise.
1456         * ldlang.c: Likewise.
1457         * ldlex.c: Likewise.
1458         * ldlex.l: Likewise.
1459         * ldmain.c: Likewise.
1460         * ldmisc.c: Likewise.
1461         * ldwrite.c: Likewise.
1462         * lexsup.c: Likewise.
1463         * mri.c: Likewise.
1464         * pe-dll.c: Likewise.
1465
1466 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
1467
1468         * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1469         sections into .rel{,a}.dyn.
1470
1471 2002-10-23  Nick Clifton  <nickc@redhat.com>
1472
1473         * lexsup.c (OPTION_NO_OMAGIC): Define.
1474         (ld_options): Add "no-omagic" option.
1475         (parse_args): Parse --no-omagic.
1476         * ld.texinfo: Document --no-omagic.
1477         * NEWS: Mention new option.
1478
1479 2002-10-21  Danny Smith  <dannysmith@users.sourceforeg.net>
1480
1481         * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1482         __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1483
1484 2002-10-22  Alexandre Oliva  <aoliva@redhat.com>
1485
1486         * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1487         emulation name.  Set LIB_PATH only for native tools, and
1488         search the ABI-specific versions of NATIVE_LIB_DIRS before the
1489         .../lib variants, not instead of them.  Mostly copied from...
1490         * emulparams/elf32ppc.sh: ... here.  Fixed typo.
1491         * emulparams/elf64bmip-defs.sh: Backed out.
1492         * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1493         * emulparams/elf64btsmip.sh: Likewise.
1494         (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1495         TEXT_DYNAMIC): Removed.
1496
1497 2002-10-17  Alexandre Oliva  <aoliva@redhat.com>
1498
1499         * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1500         (GENERATE_SHLIB_SCRIPT): Set to yes.
1501         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1502         * emulparams/elf32bmipn32.sh: here.
1503         (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1504         * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1505         * emulparams/elf64bmip-defs.sh: New file.  Extend
1506         elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1507         * emulparams/elf64bmip.sh: Bring in definitions from
1508         elf64bmip-defs.sh.
1509         (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1510         settings.
1511         (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1512         * emulparams/elf64btsmip.sh: Bring in definitions from
1513         elf64bmip-defs.sh.
1514         (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1515         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1516
1517 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
1518
1519         * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1520         (s390-*-linux*): Add elf64_s390 emulation if want64.
1521         * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1522         genscript.sh changes.
1523         * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1524         * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1525
1526 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
1527
1528         * ldlang.c (load_symbols): Revert last change.
1529
1530 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
1531
1532         * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1533         just_syms_flag.
1534         (lang_reasonable_defaults): Don't compare against false.
1535         (size_input_section): Likewise.
1536         (lang_size_sections_1): Likewise.
1537         (lang_do_assignments): Likewise.
1538         (lang_add_output): Likewise.
1539
1540         * Makefile.am: Run "make dep-am".
1541         * Makefile.in: Regenerate.
1542         * ldver.c: #include "bfdver.h".
1543
1544 2002-10-13  Stephane Carrez  <stcarrez@nerim.fr>
1545
1546         * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1547         .finiN section.
1548         * scripttempl/elfm68hc12.sc: Likewise.
1549
1550 2002-10-11  Alan Modra  <amodra@bigpond.net.au>
1551
1552         * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1553
1554         * ldgram.y (memory_spec): Provide empty action.
1555         (section <NAME>): Likewise.
1556
1557 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
1558
1559         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1560         they have OUTPUT_FORMAT not matching actual output format.
1561         * ldlang.c (lang_get_output_target): New function.
1562         (open_output): Use it.
1563         * ldlang.h (lang_get_output_target): New prototype.
1564
1565 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
1566
1567         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1568         when orphan is .rel, .rela when orphan is .rela.
1569         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1570         first.  Remove outsecname var.
1571
1572 2002-10-09  Richard Shann <richard.shann@superh.com>
1573             Stephen Clarke <stephen.clarke@superh.com>
1574
1575         * Makefile.am: Add eshelf32_linux.o and
1576         eshlelf32_linux.o, new emulations for sh64 Linux.
1577         * Makefile.in: Regenerate.
1578         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1579         * emulparams/shelf32_linux.sh: New file.
1580         * emulparams/shlelf32_linux.sh: New file.
1581
1582 2002-10-08  H.J. Lu <hjl@gnu.org>
1583
1584         * ldlang.c (lang_file_exist): Removed.
1585         (new_afile): Revert the last change.
1586         * ldlang.h (lang_file_exist): Removed.
1587         * lexsup.c (parse_args): Revert the last change.
1588
1589 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
1590
1591         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1592         auto-import symbols.
1593         (make_one): Create _nm_<symbol> for data only.
1594
1595 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
1596
1597         * ldlang.c (lang_file_exist): New function.
1598         (new_afile): Abort if the filename to be added matches the linker
1599         output filename.
1600         * ldlang.h: Add prototype for lang_file_exist.
1601         * lexsup.c (parse_args): Abort if the output filename matches
1602         one of the input filenames.
1603
1604 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
1605
1606         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1607
1608 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
1609
1610         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1611         * scripttempl/elfm68hc11.sc: Likewise.
1612         * scripttempl/elfm68hc12.sc: Likewise.
1613
1614         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1615         reloc sections just before .rel.plt/.rela.plt.
1616         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1617         Only put loadable reloc sections in hold_rel.
1618
1619 2002-09-29  H.J. Lu <hjl@gnu.org>
1620
1621         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1622
1623 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
1624
1625         From "Anita Kulkarni" <AnitaK@kpit.com>
1626         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1627         sections.
1628
1629 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
1630
1631         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1632         TARGET_PAGE_SIZE.
1633         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1634         SEGMENT_SIZE alignment.
1635         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1636         (SEGMENT_SIZE): Define.
1637
1638         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
1639         (fold_binary): Correct abs - non-abs case.
1640         (fold_trinary): New.  Split out from exp_fold_tree.
1641
1642 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
1643
1644         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1645         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1646         for start of .data, instead align up to 256M boundary.
1647         * scripttempl/aix.sc: Likewise.
1648
1649 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
1650
1651         * scripttempl/i386go32.sc: Handle bss unique sections.
1652
1653 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
1654
1655         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1656
1657 2002-09-17  Stan Cox  <scox@redhat.com>
1658
1659         * emulparams/elf32bmipn32-defs.sh: New file.
1660         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1661         * emulparams/elf32btsmipn32.sh: Likewise.
1662         * emulparams/elf64bmip.sh: Likewise.
1663         * emulparams/elf64btsmip.sh: Likewise.
1664
1665 2002-09-16  Bruno Haible  <bruno@clisp.org>
1666
1667         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1668         elf32-i386-freebsd.
1669         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1670         elf64-alpha-freebsd.
1671
1672 2002-09-11  Nick Clifton  <nickc@redhat.com>
1673
1674         * NEWS: New TI port supports both C4x and C3x series of DSPs.
1675
1676         * po/tr.po: Updated Turkish translation.
1677
1678 2002-09-06  Jeffrey A Law  (law@redhat.com)
1679
1680         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1681
1682 2002-09-02  Nick Clifton  <nickc@redhat.com>
1683
1684         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1685         __ep.
1686         * emulparams/v850.sh (TEMPLATE_NAME): Define.
1687
1688 2002-08-30  Nick Clifton  <nickc@redhat.com>
1689
1690         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1691         used.  Change INSN to start at 0x01000000 and extend for
1692         256K (ignoring holes).  Start the STACK on a word aligned
1693         boundary.
1694         (.rodata): Start it at the READONLY_START_ADDR.
1695
1696 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
1697
1698         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1699
1700 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
1701
1702         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1703         added makefile targets for this file.
1704         * Makefile.in: Regenerate.
1705         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1706         * NEWS: Mention new port.
1707
1708 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1709
1710         * emulparams/tic3xcoff.sh: New file.
1711         * emulparams/tic4xcoff.sh: New file.
1712         * scripttempl/tic3xcoff.sc: New file.
1713         * scripttempl/tic4xcoff.sc: New file.
1714
1715 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
1716
1717         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1718         strtoul and strtoull with bfd_scan_vma.
1719         (gld${EMULATION_NAME}_read_file): Likewise.
1720
1721 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
1722
1723         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
1724
1725 2002-08-27  Egor Duda  <deo@logos-m.ru>
1726
1727         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1728         Add symbols for application to access them.
1729
1730 2002-08-27  Nick Clifton  <nickc@redhat.com>
1731
1732         * emultempl/armelf.em: Revert this patch, it is not needed.
1733
1734         2002-08-22  Adam Nemet  <anemet@lnxw.com>
1735
1736 2002-08-20 Dan Kegel <dank@kegel.com>
1737
1738         * configure.in: added --with-lib-path argument to ld's configure
1739         to set LIB_PATH.
1740         * NEWS: Document new switch.
1741         * README: Mention new switch.
1742         * configure: Regenerate.
1743         * Makefile.in: Regenerate.
1744
1745         Based on this patch:
1746         2001-04-25  Christopher Faylor <cgf@cygnus.com>
1747
1748         * Makefile.in (LIB_PATH): Make configurable.
1749         (GENSCRIPTS): Set LIB_PATH in environment.
1750         * configure.in: Substitute LIB_PATH.
1751
1752 2002-08-22  Adam Nemet  <anemet@lnxw.com>
1753
1754         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1755         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1756         depending on the type of the function.
1757         (arm_elf_convert_thumb_symbol_to_address): New function.
1758
1759 2002-08-22  Graeme Peterson  <gp@qnx.com>
1760
1761         * Makefile.am: Add esh{l}elf_nto.o files.
1762         * Makefile.in: Regenerate.
1763         * configure.tgt: Add support for sh-**-nto* targets.
1764         * emulparams/shelf_nto.sh: New file.
1765         * emulparams/shlelf_nto.sh: New file.
1766
1767 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1768
1769         * ldlang.c (offsetof): Define if not defined.
1770
1771 2002-08-14  H.J. Lu <hjl@gnu.org>
1772
1773         * configure.tgt: Always enable 64bit emulations for 32bit
1774         Linux/mips.
1775
1776 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
1777
1778         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1779         (MAXPAGESIZE): Set to 1.
1780
1781         * ld.h (ALIGN_N): Delete.
1782         * ldexp.h (align_n): Declare.
1783         * ldexp.c (align_n): New function.
1784         (fold_binary): Use align_n instead of ALIGN_N.
1785         (exp_fold_tree): Likewise.
1786         * ldlang.c (lang_size_sections_1): Likewise.
1787         (lang_one_common): Likewise.
1788         * ld.texinfo (ALIGN): Remove power of 2 restriction.
1789
1790 2002-07-31  Graeme Peterson  <gp@qnx.com>
1791
1792         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1793         * Makefile.am: Add eelf32{l}ppcnto.o files.
1794         * Makefile.in: Regenerate.
1795         * emulparams/elf32lppcnto.sh: New file.
1796         * emulparams/elf32ppcnto.sh: New file.
1797
1798 2002-08-07  H.J. Lu <hjl@gnu.org>
1799
1800         * ld.texinfo: Document --no-undefined-version.
1801
1802         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1803         `script.' fields to 0.
1804
1805         * ldmain.c (main): Initialize the allow_undefined_version to
1806         true.
1807
1808         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1809         (ld_options): Add --no-undefined-version.
1810         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1811
1812 2002-08-07  Nick Clifton  <nickc@redhat.com>
1813
1814         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1815         an interworking bfd if there are input bfds. (107501)
1816
1817 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
1818
1819         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
1820         2002-05-10 change.
1821
1822 2002-08-01  Nick Clifton  <nickc@redhat.com>
1823
1824         * emulparams/armelf.sh: Revert previous delta.
1825         * scripttempl/elf.sc: Revert previous delta.
1826
1827 2002-07-31  H.J. Lu <hjl@gnu.org>
1828
1829         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1830         --enable-64-bit-bfd.
1831
1832 2002-07-31  H.J. Lu <hjl@gnu.org>
1833
1834         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1835         64bit BFD is selected.
1836
1837 2002-07-31  H.J. Lu <hjl@gnu.org>
1838
1839         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1840         if 64bit BFD is selected.
1841
1842 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
1843
1844         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1845         link_info.common_skip_ar_aymbols.
1846         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1847
1848         * ldmain.c (main): Initialize new field
1849         link_info.common_skip_ar_aymbols.
1850
1851 2002-07-31  Adam Nemet  <anemet@lnxw.com>
1852
1853         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
1854         to .plt.thumb.
1855         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
1856         used.
1857
1858 2002-07-31  Nick Clifton  <nickc@redhat.com>
1859
1860         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1861         of the PDP-11 and 2.11BSD a.out support.
1862
1863 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1864
1865         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1866         for n32 ABI support.
1867         * Makefile.in: Regenerate.
1868         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1869         n32 ABI emulations for these 64 bit targets.
1870         * emulparams/elf32bmipn32.sh: Expand comment.
1871         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1872         n32 ABI.
1873         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1874
1875 2002-07-30  Graeme Peterson  <gp@qnx.com>
1876
1877         * configure.tgt: Add support for arm-*-nto target.
1878         * Makefile.am: Add earmnto.o file.
1879         * Makefile.in: Regenerate.
1880         * NEWS: Mention port of ARM support to QNX.
1881         * emulparams/armnto.sh: New file.
1882
1883 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
1884
1885         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1886         for relocatable link.
1887         (lang_size_sections_1): Don't make .tbss zero size for relocatable
1888         link.
1889
1890 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
1891
1892         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1893         (STACK_ADDR): New.
1894
1895 2002-07-25  Nick Clifton  <nickc@redhat.com>
1896
1897         * po/sv.po: Updated Swedish translation.
1898         * po/es.po: Updated Spanish translation.
1899         * po/fr.po: Updated French translation.
1900
1901 2002-07-24  Nick Clifton  <nickc@redhat.com>
1902
1903         * po/sv.po: Updated Swedish translation.
1904         * po/es.po: Updated Spanish translation.
1905
1906 2002-07-23  Nick Clifton  <nickc@redhat.com>
1907
1908         * po/fr.po: Updated French translation.
1909
1910 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
1911
1912         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1913         bomb on /DISCARD/ input section.
1914         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1915         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1916
1917 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
1918
1919         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1920         output section.
1921
1922 2002-07-16  Denis Chertykov  <denisc@overta.ru>
1923             Nick Clifton  <nickc@redhat.com>
1924             Frank Ch. Eigler  <fche@redhat.com>
1925             John Healy  <jhealy@redhat.com>
1926
1927         * configure.tgt: Add support for ip2k-elf.
1928         * Makefile.am: Add support for ip2k-elf.
1929         * Makefile.in: Regenerate.
1930         * emulparams/elf32ip2k.sh: New file.
1931         * scripttempl/ip2k.sc: New file
1932         * NEWS: Mention support for new port.
1933
1934 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
1935
1936         * NEWS: Add 'Changes in 2.13'.
1937
1938 2002-07-14  H.J. Lu <hjl@gnu.org>
1939
1940         * ld.texinfo: Document a .symver takes precedence over a
1941         version script.
1942
1943 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
1944
1945         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1946         (COMMONPAGESIZE): Define.
1947
1948 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
1949
1950         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1951
1952 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
1953
1954         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1955         powerpc-*-openbsd* and sparc64-*-openbsd*.
1956         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1957         * Makefile.in: Regenerate.
1958         * emulparams/hppaobsd.sh: New file.
1959
1960 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
1961
1962         * ldlang.c (print_wild_statement): Fix output formatting.
1963
1964 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
1965
1966         * ldlang.c: (strip_excluded_output_sections): New function.
1967         (lang_process): Call it.
1968         (lang_size_sections_1): Revert 2002-06-10 change.
1969
1970 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
1971
1972         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1973         Run "make dep-am".
1974         * Makefile.in: Regenerate.
1975
1976 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
1977
1978         * ldfile.c (ldfile_try_open_bfd): Formatting.
1979
1980         * ldmisc.c (demangle): Move so that it doesn't intrude between
1981         vfinfo comment and body.  Add comment.
1982
1983 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1984
1985         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1986
1987 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
1988
1989         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1990         * ldlang.c (entry_sym): Likewise.
1991         (ldlang_undef_chain_list_type): Likewise.
1992         (lang_finish): Adjust references to entry_symbol.
1993         (lang_add_entry): Likewise.
1994         (lang_gc_sections): Use link_info.gc_sym_list.
1995         (lang_process): Set link_info.gc_sym_list.
1996         * ldlex.l: Include bfdlink.h.
1997         * ldmain.c (main): Init link_info.gc_sym_list.
1998         * emultempl/aix.em: Adjust references to entry_symbol.
1999         * emultempl/armcoff.em: Likewise.
2000         * emultempl/armelf.em: Likewise.
2001         * emultempl/pe.em: Likewise.
2002         * emultempl/ppc64elf.em (ppc_after_open): New function.
2003         (LDEMUL_AFTER_OPEN): Define.
2004         * emulparams/elf64ppc.sh: KEEP .opd sections.
2005
2006 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
2007
2008         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
2009         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
2010         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
2011         (EEPROM_START_ADDR): Define.
2012         (EEPROM_MEMORY): Define.
2013         * emulparams/m68hc12elf.sh: Likewise.
2014         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
2015         section to put soft registers in .page0.
2016         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
2017
2018 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2019
2020         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
2021         section.  Add ${RELOCATING-0}.
2022
2023 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
2024
2025         * emulparams/shelf.sh (STACK_ADDR): Don't define.
2026         (OTHER_SECTIONS): Define.
2027         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
2028         (OTHER_SECTIONS): Undef.
2029
2030 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
2031
2032         * ldmisc.c (demangle): Restore dots stripped from sym name.
2033
2034 2002-06-25  H.J. Lu <hjl@gnu.org>
2035
2036         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2037         * Makefile.in: Regenerated.
2038
2039 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
2040
2041         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
2042         the size of attached object files, to allow make the object files
2043         available via FTP or HTTP and to mention that the mail will be
2044         sent to a mailing list.
2045
2046 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
2047
2048         * configure.host (romp): Drop support.
2049
2050 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
2051
2052         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
2053         section flags for SEC_DATA, rather than for SEC_CODE being unset.
2054
2055 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
2056
2057         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
2058         format specifier used to print BFD name.
2059
2060 2002-06-18  Dave Brolley  <brolley@redhat.com>
2061
2062         From Catherine Moore, Michael Meissner, Jim Blandy:
2063         * emulparams/elf32frv.sh: New file.
2064         * configure.tgt: Support frv-*-*.
2065         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
2066         (eelf32frv.c): New target.
2067
2068 2002-06-17  Tom Rix  <trix@redhat.com>
2069
2070         * emultempl/elf32.em: gld*_get_script: Check for
2071         GENERATE_COMBRELOC_SCRIPT.
2072         * scripttempl/elfd10v.sc : Fix STACK and INSN.
2073         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
2074
2075 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
2076
2077         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
2078
2079 2002-06-12  H.J. Lu <hjl@gnu.org>
2080
2081         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
2082         false if xvec doesn't match.
2083
2084 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
2085
2086         * ldlang.c (lang_size_sections_1): Skip removed output sections.
2087
2088 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
2089
2090         * ldexp.c: Replace CONST with const.
2091         * ldfile.c: Likewise.
2092         * ldfile.h: Likewise.
2093         * ldlex.l: Likewise.
2094         * mri.c: Likewise.
2095         * pe-dll.h: Likewise.
2096
2097 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
2098
2099         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2100
2101 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
2102
2103         * ldmain.c (main): initialize link_info.pei386_auto_import
2104         to -1 == implicit enable.
2105         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
2106         initialize link_info.pei386_auto_import to -1 == implicit
2107         enable.
2108         (gld_${EMULATION_NAME}_parse_args): When processing
2109         --enable-auto-import and --disable-auto-import options, use
2110         '1' and '0' instead of 'true' and 'false'.
2111         (pe_find_data_imports): Only issue message about auto-import
2112         when the feature is implicitly enabled.  Downgrade message to
2113         informational instead of warning.
2114
2115 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
2116
2117         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2118
2119 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2120
2121         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
2122         HOSTING_CRT0 and HOSTING_LIBS.
2123
2124 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
2125
2126         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
2127
2128 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
2129
2130         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
2131         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2132
2133 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
2134
2135         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2136         SEC_EXCLUDE sections when doing a relocatable link.
2137
2138 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2139
2140         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2141         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2142         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2143         (eshlelf64_nbsd.c): New rules.
2144         * Makefile.in: Regenerate.
2145         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2146         (sh64-*-netbsd*): New targets.
2147         * emulparams/shelf32_nbsd.sh: New file.
2148         * emulparams/shelf64_nbsd.sh: New file.
2149         * emulparams/shlelf32_nbsd.sh: New file.
2150         * emulparams/shlelf64_nbsd.sh: New file.
2151
2152 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
2153
2154         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
2155
2156 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2157
2158         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2159         C++ constructors/destructors, loosely based on the m68hc11 port.
2160
2161 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
2162
2163         * Makefile.in: Regenerate.
2164         * aclocal.m4: Regenerate.
2165         * config.in: Regenerate.
2166         * configure: Regenerate.
2167
2168 2002-05-31  Graeme Peterson  <gp@qnx.com>
2169
2170         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2171         (ei386nto.c): Add rule.
2172         * Makefile.in: Regenerate.
2173         * configure.tgt: Add i[3456]86-*-nto-qnx*.
2174         * emulparams/i386nto.sh: New file.
2175
2176 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2177
2178         * NEWS: Add entry for VAX ELF support.
2179
2180 2002-05-29  Matt Thomas  <matt@3am-software.com>
2181             Jason Thorpe  <thorpej@wasabisystems.com>
2182
2183         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2184         (eelf32vax.c)
2185         (evaxnbsd.c): New rules.
2186         * Makefile.in: Regenerate.
2187         * configure.tgt (vax-*-netbsdelf*)
2188         (vax-*-netbsdaout*)
2189         (vax-*-netbsd*): New targets.
2190         * emulparams/elf32vax.sh: New file.
2191         * emulparams/vaxnbsd.sh: New file.
2192
2193 2002-05-29  Adam Nemet  <anemet@lnxw.com>
2194
2195         * emultempl/armelf.em (arm_elf_after_open): Don't determine
2196         bfd_for_interwork, instead add glue sections to each input bfd.
2197         (bfd_for_interwork): New global.
2198         (arm_elf_set_bfd_for_interworking): New function.
2199         (arm_elf_before_allocation): Use it.
2200
2201 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
2202
2203         * Makefile.am: Add DLX make target.
2204         * configure.tgt: Add DLX configuration.
2205         * Makefile.in: Regenerate.
2206         * emulparams/elf32_dlx.sh: New file
2207         * scripttempl/dlx.sc: New file
2208
2209 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
2210
2211         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2212         * Makefile.in: Regenerate.
2213         * emulparams/elf_chaos.sh: Use elf_chaos script.
2214         * scripttempl/elf_chaos.sc: New file.
2215
2216 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
2217
2218         * ldlang.c (lang_size_sections_1): Move check for conflicting load
2219         addresses and regions from here...
2220         (lang_get_regions): ...to this new function.
2221         (lang_leave_output_section_statement): Use lang_get_regions.
2222         (lang_leave_overlay): Likewise.
2223         * mri.c (mri_draw_tree): Pass null as last argument to
2224         lang_leave_output_section_statement.
2225         * emultempl/elf32.em (gld*_place_orphan): Likewise.
2226         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2227         * emultempl/pe.em (gld*_place_orphan): Likewise.
2228
2229 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
2230
2231         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2232
2233 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
2234
2235         * ldemul.c: Fix formatting.
2236         * ldfile.c: Likewise.
2237         * pe-dll.c: Likewise.
2238         * pe-dll.h: Likewise.
2239
2240 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
2241
2242         * ldlang.c (lang_process): Formatting, grammar.
2243
2244         * ldlex.l: Use #include "" instead of <> for local header files.
2245
2246 2002-05-24  TAMURA Kent <kent@netbsd.org>
2247
2248         * configure.tgt: Add a target for i386-netbsdpe.
2249
2250 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
2251
2252         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2253         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2254         output section if necessary.  Handle .tbss.
2255         (lang_size_sections): Clear _raw_size for .tbss section
2256         (it allocates space in PT_TLS segment only).
2257         * ldwrite.c (build_link_order): Build link order for .tbss too.
2258
2259 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
2260
2261         * configure.in: Correct spelling of AC_PREREQ.
2262
2263 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2264
2265         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2266         default.
2267         (autofilter_objlist): Add crtbegin.o, crtend.o.
2268
2269 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2270
2271         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2272         (longopts): Add new option --exclude-libs.
2273         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2274         (gld_${EMULATION_NAME}_parse_args): Use it.
2275         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2276         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2277         from whole archives.
2278         (pe_dll_add_excludes): Set excludes->type.
2279         (auto_export): Add new variable libname and set to archive basename if
2280         abfd.  Use it when filtering default and user-specified libarary
2281         excludes.  Let string "ALL" mean all libs when filtering user-specified
2282         libs.
2283         * ld.texinfo: Document --exclude-libs.
2284
2285 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
2286
2287         * ldemul.c (ldemul_new_vers_pattern): New function.
2288         * ldemul.h (ldemul_new_vers_pattern): Declare.
2289         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2290         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2291         * emultempl/ppc64elf.em (dotsyms): New static var.
2292         (gld${EMULATION_NAME}_new_vers_pattern): New function.
2293         (LDEMUL_NEW_VERS_PATTERN): Define.
2294         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2295         (PARSE_AND_LIST_LONGOPTS): Likewise.
2296         (PARSE_AND_LIST_ARGS_CASES): Handle them.
2297         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2298         initialiser.
2299         * emultempl/armcoff.em: Likewise.
2300         * emultempl/armelf_oabi.em: Likewise.
2301         * emultempl/beos.em: Likewise.
2302         * emultempl/elf32.em: Likewise.
2303         * emultempl/generic.em: Likewise.
2304         * emultempl/gld960.em: Likewise.
2305         * emultempl/gld960c.em: Likewise.
2306         * emultempl/linux.em: Likewise.
2307         * emultempl/lnk960.em: Likewise.
2308         * emultempl/m68kcoff.em: Likewise.
2309         * emultempl/mipsecoff.em: Likewise.
2310         * emultempl/pe.em: Likewise.
2311         * emultempl/sunos.em: Likewise.
2312         * emultempl/ticoff.em: Likewise.
2313         * emultempl/vanilla.em: Likewise.
2314
2315 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
2316
2317         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2318         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
2319         (LIB_SEARCH_DIRS): No need to use "tr".
2320         (COMPILE_IN): Only set for native targets.
2321         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2322         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2323         * configure.tgt (powerpc*): Set tdir_*.
2324         (powerpcle*): Correct targ_extra_emuls.
2325         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2326         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2327
2328 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
2329
2330         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2331         calling lang_add_entry.
2332
2333 2002-05-21  H.J. Lu  (hjl@gnu.org)
2334
2335         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2336         "-z muldefs".
2337         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2338
2339         * ld.texinfo: Updated for --allow-multiple-definition and
2340         "-z muldefs".
2341
2342         * ldmain.c (main): Initialize the allow_multiple_definition
2343         field to false.
2344
2345         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2346         (ld_options): Add --allow-multiple-definition.
2347         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2348
2349 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
2350
2351         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2352         (earmelfb_nbsd.c): New rule.
2353         * Makefile.in: Regenerate.
2354         * configure.tgt (armeb-*-netbsdelf*): New target.
2355         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2356         (arm-*-netbsd*): Likewise.
2357         * emulparams/armelfb_nbsd.sh: New file.
2358
2359 2002-05-18  Tom Rix  <trix@redhat.com>
2360
2361         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2362         support.
2363
2364 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2365
2366         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2367         * Makefile.in: Regenerate.
2368         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2369
2370 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2371
2372         * emulparams/avr1.sh: New file.
2373         * emulparams/avr2.sh: New file.
2374         * emulparams/avr3.sh: New file.
2375         * emulparams/avr4.sh: New file.
2376         * emulparams/avr5.sh: New file.
2377         * scripttempl/avr.sc: New file.
2378
2379 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
2380
2381         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2382         (lang_place_orphans): Abort if just_syms_flag.
2383
2384 2002-05-10  Tom Rix  <trix@redhat.com>
2385
2386         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2387         architecture and machine information in the output bfd.
2388         (gld*_before_parse): Remove old arch and machine code.
2389         (choose_target): Rename to gld*_choose_target.
2390         (rtld): Change type to int.
2391         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2392         objects in XCOFF archives.
2393         * ldfile.h: Update copyright date.
2394
2395 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
2396
2397         * ldmain.c (main): Enable -z combreloc by default.
2398
2399 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
2400
2401         * Makefile.am: Honour DESTDIR.
2402         * Makefile.in: Regenerate.
2403
2404 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
2405
2406         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2407         (lang_enter_overlay): Remove the last two parameters.
2408         (lang_leave_overlay): Take them here instead.
2409         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2410         (section): Pass LMA and crossref flag to lang_leave_overlay rather
2411         than lang_enter_overlay.
2412         * ldlang.c (lang_memory_region_lookup): Return null for null names.
2413         (lang_output_section_statement_lookup): Initialize update_dot_tree.
2414         (lang_size_sections_1): Evaluate it.
2415         (lang_leave_output_section_statement): Rework LMA lookup.
2416         (overlay_lma, overlay_nocrossrefs): Remove.
2417         (lang_enter_overlay): Remove LMA and crossref arguments.
2418         (lang_enter_overlay_section): Don't set the LMA here.
2419         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
2420         assignment to the last section's update_dot_tree.  Unconditionally
2421         use the load and run-time regions specified in the OVERLAY statement.
2422         Likewise the first section's LMA.  Only set the other sections' LMAs
2423         when no load region is given.
2424
2425 2002-05-06  Nick Clifton <nickc@redhat.com>
2426
2427         * po/sv.po: New translation.
2428
2429 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
2430
2431         * emultempl/hppaelf.em (build_section_lists): New function.
2432         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2433         and build_section_lists.
2434
2435 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2436
2437         * ld.h: Fix formatting.
2438         * ldexp.c: Likewise.
2439         * ldfile.c: Likewise.
2440         * ldlang.c: Likewise.
2441         * ldmain.c: Likewise.
2442         * lexsup.c: Likewise.
2443         * pe-dll.c: Likewise.
2444
2445 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
2446
2447         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2448         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
2449         (build_section_lists): Do output_section tests here.
2450
2451 2002-04-30  Tom Rix  <trix@redhat.com>
2452
2453         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2454
2455 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
2456
2457         Long branch stubs, multiple stub sections.
2458         * emultempl/ppc64elf.em: Include ldctor.h.
2459         (stub_file): New var.
2460         (group_size): New var.
2461         (ppc_create_output_section_statements): New function.
2462         (struct hook_stub_info): New.
2463         (hook_in_stub): New function.
2464         (ppc_add_stub_section): New function.
2465         (ppc_layout_sections_again): New function.
2466         (build_section_lists): New function.
2467         (gld${EMULATION_NAME}_finish): Rewrite.
2468         (real_func): New var.
2469         (ppc_for_each_input_file_wrapper): New function.
2470         (ppc_lang_for_each_input_file): New function.
2471         (lang_for_each_input_file): Define.
2472         (PARSE_AND_LIST_PROLOGUE): Define.
2473         (PARSE_AND_LIST_LONGOPTS): Define.
2474         (PARSE_AND_LIST_OPTIONS): Define.
2475         (PARSE_AND_LIST_ARGS_CASES): Define.
2476         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2477
2478 2002-04-30  Tom Rix  <trix@redhat.com>
2479
2480         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2481         -blibpath, -bnolibpath support.
2482
2483 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
2484
2485         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2486         (eelf32ppcwindiss.c): New target.
2487         * Makefile.in: Regenerated.
2488         * configure.tgt: Add support for powerpc-*-windiss.
2489         * emulparams/elf32ppcwindiss.sh: New file.
2490
2491 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
2492
2493         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2494         * ldexp.c (exp_print_token): Add "infix_p" argument.
2495         (exp_print_tree): Update accordingly.
2496
2497 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
2498
2499         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2500         * Makefile.in: Regenerate.
2501         * mpw-elfmips.c: Delete.
2502         * mpw-eppcmac.c: Delete.
2503         * mpw-esh.c: Delete.
2504         * mpw-idtmips.c: Delete.
2505
2506 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
2507
2508         * emulparams/shelf32.sh (MACHINE): Now sh5.
2509
2510 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2511
2512         * ldgram.y: Fix syntax warning.
2513
2514 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
2515
2516         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2517         to prevent "-n" from being taken as an abbreviation for
2518         "--no-pipeline-knowledge".
2519
2520 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
2521
2522         * ldlang.c (lang_size_sections_1): Don't complain about
2523         SEC_NEVER_LOAD sections having no memory region specified.
2524
2525         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2526
2527 2002-04-07  matthew green  <mrg@redhat.com>
2528
2529         * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2530
2531 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
2532
2533         * dep-in.sed: Cope with absolute paths.
2534         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2535         Run "make dep-am".
2536         * Makefile.in: Regenerate.
2537
2538 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2539
2540         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2541
2542 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2543
2544         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2545         is smaller than maximum, round dot up to common page boundary.
2546
2547 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2548
2549         * configure.host: Set up for generic hosts first, then tweak as
2550         necessary in more specific targets.
2551         (HOSTING_LIBS): Include libgcc_eh.a if found.
2552
2553 2002-03-23  Andreas Jaeger  <aj@suse.de>
2554
2555         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2556
2557 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
2558
2559         * Makefile.am: Run "make dep-am".
2560         * Makefile.in: Regenerate.
2561
2562 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
2563
2564         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2565
2566 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
2567
2568         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2569         add the symbol to the linker hash table immediately.
2570         (lang_place_undefineds): Split symbol creation out..
2571         (insert_undefined): ..to here.
2572
2573 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
2574
2575         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2576         the contents of the buffer returned from basename function will are
2577         getting overwritten while still being used.
2578
2579 2002-03-18  Jan Hubicka  <jh@suse.cz>
2580             Andreas Jaeger  <aj@suse.de>
2581             Andreas Schwab  <schwab@suse.de>
2582
2583         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2584         * elf_x86_64.sh (ARCH): Set to i386:x86-64
2585         set libraries to default to lib64 paths.
2586
2587 2002-03-18  Tom Rix  <trix@redhat.com>
2588
2589         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2590         * configure.tgt : Same.
2591         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2592         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2593         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2594         emulation parameters for better -b32, -b64 support.
2595         * emulparms/aixrs6.sh : Same.
2596         * emulparms/ppcmacos.sh : Same.
2597         * emultempl/aix.em (choose_target) : Use new emulation parameters
2598         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2599         * Makefile.in : Regenerate.
2600
2601 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
2602
2603         * po/fr.po: Updated version.
2604
2605 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
2606
2607         * ldmain.c (main): Move .text readonly flag fudges from here..
2608         * ldlang.c (lang_process): ..to here.
2609
2610 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
2611
2612         * ldlang.c (lang_check): Remove the word size check added in last
2613         change.  Treat emitrelocations case as for relocatable links.
2614
2615 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
2616
2617         * po/fr.po: Updated version.
2618
2619 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
2620
2621         * ldlang.c (lang_check): Do relocatable link checks first, so that
2622         warn_mismatch can't override.  Check compatible and word size too.
2623
2624 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
2625
2626         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2627
2628 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
2629
2630         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2631         DATA_SEGMENT_ALIGN.
2632
2633 2002-03-04  H.J. Lu <hjl@gnu.org>
2634
2635         * scripttempl/elf.sc: Put .preinit_array, .init_array and
2636         .fini_array in the data segment.
2637
2638 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
2639
2640         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2641
2642 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
2643
2644         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2645         .init_array, and .fini_array.
2646
2647 2002-02-20  Andreas Schwab  <schwab@suse.de>
2648
2649         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2650         .IA64_unwind* in a relocatable link.
2651
2652 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
2653
2654         * NEWS: Mark 2.12 branch.
2655
2656 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2657
2658         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2659         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2660
2661 2002-02-18  Tom Rix  <trix@redhat.com>
2662
2663         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2664         (gld*_before_allocation): Same.
2665         (gld*_create_output_section_statements): Generate
2666         __rtinit if run time linking.  Add librtl.a to the link.
2667         (gld*_read_file): Clean.
2668
2669 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
2670
2671         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2672
2673 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
2674
2675         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2676         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2677         and eelf64alpha_fbsd.
2678         * Makefile.in: Regenerate.
2679         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2680         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2681         use a FreeBSD-specific emulation rather than the psABI one.
2682         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2683         for all FreeBSD ELF systems.
2684         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2685         emulation.
2686         * emulparams/elf32ppc_fbsd.sh: Likewise.
2687         * emulparams/elf64_ia64_fbsd.sh: Likewise.
2688         * emulparams/elf64_sparc_fbsd.sh: Likewise.
2689         * emulparams/elf64alpha_fbsd.sh: Likewise.
2690         * emulparams/elf_i386_fbsd.sh: Likewise.
2691         * emulparams/elf_x86_64_fbsd.sh: Likewise.
2692
2693 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
2694
2695         * po/tr.po: Updated version.
2696
2697 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
2698
2699         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2700         (FILL): Likewise.
2701
2702 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
2703
2704         * emultempl/mmo.em (mmo_after_open): Don't call
2705         _bfd_mmix_check_all_relocs when producing ELF output.
2706
2707 2002-02-15  Richard Henderson  <rth@redhat.com>
2708
2709         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2710         definition.  Emit a unop+nop pair.
2711
2712 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
2713
2714         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2715         for presence of .MMIX.reg_contents.linker_allocated before early
2716         exit.
2717
2718         * NEWS: Mention support for MMIX.
2719
2720 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
2721
2722         Support arbitrary length fill patterns.
2723         * ld.texinfo (Output Section Fill): Describe fill expressions.
2724         (FILL): Refer to the above.
2725         * ldexp.h (etree_value_type): Add "str" field.
2726         (union etree_union): Add "str" to "value" struct.
2727         (exp_bigintop): Declare.
2728         (exp_get_fill): Declare.
2729         * ldexp.c: Include "safe-ctype.h".
2730         (exp_intop): Set value.str to NULL.
2731         (exp_bigintop): New function.
2732         (new_rel): Pass in "str", and set new.str from it.
2733         (new_rel_from_section): Set new.str to NULL.
2734         (fold_name): Adjust calls to new_rel.
2735         (exp_fold_tree): Likewise.
2736         (exp_get_fill): New function.
2737         * ldgram.y (struct big_int bigint, fill_type *fill): New.
2738         (INT): Returns a "bigint".  Adjust all code handling INTs.
2739         (fill_opt): Returns a "fill".
2740         (fill_exp): Split out of fill_opt, use for FILL.
2741         * ldlang.h (struct _fill_type): New.
2742         (fill_type): Move typedef to ldexp.h.
2743         (lang_output_section_statement_type): "fill" is now a pointer.
2744         (lang_fill_statement_type): Likewise.
2745         (lang_padding_statement_type): Likewise.
2746         (lang_add_fill): Now takes a "fill_type *" param.
2747         (lang_leave_output_section_statement): Likewise.
2748         (lang_do_assignments): Likewise.
2749         (lang_size_sections): Likewise.
2750         (lang_leave_overlay_section): Likewise.
2751         (lang_leave_overlay): Likewise.
2752         * ldlang.c: Include ldgram.h after ldexp.h.
2753         (lang_output_section_statement_lookup): Adjust for fill_type change.
2754         (print_fill_statement): Likewise.
2755         (print_padding_statement): Likewise.
2756         (insert_pad): Now takes a "fill_type *" arg.
2757         (size_input_section): Likewise.
2758         (lang_size_sections_1): Likewise.
2759         (lang_size_sections): Likewise.
2760         (lang_do_assignments): Likewise.
2761         (lang_add_fill): Likewise.
2762         (lang_leave_output_section_statement): Likewise.
2763         (lang_leave_overlay_section): Likewise.
2764         (lang_leave_overlay): Likewise.
2765         Adjust all callers of the above function.
2766         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
2767         starting with "0X" as well as "0x".  Return bigint.str for hex
2768         numbers starting with "0x" or "0X", zero bigint.str otherwise.
2769         Always use base 16 for numbers starting with "$".
2770         * ldmain.c: Include ldgram.h after ldexp.h.
2771         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2772         of bfd_fill_link_order.
2773         * pe-dll.c: Adjust lang_do_assignments calls.
2774         * emultempl/elf32.em: Likewise.
2775         * emultempl/hppaelf.em: Likewise.
2776         * emultempl/ppc64elf.em: Likewise.
2777         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2778         lang_add_assignment call.
2779         * emultempl/pe.em: Likewise.
2780
2781 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
2782
2783         * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2784         * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2785         the pattern in question is not a regexp.
2786         * ldlang.c: Likewise.
2787         * ldlang.h: Likewise.
2788         * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2789
2790 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
2791
2792         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2793         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2794         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2795         * ldexp.c (exp_data_seg): New variable.
2796         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2797         (fold_binary): Handle DATA_SEGMENT_ALIGN.
2798         (exp_fold_tree): Handle DATA_SEGMENT_END.
2799         Pass allocation_done when recursing instead of hardcoding
2800         lang_allocating_phase_enum.
2801         * ldexp.h (exp_data_seg): New.
2802         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2803         (lang_size_sections): New.
2804         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2805         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2806         if COMMONPAGESIZE is defined.
2807         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2808         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2809         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2810         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2811         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2812         libraries only.
2813
2814 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
2815
2816         * Makefile.in: Regenerate.
2817
2818 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
2819
2820         * lexsup.c: Remove strtoul declaration.
2821
2822 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
2823
2824         * ldmain.c: Add prototype for main ().
2825         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2826         * emultempl/lnk960.em (lnk960_choose_target): Function should
2827         take two arguments.
2828
2829 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
2830
2831         * ldlang.c (entry_section): New initialised variable.
2832         (lang_finish): Use it.
2833         * ldlang.h (entry_section): Declare.
2834         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2835         entry_section to ".opd".
2836
2837 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
2838
2839         * ld.texinfo (Options): Add back in -nostdlib documentation,
2840         which had been inadvertently removed.
2841
2842 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
2843
2844         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2845         register section vma to a sane value after emitting error.  Make
2846         fatal conditions cause program exit when emitting message.
2847
2848 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
2849
2850         * configure.tgt: Add or32-*-rtems target.
2851
2852 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
2853
2854         Contribute sh64-elf.
2855         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
2856         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2857         in OTHER_RELOCATABLE_SECTIONS.
2858         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
2859         * emulparams/shelf32.sh (STACK_ADDR): Define.
2860         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2861         (OTHER_SECTIONS): this.  Removed stack settings.
2862         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2863         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2864         2001-03-12  DJ Delorie  <dj@redhat.com>
2865         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2866         relaxing if any shmedia or mixed sections are found.
2867         2001-03-07  DJ Delorie  <dj@redhat.com>
2868         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2869         einfo.  Gracefully decline to output to non-elf formats.
2870         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
2871         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2872         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2873         * emulparams/shelf32.sh: Ditto.
2874         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
2875         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2876         comment.
2877         2001-01-10  Ben Elliston  <bje@redhat.com>
2878         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2879         non-portable shell constructs. From Hans-Peter Nilsson.
2880         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
2881         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2882         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2883         dependencies to the shell script include chain.
2884         * Makefile.in: Regenerate.
2885         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
2886         * emultempl/sh64elf.em: Update and tweak comments.
2887         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2888         make a .cranges section SEC_IN_MEMORY.
2889         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
2890         * emultempl/sh64elf.em
2891         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2892         .cranges section found to be necessary; continue and set stored
2893         section contents flags for sections with non-mixed contents.
2894         Use a struct sh64_section_data container and sh64_elf_section_data
2895         to store contents-type flags.
2896         Remove unused update of "isec".
2897         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2898         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
2899         access contents-type flags.  Assert that the associated container
2900         is initialized.  Use that container, not elf_gp_size, to hold size
2901         of linker-generated cranges contents.
2902         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
2903         * emultempl/sh64elf.em
2904         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2905         there's already a .cranges section.  When section flag difference
2906         is found, don't NULL-check cranges a second time.  Tweak comments.
2907         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2908         merging, not max size, as size of ld-generated .cranges contents.
2909         Don't set ELF section flags in output section.  When checking for
2910         needed .cranges descriptors, don't use a variable; compare
2911         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
2912         comments.
2913         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
2914         * emultempl/sh64elf.em: New file.
2915         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2916         * Makefile.in: Regenerate.
2917         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2918         (OTHER_RELOCATING_SECTIONS): Ditto.
2919         (EXTRA_EM_FILE): New, set to sh64elf if not set.
2920         * emulparams/shlelf32.sh: Stub out all settings except
2921         OUTPUT_FORMAT.  Source shelf32.sh.
2922         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2923         OTHER_RELOCATING_SECTIONS.
2924         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2925         * emulparams/shlelf64.sh: Stub out all settings except
2926         OUTPUT_FORMAT.  Source shelf64.sh.
2927         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
2928         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2929         .cranges section.
2930         (DATA_START_SYMBOLS): Define, provide ___data.
2931         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2932         for consecutive .data section.
2933         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2934         section after .data section.
2935         * emulparams/shlelf64.sh: Ditto.
2936         * emulparams/shelf32.sh: Ditto.
2937         (ALIGNMENT): Define to 8.
2938         * emulparams/shelf32.sh: Ditto.
2939         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
2940         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2941         built-in linker scripts.
2942         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
2943         * emulparams/shlelf64.sh: New.
2944         * emulparams/shelf64.sh: New.
2945         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2946         targ_extra_emuls.
2947         * Makefile.am: Add support for shlelf64 and shelf64.
2948         * Makefile.in: Regenerate.
2949         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
2950         * configure.tgt (sh64-*-elf*): Add shelf as default.
2951         Add shlelf to targ_extra_emuls.
2952         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
2953         * emulparams/shelf32.sh: New file.
2954         * emulparams/shlelf32.sh: New file.
2955         * Makefile.am: Add support for shlelf32 and shelf32.
2956         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2957         * Makefile.in: Regenerate.
2958
2959 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
2960
2961         * ldlang.c (lang_reset_memory_regions): Rename from
2962         reset_memory_regions.  Change all callers.  Make public.
2963         * ldlang.h (lang_reset_memory_regions): Prototype.
2964         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2965         lang_reset_memory_regions before lang_size_sections.
2966         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2967         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2968
2969 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
2970
2971         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2972         arithmetic when checking for too many global registers.
2973
2974 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
2975
2976         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2977         (ehppanbsd.c): New rule.
2978         * Makefile.in: Regenerate.
2979         * configure.tgt (hppa*-*-netbsd*): New target.
2980         * emulparams/hppalinux.sh: Add comment to check other files
2981         that source this file it is modified, and list which
2982         files that do.
2983         * emulparams/hppanbsd.sh: New file.
2984
2985 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
2986
2987         * scripttempl/xstormy16.sc: Don't allocate extra space for the
2988         stack.
2989
2990 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
2991
2992         Support on-demand global register allocation from
2993         R_MMIX_BASE_PLUS_OFFSET relocs.
2994         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2995         mmix_set_reg_section_vma.  Call
2996         _bfd_mmix_finalize_linker_allocated_gregs.
2997         (mmix_before_allocation): New function.
2998         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2999         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
3000         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
3001         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
3002         before .MMIX.reg_contents.
3003         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
3004         (mmo_after_open): New function.
3005         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
3006         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
3007         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
3008
3009 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
3010
3011         * emulparams/or32.sh: New file.
3012         * emulparams/or32elf.sh: New file.
3013         * scripttempl/or32.sc: New file.
3014         * configure.tgt : Add support for or32.
3015         * configure: Regenerate
3016         * Makefile.am: Add support for or32.
3017         * Makefile.in: Regenerate.
3018         * NEWS: Mention support for or32.
3019         * po/ld.pot: Regenerate.
3020
3021 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
3022             Mitch Lichtenberg  <mpl@broadcom.com>
3023
3024         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
3025         * emultempl/mipself.em: New file to handle MIPS ELF embedded
3026         reloc creation (ld --embedded-relocs).
3027
3028 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
3029
3030         * configure: Regenerated.
3031
3032 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
3033
3034         * Makefile.am (install): Depend on install-info.
3035         * Makefile.in: Regenerate.
3036
3037 2002-01-26  Christian Rose  <menthos@menthos.com>
3038
3039         * ldmain.c (main): Use full sentences to ease translation.
3040
3041 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
3042
3043         * po/fr.po: Updated version.
3044
3045 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
3046
3047         * po/es.po: Updated version.
3048
3049 2002-01-25  Andreas Jaeger  <aj@suse.de>
3050
3051         * ldlex.l (yy_input): Correct error check.
3052
3053 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
3054
3055         * ldmisc.c (demangle): Put back dots when string not demangled.
3056
3057 2002-01-22  Richard Henderson  <rth@redhat.com>
3058
3059         * emulparams/elf64alpha.sh (NOP): Use unop.
3060
3061 2002-01-21  Andreas Jaeger  <aj@suse.de>
3062
3063         * ldlex.l: Use fread instead of read.
3064
3065 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
3066
3067         * configure.tgt (ia64-*-netbsd*): New target.
3068
3069 2002-01-21  H.J. Lu <hjl@gnu.org>
3070
3071         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
3072         0.
3073         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
3074
3075 2002-01-18  Andreas Jaeger  <aj@suse.de>
3076
3077         * ldver.c (ldversion): Update year.
3078
3079 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
3080
3081         * po/ld.pot: Regenerate.
3082
3083 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
3084
3085         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
3086         * Makefile.in: Regenerate.
3087         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
3088         * emultempl/ppc64elf.em: New file.
3089
3090 2002-01-15  DJ Delorie  <dj@redhat.com>
3091
3092         * scripttempl/pe.sc: Add support for constructor priorities.
3093
3094 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3095
3096         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
3097         * emulparams/avr23xx.sh: Likewise.
3098         * emulparams/avr4433.sh: Likewise.
3099         * emulparams/avr44x4.sh: Likewise.
3100         * emulparams/avr85xx.sh: Likewise.
3101         * emulparams/avrmega103.sh: Likewise.
3102         * emulparams/avrmega161.sh: Likewise.
3103         * emulparams/avrmega603.sh: Likewise.
3104         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
3105
3106 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
3107
3108         * ldlang.c (walk_wild_section): Exclude object file if enclosing
3109         archive is excluded.
3110
3111 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
3112
3113         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
3114         (eshelf_nbsd.c): New rule.
3115         (eshlelf_nbsd.c): New rule.
3116         * Makefile.in: Regenerate.
3117         * configure.tgt (sh*le-*-netbsdelf*): New target.
3118         (sh*-*-netbsdelf*): New target.
3119         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
3120         * emulparams/shelf_nbsd.sh: New emulation.
3121         * emulparams/shlelf_nbsd.sh: New emulation.
3122
3123 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
3124
3125         * po/es.po: New file: Spanish translation.
3126         * configure.in (ALL_LINGUAS): Add es.
3127         * configure: Regenerate.
3128
3129 2002-01-06  John Marshall  <jmarshall@acm.org>
3130
3131         * ld.texinfo: Note that --emit-relocs is currently only
3132         implemented for ELF.
3133
3134 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
3135
3136         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3137         of bfd_section_list_remove and bfd_section_list_insert macros.
3138         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3139         * emultempl/mmo.em (mmo_place_orphan): Likewise.
3140
3141 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
3142
3143         * configure.tgt (x86_64-*-netbsd*): New target.
3144
3145 2001-12-21  Tom Rix  <trix@redhat.com>
3146
3147         (gld*_create_output_section_statements): New function.
3148         For -binitfini support.
3149         * emultempl/aix.em (gld*_before_parse): Fix comment.
3150         * emultempl/aix.em (gld*_parse_args): Fix comment.
3151
3152 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
3153
3154         * configure.tgt (mips*-dec-netbsd*): Delete alias for
3155         mips*el-*-netbsd*.
3156         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3157
3158         * configure.tgt (arm-*-netbsdelf*): Add target.
3159         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3160         * emulparams/armelf_nbsd.sh: Added.
3161         * Makefile.am: Add rules for earmelf_nbsd.
3162         * Makefile.in: Regenerate.
3163
3164 2001-12-19  Andreas Jaeger  <aj@suse.de>,
3165             Susanne Oberhauser <froh@suse.de>
3166
3167         * configure.host: Add rules for x86_64-*linux-gnu.  Change
3168         s390x-linux entry to use gcc to report configuration, replace gcc
3169         with $CC in s390-linux
3170
3171 2001-12-19  Andreas Jaeger  <aj@suse.de>
3172
3173         * ld.texinfo (VERSION): Fix markup.
3174
3175 2001-12-18  matthew green  <mrg@eterna.com.au>
3176
3177         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3178         (m68kelfnbsd.c): New rule.
3179         * Makefile.in: Regenerate.
3180         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3181         (m68*-*-netbsd*4k*): .. this.
3182         (m68*-*-netbsdelf*): New target.
3183         (m68*-*-netbsd*): Also include ELF support.
3184         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3185         * emulparams/m68kelfnbsd.sh: New emulation.
3186
3187 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
3188
3189         * ldgram.y (vers_node): Support anonymous version tags.
3190         * ldlang.c (lang_register_vers_node): Ensure anonymous version
3191         tag is not defined together with non-anonymous versions.
3192         * ld.texinfo: Document it.
3193
3194 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
3195
3196         * po/tr.po: New file: Turkish translation.
3197         * configure.in (ALL_LINGUAS): Add tr.
3198         * configure: Regenerate.
3199
3200 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
3201
3202         * Makefile.am: Add rules for eelf64alpha_nbsd.
3203         * Makefile.in: Regenerate.
3204         * configure.tgt (alpha*-*-netbsd*): Set
3205         targ_emul to elf64alpha_nbsd.
3206         * emulparams/elf64alpha_nbsd.sh: Added.
3207
3208 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
3209
3210         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3211         section_tail when fiddling with section list.
3212         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3213         broken into separate strings to make translation easier.
3214         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3215         fiddling with section list.
3216         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3217
3218 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
3219
3220         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3221
3222 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
3223
3224         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3225
3226 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
3227
3228         * emultempl/elf32.em (finish): Supply output_bfd
3229         to bfd_elf*_discard_info.
3230         (OPTION_EH_FRAME_HDR): Define.
3231         (longopts): Add --eh-frame-hdr.
3232         (parse_args): Handle it.
3233         (list_options): Add --eh-frame-hdr to help.
3234         * emultempl/hppaelf.em (finish): Supply output_bfd
3235         to bfd_elf*_discard_info.
3236         * scripttempl/elf.sc (.eh_frame_hdr): Add.
3237
3238 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
3239
3240         * lexsup.c (parse_args): Don't pass shortopts to second call to
3241         getopt functions.  Restore optind rather than decrementing before
3242         second call.  Remove errind as it now duplicates last_optind.
3243
3244 2001-12-11  Christopher Faylor  <cgf@redhat.com>
3245
3246         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3247
3248 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
3249             Richard Henderson  <rth@redhat.com>
3250
3251         * Makefile.am: Add support for xstormy16.
3252         * configure.tgt: Add support for xstormy16.
3253         * Makefile.in: Regenerate.
3254         * emulparams/elf32xstormy16.sh: New file.
3255         * scripttempl/xstormy16.sc: New file.
3256
3257 2001-10-01  Christopher Faylor <cgf@cygnus.com>
3258
3259         * Makefile.in (LIB_PATH): Make configurable.
3260         (GENSCRIPTS): Set LIB_PATH in environment.
3261         * configure.in: Substitute LIB_PATH.
3262         * configure: Regenerate.
3263         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3264         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3265
3266 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
3267
3268         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3269         describing the -N option so that it is easier to translate into
3270         foreign languages.
3271
3272 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
3273
3274         * emultempl/pe.em (..._list_options): Replace multiple fprintf
3275         statements describing a single option with a single, newline
3276         escaped fprintf.  This allows better translation into other
3277         languages.
3278
3279         * ldmain.c (add_archive_element): Combine multiple strings
3280         into a single string to permit better translation into other
3281         languages.
3282
3283 2001-12-05  Tom Rix  <trix@redhat.com>
3284
3285         * Makefile.am: Remove eaixppc64.
3286         * Makefile.in: Regenerate.
3287
3288 2001-12-04  Tom Rix  <trix@redhat.com>
3289
3290         * emultempl/aix.em (choose_target): Change default target to
3291         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
3292         warning.
3293         (gld*_read_file): Fix typo.
3294         (change_symbol_mode): Add prototype.
3295         (is_syscall): Same.
3296
3297         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3298         * emulparams/aixrs6.sh : Same.
3299         * emulparams/ppcmacos.sh : Same.
3300         * emulparams/aixppc64.sh : Delete file.
3301         * emultempl/aix.em : Formatting changes.
3302
3303 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
3304
3305         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3306         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3307         __Sbss.
3308         (OTHER_END_SYMBOLS): Fix formatting.
3309         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3310         (OTHER_END_SYMBOLS): Fix formatting.
3311
3312 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
3313
3314         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3315
3316 2001-12-02  Tom Rix  <trix@redhat.com>
3317
3318         * configure.tgt : Remove eaixppc64 emulations.
3319         * Makefile.in : Remove eaixppc64.c
3320         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3321         (ldemul_default_target): Same.
3322         * emultempl/gld960.em (gld960_choose_target): Same.
3323         * emultempl/gld960c.em (gld960_choose_target): Same.
3324         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3325         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3326         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3327         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3328         * emultempl/aix.em (choose_target): New function.  Handle emulation of
3329         -b32 and -b64.
3330
3331 2001-11-27  H.J. Lu <hjl@gnu.org>
3332
3333         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3334         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3335         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3336         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3337         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3338         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3339         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3340         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3341
3342         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3343         is not empty.
3344         (SDATA): Likewise.
3345         (REL_SDATA): Likewise.
3346         (REL_SBSS): Likewise.
3347         (REL_SDATA2): Likewise.
3348         (REL_SBSS2): Likewise.
3349         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3350         (SDATA2): Likewise.
3351
3352 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3353
3354         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3355         destructor in rom.
3356         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3357
3358 2001-11-22  H.J. Lu  <hjl@gnu.org>
3359
3360         * Makefile.in: Regenerated with automake based on automake
3361         1.4-8 in RedHat 7.1.
3362
3363 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
3364
3365         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3366         (config.status): Delete rule.
3367         Add extra dependencies to cover sourced emulparams files.
3368         * Makefile.in: Regenerate.
3369
3370         * scripttempl/elf.sc: Order <section>, <section>.* and
3371         corresponding linkonce sections as seen in input files.
3372         Formatting fixes.  Zero vma of all sections if not relocating.
3373         (STACK): Define and insert if STACK_ADDR defined.
3374         (OTHER_RELOCATING_SECTIONS): Delete.
3375         (OTHER_END_SYMBOLS): Define.
3376         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3377         (OTHER_READWRITE_SECTIONS): Likewise.
3378         (OTHER_GOT_SECTIONS): Likewise.
3379         (OTHER_SDATA_SECTIONS): Likewise.
3380         (OTHER_BSS_SECTIONS): Likewise.
3381         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3382         (OTHER_READWRITE_SECTIONS): Likewise.
3383         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3384         (OTHER_READWRITE_SECTIONS): Likewise.
3385
3386         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3387         (STACK_ADDR): Define.
3388         * emulparams/armelf_oabi.sh: As for armelf.sh.
3389         * emulparams/elf32mcore.sh: As for armelf.sh.
3390         * emulparams/h8300elf.sh: As for armelf.sh.
3391         * emulparams/mn10200.sh: As for armelf.sh.
3392         * emulparams/shelf.sh: As for armelf.sh.
3393
3394         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3395         (OTHER_END_SYMBOLS): Define.
3396         * emulparams/m32relf.sh: As for elf32fr30.sh.
3397         * emulparams/h8300helf.sh: As for elf32fr30.sh.
3398         * emulparams/h8300self.sh: As for elf32fr30.sh.
3399
3400         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3401         defines with RELOCATING test.
3402         (OTHER_SDATA_SECTIONS): Likewise.
3403         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3404         (OTHER_END_SYMBOLS): ..this.
3405         * emulparams/crislinux.sh: As for criself.sh.
3406
3407         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3408         if not relocating.
3409         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3410         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
3411         normal and linkonce sections as seen in input files.
3412         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3413         (TEXT_DYNAMIC): Likewise.
3414         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3415         (OTHER_SDATA_SECTIONS): Likewise.
3416         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3417         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3418         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3419         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3420         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3421         (OTHER_PLT_RELOC_SECTIONS): Likewise.
3422         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
3423         sections as seen in input files.
3424         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3425         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3426         if not relocating.
3427         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3428         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3429         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3430         (OTHER_SECTIONS): Instead, use this..
3431         (OTHER_END_SYMBOLS): ..and this.
3432
3433         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3434         * emulparams/elf32bsmip.sh: Likewise.
3435         * emulparams/elf32btsmip.sh: Likewise.
3436         * emulparams/elf32ebmip.sh: Likewise.
3437         * emulparams/elf32lmip.sh: Likewise.
3438         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3439         * emulparams/elf32lsmip.sh: Likewise.
3440         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3441         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3442         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3443         * emulparams/elf64btsmip.sh: Likewise.
3444         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3445         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3446         * emulparams/elf32ppclinux.sh: Likewise.
3447         * emulparams/elf32ppcsim.sh: Likewise.
3448         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3449         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3450         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3451         * emulparams/h8300self.sh: Likewise.
3452         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3453         * emulparams/sh.sh: Comment.
3454         * emulparams/shl.sh: Source sh.sh, remove duplicates.
3455         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3456         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3457
3458 2001-11-21  David Heine <dlheine@tensilica.com>
3459             Alan Modra  <amodra@bigpond.net.au>
3460
3461         * ldlang.c (map_input_to_output_sections): Replace "break"
3462         accidentally removed with 2001-08-03 change.
3463         (lang_gc_sections_1): Likewise.
3464
3465 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
3466
3467         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3468
3469 2001-11-20  Angela Marie Thomas <angela@redhat.com>
3470
3471         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3472         of false when calling lang_size_sections.
3473         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3474
3475 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
3476
3477         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3478         function when LDEMUL_FINISH isn't set to the same name.  Don't
3479         call ${LDEMUL_FINISH}.
3480         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3481         * emultempl/armelf.em (arm_elf_finish): Call
3482         gld${EMULATION_NAME}_finish.
3483         * emultempl/hppaelf.em (hppaelf_finish): Rename to
3484         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
3485         hppaelf_layout_sections_again if necessary.
3486         (need_laying_out): New var.
3487         (hppaelf_layaout_sections_again): Rename to
3488         hppaelf_layout_sections_again.  Clear need_laying_out.
3489         (PARSE_AND_LIST_OPTIONS): Format text.
3490
3491 2001-11-14  H.J. Lu  <hjl@gnu.org>
3492
3493         * emultempl/armelf.em (arm_elf_finish): Renamed from
3494         gld${EMULATION_NAME}_finish.
3495         (LDEMUL_FINISH): Set to arm_elf_finish.
3496
3497 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
3498
3499         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3500         (struct ld_emulation_xfer_struct): Use it.
3501
3502 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
3503
3504         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3505         additional symbols referenced by newer crt0.o files from HP.
3506
3507 2001-11-12  Anthony Green  <green@redhat.com>
3508
3509         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3510
3511 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
3512
3513         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3514         * Makefile.in: Regenerate.
3515
3516 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3517
3518         * ld.texinfo: Use @command for commands, @option for options.
3519         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3520         the page man title.
3521         * Makefile.in: Rebuild.
3522
3523 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
3524
3525         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3526         Add support for targets.
3527
3528 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
3529
3530         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3531         * configure: Regernate.
3532         * po/fr.po: New file.
3533         * po/sv.po: New file.
3534
3535 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
3536
3537         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3538         as little endian default and to support big endian.
3539
3540 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
3541
3542         * ld.texinfo (Options): Document new option, -nostdlib.
3543         * lexsup.c (OPTION_NOSTDLIB): New definition.
3544         (ld_options): Add entry for "nostdlib".
3545         (parse_args): Handle OPTIONS_NOSTDLIB.
3546         * ldfile.c (ldfile_add_library_path): Don't add directories
3547         to the search path if they weren't specified on the command line
3548         and -nostdlib was specified.
3549         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3550
3551 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
3552
3553         * lexsup.c (parse_args): Prevent infinite parsing loop when
3554         "-rpath.a" is specified on the command line.
3555         Replace calls to fprintf with calls to einfo.
3556
3557 2001-10-31  John Marshall  <jmarshall@acm.org>
3558
3559         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3560         appear only once across all the linker scripts involved in a link
3561         invocation no longer applies.  Make the documentation reflect
3562         that.
3563
3564 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
3565
3566         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3567         targets.
3568         (sh-*-linux*): Added targ_extra_libpath.
3569
3570 2001-10-31  David Heine  <dlheine@tensilica.com>
3571
3572         * ldlang.c (lang_size_sections): Keep a valid output_offset field
3573         for padding statements.
3574
3575 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
3576
3577         * configure.tgt (mmix-*-*): New target.
3578         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3579         Add dependencies to match.
3580         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3581         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3582         scripttempl/mmo.sc: New files.
3583         * gen-doc.texi: @set MMIX.
3584         * ld.texinfo: Ditto.
3585         [MMIX] Add MMIX node.
3586         * Makefile.in: Regenerate.
3587
3588 2001-10-29  Kazu Hirata  <kazu@hxi.com>
3589
3590         * ldlang.c: Fix a comment typo.
3591
3592 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
3593
3594         * configure.host: Move alpha*-*-linux-gnu* entry to generic
3595         entries, and match *-*-linux*.
3596
3597 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
3598
3599         * ldgram.y (mri_script_command): Surround processing of INCLUDE
3600         with ldlex_script, ldlex_popstate.
3601         (ifile_p1): Likewise.
3602         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
3603         correct slot.
3604         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
3605         to 1.  Don't BEGIN(SCRIPT).
3606         (lex_redirect): Similarly.
3607         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3608
3609 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
3610
3611         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3612         __EH_FRAME_END__ and accept eh frames into data section.
3613         Add ctor and dtor sections.
3614
3615 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3616
3617         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3618         (auto-export): Fix indentation.
3619
3620 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3621
3622         * pe-dll.c (autofilter_objectlist): Add startup objects
3623         for profiling.
3624         (auto-export): Constify char * p.
3625         Extract file basename and use strcmp rather than ststr
3626         for object lookup.
3627
3628 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
3629
3630         * ldmain.c (get_emulation): Improve comment about the handling
3631         of -mipsN options.
3632
3633 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
3634
3635         * po/POTFILES.in: Regenerate.
3636
3637 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
3638
3639         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3640         -z nocopyreloc and -z nocombreloc usage strings.
3641
3642 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
3643
3644         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3645         in usage.
3646
3647 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
3648
3649         * scripttempl/armaout.sc: Place .bss section after end of aligned
3650         data section to match behaviour of aout code in constructrion of
3651         header.
3652
3653 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3654
3655         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3656         startup files for mingw32 dlls to list.
3657
3658 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
3659
3660         * emultempl/elf32.em: Fix shell 'if' usage for portability.
3661
3662 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
3663
3664         * configure.tgt (targ): Add arm9e-*-elf.
3665
3666 2001-10-05  H.J. Lu  <hjl@gnu.org>
3667
3668         * genscripts.sh: Fix a typo in the last change.
3669
3670 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
3671
3672         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3673         -z nocombreloc in usage.
3674
3675 2001-10-03  Jim Blandy  <jimb@redhat.com>
3676
3677         * genscripts.sh: Include a comment at the top of each generated
3678         script, explaining its purpose.
3679
3680 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
3681
3682         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3683         * NEWS: Mention -z nocopyreloc.
3684         * ld.texinfo (Options): Describe nocopyreloc.
3685
3686 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
3687
3688         * configure: Regenerate.
3689
3690 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
3691
3692         * ldver.h (ld_program_version): Remove declaration.
3693         * lexsup.c (parse_args): Move printing of copyright message..
3694         * ldver.c (ldversion): .. to here.
3695         Use BFD_VERSION_STRING in place of BFD_VERSION.
3696         (ld_program_version): Remove.
3697         * Makefile.am (Makefile): Depend on bfd/configure.in.
3698         Run "make dep-am".
3699         * Makefile.in: Regenerate.
3700
3701 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3702
3703         * Makefile.am: Update dependencies with "make dep-am".
3704         * Makefile.in: Regenerate.
3705
3706 2001-09-29  John Reiser  <jreiser@BitWagon.com>
3707
3708         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3709         * lexsup.c: Add --no-define-common commandline option.
3710         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3711         * ldlex.l: Likewise.
3712         * ld.h: Add command_line.inhibit_common_definition.
3713         * ldmain.c (main): Initialize.
3714         * ld.texinfo: Document.
3715
3716 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
3717
3718         * ldlang.c (section_already_linked): Remove assignment to kept_section.
3719
3720 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
3721
3722         * ldmisc.c (USE_STDARG): Remove.
3723         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3724         (einfo): Likewise.
3725         (minfo): Likewise.
3726         (lfinfo): Likewise.
3727
3728         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3729         declarations.  Update copyright.
3730
3731 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
3732
3733         * pe-dll.c: Remove obsoleted declaration of
3734         pe_get_data_import_dll_name.
3735         (pe_create_import_fixup): Fix thinko.
3736
3737         * ld.texinfo(enable-auto-import): Clarify the explanation.
3738
3739 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
3740
3741         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3742         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3743         DLL_SUPPORT controlled code.
3744
3745 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
3746
3747         * emultempl/pe.em(pe_data_import_dll): Make static.
3748         (pe_get_data_import_dll_name): New accessor function.
3749         * pe-dll.c(pe_create_import_fixup): call
3750         pe_get_data_import_dll_name() from pe.em, instead of
3751         directly accessing pe_data_import_dll variable from pe.em.
3752
3753 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
3754
3755         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3756         (def_file_add_directive): Use ISSPACE instead of isspace.
3757         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3758         isdigit/isxdigit/isalpha/isalnum.
3759         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3760         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3761         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3762         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3763         isalnum.
3764         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3765         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3766         isupper/tolower.
3767         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3768         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3769         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3770         (ctor_prio): Use ISDIGIT instead of isdigit.
3771         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3772         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3773         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3774         isupper/tolower.
3775         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3776         (stricpy): Use TOLOWER instead of isupper/tolower.
3777         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3778         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3779         (lex_warn_invalid): Use ISPRINT instead of isprint.
3780         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3781         (main): For gettext, also set the LC_CTYPE locate facet.
3782         (add_keepsyms_file): Use ISSPACE instead of isspace.
3783         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3784         (is_num, parse_args): Use ISDIGIT instead of isdigit.
3785         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3786         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3787         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3788         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3789         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3790         (quoteput): Use ISSPACE instead of isspace.
3791         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3792         instead of isalnum.
3793
3794 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
3795
3796         * deffilep.y (def_stash_module): Constify "name" param.
3797
3798         * pe-dll.c: Replace CONST with const throughout.
3799         (quick_symbol): Constify "n1", "n2", "n3" params.
3800         (make_singleton_name_thunk): Constify "import" param.  Make
3801         "buffer_len" a size_t.
3802         (make_import_fixup_entry): Constify "name", "fixup_name",
3803         "dll_symname" params.
3804         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
3805         (pe_get32): Likewise.
3806         (pe_implied_import_dll): Likewise.
3807
3808         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3809         (sort_by_section_name): Likewise.
3810
3811         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3812         (make_import_fixup): Cast printf arg, rel->address to long rather
3813         than int.
3814         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3815
3816 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
3817
3818         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3819         defines BufferSize.  Increase buffer size by one.
3820
3821 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
3822
3823         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3824
3825 2001-09-14  Kevin Lo <kevlo@openbsd.org>
3826
3827         * configure.tgt: Add arm-openbsd target.
3828
3829 2001-09-12  H.J. Lu  <hjl@gnu.org>
3830
3831         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3832         eelf64lppc.o to ...
3833         (ALL_64_EMULATIONS): Here.
3834         * Makefile.in: Regenerated.
3835
3836 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3837
3838         * emultempl/pe.em(make_import_fixup): change signature to
3839         take asection as well as arelec; we need this for proper
3840         error reporting.  Only call pe_create_import_fixup() if
3841         there is no attempt to add a constant addend to the reloc;
3842         otherwise, report error condition.
3843         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3844         since final argument is a pointer to make_import_fixup().
3845         Change call to cb() to match make_import_fixup() signature.
3846         (make_import_fixup_mark): make buffer_len unsigned.
3847         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3848
3849 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
3850
3851         * ld.texinfo: add verbose documentation for auto-import
3852         direct-addressing workaround, to compliment the terse
3853         error message.
3854
3855 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
3856
3857         * scripttempl/v850.sc: Add gcc_except_table sections.
3858
3859 2001-09-11  Jeffrey A Law  (law@cygnus.com)
3860
3861         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3862         * emulparams/h8300self.sh: Similarly.
3863
3864 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3865
3866         * ld.texinfo (Options, --stack): Correct default value for stack
3867         reserve.
3868
3869 2001-09-05  Tom Rix <trix@redhat.com>
3870
3871         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3872
3873 2001-09-03  Andreas Jaeger  <aj@suse.de>
3874
3875         * emultempl/beos.em: Declare prototypes for comparions functions,
3876         adjust definitions.
3877
3878 2001-09-02  Andreas Jaeger  <aj@suse.de>
3879
3880         * emultempl/aix.em: Add missing prototype.
3881         * emultempl/lnk960.em: Likewise.
3882         * emultempl/vanilla.em: Likewise.
3883         * emultempl/armcoff.em: Likewise.
3884         * emultempl/armelf_oabi.em: Likewise.
3885         * emultempl/beos.em: Likewise.
3886         * emultempl/gld960c.em: Likewise.
3887         * emultempl/gld960.em: Likewise.
3888
3889         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3890         for prototype declaration.
3891
3892 2001-08-31  Eric Christopher  <echristo@redhat.com>
3893             Jason Eckhardt  <jle@redhat.com>
3894
3895         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3896
3897 2001-08-31  Andreas Jaeger  <aj@suse.de>
3898
3899         * emultempl/pe.em: Add missing prototypes.
3900         (gld_${EMULATION_NAME}_after_open): Remove extra args to
3901         pe_find_data_imports.
3902         (pr_sym): Add unused attribute.
3903
3904 2001-08-29  Joel Sherrill <joel@OARcorp.com>
3905
3906         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3907         default from coff to elf.
3908
3909 2001-08-29  Jeff Law <law@redhat.com>
3910
3911         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
3912         ARCH specification.
3913         * emulparams/h8300self.sh: Similarly.
3914
3915 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
3916
3917         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3918         eh8300self.o .
3919         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3920         * configure.tgt (h8300-*-elf*): New case.
3921         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3922         * emulparams/h8300self.sh: New file.
3923         * Makefile.in: Regenerated.
3924
3925 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
3926
3927         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3928         with macro name.
3929
3930 2001-08-27  Linus Nordberg  <linus@swox.com>
3931             Alan Modra  <amodra@bigpond.net.au>
3932
3933         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3934         (eelf64ppc.c, eelf64lppc.c): Add make targets.
3935         Run "make dep-am"
3936         * Makefile.in: Regenerate.
3937         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
3938         entries to correct alphabetical position.
3939         * emulparams/elf64ppc.sh: New.
3940         * emulparams/elf64lppc.sh: New.
3941
3942 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
3943
3944         * ldmain.c (main): Declare BSIZE as static.
3945
3946 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3947
3948         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3949         into .rel.dyn resp. .rela.dyn if combreloc.
3950         (get_script): If .x linker script is equal to .xn, only put it
3951         once into the binary.
3952         Add .xc and .xsc scripts.
3953         (parse_args): Handle -z combreloc and -z nocombreloc.
3954         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3955         For .xc and .xsc scripts put all .rel* or .rela* input sections
3956         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3957         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3958         is elf.
3959         Strip trailing whitespace from script.
3960         Generate .xc and .xsc scripts if requested.
3961         * ldmain.c (main): Initialize link_info.combreloc and
3962         link_info.spare_dynamic_tags.
3963         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3964         (ld_options): Add --spare-dynamic-tags option.
3965         (parse_args): Likewise.
3966         * ld.texinfo: Document -z combreloc and -z nocombreloc.
3967         * ldint.texinfo: Document .xc and .xsc linker scripts.
3968         * NEWS: Add notes about -z combreloc and SHF_MERGE.
3969
3970 2001-08-22  H.J. Lu  <hjl@gnu.org>
3971
3972         * emulparams/elf32fr30.sh: Add a newline.
3973
3974 2001-08-21  Andreas Jaeger  <aj@suse.de>
3975
3976         * deffilep.y: Add missing prototypes.
3977         * pe-dll.c: Likewise.
3978
3979 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
3980
3981         * ldlang.c (insert_pad): Fix typos in last patch.
3982
3983         * ldlang.c: When traversing lang_statement_union_type lists,
3984         consistently use "header.next" rather than "next".
3985         * mpw-eppcmac.c: Likewise.
3986         * emultempl/beos.em: Likewise.
3987         * emultempl/hppaelf.em: Likewise.
3988         * emultempl/pe.em: Likewise.
3989         * ldlang.h (union lang_statement_union): Remove "next" field.
3990
3991         * ldlang.c (insert_pad): Use offsetof macro.
3992         (lang_size_sections): Always neuter padding statements.
3993         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3994
3995         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3996         passed to lang_size_sections.
3997         (pe_exe_fill_sections): Likewise.
3998         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3999         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
4000
4001 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
4002
4003         * emultempl/aix.em: Formatting fixes.
4004
4005 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
4006
4007         * ldlang.c (insert_pad): Make use of an existing pad statement if
4008         available.  Move code calculating alignment, adjusting section
4009         alignment power, and adjusting dot to ..
4010         (size_input_section): .. here.  Remove unused relax param.
4011         (lang_size_sections): Change boolean `relax' param to boolean *.
4012         Adjust call to size_input_section.  Make use of insert_pad to
4013         place pad after the assignment statement.  If relaxing, zap
4014         padding statements.
4015         (reset_memory_regions): Reset output_bfd section sizes too.
4016         (relax_again): Move to..
4017         (lang_process): ..here.  Adjust call to lang_size_sections, and
4018         remove duplicated code.
4019         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
4020
4021 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
4022
4023         * ld.texinfo: Document that fill values now use the four least
4024         significant bytes.
4025         * emulparams/elf32fr30.sh (NOP): Update.
4026         * emulparams/elf32mcore.sh: Likewise.
4027         * emulparams/elf64_s390.sh: Likewise.
4028         * emulparams/elf_i386.sh: Likewise.
4029         * emulparams/elf_i386_be.sh: Likewise.
4030         * emulparams/elf_i386_chaos.sh: Likewise.
4031         * emulparams/elf_i386_ldso.sh: Likewise.
4032         * emulparams/elf_s390.sh: Likewise.
4033         * emulparams/elf_x86_64.sh: Likewise.
4034         * emulparams/i386moss.sh: Likewise.
4035         * emulparams/i386nw.sh: Likewise.
4036         * emulparams/m68kelf.sh: Likewise.
4037         * scripttempl/elf.sc: Update NOP comment.
4038         * scripttempl/elfi370.sc: Likewise.
4039         * scripttempl/elfm68hc11.sc: Likewise.
4040         * scripttempl/elfm68hc12.sc: Likewise.
4041         * scripttempl/nw.sc: Likewise.
4042
4043 2001-08-15  Tom Rix <trix@redhat.com>
4044
4045         * ldgram.y (saved_script_handle): Initialize to NULL.
4046         * ldmain.c (main): Change check on saved_script_handle.
4047
4048 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
4049
4050         * emultempl/elf32.em: Formatting fixes.
4051         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
4052         looking at sec->owner.
4053         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
4054         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
4055         unused code, and reorganize orphan section placement code.
4056
4057         * ldlang.c (wild_doit): Rename to lang_add_section.
4058         * ldlang.h: Here too.
4059         * mpw-elfmips.c: And here.
4060         * emultempl/beos.em: And here.
4061         * emultempl/elf32.em: And here.
4062         * emultempl/hppaelf.em: And here.
4063         * emultempl/pe.em: And here.
4064
4065 2001-08-13  Richard Henderson  <rth@redhat.com>
4066
4067         * emultempl/needrelax.em: New file.
4068         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
4069         * Makefile.am (eelf64_ia64.c): Depend on it.
4070         * Makefile.in: Rebuild.
4071
4072 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
4073
4074         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
4075         output_section is set non-NULL.
4076
4077         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
4078         `true' for SEC_EXCLUDE sections so that the generic code doesn't
4079         needlessly create an output_section_statement.  Treat a correctly
4080         named output_section_statement with NULL bfd_section as compatible.
4081
4082 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
4083
4084         * emultempl/generic.em: Support EXTRA_EM_FILE.
4085         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
4086         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4087         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4088         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4089         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4090         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4091         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4092         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4093         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4094         LDEMUL_FIND_POTENTIAL_LIBRARIES.
4095
4096 2001-08-12  Richard Henderson  <rth@redhat.com>
4097
4098         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
4099         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
4100         scripttempl/v850.sc: Keep .jcr data.
4101
4102 2001-08-12  H.J. Lu  <hjl@gnu.org>
4103             Andrew Haley  <aph@cambridge.redhat.com>
4104             Nick Clifton  <nickc@redhat.com>
4105
4106         * ldgram.y (had_script): Change name to saved_script_handle.
4107         Change type to file handle.
4108         * ld.h (had_script): Rename and retype.
4109         * ldfile.c (ldfile_open_command_file): Save the file handle
4110         used in saved_script_handle.
4111         * lexsup.c (parse_args): Do not allow -c option to alter
4112         saved_script_handle.
4113         * ldmain.c (main): Print out the linker script used if
4114         --verbose is given.  Check saved_script_handle to obtain the
4115         external linker script used, or if NULL, dump the builtin
4116         script.
4117         * ld.texinfo: Document that --verbose now dumps the linker
4118         script used, regardless of whether it was an internal or an
4119         external script.
4120
4121 2001-08-10  Andreas Jaeger  <aj@suse.de>
4122
4123         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
4124         to build warnings.
4125         * configure: Regenerate.
4126
4127 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
4128
4129         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
4130
4131         * scripttempl/elf.sc: Move non-text .dynamic section before
4132         .plt/.got/.sdata* group.
4133         (OTHER_GOT_SECTIONS): Move to immediately after .got.
4134         (OTHER_SDATA_SECTIONS): Add.
4135         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4136         OTHER_GOT_SECTIONS.
4137         * emulparams/crislinux.sh: Likewise.
4138         * emulparams/elf32b4300.sh: Likewise.
4139         * emulparams/elf32bmip.sh: Likewise.
4140         * emulparams/elf32bmipn32.sh: Likewise.
4141         * emulparams/elf32bsmip.sh: Likewise.
4142         * emulparams/elf32btsmip.sh: Likewise.
4143         * emulparams/elf32ebmip.sh: Likewise.
4144         * emulparams/elf32elmip.sh: Likewise.
4145         * emulparams/elf32l4300.sh: Likewise.
4146         * emulparams/elf32lmip.sh: Likewise.
4147         * emulparams/elf32lsmip.sh: Likewise.
4148         * emulparams/elf32ltsmip.sh: Likewise.
4149         * emulparams/elf64bmip.sh: Likewise.
4150         * emulparams/elf64btsmip.sh: Likewise.
4151         * emulparams/elf64ltsmip.sh: Likewise.
4152
4153 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
4154
4155         * genscripts.sh: Source the emulparams script before each output
4156         script is generated so that variables like `RELOCATING' may affect
4157         variables defined in the emulparams script.
4158
4159 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
4160
4161         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4162         order.
4163
4164         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4165         ie. iterate over wild_statement.section_list.
4166         (gld${EMULATION_NAME}_place_orphan): Likewise.
4167
4168 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4169
4170         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4171         .fini[0-4] sections used by _exit
4172         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4173         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4174         * scripttempl/elfm68hc11.sc: Likewise.
4175
4176 2001-08-03  H.J. Lu  <hjl@gnu.org>
4177
4178         * emultempl/beos.em (init): Add the missing initialization.
4179
4180 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
4181
4182         * ld.texinfo (Input Section Basics): Clarify ordering of output
4183         sections.
4184         * ldlang.c (callback_t): Add wildcard_list param.
4185         (walk_wild_section): Remove "section" param.  Rewrite for
4186         lang_wild_statement_type change.  Remove unique_section_p test.
4187         (walk_wild_file): Remove "section" param.
4188         (walk_wild): Remove "section" and "file" params.
4189         (lang_gc_wild): Likewise.
4190         (wild): Likewise.  Modify for lang_wild_statement_type change.
4191         (wild_sort): Likewise.  Add "sec" param.
4192         (gc_section_callback): Likewise.
4193         (output_section_callback): Likewise.  Do unique_section_p test.
4194         (map_input_to_output_sections): Modify call to wild.
4195         (lang_gc_sections_1): Likewise.
4196         (print_wild_statement): Modify for lang_wild_statement_type
4197         change.
4198         (lang_add_wild): Replace filename, filenames_sorted param with
4199         filespec.  Replace section_name, sections_sorted,
4200         exclude_filename_list with section_list.
4201         * ldlang.h (lang_add_wild): Here too.
4202         (lang_wild_statement_type): Replace section_name, sections_sorted,
4203         and exclude_filename_list with section_list.
4204         * ldgram.y (current_file): Delete.
4205         (%union): Add wildcard_list.
4206         (file_NAME_list): Set type to wildcard_list.  Build a linked list
4207         rather than calling lang_add_wild for each entry.
4208         (input_section_spec_no_keep): Call lang_add_wild here instead.
4209         * ld.h (struct wildcard_list): Declare.
4210         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4211
4212 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
4213
4214         * ldmain.c (main): initialize link_info.pei386_auto_import
4215         * pe-dll.c: new tables for auto-export filtering
4216         (auto_export): change API, pass abfd for contextual filtering.
4217         Loop thru tables of excluded symbols instead of comparing
4218         "by hand".
4219
4220 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
4221
4222         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4223         static variable current_sec (static struct sec *). Add
4224         forward declaration for add_bfd_to_link.
4225         (process_def_file): Don't export undefined symbols. Do not
4226         export symbols starting with  "_imp__".  Call auto_export()
4227         with new API.
4228         (pe_walk_relocs_of_symbol): New function.
4229         (generate_reloc): add optional extra debugging
4230         (pe_dll_generate_def_file): eliminate extraneous initial blank
4231         line in output
4232         (make_one): enlarge symtab to make room for __nm__ symbols
4233         (DATA auto-import support).
4234         (make_singleton_name_thunk): New function.
4235         (make_import_fixup_mark): New function.
4236         (make_import_fixup_entry): New function.
4237         (pe_create_import_fixup): New function.
4238         (add_bfd_to_link): Specify that 'name' argument is a CONST
4239         char *.
4240         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4241         declare new functions pe_walk_relocs_of_symbol and
4242         pe_create_import_fixup.
4243         * emultempl/pe.em: add new options --enable-auto-import,
4244         --disable-auto-import, and --enable-extra-pe-debug.
4245         (make_import_fixup): New function.
4246         (pe_find_data_imports): New function.
4247         (pr_sym): New function.
4248         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4249         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
4250         CODE.
4251
4252 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
4253
4254         * ld.texinfo: add additional documentation for
4255         --export-all-symbols.  Document --out-implib,
4256         --enable-auto-image-base, --disable-auto-image-base,
4257         --dll-search-prefix, --enable-auto-import, and
4258         --disable-auto-import.
4259         * ldint.texinfo: Add detailed documentation on auto-import
4260         implementation.
4261
4262 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
4263
4264         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4265         example.
4266
4267 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
4268
4269         * Makefile.am: Update dependencies with "make dep-am".
4270         * Makefile.in: Regenerate
4271
4272 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
4273
4274         * ldcref.c (check_section_sym_xref): New function.
4275         (check_nocrossrefs): Call it.
4276         (check_nocrossref): Interate over h->refs here instead of..
4277         (check_refs): ..here.  Pass in the symbol name, section, and bfd
4278         rather than hash_entry pointers.
4279         (struct check_refs_info): Keep symbol name rather than hash entry.
4280         Remove "same".
4281         (check_reloc_refs): Tweak for above changes in check_refs_info.
4282         Only report references to section syms when symname is NULL to
4283         prevent duplicate messages for the same reloc.
4284
4285 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
4286
4287         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4288         available.  Do not print NULL trees.
4289         (exp_print_token): Print unknown tokens with values > 126 as
4290         decimal values not ASCII characters.
4291
4292         * ldlang.c (lang_leave_overlay): If a region is specified assign
4293         it to all sections inside the overlay unless they have been
4294         assigned to the own, non-default, memory region.
4295
4296         * README: Add header for consistency with other README files.
4297
4298 2001-07-14  H.J. Lu  <hjl@gnu.org>
4299
4300         * emultempl/elf32.em (output_prev_sec_find): Never return
4301         bfd_abs_section_ptr, bfd_com_section_ptr nor
4302         bfd_und_section_ptr.
4303
4304 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
4305
4306         * Makefile.am (em32relf.c): Change dependency from generic.em to
4307         elf32.em.
4308         * Makefile.in: Regenerate.
4309
4310 2001-07-14  matthew green  <mrg@eterna.com.au>
4311
4312         * configure.tgt (i386-*-netbsdelf*): New target.
4313         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4314
4315 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
4316
4317         * emultempl/elf32.em (output_prev_sec_find): New.
4318         (place_orphan): Use it.
4319
4320 2001-07-11  H.J. Lu  <hjl@gnu.org>
4321
4322         * ldmain.c (main): Fix typos in the last change.
4323
4324 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
4325
4326         * ldmain.c (main): Disallow -F and -f without -shared.
4327
4328 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
4329
4330         * emultempl/pe.em (after_open): Check for the output_bfd not
4331         having any coff_data structure allocated to it.
4332
4333 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
4334
4335         * emultempl/elf32.em: Do not assuming that contents of the buffer
4336         returned from basename function will remain unchanged accross other
4337         function calls.
4338
4339 2001-07-03  H.J. Lu  <hjl@gnu.org>
4340
4341         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4342         2001-07-03. It creates dynamic entries even for static binaries.
4343
4344 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
4345
4346         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4347         (DYNAMIC): Use it to reserve few dynamic entries for
4348         post-linking tools.
4349
4350 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
4351
4352         * emulparams/hppa64linux.sh: New file.
4353         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4354         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4355         (ehppa64linux.c): Add rule to make it.
4356         Run "make dep-am".
4357         * Makefile.in: Regenerate.
4358
4359 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
4360
4361         * ld.texinfo (Options, -r): Mention restrictions when using
4362         different object formats.
4363
4364 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
4365
4366         * ldlang.c (lang_check): Emit fatal error if relocatable link
4367         between different object flavours with relocations in input.
4368
4369 2001-06-19  H.J. Lu  <hjl@gnu.org>
4370
4371         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4372         (--version-script): Mention the language support.
4373
4374 2001-06-19  H.J. Lu <hjl@gnu.org>
4375
4376         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4377
4378 2001-06-18  H.J. Lu <hjl@gnu.org>
4379
4380         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4381         (diststuff): Add $(MANS).
4382         * Makefile.in: Regenerated.
4383
4384         * ld.1: Removed.
4385
4386 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
4387
4388         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4389         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4390         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4391         * ld.h (args_type): Remove member export_dynamic.  All users
4392         changed to use struct bfd_link_info member.
4393
4394         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4395         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4396         * Makefile.in: Regenerate.
4397
4398 2001-06-18  H.J. Lu  <hjl@gnu.org>
4399
4400         * ldlang.c (init_os): Add the newline to the einfo call.
4401         (lang_check): Likewise.
4402         (lang_do_version_exports_section): Likewise.
4403
4404 2001-06-15  H.J. Lu  <hjl@gnu.org>
4405
4406         * lexsup.c (parse_args); Save optind to report unrecognized
4407         option.
4408
4409 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
4410
4411         * ldlang.c (lang_check): Emit fatal error if relocatable link
4412         between different object flavours.
4413
4414         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4415         Set new link_info member export_dynamic.
4416         * ldmain.c (main): Initialize new link_info member export_dynamic.
4417
4418 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
4419
4420         * ldlang.c (walk_wild): Only call walk_wild_file if
4421         lookup_name returns something.
4422         (lookup_name): If load_symbols fails, return NULL.
4423         (load_symbols): Change to a boolean function.
4424         (open_input_bfds): If load_symbols fails then do not make the
4425         executable.
4426
4427 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
4428
4429         * ldlang.c (record_bfd_errors): Remove.
4430
4431         * emultempl/aix.em: Fix copyright dates.
4432
4433 2001-06-07  Andreas Jaeger  <aj@suse.de>
4434
4435         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4436         (TEXT_START_ADDR): Likewise.
4437
4438 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
4439
4440         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4441
4442 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4443
4444         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4445
4446 2001-05-31  H.J. Lu  <hjl@gnu.org>
4447
4448         * ldlang.c (open_input_bfds): Don't change the bfd error
4449         handler whilst loading symbols.
4450
4451 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
4452
4453         * configure.tgt: Remove i370-mvs architecture, it is not currently
4454         supported.
4455
4456 2001-05-25  H.J. Lu  <hjl@gnu.org>
4457
4458         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4459         like emulparams/aixppc.sh.
4460
4461 2001-05-25  H.J. Lu  <hjl@gnu.org>
4462
4463         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4464         setting of output_filename after bfd_scan_arch.
4465         * emultempl/pe.em: Likewise.
4466
4467 2001-05-25  H.J. Lu  <hjl@gnu.org>
4468
4469         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4470         like emulparams/aixppc.sh.
4471
4472         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4473         instead of ${srcdir}/emultempl/stringify.sed.
4474
4475 2001-05-25  Timothy Wall  <twall@oculustech.com>
4476
4477         * emulparams/elf64_aix.sh: Change settings to match IBM linker
4478         output.
4479
4480 2001-05-25  Alan Modra  <amodra@one.net.au>
4481
4482         * configure.host: Replace linuxoldld with linux*oldld.
4483         * configure.tgt: Likewise.
4484
4485 2001-05-24  H.J. Lu  <hjl@gnu.org>
4486
4487         * emultempl/stringify.sed: Removed again.
4488
4489 2001-05-24  H.J. Lu  <hjl@gnu.org>
4490
4491         * emultempl/aix.em (OUTPUT_ARCH): Defined.
4492         (gld${EMULATION_NAME}_before_parse): Initialize
4493         ldfile_output_architecture, ldfile_output_machine and
4494         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4495         * emultempl/beos.em: Likewise.
4496         * emultempl/elf32.em: Likewise.
4497         * emultempl/linux.em: Likewise.
4498         * emultempl/mipsecoff.em: Likewise.
4499         * emultempl/pe.em: Likewise.
4500         * emultempl/sunos.em: Likewise.
4501
4502 2001-05-24 Tom Rix <trix@redhat.com>
4503
4504         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4505         udate import file format.
4506         (change_symbol_mode) New, same
4507         (is_syscall) New, same
4508         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4509         * emulparams/aixppc64.sh : same
4510         * emulparams/aixrs6.sh : same
4511         * emulparams/ppcmacos.sh : same
4512         * emultempl/aix.em : use strtoull to parse options
4513         * Makefile.am : add eaixppc64 emulation for xcoff64
4514         * Makefile.in : same
4515         * configure.tgt : same
4516
4517         * scripttempl/aix.sc : default text section offset to 0x10000000
4518         default data section offset to 0x20000000
4519         add .sv3264 and .sv64 pseudo sections
4520         loader and debug sections use the currect section offset.
4521
4522         * emultempl/aix.em : Add xcoff64 support
4523         Add -binitfini support
4524         (gld${EMULATION_NAME}_before_parse) -binitfini
4525         (gld${EMULATION_NAME}_parse_args) same
4526         (gld${EMULATION_NAME}_before_allocation) format change for special
4527         sections
4528
4529         * emulparams/aixppc64.sh : New file for xcoff64 support
4530
4531 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
4532
4533         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4534         variable to avoid non-portable shell construct.
4535
4536 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4537
4538         * ldmain.c (get_emulation): Add -mips5 command line argument.
4539
4540 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
4541
4542         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4543         (ELF_INTERPRETER_NAME): Define it.
4544         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4545         it.
4546         * configure.tgt (targ_emul, targ_extra_emuls)
4547         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4548         as primary, elf_i386 as extra.
4549         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4550         (eelf_i386_ldso.c): New rule.
4551         * Makefile.in: Rebuilt.
4552
4553 2001-05-22  Nick Clifton  <nickc@redhat.com>
4554
4555         * lexsup.c (ld_options): Allow -I to be an alias for
4556         --dynamic-linker.  This is for Solaris compatability.
4557         * ld.texinfo: Document that -I can be used.
4558         * ld.1: Regenerate.
4559
4560 2001-05-16  Alan Modra  <amodra@one.net.au>
4561
4562         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4563         whether an input section is the first one assigned to an output
4564         section.
4565         Assorted formatting fixes.
4566
4567 2001-05-14  DJ Delorie  <dj@delorie.com>
4568
4569         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4570         * Makefile.in: Ditto.
4571
4572 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
4573
4574         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4575         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4576         output sections.
4577         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4578
4579 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
4580
4581         * ldlang.c (lang_process): Call bfd_merge_sections.
4582
4583 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4584
4585         * ldgram.y: Fix typo.
4586
4587 2001-05-03  H.J. Lu  <hjl@gnu.org>
4588
4589         * emultempl/elf32.em: Include "libiberty.h".
4590         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4591         basename of the bfd filename.
4592         (gld${EMULATION_NAME}_stat_needed): Likewise.
4593         (gld${EMULATION_NAME}_try_needed): Likewise.
4594         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4595
4596 2001-05-02  H.J. Lu  <hjl@gnu.org>
4597
4598         * emultempl/pe.em: Include <ctype.h>.
4599
4600 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
4601
4602         * emulparams/elf32openrisc.sh: New file.
4603
4604         * Makefile.am: Add OpenRISC target.
4605         * Makefile.in: Regenerated.
4606
4607         * configure.tgt: Add openrisc-*-* mapping.
4608
4609 2001-05-02  Nick Clifton  <nickc@redhat.com>
4610
4611         * emultempl/aix.em: Replace buystring with xstrdup.
4612         * emultempl/beos.em: Replace buystring with xstrdup.
4613
4614 2001-05-02  H.J. Lu  <hjl@gnu.org>
4615
4616         * ldfile.c: Include "libiberty.h".
4617         * ldlex.l: Likewise.
4618
4619         * ldmisc.c (buystring): Removed.
4620         * ldmisc.h: Likewise.
4621
4622         * ldfile.c: Replace buystring with xstrdup.
4623         * ldlang.c: Likewise.
4624         * ldlex.l: Likewise.
4625         * ldmain.c: Likewise.
4626         * ldmisc.c: Likewise.
4627         * lexsup.c: Likewise.
4628         * mpw-eppcmac.c: Likewise.
4629
4630 2001-04-30  Andreas Jaeger  <aj@suse.de>
4631
4632         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4633
4634 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
4635
4636         * ldlang.c (load_symbols): Give emulation a chance
4637         to process unrecognized file before fatal error is
4638         reported, not after.
4639
4640 2001-04-27  Sean McNeil <sean@mcneil.com>
4641
4642         * configure.tgt: Add arm-vxworks target.
4643         * scripttempl/armcoff.sc: Support .text or .data as a section name
4644         prefix.
4645         Define _etext.
4646
4647 2001-04-13  J.T. Conklin  <jtc@redback.com>
4648
4649         * ld.texinfo: Document --fatal-warnings.
4650         * ld.1: Regenerate.
4651
4652         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4653         warnings have been turned into errors.
4654         * lexsup.c (OPTION_WARN_FATAL): Define.
4655         (ld_options): Entry for --fatal-warnings.
4656         (parse_args): Handle OPTION_WARN_FATAL.
4657         * ld.h (ld_config_type): Add fatal_warnings field.
4658
4659 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
4660
4661         * ldmain.c (main): Default to discard_sec_merge.
4662         * lexsup.c (OPTION_DISCARD_NONE): Define.
4663         (ld_options): Add --discard-none.
4664         (parse_args): Handle OPTION_DISCARD_NONE.
4665         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4666         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4667         all its input sections match.
4668
4669 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
4670
4671         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4672         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4673         (eelf32ltsmip.c): New target.
4674         (eelf64btsmip.c): Likewise.
4675         (eelf64ltsmip.c): Likewise.
4676         * Makefile.in: Regenerated.
4677
4678         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4679         target.
4680         (mips*-*-linux-gnu*): Likewise.
4681
4682         * emulparams/elf32ltsmip.sh: New. Traditional little endian
4683         MIPS taget.
4684         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4685         target.
4686         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4687         endian target.
4688
4689 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
4690
4691         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4692         correct value of __Stext here.
4693         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4694         .startup section.
4695
4696         * emulparams/crislinux.sh: Remove FIXME.
4697
4698 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
4699
4700         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4701         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4702
4703 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
4704
4705         * configure.tgt (cris-*-*): Change default emulation to criself.
4706         (cris-*-*aout*): New rule.
4707
4708 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
4709
4710         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4711         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4712
4713 2001-03-26  Andreas Jaeger  <aj@suse.de>
4714
4715         * ld.texinfo (Overview): Fix syntax in texi code.
4716
4717 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4718
4719         * ld.texinfo: Put @c man indications to generate the ld man page.
4720         When generating man, define all the variables.  Define SEEALSO
4721         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
4722         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4723         (ld.1): Generate from ld.texinfo.
4724         * Makefile.in: Regenerate.
4725
4726 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
4727
4728         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4729         and '-fdata-sections'. Set the VMA of STABS sections to zero.
4730
4731 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
4732
4733         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4734         is an absolute path look only for this file and not along the path.
4735
4736 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
4737
4738         * emultempl/elf32.em (OPTION_GROUP): New macro.
4739         Add new option Bgroup to longopts.
4740         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4741         (gld*_list_options): Add -Bgroup and -z defs.
4742         * ld.1: Document -Bgroup and -z defs.
4743         * ld.texinfo: Likewise.
4744
4745 2001-03-07  Michael Meissner  <meissner@redhat.com>
4746
4747         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4748         with sections created by -fdata-sections.
4749         (.dynbss,.bss): Ditto.
4750
4751 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
4752
4753         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4754         after_allocation_default, not gld..._before_allocation.
4755
4756 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
4757
4758         * configure.in (BFD_VERSION): New.
4759         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4760         * configure: Regenerate.
4761         * Makefile.am: Run "make dep-am"
4762         * Makefile.in: Regenerate.
4763
4764 2001-02-26  Timothy Wall  <twall@cygnus.com>
4765
4766         * emulparams/elf64_aix.sh: Add additional read-only sections;
4767         uncomment lines which are now required.
4768
4769 2001-02-26  H.J. Lu  <hjl@gnu.org>
4770
4771         * ldlang.c (open_input_bfds): Set the bfd error handler so
4772         that problems can be caught whilst loading symbols.
4773         (record_bfd_errors): New function: Report BFD errors and mark
4774         the executable output as being invalid.
4775
4776 2001-02-22  Timothy Wall  <twall@cygnus.com>
4777
4778         * configure.host: Add configuration for ia64-*-aix*.
4779         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4780         Add dependencies for eelf64_aix.c.
4781         * Makefile.in: Regenerate.
4782         * configure.tgt: Add ia64-*-aix* mapping.
4783         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4784
4785 2001-02-20  H.J. Lu  <hjl@gnu.org>
4786
4787         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4788         false if we found the file.
4789
4790 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
4791
4792         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4793         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4794
4795 2001-02-18  lars brinkhoff  <lars@nocrew.org>
4796
4797         * Makefile.am: Add PDP-11 target.
4798         * configure.tgt: Likewise.
4799         * emulparams/pdp11.sh: New file.
4800
4801 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
4802
4803         * configure.host: Add a generic FreeBSD configuration entry such that
4804         all [modern] FreeBSD systems on all platforms will look the same.
4805
4806 2001-02-14  H.J. Lu  <hjl@gnu.org>
4807
4808         * configure.tgt: Remove mention of earmelf_linux26.
4809
4810 2001-02-13  Richard Henderson  <rth@redhat.com>
4811
4812         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4813
4814 2001-02-13  H.J. Lu  <hjl@gnu.org>
4815
4816         * ldexp.h (node_type): Add etree_provided.
4817         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4818         type to etree_provided if defined by PROVIDE. Allow updating
4819         for etree_provided.
4820         (exp_print_tree): Handle etree_provided.
4821         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4822         etree_provided.
4823
4824 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
4825
4826         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4827         .IA_64.unwind.* pattern to unwind table section and
4828         .IA_64.unwind_info* pattern to unwind info section.
4829
4830 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4831
4832         * Makefile.am: Add linux target for S/390.
4833         * Makefile.in: Likewise.
4834         * configure.host: Likewise.
4835         * configure.tgt: Likewise.
4836         * emulparams/elf64_s390.sh: New file.
4837         * emulparams/elf_s390.sh: New file.
4838
4839 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
4840
4841         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4842         targ_extra_libpath.
4843         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4844
4845 2001-02-06  Philip Blundell  <philb@gnu.org>
4846
4847         * Makefile.am: Remove mention of earmelf_linux26.
4848         * Makefile.in: Regenerate.
4849
4850 2001-02-04  Philip Blundell  <philb@gnu.org>
4851
4852         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4853         * emulparams/armelf_linux26.sh: Delete.
4854         * configure.tgt: Remove mention of armelf_linux26 emulation.
4855
4856 2001-02-01  Nick Clifton  <nickc@redhat.com>
4857
4858         * ld.1: Replace occurances of -oformat with --oformat.
4859
4860 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
4861
4862         * ldlang.c (lang_leave_overlay): Don't set lma_region when
4863         load_base is specified.
4864
4865 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
4866
4867         * emultempl/elf32.em: Correct spelling in comments and listed
4868         options.
4869
4870 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
4871
4872         * ldlang.c (lang_leave_overlay): Only set lma_region from the
4873         default for the first section of a group of overlay sections.
4874
4875 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
4876
4877         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4878         * Makefile.in: Regenerate.
4879         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4880         Check for null tool_dir.
4881
4882 2001-01-16  Jim Wilson  <wilson@redhat.com>
4883
4884         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4885         and IA_64.unwind.info.
4886
4887 2001-01-16  H.J. Lu  <hjl@gnu.org>
4888
4889         * ldlang.c (lang_check): Merge the private data only if the
4890         input file has contents.
4891
4892 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
4893
4894         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4895
4896         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4897         enabling search for libmilli.  On a relocatable link, make .text
4898         sections unique.
4899         (LDEMUL_AFTER_PARSE): Define.
4900         (hppaelf_finish): Correct spelling of relocatable in comments.
4901
4902         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4903         rummage through the script for sections on the unique list.
4904         Correct length of strncmp for ".note".
4905         (gld${EMULATION_NAME}_check_needed): Rearrange function.
4906
4907         * ldlang.c (unique_section_list): New var.
4908         (unique_section_p): New function.
4909         (walk_wild_section): Don't match sections on unique_section_list.
4910         (lang_add_unique): New function.
4911         Correct spelling of relocatable in comments.
4912
4913         * ldlang.h (struct unique_sections): Declare.
4914         (unique_section_list): Declare.
4915         (unique_section_p): Declare.
4916         (lang_add_unique): Declare.
4917
4918         * lexsup.c (ld_options): Allow --unique to take an optional arg.
4919         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4920
4921         * ld.texinfo (--unique): Update.
4922
4923 2001-01-13  Nick Clifton  <nickc@redhat.com>
4924
4925         * lexsup.c (parse_args): Remove spurious white space.
4926
4927 2001-01-12  Nick Clifton  <nickc@redhat.com>
4928
4929         * lexsup.c (parse_args): Update copyright date.
4930
4931 2001-01-12  Philip Blundell  <pb@futuretv.com>
4932
4933         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4934
4935 2001-01-10  Kazu Hirata  <kazu@hxi.com>
4936
4937         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
4938         * scripttempl/h8300h.sc: Fix formatting.
4939         * scripttempl/h8300s.sc: Likewise.
4940         * scripttempl/h8500.sc: Likewise.
4941         * scripttempl/h8500b.sc: Likewise.
4942         * scripttempl/h8500c.sc: Likewise.
4943         * scripttempl/h8500m.sc: Likewise.
4944         * scripttempl/h8500s.sc: Likewise.
4945
4946 2000-01-07  David O'Brien  <obrien@BSDi.com>
4947
4948         * emultempl/elf32.em: Only perform Linux ld hints processing when
4949         targeting Linux.
4950
4951 2001-01-07  Philip Blundell  <philb@gnu.org>
4952
4953         * ld.texinfo (Bug Reporting): Update email address for reports.
4954
4955 2000-12-31  Nick Clifton  <nickc@redhat.com>
4956
4957         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4958         options by checking for a return value of '?' not -1.
4959
4960 2000-12-28  Nick Clifton  <nickc@redhat.com>
4961
4962         * lexsup.c (struct ld_option): Add new enum value:
4963         EXACTLY_TWO_DASHES.
4964         (ld_options[]): Change -omagic, -output and -oformat options
4965         to be EXACTLY_TWO_DASHES.
4966         (OUTPUT_COUNT): Use ARRAY_SIZE.
4967         (parse_args): Change parameter 'argc' to unsigned.
4968         Place EXACTLY_TWO_DASHES options into new really_longopts
4969         array.
4970         If getopt_long_only fails, try calling getopt_long using the
4971         really_longopts array.
4972         (help): Print a double dash for both EXACTLY_TWO_DASHES and
4973         TWO_DASHES options.
4974
4975         * ldlex.h: Fix prototype of parse_args.
4976
4977         * ld.texinfo: Document that long options starting with 'o'
4978         must be preceeded by two dashes.  Change example of a single
4979         dashed long option from -oformat to -trace-symbol.
4980
4981 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4982
4983         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4984         (longopts[]): New --no-default-excludes option.
4985         (gld_${EMULATION_NAME}_list_options): Document.
4986         (gld_${EMULATION_NAME}_parse_args): Handle.
4987
4988 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4989
4990         * ldlang.c (new_stat): Revert the last beautification with "innocent"
4991         whitespace, it breaks the K&R C preprocessor.
4992
4993 2000-12-11  DJ Delorie  <dj@redhat.com>
4994
4995         * ld.texinfo: Add notes about --whole-archive and gcc.
4996
4997 2000-11-18  Fred Fish  <fnf@be.com>
4998
4999         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
5000         (ld_options): Entry for --allow-shlib-undefined.
5001         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
5002         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
5003         to false.
5004         * ld.texinfo: Document new command line switch.
5005
5006 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
5007
5008         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
5009         .fixup is actually read/write.
5010         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
5011         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5012         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5013
5014 2000-12-11  Jan Hubicka  <jh@suse.cz>
5015
5016         * NEWS: Add note about x86_64 architecture.
5017
5018 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
5019
5020         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
5021         Set DWARF2 sections to a VMA of zero.
5022
5023 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
5024
5025         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
5026         New targets.
5027         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5028         (sparc*-*-rtems*): Switched from a.out to ELF.
5029
5030 2000-11-30  Jan Hubicka  <jh@suse.cz>
5031
5032         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
5033         (eelf_x86_64.c): New.
5034         * Makefile.in: Regenerate.
5035         * configure.tgt: Add support for x86_64-*-linux-gnu*.
5036         * emulparams/elf_x86_64.sh: New.
5037
5038 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
5039
5040         * emulparams/crislinux.sh (ENTRY): Change back to _start.
5041         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
5042
5043         * scripttempl/crisaout.sc: Change all RELOCATING not related to
5044         merging non-a.out sections into CONSTRUCTING.
5045
5046 2000-11-28  Nick Clifton  <nickc@redhat.com>
5047
5048         * ld.1 (COPYING): Mention that the GNU Free Documentation
5049         License is present in the sources, but not the output, and
5050         also available from the GNU website.
5051         (GNU Free Documentation License): Comment out this section.
5052
5053 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
5054
5055         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
5056         does not use them.
5057
5058 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
5059
5060         * ld.1: Remove old date so it does not give the impression the manpage
5061         is way out of date.
5062
5063 2000-11-24  Nick Clifton  <nickc@redhat.com>
5064
5065         * configure.tgt (xscale-coff): Add target.
5066         (xscale-elf): Add target.
5067
5068 2000-11-24  Fred Fish  <fnf@be.com>
5069
5070         * ldmain.c (main): Remove redundant init of config.make_executable
5071         to true.
5072
5073 2000-11-15  Richard Henderson  <rth@redhat.com>
5074
5075         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
5076
5077 2000-11-14  Kazu Hirata  <kazu@hxi.com>
5078
5079         * scripttempl/h8300.sc: Fix formatting.
5080         * scripttempl/h8300h.sc: Likewise.
5081         * scripttempl/h8300s.sc: Likewise.
5082
5083 2000-11-14  Denis Chertykov  <denisc@overta.ru>
5084
5085         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
5086
5087 2000-11-09  Philip Blundell  <pb@futuretv.com>
5088
5089         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
5090         around orphan sections whose names can be represented in C.
5091
5092 2000-11-07  Jim Wilson  <wilson@redhat.com>
5093
5094         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
5095         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
5096
5097 2000-11-06  Nick Clifton  <nickc@redhat.com>
5098
5099         * ld.texinfo: Add GNU Free Documentation License.
5100         * ldint.texinfo: Add GNU Free Documentation License.
5101         * ld.1: Add GNU Free Documentation License.
5102
5103 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
5104
5105         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
5106         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
5107
5108         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
5109         Move 2000-11-02 Makefile.in changes to this file.
5110         * Makefile.in: Regenerate.
5111
5112 2000-11-03  Nick Clifton  <nickc@redhat.com>
5113
5114         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
5115         constructors and destructors.
5116         * scripttempl/h8300h.sc: Ditto.
5117         * scripttempl/h8300s.sc: Ditto.
5118         * scripttempl/h8500.sc: Ditto.
5119         * scripttempl/h8500b.sc: Ditto.
5120         * scripttempl/h8500c.sc: Ditto.
5121         * scripttempl/h8500m.sc: Ditto.
5122         * scripttempl/h8500s.sc: Ditto.
5123         * scripttempl/v850.sc: Ditto.
5124         * scripttempl/w65.sc: Ditto.
5125         * scripttempl/z8000.sc: Ditto.
5126
5127 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
5128
5129         * Makefile.in (e_i386_chaos.c): New rule.
5130         (ALL_EMULATIONS): Added e_i386_chaos.o.
5131         * emulparams/elf_i386_chaos.sh: New file.
5132         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5133
5134 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
5135
5136         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5137         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5138         Fix sed invocation, so that it coped with '/' in Solaris 64bit
5139         library path suffix.
5140         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5141
5142 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
5143
5144         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5145         for consecutive sections.
5146
5147 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
5148
5149         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5150         options.
5151         * ld.texinfo: Added notes about this new option.
5152
5153 2000-10-16  Nick Clifton  <nickc@redhat.com>
5154
5155         * emultempl/pe.em (_after_open): Add tests of return values from
5156         bfd functions.  Emit appropriate error messages if necessary.
5157
5158 2000-10-13  Nick Clifton  <nickc@redhat.com>
5159
5160         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5161         local variables - they are not used, but leave in the call to
5162         bfd_canonicalize_symtab.
5163         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5164         pe_dll_search_prefix.
5165
5166 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
5167
5168         * emultempl/pe.em (pe_dll_search_prefix): New variable,
5169         (longopts): New --dll-search-prefix option.
5170         (gld_${EMULATION_NAME}_list_options): Document.
5171         (gld_${EMULATION_NAME}_parse_args): Handle.
5172         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5173         dynamically, search for a dll named '<prefix><basename>.dll'
5174         in preference to 'lib<basename>.dll' if --dll-search-prefix
5175         is specified.
5176
5177 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
5178
5179         * ldlang.c (section_already_linked): Set kept_section instead of
5180         sec->comdat->sec.
5181
5182 2000-10-10  Kazu Hirata  <kazu@hxi.com>
5183
5184         * deffile.h: Fix formatting.
5185         * lexsup.c: Likewise.
5186         * mri.c: Likewise.
5187
5188 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
5189
5190         * pe-dll.c (make_one): Do not generate code thunk for DATA
5191         exports.
5192         (process_def_file): deduce DATA flag for auto-export sumbols.
5193
5194 2000-10-09  Kazu Hirata  <kazu@hxi.com>
5195
5196         * ld.h: Fix formatting.
5197         * ldcref.c: Likewise.
5198         * ldctor.h: Likewise.
5199         * ldemul.c: Likewise.
5200         * ldemul.h: Likewise.
5201         * ldexp.c: Likewise.
5202         * ldexp.h: Likewise.
5203         * ldfile.c: Likewise.
5204         * ldfile.h: Likewise.
5205         * ldlang.c: Likewise.
5206         * ldlang.h: Likewise.
5207         * ldmain.c: Likewise.
5208         * pe-dll.c: Likewise.
5209
5210         * pe-dll.c: Revert some formatting fixes.
5211
5212 2000-10-08  Kazu Hirata  <kazu@hxi.com>
5213
5214         * pe-dll.c: Fix formatting.
5215
5216 2000-10-05  Kazu Hirata  <kazu@hxi.com>
5217
5218         * ldlang.c: Fix formatting.
5219
5220 2000-10-03  DJ Delorie  <dj@redhat.com>
5221
5222         * pe-dll.c (fill_edata): initialize entire block
5223         (make_one): fill in correct section.
5224
5225 2000-10-03  Kazu Hirata  <kazu@hxi.com>
5226
5227         * ldexp.c: Fix formatting.
5228
5229 2000-10-02  DJ Delorie  <dj@redhat.com>
5230
5231         * emultempl/pe.em (gld_*_after_open): detect case where there two
5232         import libraries for same dll; rename one to ensure proper link
5233         order.
5234
5235         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5236         typo
5237         (generate_edata): fix typo
5238
5239 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
5240
5241         * scripttempl/crisaout.sc (ENTRY): Now __start.
5242         (.text): Add default setting for __start.
5243         Remove CONSTRUCTORS handling.
5244         (/DISCARD/): Add .gnu.warning.*.
5245         * emulparams/crislinux.sh (ENTRY): Now __start.
5246         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5247         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5248         (ENTRY): Now __start.
5249         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5250         (EXECUTABLE_SYMBOLS): Add default setting for __start.
5251
5252 2000-09-29  Kazu Hirata  <kazu@hxi.com>
5253
5254         * deffile.h: Fix formatting.
5255         * ld.h: Likewise.
5256         * ldcref.c: Likewise.
5257         * ldctor.c: Likewise.
5258         * ldctor.h: Likewise.
5259         * ldemul.c: Likewise.
5260         * ldemul.h: Likewise.
5261         * ldexp.c: Likewise.
5262         * ldexp.h: Likewise.
5263         * ldfile.c: Likewise.
5264         * ldfile.h: Likewise.
5265         * ldlang.c: Likewise.
5266         * ldlang.h: Likewise.
5267         * lexsup.c: Likewise.
5268         * mri.c: Likewise.
5269         * pe-dll.c: Likewise.
5270
5271 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
5272
5273         * pe-dll.c (process_def_file): Uninitialized data wasn't
5274         exported with --export-all-symbols switch.
5275
5276 2000-09-28  DJ Delorie  <dj@redhat.com>
5277
5278         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5279         noname work properly.
5280
5281 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
5282
5283         * ld.texinfo (HPPA ELF32): New section.
5284
5285         * emultempl/hppaelf.em (group_size): New.
5286         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5287         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5288         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
5289         options to prevent abbreviations matching.
5290         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
5291         (PARSE_AND_LIST_ARGS_CASES): Handle it.
5292
5293 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5294
5295         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5296         on the m68*-*-elf target.  Make it support COFF input objects.
5297
5298 2000-09-21  Kazu Hirata  <kazu@hxi.com>
5299
5300         * ldmain.c: Fix formatting.
5301         * ldmisc.c: Likewise.
5302         * ldver.c: Likewise.
5303         * ldwrite.c: Likewise.
5304
5305 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
5306
5307         * ldwrite.c (clone_section): Silence gcc warnings.
5308
5309 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
5310
5311         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5312         out of memory failure.
5313
5314         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5315         (clone_section): Handle out of memory failures.  Rename var to
5316         avoid c++ reserved word.
5317
5318 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
5319
5320         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5321         stub_name param to stub_sec_name.
5322         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5323
5324 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5325
5326         * emultempl/m68kelf.em: New file.
5327         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5328         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5329         * Makefile.in: Regenerate.
5330
5331 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
5332
5333         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5334         only as needed.
5335
5336 2000-09-13  Nick Clifton  <nickc@redhat.com>
5337
5338         * ldmain.c (multiple_definition): Disable relaxation if
5339         multiple symbol definitions are encountered - otherwise the
5340         linker could abort with an assertion failure.
5341
5342 2000-09-10  Nick Clifton  <nickc@redhat.com>
5343
5344         * mri.c: Fix formatting.
5345
5346 2000-09-07  H.J. Lu  <hjl@gnu.org>
5347
5348         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5349         * configure: Rebuild.
5350
5351 2000-09-07  H.J. Lu  <hjl@gnu.org>
5352
5353         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5354         * Makefile.in: Rebuild.
5355
5356 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
5357
5358         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5359         broken list handling.  Create __start_SECNAME and __stop_SECNAME
5360         when no place-holder.  Add some comments.  Test both SEC_CODE and
5361         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5362         Handle case where no output section statement created.
5363
5364 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
5365
5366         * configure.tgt (sh-*-linux*): Added.
5367         * Makefile.am: Added eshelf_linux and eshlelf_linux.
5368         * Makefile.in: Rebuilt.
5369         * emulparams/shelf_linux.sh: New file.
5370         * emulparams/shlelf_linux.sh: New file.
5371
5372 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
5373
5374         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5375         try shuffling sections when the orphan happens to be the place
5376         holder.  Keep count of unique section names generated so we speed
5377         the search for a new name.
5378
5379 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
5380
5381         * configure: Rebuilt with new libtool.m4.
5382
5383 2000-09-05  Nick Clifton  <nickc@redhat.com>
5384
5385         * Makefile.in: Regenerate.
5386         * aclocal.m4: Regenerate.
5387         * configure: Regenerate.
5388         * config.in: Regenerate.
5389         * po/ld.pot: Regenerate.
5390
5391         * ldint.texinfo: Remove CVS revision marker - it foils local
5392         comparisons.
5393
5394         * emultempl/ticoff.em: Remove extraneous comma.
5395
5396 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
5397
5398         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5399         to stub section flags.
5400         (hppa_for_each_input_file_wrapper): New.
5401         (hppa_lang_for_each_input_file): New.
5402         (lang_for_each_input_file): Define to call above.
5403         (multi_subspace): New.
5404         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5405         (PARSE_AND_LIST_PROLOGUE): Define.
5406         (PARSE_AND_LIST_LONGOPTS): Define.
5407         (PARSE_AND_LIST_OPTIONS): Define.
5408         (PARSE_AND_LIST_ARGS_CASES): Define.
5409         (hppaelf_finish): Call elf32_hppa_set_gp.
5410         (hppaelf_set_output_arch): Remove.
5411         (LDEMUL_SET_OUTPUT_ARCH): Remove.
5412
5413         * emulparams/hppalinux.sh (ELFSIZE): Define.
5414         (MACHINE): Define.
5415         (OTHER_READONLY_SECTIONS): Define.
5416         (DATA_PLT): Define.
5417         (GENERATE_SHLIB_SCRIPT): Define.
5418
5419         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
5420         to const throughout.  Change `void *' to `PTR' throughout.
5421         (lang_memory_default): Function is local to file, add `static'.
5422
5423         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5424         (ehppalinux.c): Likewise.
5425         (earmelf.c): Likewise.
5426         (earmelf_linux.c): Likewise.
5427         (earmelf_linux26.c): Likewise.
5428         * Makefile.in: Regenerate.
5429
5430         * ld.h (ld_config_type): Add unique_orphan_sections.
5431         * lexsup.c (OPTION_UNIQUE): Define.
5432         (ld_options): Add "--unique".
5433         (parse_args): Handle it.
5434         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5435         search for an existing output section if unique_orphan_sections is
5436         set.  Make use of bfd_get_unique_section_name rather than
5437         duplicating code here.
5438         * ld.texinfo: Describe --unique.
5439
5440         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5441         optional arg to split-by-file.
5442         (parse_args): Handle them.
5443         * ld.texinfo: Update description of these options.
5444         * ldwrite.c (clone_section): Pass in the section name.  Replace
5445         local code with bfd_get_unique_section_name.
5446         (split_sections): Tidy code and comments.  Use a list traversal
5447         more appropriate to the list construction.  Handle cooked section
5448         sizes.  Split when split_by_reloc reached rather than exceeded.
5449         Track section size and split when split_by_file reached.  Fix
5450         link_order_tail (even though it's not used).
5451         (ldwrite): Modify condition for calling split_sections to suit
5452         changed split_by_reloc and split_by_file.
5453         * ldmain.c (main): Init config.split_by_reloc and
5454         config.split_by_file to -1.
5455         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5456         Change split_by_file to bfd_size_type.
5457
5458 2000-09-02  Nick Clifton  <nickc@redhat.com>
5459
5460         * configure.in: Increase version number to 2.10.91.
5461         * NEWS: Mention new ability to support removal of duplicate DWARF2
5462         debug information.
5463         * configure: Regenerate.
5464         * aclocal.m4: Regenerate.
5465         * config.in: Regenerate.
5466
5467 2000-09-02  Daniel Berlin <dberlin@redhat.com>
5468
5469         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5470         sections.
5471         * scripttempl/elf32avr.sc: Ditto.
5472         * scripttempl/elfd10v.sc: Ditto.
5473         * scripttempl/elfd30v.sc: Ditto.
5474         * scripttempl/elfi370.sc: Ditto.
5475         * scripttempl/elfm68hc11.sc: Ditto.
5476         * scripttempl/elfm68hc12.sc: Ditto.
5477         * scripttempl/elfi386beos.sc: Ditto.
5478         * scripttempl/v850.sc: Ditto.
5479
5480 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
5481
5482         * acinclude.m4: Include libtool and gettext macros from the
5483         top level.
5484         * aclocal.m4, configure: Rebuilt.
5485
5486 2000-08-25  Nick Clifton  <nickc@redhat.com>
5487
5488         * ldlang.c (open_output): When choosing the target for a
5489         particular endianness, do nothing if the target is not
5490         supported.
5491
5492 2000-08-25  H.J. Lu  <hjl@gnu.org>
5493
5494         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5495         check -rpath nor LD_RUN_PATH for cross link.
5496         * ld.texinfo: Document the change.
5497
5498 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
5499
5500         * NEWS: Mention support for CRIS.
5501
5502 2000-08-23  H.J. Lu  <hjl@gnu.org>
5503
5504         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5505         the current runpath list from bfd_elf_get_runpath_list ()
5506         before search.
5507
5508 2000-08-22  H.J. Lu  <hjl@gnu.org>
5509
5510         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5511         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5512         LD_LIBRARY_PATH for native linker. Display the needed DSO if
5513         trace_file_tries is non-zero.
5514         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5515         if trace_file_tries is non-zero.
5516
5517         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5518         * NEWS: Mention it.
5519
5520 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
5521
5522         * NEWS: Mention i860 support.
5523
5524 2000-08-14  Andreas Schwab  <schwab@suse.de>
5525
5526         * scripttempl/elf.sc: Fix last change to use correct comment
5527         syntax.
5528
5529 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
5530
5531         * scripttempl/elf.sc: Add a comment giving the correspondence
5532         between sections, per-datum sections, and linkonce sections.  Make
5533         the comment true even for .bss, .sdata, .sdata2, .sbss, and
5534         .sbss2.
5535
5536 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
5537
5538         * emulparams/elf32_i860.sh: New file.
5539         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5540         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5541         (eelf32_i860.c): New rule.
5542         * Makefile.in: Regenerate.
5543
5544 2000-08-10  Nick Clifton  <nickc@cygnus.com>
5545
5546         * emulparams/mipspe.sh (ENTRY): Add definition.
5547
5548 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
5549
5550         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5551         in error message.
5552
5553 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5554
5555         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5556         the final size of .bss section.
5557         * scripttempl/elfm68hc12.sc: Likewise.
5558
5559 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
5560
5561         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5562         gld${EMULATION_NAME}_parse_args for consistency.  Combine
5563         lastoptind and prevoptind vars, and keep track of last optind.
5564         (gld_${EMULATION_NAME}_list_options): Rename to
5565         gld${EMULATION_NAME}_list_options.
5566
5567 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
5568
5569         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5570         (i586-sco-sysv5uw7.1.0).
5571
5572 2000-07-27  H.J. Lu  <hjl@gnu.org>
5573
5574         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5575         (PARSE_AND_LIST_PROLOGUE): New.
5576         (PARSE_AND_LIST_LONGOPTS): Likewise.
5577         (PARSE_AND_LIST_OPTIONS): Likewise.
5578         (PARSE_AND_LIST_ARGS_CASES): Likewise.
5579         (PARSE_AND_LIST_EPILOGUE): Likewise.
5580
5581 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
5582
5583         * emultempl/armelf.em: Elide functions common to elf32.em,
5584         ie. most of the file.
5585         (arm_elf_after_open): New.  Do arm specific things then call
5586         gld${EMULATION_NAME}_after_open.
5587         (arm_elf_before_allocation): New.  Call
5588         gld${EMULATION_NAME}_before_allocation then do arm specifics.
5589         (PARSE_AND_LIST_PROLOGUE): Define.
5590         (PARSE_AND_LIST_SHORTOPTS): Define.
5591         (PARSE_AND_LIST_LONGOPTS): Define.
5592         (PARSE_AND_LIST_OPTIONS): Define.
5593         (PARSE_AND_LIST_ARGS_CASES): Define.
5594         (LDEMUL_AFTER_OPEN): Define.
5595         (LDEMUL_BEFORE_ALLOCATION): Define.
5596         (LDEMUL_BEFORE_PARSE): Define.
5597         (LDEMUL_FINISH): Define.
5598
5599         * emultempl/hppaelf.em: Similarly zap most of this file.
5600         (hppaelf_add_stub_section): Prototype.
5601         (hppaelf_layaout_sections_again): Prototype.
5602         (hook_in_stub): Prototype.
5603         (LDEMUL_SET_OUTPUT_ARCH): Define.
5604         (LDEMUL_FINISH): Define.
5605         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5606
5607         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5608         (EXTRA_EM_FILE): New.
5609         * emulparams/armelf_linux.sh: Likewise.
5610         * emulparams/armelf_linux26.sh: Likewise.
5611         * emulparams/hppalinux.sh: Likewise.
5612         * emulparams/hppaelf.sh: Likewise.
5613         (NOP): Define.
5614
5615         * emultempl/elf32.em: Fix formatting.
5616         (EXTRA_EM_FILE): Source it.
5617         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5618         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5619         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5620         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5621         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5622         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5623         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5624         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5625         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
5626         allow functions in this file to be overridden.
5627         (PARSE_AND_LIST_SHORTOPTS): Handle it.
5628
5629         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5630
5631         * emultempl/elf32.em: Reorganize file.
5632
5633 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
5634
5635         * emulparams/elf64alpha.sh: Implement "-taso" emulation
5636         specific option to fit 64-bit executable in the lower
5637         31-bit address range.  This is done by changing start
5638         address of .interp (the very first section of executable)
5639         and then setting EF_ALPHA_32BIT elf header flag.
5640
5641 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5642
5643         * emultempl/m68kcoff.em: New file.
5644         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5645         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5646         generic.em.
5647         * Makefile.in: Regenerate.
5648
5649 2000-07-20  H.J. Lu  <hjl@gnu.org>
5650
5651         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5652         and "disable-new-dtags" to stop getopt from treating -d/-e as
5653         abbreviations for these options.
5654
5655 2000-07-20  H.J. Lu  <hjl@gnu.org>
5656
5657         * ld.texinfo: Add documentation for --disable-new-dtags and
5658         --enable-new-dtags.
5659
5660         * ldmain.c (main): Initialize link_info.new_dtags to false.
5661
5662         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5663         --disable-new-dtags and --enable-new-dtags.
5664         (gld_${EMULATION_NAME}_list_options): Likewise.
5665
5666 2000-07-05  Kenneth Block  <krblock@computer.org>
5667
5668         * lexsup.c: Add optional style to demangle switch
5669         * ld.texinfo: Document optional style to demangle switch.
5670
5671 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
5672
5673         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5674         ecrislinux.o.
5675         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5676         Regenerate dependencies.
5677         * Makefile.in: Rebuild.
5678         * configure.tgt (cris-*-*): New target.
5679         * emulparams/crisaout.sh, emulparams/criself.sh,
5680         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5681         * po/POTFILES.in, po/ld.pot: Regenerate.
5682
5683 2000-07-20  H.J. Lu  <hjl@gnu.org>
5684
5685         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5686         Print out ignored -z options.
5687
5688 2000-07-19  H.J. Lu  <hjl@gnu.org>
5689
5690         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5691         (PARSE_AND_LIST_PROLOGUE): New.
5692         (PARSE_AND_LIST_LONGOPTS): Likewise.
5693         (PARSE_AND_LIST_OPTIONS): Likewise.
5694         (PARSE_AND_LIST_ARGS_CASES): Likewise.
5695
5696         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5697
5698         * lexsup.c (ld_options): Comment out 'z'.
5699         (parse_args): Likewise.
5700
5701         * emultempl/elf32.em: Include "elf/common.h".
5702         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5703         options.
5704         (gld_${EMULATION_NAME}_list_options): Likewise.
5705
5706         * ld.texinfo: Add documentation for the recognized -z options.
5707
5708 2000-07-19  H.J. Lu  <hjl@gnu.org>
5709
5710         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5711         bfd_elf_set_dt_needed_soname ().
5712
5713 2000-07-18  DJ Delorie  <dj@cygnus.com>
5714
5715         * pe-dll.c (pe_dll_id_target): check object target name also
5716
5717 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
5718
5719         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5720         ${INIT_END} if relocating.
5721         (.fini): Likewise ${FINI_START} and ${FINI_END}.
5722
5723 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
5724
5725         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5726         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5727         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5728         errors introduced by the old dynamic lib search order.
5729
5730 2000-07-17  DJ Delorie  <dj@cygnus.com>
5731
5732         * pe-dll.c (process_def_file): auto-export data items also
5733         (pe_process_import_defs): also see if _imp_ form needed
5734
5735 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
5736
5737         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5738         for dll import libraries
5739
5740 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
5741
5742         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5743         gcc 2.95.2 and later.
5744
5745 2000-07-11  Kazu Hirata  <kazu@hxi.com>
5746
5747         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5748         message.
5749
5750 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
5751
5752         * ldemul.h (struct lang_input_statement_struct): Remove forward
5753         declaration.
5754         (struct search_dirs): Likewise.
5755         * ldfile.h (struct lang_input_statement_struct): Likewise.
5756         Protect file from multiple inclusion.
5757         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5758         declaration from macro to file scope.
5759
5760         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5761         * ldgram.y: Likewise here.
5762         * ldlang.c: And here.
5763         * ldmain.c: And here.
5764         * mpw-elfmips.c: And here.
5765         * mpw-eppcmac.c: And here.
5766         * emultempl/aix.em: And here.
5767         * emultempl/armcoff.em: And here.
5768         * emultempl/armelf.em: And here.
5769         * emultempl/armelf_oabi.em: And here.
5770         * emultempl/beos.em: And here.
5771         * emultempl/elf32.em: And here.
5772         * emultempl/hppaelf.em: And here.
5773         * emultempl/linux.em: And here.
5774         * emultempl/lnk960.em: And here.
5775         * emultempl/pe.em: And here.
5776         * emultempl/sunos.em: And here.
5777         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5778         * mpw-idtmips.c: Ditto.
5779         * emultempl/generic.em: Ditto.
5780         * emultempl/gld960.em: Ditto.
5781         * emultempl/gld960c.em: Ditto.
5782         * emultempl/mipsecoff.em: Ditto.
5783         * emultempl/ticoff.em: Ditto.
5784         * emultempl/vanilla.em: Ditto.
5785
5786         * pe-dll.c: Include ldfile.h
5787         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5788
5789         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5790         arguments to bfd_elf32_size_dynamic_sections call.
5791         (gldelf32ebmip_place_orphan): Add missing arguments to
5792         lang_leave_output_section_statement call.
5793
5794 2000-07-10  H.J. Lu  <hjl@gnu.org>
5795
5796         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5797         DLL_SUPPORT.
5798         (strhash): Likewise.
5799         (compute_dll_image_base): Likewise.
5800         (pe_undef_found_sym): Likewise.
5801         (pe_undef_cdecl_match): Likewise.
5802         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5803         argument "arch" with ATTRIBUTE_UNUSED.
5804
5805 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
5806
5807         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5808
5809         From  Ryan Bradetich  <rbradetich@uswest.net>
5810         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5811
5812 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
5813
5814         Changes to create multiple linker stubs, positioned immediately
5815         before the section where they are required.
5816         * emultempl/hppaelf.em: Include elf32-hppa.h.
5817         (stub_sec, file_chain): Delete.
5818         (hppaelf_create_output_section_statements): Don't make a stub
5819         section here.
5820         (hook_stub_info): New struct.
5821         (hook_in_stub): New function.
5822         (hppaelf_add_stub_section): New function.
5823         (hppaelf_finish): Do nothing for relocateable links.  Modify the
5824         call to elf32_hppa_size_stubs.  Move code for updating section
5825         layout from here...
5826         (hppaelf_layaout_sections_again): ..to here, a new function.
5827
5828         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5829         broken list handling.  Pass in a pointer to the list.
5830         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5831         for above changes.
5832         (hppaelf_before_parse): Prototype.
5833         (hppaelf_set_output_arch): Prototype.
5834         (hppaelf_create_output_section_statements): Prototype.
5835         (hppaelf_delete_padding_statements): Prototype.
5836         (hppaelf_finish): Prototype.
5837
5838         Merge from elf32.em
5839         * emultempl/hppaelf.em: Include ctype.h.
5840         (struct orphan_save): New.
5841         (gld${EMULATION_NAME}_place_orphan): New.
5842         (output_rel_find): New.
5843         (hppaelf_get_script): Update from elf32.em.
5844         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5845         Change emulation_name field to "${EMULATION_NAME}".  Add
5846         gld${EMULATION_NAME}_place_orphan.
5847
5848         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
5849         ehppalinux.o, sort it.  Regenerate dependencies.
5850         (ehppalinux.c): Depend on hppaelf.em
5851         * Makefile.in: Regenerate.
5852
5853         * configure.tgt: targ_emul=hppalinux for hppa*linux
5854
5855         * emulparams/hppalinux.sh: New.
5856         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5857
5858 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
5859
5860         * lexsup.c (parse_args): Copy section name.
5861
5862 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
5863
5864         * emultempl/pe.em: institute the following search order for
5865         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5866         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
5867         static lib (libfoo.a) if none of the above are found.
5868
5869 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
5870
5871         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5872         (longopts): New --{enable,disable}-auto-image-base options.
5873         (gld_${EMULATION_NAME}_list_options): Document.
5874         (gld_${EMULATION_NAME}_parse): Handle.
5875         (strhash): New static function.
5876         (compute_dll_image_base): New static function.
5877         (gld_${EMULATION_NAME}_set_symbols): Use.
5878
5879 2000-07-05  DJ Delorie  <dj@redhat.com>
5880
5881         * MAINTAINERS: new
5882
5883 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
5884
5885         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5886         * emulparams/elf32btsmip.sh: New file.
5887         * Makefile.am: Add traditional mips target.
5888         * Makefile.in: Rebuild.
5889
5890 2000-07-01  H.J. Lu  <hjl@gnu.org>
5891
5892         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5893         automake to use YLWRAP.
5894         * Makefile.in: Rebuild.
5895
5896 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
5897
5898         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
5899         (CLEANFILES): Add DEPA.
5900         * Makefile.in: Regenerate.
5901
5902 2000-06-30  Timothy Wall  <twall@ppc>
5903
5904         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5905         the page in the upper octet of the address.
5906
5907 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
5908
5909         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5910
5911 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
5912
5913         * NEWS: arm-elf does --gc-sections too.
5914
5915 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
5916
5917         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5918         find one.
5919         * Makefile.in: Regenerate.
5920
5921 2000-06-21  H.J. Lu  <hjl@gnu.org>
5922
5923         * Makefile.am: Rebuild dependency.
5924         * Makefile.in: Rebuild.
5925
5926 2000-06-20  H.J. Lu  <hjl@gnu.org>
5927
5928         * Makefile.am: Rebuild dependency.
5929         * Makefile.in: Rebuild.
5930
5931 2000-06-20  Timothy Wall  <twall@cygnus.com>
5932
5933         * scripttempl/tic54xcoff.sc: New.
5934         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5935         * gen-doc.texi: Add flag for TI COFF.
5936         * ld.texinfo: Add documentation for TI COFF handling switches.
5937         * emultempl/ticoff.em: New. TI COFF handling.
5938         * configure.tgt: Add tic54x target.
5939         * Makefile.am: Add tic54x target.
5940         * Makefile.in: Ditto.
5941
5942 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
5943
5944         * ldmain.c (set_scripts_dir): Correct pointer comparison when
5945         checking for backslashes.
5946
5947 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
5948
5949         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5950
5951 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
5952
5953         * NEWS: Update list of targets supporting --gc-sections.
5954
5955         * scripttempl/elf.sc: KEEP .eh_frame contents.
5956         * scripttempl/elfd30v.sc: Same here.
5957
5958 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
5959
5960         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5961         and m68hc11 (elf).
5962         * Makefile.in: Rebuild.
5963         * configure.tgt: Recognize m68hc12 and m68hc11.
5964         * scripttempl/elfm68hc12.sc: New file.
5965         * emulparams/m68hc12elfb: New emulation.
5966         * emulparams/m68hc12elf: New emulation.
5967         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
5968         (includes a memory.x script to define the ROM and RAM banks).
5969         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5970         New configuration files for support of Motorola 68hc11
5971
5972 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
5973
5974         * ldmain.c (main): Only change SEC_READONLY for final link.
5975
5976 2000-06-13  H.J. Lu  <hjl@gnu.org>
5977
5978         * configure: Regenerate.
5979
5980 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
5981
5982         * configure.in (VERSION): Update to show this is the CVS mainline.
5983
5984 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5985
5986         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5987         input objects to be ECOFF.
5988         (check_sections): einfo takes %B, not %P, to print a BFD name.
5989
5990 2000-06-05  Michael Matz <matz@ifh.de>
5991
5992         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5993         version scripts.
5994
5995         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5996
5997 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
5998
5999         * emulparams/avr1200.sh (STACK): Define as 0.
6000         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
6001         * emulparams/avr4433.sh (STACK): Likewise.
6002         * emulparams/avr44x4.sh (STACK): Likewise.
6003         * emulparams/avr85xx.sh (STACK): Likewise.
6004         * emulparams/avrmega103.sh (STACK): Likewise.
6005         * emulparams/avrmega161.sh (STACK): Likewise.
6006         * emulparams/avrmega603.sh (STACK): Likewise.
6007         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
6008         (__stack): Define from ${STACK} for main().
6009
6010 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
6011
6012         * Makefile.am: Update dependencies with "make dep-am"
6013         * Makefile.in: Regenerate.
6014
6015 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
6016
6017         * ldmain.c: Include filenames.h.
6018         (set_scripts_dir): Support backslashes in program name.
6019
6020 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
6021
6022         * ldmain.c (main): When deciding if ".text" section should be
6023         read-only, don't forget to reset SEC_READONLY because it
6024         could be already set.
6025
6026 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
6027
6028         * ld.1: Add documentation for new command line option:
6029         --section-start <sectionname>=<sectionorg>
6030         This is a generic version of -Ttext etc. which accepts
6031         any section name as a parameter instead of just text/data/
6032         bss.
6033         * ld.texinfo: More docs.
6034         * NEWS: More docs.
6035         * lexsup.c: (parse_args): Recognize new command line option.
6036         (ld_options): Add new option.
6037
6038 2000-05-18  H.J. Lu  <hjl@gnu.org>
6039
6040         * lexsup.c (parse_args): `i' == `r', not `q'.
6041
6042 2000-05-18  Jeffrey A Law  (law@cygnus.com)
6043
6044         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
6045
6046 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
6047               Rick Gorton          <gorton@scrugs.lkg.dec.com>
6048
6049         Add support for '-q' == '--emit-relocs' switch.
6050         * ldmain.c (main): Default to false.
6051         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
6052         * NEWS: Describe the emitrelocations switch.
6053         * ld.texinfo: Describe the emitrelocations switch.
6054
6055 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
6056
6057         * emultempl/pe.em (_open_dynamic_archive): New function: Search
6058         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
6059         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
6060         link options.
6061
6062 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
6063
6064         * lexsup.c (parse_args): Update the year in the copyright notice.
6065
6066 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
6067
6068         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
6069         Replace defines with those from intl/libgettext.h to quieten gcc
6070         warnings.
6071
6072 2000-05-10  H.J. Lu  <hjl@gnu.org>
6073
6074         * ldlang.c (open_input_bfds): Don't load the same file within
6075         a group again if the whole archive has been loaded already.
6076
6077 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
6078
6079         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
6080         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
6081         strtoul.
6082
6083 2000-05-01  Jim Wilson  <wilson@cygnus.com>
6084
6085         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
6086
6087         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6088         host "ia64-*-linux-gnu*".
6089
6090 2000-04-29  Andreas Jaeger  <aj@suse.de>
6091
6092         * ld.h: Correctly check GCC version.
6093
6094 2000-04-25  Jeffrey A Law  (law@cygnus.com)
6095
6096         * Makefile.am: Add PA64 support.  Add missing dependencies for
6097         PA32 elf support.
6098         * Makefile.in: Rebuilt.
6099         * configure.tgt: Add PA64 support (currently disabled).
6100
6101 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
6102
6103         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
6104         (output_rel_find): New function.
6105         (hold_section, hold_use): Delete.
6106         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6107         hold_interp): Make local to place_orphan.
6108         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
6109         rather than place_section to find possible previous use of orphan.
6110         Similarly find the place-holder output sections.  Use returned
6111         value from lang_enter_output_section_statement rather than calling
6112         lang_output_section_statement_lookup.
6113         * emultempl/armelf.em: Same here.
6114         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
6115
6116         * ldlang.c (lang_enter_output_section_statement): Return output
6117         section statement.
6118         * ldlang.h (lang_enter_output_section_statement): Change
6119         declaration too.
6120
6121         * ldlang.h (lang_output_section_statement): Export it.
6122         * ldlang.c (lang_output_section_statement): Ditto.
6123
6124 2000-04-24  Nick Clifton  <nickc@cygnus.com>
6125
6126         * ld.texinfo (Output Section Data): Add note that section data
6127         commands cannot appear outside of section directives.
6128
6129 2000-04-2  Matthew Green  <mrg@cygnus.com>
6130
6131         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6132
6133 2000-04-21  Richard Henderson  <rth@cygnus.com>
6134             David Mosberger  <davidm@hpl.hp.com>
6135
6136         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6137         (eelf64_ia64.c): New rule.
6138         * Makefile.in: Rebuild.
6139         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6140         * emulparams/elf64_ia64.sh: New file.
6141
6142 2000-04-21  Richard Henderson  <rth@cygnus.com>
6143
6144         * scripttempl/elfd30v.sc: Place .gcc_except_table.
6145
6146 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
6147
6148         * dep-in.sed: Match space at start of file name, not at end.
6149
6150 2000-04-18  H.J. Lu  <hjl@gnu.org>
6151
6152         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6153         lang_leave_output_section_statement () after calling
6154         lang_enter_output_section_statement ().
6155         * emultempl/armelf.em: Likewise.
6156
6157 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
6158
6159         * emultempl/elf32.em (struct orphan_save): Add section field.
6160         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6161         better order, and place first orphan section as we did before the
6162         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
6163         Don't call make_bfd_section here, let wild_doit do the job for us.
6164         Don't build a statement list when we'll only throw it away.
6165         * emultempl/armelf.em: Ditto.
6166         * emultempl/pe.em: Similarly.
6167
6168 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
6169
6170         * scripttempl/elfppc.sc: Remove.
6171         * emulparams/elf32ppc.sh: Use elf.sc.
6172         * emulparams/elf32lppc.sh: Use elf.sc.
6173         * emulparams/elf32ppclinux.sh: Use elf.sc.
6174         * emulparams/elf32ppcsim.sh: New file.
6175         * emulparams/elf32lppcsim.sh: New file.
6176         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
6177         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6178         * Makefile.in: Regenerate.
6179         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6180
6181 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
6182
6183         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6184         ~SEC_ALLOC sections too.  Init start address of debug sections.
6185         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6186         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6187         Also set all relocateable section start addresses.
6188
6189 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
6190
6191         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6192         Add new BSS_PLT variable for when .plt need not be contained in
6193         the file.  Move _etext so that it is also after .fini, and provide
6194         both etext and _etext with a leading underscore.  Mark the start
6195         and end of .sbss.
6196
6197 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
6198
6199         * emultempl/elf32.em (struct orphan_save): New.
6200         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6201         hold_interp): Make them struct orphan_save.
6202         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6203         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6204         the end of the relevant section list.  Also add associated section
6205         statements to the end of any previous orphan statements.
6206         * emultempl/armelf.em: Similarly.
6207         * emultempl/pe.em: Similarly.
6208
6209 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
6210
6211         * ld.texinfo (Simple Example): Remove extraneous paragraph.
6212
6213 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
6214
6215         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
6216         --enable-build-warnings option.
6217         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6218         * Makefile.in, configure: Re-generate.
6219
6220 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
6221
6222         * po/ld.pot: Regenerate.
6223
6224         * lexsup.c (help): Restore translated part of bug string.
6225
6226         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6227         (DEP): Quote when passing vars to sub-make.  Add warning message
6228         to end.
6229         (DEP1): Rewrite for "gcc -MM".
6230         (CLEANFILES): Add DEP2.
6231         Update dependencies.
6232         * Makefile.in: Regenerate.
6233
6234 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
6235
6236         * ld.h: #include "bin-bugs.h"
6237         * lexsup.c (help): Use REPORT_BUGS_TO.
6238
6239 2000-03-27  Denis Chertykov  <denisc@overta.ru>
6240
6241         * configure.tgt (avr-*-*): New target support.
6242         * Makefile.am: Likewise.
6243         * scripttempl/elf32avr.sc: New script file.
6244         * emulparams/avr1200.sh: New file.
6245         * emulparams/avr23xx.sh: New file.
6246         * emulparams/avr4433.sh New file.
6247         * emulparams/avr44x4.sh New file.
6248         * emulparams/avr85xx.sh New file.
6249         * emulparams/avrmega103.sh New file.
6250         * emulparams/avrmega161.sh New file.
6251         * emulparams/avrmega603.sh New file.
6252         * Makefile.in: Regenerate.
6253
6254 2000-03-09  Andreas Jaeger  <aj@suse.de>
6255
6256         * Makefile.am (check-DEJAGNU): Also unset LANG.
6257         * Makefile.in: Rebuild.
6258
6259 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
6260
6261         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6262         archive.
6263
6264 2000-03-02  H.J. Lu  <hjl@gnu.org>
6265
6266         * emulparams/elf32mcore.sh: Include "getopt.h".
6267
6268 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
6269
6270         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6271
6272 2000-03-01  H.J. Lu  <hjl@gnu.org>
6273
6274         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6275         * emulparams/shpe.sh: Likewise.
6276
6277 2000-03-01  Nick Clifton  <nickc@cygnus.com>
6278
6279         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6280         to unused parameters.
6281
6282         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6283         functions only used by DLL code.
6284         (_place_orphan): Initialise 'dollar'.
6285
6286 2000-03-01  H.J. Lu  <hjl@gnu.org>
6287
6288         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6289         indicate if the undefined symbol is a fatal error or not.
6290         Don't delete the output file if "fatal" is false.
6291
6292 2000-02-29  H.J. Lu  <hjl@gnu.org>
6293
6294         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6295         Set LC_COLLATE and LC_ALL to null and export them. It is for
6296         sort which expects the C locale.
6297         Add $(LIBS) to all $(HOSTING_LIBS).
6298         * Makefile.in: Rebuild.
6299
6300 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
6301
6302         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6303         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6304         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6305         (ld_emulation_xfer_struct): Add missing NULL initialiser for
6306         find_potential_libraries.
6307
6308 2000-02-28  Jim Blandy  <jimb@redhat.com>
6309
6310         * ldgram.y (exclude_name_list): Don't require a comma to separate
6311         list entries; the lexer considers commas to be valid part of a
6312         filename, so in something like `foo, bar' the comma is considered
6313         part of the first filename, `foo,'.
6314         * ld.texinfo: Update section on EXCLUDE_FILE lists.
6315
6316 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
6317
6318         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6319         host "i[3456]86-*-freebsdelf*".
6320
6321 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
6322
6323         * scripttempl/i386go32.sc: Move misplaced semicolons.
6324
6325 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
6326
6327         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6328         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6329         (eelf64hppa.c, ehppaelf.c): Remove targets.
6330         * Makefile.in: Rebuild.
6331
6332 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6333
6334         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6335         GNU/Linux/sparc, but keep the default as 32.
6336
6337         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
6338         it default if sparcv9 or sparc64.
6339
6340 2000-02-24  Nick Clifton  <nickc@cygnus.com>
6341
6342         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6343         * Makefile.in: Regenerate.
6344         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6345
6346         * ldemul.h (ld_emulation_xfer_struct): Add new field:
6347         find_potential_libraries.
6348         * ldemul.c (ldemul_find_potential_libraries): New function.
6349
6350         * ldfile.c (ldfile_open_file_search): Allow function to be
6351         exported.
6352         (ldfile_open_file): Call ldemul_find_potential_libraries.
6353         * ldfile.h: Add prototype for ldfile_open_file_search.
6354
6355         * pe-dll.c: Add support for ARM, MIPS and SH targets.
6356
6357         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
6358         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
6359
6360         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6361         (gld_X_find_potential_libraries): New function.  Search for
6362         libraries called "*.lib".
6363
6364         * scripttempl/pe.sc: Add .pdata section.
6365
6366 2000-02-23  Richard Henderson  <rth@cygnus.com>
6367
6368         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6369         Add and use memory regions.
6370
6371 2000-02-23  Linas Vepstas (linas@linas.org)
6372
6373         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6374
6375         * Makefile.am: Add support for Linux/IBM 370.
6376         * configure.tgt: Likewise.
6377
6378         * Makefile.in: Regenerate.
6379
6380 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
6381
6382         * ldlang.c (print_input_section, print_data_statement,
6383         print_reloc_statement, print_padding_statement, insert_pad,
6384         size_input_section, lang_check_section_addresses,
6385         lang_size_sections, lang_do_assignments, lang_set_startof,
6386         lang_one_common): Change `opb' to unsigned.
6387         (lang_do_assignments): Also change `size' to unsigned.
6388
6389 2000-02-16  Richard Henderson  <rth@cygnus.com>
6390
6391         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6392
6393 2000-02-16  Timothy Wall  <twall@cygnus.com>
6394
6395         * mri.c (mri_draw_tree): Add default LMA region argument to call
6396         to lang_leave_output_section_statement.
6397         * ldlang.h: Update prototypes with LMA region arguments.
6398         * ldlang.c (lang_size_sections): Encapsulate region bounds
6399         checking in os_check_region call.
6400         (os_check_region): New function.
6401         (lang_output_section_statement_lookup): Initialize lma_region.
6402         (lang_leave_output_section_statement): Add LMA region argument.
6403         (lang_leave_overlay): Ditto.
6404         * ldgram.y: Handle LMA region syntax.
6405         * ld.texinfo (Output Section Description): Describe LMA region usage.
6406         * emultempl/armelf.em (gld$place_orphan): Add default value for
6407         lma region in call to lang_leave_output_section_statement.
6408         * emultempl/elf32.em (gld$place_orphan): Add default value for
6409         lma region in call to lang_leave_output_section_statement.
6410         * emultempl/pe.em (gld$place_orphan): Add default value for
6411         lma region in call to lang_leave_output_section_statement.
6412
6413
6414 2000-02-04  Timothy Wall  <twall@redhat.com>
6415
6416         * ldlang.c (lang_check_section_addresses): Use bytes instead of
6417         octets when calculating section end addresses.
6418
6419 2000-02-04  Timothy Wall  <twall@redhat.com>
6420
6421         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6422
6423 2000-02-03  Timothy Wall <twall@redhat.com>
6424
6425         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6426         octet count.
6427         * ldlang.c (print_input_section, print_data_statement,
6428         print_reloc_statement, print_padding_statement): Print target
6429         address values and section sizes as bytes, not octets.
6430         (insert_pad) Calculate padding size in octets, and adjust "dot"
6431         by bytes.
6432         (size_input_section) Always adjust "dot" by bytes, not octets.
6433         (lang_check_section_addresses, lang_do_assignments) Adjust
6434         "dot" by bytes, not octets.  Use the larger of the directive size
6435         or octets_per_byte for the number of octets actually allocated in
6436         the output section.
6437         (lang_set_startof) Make sure STARTOF returns a target address.
6438         (lang_one_common) Record size changes in octets.
6439         (lang_abs_symbol_at_end_of) Section end symbol's value is
6440         recorded in target bytes.
6441         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6442         to be clear about behavior when an octet is smaller than one byte.
6443
6444 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
6445
6446         * ldcref.c (output_cref): Don't pass message strings to printf
6447         as format arg.
6448         Update copyright.
6449
6450         * ldmisc.c (vfinfo): Same here.
6451         Update copyright.
6452
6453 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
6454
6455         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6456         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6457         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6458         Add missing NULL initialisers, and comments.
6459
6460 2000-01-21  Nick Clifton  <nickc@cygnus.com>
6461
6462         * ldlang.c (lang_size_sections): Fix typo in comment.
6463
6464 2000-01-18  H.J. Lu  <hjl@gnu.org>
6465
6466         * ldlang.c (lang_size_sections): Also update the current
6467         address of a region if the SEC_NEVER_LOAD bit is not set.
6468
6469 2000-01-10  Philip Blundell  <pb@futuretv.com>
6470
6471         * configure.tgt (arm*-*-conix*): New target.
6472
6473 2000-01-07  Nick Clifton  <nickc@cygnus.com>
6474
6475         * ld.texinfo (Options): Remind users to preceed linker command
6476         line switches with -Wl, (or whatever is appropriate) if it is
6477         being invoked by a comnpiler driver program.
6478         Fix description of the behaviour of the -n command line switch.
6479
6480 2000-01-05  Catherine Moore  <clm@cygnus.com>
6481
6482         * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6483         (name_list): New.
6484         * ld.texinfo (EXCLUDE_FILE): Update documentation.
6485         * ldgram.y (wildcard_spec): Support a list of excluded_files.
6486         (exclude_name_list): New.
6487         ldlang.c (walk_wild_section): Support list of excluded files.
6488         (print_wild_statement): Likewise.
6489         (lang_add_wild): Likewise.
6490         * ldlang.h (lang_wild_statement_type): Likewise.
6491         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6492
6493 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
6494
6495         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6496         (process_def_file): Use.
6497         (pe_dll_compat_implib): New variable.
6498         (make_one): Use.
6499
6500         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6501         pe_dll_compat_implib.
6502
6503         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6504         compat-implib options.
6505         (gld_${EMULATION_NAME}_list_options): List new options.
6506         (gld_${EMULATION_NAME}_parse_args): Handle.
6507
6508         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6509         dll.
6510
6511         * deffilep.y (opt_name): Allow "." in name.
6512
6513 For older changes see ChangeLog-9899
6514 \f
6515 Local Variables:
6516 mode: change-log
6517 left-margin: 8
6518 fill-column: 74
6519 version-control: never
6520 End: