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