* ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
[platform/upstream/binutils.git] / ld / ChangeLog
1 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
2
3         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
4         they have OUTPUT_FORMAT not matching actual output format.
5         * ldlang.c (lang_get_output_target): New function.
6         (open_output): Use it.
7         * ldlang.h (lang_get_output_target): New prototype.
8
9 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
10
11         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
12         when orphan is .rel, .rela when orphan is .rela.
13         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
14         first.  Remove outsecname var.
15
16 2002-10-09  Richard Shann <richard.shann@superh.com>
17             Stephen Clarke <stephen.clarke@superh.com>
18
19         * Makefile.am: Add eshelf32_linux.o and
20         eshlelf32_linux.o, new emulations for sh64 Linux.
21         * Makefile.in: Regenerate.
22         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
23         * emulparams/shelf32_linux.sh: New file.
24         * emulparams/shlelf32_linux.sh: New file.
25         
26 2002-10-08  H.J. Lu <hjl@gnu.org>
27
28         * ldlang.c (lang_file_exist): Removed.
29         (new_afile): Revert the last change.
30         * ldlang.h (lang_file_exist): Removed.
31         * lexsup.c (parse_args): Revert the last change.
32
33 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
34
35         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
36         auto-import symbols.
37         (make_one): Create _nm_<symbol> for data only.
38
39 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
40
41         * ldlang.c (lang_file_exist): New function.
42         (new_afile): Abort if the filename to be added matches the linker 
43         output filename.
44         * ldlang.h: Add prototype for lang_file_exist.
45         * lexsup.c (parse_args): Abort if the output filename matches
46         one of the input filenames.
47
48 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
49
50         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
51
52 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
53
54         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
55         * scripttempl/elfm68hc11.sc: Likewise.
56         * scripttempl/elfm68hc12.sc: Likewise.
57
58         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
59         reloc sections just before .rel.plt/.rela.plt.
60         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
61         Only put loadable reloc sections in hold_rel.
62
63 2002-09-29  H.J. Lu <hjl@gnu.org>
64
65         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
66
67 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
68
69         From "Anita Kulkarni" <AnitaK@kpit.com>
70         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
71         sections.
72
73 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
74
75         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
76         TARGET_PAGE_SIZE.
77         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
78         SEGMENT_SIZE alignment.
79         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
80         (SEGMENT_SIZE): Define.
81
82         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
83         (fold_binary): Correct abs - non-abs case.
84         (fold_trinary): New.  Split out from exp_fold_tree.
85
86 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
87
88         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
89         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
90         for start of .data, instead align up to 256M boundary.
91         * scripttempl/aix.sc: Likewise.
92
93 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
94
95         * scripttempl/i386go32.sc: Handle bss unique sections.
96
97 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
98
99         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
100
101 2002-09-17  Stan Cox  <scox@redhat.com>
102
103         * emulparams/elf32bmipn32-defs.sh: New file.
104         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
105         * emulparams/elf32btsmipn32.sh: Likewise.
106         * emulparams/elf64bmip.sh: Likewise.
107         * emulparams/elf64btsmip.sh: Likewise.
108
109 2002-09-16  Bruno Haible  <bruno@clisp.org>
110
111         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
112         elf32-i386-freebsd.
113         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
114         elf64-alpha-freebsd.
115
116 2002-09-11  Nick Clifton  <nickc@redhat.com>
117
118         * NEWS: New TI port supports both C4x and C3x series of DSPs.
119
120         * po/tr.po: Updated Turkish translation.
121
122 2002-09-06  Jeffrey A Law  (law@redhat.com)
123
124         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
125
126 2002-09-02  Nick Clifton  <nickc@redhat.com>
127
128         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
129         __ep.
130         * emulparams/v850.sh (TEMPLATE_NAME): Define.
131
132 2002-08-30  Nick Clifton  <nickc@redhat.com>
133
134         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
135         used.  Change INSN to start at 0x01000000 and extend for
136         256K (ignoring holes).  Start the STACK on a word aligned
137         boundary.
138         (.rodata): Start it at the READONLY_START_ADDR.
139
140 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
141
142         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
143
144 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
145
146         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
147         added makefile targets for this file.
148         * Makefile.in: Regenerate.
149         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
150         * NEWS: Mention new port.
151
152 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
153
154         * emulparams/tic3xcoff.sh: New file.
155         * emulparams/tic4xcoff.sh: New file.
156         * scripttempl/tic3xcoff.sc: New file.
157         * scripttempl/tic4xcoff.sc: New file.
158
159 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
160
161         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
162         strtoul and strtoull with bfd_scan_vma.
163         (gld${EMULATION_NAME}_read_file): Likewise.
164
165 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
166
167         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
168
169 2002-08-27  Egor Duda  <deo@logos-m.ru>
170
171         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
172         Add symbols for application to access them.
173
174 2002-08-27  Nick Clifton  <nickc@redhat.com>
175
176         * emultempl/armelf.em:  Revert this patch, it is not needed.
177         
178         2002-08-22  Adam Nemet  <anemet@lnxw.com>
179
180 2002-08-20 Dan Kegel <dank@kegel.com>
181         
182         * configure.in: added --with-lib-path argument to ld's configure
183         to set LIB_PATH.
184         * ld/NEWS: Document new switch.
185         * ld/README: Mention new switch.
186         * configure: Regenerate.
187         * Makefile.in: Regenerate.
188         
189         Based on this patch:
190         2001-04-25  Christopher Faylor <cgf@cygnus.com>
191
192         * Makefile.in (LIB_PATH): Make configurable.
193         (GENSCRIPTS): Set LIB_PATH in environment.
194         * configure.in: Substitute LIB_PATH.
195
196 2002-08-22  Adam Nemet  <anemet@lnxw.com>
197
198         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
199         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
200         depending on the type of the function.
201         (arm_elf_convert_thumb_symbol_to_address): New function.
202
203 2002-08-22  Graeme Peterson  <gp@qnx.com>
204
205         * Makefile.am: Add esh{l}elf_nto.o files.
206         * Makefile.in: Regenerate.
207         * configure.tgt: Add support for sh-**-nto* targets.
208         * emulparams/shelf_nto.sh: New file.
209         * emulparams/shlelf_nto.sh: New file.
210
211 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
212
213         * ldlang.c (offsetof): Define if not defined.
214
215 2002-08-14  H.J. Lu <hjl@gnu.org>
216
217         * configure.tgt: Always enable 64bit emulations for 32bit
218         Linux/mips.
219
220 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
221
222         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
223         (MAXPAGESIZE): Set to 1.
224
225         * ld.h (ALIGN_N): Delete.
226         * ldexp.h (align_n): Declare.
227         * ldexp.c (align_n): New function.
228         (fold_binary): Use align_n instead of ALIGN_N.
229         (exp_fold_tree): Likewise.
230         * ldlang.c (lang_size_sections_1): Likewise.
231         (lang_one_common): Likewise.
232         * ld.texinfo (ALIGN): Remove power of 2 restriction.
233
234 2002-07-31  Graeme Peterson  <gp@qnx.com>
235
236         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
237         * Makefile.am: Add eelf32{l}ppcnto.o files.
238         * Makefile.in: Regenerate.
239         * emulparams/elf32lppcnto.sh: New file.
240         * emulparams/elf32ppcnto.sh: New file.
241
242 2002-08-07  H.J. Lu <hjl@gnu.org>
243
244         * ld.texinfo: Document --no-undefined-version.
245
246         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
247         `script.' fields to 0.
248
249         * ldmain.c (main): Initialize the allow_undefined_version to
250         true.
251
252         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
253         (ld_options): Add --no-undefined-version.
254         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
255
256 2002-08-07  Nick Clifton  <nickc@redhat.com>
257
258         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
259         an interworking bfd if there are input bfds. (107501)
260
261 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
262
263         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
264         2002-05-10 change.
265
266 2002-08-01  Nick Clifton  <nickc@redhat.com>
267
268         * emulparams/armelf.sh: Revert previous delta.
269         * scripttempl/elf.sc: Revert previous delta.
270
271 2002-07-31  H.J. Lu <hjl@gnu.org>
272
273         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
274         --enable-64-bit-bfd.
275
276 2002-07-31  H.J. Lu <hjl@gnu.org>
277
278         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
279         64bit BFD is selected.
280
281 2002-07-31  H.J. Lu <hjl@gnu.org>
282
283         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
284         if 64bit BFD is selected.
285
286 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
287
288         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
289         link_info.common_skip_ar_aymbols.
290         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
291
292         * ldmain.c (main): Initialize new field
293         link_info.common_skip_ar_aymbols.
294
295 2002-07-31  Adam Nemet  <anemet@lnxw.com>
296
297         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
298         to .plt.thumb.
299         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
300         used.
301
302 2002-07-31  Nick Clifton  <nickc@redhat.com>
303
304         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
305         of the PDP-11 and 2.11BSD a.out support.
306
307 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
308
309         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
310         for n32 ABI support.
311         * Makefile.in: Regenerate.
312         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
313         n32 ABI emulations for these 64 bit targets.
314         * emulparams/elf32bmipn32.sh: Expand comment.
315         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
316         n32 ABI.
317         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
318
319 2002-07-30  Graeme Peterson  <gp@qnx.com>
320
321         * configure.tgt: Add support for arm-*-nto target.
322         * Makefile.am: Add earmnto.o file.
323         * Makefile.in: Regenerate.
324         * NEWS: Mention port of ARM support to QNX.
325         * emulparams/armnto.sh: New file.
326
327 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
328
329         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
330         for relocatable link.
331         (lang_size_sections_1): Don't make .tbss zero size for relocatable
332         link.
333
334 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
335
336         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
337         (STACK_ADDR): New.
338
339 2002-07-25  Nick Clifton  <nickc@redhat.com>
340
341         * po/sv.po: Updated Swedish translation.
342         * po/es.po: Updated Spanish translation.
343         * po/fr.po: Updated French translation.
344
345 2002-07-24  Nick Clifton  <nickc@redhat.com>
346
347         * po/sv.po: Updated Swedish translation.
348         * po/es.po: Updated Spanish translation.
349
350 2002-07-23  Nick Clifton  <nickc@redhat.com>
351
352         * po/fr.po: Updated French translation.
353
354 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
355
356         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
357         bomb on /DISCARD/ input section.
358         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
359         * emultempl/mmo.em (mmo_place_orphan): Likewise.
360
361 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
362
363         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
364         output section.
365
366 2002-07-16  Denis Chertykov  <denisc@overta.ru>
367             Nick Clifton  <nickc@redhat.com>
368             Frank Ch. Eigler  <fche@redhat.com>
369             John Healy  <jhealy@redhat.com>
370
371         * configure.tgt: Add support for ip2k-elf.
372         * Makefile.am: Add support for ip2k-elf.
373         * Makefile.in: Regenerate.
374         * emulparams/elf32ip2k.sh: New file.
375         * scripttempl/ip2k.sc: New file
376         * NEWS: Mention support for new port.
377
378 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
379
380         * NEWS: Add 'Changes in 2.13'.
381
382 2002-07-14  H.J. Lu <hjl@gnu.org>
383
384         * ld.texinfo: Document a .symver takes precedence over a
385         version script.
386
387 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
388
389         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
390         (COMMONPAGESIZE): Define.
391
392 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
393
394         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
395
396 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
397
398         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
399         powerpc-*-openbsd* and sparc64-*-openbsd*.
400         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
401         * Makefile.in: Regenerate.
402         * emulparams/hppaobsd.sh: New file.
403
404 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
405
406         * ldlang.c (print_wild_statement): Fix output formatting.
407
408 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
409
410         * ldlang.c: (strip_excluded_output_sections): New function.
411         (lang_process): Call it.
412         (lang_size_sections_1): Revert 2002-06-10 change.
413
414 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
415
416         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
417         Run "make dep-am".
418         * Makefile.in: Regenerate.
419
420 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
421
422         * ldfile.c (ldfile_try_open_bfd): Formatting.
423
424         * ldmisc.c (demangle): Move so that it doesn't intrude between
425         vfinfo comment and body.  Add comment.
426
427 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
428
429         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
430
431 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
432
433         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
434         * ldlang.c (entry_sym): Likewise.
435         (ldlang_undef_chain_list_type): Likewise.
436         (lang_finish): Adjust references to entry_symbol.
437         (lang_add_entry): Likewise.
438         (lang_gc_sections): Use link_info.gc_sym_list.
439         (lang_process): Set link_info.gc_sym_list.
440         * ldlex.l: Include bfdlink.h.
441         * ldmain.c (main): Init link_info.gc_sym_list.
442         * emultempl/aix.em: Adjust references to entry_symbol.
443         * emultempl/armcoff.em: Likewise.
444         * emultempl/armelf.em: Likewise.
445         * emultempl/pe.em: Likewise.
446         * emultempl/ppc64elf.em (ppc_after_open): New function.
447         (LDEMUL_AFTER_OPEN): Define.
448         * emulparams/elf64ppc.sh: KEEP .opd sections.
449
450 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
451
452         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
453         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
454         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
455         (EEPROM_START_ADDR): Define.
456         (EEPROM_MEMORY): Define.
457         * emulparams/m68hc12elf.sh: Likewise.
458         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
459         section to put soft registers in .page0.
460         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
461
462 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
463
464         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
465         section.  Add ${RELOCATING-0}.
466
467 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
468
469         * emulparams/shelf.sh (STACK_ADDR): Don't define.
470         (OTHER_SECTIONS): Define.
471         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
472         (OTHER_SECTIONS): Undef.
473
474 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
475
476         * ldmisc.c (demangle): Restore dots stripped from sym name.
477
478 2002-06-25  H.J. Lu <hjl@gnu.org>
479
480         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
481         * Makefile.in: Regenerated.
482
483 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
484
485         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
486         the size of attached object files, to allow make the object files
487         available via FTP or HTTP and to mention that the mail will be
488         sent to a mailing list.
489
490 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
491
492         * ld/configure.host (romp): Drop support.
493
494 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
495
496         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
497         section flags for SEC_DATA, rather than for SEC_CODE being unset.
498
499 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
500
501         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
502         format specifier used to print BFD name.
503
504 2002-06-18  Dave Brolley  <brolley@redhat.com>
505
506         From Catherine Moore, Michael Meissner, Jim Blandy:
507         * emulparams/elf32frv.sh: New file.
508         * configure.tgt: Support frv-*-*.
509         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
510         (eelf32frv.c): New target.
511
512 2002-06-17  Tom Rix  <trix@redhat.com>
513
514         * emultempl/elf32.em: gld*_get_script:  Check for
515         GENERATE_COMBRELOC_SCRIPT.
516         * scripttempl/elfd10v.sc : Fix STACK and INSN.
517         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
518
519 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
520
521         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
522
523 2002-06-12  H.J. Lu <hjl@gnu.org>
524
525         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
526         false if xvec doesn't match.
527
528 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
529
530         * ldlang.c (lang_size_sections_1): Skip removed output sections.
531
532 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
533
534         * ldexp.c: Replace CONST with const.
535         * ldfile.c: Likewise.
536         * ldfile.h: Likewise.
537         * ldlex.l: Likewise.
538         * mri.c: Likewise.
539         * pe-dll.h: Likewise.
540
541 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
542
543         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
544
545 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
546
547         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
548         to -1 == implicit enable.
549         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
550         initialize link_info.pei386_auto_import to -1 == implicit
551         enable.
552         (gld_${EMULATION_NAME}_parse_args): When processing
553         --enable-auto-import and --disable-auto-import options, use
554         '1' and '0' instead of 'true' and 'false'.
555         (pe_find_data_imports): Only issue message about auto-import
556         when the feature is implicitly enabled.  Downgrade message to
557         informational instead of warning.
558
559 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
560
561         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
562
563 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
564
565         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
566         HOSTING_CRT0 and HOSTING_LIBS.
567
568 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
569
570         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
571
572 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
573
574         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
575         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
576
577 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
578
579         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
580         SEC_EXCLUDE sections when doing a relocatable link.
581
582 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
583
584         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
585         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
586         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
587         (eshlelf64_nbsd.c): New rules.
588         * Makefile.in: Regenerate.
589         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
590         (sh64-*-netbsd*): New targets.
591         * emulparams/shelf32_nbsd.sh: New file.
592         * emulparams/shelf64_nbsd.sh: New file.
593         * emulparams/shlelf32_nbsd.sh: New file.
594         * emulparams/shlelf64_nbsd.sh: New file.
595
596 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
597
598         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
599
600 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
601
602         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
603         C++ constructors/destructors, loosely based on the m68hc11 port.
604
605 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
606
607         * Makefile.in: Regenerate.
608         * aclocal.m4: Regenerate.
609         * config.in: Regenerate.
610         * configure: Regenerate.
611
612 2002-05-31  Graeme Peterson  <gp@qnx.com>
613
614         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
615         (ei386nto.c): Add rule.
616         * Makefile.in: Regenerate.
617         * configure.tgt: Add i[3456]86-*-nto-qnx*.
618         * emulparams/i386nto.sh: New file.
619
620 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
621
622         * NEWS: Add entry for VAX ELF support.
623
624 2002-05-29  Matt Thomas  <matt@3am-software.com>
625             Jason Thorpe  <thorpej@wasabisystems.com>
626
627         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
628         (eelf32vax.c)
629         (evaxnbsd.c): New rules.
630         * Makefile.in: Regenerate.
631         * configure.tgt (vax-*-netbsdelf*)
632         (vax-*-netbsdaout*)
633         (vax-*-netbsd*): New targets.
634         * emulparams/elf32vax.sh: New file.
635         * emulparams/vaxnbsd.sh: New file.
636
637 2002-05-29  Adam Nemet  <anemet@lnxw.com>
638
639         * emultempl/armelf.em (arm_elf_after_open): Don't determine
640         bfd_for_interwork, instead add glue sections to each input bfd.
641         (bfd_for_interwork): New global.
642         (arm_elf_set_bfd_for_interworking): New function.
643         (arm_elf_before_allocation): Use it.
644
645 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
646
647         * Makefile.am: Add DLX make target.
648         * configure.tgt: Add DLX configuration.
649         * Makefile.in: Regenerate.
650         * emulparams/elf32_dlx.sh: New file
651         * scripttempl/dlx.sc: New file
652
653 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
654
655         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
656         * Makefile.in: Regenerate.
657         * emulparams/elf_chaos.sh: Use elf_chaos script.
658         * scripttempl/elf_chaos.sc: New file.
659
660 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
661
662         * ldlang.c (lang_size_sections_1): Move check for conflicting load
663         addresses and regions from here...
664         (lang_get_regions): ...to this new function.
665         (lang_leave_output_section_statement): Use lang_get_regions.
666         (lang_leave_overlay): Likewise.
667         * mri.c (mri_draw_tree): Pass null as last argument to
668         lang_leave_output_section_statement.
669         * emultempl/elf32.em (gld*_place_orphan): Likewise.
670         * emultempl/mmo.em (mmo_place_orphan): Likewise.
671         * emultempl/pe.em (gld*_place_orphan): Likewise.
672
673 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
674
675         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
676
677 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
678
679         * ldemul.c: Fix formatting.
680         * ldfile.c: Likewise.
681         * pe-dll.c: Likewise.
682         * pe-dll.h: Likewise.
683
684 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
685
686         * ldlang.c (lang_process): Formatting, grammar.
687
688         * ldlex.l: Use #include "" instead of <> for local header files.
689
690 2002-05-24  TAMURA Kent <kent@netbsd.org>
691
692         * configure.tgt: Add a target for i386-netbsdpe.
693
694 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
695
696         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
697         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
698         output section if necessary.  Handle .tbss.
699         (lang_size_sections): Clear _raw_size for .tbss section
700         (it allocates space in PT_TLS segment only).
701         * ldwrite.c (build_link_order): Build link order for .tbss too.
702
703 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
704
705         * configure.in: Correct spelling of AC_PREREQ.
706
707 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
708
709         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
710         default.
711         (autofilter_objlist): Add crtbegin.o, crtend.o.
712
713 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
714
715         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
716         (longopts): Add new option --exclude-libs.
717         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
718         (gld_${EMULATION_NAME}_parse_args): Use it.
719         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
720         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
721         from whole archives.
722         (pe_dll_add_excludes): Set excludes->type.
723         (auto_export): Add new variable libname and set to archive basename if
724         abfd.  Use it when filtering default and user-specified libarary
725         excludes.  Let string "ALL" mean all libs when filtering user-specified
726         libs.
727         * ld.texinfo: Document --exclude-libs.
728
729 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
730
731         * ldemul.c (ldemul_new_vers_pattern): New function.
732         * ldemul.h (ldemul_new_vers_pattern): Declare.
733         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
734         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
735         * emultempl/ppc64elf.em (dotsyms): New static var.
736         (gld${EMULATION_NAME}_new_vers_pattern): New function.
737         (LDEMUL_NEW_VERS_PATTERN): Define.
738         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
739         (PARSE_AND_LIST_LONGOPTS): Likewise.
740         (PARSE_AND_LIST_ARGS_CASES): Handle them.
741         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
742         initialiser.
743         * emultempl/armcoff.em: Likewise.
744         * emultempl/armelf_oabi.em: Likewise.
745         * emultempl/beos.em: Likewise.
746         * emultempl/elf32.em: Likewise.
747         * emultempl/generic.em: Likewise.
748         * emultempl/gld960.em: Likewise.
749         * emultempl/gld960c.em: Likewise.
750         * emultempl/linux.em: Likewise.
751         * emultempl/lnk960.em: Likewise.
752         * emultempl/m68kcoff.em: Likewise.
753         * emultempl/mipsecoff.em: Likewise.
754         * emultempl/pe.em: Likewise.
755         * emultempl/sunos.em: Likewise.
756         * emultempl/ticoff.em: Likewise.
757         * emultempl/vanilla.em: Likewise.
758
759 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
760
761         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
762         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
763         (LIB_SEARCH_DIRS): No need to use "tr".
764         (COMPILE_IN): Only set for native targets.
765         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
766         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
767         * configure.tgt (powerpc*): Set tdir_*.
768         (powerpcle*): Correct targ_extra_emuls.
769         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
770         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
771
772 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
773
774         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
775         calling lang_add_entry.
776
777 2002-05-21  H.J. Lu  (hjl@gnu.org)
778
779         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
780         "-z muldefs".
781         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
782
783         * ld.texinfo: Updated for --allow-multiple-definition and
784         "-z muldefs".
785
786         * ldmain.c (main): Initialize the allow_multiple_definition
787         field to false.
788
789         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
790         (ld_options): Add --allow-multiple-definition.
791         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
792
793 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
794
795         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
796         (earmelfb_nbsd.c): New rule.
797         * Makefile.in: Regenerate.
798         * configure.tgt (armeb-*-netbsdelf*): New target.
799         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
800         (arm-*-netbsd*): Likewise.
801         * emulparams/armelfb_nbsd.sh: New file.
802
803 2002-05-18  Tom Rix  <trix@redhat.com>
804
805         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
806         support.
807
808 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
809
810         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
811         * Makefile.in: Regenerate.
812         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
813
814 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
815
816         * emulparams/avr1.sh: New file.
817         * emulparams/avr2.sh: New file.
818         * emulparams/avr3.sh: New file.
819         * emulparams/avr4.sh: New file.
820         * emulparams/avr5.sh: New file.
821         * scripttempl/avr.sc: New file.
822
823 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
824
825         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
826         (lang_place_orphans): Abort if just_syms_flag.
827
828 2002-05-10  Tom Rix  <trix@redhat.com>
829
830         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
831         architecture and machine information in the output bfd.
832         (gld*_before_parse): Remove old arch and machine code.
833         (choose_target): Rename to gld*_choose_target.
834         (rtld): Change type to int.
835         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
836         objects in XCOFF archives.
837         * ldfile.h: Update copyright date.
838
839 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
840
841         * ldmain.c (main): Enable -z combreloc by default.
842
843 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
844
845         * Makefile.am: Honour DESTDIR.
846         * Makefile.in: Regenerate.
847
848 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
849
850         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
851         (lang_enter_overlay): Remove the last two parameters.
852         (lang_leave_overlay): Take them here instead.
853         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
854         (section): Pass LMA and crossref flag to lang_leave_overlay rather
855         than lang_enter_overlay.
856         * ldlang.c (lang_memory_region_lookup): Return null for null names.
857         (lang_output_section_statement_lookup): Initialize update_dot_tree.
858         (lang_size_sections_1): Evaluate it.
859         (lang_leave_output_section_statement): Rework LMA lookup.
860         (overlay_lma, overlay_nocrossrefs): Remove.
861         (lang_enter_overlay): Remove LMA and crossref arguments.
862         (lang_enter_overlay_section): Don't set the LMA here.
863         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
864         assignment to the last section's update_dot_tree.  Unconditionally
865         use the load and run-time regions specified in the OVERLAY statement.
866         Likewise the first section's LMA.  Only set the other sections' LMAs
867         when no load region is given.
868
869 2002-05-06  Nick Clifton <nickc@redhat.com>
870
871         * po/sv.po: New translation.
872
873 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
874
875         * emultempl/hppaelf.em (build_section_lists): New function.
876         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
877         and build_section_lists.
878
879 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
880
881         * ld.h: Fix formatting.
882         * ldexp.c: Likewise.
883         * ldfile.c: Likewise.
884         * ldlang.c: Likewise.
885         * ldmain.c: Likewise.
886         * lexsup.c: Likewise.
887         * pe-dll.c: Likewise.
888
889 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
890
891         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
892         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
893         (build_section_lists): Do output_section tests here.
894
895 2002-04-30  Tom Rix  <trix@redhat.com>
896
897         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
898
899 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
900
901         Long branch stubs, multiple stub sections.
902         * emultempl/ppc64elf.em: Include ldctor.h.
903         (stub_file): New var.
904         (group_size): New var.
905         (ppc_create_output_section_statements): New function.
906         (struct hook_stub_info): New.
907         (hook_in_stub): New function.
908         (ppc_add_stub_section): New function.
909         (ppc_layout_sections_again): New function.
910         (build_section_lists): New function.
911         (gld${EMULATION_NAME}_finish): Rewrite.
912         (real_func): New var.
913         (ppc_for_each_input_file_wrapper): New function.
914         (ppc_lang_for_each_input_file): New function.
915         (lang_for_each_input_file): Define.
916         (PARSE_AND_LIST_PROLOGUE): Define.
917         (PARSE_AND_LIST_LONGOPTS): Define.
918         (PARSE_AND_LIST_OPTIONS): Define.
919         (PARSE_AND_LIST_ARGS_CASES): Define.
920         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
921
922 2002-04-30  Tom Rix  <trix@redhat.com>
923
924         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
925         -blibpath, -bnolibpath support.
926
927 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
928
929         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
930         (eelf32ppcwindiss.c): New target.
931         * Makefile.in: Regenerated.
932         * configure.tgt: Add support for powerpc-*-windiss.
933         * emulparams/elf32ppcwindiss.sh: New file.
934
935 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
936
937         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
938         * ldexp.c (exp_print_token): Add "infix_p" argument.
939         (exp_print_tree): Update accordingly.
940
941 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
942
943         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
944         * Makefile.in: Regenerate.
945         * mpw-elfmips.c: Delete.
946         * mpw-eppcmac.c: Delete.
947         * mpw-esh.c: Delete.
948         * mpw-idtmips.c: Delete.
949
950 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
951
952         * emulparams/shelf32.sh (MACHINE): Now sh5.
953
954 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
955
956         * ldgram.y: Fix syntax warning.
957
958 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
959
960         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
961         to prevent "-n" from being taken as an abbreviation for
962         "--no-pipeline-knowledge".
963
964 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
965
966         * ldlang.c (lang_size_sections_1): Don't complain about
967         SEC_NEVER_LOAD sections having no memory region specified.
968
969         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
970
971 2002-04-07  matthew green  <mrg@redhat.com>
972
973         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
974
975 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
976
977         * dep-in.sed: Cope with absolute paths.
978         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
979         Run "make dep-am".
980         * Makefile.in: Regenerate.
981
982 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
983
984         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
985
986 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
987
988         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
989         is smaller than maximum, round dot up to common page boundary.
990
991 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
992
993         * configure.host: Set up for generic hosts first, then tweak as
994         necessary in more specific targets.
995         (HOSTING_LIBS): Include libgcc_eh.a if found.
996
997 2002-03-23  Andreas Jaeger  <aj@suse.de>
998
999         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1000
1001 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
1002
1003         * Makefile.am: Run "make dep-am".
1004         * Makefile.in: Regenerate.
1005
1006 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
1007
1008         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1009
1010 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
1011
1012         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1013         add the symbol to the linker hash table immediately.
1014         (lang_place_undefineds): Split symbol creation out..
1015         (insert_undefined): ..to here.
1016
1017 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
1018
1019         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1020         the contents of the buffer returned from basename function will are
1021         getting overwritten while still being used.
1022
1023 2002-03-18  Jan Hubicka  <jh@suse.cz>
1024             Andreas Jaeger  <aj@suse.de>
1025             Andreas Schwab  <schwab@suse.de>
1026
1027         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1028         * elf_x86_64.sh (ARCH): Set to i386:x86-64
1029         set libraries to default to lib64 paths.
1030
1031 2002-03-18  Tom Rix  <trix@redhat.com>
1032
1033         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1034         * configure.tgt : Same.
1035         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1036         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1037         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1038         emulation parameters for better -b32, -b64 support.
1039         * emulparms/aixrs6.sh : Same.
1040         * emulparms/ppcmacos.sh : Same.
1041         * emultempl/aix.em (choose_target) : Use new emulation parameters
1042         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1043         * Makefile.in : Regenerate.
1044
1045 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
1046
1047         * po/fr.po: Updated version.
1048
1049 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
1050
1051         * ldmain.c (main): Move .text readonly flag fudges from here..
1052         * ldlang.c (lang_process): ..to here.
1053
1054 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
1055
1056         * ldlang.c (lang_check): Remove the word size check added in last
1057         change.  Treat emitrelocations case as for relocatable links.
1058
1059 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
1060
1061         * po/fr.po: Updated version.
1062
1063 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
1064
1065         * ldlang.c (lang_check): Do relocatable link checks first, so that
1066         warn_mismatch can't override.  Check compatible and word size too.
1067
1068 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
1069
1070         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1071
1072 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1073
1074         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1075         DATA_SEGMENT_ALIGN.
1076
1077 2002-03-04  H.J. Lu <hjl@gnu.org>
1078
1079         * scripttempl/elf.sc: Put .preinit_array, .init_array and
1080         .fini_array in the data segment.
1081
1082 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
1083
1084         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1085
1086 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
1087
1088         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1089         .init_array, and .fini_array.
1090
1091 2002-02-20  Andreas Schwab  <schwab@suse.de>
1092
1093         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1094         .IA64_unwind* in a relocatable link.
1095
1096 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1097
1098         * NEWS: Mark 2.12 branch.
1099
1100 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1101
1102         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1103         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1104
1105 2002-02-18  Tom Rix  <trix@redhat.com>
1106
1107         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1108         (gld*_before_allocation): Same.
1109         (gld*_create_output_section_statements): Generate
1110         __rtinit if run time linking.  Add librtl.a to the link.
1111         (gld*_read_file): Clean.
1112
1113 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1114
1115         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1116
1117 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
1118
1119         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1120         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1121         and eelf64alpha_fbsd.
1122         * Makefile.in: Regenerate.
1123         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1124         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1125         use a FreeBSD-specific emulation rather than the psABI one.
1126         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1127         for all FreeBSD ELF systems.
1128         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1129         emulation.
1130         * emulparams/elf32ppc_fbsd.sh: Likewise.
1131         * emulparams/elf64_ia64_fbsd.sh: Likewise.
1132         * emulparams/elf64_sparc_fbsd.sh: Likewise.
1133         * emulparams/elf64alpha_fbsd.sh: Likewise.
1134         * emulparams/elf_i386_fbsd.sh: Likewise.
1135         * emulparams/elf_x86_64_fbsd.sh: Likewise.
1136
1137 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
1138
1139         * po/tr.po: Updated version.
1140
1141 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1142
1143         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1144         (FILL): Likewise.
1145
1146 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
1147
1148         * emultempl/mmo.em (mmo_after_open): Don't call
1149         _bfd_mmix_check_all_relocs when producing ELF output.
1150
1151 2002-02-15  Richard Henderson  <rth@redhat.com>
1152
1153         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1154         definition.  Emit a unop+nop pair.
1155
1156 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1157
1158         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1159         for presence of .MMIX.reg_contents.linker_allocated before early
1160         exit.
1161
1162         * NEWS: Mention support for MMIX.
1163
1164 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
1165
1166         Support arbitrary length fill patterns.
1167         * ld.texinfo (Output Section Fill): Describe fill expressions.
1168         (FILL): Refer to the above.
1169         * ldexp.h (etree_value_type): Add "str" field.
1170         (union etree_union): Add "str" to "value" struct.
1171         (exp_bigintop): Declare.
1172         (exp_get_fill): Declare.
1173         * ldexp.c: Include "safe-ctype.h".
1174         (exp_intop): Set value.str to NULL.
1175         (exp_bigintop): New function.
1176         (new_rel): Pass in "str", and set new.str from it.
1177         (new_rel_from_section): Set new.str to NULL.
1178         (fold_name): Adjust calls to new_rel.
1179         (exp_fold_tree): Likewise.
1180         (exp_get_fill): New function.
1181         * ldgram.y (struct big_int bigint, fill_type *fill): New.
1182         (INT): Returns a "bigint".  Adjust all code handling INTs.
1183         (fill_opt): Returns a "fill".
1184         (fill_exp): Split out of fill_opt, use for FILL.
1185         * ldlang.h (struct _fill_type): New.
1186         (fill_type): Move typedef to ldexp.h.
1187         (lang_output_section_statement_type): "fill" is now a pointer.
1188         (lang_fill_statement_type): Likewise.
1189         (lang_padding_statement_type): Likewise.
1190         (lang_add_fill): Now takes a "fill_type *" param.
1191         (lang_leave_output_section_statement): Likewise.
1192         (lang_do_assignments): Likewise.
1193         (lang_size_sections): Likewise.
1194         (lang_leave_overlay_section): Likewise.
1195         (lang_leave_overlay): Likewise.
1196         * ldlang.c: Include ldgram.h after ldexp.h.
1197         (lang_output_section_statement_lookup): Adjust for fill_type change.
1198         (print_fill_statement): Likewise.
1199         (print_padding_statement): Likewise.
1200         (insert_pad): Now takes a "fill_type *" arg.
1201         (size_input_section): Likewise.
1202         (lang_size_sections_1): Likewise.
1203         (lang_size_sections): Likewise.
1204         (lang_do_assignments): Likewise.
1205         (lang_add_fill): Likewise.
1206         (lang_leave_output_section_statement): Likewise.
1207         (lang_leave_overlay_section): Likewise.
1208         (lang_leave_overlay): Likewise.
1209         Adjust all callers of the above function.
1210         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
1211         starting with "0X" as well as "0x".  Return bigint.str for hex
1212         numbers starting with "0x" or "0X", zero bigint.str otherwise.
1213         Always use base 16 for numbers starting with "$".
1214         * ldmain.c: Include ldgram.h after ldexp.h.
1215         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1216         of bfd_fill_link_order.
1217         * pe-dll.c: Adjust lang_do_assignments calls.
1218         * emultempl/elf32.em: Likewise.
1219         * emultempl/hppaelf.em: Likewise.
1220         * emultempl/ppc64elf.em: Likewise.
1221         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1222         lang_add_assignment call.
1223         * emultempl/pe.em: Likewise.
1224
1225 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
1226
1227         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
1228         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
1229         the pattern in question is not a regexp.
1230         * ldlang.c:  Likewise.
1231         * ldlang.h:  Likewise.
1232         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
1233
1234 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1235
1236         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1237         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1238         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1239         * ldexp.c (exp_data_seg): New variable.
1240         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1241         (fold_binary): Handle DATA_SEGMENT_ALIGN.
1242         (exp_fold_tree): Handle DATA_SEGMENT_END.
1243         Pass allocation_done when recursing instead of hardcoding
1244         lang_allocating_phase_enum.
1245         * ldexp.h (exp_data_seg): New.
1246         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1247         (lang_size_sections): New.
1248         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1249         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1250         if COMMONPAGESIZE is defined.
1251         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1252         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1253         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1254         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1255         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1256         libraries only.
1257
1258 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1259
1260         * Makefile.in: Regenerate.
1261
1262 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1263
1264         * lexsup.c: Remove strtoul declaration.
1265
1266 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1267
1268         * ldmain.c: Add prototype for main ().
1269         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1270         * emultempl/lnk960.em (lnk960_choose_target): Function should
1271         take two arguments.
1272
1273 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
1274
1275         * ldlang.c (entry_section): New initialised variable.
1276         (lang_finish): Use it.
1277         * ldlang.h (entry_section): Declare.
1278         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1279         entry_section to ".opd".
1280
1281 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
1282
1283         * ld.texinfo (Options): Add back in -nostdlib documentation,
1284         which had been inadvertently removed.
1285
1286 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
1287
1288         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1289         register section vma to a sane value after emitting error.  Make
1290         fatal conditions cause program exit when emitting message.
1291
1292 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
1293
1294         * configure.tgt: Add or32-*-rtems target.
1295
1296 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1297
1298         Contribute sh64-elf.
1299         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1300         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1301         in OTHER_RELOCATABLE_SECTIONS.
1302         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1303         * emulparams/shelf32.sh (STACK_ADDR): Define.
1304         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1305         (OTHER_SECTIONS): this.  Removed stack settings.
1306         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1307         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1308         2001-03-12  DJ Delorie  <dj@redhat.com>
1309         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1310         relaxing if any shmedia or mixed sections are found.
1311         2001-03-07  DJ Delorie  <dj@redhat.com>
1312         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1313         einfo.  Gracefully decline to output to non-elf formats.
1314         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
1315         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1316         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1317         * emulparams/shelf32.sh: Ditto.
1318         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
1319         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1320         comment.
1321         2001-01-10  Ben Elliston  <bje@redhat.com>
1322         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1323         non-portable shell constructs. From Hans-Peter Nilsson.
1324         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
1325         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1326         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1327         dependencies to the shell script include chain.
1328         * Makefile.in: Regenerate.
1329         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1330         * emultempl/sh64elf.em: Update and tweak comments.
1331         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1332         make a .cranges section SEC_IN_MEMORY.
1333         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1334         * emultempl/sh64elf.em
1335         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1336         .cranges section found to be necessary; continue and set stored
1337         section contents flags for sections with non-mixed contents.
1338         Use a struct sh64_section_data container and sh64_elf_section_data
1339         to store contents-type flags.
1340         Remove unused update of "isec".
1341         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1342         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
1343         access contents-type flags.  Assert that the associated container
1344         is initialized.  Use that container, not elf_gp_size, to hold size
1345         of linker-generated cranges contents.
1346         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1347         * emultempl/sh64elf.em
1348         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1349         there's already a .cranges section.  When section flag difference
1350         is found, don't NULL-check cranges a second time.  Tweak comments.
1351         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1352         merging, not max size, as size of ld-generated .cranges contents.
1353         Don't set ELF section flags in output section.  When checking for
1354         needed .cranges descriptors, don't use a variable; compare
1355         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
1356         comments.
1357         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1358         * emultempl/sh64elf.em: New file.
1359         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1360         * Makefile.in: Regenerate.
1361         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1362         (OTHER_RELOCATING_SECTIONS): Ditto.
1363         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1364         * emulparams/shlelf32.sh: Stub out all settings except
1365         OUTPUT_FORMAT.  Source shelf32.sh.
1366         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1367         OTHER_RELOCATING_SECTIONS.
1368         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1369         * emulparams/shlelf64.sh: Stub out all settings except
1370         OUTPUT_FORMAT.  Source shelf64.sh.
1371         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1372         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1373         .cranges section.
1374         (DATA_START_SYMBOLS): Define, provide ___data.
1375         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1376         for consecutive .data section.
1377         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1378         section after .data section.
1379         * emulparams/shlelf64.sh: Ditto.
1380         * emulparams/shelf32.sh: Ditto.
1381         (ALIGNMENT): Define to 8.
1382         * emulparams/shelf32.sh: Ditto.
1383         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1384         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1385         built-in linker scripts.
1386         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1387         * emulparams/shlelf64.sh: New.
1388         * emulparams/shelf64.sh: New.
1389         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1390         targ_extra_emuls.
1391         * Makefile.am: Add support for shlelf64 and shelf64.
1392         * Makefile.in: Regenerate.
1393         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1394         * configure.tgt (sh64-*-elf*): Add shelf as default.
1395         Add shlelf to targ_extra_emuls.
1396         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1397         * emulparams/shelf32.sh: New file.
1398         * emulparams/shlelf32.sh: New file.
1399         * Makefile.am: Add support for shlelf32 and shelf32.
1400         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1401         * Makefile.in: Regenerate.
1402
1403 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1404
1405         * ldlang.c (lang_reset_memory_regions): Rename from
1406         reset_memory_regions.  Change all callers.  Make public.
1407         * ldlang.h (lang_reset_memory_regions): Prototype.
1408         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1409         lang_reset_memory_regions before lang_size_sections.
1410         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1411         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1412
1413 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1414
1415         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1416         arithmetic when checking for too many global registers.
1417
1418 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1419
1420         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1421         (ehppanbsd.c): New rule.
1422         * Makefile.in: Regenerate.
1423         * configure.tgt (hppa*-*-netbsd*): New target.
1424         * emulparams/hppalinux.sh: Add comment to check other files
1425         that source this file it is modified, and list which
1426         files that do.
1427         * emulparams/hppanbsd.sh: New file.
1428
1429 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1430
1431         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1432         stack.
1433
1434 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1435
1436         Support on-demand global register allocation from
1437         R_MMIX_BASE_PLUS_OFFSET relocs.
1438         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1439         mmix_set_reg_section_vma.  Call
1440         _bfd_mmix_finalize_linker_allocated_gregs.
1441         (mmix_before_allocation): New function.
1442         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1443         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1444         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1445         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1446         before .MMIX.reg_contents.
1447         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1448         (mmo_after_open): New function.
1449         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1450         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1451         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1452
1453 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1454
1455         * emulparams/or32.sh: New file.
1456         * emulparams/or32elf.sh: New file.
1457         * scripttempl/or32.sc: New file.
1458         * configure.tgt : Add support for or32.
1459         * configure: Regenerate
1460         * Makefile.am: Add support for or32.
1461         * Makefile.in: Regenerate.
1462         * NEWS: Mention support for or32.
1463         * po/ld.pot: Regenerate.
1464
1465 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1466             Mitch Lichtenberg  <mpl@broadcom.com>
1467
1468         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1469         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1470         reloc creation (ld --embedded-relocs).
1471
1472 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1473
1474         * configure: Regenerated.
1475
1476 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1477
1478         * Makefile.am (install): Depend on install-info.
1479         * Makefile.in: Regenerate.
1480
1481 2002-01-26  Christian Rose  <menthos@menthos.com>
1482
1483         * ldmain.c (main): Use full sentences to ease translation.
1484
1485 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1486
1487         * po/fr.po: Updated version.
1488
1489 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1490
1491         * po/es.po: Updated version.
1492
1493 2002-01-25  Andreas Jaeger  <aj@suse.de>
1494
1495         * ldlex.l (yy_input): Correct error check.
1496
1497 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1498
1499         * ldmisc.c (demangle): Put back dots when string not demangled.
1500
1501 2002-01-22  Richard Henderson  <rth@redhat.com>
1502
1503         * emulparams/elf64alpha.sh (NOP): Use unop.
1504
1505 2002-01-21  Andreas Jaeger  <aj@suse.de>
1506
1507         * ldlex.l: Use fread instead of read.
1508
1509 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1510
1511         * configure.tgt (ia64-*-netbsd*): New target.
1512
1513 2002-01-21  H.J. Lu <hjl@gnu.org>
1514
1515         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1516         0.
1517         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1518
1519 2002-01-18  Andreas Jaeger  <aj@suse.de>
1520
1521         * ldver.c (ldversion): Update year.
1522
1523 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1524
1525         * po/ld.pot: Regenerate.
1526
1527 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1528
1529         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1530         * Makefile.in: Regenerate.
1531         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1532         * emultempl/ppc64elf.em: New file.
1533
1534 2002-01-15  DJ Delorie  <dj@redhat.com>
1535
1536         * scripttempl/pe.sc: Add support for constructor priorities.
1537
1538 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1539
1540         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1541         * emulparams/avr23xx.sh: Likewise.
1542         * emulparams/avr4433.sh: Likewise.
1543         * emulparams/avr44x4.sh: Likewise.
1544         * emulparams/avr85xx.sh: Likewise.
1545         * emulparams/avrmega103.sh: Likewise.
1546         * emulparams/avrmega161.sh: Likewise.
1547         * emulparams/avrmega603.sh: Likewise.
1548         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1549
1550 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1551
1552         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1553         archive is excluded.
1554
1555 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1556
1557         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1558         (eshelf_nbsd.c): New rule.
1559         (eshlelf_nbsd.c): New rule.
1560         * Makefile.in: Regenerate.
1561         * configure.tgt (sh*le-*-netbsdelf*): New target.
1562         (sh*-*-netbsdelf*): New target.
1563         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1564         * ld/emulparams/shelf_nbsd.sh: New emulation.
1565         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1566
1567 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1568
1569         * po/es.po: New file: Spanish translation.
1570         * configure.in (ALL_LINGUAS): Add es.
1571         * configure: Regenerate.
1572
1573 2002-01-06  John Marshall  <jmarshall@acm.org>
1574
1575         * ld.texinfo: Note that --emit-relocs is currently only
1576         implemented for ELF.
1577
1578 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1579
1580         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1581         of bfd_section_list_remove and bfd_section_list_insert macros.
1582         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1583         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1584
1585 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1586
1587         * configure.tgt (x86_64-*-netbsd*): New target.
1588
1589 2001-12-21  Tom Rix  <trix@redhat.com>
1590
1591         (gld*_create_output_section_statements): New function.
1592         For -binitfini support.
1593         * emultempl/aix.em (gld*_before_parse): Fix comment.
1594         * emultempl/aix.em (gld*_parse_args): Fix comment.
1595
1596 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1597
1598         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1599         mips*el-*-netbsd*.
1600         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1601
1602         * configure.tgt (arm-*-netbsdelf*): Add target.
1603         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1604         * emulparams/armelf_nbsd.sh: Added.
1605         * Makefile.am: Add rules for earmelf_nbsd.
1606         * Makefile.in: Regenerate.
1607
1608 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1609             Susanne Oberhauser <froh@suse.de>
1610
1611         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1612         s390x-linux entry to use gcc to report configuration, replace gcc
1613         with $CC in s390-linux
1614
1615 2001-12-19  Andreas Jaeger  <aj@suse.de>
1616
1617         * ld.texinfo (VERSION): Fix markup.
1618
1619 2001-12-18  matthew green  <mrg@eterna.com.au>
1620
1621         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1622         (m68kelfnbsd.c): New rule.
1623         * Makefile.in: Regenerate.
1624         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1625         (m68*-*-netbsd*4k*): .. this.
1626         (m68*-*-netbsdelf*): New target.
1627         (m68*-*-netbsd*): Also include ELF support.
1628         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1629         * emulparams/m68kelfnbsd.sh: New emulation.
1630
1631 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1632
1633         * ldgram.y (vers_node): Support anonymous version tags.
1634         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1635         tag is not defined together with non-anonymous versions.
1636         * ld.texinfo: Document it.
1637
1638 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1639
1640         * po/tr.po: New file: Turkish translation.
1641         * configure.in (ALL_LINGUAS): Add tr.
1642         * configure: Regenerate.
1643
1644 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1645
1646         * Makefile.am: Add rules for eelf64alpha_nbsd.
1647         * Makefile.in: Regenerate.
1648         * configure.tgt (alpha*-*-netbsd*): Set
1649         targ_emul to elf64alpha_nbsd.
1650         * emulparams/elf64alpha_nbsd.sh: Added.
1651
1652 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1653
1654         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1655         section_tail when fiddling with section list.
1656         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1657         broken into separate strings to make translation easier.
1658         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1659         fiddling with section list.
1660         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1661
1662 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1663
1664         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1665
1666 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1667
1668         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1669
1670 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1671
1672         * emultempl/elf32.em (finish): Supply output_bfd
1673         to bfd_elf*_discard_info.
1674         (OPTION_EH_FRAME_HDR): Define.
1675         (longopts): Add --eh-frame-hdr.
1676         (parse_args): Handle it.
1677         (list_options): Add --eh-frame-hdr to help.
1678         * emultempl/hppaelf.em (finish): Supply output_bfd
1679         to bfd_elf*_discard_info.
1680         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1681
1682 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1683
1684         * lexsup.c (parse_args): Don't pass shortopts to second call to
1685         getopt functions.  Restore optind rather than decrementing before
1686         second call.  Remove errind as it now duplicates last_optind.
1687
1688 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1689
1690         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1691
1692 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1693             Richard Henderson  <rth@redhat.com>
1694
1695         * Makefile.am: Add support for xstormy16.
1696         * configure.tgt: Add support for xstormy16.
1697         * Makefile.in: Regenerate.
1698         * emulparams/elf32xstormy16.sh: New file.
1699         * scripttempl/xstormy16.sc: New file.
1700
1701 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1702
1703         * Makefile.in (LIB_PATH): Make configurable.
1704         (GENSCRIPTS): Set LIB_PATH in environment.
1705         * configure.in: Substitute LIB_PATH.
1706         * configure: Regenerate.
1707         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1708         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1709
1710 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1711
1712         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1713         describing the -N option so that it is easier to translate into
1714         foreign languages.
1715
1716 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1717
1718         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1719         statements describing a single option with a single, newline
1720         escaped fprintf.  This allows better translation into other
1721         languages.
1722
1723         * ldmain.c (add_archive_element): Combine multiple strings
1724         into a single string to permit better translation into other
1725         languages.
1726
1727 2001-12-05  Tom Rix  <trix@redhat.com>
1728
1729         * Makefile.am: Remove eaixppc64.
1730         * Makefile.in: Regenerate.
1731
1732 2001-12-04  Tom Rix  <trix@redhat.com>
1733
1734         * emultempl/aix.em (choose_target): Change default target to
1735         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1736         warning.
1737         (gld*_read_file):  Fix typo.
1738         (change_symbol_mode): Add prototype.
1739         (is_syscall): Same.
1740
1741         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1742         * emulparams/aixrs6.sh : Same.
1743         * emulparams/ppcmacos.sh : Same.
1744         * emulparams/aixppc64.sh : Delete file.
1745         * emultempl/aix.em : Formatting changes.
1746
1747 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1748
1749         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1750         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1751         __Sbss.
1752         (OTHER_END_SYMBOLS): Fix formatting.
1753         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1754         (OTHER_END_SYMBOLS): Fix formatting.
1755
1756 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1757
1758         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1759
1760 2001-12-02  Tom Rix  <trix@redhat.com>
1761
1762         * configure.tgt : Remove eaixppc64 emulations.
1763         * Makefile.in : Remove eaixppc64.c
1764         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1765         (ldemul_default_target): Same.
1766         * emultempl/gld960.em (gld960_choose_target):  Same.
1767         * emultempl/gld960c.em (gld960_choose_target):  Same.
1768         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1769         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1770         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1771         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1772         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1773         -b32 and -b64.
1774
1775 2001-11-27  H.J. Lu <hjl@gnu.org>
1776
1777         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1778         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1779         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1780         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1781         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1782         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1783         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1784         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1785
1786         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1787         is not empty.
1788         (SDATA): Likewise.
1789         (REL_SDATA): Likewise.
1790         (REL_SBSS): Likewise.
1791         (REL_SDATA2): Likewise.
1792         (REL_SBSS2): Likewise.
1793         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1794         (SDATA2): Likewise.
1795
1796 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1797
1798         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1799         destructor in rom.
1800         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1801
1802 2001-11-22  H.J. Lu  <hjl@gnu.org>
1803
1804         * Makefile.in: Regenerated with automake based on automake
1805         1.4-8 in RedHat 7.1.
1806
1807 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
1808
1809         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1810         (config.status): Delete rule.
1811         Add extra dependencies to cover sourced emulparams files.
1812         * Makefile.in: Regenerate.
1813
1814         * scripttempl/elf.sc: Order <section>, <section>.* and
1815         corresponding linkonce sections as seen in input files.
1816         Formatting fixes.  Zero vma of all sections if not relocating.
1817         (STACK): Define and insert if STACK_ADDR defined.
1818         (OTHER_RELOCATING_SECTIONS): Delete.
1819         (OTHER_END_SYMBOLS): Define.
1820         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1821         (OTHER_READWRITE_SECTIONS): Likewise.
1822         (OTHER_GOT_SECTIONS): Likewise.
1823         (OTHER_SDATA_SECTIONS): Likewise.
1824         (OTHER_BSS_SECTIONS): Likewise.
1825         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1826         (OTHER_READWRITE_SECTIONS): Likewise.
1827         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1828         (OTHER_READWRITE_SECTIONS): Likewise
1829
1830         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1831         (STACK_ADDR): Define.
1832         * emulparams/armelf_oabi.sh: As for armelf.sh.
1833         * emulparams/elf32mcore.sh: As for armelf.sh.
1834         * emulparams/h8300elf.sh: As for armelf.sh.
1835         * emulparams/mn10200.sh: As for armelf.sh.
1836         * emulparams/shelf.sh: As for armelf.sh.
1837
1838         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1839         (OTHER_END_SYMBOLS): Define.
1840         * emulparams/m32relf.sh: As for elf32fr30.sh.
1841         * emulparams/h8300helf.sh: As for elf32fr30.sh.
1842         * emulparams/h8300self.sh: As for elf32fr30.sh.
1843
1844         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1845         defines with RELOCATING test.
1846         (OTHER_SDATA_SECTIONS): Likewise.
1847         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1848         (OTHER_END_SYMBOLS): ..this.
1849         * emulparams/crislinux.sh: As for criself.sh.
1850
1851         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1852         if not relocating.
1853         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1854         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
1855         normal and linkonce sections as seen in input files.
1856         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1857         (TEXT_DYNAMIC): Likewise.
1858         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1859         (OTHER_SDATA_SECTIONS): Likewise.
1860         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1861         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1862         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1863         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1864         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1865         (OTHER_PLT_RELOC_SECTIONS): Likewise.
1866         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
1867         sections as seen in input files.
1868         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1869         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1870         if not relocating.
1871         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1872         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1873         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1874         (OTHER_SECTIONS): Instead, use this..
1875         (OTHER_END_SYMBOLS): ..and this.
1876
1877         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1878         * emulparams/elf32bsmip.sh: Likewise.
1879         * emulparams/elf32btsmip.sh: Likewise.
1880         * emulparams/elf32ebmip.sh: Likewise.
1881         * emulparams/elf32lmip.sh: Likewise.
1882         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1883         * emulparams/elf32lsmip.sh: Likewise.
1884         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1885         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1886         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1887         * emulparams/elf64btsmip.sh: Likewise.
1888         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1889         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1890         * emulparams/elf32ppclinux.sh: Likewise.
1891         * emulparams/elf32ppcsim.sh: Likewise.
1892         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1893         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1894         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1895         * emulparams/h8300self.sh: Likewise.
1896         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1897         * emulparams/sh.sh: Comment.
1898         * emulparams/shl.sh: Source sh.sh, remove duplicates.
1899         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1900         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1901
1902 2001-11-21  David Heine <dlheine@tensilica.com>
1903             Alan Modra  <amodra@bigpond.net.au>
1904
1905         * ldlang.c (map_input_to_output_sections): Replace "break"
1906         accidentally removed with 2001-08-03 change.
1907         (lang_gc_sections_1): Likewise.
1908
1909 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
1910
1911         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1912
1913 2001-11-20  Angela Marie Thomas <angela@redhat.com>
1914
1915         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1916         of false when calling lang_size_sections.
1917         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1918
1919 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
1920
1921         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1922         function when LDEMUL_FINISH isn't set to the same name.  Don't
1923         call ${LDEMUL_FINISH}.
1924         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1925         * emultempl/armelf.em (arm_elf_finish): Call
1926         gld${EMULATION_NAME}_finish.
1927         * emultempl/hppaelf.em (hppaelf_finish): Rename to
1928         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
1929         hppaelf_layout_sections_again if necessary.
1930         (need_laying_out): New var.
1931         (hppaelf_layaout_sections_again): Rename to
1932         hppaelf_layout_sections_again.  Clear need_laying_out.
1933         (PARSE_AND_LIST_OPTIONS): Format text.
1934
1935 2001-11-14  H.J. Lu  <hjl@gnu.org>
1936
1937         * emultempl/armelf.em (arm_elf_finish): Renamed from
1938         gld${EMULATION_NAME}_finish.
1939         (LDEMUL_FINISH): Set to arm_elf_finish.
1940
1941 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
1942
1943         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1944         (struct ld_emulation_xfer_struct): Use it.
1945
1946 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
1947
1948         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1949         additional symbols referenced by newer crt0.o files from HP.
1950
1951 2001-11-12  Anthony Green  <green@redhat.com>
1952
1953         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1954
1955 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
1956
1957         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1958         * Makefile.in: Regenerate.
1959
1960 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1961
1962         * ld.texinfo: Use @command for commands, @option for options.
1963         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1964         the page man title.
1965         * Makefile.in: Rebuild.
1966
1967 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
1968
1969         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1970         Add support for targets.
1971
1972 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
1973
1974         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1975         * configure: Regernate.
1976         * po/fr.po: New file.
1977         * po/sv.po: New file.
1978
1979 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
1980
1981         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1982         as little endian default and to support big endian.
1983
1984 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
1985
1986         * ld.texinfo (Options): Document new option, -nostdlib.
1987         * lexsup.c (OPTION_NOSTDLIB): New definition.
1988         (ld_options): Add entry for "nostdlib".
1989         (parse_args): Handle OPTIONS_NOSTDLIB.
1990         * ldfile.c (ldfile_add_library_path): Don't add directories
1991         to the search path if they weren't specified on the command line
1992         and -nostdlib was specified.
1993         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1994
1995 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
1996
1997         * lexsup.c (parse_args): Prevent infinite parsing loop when
1998         "-rpath.a" is specified on the command line.
1999         Replace calls to fprintf with calls to einfo.
2000
2001 2001-10-31  John Marshall  <jmarshall@acm.org>
2002
2003         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2004         appear only once across all the linker scripts involved in a link
2005         invocation no longer applies.  Make the documentation reflect
2006         that.
2007
2008 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
2009
2010         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2011         targets.
2012         (sh-*-linux*): Added targ_extra_libpath.
2013
2014 2001-10-31  David Heine  <dlheine@tensilica.com>
2015
2016         * ldlang.c (lang_size_sections): Keep a valid output_offset field
2017         for padding statements.
2018
2019 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
2020
2021         * configure.tgt (mmix-*-*): New target.
2022         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2023         Add dependencies to match.
2024         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2025         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2026         scripttempl/mmo.sc: New files.
2027         * gen-doc.texi: @set MMIX.
2028         * ld.texinfo: Ditto.
2029         [MMIX] Add MMIX node.
2030         * Makefile.in: Regenerate.
2031
2032 2001-10-29  Kazu Hirata  <kazu@hxi.com>
2033
2034         * ldlang.c: Fix a comment typo.
2035
2036 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
2037
2038         * configure.host: Move alpha*-*-linux-gnu* entry to generic
2039         entries, and match *-*-linux*.
2040
2041 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
2042
2043         * ldgram.y (mri_script_command): Surround processing of INCLUDE
2044         with ldlex_script, ldlex_popstate.
2045         (ifile_p1): Likewise.
2046         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
2047         correct slot.
2048         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
2049         to 1.  Don't BEGIN(SCRIPT).
2050         (lex_redirect): Similarly.
2051         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2052
2053 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
2054
2055         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2056         __EH_FRAME_END__ and accept eh frames into data section.
2057         Add ctor and dtor sections.
2058
2059 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2060
2061         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2062         (auto-export): Fix indentation.
2063
2064 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2065
2066         * pe-dll.c (autofilter_objectlist):  Add startup objects
2067         for profiling.
2068         (auto-export): Constify char * p.
2069         Extract file basename and use strcmp rather than ststr
2070         for object lookup.
2071
2072 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
2073
2074         * ldmain.c (get_emulation): Improve comment about the handling
2075         of -mipsN options.
2076
2077 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
2078
2079         * po/POTFILES.in: Regenerate.
2080
2081 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
2082
2083         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2084         -z nocopyreloc and -z nocombreloc usage strings.
2085
2086 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
2087
2088         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2089         in usage.
2090
2091 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
2092
2093         * scripttempl/armaout.sc: Place .bss section after end of aligned
2094         data section to match behaviour of aout code in constructrion of
2095         header.
2096
2097 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2098
2099         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2100         startup files for mingw32 dlls to list.
2101
2102 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
2103
2104         * emultempl/elf32.em: Fix shell 'if' usage for portability.
2105
2106 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2107
2108         * configure.tgt (targ): Add arm9e-*-elf.
2109
2110 2001-10-05  H.J. Lu  <hjl@gnu.org>
2111
2112         * genscripts.sh: Fix a typo in the last change.
2113
2114 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
2115
2116         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2117         -z nocombreloc in usage.
2118
2119 2001-10-03  Jim Blandy  <jimb@redhat.com>
2120
2121         * genscripts.sh: Include a comment at the top of each generated
2122         script, explaining its purpose.
2123
2124 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
2125
2126         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2127         * NEWS: Mention -z nocopyreloc.
2128         * ld.texinfo (Options): Describe nocopyreloc.
2129
2130 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
2131
2132         * configure: Regenerate.
2133
2134 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
2135
2136         * ldver.h (ld_program_version): Remove declaration.
2137         * lexsup.c (parse_args): Move printing of copyright message..
2138         * ldver.c (ldversion): .. to here.
2139         Use BFD_VERSION_STRING in place of BFD_VERSION.
2140         (ld_program_version): Remove.
2141         * Makefile.am (Makefile): Depend on bfd/configure.in.
2142         Run "make dep-am".
2143         * Makefile.in: Regenerate.
2144
2145 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
2146
2147         * Makefile.am: Update dependencies with "make dep-am".
2148         * Makefile.in: Regenerate.
2149
2150 2001-09-29  John Reiser  <jreiser@BitWagon.com>
2151
2152         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2153         * lexsup.c: Add --no-define-common commandline option.
2154         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2155         * ldlex.l: Likewise.
2156         * ld.h: Add command_line.inhibit_common_definition.
2157         * ldmain.c (main): Initialize.
2158         * ld.texinfo: Document.
2159
2160 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
2161
2162         * ldlang.c (section_already_linked): Remove assignment to kept_section.
2163
2164 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
2165
2166         * ldmisc.c (USE_STDARG): Remove.
2167         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2168         (einfo): Likewise.
2169         (minfo): Likewise.
2170         (lfinfo): Likewise.
2171
2172         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2173         declarations.  Update copyright.
2174
2175 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2176
2177         * pe-dll.c: Remove obsoleted declaration of
2178         pe_get_data_import_dll_name.
2179         (pe_create_import_fixup): Fix thinko.
2180
2181         * ld.texinfo(enable-auto-import): Clarify the explanation.
2182
2183 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
2184
2185         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2186         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2187         DLL_SUPPORT controlled code.
2188
2189 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2190
2191         * emultempl/pe.em(pe_data_import_dll): Make static.
2192         (pe_get_data_import_dll_name): New accessor function.
2193         * pe-dll.c(pe_create_import_fixup): call
2194         pe_get_data_import_dll_name() from pe.em, instead of
2195         directly accessing pe_data_import_dll variable from pe.em.
2196
2197 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
2198
2199         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2200         (def_file_add_directive): Use ISSPACE instead of isspace.
2201         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2202         isdigit/isxdigit/isalpha/isalnum.
2203         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2204         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2205         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2206         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2207         isalnum.
2208         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2209         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2210         isupper/tolower.
2211         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2212         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2213         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2214         (ctor_prio): Use ISDIGIT instead of isdigit.
2215         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2216         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2217         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2218         isupper/tolower.
2219         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2220         (stricpy): Use TOLOWER instead of isupper/tolower.
2221         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2222         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2223         (lex_warn_invalid): Use ISPRINT instead of isprint.
2224         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2225         (main): For gettext, also set the LC_CTYPE locate facet.
2226         (add_keepsyms_file): Use ISSPACE instead of isspace.
2227         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2228         (is_num, parse_args): Use ISDIGIT instead of isdigit.
2229         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2230         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2231         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2232         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2233         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2234         (quoteput): Use ISSPACE instead of isspace.
2235         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2236         instead of isalnum.
2237
2238 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
2239
2240         * deffilep.y (def_stash_module): Constify "name" param.
2241
2242         * pe-dll.c: Replace CONST with const throughout.
2243         (quick_symbol): Constify "n1", "n2", "n3" params.
2244         (make_singleton_name_thunk): Constify "import" param.  Make
2245         "buffer_len" a size_t.
2246         (make_import_fixup_entry): Constify "name", "fixup_name",
2247         "dll_symname" params.
2248         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
2249         (pe_get32): Likewise.
2250         (pe_implied_import_dll): Likewise.
2251
2252         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2253         (sort_by_section_name): Likewise.
2254
2255         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2256         (make_import_fixup): Cast printf arg, rel->address to long rather
2257         than int.
2258         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2259
2260 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
2261
2262         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2263         defines BufferSize.  Increase buffer size by one.
2264
2265 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
2266
2267         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2268
2269 2001-09-14  Kevin Lo <kevlo@openbsd.org>
2270
2271         * configure.tgt: Add arm-openbsd target.
2272
2273 2001-09-12  H.J. Lu  <hjl@gnu.org>
2274
2275         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2276         eelf64lppc.o to ...
2277         (ALL_64_EMULATIONS): Here.
2278         * Makefile.in: Regenerated.
2279
2280 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2281
2282         * emultempl/pe.em(make_import_fixup): change signature to
2283         take asection as well as arelec; we need this for proper
2284         error reporting.  Only call pe_create_import_fixup() if
2285         there is no attempt to add a constant addend to the reloc;
2286         otherwise, report error condition.
2287         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2288         since final argument is a pointer to make_import_fixup().
2289         Change call to cb() to match make_import_fixup() signature.
2290         (make_import_fixup_mark): make buffer_len unsigned.
2291         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2292
2293 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
2294
2295         * ld.texinfo: add verbose documentation for auto-import
2296         direct-addressing workaround, to compliment the terse
2297         error message.
2298
2299 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
2300
2301         * scripttempl/v850.sc: Add gcc_except_table sections.
2302
2303 2001-09-11  Jeffrey A Law  (law@cygnus.com)
2304
2305         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2306         * emulparams/h8300self.sh: Similarly.
2307
2308 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2309
2310         * ld.texinfo (Options, --stack): Correct default value for stack
2311         reserve.
2312
2313 2001-09-05  Tom Rix <trix@redhat.com>
2314
2315         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2316
2317 2001-09-03  Andreas Jaeger  <aj@suse.de>
2318
2319         * emultempl/beos.em: Declare prototypes for comparions functions,
2320         adjust definitions.
2321
2322 2001-09-02  Andreas Jaeger  <aj@suse.de>
2323
2324         * emultempl/aix.em: Add missing prototype.
2325         * emultempl/lnk960.em: Likewise.
2326         * emultempl/vanilla.em: Likewise.
2327         * emultempl/armcoff.em: Likewise.
2328         * emultempl/armelf_oabi.em: Likewise.
2329         * emultempl/beos.em: Likewise.
2330         * emultempl/gld960c.em: Likewise.
2331         * emultempl/gld960.em: Likewise.
2332
2333         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2334         for prototype declaration.
2335
2336 2001-08-31  Eric Christopher  <echristo@redhat.com>
2337             Jason Eckhardt  <jle@redhat.com>
2338
2339         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2340
2341 2001-08-31  Andreas Jaeger  <aj@suse.de>
2342
2343         * emultempl/pe.em: Add missing prototypes.
2344         (gld_${EMULATION_NAME}_after_open): Remove extra args to
2345         pe_find_data_imports.
2346         (pr_sym): Add unused attribute.
2347
2348 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2349
2350         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2351         default from coff to elf.
2352
2353 2001-08-29  Jeff Law <law@redhat.com>
2354
2355         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
2356         ARCH specification.
2357         * emulparams/h8300self.sh: Similarly.
2358
2359 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
2360
2361         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2362         eh8300self.o .
2363         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2364         * configure.tgt (h8300-*-elf*): New case.
2365         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2366         * emulparams/h8300self.sh: New file.
2367         * Makefile.in: Regenerated.
2368
2369 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2370
2371         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2372         with macro name.
2373
2374 2001-08-27  Linus Nordberg  <linus@swox.com>
2375             Alan Modra  <amodra@bigpond.net.au>
2376
2377         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2378         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2379         Run "make dep-am"
2380         * Makefile.in: Regenerate.
2381         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2382         entries to correct alphabetical position.
2383         * emulparams/elf64ppc.sh: New.
2384         * emulparams/elf64lppc.sh: New.
2385
2386 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2387
2388         * ldmain.c (main): Declare BSIZE as static.
2389
2390 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2391
2392         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2393         into .rel.dyn resp. .rela.dyn if combreloc.
2394         (get_script): If .x linker script is equal to .xn, only put it
2395         once into the binary.
2396         Add .xc and .xsc scripts.
2397         (parse_args): Handle -z combreloc and -z nocombreloc.
2398         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2399         For .xc and .xsc scripts put all .rel* or .rela* input sections
2400         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2401         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2402         is elf.
2403         Strip trailing whitespace from script.
2404         Generate .xc and .xsc scripts if requested.
2405         * ldmain.c (main): Initialize link_info.combreloc and
2406         link_info.spare_dynamic_tags.
2407         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2408         (ld_options): Add --spare-dynamic-tags option.
2409         (parse_args): Likewise.
2410         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2411         * ldint.texinfo: Document .xc and .xsc linker scripts.
2412         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2413
2414 2001-08-22  H.J. Lu  <hjl@gnu.org>
2415
2416         * emulparams/elf32fr30.sh: Add a newline.
2417
2418 2001-08-21  Andreas Jaeger  <aj@suse.de>
2419
2420         * deffilep.y: Add missing prototypes.
2421         * pe-dll.c: Likewise.
2422
2423 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2424
2425         * ldlang.c (insert_pad): Fix typos in last patch.
2426
2427         * ldlang.c: When traversing lang_statement_union_type lists,
2428         consistently use "header.next" rather than "next".
2429         * mpw-eppcmac.c: Likewise.
2430         * emultempl/beos.em: Likewise.
2431         * emultempl/hppaelf.em: Likewise.
2432         * emultempl/pe.em: Likewise.
2433         * ldlang.h (union lang_statement_union): Remove "next" field.
2434
2435         * ldlang.c (insert_pad): Use offsetof macro.
2436         (lang_size_sections): Always neuter padding statements.
2437         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2438
2439         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2440         passed to lang_size_sections.
2441         (pe_exe_fill_sections): Likewise.
2442         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2443         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2444
2445 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2446
2447         * emultempl/aix.em: Formatting fixes.
2448
2449 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2450
2451         * ldlang.c (insert_pad): Make use of an existing pad statement if
2452         available.  Move code calculating alignment, adjusting section
2453         alignment power, and adjusting dot to ..
2454         (size_input_section): .. here.  Remove unused relax param.
2455         (lang_size_sections): Change boolean `relax' param to boolean *.
2456         Adjust call to size_input_section.  Make use of insert_pad to
2457         place pad after the assignment statement.  If relaxing, zap
2458         padding statements.
2459         (reset_memory_regions): Reset output_bfd section sizes too.
2460         (relax_again): Move to..
2461         (lang_process): ..here.  Adjust call to lang_size_sections, and
2462         remove duplicated code.
2463         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2464
2465 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2466
2467         * ld.texinfo: Document that fill values now use the four least
2468         significant bytes.
2469         * emulparams/elf32fr30.sh (NOP): Update.
2470         * emulparams/elf32mcore.sh: Likewise.
2471         * emulparams/elf64_s390.sh: Likewise.
2472         * emulparams/elf_i386.sh: Likewise.
2473         * emulparams/elf_i386_be.sh: Likewise.
2474         * emulparams/elf_i386_chaos.sh: Likewise.
2475         * emulparams/elf_i386_ldso.sh: Likewise.
2476         * emulparams/elf_s390.sh: Likewise.
2477         * emulparams/elf_x86_64.sh: Likewise.
2478         * emulparams/i386moss.sh: Likewise.
2479         * emulparams/i386nw.sh: Likewise.
2480         * emulparams/m68kelf.sh: Likewise.
2481         * scripttempl/elf.sc: Update NOP comment.
2482         * scripttempl/elfi370.sc: Likewise.
2483         * scripttempl/elfm68hc11.sc: Likewise.
2484         * scripttempl/elfm68hc12.sc: Likewise.
2485         * scripttempl/nw.sc: Likewise.
2486
2487 2001-08-15  Tom Rix <trix@redhat.com>
2488
2489         * ldgram.y (saved_script_handle): Initialize to NULL.
2490         * ldmain.c (main): Change check on saved_script_handle.
2491
2492 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2493
2494         * emultempl/elf32.em: Formatting fixes.
2495         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2496         looking at sec->owner.
2497         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2498         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2499         unused code, and reorganize orphan section placement code.
2500
2501         * ldlang.c (wild_doit): Rename to lang_add_section.
2502         * ldlang.h: Here too.
2503         * mpw-elfmips.c: And here.
2504         * emultempl/beos.em: And here.
2505         * emultempl/elf32.em: And here.
2506         * emultempl/hppaelf.em: And here.
2507         * emultempl/pe.em: And here.
2508
2509 2001-08-13  Richard Henderson  <rth@redhat.com>
2510
2511         * emultempl/needrelax.em: New file.
2512         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2513         * Makefile.am (eelf64_ia64.c): Depend on it.
2514         * Makefile.in: Rebuild.
2515
2516 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2517
2518         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2519         output_section is set non-NULL.
2520
2521         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2522         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2523         needlessly create an output_section_statement.  Treat a correctly
2524         named output_section_statement with NULL bfd_section as compatible.
2525
2526 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2527
2528         * emultempl/generic.em: Support EXTRA_EM_FILE.
2529         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2530         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2531         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2532         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2533         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2534         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2535         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2536         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2537         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2538         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2539
2540 2001-08-12  Richard Henderson  <rth@redhat.com>
2541
2542         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2543         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2544         scripttempl/v850.sc: Keep .jcr data.
2545
2546 2001-08-12  H.J. Lu  <hjl@gnu.org>
2547             Andrew Haley  <aph@cambridge.redhat.com>
2548             Nick Clifton  <nickc@redhat.com>
2549
2550         * ldgram.y (had_script): Change name to saved_script_handle.
2551         Change type to file handle.
2552         * ld.h (had_script): Rename and retype.
2553         * ldfile.c (ldfile_open_command_file): Save the file handle
2554         used in saved_script_handle.
2555         * lexsup.c (parse_args): Do not allow -c option to alter
2556         saved_script_handle.
2557         * ldmain.c (main): Print out the linker script used if
2558         --verbose is given.  Check saved_script_handle to obtain the
2559         external linker script used, or if NULL, dump the builtin
2560         script.
2561         * ld.texinfo: Document that --verbose now dumps the linker
2562         script used, regardless of whether it was an internal or an
2563         external script.
2564
2565 2001-08-10  Andreas Jaeger  <aj@suse.de>
2566
2567         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2568         to build warnings.
2569         * configure: Regenerate.
2570
2571 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2572
2573         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2574
2575         * scripttempl/elf.sc: Move non-text .dynamic section before
2576         .plt/.got/.sdata* group.
2577         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2578         (OTHER_SDATA_SECTIONS): Add.
2579         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2580         OTHER_GOT_SECTIONS.
2581         * emulparams/crislinux.sh: Likewise.
2582         * emulparams/elf32b4300.sh: Likewise.
2583         * emulparams/elf32bmip.sh: Likewise.
2584         * emulparams/elf32bmipn32.sh: Likewise.
2585         * emulparams/elf32bsmip.sh: Likewise.
2586         * emulparams/elf32btsmip.sh: Likewise.
2587         * emulparams/elf32ebmip.sh: Likewise.
2588         * emulparams/elf32elmip.sh: Likewise.
2589         * emulparams/elf32l4300.sh: Likewise.
2590         * emulparams/elf32lmip.sh: Likewise.
2591         * emulparams/elf32lsmip.sh: Likewise.
2592         * emulparams/elf32ltsmip.sh: Likewise.
2593         * emulparams/elf64bmip.sh: Likewise.
2594         * emulparams/elf64btsmip.sh: Likewise.
2595         * emulparams/elf64ltsmip.sh: Likewise.
2596
2597 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2598
2599         * genscripts.sh: Source the emulparams script before each output
2600         script is generated so that variables like `RELOCATING' may affect
2601         variables defined in the emulparams script.
2602
2603 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2604
2605         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2606         order.
2607
2608         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2609         ie. iterate over wild_statement.section_list.
2610         (gld${EMULATION_NAME}_place_orphan): Likewise.
2611
2612 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2613
2614         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2615         .fini[0-4] sections used by _exit
2616         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2617         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2618         * scripttempl/elfm68hc11.sc: Likewise.
2619
2620 2001-08-03  H.J. Lu  <hjl@gnu.org>
2621
2622         * emultempl/beos.em (init): Add the missing initialization.
2623
2624 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2625
2626         * ld.texinfo (Input Section Basics): Clarify ordering of output
2627         sections.
2628         * ldlang.c (callback_t): Add wildcard_list param.
2629         (walk_wild_section): Remove "section" param.  Rewrite for
2630         lang_wild_statement_type change.  Remove unique_section_p test.
2631         (walk_wild_file): Remove "section" param.
2632         (walk_wild): Remove "section" and "file" params.
2633         (lang_gc_wild): Likewise.
2634         (wild): Likewise.  Modify for lang_wild_statement_type change.
2635         (wild_sort): Likewise.  Add "sec" param.
2636         (gc_section_callback): Likewise.
2637         (output_section_callback): Likewise.  Do unique_section_p test.
2638         (map_input_to_output_sections): Modify call to wild.
2639         (lang_gc_sections_1): Likewise.
2640         (print_wild_statement): Modify for lang_wild_statement_type
2641         change.
2642         (lang_add_wild): Replace filename, filenames_sorted param with
2643         filespec.  Replace section_name, sections_sorted,
2644         exclude_filename_list with section_list.
2645         * ldlang.h (lang_add_wild): Here too.
2646         (lang_wild_statement_type): Replace section_name, sections_sorted,
2647         and exclude_filename_list with section_list.
2648         * ldgram.y (current_file): Delete.
2649         (%union): Add wildcard_list.
2650         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2651         rather than calling lang_add_wild for each entry.
2652         (input_section_spec_no_keep): Call lang_add_wild here instead.
2653         * ld.h (struct wildcard_list): Declare.
2654         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2655
2656 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2657
2658         * ldmain.c (main): initialize link_info.pei386_auto_import
2659         * pe-dll.c: new tables for auto-export filtering
2660         (auto_export): change API, pass abfd for contextual filtering.
2661         Loop thru tables of excluded symbols instead of comparing
2662         "by hand".
2663
2664 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2665
2666         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2667         static variable current_sec (static struct sec *). Add
2668         forward declaration for add_bfd_to_link.
2669         (process_def_file): Don't export undefined symbols. Do not
2670         export symbols starting with  "_imp__".  Call auto_export()
2671         with new API.
2672         (pe_walk_relocs_of_symbol): New function.
2673         (generate_reloc): add optional extra debugging
2674         (pe_dll_generate_def_file): eliminate extraneous initial blank
2675         line in output
2676         (make_one): enlarge symtab to make room for __nm__ symbols
2677         (DATA auto-import support).
2678         (make_singleton_name_thunk): New function.
2679         (make_import_fixup_mark): New function.
2680         (make_import_fixup_entry): New function.
2681         (pe_create_import_fixup): New function.
2682         (add_bfd_to_link): Specify that 'name' argument is a CONST
2683         char *.
2684         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2685         declare new functions pe_walk_relocs_of_symbol and
2686         pe_create_import_fixup.
2687         * emultempl/pe.em: add new options --enable-auto-import,
2688         --disable-auto-import, and --enable-extra-pe-debug.
2689         (make_import_fixup): New function.
2690         (pe_find_data_imports): New function.
2691         (pr_sym): New function.
2692         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2693         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2694         CODE.
2695
2696 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2697
2698         * ld.texinfo: add additional documentation for
2699         --export-all-symbols.  Document --out-implib,
2700         --enable-auto-image-base, --disable-auto-image-base,
2701         --dll-search-prefix, --enable-auto-import, and
2702         --disable-auto-import.
2703         * ldint.texinfo: Add detailed documentation on auto-import
2704         implementation.
2705
2706 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2707
2708         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2709         example.
2710
2711 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2712
2713         * Makefile.am: Update dependencies with "make dep-am".
2714         * Makefile.in: Regenerate
2715
2716 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2717
2718         * ldcref.c (check_section_sym_xref): New function.
2719         (check_nocrossrefs): Call it.
2720         (check_nocrossref): Interate over h->refs here instead of..
2721         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2722         rather than hash_entry pointers.
2723         (struct check_refs_info): Keep symbol name rather than hash entry.
2724         Remove "same".
2725         (check_reloc_refs): Tweak for above changes in check_refs_info.
2726         Only report references to section syms when symname is NULL to
2727         prevent duplicate messages for the same reloc.
2728
2729 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2730
2731         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2732         available.  Do not print NULL trees.
2733         (exp_print_token): Print unknown tokens with values > 126 as
2734         decimal values not ASCII characters.
2735
2736         * ldlang.c (lang_leave_overlay): If a region is specified assign
2737         it to all sections inside the overlay unless they have been
2738         assigned to the own, non-default, memory region.
2739
2740         * README: Add header for consistency with other README files.
2741
2742 2001-07-14  H.J. Lu  <hjl@gnu.org>
2743
2744         * emultempl/elf32.em (output_prev_sec_find): Never return
2745         bfd_abs_section_ptr, bfd_com_section_ptr nor
2746         bfd_und_section_ptr.
2747
2748 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2749
2750         * Makefile.am (em32relf.c): Change dependency from generic.em to
2751         elf32.em.
2752         * Makefile.in: Regenerate.
2753
2754 2001-07-14  matthew green  <mrg@eterna.com.au>
2755
2756         * configure.tgt (i386-*-netbsdelf*): New target.
2757         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2758
2759 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2760
2761         * emultempl/elf32.em (output_prev_sec_find): New.
2762         (place_orphan): Use it.
2763
2764 2001-07-11  H.J. Lu  <hjl@gnu.org>
2765
2766         * ldmain.c (main): Fix typos in the last change.
2767
2768 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2769
2770         * ldmain.c (main): Disallow -F and -f without -shared.
2771
2772 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2773
2774         * emultempl/pe.em (after_open): Check for the output_bfd not
2775         having any coff_data structure allocated to it.
2776
2777 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2778
2779         * emultempl/elf32.em: Do not assuming that contents of the buffer
2780         returned from basename function will remain unchanged accross other
2781         function calls.
2782
2783 2001-07-03  H.J. Lu  <hjl@gnu.org>
2784
2785         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2786         2001-07-03. It creates dynamic entries even for static binaries.
2787
2788 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
2789
2790         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2791         (DYNAMIC): Use it to reserve few dynamic entries for
2792         post-linking tools.
2793
2794 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
2795
2796         * emulparams/hppa64linux.sh: New file.
2797         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2798         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2799         (ehppa64linux.c): Add rule to make it.
2800         Run "make dep-am".
2801         * Makefile.in: Regenerate.
2802
2803 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
2804
2805         * ld.texinfo (Options, -r): Mention restrictions when using
2806         different object formats.
2807
2808 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
2809
2810         * ldlang.c (lang_check): Emit fatal error if relocatable link
2811         between different object flavours with relocations in input.
2812
2813 2001-06-19  H.J. Lu  <hjl@gnu.org>
2814
2815         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2816         (--version-script): Mention the language support.
2817
2818 2001-06-19  H.J. Lu <hjl@gnu.org>
2819
2820         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2821
2822 2001-06-18  H.J. Lu <hjl@gnu.org>
2823
2824         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2825         (diststuff): Add $(MANS).
2826         * Makefile.in: Regenerated.
2827
2828         * ld.1: Removed.
2829
2830 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
2831
2832         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2833         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2834         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2835         * ld.h (args_type): Remove member export_dynamic.  All users
2836         changed to use struct bfd_link_info member.
2837
2838         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2839         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2840         * Makefile.in: Regenerate.
2841
2842 2001-06-18  H.J. Lu  <hjl@gnu.org>
2843
2844         * ldlang.c (init_os): Add the newline to the einfo call.
2845         (lang_check): Likewise.
2846         (lang_do_version_exports_section): Likewise.
2847
2848 2001-06-15  H.J. Lu  <hjl@gnu.org>
2849
2850         * lexsup.c (parse_args); Save optind to report unrecognized
2851         option.
2852
2853 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
2854
2855         * ldlang.c (lang_check): Emit fatal error if relocatable link
2856         between different object flavours.
2857
2858         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2859         Set new link_info member export_dynamic.
2860         * ldmain.c (main): Initialize new link_info member export_dynamic.
2861
2862 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
2863
2864         * ldlang.c (walk_wild): Only call walk_wild_file if
2865         lookup_name returns something.
2866         (lookup_name): If load_symbols fails, return NULL.
2867         (load_symbols): Change to a boolean function.
2868         (open_input_bfds): If load_symbols fails then do not make the
2869         executable.
2870
2871 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
2872
2873         * ldlang.c (record_bfd_errors): Remove.
2874
2875         * emultempl/aix.em: Fix copyright dates.
2876
2877 2001-06-07  Andreas Jaeger  <aj@suse.de>
2878
2879         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2880         (TEXT_START_ADDR): Likewise.
2881
2882 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
2883
2884         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2885
2886 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2887
2888         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2889
2890 2001-05-31  H.J. Lu  <hjl@gnu.org>
2891
2892         * ldlang.c (open_input_bfds): Don't change the bfd error
2893         handler whilst loading symbols.
2894
2895 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
2896
2897         * configure.tgt: Remove i370-mvs architecture, it is not currently
2898         supported.
2899
2900 2001-05-25  H.J. Lu  <hjl@gnu.org>
2901
2902         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2903         like emulparams/aixppc.sh.
2904
2905 2001-05-25  H.J. Lu  <hjl@gnu.org>
2906
2907         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2908         setting of output_filename after bfd_scan_arch.
2909         * emultempl/pe.em: Likewise.
2910
2911 2001-05-25  H.J. Lu  <hjl@gnu.org>
2912
2913         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2914         like emulparams/aixppc.sh.
2915
2916         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2917         instead of ${srcdir}/emultempl/stringify.sed.
2918
2919 2001-05-25  Timothy Wall  <twall@oculustech.com>
2920
2921         * emulparams/elf64_aix.sh: Change settings to match IBM linker
2922         output.
2923
2924 2001-05-25  Alan Modra  <amodra@one.net.au>
2925
2926         * configure.host: Replace linuxoldld with linux*oldld.
2927         * configure.tgt: Likewise.
2928
2929 2001-05-24  H.J. Lu  <hjl@gnu.org>
2930
2931         * emultempl/stringify.sed: Removed again.
2932
2933 2001-05-24  H.J. Lu  <hjl@gnu.org>
2934
2935         * emultempl/aix.em (OUTPUT_ARCH): Defined.
2936         (gld${EMULATION_NAME}_before_parse): Initialize
2937         ldfile_output_architecture, ldfile_output_machine and
2938         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2939         * emultempl/beos.em: Likewise.
2940         * emultempl/elf32.em: Likewise.
2941         * emultempl/linux.em: Likewise.
2942         * emultempl/mipsecoff.em: Likewise.
2943         * emultempl/pe.em: Likewise.
2944         * emultempl/sunos.em: Likewise.
2945
2946 2001-05-24 Tom Rix <trix@redhat.com>
2947
2948         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2949         udate import file format.
2950         (change_symbol_mode) New, same
2951         (is_syscall) New, same
2952         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2953         * emulparams/aixppc64.sh : same
2954         * emulparams/aixrs6.sh : same
2955         * emulparams/ppcmacos.sh : same
2956         * emultempl/aix.em : use strtoull to parse options
2957         * Makefile.am : add eaixppc64 emulation for xcoff64
2958         * Makefile.in : same
2959         * configure.tgt : same
2960
2961         * scripttempl/aix.sc : default text section offset to 0x10000000
2962         default data section offset to 0x20000000
2963         add .sv3264 and .sv64 pseudo sections
2964         loader and debug sections use the currect section offset.
2965
2966         * emultempl/aix.em : Add xcoff64 support
2967         Add -binitfini support
2968         (gld${EMULATION_NAME}_before_parse) -binitfini
2969         (gld${EMULATION_NAME}_parse_args) same
2970         (gld${EMULATION_NAME}_before_allocation) format change for special
2971         sections
2972
2973         * emulparams/aixppc64.sh : New file for xcoff64 support
2974
2975 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
2976
2977         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2978         variable to avoid non-portable shell construct.
2979
2980 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2981
2982         * ldmain.c (get_emulation): Add -mips5 command line argument.
2983
2984 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
2985
2986         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2987         (ELF_INTERPRETER_NAME): Define it.
2988         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2989         it.
2990         * configure.tgt (targ_emul, targ_extra_emuls)
2991         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2992         as primary, elf_i386 as extra.
2993         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2994         (eelf_i386_ldso.c): New rule.
2995         * Makefile.in: Rebuilt.
2996
2997 2001-05-22  Nick Clifton  <nickc@redhat.com>
2998
2999         * lexsup.c (ld_options):  Allow -I to be an alias for
3000         --dynamic-linker.  This is for Solaris compatability.
3001         * ld.texinfo: Document that -I can be used.
3002         * ld.1: Regenerate.
3003
3004 2001-05-16  Alan Modra  <amodra@one.net.au>
3005
3006         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3007         whether an input section is the first one assigned to an output
3008         section.
3009         Assorted formatting fixes.
3010
3011 2001-05-14  DJ Delorie  <dj@delorie.com>
3012
3013         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3014         * Makefile.in: Ditto.
3015
3016 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3017
3018         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3019         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3020         output sections.
3021         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3022
3023 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3024
3025         * ldlang.c (lang_process): Call bfd_merge_sections.
3026
3027 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3028
3029         * ldgram.y: Fix typo.
3030
3031 2001-05-03  H.J. Lu  <hjl@gnu.org>
3032
3033         * emultempl/elf32.em: Include "libiberty.h".
3034         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3035         basename of the bfd filename.
3036         (gld${EMULATION_NAME}_stat_needed): Likewise.
3037         (gld${EMULATION_NAME}_try_needed): Likewise.
3038         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3039
3040 2001-05-02  H.J. Lu  <hjl@gnu.org>
3041
3042         * emultempl/pe.em: Include <ctype.h>.
3043
3044 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
3045
3046         * emulparams/elf32openrisc.sh: New file.
3047
3048         * Makefile.am: Add OpenRISC target.
3049         * Makefile.in: Regenerated.
3050
3051         * configure.tgt: Add openrisc-*-* mapping.
3052
3053 2001-05-02  Nick Clifton  <nickc@redhat.com>
3054
3055         * emultempl/aix.em: Replace buystring with xstrdup.
3056         * emultempl/beos.em: Replace buystring with xstrdup.
3057
3058 2001-05-02  H.J. Lu  <hjl@gnu.org>
3059
3060         * ldfile.c: Include "libiberty.h".
3061         * ldlex.l: Likewise.
3062
3063         * ldmisc.c (buystring): Removed.
3064         * ldmisc.h: Likewise.
3065
3066         * ldfile.c: Replace buystring with xstrdup.
3067         * ldlang.c: Likewise.
3068         * ldlex.l: Likewise.
3069         * ldmain.c: Likewise.
3070         * ldmisc.c: Likewise.
3071         * lexsup.c: Likewise.
3072         * mpw-eppcmac.c: Likewise.
3073
3074 2001-04-30  Andreas Jaeger  <aj@suse.de>
3075
3076         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3077
3078 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3079
3080         * ldlang.c (load_symbols): Give emulation a chance
3081         to process unrecognized file before fatal error is
3082         reported, not after.
3083
3084 2001-04-27  Sean McNeil <sean@mcneil.com>
3085
3086         * configure.tgt: Add arm-vxworks target.
3087         * scripttempl/armcoff.sc: Support .text or .data as a section name
3088         prefix.
3089         Define _etext.
3090
3091 2001-04-13  J.T. Conklin  <jtc@redback.com>
3092
3093         * ld.texinfo: Document --fatal-warnings.
3094         * ld.1: Regenerate.
3095
3096         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3097         warnings have been turned into errors.
3098         * lexsup.c (OPTION_WARN_FATAL): Define.
3099         (ld_options): Entry for --fatal-warnings.
3100         (parse_args): Handle OPTION_WARN_FATAL.
3101         * ld.h (ld_config_type): Add fatal_warnings field.
3102
3103 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
3104
3105         * ldmain.c (main): Default to discard_sec_merge.
3106         * lexsup.c (OPTION_DISCARD_NONE): Define.
3107         (ld_options): Add --discard-none.
3108         (parse_args): Handle OPTION_DISCARD_NONE.
3109         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3110         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3111         all its input sections match.
3112
3113 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
3114
3115         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3116         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3117         (eelf32ltsmip.c): New target.
3118         (eelf64btsmip.c): Likewise.
3119         (eelf64ltsmip.c): Likewise.
3120         * Makefile.in: Regenerated.
3121
3122         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3123         target.
3124         (mips*-*-linux-gnu*): Likewise.
3125
3126         * emulparams/elf32ltsmip.sh: New. Traditional little endian
3127         MIPS taget.
3128         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3129         target.
3130         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3131         endian target.
3132
3133 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
3134
3135         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3136         correct value of __Stext here.
3137         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3138         .startup section.
3139
3140         * emulparams/crislinux.sh: Remove FIXME.
3141
3142 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
3143
3144         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3145         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3146
3147 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
3148
3149         * configure.tgt (cris-*-*): Change default emulation to criself.
3150         (cris-*-*aout*): New rule.
3151
3152 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
3153
3154         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3155         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3156
3157 2001-03-26  Andreas Jaeger  <aj@suse.de>
3158
3159         * ld.texinfo (Overview): Fix syntax in texi code.
3160
3161 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3162
3163         * ld.texinfo: Put @c man indications to generate the ld man page.
3164         When generating man, define all the variables.  Define SEEALSO
3165         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
3166         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3167         (ld.1): Generate from ld.texinfo.
3168         * Makefile.in: Regenerate.
3169
3170 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
3171
3172         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3173         and '-fdata-sections'. Set the VMA of STABS sections to zero.
3174
3175 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3176
3177         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3178         is an absolute path look only for this file and not along the path.
3179
3180 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3181
3182         * emultempl/elf32.em (OPTION_GROUP): New macro.
3183         Add new option Bgroup to longopts.
3184         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3185         (gld*_list_options): Add -Bgroup and -z defs.
3186         * ld.1: Document -Bgroup and -z defs.
3187         * ld.texinfo: Likewise.
3188
3189 2001-03-07  Michael Meissner  <meissner@redhat.com>
3190
3191         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3192         with sections created by -fdata-sections.
3193         (.dynbss,.bss): Ditto.
3194
3195 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
3196
3197         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3198         after_allocation_default, not gld..._before_allocation.
3199
3200 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
3201
3202         * configure.in (BFD_VERSION): New.
3203         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3204         * configure: Regenerate.
3205         * Makefile.am: Run "make dep-am"
3206         * Makefile.in: Regenerate.
3207
3208 2001-02-26  Timothy Wall  <twall@cygnus.com>
3209
3210         * emulparams/elf64_aix.sh: Add additional read-only sections;
3211         uncomment lines which are now required.
3212
3213 2001-02-26  H.J. Lu  <hjl@gnu.org>
3214
3215         * ldlang.c (open_input_bfds): Set the bfd error handler so
3216         that problems can be caught whilst loading symbols.
3217         (record_bfd_errors): New function: Report BFD errors and mark
3218         the executable output as being invalid.
3219
3220 2001-02-22  Timothy Wall  <twall@cygnus.com>
3221
3222         * configure.host: Add configuration for ia64-*-aix*.
3223         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3224         Add dependencies for eelf64_aix.c.
3225         * Makefile.in: Regenerate.
3226         * configure.tgt: Add ia64-*-aix* mapping.
3227         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3228         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3229         AIX-specific test.
3230
3231 2001-02-20  H.J. Lu  <hjl@gnu.org>
3232
3233         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3234         false if we found the file.
3235
3236 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
3237
3238         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3239         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3240
3241 2001-02-18  lars brinkhoff  <lars@nocrew.org>
3242
3243         * Makefile.am: Add PDP-11 target.
3244         * configure.tgt: Likewise.
3245         * emulparams/pdp11.sh: New file.
3246
3247 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
3248
3249         * configure.host: Add a generic FreeBSD configuration entry such that
3250         all [modern] FreeBSD systems on all platforms will look the same.
3251
3252 2001-02-14  H.J. Lu  <hjl@gnu.org>
3253
3254         * configure.tgt: Remove mention of earmelf_linux26.
3255
3256 2001-02-13  Richard Henderson  <rth@redhat.com>
3257
3258         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3259
3260 2001-02-13  H.J. Lu  <hjl@gnu.org>
3261
3262         * ldexp.h (node_type): Add etree_provided.
3263         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3264         type to etree_provided if defined by PROVIDE. Allow updating
3265         for etree_provided.
3266         (exp_print_tree): Handle etree_provided.
3267         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3268         etree_provided.
3269
3270 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
3271
3272         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3273         .IA_64.unwind.* pattern to unwind table section and
3274         .IA_64.unwind_info* pattern to unwind info section.
3275
3276 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3277
3278         * Makefile.am: Add linux target for S/390.
3279         * Makefile.in: Likewise.
3280         * configure.host: Likewise.
3281         * configure.tgt: Likewise.
3282         * emulparams/elf64_s390.sh: New file.
3283         * emulparams/elf_s390.sh: New file.
3284
3285 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3286
3287         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3288         targ_extra_libpath.
3289         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3290
3291 2001-02-06  Philip Blundell  <philb@gnu.org>
3292
3293         * Makefile.am: Remove mention of earmelf_linux26.
3294         * Makefile.in: Regenerate.
3295
3296 2001-02-04  Philip Blundell  <philb@gnu.org>
3297
3298         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3299         * emulparams/armelf_linux26.sh: Delete.
3300         * configure.tgt: Remove mention of armelf_linux26 emulation.
3301
3302 2001-02-01  Nick Clifton  <nickc@redhat.com>
3303
3304         * ld.1: Replace occurances of -oformat with --oformat.
3305
3306 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
3307
3308         * ldlang.c (lang_leave_overlay): Don't set lma_region when
3309         load_base is specified.
3310
3311 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
3312
3313         * emultempl/elf32.em: Correct spelling in comments and listed
3314         options.
3315
3316 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
3317
3318         * ldlang.c (lang_leave_overlay): Only set lma_region from the
3319         default for the first section of a group of overlay sections.
3320
3321 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
3322
3323         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3324         * Makefile.in: Regenerate.
3325         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3326         Check for null tool_dir.
3327
3328 2001-01-16  Jim Wilson  <wilson@redhat.com>
3329
3330         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3331         and IA_64.unwind.info.
3332
3333 2001-01-16  H.J. Lu  <hjl@gnu.org>
3334
3335         * ldlang.c (lang_check): Merge the private data only if the
3336         input file has contents.
3337
3338 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
3339
3340         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3341
3342         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3343         enabling search for libmilli.  On a relocatable link, make .text
3344         sections unique.
3345         (LDEMUL_AFTER_PARSE): Define.
3346         (hppaelf_finish): Correct spelling of relocatable in comments.
3347
3348         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3349         rummage through the script for sections on the unique list.
3350         Correct length of strncmp for ".note".
3351         (gld${EMULATION_NAME}_check_needed): Rearrange function.
3352
3353         * ldlang.c (unique_section_list): New var.
3354         (unique_section_p): New function.
3355         (walk_wild_section): Don't match sections on unique_section_list.
3356         (lang_add_unique): New function.
3357         Correct spelling of relocatable in comments.
3358
3359         * ldlang.h (struct unique_sections): Declare.
3360         (unique_section_list): Declare.
3361         (unique_section_p): Declare.
3362         (lang_add_unique): Declare.
3363
3364         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3365         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3366
3367         * ld.texinfo (--unique): Update.
3368
3369 2001-01-13  Nick Clifton  <nickc@redhat.com>
3370
3371         * lexsup.c (parse_args): Remove spurious white space.
3372
3373 2001-01-12  Nick Clifton  <nickc@redhat.com>
3374
3375         * lexsup.c (parse_args): Update copyright date.
3376
3377 2001-01-12  Philip Blundell  <pb@futuretv.com>
3378
3379         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3380
3381 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3382
3383         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3384         * scripttempl/h8300h.sc: Fix formatting.
3385         * scripttempl/h8300s.sc: Likewise.
3386         * scripttempl/h8500.sc: Likewise.
3387         * scripttempl/h8500b.sc: Likewise.
3388         * scripttempl/h8500c.sc: Likewise.
3389         * scripttempl/h8500m.sc: Likewise.
3390         * scripttempl/h8500s.sc: Likewise.
3391
3392 2000-01-07  David O'Brien  <obrien@BSDi.com>
3393
3394         * emultempl/elf32.em: Only perform Linux ld hints processing when
3395         targeting Linux.
3396
3397 2001-01-07  Philip Blundell  <philb@gnu.org>
3398
3399         * ld.texinfo (Bug Reporting): Update email address for reports.
3400
3401 2000-12-31  Nick Clifton  <nickc@redhat.com>
3402
3403         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3404         options by checking for a return value of '?' not -1.
3405
3406 2000-12-28  Nick Clifton  <nickc@redhat.com>
3407
3408         * lexsup.c (struct ld_option): Add new enum value:
3409         EXACTLY_TWO_DASHES.
3410         (ld_options[]): Change -omagic, -output and -oformat options
3411         to be EXACTLY_TWO_DASHES.
3412         (OUTPUT_COUNT): Use ARRAY_SIZE.
3413         (parse_args): Change parameter 'argc' to unsigned.
3414         Place EXACTLY_TWO_DASHES options into new really_longopts
3415         array.
3416         If getopt_long_only fails, try calling getopt_long using the
3417         really_longopts array.
3418         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3419         TWO_DASHES options.
3420
3421         * ldlex.h: Fix prototype of parse_args.
3422
3423         * ld.texinfo: Document that long options starting with 'o'
3424         must be preceeded by two dashes.  Change example of a single
3425         dashed long option from -oformat to -trace-symbol.
3426
3427 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3428
3429         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3430         (longopts[]): New --no-default-excludes option.
3431         (gld_${EMULATION_NAME}_list_options): Document.
3432         (gld_${EMULATION_NAME}_parse_args): Handle.
3433
3434 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3435
3436         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3437         whitespace, it breaks the K&R C preprocessor.
3438
3439 2000-12-11  DJ Delorie  <dj@redhat.com>
3440
3441         * ld.texinfo: Add notes about --whole-archive and gcc.
3442
3443 2000-11-18  Fred Fish  <fnf@be.com>
3444
3445         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3446         (ld_options): Entry for --allow-shlib-undefined.
3447         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3448         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3449         to false.
3450         * ld.texinfo: Document new command line switch.
3451
3452 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3453
3454         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3455         .fixup is actually read/write.
3456         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3457         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3458         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3459
3460 2000-12-11  Jan Hubicka  <jh@suse.cz>
3461
3462         * NEWS: Add note about x86_64 architecture.
3463
3464 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3465
3466         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3467         Set DWARF2 sections to a VMA of zero.
3468
3469 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3470
3471         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3472         New targets.
3473         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3474         (sparc*-*-rtems*): Switched from a.out to ELF.
3475
3476 2000-11-30  Jan Hubicka  <jh@suse.cz>
3477
3478         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3479         (eelf_x86_64.c): New.
3480         * Makefile.in: Regenerate.
3481         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3482         * emulparams/elf_x86_64.sh: New.
3483
3484 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3485
3486         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3487         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3488
3489         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3490         merging non-a.out sections into CONSTRUCTING.
3491
3492 2000-11-28  Nick Clifton  <nickc@redhat.com>
3493
3494         * ld.1 (COPYING): Mention that the GNU Free Documentation
3495         License is present in the sources, but not the output, and
3496         also available from the GNU website.
3497         (GNU Free Documentation License): Comment out this section.
3498
3499 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3500
3501         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3502         does not use them.
3503
3504 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3505
3506         * ld.1: Remove old date so it does not give the impression the manpage
3507         is way out of date.
3508
3509 2000-11-24  Nick Clifton  <nickc@redhat.com>
3510
3511         * configure.tgt (xscale-coff): Add target.
3512         (xscale-elf): Add target.
3513
3514 2000-11-24  Fred Fish  <fnf@be.com>
3515
3516         * ldmain.c (main): Remove redundant init of config.make_executable
3517         to true.
3518
3519 2000-11-15  Richard Henderson  <rth@redhat.com>
3520
3521         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3522
3523 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3524
3525         * scripttempl/h8300.sc: Fix formatting.
3526         * scripttempl/h8300h.sc: Likewise.
3527         * scripttempl/h8300s.sc: Likewise.
3528
3529 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3530
3531         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3532
3533 2000-11-09  Philip Blundell  <pb@futuretv.com>
3534
3535         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3536         around orphan sections whose names can be represented in C.
3537
3538 2000-11-07  Jim Wilson  <wilson@redhat.com>
3539
3540         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3541         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3542
3543 2000-11-06  Nick Clifton  <nickc@redhat.com>
3544
3545         * ld.texinfo: Add GNU Free Documentation License.
3546         * ldint.texinfo: Add GNU Free Documentation License.
3547         * ld.1: Add GNU Free Documentation License.
3548
3549 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3550
3551         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3552         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3553
3554         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3555         Move 2000-11-02 Makefile.in changes to this file.
3556         * Makefile.in: Regenerate.
3557
3558 2000-11-03  Nick Clifton  <nickc@redhat.com>
3559
3560         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3561         constructors and destructors.
3562         * scripttempl/h8300h.sc: Ditto.
3563         * scripttempl/h8300s.sc: Ditto.
3564         * scripttempl/h8500.sc: Ditto.
3565         * scripttempl/h8500b.sc: Ditto.
3566         * scripttempl/h8500c.sc: Ditto.
3567         * scripttempl/h8500m.sc: Ditto.
3568         * scripttempl/h8500s.sc: Ditto.
3569         * scripttempl/v850.sc: Ditto.
3570         * scripttempl/w65.sc: Ditto.
3571         * scripttempl/z8000.sc: Ditto.
3572
3573 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3574
3575         * Makefile.in (e_i386_chaos.c): New rule.
3576         (ALL_EMULATIONS): Added e_i386_chaos.o.
3577         * emulparams/elf_i386_chaos.sh: New file.
3578         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3579
3580 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3581
3582         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3583         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3584         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3585         library path suffix.
3586         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3587
3588 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3589
3590         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3591         for consecutive sections.
3592
3593 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3594
3595         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3596         options.
3597         * ld.texinfo: Added notes about this new option.
3598
3599 2000-10-16  Nick Clifton  <nickc@redhat.com>
3600
3601         * emultempl/pe.em (_after_open): Add tests of return values from
3602         bfd functions.  Emit appropriate error messages if necessary.
3603
3604 2000-10-13  Nick Clifton  <nickc@redhat.com>
3605
3606         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3607         local variables - they are not used, but leave in the call to
3608         bfd_canonicalize_symtab.
3609         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3610         pe_dll_search_prefix.
3611
3612 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3613
3614         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3615         (longopts): New --dll-search-prefix option.
3616         (gld_${EMULATION_NAME}_list_options): Document.
3617         (gld_${EMULATION_NAME}_parse_args): Handle.
3618         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3619         dynamically, search for a dll named '<prefix><basename>.dll'
3620         in preference to 'lib<basename>.dll' if --dll-search-prefix
3621         is specified.
3622
3623 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3624
3625         * ldlang.c (section_already_linked): Set kept_section instead of
3626         sec->comdat->sec.
3627
3628 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3629
3630         * deffile.h: Fix formatting.
3631         * lexsup.c: Likewise.
3632         * mri.c: Likewise.
3633
3634 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3635
3636         * pe-dll.c (make_one): Do not generate code thunk for DATA
3637         exports.
3638         (process_def_file): deduce DATA flag for auto-export sumbols.
3639
3640 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3641
3642         * ld.h: Fix formatting.
3643         * ldcref.c: Likewise.
3644         * ldctor.h: Likewise.
3645         * ldemul.c: Likewise.
3646         * ldemul.h: Likewise.
3647         * ldexp.c: Likewise.
3648         * ldexp.h: Likewise.
3649         * ldfile.c: Likewise.
3650         * ldfile.h: Likewise.
3651         * ldlang.c: Likewise.
3652         * ldlang.h: Likewise.
3653         * ldmain.c: Likewise.
3654         * pe-dll.c: Likewise.
3655
3656         * pe-dll.c: Revert some formatting fixes.
3657
3658 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3659
3660         * pe-dll.c: Fix formatting.
3661
3662 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3663
3664         * ldlang.c: Fix formatting.
3665
3666 2000-10-03  DJ Delorie  <dj@redhat.com>
3667
3668         * pe-dll.c (fill_edata): initialize entire block
3669         (make_one): fill in correct section.
3670
3671 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3672
3673         * ldexp.c: Fix formatting.
3674
3675 2000-10-02  DJ Delorie  <dj@redhat.com>
3676
3677         * emultempl/pe.em (gld_*_after_open): detect case where there two
3678         import libraries for same dll; rename one to ensure proper link
3679         order.
3680
3681         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3682         typo
3683         (generate_edata): fix typo
3684
3685 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3686
3687         * scripttempl/crisaout.sc (ENTRY): Now __start.
3688         (.text): Add default setting for __start.
3689         Remove CONSTRUCTORS handling.
3690         (/DISCARD/): Add .gnu.warning.*.
3691         * emulparams/crislinux.sh (ENTRY): Now __start.
3692         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3693         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3694         (ENTRY): Now __start.
3695         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3696         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3697
3698 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3699
3700         * deffile.h: Fix formatting.
3701         * ld.h: Likewise.
3702         * ldcref.c: Likewise.
3703         * ldctor.c: Likewise.
3704         * ldctor.h: Likewise.
3705         * ldemul.c: Likewise.
3706         * ldemul.h: Likewise.
3707         * ldexp.c: Likewise.
3708         * ldexp.h: Likewise.
3709         * ldfile.c: Likewise.
3710         * ldfile.h: Likewise.
3711         * ldlang.c: Likewise.
3712         * ldlang.h: Likewise.
3713         * lexsup.c: Likewise.
3714         * mri.c: Likewise.
3715         * pe-dll.c: Likewise.
3716
3717 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3718
3719         * pe-dll.c (process_def_file): Uninitialized data wasn't
3720         exported with --export-all-symbols switch.
3721
3722 2000-09-28  DJ Delorie  <dj@redhat.com>
3723
3724         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3725         noname work properly.
3726
3727 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3728
3729         * ld.texinfo (HPPA ELF32): New section.
3730
3731         * emultempl/hppaelf.em (group_size): New.
3732         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3733         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3734         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3735         options to prevent abbreviations matching.
3736         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3737         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3738
3739 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3740
3741         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3742         on the m68*-*-elf target.  Make it support COFF input objects.
3743
3744 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3745
3746         * ldmain.c: Fix formatting.
3747         * ldmisc.c: Likewise.
3748         * ldver.c: Likewise.
3749         * ldwrite.c: Likewise.
3750
3751 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3752
3753         * ldwrite.c (clone_section): Silence gcc warnings.
3754
3755 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3756
3757         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3758         out of memory failure.
3759
3760         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3761         (clone_section): Handle out of memory failures.  Rename var to
3762         avoid c++ reserved word.
3763
3764 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3765
3766         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3767         stub_name param to stub_sec_name.
3768         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3769
3770 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3771
3772         * emultempl/m68kelf.em: New file.
3773         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3774         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3775         * Makefile.in: Regenerate.
3776
3777 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3778
3779         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3780         only as needed.
3781
3782 2000-09-13  Nick Clifton  <nickc@redhat.com>
3783
3784         * ldmain.c (multiple_definition): Disable relaxation if
3785         multiple symbol definitions are encountered - otherwise the
3786         linker could abort with an assertion failure.
3787
3788 2000-09-10  Nick Clifton  <nickc@redhat.com>
3789
3790         * mri.c: Fix formatting.
3791
3792 2000-09-07  H.J. Lu  <hjl@gnu.org>
3793
3794         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3795         * configure: Rebuild.
3796
3797 2000-09-07  H.J. Lu  <hjl@gnu.org>
3798
3799         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3800         * Makefile.in: Rebuild.
3801
3802 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
3803
3804         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3805         broken list handling.  Create __start_SECNAME and __stop_SECNAME
3806         when no place-holder.  Add some comments.  Test both SEC_CODE and
3807         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3808         Handle case where no output section statement created.
3809
3810 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3811
3812         * configure.tgt (sh-*-linux*): Added.
3813         * Makefile.am: Added eshelf_linux and eshlelf_linux.
3814         * Makefile.in: Rebuilt.
3815         * emulparams/shelf_linux.sh: New file.
3816         * emulparams/shlelf_linux.sh: New file.
3817
3818 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3819
3820         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3821         try shuffling sections when the orphan happens to be the place
3822         holder.  Keep count of unique section names generated so we speed
3823         the search for a new name.
3824
3825 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3826
3827         * configure: Rebuilt with new libtool.m4.
3828
3829 2000-09-05  Nick Clifton  <nickc@redhat.com>
3830
3831         * Makefile.in: Regenerate.
3832         * aclocal.m4: Regenerate.
3833         * configure: Regenerate.
3834         * config.in: Regenerate.
3835         * po/ld.pot: Regenerate.
3836
3837         * ldint.texinfo: Remove CVS revision marker - it foils local
3838         comparisons.
3839
3840         * emultempl/ticoff.em: Remove extraneous comma.
3841
3842 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3843
3844         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3845         to stub section flags.
3846         (hppa_for_each_input_file_wrapper): New.
3847         (hppa_lang_for_each_input_file): New.
3848         (lang_for_each_input_file): Define to call above.
3849         (multi_subspace): New.
3850         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3851         (PARSE_AND_LIST_PROLOGUE): Define.
3852         (PARSE_AND_LIST_LONGOPTS): Define.
3853         (PARSE_AND_LIST_OPTIONS): Define.
3854         (PARSE_AND_LIST_ARGS_CASES): Define.
3855         (hppaelf_finish): Call elf32_hppa_set_gp.
3856         (hppaelf_set_output_arch): Remove.
3857         (LDEMUL_SET_OUTPUT_ARCH): Remove.
3858
3859         * emulparams/hppalinux.sh (ELFSIZE): Define.
3860         (MACHINE): Define.
3861         (OTHER_READONLY_SECTIONS): Define.
3862         (DATA_PLT): Define.
3863         (GENERATE_SHLIB_SCRIPT): Define.
3864
3865         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
3866         to const throughout.  Change `void *' to `PTR' throughout.
3867         (lang_memory_default): Function is local to file, add `static'.
3868
3869         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3870         (ehppalinux.c): Likewise.
3871         (earmelf.c): Likewise.
3872         (earmelf_linux.c): Likewise.
3873         (earmelf_linux26.c): Likewise.
3874         * Makefile.in: Regenerate.
3875
3876         * ld.h (ld_config_type): Add unique_orphan_sections.
3877         * lexsup.c (OPTION_UNIQUE): Define.
3878         (ld_options): Add "--unique".
3879         (parse_args): Handle it.
3880         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3881         search for an existing output section if unique_orphan_sections is
3882         set.  Make use of bfd_get_unique_section_name rather than
3883         duplicating code here.
3884         * ld.texinfo: Describe --unique.
3885
3886         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3887         optional arg to split-by-file.
3888         (parse_args): Handle them.
3889         * ld.texinfo: Update description of these options.
3890         * ldwrite.c (clone_section): Pass in the section name.  Replace
3891         local code with bfd_get_unique_section_name.
3892         (split_sections): Tidy code and comments.  Use a list traversal
3893         more appropriate to the list construction.  Handle cooked section
3894         sizes.  Split when split_by_reloc reached rather than exceeded.
3895         Track section size and split when split_by_file reached.  Fix
3896         link_order_tail (even though it's not used).
3897         (ldwrite): Modify condition for calling split_sections to suit
3898         changed split_by_reloc and split_by_file.
3899         * ldmain.c (main): Init config.split_by_reloc and
3900         config.split_by_file to -1.
3901         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3902         Change split_by_file to bfd_size_type.
3903
3904 2000-09-02  Nick Clifton  <nickc@redhat.com>
3905
3906         * configure.in: Increase version number to 2.10.91.
3907         * NEWS: Mention new ability to support removal of duplicate DWARF2
3908         debug information.
3909         * configure: Regenerate.
3910         * aclocal.m4: Regenerate.
3911         * config.in: Regenerate.
3912
3913 2000-09-02  Daniel Berlin <dberlin@redhat.com>
3914
3915         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3916         sections.
3917         * scripttempl/elf32avr.sc: Ditto.
3918         * scripttempl/elfd10v.sc: Ditto.
3919         * scripttempl/elfd30v.sc: Ditto.
3920         * scripttempl/elfi370.sc: Ditto.
3921         * scripttempl/elfm68hc11.sc: Ditto.
3922         * scripttempl/elfm68hc12.sc: Ditto.
3923         * scripttempl/elfi386beos.sc: Ditto.
3924         * scripttempl/v850.sc: Ditto.
3925
3926 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
3927
3928         * acinclude.m4: Include libtool and gettext macros from the
3929         top level.
3930         * aclocal.m4, configure: Rebuilt.
3931
3932 2000-08-25  Nick Clifton  <nickc@redhat.com>
3933
3934         * ldlang.c (open_output): When choosing the target for a
3935         particular endianness, do nothing if the target is not
3936         supported.
3937
3938 2000-08-25  H.J. Lu  <hjl@gnu.org>
3939
3940         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3941         check -rpath nor LD_RUN_PATH for cross link.
3942         * ld.texinfo: Document the change.
3943
3944 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
3945
3946         * NEWS: Mention support for CRIS.
3947
3948 2000-08-23  H.J. Lu  <hjl@gnu.org>
3949
3950         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3951         the current runpath list from bfd_elf_get_runpath_list ()
3952         before search.
3953
3954 2000-08-22  H.J. Lu  <hjl@gnu.org>
3955
3956         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3957         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3958         LD_LIBRARY_PATH for native linker. Display the needed DSO if
3959         trace_file_tries is non-zero.
3960         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3961         if trace_file_tries is non-zero.
3962
3963         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3964         * NEWS: Mention it.
3965
3966 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
3967
3968         * NEWS: Mention i860 support.
3969
3970 2000-08-14  Andreas Schwab  <schwab@suse.de>
3971
3972         * scripttempl/elf.sc: Fix last change to use correct comment
3973         syntax.
3974
3975 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
3976
3977         * scripttempl/elf.sc: Add a comment giving the correspondence
3978         between sections, per-datum sections, and linkonce sections.  Make
3979         the comment true even for .bss, .sdata, .sdata2, .sbss, and
3980         .sbss2.
3981
3982 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
3983
3984         * emulparams/elf32_i860.sh: New file.
3985         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3986         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3987         (eelf32_i860.c): New rule.
3988         * Makefile.in: Regenerate.
3989
3990 2000-08-10  Nick Clifton  <nickc@cygnus.com>
3991
3992         * emulparams/mipspe.sh (ENTRY): Add definition.
3993
3994 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
3995
3996         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3997         in error message.
3998
3999 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4000
4001         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4002         the final size of .bss section.
4003         * scripttempl/elfm68hc12.sc: Likewise.
4004
4005 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
4006
4007         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4008         gld${EMULATION_NAME}_parse_args for consistency.  Combine
4009         lastoptind and prevoptind vars, and keep track of last optind.
4010         (gld_${EMULATION_NAME}_list_options): Rename to
4011         gld${EMULATION_NAME}_list_options.
4012
4013 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
4014
4015         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4016         (i586-sco-sysv5uw7.1.0).
4017
4018 2000-07-27  H.J. Lu  <hjl@gnu.org>
4019
4020         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4021         (PARSE_AND_LIST_PROLOGUE): New.
4022         (PARSE_AND_LIST_LONGOPTS): Likewise.
4023         (PARSE_AND_LIST_OPTIONS): Likewise.
4024         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4025         (PARSE_AND_LIST_EPILOGUE): Likewise.
4026
4027 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
4028
4029         * emultempl/armelf.em: Elide functions common to elf32.em,
4030         ie. most of the file.
4031         (arm_elf_after_open): New.  Do arm specific things then call
4032         gld${EMULATION_NAME}_after_open.
4033         (arm_elf_before_allocation): New.  Call
4034         gld${EMULATION_NAME}_before_allocation then do arm specifics.
4035         (PARSE_AND_LIST_PROLOGUE): Define.
4036         (PARSE_AND_LIST_SHORTOPTS): Define.
4037         (PARSE_AND_LIST_LONGOPTS): Define.
4038         (PARSE_AND_LIST_OPTIONS): Define.
4039         (PARSE_AND_LIST_ARGS_CASES): Define.
4040         (LDEMUL_AFTER_OPEN): Define.
4041         (LDEMUL_BEFORE_ALLOCATION): Define.
4042         (LDEMUL_BEFORE_PARSE): Define.
4043         (LDEMUL_FINISH): Define.
4044
4045         * emultempl/hppaelf.em: Similarly zap most of this file.
4046         (hppaelf_add_stub_section): Prototype.
4047         (hppaelf_layaout_sections_again): Prototype.
4048         (hook_in_stub): Prototype.
4049         (LDEMUL_SET_OUTPUT_ARCH): Define.
4050         (LDEMUL_FINISH): Define.
4051         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4052
4053         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4054         (EXTRA_EM_FILE): New.
4055         * emulparams/armelf_linux.sh: Likewise.
4056         * emulparams/armelf_linux26.sh: Likewise.
4057         * emulparams/hppalinux.sh: Likewise.
4058         * emulparams/hppaelf.sh: Likewise.
4059         (NOP): Define.
4060
4061         * emultempl/elf32.em: Fix formatting.
4062         (EXTRA_EM_FILE): Source it.
4063         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4064         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4065         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4066         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4067         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4068         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4069         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4070         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4071         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
4072         allow functions in this file to be overridden.
4073         (PARSE_AND_LIST_SHORTOPTS): Handle it.
4074
4075         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4076
4077         * emultempl/elf32.em: Reorganize file.
4078
4079 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
4080
4081         * emulparams/elf64alpha.sh: Implement "-taso" emulation
4082         specific option to fit 64-bit executable in the lower
4083         31-bit address range.  This is done by changing start
4084         address of .interp (the very first section of executable)
4085         and then setting EF_ALPHA_32BIT elf header flag.
4086
4087 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4088
4089         * emultempl/m68kcoff.em: New file.
4090         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4091         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4092         generic.em.
4093         * Makefile.in: Regenerate.
4094
4095 2000-07-20  H.J. Lu  <hjl@gnu.org>
4096
4097         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4098         and "disable-new-dtags" to stop getopt from treating -d/-e as
4099         abbreviations for these options.
4100
4101 2000-07-20  H.J. Lu  <hjl@gnu.org>
4102
4103         * ld.texinfo: Add documentation for --disable-new-dtags and
4104         --enable-new-dtags.
4105
4106         * ldmain.c (main): Initialize link_info.new_dtags to false.
4107
4108         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4109         --disable-new-dtags and --enable-new-dtags.
4110         (gld_${EMULATION_NAME}_list_options): Likewise.
4111
4112 2000-07-05  Kenneth Block  <krblock@computer.org>
4113
4114         * lexsup.c: Add optional style to demangle switch
4115         * ld.texinfo: Document optional style to demangle switch.
4116
4117 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
4118
4119         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4120         ecrislinux.o.
4121         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4122         Regenerate dependencies.
4123         * Makefile.in: Rebuild.
4124         * configure.tgt (cris-*-*): New target.
4125         * emulparams/crisaout.sh, emulparams/criself.sh,
4126         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4127         * po/POTFILES.in, po/ld.pot: Regenerate.
4128
4129 2000-07-20  H.J. Lu  <hjl@gnu.org>
4130
4131         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4132         Print out ignored -z options.
4133
4134 2000-07-19  H.J. Lu  <hjl@gnu.org>
4135
4136         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4137         (PARSE_AND_LIST_PROLOGUE): New.
4138         (PARSE_AND_LIST_LONGOPTS): Likewise.
4139         (PARSE_AND_LIST_OPTIONS): Likewise.
4140         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4141
4142         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4143
4144         * lexsup.c (ld_options): Comment out 'z'.
4145         (parse_args): Likewise.
4146
4147         * emultempl/elf32.em: Include "elf/common.h".
4148         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4149         options.
4150         (gld_${EMULATION_NAME}_list_options): Likewise.
4151
4152         * ld.texinfo: Add documentation for the recognized -z options.
4153
4154 2000-07-19  H.J. Lu  <hjl@gnu.org>
4155
4156         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4157         bfd_elf_set_dt_needed_soname ().
4158
4159 2000-07-18  DJ Delorie  <dj@cygnus.com>
4160
4161         * pe-dll.c (pe_dll_id_target): check object target name also
4162
4163 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
4164
4165         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4166         ${INIT_END} if relocating.
4167         (.fini): Likewise ${FINI_START} and ${FINI_END}.
4168
4169 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
4170
4171         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4172         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4173         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4174         errors introduced by the old dynamic lib search order.
4175
4176 2000-07-17  DJ Delorie  <dj@cygnus.com>
4177
4178         * pe-dll.c (process_def_file): auto-export data items also
4179         (pe_process_import_defs): also see if _imp_ form needed
4180
4181 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
4182
4183         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4184         for dll import libraries
4185
4186 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
4187
4188         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4189         gcc 2.95.2 and later.
4190
4191 2000-07-11  Kazu Hirata  <kazu@hxi.com>
4192
4193         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4194         message.
4195
4196 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4197
4198         * ldemul.h (struct lang_input_statement_struct): Remove forward
4199         declaration.
4200         (struct search_dirs): Likewise.
4201         * ldfile.h (struct lang_input_statement_struct): Likewise.
4202         Protect file from multiple inclusion.
4203         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4204         declaration from macro to file scope.
4205
4206         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4207         * ldgram.y: Likewise here.
4208         * ldlang.c: And here.
4209         * ldmain.c: And here.
4210         * mpw-elfmips.c: And here.
4211         * mpw-eppcmac.c: And here.
4212         * emultempl/aix.em: And here.
4213         * emultempl/armcoff.em: And here.
4214         * emultempl/armelf.em: And here.
4215         * emultempl/armelf_oabi.em: And here.
4216         * emultempl/beos.em: And here.
4217         * emultempl/elf32.em: And here.
4218         * emultempl/hppaelf.em: And here.
4219         * emultempl/linux.em: And here.
4220         * emultempl/lnk960.em: And here.
4221         * emultempl/pe.em: And here.
4222         * emultempl/sunos.em: And here.
4223         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4224         * mpw-idtmips.c: Ditto.
4225         * emultempl/generic.em: Ditto.
4226         * emultempl/gld960.em: Ditto.
4227         * emultempl/gld960c.em: Ditto.
4228         * emultempl/mipsecoff.em: Ditto.
4229         * emultempl/ticoff.em: Ditto.
4230         * emultempl/vanilla.em: Ditto.
4231
4232         * pe-dll.c: Include ldfile.h
4233         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4234
4235         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4236         arguments to bfd_elf32_size_dynamic_sections call.
4237         (gldelf32ebmip_place_orphan): Add missing arguments to
4238         lang_leave_output_section_statement call.
4239
4240 2000-07-10  H.J. Lu  <hjl@gnu.org>
4241
4242         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4243         DLL_SUPPORT.
4244         (strhash): Likewise.
4245         (compute_dll_image_base): Likewise.
4246         (pe_undef_found_sym): Likewise.
4247         (pe_undef_cdecl_match): Likewise.
4248         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4249         argument "arch" with ATTRIBUTE_UNUSED.
4250
4251 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4252
4253         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4254
4255         From  Ryan Bradetich  <rbradetich@uswest.net>
4256         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4257
4258 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4259
4260         Changes to create multiple linker stubs, positioned immediately
4261         before the section where they are required.
4262         * emultempl/hppaelf.em: Include elf32-hppa.h.
4263         (stub_sec, file_chain): Delete.
4264         (hppaelf_create_output_section_statements): Don't make a stub
4265         section here.
4266         (hook_stub_info): New struct.
4267         (hook_in_stub): New function.
4268         (hppaelf_add_stub_section): New function.
4269         (hppaelf_finish): Do nothing for relocateable links.  Modify the
4270         call to elf32_hppa_size_stubs.  Move code for updating section
4271         layout from here...
4272         (hppaelf_layaout_sections_again): ..to here, a new function.
4273
4274         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4275         broken list handling.  Pass in a pointer to the list.
4276         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4277         for above changes.
4278         (hppaelf_before_parse): Prototype.
4279         (hppaelf_set_output_arch): Prototype.
4280         (hppaelf_create_output_section_statements): Prototype.
4281         (hppaelf_delete_padding_statements): Prototype.
4282         (hppaelf_finish): Prototype.
4283
4284         Merge from elf32.em
4285         * emultempl/hppaelf.em: Include ctype.h.
4286         (struct orphan_save): New.
4287         (gld${EMULATION_NAME}_place_orphan): New.
4288         (output_rel_find): New.
4289         (hppaelf_get_script): Update from elf32.em.
4290         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4291         Change emulation_name field to "${EMULATION_NAME}".  Add
4292         gld${EMULATION_NAME}_place_orphan.
4293
4294         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
4295         ehppalinux.o, sort it.  Regenerate dependencies.
4296         (ehppalinux.c): Depend on hppaelf.em
4297         * Makefile.in: Regenerate.
4298
4299         * configure.tgt: targ_emul=hppalinux for hppa*linux
4300
4301         * emulparams/hppalinux.sh: New.
4302         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4303
4304 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4305
4306         * lexsup.c (parse_args): Copy section name.
4307
4308 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
4309
4310         * emultempl/pe.em: institute the following search order for
4311         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4312         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
4313         static lib (libfoo.a) if none of the above are found.
4314
4315 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
4316
4317         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4318         (longopts): New --{enable,disable}-auto-image-base options.
4319         (gld_${EMULATION_NAME}_list_options): Document.
4320         (gld_${EMULATION_NAME}_parse): Handle.
4321         (strhash): New static function.
4322         (compute_dll_image_base): New static function.
4323         (gld_${EMULATION_NAME}_set_symbols): Use.
4324
4325 2000-07-05  DJ Delorie  <dj@redhat.com>
4326
4327         * MAINTAINERS: new
4328
4329 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4330
4331         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4332         * emulparams/elf32btsmip.sh: New file.
4333         * Makefile.am: Add traditional mips target.
4334         * Makefile.in: Rebuild.
4335
4336 2000-07-01  H.J. Lu  <hjl@gnu.org>
4337
4338         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4339         automake to use YLWRAP.
4340         * Makefile.in: Rebuild.
4341
4342 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4343
4344         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4345         (CLEANFILES): Add DEPA.
4346         * Makefile.in: Regenerate.
4347
4348 2000-06-30  Timothy Wall  <twall@ppc>
4349
4350         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4351         the page in the upper octet of the address.
4352
4353 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4354
4355         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4356
4357 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
4358
4359         * NEWS: arm-elf does --gc-sections too.
4360
4361 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4362
4363         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4364         find one.
4365         * Makefile.in: Regenerate.
4366
4367 2000-06-21  H.J. Lu  <hjl@gnu.org>
4368
4369         * Makefile.am: Rebuild dependency.
4370         * Makefile.in: Rebuild.
4371
4372 2000-06-20  H.J. Lu  <hjl@gnu.org>
4373
4374         * Makefile.am: Rebuild dependency.
4375         * Makefile.in: Rebuild.
4376
4377 2000-06-20  Timothy Wall  <twall@cygnus.com>
4378
4379         * scripttempl/tic54xcoff.sc: New.
4380         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4381         * gen-doc.texi: Add flag for TI COFF.
4382         * ld.texinfo: Add documentation for TI COFF handling switches.
4383         * emultempl/ticoff.em: New. TI COFF handling.
4384         * configure.tgt: Add tic54x target.
4385         * Makefile.am: Add tic54x target.
4386         * Makefile.in: Ditto.
4387
4388 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4389
4390         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4391         checking for backslashes.
4392
4393 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4394
4395         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4396
4397 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4398
4399         * NEWS: Update list of targets supporting --gc-sections.
4400
4401         * scripttempl/elf.sc: KEEP .eh_frame contents.
4402         * scripttempl/elfd30v.sc: Same here.
4403
4404 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4405
4406         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4407         and m68hc11 (elf).
4408         * Makefile.in: Rebuild.
4409         * configure.tgt: Recognize m68hc12 and m68hc11.
4410         * scripttempl/elfm68hc12.sc: New file.
4411         * emulparams/m68hc12elfb: New emulation.
4412         * emulparams/m68hc12elf: New emulation.
4413         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4414         (includes a memory.x script to define the ROM and RAM banks).
4415         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4416         New configuration files for support of Motorola 68hc11
4417
4418 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4419
4420         * ldmain.c (main): Only change SEC_READONLY for final link.
4421
4422 2000-06-13  H.J. Lu  <hjl@gnu.org>
4423
4424         * configure: Regenerate.
4425
4426 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4427
4428         * configure.in (VERSION): Update to show this is the CVS mainline.
4429
4430 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4431
4432         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4433         input objects to be ECOFF.
4434         (check_sections): einfo takes %B, not %P, to print a BFD name.
4435
4436 2000-06-05  Michael Matz <matz@ifh.de>
4437
4438         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4439         version scripts.
4440
4441         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4442
4443 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4444
4445         * emulparams/avr1200.sh (STACK): Define as 0.
4446         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4447         * emulparams/avr4433.sh (STACK): Likewise.
4448         * emulparams/avr44x4.sh (STACK): Likewise.
4449         * emulparams/avr85xx.sh (STACK): Likewise.
4450         * emulparams/avrmega103.sh (STACK): Likewise.
4451         * emulparams/avrmega161.sh (STACK): Likewise.
4452         * emulparams/avrmega603.sh (STACK): Likewise.
4453         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4454         (__stack): Define from ${STACK} for main().
4455
4456 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4457
4458         * Makefile.am: Update dependencies with "make dep-am"
4459         * Makefile.in: Regenerate.
4460
4461 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4462
4463         * ldmain.c: Include filenames.h.
4464         (set_scripts_dir): Support backslashes in program name.
4465
4466 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4467
4468         * ldmain.c (main): When deciding if ".text" section should be
4469         read-only, don't forget to reset SEC_READONLY because it
4470         could be already set.
4471
4472 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4473
4474         * ld.1: Add documentation for new command line option:
4475                 --section-start <sectionname>=<sectionorg>
4476         This is a generic version of -Ttext etc. which accepts
4477         any section name as a parameter instead of just text/data/
4478         bss.
4479         * ld.texinfo: More docs.
4480         * NEWS: More docs.
4481         * lexsup.c: (parse_args): Recognize new command line option.
4482         (ld_options): Add new option.
4483
4484 2000-05-18  H.J. Lu  <hjl@gnu.org>
4485
4486         * lexsup.c (parse_args): `i' == `r', not `q'.
4487
4488 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4489
4490         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4491
4492 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4493               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4494
4495         Add support for '-q' == '--emit-relocs' switch.
4496         * ldmain.c (main): Default to false.
4497         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4498         * NEWS: Describe the emitrelocations switch.
4499         * ld.texinfo: Describe the emitrelocations switch.
4500
4501 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4502
4503         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4504         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4505         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4506         link options.
4507
4508 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4509
4510         * lexsup.c (parse_args): Update the year in the copyright notice.
4511
4512 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4513
4514         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4515         Replace defines with those from intl/libgettext.h to quieten gcc
4516         warnings.
4517
4518 2000-05-10  H.J. Lu  <hjl@gnu.org>
4519
4520         * ldlang.c (open_input_bfds): Don't load the same file within
4521         a group again if the whole archive has been loaded already.
4522
4523 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4524
4525         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4526         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4527         strtoul.
4528
4529 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4530
4531         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4532
4533         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4534         host "ia64-*-linux-gnu*".
4535
4536 2000-04-29  Andreas Jaeger  <aj@suse.de>
4537
4538         * ld.h: Correctly check GCC version.
4539
4540 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4541
4542         * Makefile.am: Add PA64 support.  Add missing dependencies for
4543         PA32 elf support.
4544         * Makefile.in: Rebuilt.
4545         * configure.tgt: Add PA64 support (currently disabled).
4546
4547 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4548
4549         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4550         (output_rel_find): New function.
4551         (hold_section, hold_use): Delete.
4552         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4553         hold_interp): Make local to place_orphan.
4554         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4555         rather than place_section to find possible previous use of orphan.
4556         Similarly find the place-holder output sections.  Use returned
4557         value from lang_enter_output_section_statement rather than calling
4558         lang_output_section_statement_lookup.
4559         * emultempl/armelf.em: Same here.
4560         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4561
4562         * ldlang.c (lang_enter_output_section_statement): Return output
4563         section statement.
4564         * ldlang.h (lang_enter_output_section_statement): Change
4565         declaration too.
4566
4567         * ldlang.h (lang_output_section_statement): Export it.
4568         * ldlang.c (lang_output_section_statement): Ditto.
4569
4570 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4571
4572         * ld.texinfo (Output Section Data): Add note that section data
4573         commands cannot appear outside of section directives.
4574
4575 2000-04-2  Matthew Green  <mrg@cygnus.com>
4576
4577         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4578
4579 2000-04-21  Richard Henderson  <rth@cygnus.com>
4580             David Mosberger  <davidm@hpl.hp.com>
4581
4582         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4583         (eelf64_ia64.c): New rule.
4584         * Makefile.in: Rebuild.
4585         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4586         * emulparams/elf64_ia64.sh: New file.
4587
4588 2000-04-21  Richard Henderson  <rth@cygnus.com>
4589
4590         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4591
4592 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4593
4594         * dep-in.sed: Match space at start of file name, not at end.
4595
4596 2000-04-18  H.J. Lu  <hjl@gnu.org>
4597
4598         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4599         lang_leave_output_section_statement () after calling
4600         lang_enter_output_section_statement ().
4601         * emultempl/armelf.em: Likewise.
4602
4603 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4604
4605         * emultempl/elf32.em (struct orphan_save): Add section field.
4606         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4607         better order, and place first orphan section as we did before the
4608         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4609         Don't call make_bfd_section here, let wild_doit do the job for us.
4610         Don't build a statement list when we'll only throw it away.
4611         * emultempl/armelf.em: Ditto.
4612         * emultempl/pe.em: Similarly.
4613
4614 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4615
4616         * scripttempl/elfppc.sc: Remove.
4617         * emulparams/elf32ppc.sh: Use elf.sc.
4618         * emulparams/elf32lppc.sh: Use elf.sc.
4619         * emulparams/elf32ppclinux.sh: Use elf.sc.
4620         * emulparams/elf32ppcsim.sh: New file.
4621         * emulparams/elf32lppcsim.sh: New file.
4622         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4623         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4624         * Makefile.in: Regenerate.
4625         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4626
4627 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4628
4629         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4630         ~SEC_ALLOC sections too.  Init start address of debug sections.
4631         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4632         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4633         Also set all relocateable section start addresses.
4634
4635 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4636
4637         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4638         Add new BSS_PLT variable for when .plt need not be contained in
4639         the file.  Move _etext so that it is also after .fini, and provide
4640         both etext and _etext with a leading underscore.  Mark the start
4641         and end of .sbss.
4642
4643 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4644
4645         * emultempl/elf32.em (struct orphan_save): New.
4646         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4647         hold_interp): Make them struct orphan_save.
4648         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4649         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4650         the end of the relevant section list.  Also add associated section
4651         statements to the end of any previous orphan statements.
4652         * emultempl/armelf.em: Similarly.
4653         * emultempl/pe.em: Similarly.
4654
4655 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4656
4657         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4658
4659 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4660
4661         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4662         --enable-build-warnings option.
4663         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4664         * Makefile.in, configure: Re-generate.
4665
4666 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4667
4668         * po/ld.pot: Regenerate.
4669
4670         * lexsup.c (help): Restore translated part of bug string.
4671
4672         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4673         (DEP): Quote when passing vars to sub-make.  Add warning message
4674         to end.
4675         (DEP1): Rewrite for "gcc -MM".
4676         (CLEANFILES): Add DEP2.
4677         Update dependencies.
4678         * Makefile.in: Regenerate.
4679
4680 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4681
4682         * ld.h: #include "bin-bugs.h"
4683         * lexsup.c (help): Use REPORT_BUGS_TO.
4684
4685 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4686
4687         * configure.tgt (avr-*-*): New target support.
4688         * Makefile.am: Likewise.
4689         * scripttempl/elf32avr.sc: New script file.
4690         * emulparams/avr1200.sh: New file.
4691         * emulparams/avr23xx.sh: New file.
4692         * emulparams/avr4433.sh New file.
4693         * emulparams/avr44x4.sh New file.
4694         * emulparams/avr85xx.sh New file.
4695         * emulparams/avrmega103.sh New file.
4696         * emulparams/avrmega161.sh New file.
4697         * emulparams/avrmega603.sh New file.
4698         * Makefile.in: Regenerate.
4699
4700 2000-03-09  Andreas Jaeger  <aj@suse.de>
4701
4702         * Makefile.am (check-DEJAGNU): Also unset LANG.
4703         * Makefile.in: Rebuild.
4704
4705 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4706
4707         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4708         archive.
4709
4710 2000-03-02  H.J. Lu  <hjl@gnu.org>
4711
4712         * emulparams/elf32mcore.sh: Include "getopt.h".
4713
4714 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4715
4716         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4717
4718 2000-03-01  H.J. Lu  <hjl@gnu.org>
4719
4720         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4721         * emulparams/shpe.sh: Likewise.
4722
4723 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4724
4725         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4726         to unused parameters.
4727
4728         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4729         functions only used by DLL code.
4730         (_place_orphan): Initialise 'dollar'.
4731
4732 2000-03-01  H.J. Lu  <hjl@gnu.org>
4733
4734         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4735         indicate if the undefined symbol is a fatal error or not.
4736         Don't delete the output file if "fatal" is false.
4737
4738 2000-02-29  H.J. Lu  <hjl@gnu.org>
4739
4740         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4741         Set LC_COLLATE and LC_ALL to null and export them. It is for
4742         sort which expects the C locale.
4743         Add $(LIBS) to all $(HOSTING_LIBS).
4744         * Makefile.in: Rebuild.
4745
4746 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4747
4748         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4749         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4750         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4751         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4752         find_potential_libraries.
4753
4754 2000-02-28  Jim Blandy  <jimb@redhat.com>
4755
4756         * ldgram.y (exclude_name_list): Don't require a comma to separate
4757         list entries; the lexer considers commas to be valid part of a
4758         filename, so in something like `foo, bar' the comma is considered
4759         part of the first filename, `foo,'.
4760         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4761
4762 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4763
4764         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4765         host "i[3456]86-*-freebsdelf*".
4766
4767 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4768
4769         * scripttempl/i386go32.sc: Move misplaced semicolons.
4770
4771 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4772
4773         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4774         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4775         (eelf64hppa.c, ehppaelf.c): Remove targets.
4776         * Makefile.in: Rebuild.
4777
4778 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4779
4780         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4781         GNU/Linux/sparc, but keep the default as 32.
4782
4783         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4784         it default if sparcv9 or sparc64.
4785
4786 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4787
4788         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4789         * Makefile.in: Regenerate.
4790         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4791
4792         * ldemul.h (ld_emulation_xfer_struct): Add new field:
4793         find_potential_libraries.
4794         * ldemul.c (ldemul_find_potential_libraries): New function.
4795
4796         * ldfile.c (ldfile_open_file_search): Allow function to be
4797         exported.
4798         (ldfile_open_file): Call ldemul_find_potential_libraries.
4799         * ldfile.h: Add prototype for ldfile_open_file_search.
4800
4801         * pe-dll.c: Add support for ARM, MIPS and SH targets.
4802
4803         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
4804         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
4805
4806         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4807         (gld_X_find_potential_libraries): New function.  Search for
4808         libraries called "*.lib".
4809
4810         * scripttempl/pe.sc: Add .pdata section.
4811
4812 2000-02-23  Richard Henderson  <rth@cygnus.com>
4813
4814         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4815         Add and use memory regions.
4816
4817 2000-02-23  Linas Vepstas (linas@linas.org)
4818
4819         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4820
4821         * Makefile.am: Add support for Linux/IBM 370.
4822         * configure.tgt: Likewise.
4823
4824         * Makefile.in: Regenerate.
4825
4826 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4827
4828         * ldlang.c (print_input_section, print_data_statement,
4829         print_reloc_statement, print_padding_statement, insert_pad,
4830         size_input_section, lang_check_section_addresses,
4831         lang_size_sections, lang_do_assignments, lang_set_startof,
4832         lang_one_common): Change `opb' to unsigned.
4833         (lang_do_assignments): Also change `size' to unsigned.
4834
4835 2000-02-16  Richard Henderson  <rth@cygnus.com>
4836
4837         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4838
4839 2000-02-16  Timothy Wall  <twall@cygnus.com>
4840
4841         * mri.c (mri_draw_tree): Add default LMA region argument to call
4842         to lang_leave_output_section_statement.
4843         * ldlang.h: Update prototypes with LMA region arguments.
4844         * ldlang.c (lang_size_sections): Encapsulate region bounds
4845         checking in os_check_region call.
4846         (os_check_region): New function.
4847         (lang_output_section_statement_lookup): Initialize lma_region.
4848         (lang_leave_output_section_statement): Add LMA region argument.
4849         (lang_leave_overlay): Ditto.
4850         * ldgram.y: Handle LMA region syntax.
4851         * ld.texinfo (Output Section Description): Describe LMA region usage.
4852         * emultempl/armelf.em (gld$place_orphan): Add default value for
4853         lma region in call to lang_leave_output_section_statement.
4854         * emultempl/elf32.em (gld$place_orphan): Add default value for
4855         lma region in call to lang_leave_output_section_statement.
4856         * emultempl/pe.em (gld$place_orphan): Add default value for
4857         lma region in call to lang_leave_output_section_statement.
4858
4859
4860 2000-02-04  Timothy Wall  <twall@redhat.com>
4861
4862         * ldlang.c (lang_check_section_addresses): Use bytes instead of
4863         octets when calculating section end addresses.
4864
4865 2000-02-04  Timothy Wall  <twall@redhat.com>
4866
4867         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4868
4869 2000-02-03  Timothy Wall <twall@redhat.com>
4870
4871         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4872         octet count.
4873         * ldlang.c (print_input_section, print_data_statement,
4874         print_reloc_statement, print_padding_statement): Print target
4875         address values and section sizes as bytes, not octets.
4876         (insert_pad) Calculate padding size in octets, and adjust "dot"
4877         by bytes.
4878         (size_input_section) Always adjust "dot" by bytes, not octets.
4879         (lang_check_section_addresses, lang_do_assignments) Adjust
4880         "dot" by bytes, not octets.  Use the larger of the directive size
4881         or octets_per_byte for the number of octets actually allocated in
4882         the output section.
4883         (lang_set_startof) Make sure STARTOF returns a target address.
4884         (lang_one_common) Record size changes in octets.
4885         (lang_abs_symbol_at_end_of) Section end symbol's value is
4886         recorded in target bytes.
4887         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4888         to be clear about behavior when an octet is smaller than one byte.
4889
4890 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4891
4892         * ldcref.c (output_cref): Don't pass message strings to printf
4893         as format arg.
4894         Update copyright.
4895
4896         * ldmisc.c (vfinfo): Same here.
4897         Update copyright.
4898
4899 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
4900
4901         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4902         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4903         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4904         Add missing NULL initialisers, and comments.
4905
4906         * testsuite/ld-srec/sr3.cc (__rethrow): New.
4907
4908 2000-01-21  Nick Clifton  <nickc@cygnus.com>
4909
4910         * ldlang.c (lang_size_sections): Fix typo in comment.
4911
4912 2000-01-18  H.J. Lu  <hjl@gnu.org>
4913
4914         * ldlang.c (lang_size_sections): Also update the current
4915         address of a region if the SEC_NEVER_LOAD bit is not set.
4916
4917 2000-01-10  Philip Blundell  <pb@futuretv.com>
4918
4919         * configure.tgt (arm*-*-conix*): New target.
4920
4921 2000-01-07  Nick Clifton  <nickc@cygnus.com>
4922
4923         * ld.texinfo (Options): Remind users to preceed linker command
4924         line switches with -Wl, (or whatever is appropriate) if it is
4925         being invoked by a comnpiler driver program.
4926         Fix description of the behaviour of the -n command line switch.
4927
4928 2000-01-05  Catherine Moore  <clm@cygnus.com>
4929
4930         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
4931         (name_list): New.
4932         * ld.texinfo (EXCLUDE_FILE): Update documentation.
4933         * ldgram.y (wildcard_spec): Support a list of excluded_files.
4934         (exclude_name_list): New.
4935         ldlang.c (walk_wild_section): Support list of excluded files.
4936         (print_wild_statement): Likewise.
4937         (lang_add_wild): Likewise.
4938         * ldlang.h (lang_wild_statement_type): Likewise.
4939         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4940
4941 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
4942
4943         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4944         (process_def_file): Use.
4945         (pe_dll_compat_implib): New variable.
4946         (make_one): Use.
4947
4948         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4949         pe_dll_compat_implib.
4950
4951         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4952         compat-implib options.
4953         (gld_${EMULATION_NAME}_list_options): List new options.
4954         (gld_${EMULATION_NAME}_parse_args): Handle.
4955
4956         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4957         dll.
4958
4959         * deffilep.y (opt_name): Allow "." in name.
4960
4961 For older changes see ChangeLog-9899
4962 \f
4963 Local Variables:
4964 mode: change-log
4965 left-margin: 8
4966 fill-column: 74
4967 version-control: never
4968 End: