* configure.in: Substitute RPATH_ENVVAR.
[external/binutils.git] / ld / ChangeLog
1 Thu Feb 15 13:58:06 1996  Ian Lance Taylor  <ian@cygnus.com>
2
3         * configure.in: Substitute RPATH_ENVVAR.
4         * configure: Rebuild.
5         * configure.host: Set RPATH_ENVVAR.
6         * Makefile.in (RPATH_ENVVAR): New variable.
7         (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
8
9 Wed Feb 14 18:49:01 1996  Alan Modra  <alan@spri.levels.unisa.edu.au>
10
11         * configure.in: Redo emulation handling so that each emulation
12         searches the correct tool directory, based on the target alias.
13         For example, "configure --enable-targets=m68k-coff i386-linux"
14         will search /usr/local/i386-linux/lib for linux and
15         /usr/local/m68k-coff/lib for m68k-coff.
16         * configure: Rebuild.
17         * configure.tgt: Add special tdir settings for Linux.
18         * Makefile.in: Add @TDIRS@.  Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
19         for each eEMUL.c target.
20         * genscripts.sh: Accept specific alias as 9th argument, and use it
21         in LIB_PATH.
22
23 Wed Feb 14 16:38:36 1996  Martin Anantharaman  <martin@mail.imech.uni-duisburg.de>
24
25         * ldlang.c (lang_set_startof): Don't do anything for a
26         relocateable link.
27
28         * ldgram.y (mri_script_file): Call mri_draw_tree.
29         * mri.c (mri_draw_tree): Make globally visible.  Don't bother to
30         create memory regions.
31         (mri_load): Don't call mri_draw_tree.
32         * mri.h (mri_draw_tree): Declare.
33
34         * configure.tgt (m68*-*-psos): New target.
35         * emulparams/m68kpsos.sh: New file.
36         * scripttempl/psos.sc: New file.
37         * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
38         (em68kpsos.c): New target.
39
40 Wed Feb 14 11:09:25 1996  Ian Lance Taylor  <ian@cygnus.com>
41
42         * configure.tgt (*-*-ieee*): New target; use vanilla.
43
44         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
45         `:foo' from ${ARCH}.
46
47 Tue Feb 13 15:58:58 1996  Bryan Ford  <baford@snake.cs.utah.edu>
48
49         * scripttempl/i386msdos.sc: Don't pad the .text section.  Put
50         .rodata in .data.
51
52 Tue Feb 13 14:04:19 1996  Ian Lance Taylor  <ian@cygnus.com>
53
54         * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
55
56         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
57         it looks like we might be linking in two different versions of the
58         same shared library.  Based on a patch from H J Lu <hjl@zoom.com>.
59
60 Thu Feb  8 19:25:54 1996  Ian Lance Taylor  <ian@cygnus.com>
61
62         * ldlang.c (lang_size_sections): Increment the section size when a
63         padding statement is encountered.
64
65 Wed Feb  7 14:01:33 1996  Ian Lance Taylor  <ian@cygnus.com>
66
67         * configure.in: Look for --enable-shared.  Change the value of
68         BFDLIB when linking against a shared library on SunOS.
69         * configure: Rebuild.
70         * configure.host: If using a shared BFD library, try to pass a
71         reasonable -rpath option when linking.
72         * Makefile.in (BFDLIB): Set to @BFDLIB@.
73
74 Tue Feb  6 12:29:14 1996  Doug Evans  <dje@charmed.cygnus.com>
75
76         * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
77         * emultempl/generic.em: Strip `:foo' from ${ARCH}.
78
79 Mon Feb  5 16:25:30 1996  Ian Lance Taylor  <ian@cygnus.com>
80
81         Support for building bfd and opcodes as shared libraries, based on
82         patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
83         * configure.in (HLDFLAGS): New substitution.
84         * configure: Rebuild.
85         * configure.host: Set HLDFLAGS on SunOS.
86         * Makefile.in (HLDFLAGS): New variable.
87         (BFDDEP): New variable.
88         (BFDLIB): Change to -L../bfd -lbfd.
89         ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB).  Use
90         $(HLDFLAGS) in link.
91         (check): Set LD_LIBRARY_PATH in the environment.
92
93 Fri Feb  2 19:26:25 1996  Michael Meissner  <meissner@wogglebug.tiac.net>
94
95         * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
96         in the read-only section, not read/write unless we are making a
97         shared library.
98         (.debug*): Add dwarf debug sections.
99         (.rela.{sdata*,sbss*}): Add sections.
100
101 Fri Feb  2 16:50:21 1996  Ian Lance Taylor  <ian@cygnus.com>
102
103         * configure: Regenerate.
104
105 Thu Feb  1 10:50:46 1996  Ian Lance Taylor  <ian@cygnus.com>
106
107         * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
108         for SVR4 compatibility.
109
110         * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
111
112 Wed Jan 31 17:30:19 1996  Steve Chamberlain  <sac@slash.cygnus.com>
113
114         * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
115         * emultempl/pe.em (definfo init): Make the default stack reserve
116         of a PPC larger.
117         
118 Wed Jan 31 14:34:23 1996  Richard Henderson  <rth@tamu.edu>
119
120         * configure.tgt (m68*-apple-aux*): New target.
121         * emulparams/m68kaux.sh: New file.
122         * scripttempl/m68kaux.sc: New file.
123         * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
124         (em68kaux.c): New target.
125
126 Tue Jan 30 13:18:56 1996  Ian Lance Taylor  <ian@cygnus.com>
127
128         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
129         -bnoentry, since the right thing tends to happen anyhow.
130
131 Mon Jan 29 12:29:26 1996  Ian Lance Taylor  <ian@cygnus.com>
132
133         * ld.texinfo, ld.1: Document -export-dynamic.
134
135 Fri Jan 26 11:11:55 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
136
137         * emultempl/sunos.em: Check for native compile by comparing
138         ${target} and ${host}.
139
140 Thu Jan 25 16:46:58 1996  James G. Smith  <jsmith@cygnus.co.uk>
141
142         * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
143         TEXT_START_ADDR to allow use on IDT and PMON systems.
144
145 Wed Jan 24 20:59:40 1996  Steve Chamberlain  <sac@slash.cygnus.com>
146
147         * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
148         correct spelling.
149
150 Wed Jan 24 16:59:19 1996  Doug Evans  <dje@charmed.cygnus.com>
151
152         * configure.tgt (sparc64-*-solaris2*): New configuration.
153         (sparc64-*-aout*): Renamed from sparc64*.
154
155 Mon Jan 22 13:01:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
156
157         * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
158         * genscripts.sh: Set host, target and target_alias variables.
159         Check for native compile by comparing ${target} and ${host}.
160         * emultempl/elf32.em: Likewise.
161         * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
162
163 Mon Jan 22 11:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
164
165         * scripttempl/elfppc.sc: Refine eabi support to better support
166         .sdata, .sdata2, .sbss, etc. sections.
167
168 Tue Jan 16 15:16:58 1996  Ian Lance Taylor  <ian@cygnus.com>
169
170         * ldgram.y (%union): Add phdr field.
171         (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
172         (phdr_qualifiers): New nonterminal.  Add support for FLAGS.
173         (opt_hdrs, hdr): Remove.
174         (phdr_val): New nonterminal.
175         * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
176         and phdrs parameters.  Add flags parameter.
177         (lang_record_phdrs): Update for changes to lang_phdr.  Pass flags
178         to bfd_record_phdr.
179         * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
180         phdrs fields.  Add flags field.
181         (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
182         (lang_new_phdr): Update declaration.
183         * ld.texinfo: Document FLAGS.
184
185 Mon Jan 15 15:07:19 1996  Ian Lance Taylor  <ian@cygnus.com>
186
187         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
188         Don't make a shared library because of an undefined reference to
189         __GLOBAL_OFFSET_TABLE_.
190
191         Add some Irix 5 support, mostly from Kazumoto Kojima
192         <kkojima@info.kanagawa-u.ac.jp>:
193         * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
194         (SHLIB_TEXT_START_ADDR): Define.
195         (OTHER_GOT_SYMBOLS): Define.
196         (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
197         (EXECUTABLE_SYMBOLS): Don't define.
198         (DYNAMIC_LINK): Don't define.
199         * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
200         * scripttempl/elfmips.sc: New file.
201         * configure.host (mips*-dec-bsd*): Change mips to mips*.
202         (mips*-sgi-irix4*): Likewise.
203         (mips*-sgi-irix5*): New entry.
204         * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
205         elf.sc.
206         (eelf32lmip.c): Likewise.
207
208 Sat Jan 13 09:41:43 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
209
210         * scripttempl/elfppc.sc: Remove support for .rel.* sections.  Add
211         .rela.got.neg section.
212
213 Fri Jan 12 14:56:19 1996  Ian Lance Taylor  <ian@cygnus.com>
214
215         * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
216
217         * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
218         ANSI_PROTOTYPES is defined.  Remove special handling of
219         WINDOWS_NT.  Various indendation fixes.
220         (vfinfo): Change fmt parameter to const char *.
221         (info_msg): Write <stdarg.h> version.
222         (einfo, minfo, finfo): Likewise.
223         (info_assert): Change file parameter to const char *.
224         * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
225         defined, use a real prototype.
226         (info_assert): Change first parameter to be const char *.
227
228 Fri Jan 12 13:29:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
229
230         * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc.  Add
231         in old support that 2.7.2 needs, but the current compiler does
232         not.
233
234         * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
235         correct Linker script template.
236
237         * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
238         not 0x400000.
239         (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
240
241 Tue Jan  9 15:53:02 1996  Ian Lance Taylor  <ian@cygnus.com>
242
243         * scripttempl/alpha.sc: Put .rconst right after .rdata.
244
245 Fri Jan  5 14:07:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
246
247         * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
248         sort using right pointer.
249
250 Fri Jan  5 12:25:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
251
252         * scripttempl/elfppc.sc: Remove support for creating special
253         labels for eabi section begin/end here.  The compiler now uses
254         crt{i,n}.o to create these symbols.
255
256 Thu Jan  4 17:08:58 1996  Ian Lance Taylor  <ian@cygnus.com>
257
258         * configure.host: Change existing Linux HOSTING_CRT0 to be used
259         for a.out only, and put in appropriate HOSTING_CRT0 and
260         HOSTING_LIBS values for Linux ELF.
261
262 Thu Jan  4 12:02:05 1996  Doug Evans  <dje@canuck.cygnus.com>
263
264         * scripttempl/h8300.sc: Use all 64K for ram.
265         * scripttempl/h8300h.sc: Define 256K ram size.
266
267 Thu Dec 21 15:57:18 1995  Ian Lance Taylor  <ian@cygnus.com>
268
269         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
270         export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
271         was used, regardless of whether -bE was used.
272
273 Tue Dec 19 17:35:38 1995  Ian Lance Taylor  <ian@cygnus.com>
274
275         * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
276         relocateable before calling ldctor_build_sets if the output file
277         is in an XCOFF format.
278
279 Fri Dec 15 16:34:36 1995  Ian Lance Taylor  <ian@cygnus.com>
280
281         * ldwrite.c (build_link_order): When handling a data statement, if
282         the endianness of the output file is unknown, use the endianness
283         of the input file.
284
285 Tue Dec 12 13:55:41 1995  Stan Shebs  <shebs@andros.cygnus.com>
286
287         * mpw-config.in: Recognize mips-*-* as equivalent to
288         mips-idt-ecoff.
289         * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
290         * mpw-ld.r: Add version resources.
291         (cfrg): Use symbolic instead of literal name for executable.
292
293 Mon Dec 11 15:13:41 1995  Kim Knuttila  <krk@cygnus.com>
294
295         * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
296
297 Wed Dec  6 14:33:50 1995  Doug Evans  <dje@canuck.cygnus.com>
298
299         * ldlang.c (print_statement{,s}): Delete duplicate prototype.
300         (print_statement_list): Renamed from print_statement.  All callers
301         updated.
302         (print_statement): New function to print just one statement.
303         (print_{data,reloc,padding}_statement): Don't crash if
304         output_section == NULL.
305         (dprint_statement): New function.
306
307         * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
308         call to sort_sections.
309
310 Wed Dec  6 14:59:06 1995  Ian Lance Taylor  <ian@cygnus.com>
311
312         * emultempl/aix.em (unix_ld): New static variable.
313         (gld${EMULATION_NAME}_parse_args): Handle -unix.
314         (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
315         gc as false and export_defineds as true to size_dynamic_sections.
316
317         * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
318         phase if the current section is abs_output_section.
319
320
321 Tue Dec  5 09:49:39 1995  Doug Evans  <dje@canuck.cygnus.com>
322
323         * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
324         to sort_sections.
325
326 Fri Dec  1 16:48:36 1995  Ian Lance Taylor  <ian@cygnus.com>
327
328         * ldgram.y (PHDRS): New token.
329         (ifile_p1): Accept phdrs.
330         (section): Accept phdr_opt at the end of the section definition.
331         (phdr_op): New nonterminal.
332         (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
333         * ldlex.l: Accept PHDRS.
334         * ldlang.h (struct lang_output_section_phdr_list): Define.
335         (lang_output_section_statement_type): Add phdrs field.
336         (struct lang_phdr): Define.
337         (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
338         (lang_new_phdr): Declare.
339         * ldlang.c (lang_phdr_list): New static variable.
340         (lang_output_section_statement_lookup): Initialize phdrs field.
341         (lang_process): Call lang_record_phdrs.
342         (lang_new_phdr): New function.
343         (lang_section_in_phdr): New function.
344         (lang_record_phdrs): New static function.
345         * ld.texinfo: Document PHDRS.
346
347 Thu Nov 30 13:14:30 1995  Kim Knuttila  <krk@cygnus.com>
348
349         * scripttempl/ppcpe.sc: Moved .edata into its own section to
350         expose it.
351
352 Thu Nov 30 11:32:34 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <manfred@lts.sel.alcatel.de>
353
354         * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
355         HOSTING_LIBS for testing.
356         (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
357         testing.
358
359 Tue Nov 28 12:14:53 1995  Ian Lance Taylor  <ian@cygnus.com>
360
361         * lexsup.c (parse_args): Set config.dynamic_link to false for -N
362         and -n.
363
364 Mon Nov 27 13:12:09 1995  Ian Lance Taylor  <ian@cygnus.com>
365
366         * configure: Rebuild with autoconf 2.7.
367
368 Fri Nov 24 18:35:35 1995  Doug Evans  <dje@canuck.cygnus.com>
369
370         * scripttempl/pe.sc: Two .junk's is too much junk.
371
372 Tue Nov 21 16:14:32 1995  Ian Lance Taylor  <ian@cygnus.com>
373
374         * configure.in: Use BFD_NEED_DECLARATION.
375         * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
376         * configure, config.in: Rebuild with autoconf 2.6.
377
378         * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
379         being unsupported if this is not a relocateable link and the input
380         BFD supports it, since ldctor_build_sets can cope with that case.
381
382 Fri Nov 17 16:23:15 1995  Stan Shebs  <shebs@andros.cygnus.com>
383
384         * configure.tgt (powerpc-*-macos*): New target.
385         * emulparams/ppcmacos.sh: New file, PowerMac emulation.
386         * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
387         (eppcmacos.c): New target.
388         * mpw-eppcmacos.c: Update.
389         * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
390
391 Fri Nov 17 10:37:27 1995  Ian Lance Taylor  <ian@cygnus.com>
392
393         * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
394         $(host_canonical) and $(target_canonical).
395         (CXX_FOR_TARGET): Likewise.
396
397 Thu Nov 16 11:23:42 1995  Doug Evans  <dje@canuck.cygnus.com>
398
399         * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
400         so the malloc heap begins at a sane place.
401
402 Thu Nov 16 03:09:32 1995  Ken Raeburn  <raeburn@cygnus.com>
403
404         Version 2.6 released.
405         * ldver.c (ldversion): Update to 2.6.
406
407         * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
408         $(GENERATED_*FILES), since they need to be retained by distclean.
409         (maintainer-clean, realclean): Delete them here.
410
411 Tue Nov 14 17:08:06 1995  Ian Lance Taylor  <ian@cygnus.com>
412
413         * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
414         base file with FOPEN_WB, not "w".
415
416         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
417         environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
418         were used.
419         (gld${EMULATION_NAME}_before_allocation): Use the environment
420         variable LD_RUN_PATH if -rpath was not used.
421         * ld.texinfo, ld.1: Document LD_RUN_PATH.
422
423 Thu Nov  9 13:09:29 1995  Ian Lance Taylor  <ian@cygnus.com>
424
425         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
426         -bl and -bloadmap options.
427
428         * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
429         report a better error.
430
431         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
432         new local variable special_sections, and pass it to
433         size_dynamic_sections.  Look through the results, and move the
434         sections around in the mapping so that they are defined correctly.
435
436 Wed Nov  8 11:40:59 1995  Ian Lance Taylor  <ian@cygnus.com>
437
438         * ldemul.c (ldemul_default_target): Cast getenv return value.
439
440 Tue Nov  7 11:15:36 1995  Kim Knuttila  <krk@cygnus.com>
441
442         * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
443         Executable support.
444         * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
445         support.
446
447         * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
448         * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
449
450         * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
451         (gld_$_before_allocation): added hooks for toc construction based
452         on the above macro.
453
454 Tue Nov  7 11:47:23 1995  Ian Lance Taylor  <ian@cygnus.com>
455
456         * ld.texinfo: The linker does not use _main as an entry point.
457
458 Tue Nov  7 11:46:11 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <manfred@lts.sel.alcatel.de>
459
460         * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
461         0x2000 not 0x200.
462
463 Mon Nov  6 10:59:21 1995  Ian Lance Taylor  <ian@cygnus.com>
464
465         * configure.in: Add test for whether free must be declared.
466         * sysdep.h: Declare free if necessary.  Include "ansidecl.h".
467         * acconfig.h: Explain NEED_DECLARATION_FREE.
468         * configure, config.in: Rebuild.
469
470         * lexsup.c (parse_args): Take B:: out of shortopts.
471
472 Sun Nov  5 03:08:28 1995  Ken Raeburn  <raeburn@cygnus.com>
473
474         * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
475         for now, as with m68k4kbsd, until shared library support gets
476         done.
477
478         * configure.host: For i386 BSD variants, crt0.o lives in
479         /usr/lib.  (True for NetBSD at least, unconfirmed for others.)
480
481 Wed Nov  1 15:42:45 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <manfred@lts.sel.alcatel.de>
482
483         * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
484         (edelta68.c): New target.
485         * configure.tgt (m68*-motorola-sysv*): New target.
486         * emulparams/delta68.sh: New file.
487         * scripttempl/delta68.sc: New file.
488
489         * scripttempl/m88kbcs.sc: Handle .init and .fini.  Change section
490         addresses.
491
492 Wed Nov  1 11:41:56 1995  Ian Lance Taylor  <ian@cygnus.com>
493
494         * ldgram.y (mri_script_command): Accept ',' as well as '=' in
495         ALIGN and ALIGNMOD statements.
496
497         * emultempl/aix.em: Include ldgram.h.
498         (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
499         AIX 4.1.
500         * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
501
502 Tue Oct 31 18:22:24 1995  David Mosberger-Tang  <davidm@azstarnet.com>
503
504         * configure.host (alpha-*-linux*): New host.
505         * configure.tgt (alpha-*-linux*): New target.
506
507 Tue Oct 31 12:36:52 1995  Ian Lance Taylor  <ian@cygnus.com>
508
509         * emultempl/aix.em (export_files): Remove.
510         (import_files): Make static.
511         (struct export_symbol_list): Define.
512         (export_symbols): New static variable.
513         (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
514         correctly.  Call read_file for an export file.
515         (gld${EMULATION_NAME}_before_allocation): Call
516         bfd_xcoff_export_symbol for each export symbol, rather than
517         calling read_file for each export file.
518         (gld${EMULATION_NAME}_read_file): For an export file, make the
519         exported symbols undefined, and store them on the export_symbols
520         list.
521
522 Sat Oct 28 00:10:03 1995  steve chamberlain  <sac@slash.cygnus.com>
523
524         * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
525         Don't hang if last option is unrecognised.
526         (gld_${EMULATION_NAME}_set_symbols): Insert created
527         symbols into ABS output section.
528
529 Fri Oct 27 18:03:17 1995  Niklas Hallqvist  <niklas@appli.se>
530
531         *  Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
532         m68k4k arch.
533         (em68k4knbsd.c): New rule.
534
535         * configure.tgt: Added support for the NetBSD m68k4k arch.
536
537         * genscripts.sh, ldint.texinfo,
538         emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
539         gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
540         hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
541         i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
542         m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
543         pc532machaout,rce,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
544         st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
545         PAGE_SIZE to TARGET_PAGE_SIZE. 
546
547         * emulparams/m68knbsd.h: Ditto.
548         (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
549         (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
550         being.
551
552         * emulparams/m68k4knbsd.sh: New file.
553
554         * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
555         
556 Fri Oct 27 17:59:09 1995  Ian Lance Taylor  <ian@cygnus.com>
557
558         * emultempl/aix.em: Include ldctor.h.
559         (gld${EMULATION_NAME}_after_open): New static function.
560         (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
561         (gld${EMULATION_NAME}_find_relocs): New static function.
562         (gld${EMULATION_NAME}_find_exp_assignment): New static function.
563         (ld_${EMULATION_NAME}_emulation): Use new after_open function.
564         * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
565         * ldctor.c (struct set_info): Move definition into ldctor.h.
566         (struct set_element): Likewise.
567         (sets): Make non-static.
568         (ldctor_add_set_entry): Add name parameter.  Save it in the new
569         set element.
570         (ldctor_build_sets): Avoid being called twice.  Pass set element
571         name to lang_add_reloc.
572         * ldctor.h (struct set_info): Move definition here from ldctor.c.
573         (struct set_element): Likewise.  Add new field name.
574         (sets): Declare.
575         (ldctor_add_set_entry): Declare new name parameter.
576         * ldwrite.c (build_link_order): Don't insist that either name or
577         section be NULL in a lang_reloc_statement.
578         * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
579         new name parameter.
580         (constructor_callback): Pass name to ldctor_add_new_set_entry for
581         new name parameter.
582         
583         * ldmisc.c (demangle): Fix indentation.  Remove a leading period.
584
585 Thu Oct 26 22:22:49 1995  Stan Shebs  <shebs@andros.cygnus.com>
586
587         * mpw-config.in: Add PowerMac target support, generate config.h.
588         * mac-ld.r: New file, Mac resources.
589         * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
590         * mpw-make.in: Remove.
591         * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
592
593 Thu Oct 26 14:11:26 1995  Ian Lance Taylor  <ian@cygnus.com>
594
595         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
596         -static as a synonym for -bnso.
597
598         * scripttempl/aix.sc: Move special symbols inside sections.
599         Always start .data at 0.
600
601 Wed Oct 25 11:52:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
602
603         * Makefile.in (diststuff):  Also make info.
604         (maintainer-clean realclean):  Also delete *.info*.
605
606 Wed Oct 25 11:27:25 1995  Ian Lance Taylor  <ian@cygnus.com>
607
608         * emultempl/aix.em: Add support for various AIX linker options,
609         for AIX import and export files, and for AIX shared objects.
610         * scripttempl/aix.sc: Add .pad.  Put .ds just before the TOC.
611
612         * ldmain.c (main): Initialize new field link_info.static_link.
613
614         * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
615         (constructor_callback): Likewise.
616         * ldmisc.c (vfinfo): Likewise.
617         * ldwrite.c (build_link_order): Likewise.
618
619         * ld.texinfo: The MRI ALIGN directive is supported.
620
621 Mon Oct 23 11:46:43 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
622
623         * emulparams/elf32vr4300.sh: Deleted.
624         * emulparams/elf32vr4300el.sh: Deleted.
625         * emulparams/elf32b4300.sh: Added.
626         * emulparams/elf32l4300.sh: Added.
627         * configure.tgt, Makefile.in: Updated the build to use the
628         new 8.3 unique names.
629
630 Thu Oct 19 17:41:46 1995  Ian Lance Taylor  <ian@cygnus.com>
631
632         * ldlang.c (entry_symbol): Make non-static.
633         * ldlang.h (entry_symbol): Declare.
634
635         * ldlex.l: Treat PROVIDE as a keyword in expression state.
636
637 Wed Oct 18 17:34:06 1995  steve chamberlain  <sac@slash.cygnus.com>
638
639         * scripttempl/pe.sc (.bss): Move to be after .text
640
641 Tue Oct 17 12:22:05 1995  Ian Lance Taylor  <ian@cygnus.com>
642
643         * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
644         Search trinary.cond rather than searching trinary.lhs twice.  From
645         linli@ihp.PHys.ethz.CH.
646
647         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
648         directory searching code into gld${EMULATION_NAME}_search_dir.
649         (gld${EMULATION_NAME}_search_dir): New static function, extracted
650         from gld${EMULATION_NAME}_find_so.
651         (global_needed, global_found): New static variables.
652         (gld${EMULATION_NAME}_after_open): New static function.
653         (gld${EMULATION_NAME}_search_needed): New static function.
654         (gld${EMULATION_NAME}_try_needed): New static function.
655         (gld${EMULATION_NAME}_check_needed): New static function.
656         (ld_${EMULATION_NAME}_emulation): Use new after_open function.
657         * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
658
659         * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
660         (eelf32lppc.c): Likewise.
661         * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
662         (GENERATE_SHLIB_SCRIPT): Define as yes.
663
664 Mon Oct 16 19:11:13 1995  Ian Lance Taylor  <ian@cygnus.com>
665
666         * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
667         bfd_link_needed-list; make appropriate changes.
668
669         * configure.tgt (powerpc-*-aix*): New target; use aixppc.
670         (rs6000-*-aix*): New target; use aixrs6.
671         * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
672         * emultempl/aix.em: New file.
673         * scripttempl/aix.sc: New file.
674         * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
675         (eaixppc.c, eaixrs6.c): New targets.
676
677 Fri Oct 13 14:00:37 1995  steve chamberlain  <sac@slash.cygnus.com>
678
679         * scripttemp/pe.sc (.reloc): Move to the end.
680
681 Tue Oct 10 17:53:22 1995  Ian Lance Taylor  <ian@cygnus.com>
682
683         * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
684         section which was not linked into the final output.
685
686 Tue Oct 10 10:17:22 1995  steve chamberlain  <sac@slash.cygnus.com>
687
688         * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
689         fatal typos.
690
691 Tue Oct 10 01:01:51 1995  Ian Lance Taylor  <ian@cygnus.com>
692
693         * ld.h (args_type): Add rpath_link field.
694         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
695         required dependencies in rpath_link path.  Only search
696         LD_LIBRARY_PATH when configured native.
697         * lexsup.c (parse_args): Recognize -rpath-link.
698         * ld.1, ld.texinfo: Document -rpath-link.
699
700 Sat Oct  7 17:07:17 1995  Ian Lance Taylor  <ian@cygnus.com>
701
702         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
703         bother searching for needed libraries unless doing a final link.
704
705 Fri Oct  6 16:26:16 1995  Ken Raeburn  <raeburn@cygnus.com>
706
707         Mon Sep 25 22:49:32 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
708
709         * ld/ld.1: Fix formatting bugs.
710
711 Wed Oct  4 17:37:46 1995  Ian Lance Taylor  <ian@cygnus.com>
712
713         * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
714         * ldexp.h (exp_get_abs_int): Update declaration.
715         * ldlang.c (print_output_section_statement): Use fprintf_vma to
716         print return value of exp_get_abs_int.
717
718 Mon Oct  2 13:56:09 1995  Ian Lance Taylor  <ian@cygnus.com>
719
720         * emultempl/elf32.em (global_stat): New file static variable.
721         (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
722         that the file has not already been included under another name.
723         (gld${EMULATION_NAME}_stat_needed): New static function.
724
725 Fri Sep 29 12:00:18 1995  Doug Evans  <dje@deneb.cygnus.com>
726
727         * scripttempl/armcoff.sc: Start .text at 0x8000.
728         Start .data at 0x40000.
729
730 Fri Sep 29 11:09:46 1995  Ian Lance Taylor  <ian@cygnus.com>
731
732         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
733         command_line.rpath is set, use it, rather than the -L options, to
734         build the rules section.
735         * ld.texinfo: Document this use of -rpath.
736
737         * lexsup.c (parse_args): Don't set link_info.shared for -assert
738         pure-text.  Pass true, not 1, to lang_add_entry.
739         * emultempl/sunos.em (find_assign): New static variable.
740         (found_assign): New static variable.
741         (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
742         If not a relocateable link, and no start symbol was specified on
743         the command line, and there are any undefined symbols, set
744         link_info.shared.  If link_info.shared is set, set the address of
745         the .text section to 0x20.
746         (gld${EMULATION_NAME}_find_assignment): Rename from
747         gld${EMULATION_NAME}_find_statement_assignment.  If find_assign is
748         set, then just set found_assign based on whether an assignment is
749         found to find_assign.
750         (gld${EMULATION_NAME}_get_script): Don't use a special script when
751         producing a shared library.
752         * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
753         * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
754         * ldlang.c (entry_from_cmdline): New global variable.
755         (lang_add_entry): Change cmdline parameter from int to boolean.
756         Use global entry_from_cmdline rather than function static
757         from_cmdline.
758         * ldlang.h (entry_from_cmdline): Declare.
759         (lang_add_entry): Change declaration of second parameter from int
760         to boolean.
761         * ldgram.y: Pass false, not 0, to lang_add_entry.
762
763 Thu Sep 28 12:34:13 1995  Ian Lance Taylor  <ian@cygnus.com>
764
765         * ld.h (parsing_defsym): Declare.
766         * ldlex.h (lex_string): Declare.
767         * ldlex.l (lex_string): Define.
768         * lexsup.c (parsing_defsym): Define.
769         (parse_args): In OPTION_DEFSYM case, set lex_string before calling
770         lex_redirect, and clear it after calling yyparse.  Set
771         parsing_defsym around call to yyparse.
772         * ldmain.c (main): Set lex_string before calling lex_redirect, and
773         clear it after calling yyparse.
774         * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
775         in linker scripts correctly.
776
777         * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
778         COFF targets, allowing for the leading underscore used on SPARC
779         COFF.
780
781         * lexsup.c (parse_args): Handle -assert.
782         * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
783         * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
784         shared library script when appropriate.
785         * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
786         section at SIZEOF_HEADERS.
787
788 Thu Sep 28 01:40:37 1995  Doug Evans  <dje@deneb.cygnus.com>
789
790         * Makefile.in (earmcoff.c): Build.
791         * configure.tgt (arm-*-coff): New target
792         * emulparms/armcoff.sh: New file.
793         * scripttempl/armcoff.sc: New file.
794
795 Tue Sep 26 10:59:32 1995  Ian Lance Taylor  <ian@cygnus.com>
796
797         * scripttempl/i386coff.sc: Remove .data2; no longer needed.
798
799 Fri Sep 22 18:09:02 1995  Ian Lance Taylor  <ian@cygnus.com>
800
801         * ldfile.c (ldfile_set_output_arch): Make arch const.
802
803 Thu Sep 21 17:55:24 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
804
805         * scripttempl/elfppc.sc: Correctly locate __bss_start at the
806         beginning of the .bss area, not at the end of data.  Add
807         __sbss_{start,end} symbols.
808
809 Wed Sep 20 12:29:36 1995  Ian Lance Taylor  <ian@cygnus.com>
810
811         * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
812         (CXX_FOR_TARGET, install): Likewise.
813
814 Mon Sep 18 14:53:22 1995  Ian Lance Taylor  <ian@cygnus.com>
815
816         Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
817         * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
818         (CXX_FOR_TARGET): Likewise.
819         (install): Likewise.
820         (GENERATED_HFILES): Remove config.h.
821         (.dep): Depend upon config.h.
822
823 Mon Sep 18 14:39:38 1995  Arne H. Juul  <arnej@pvv.unit.no>
824
825         * configure.tgt (mips*-dec-netbsd*): New target.
826
827 Fri Sep 15 20:01:52 1995  Ken Raeburn  <raeburn@cygnus.com>
828
829         * configure.host (m88*-*-dgux*): Fix another shell syntax error.
830
831 Fri Sep 15 23:28:05 1995  Andrew Cagney  <cagney@highland.com.au>
832
833         * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
834
835 Thu Sep 12 12:50:49 1995  steve chamberlain  <sac@slash.cygnus.com>
836
837         * scripttemp/pe.sc:  Allow both spellings of .ctors/.dtors.
838         Start .text section on the right boundary. Always align
839         stabs.
840
841 Tue Sep 12 12:24:17 1995  Ian Lance Taylor  <ian@cygnus.com>
842
843         * Makefile.in (maintainer-clean): New target.
844
845         * ldmain.c (struct warning_callback_info): Define.
846         (warning_callback): Add new parameter symbol.  Call
847         warning_find_reloc to try to find the section and VMA.
848         (warning_find_reloc): New static function.
849         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
850         Pass NULL as symbol parameter to warning callback.
851
852         * ld.texinfo: Clarify -L option.
853
854         * ldlang.c (lang_one_common): Add cast to avoid warning.
855         (topower): Likewise.  Also, reindent.
856         * ldwrite.c (clone_section): Change i to unsigned int.
857         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
858         cast to avoid warning.
859
860 Fri Sep  8 16:32:43 1995  Ian Lance Taylor  <ian@cygnus.com>
861
862         * Makefile.in (config.status): Depend upon configure.tgt.
863
864         * ldemul.h (ldemul_set_symbols): Declare.
865         (ldemul_parse_args): Declare.
866         * ldemul.c (ldemul_parse_args): Fix indentation.
867
868         * configure.in: Call AC_HEADER_DIRENT.
869         * configure, config.in: Rebuild.
870         * emultempl/sunos.em: Use autoconf recommend mechanism to define
871         DIR and struct dirent.
872
873         * configure.tgt (mips*-*-bsd*): New case.
874
875         * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
876         New case.
877         * configure.tgt (i[345]86-*-ptx*): New case.
878
879 Thu Sep  7 10:48:26 1995  Ian Lance Taylor  <ian@cygnus.com>
880
881         * config.in: Rename from config.h.in.
882         * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
883         Check for config.h:config.in when creating stamp-h.
884         * configure: Rebuild.
885         * Makefile.in (stamp-h): Depend upon config.in rather than
886         config.h.in.  Set CONFIG_HEADERS to config.h:config.in when
887         calling config.status.
888
889         * Makefile.in (distclean): Remove config.h and stamp-h.
890
891         * configure.host (sparc-*-sunos64*): Remove.
892         * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
893
894         * ldexp.c (exp_fold_tree): Don't warn about moving the location
895         counter backward in the absolute section.
896
897 Wed Sep  6 14:42:11 1995  Ian Lance Taylor  <ian@cygnus.com>
898
899         * configure.in: Rewrite to use autoconf.
900         * configure.host: New file.
901         * configure.tgt: New file.
902         * aclocal.m4: New file.
903         * configure: New file, built by autoconf.
904         * acconfig.h: New file.
905         * config.h.in: New file, built by autoheader.
906         * sysdep.h: New file.
907         * ld.h: Incorporate old contents of config.h.
908         * config.h: Remove.
909         * Makefile.in: Various changes for new configure script.  Also:
910         (CC_FOR_BUILD): Remove.
911         (ldmain.o): Don't bother to ensure that EMUL is non-empty.
912         (dep.sed): Use @SRCDIR@, not @srcdir@.
913         * dep-in.sed: Use @SRCDIR@, not @srcdir@.
914         * genscripts.sh: Create ldscripts if it does not exist.
915         * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
916         * mpw-esh.c, emultemp/*.em: Likewise.
917         * ldmain.c: Likewise.  Include <ctype.h>.  Don't try to set
918         HAVE_SBRK here.
919         * config/*.mt, config/*.mh: Remove.
920
921 Tue Sep  5 14:55:24 1995  Ken Raeburn  <raeburn@cygnus.com>
922
923         * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
924         ns32k-pc532-lites* like ns32k-pc532-netbsd*.  From Ian Dall.
925
926 Fri Sep  1 22:29:52 1995  Doug Evans  <dje@canuck.cygnus.com>
927
928         * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
929
930 Fri Sep  1 13:13:29 1995  Ian Lance Taylor  <ian@cygnus.com>
931
932         * ldmain.c (warning_callback): Add abfd, section, and address
933         parameters.
934         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
935         Change call to warning accordingly.
936
937         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
938         relocateable and not shared, put .gnu.warning.SYMBOL sections into
939         the .text section.
940
941 Fri Sep  1 08:35:16 1995  James G. Smith  <jsmith@beauty.cygnus.com>
942
943         * configure.in: Added mips*vr4300-idt-elf* and
944         mips*vr4300el-idt-elf* targets.
945         * Makefile.in: Added eelf32vr4300* targets.
946         * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
947         * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
948
949 Fri Sep  1 10:51:45 1995  Ian Lance Taylor  <ian@cygnus.com>
950
951         * scripttempl/a29k.sc: Fix to be reasonable.  From Brendan Kehoe
952         <brendan@cygnus.com>.
953
954 Thu Aug 31 16:37:07 1995  steve chamberlain  <sac@slash.cygnus.com>
955
956         * ldemul.c (ldemul_parse_args): New.
957         * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
958         * lexsup.c (all pe stuff): Moved into pe.em
959         (parse_args): Call emulation arg parser.
960         * emultempl/pe.em (parse_args): handle PE specfic args.
961
962 Thu Aug 31 17:01:37 1995  Ian Lance Taylor  <ian@cygnus.com>
963
964         * ldlang.c (lang_memory_region_lookup): Don't use the first region
965         as the default region.  Create a new region instead.
966
967 Tue Aug 29 14:21:41 1995  steve chamberlain  <sac@slash.cygnus.com>
968
969         * ldemul.c (ldemul_set_symbols): New function.
970         * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
971         * ldmain.c (main): Add call to ldemul_set_symbols.
972         * lexsup.c (set_pe_value): New args.
973         (set_pe_name): New.
974         (parse_args): Cope with new set_pe_value args.
975         * emultempl/pe.em (set_symbols): New function.
976         (ld_emulation_xfer_struct): Add set_symbols.
977         * scripttempl/pe.sc: Use new symbols.
978
979 Thu Aug 24 18:12:18 1995  Ian Lance Taylor  (ian@cygnus.com)
980
981         * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
982         For -Y, ignore a leading `P,', and only call set_default_dirlist
983         after processing all the other arguments.
984
985 Tue Aug 22 07:36:58 1995  steve chamberlain  <sac@slash.cygnus.com>
986
987         * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
988         * emulparams/armpe.sh: Run PE script.
989
990 Mon Aug 21 18:30:42 1995  steve chamberlain  <sac@slash.cygnus.com>
991
992         * ldmain.c (main): Remove PE stuff.
993         * lexsup.c (options): Load more PE options.
994         (set_pe_value): New function.
995
996 Thu Aug 17 13:35:49 1995  steve chamberlain  <sac@slash.cygnus.com>
997         
998
999         * emultempl/{armpe.sc, i386pe.sc}: Deleted.
1000         * emultempl/pe.sc: New file performs generic PE support and sorts
1001         archive members.
1002         * emulparams/{armpe.sh,i386pe.sh}: Use new file.
1003         * scripttempl/{armpe.sc, i386pe.sc}: Deleted
1004         * scripttempl/pe.sc: New.
1005         * Makefile.in: Use new files.
1006
1007 Thu Aug 17 14:46:34 1995  Doug Evans  <dje@canuck.cygnus.com>
1008
1009         * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
1010         (.strings,.ctors,.dtors): Likewise.
1011
1012 Wed Aug 16 11:38:59 1995  steve chamberlain  <sac@slash.cygnus.com>
1013
1014         * scripttempl/armpe.sc: Always start code at 0x401000, even
1015         if -r.
1016         * ldwrite.c (strdup): New extern declaration.
1017         * ldgram.y (atype): New rule to clarify type parsing. 
1018         * ldlang.c (init_os): Remove commented out code.
1019         (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
1020         unless told not to by the link script.
1021
1022 Wed Aug 16 11:45:11 1995  Ian Lance Taylor  <ian@cygnus.com>
1023
1024         * ldlang.c (lang_set_startof): New static function.
1025         (lang_process): Call it.
1026
1027         * ldgram.y: Tweak casesymlist to avoid bison errors.
1028
1029         * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
1030         Solaris compatibility.
1031
1032 Tue Aug 15 17:31:16 1995  Ian Lance Taylor  <ian@cygnus.com>
1033
1034         * ldgram.y (YYDEBUG): If not defined, define as 1.
1035         (CASE, EXTERN, START): New tokens.
1036         (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
1037         (casesymlist): New nonterminal.
1038         (extern_name_list): New nonterminal.
1039         * ldlex.l: Accept lower case trailing base specifiers.  Don't
1040         ignore the first digit when the base is a suffix.  Accept many
1041         EXPRESSION state tokens in MRI state.  Support MRI continuation
1042         lines and MRI semicolon comments.  Accept all MRI keywords in
1043         lower case.  Add CASE, EXTERN, and START MRI keywords.
1044
1045 Tue Aug  8 19:14:58 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
1046
1047         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
1048         instead of alloca.
1049
1050 Tue Aug  8 15:24:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
1051
1052         * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
1053         $r/../gcc/xgcc unless it is present.
1054
1055 Thu Aug  3 11:56:22 1995  Ian Lance Taylor  <ian@cygnus.com>
1056
1057         * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
1058         when CONSTRUCTING.
1059         * scripttempl/m68klynx.sc: Likewise.
1060         * scripttempl/nw.sc: Likewise.
1061         * scripttempl/sa29200.sc: Likewise.
1062         * scripttempl/sparclynx.sc: Likewise.
1063
1064 Fri Jul 28 12:02:23 1995  steve chamberlain  <sac@slash.cygnus.com>
1065
1066         * emulparams/{z8001.sh, z8002.sh}: Fix typo.
1067
1068 Thu Jul 27 21:06:21 1995  Ken Raeburn  <raeburn@cygnus.com>
1069
1070         * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
1071
1072 Thu Jul 27 15:26:28 1995  steve chamberlain  <sac@slash.cygnus.com>
1073
1074         * scripttempl/i386pe.sc: Cope with constructors.
1075         * scripttempl/z8ksim.sc: Deleted.
1076         * scripttempl/z8000.sc: Resurrected as this, but
1077         can handle z8001 and z8002 formats.
1078         * emulparams/z8ksim.sh: Deleted.
1079         * emulparams/{z8001.sh, z8002.sh}: New files.
1080         * config/z8ksim.mt: Deleted
1081         * config/z8k-coff.mt: New, generates both emulations.
1082
1083 Tue Jul 25 14:53:02 1995  Ian Lance Taylor  <ian@cygnus.com>
1084
1085         * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
1086         %B, in case it is in an archive.
1087
1088 Mon Jul 24 15:23:39 1995  Ian Lance Taylor  <ian@cygnus.com>
1089
1090         * ldlang.c (lang_process): Call reset_memory_regions for each
1091         relaxation pass.
1092
1093 Fri Jul 21 22:49:44 1995  Michael Meissner  <meissner@cygnus.com>
1094
1095         * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
1096         _SDA_BASE.
1097
1098 Thu Jul 20 16:26:55 1995  Ken Raeburn  <raeburn@cygnus.com>
1099
1100         * ldmain.c (constructor_callback): Allocate set_name in stack
1101         frame, rather than always calling alloca with a fixed size.
1102
1103 Wed Jul 19 16:21:43 1995  Doug Evans  <dje@canuck.cygnus.com>
1104
1105         * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
1106         (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
1107
1108 Mon Jul 17 13:57:00 1995  Ian Lance Taylor  <ian@cygnus.com>
1109
1110         * ldwrite.c (clone_section): Set the alignment of the clone
1111         section to that of the section being cloned.
1112
1113         * ldwrite.c (split_sections): Don't split the first input section
1114         into a new output section.
1115
1116 Sat Jul 15 00:26:35 1995  Michael Meissner  <meissner@cygnus.com>
1117
1118         * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
1119         (GENERATE_SHLIB_SCRIPT): Define as yes.
1120
1121 Fri Jul 14 12:11:46 1995  Ian Lance Taylor  <ian@cygnus.com>
1122
1123         * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
1124
1125         * ldver.c (help): Update list of options to match currently
1126         supported list.
1127
1128 Thu Jul 13 13:52:10 1995  Ian Lance Taylor  <ian@cygnus.com>
1129
1130         * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
1131         after_open field.
1132
1133         * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
1134         it takes a size_t anyhow.
1135         (exp_binop): Likewise.
1136         (exp_trinop): Likewise.
1137         (exp_unop): Likewise.
1138         (exp_nameop): Likewise.
1139         (exp_assop): Likewise.
1140         * ldlang.c (lang_memory_region_lookup): Likewise.
1141         (init_os): Likewise.
1142         (ldlang_add_undef): Likewise.
1143         (insert_pad): Likewise.
1144         * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
1145         bfd_size_type.
1146
1147         * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
1148
1149 Wed Jul 12 11:32:22 1995  Ian Lance Taylor  <ian@cygnus.com>
1150
1151         * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
1152         declaration.
1153         (ld_emulation_xfer_type): Add search parameter to
1154         open_dynamic_archive entry point.
1155         * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
1156         * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
1157         make non-static.  Change all callers to use new name.
1158         (ldfile_open_file_search): Make static.  If entry is dynamic, call
1159         ldemul_open_dynamic_archive.
1160         (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
1161         * ldfile.h (ldfile_open_file_search): Don't declare.
1162         (ldfile_try_open_bfd): Declare.
1163         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1164         Accept search parameter.  Don't search for a library, just look in
1165         a single place.
1166         * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
1167         Likewise.
1168
1169 Tue Jul 11 16:44:21 1995  Ian Lance Taylor  <ian@cygnus.com>
1170
1171         * ldmain.c (set_scripts_dir): Don't base script directory on
1172         current directory.
1173
1174 Tue Jul 11 12:29:02 1995  Rick Sladkey  <jrs@world.std.com>
1175
1176         * ldmisc.c (vfinfo): Don't print the line number if it isn't
1177         meaningful.
1178
1179 Mon Jul 10 13:38:28 1995  Ian Lance Taylor  <ian@cygnus.com>
1180
1181         * ld.h (ld_config_type): Add field warn_constructors.
1182         * ldmain.c (add_to_set): Warn if config.warn_constructors.
1183         (constructor_callback): Likewise.
1184         * lexsup.c (parse_args): Handle -warn-constructors.
1185         * ld.texinfo, ld.1: Document -warn-constructors.
1186
1187         * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
1188         get confused by directory names if we searched for the file.
1189
1190         Based on patches from H.J. Lu <hjl@nynexst.com>:
1191         * ldlang.h (lang_input_statement_type): Add new field dynamic.
1192         * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
1193         * ldfile.c: Include bfdlink.h.
1194         (ldfile_open_file): Check dynamic field of entry, not global
1195         dynamic_link field.  Don't do a dynamic search when doing a
1196         relocateable link.
1197         * ldmain.c (main): Don't warn about dynamic_link for a
1198         relocateable link.
1199         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
1200         dynamic is false.
1201         (gld${EMULATION_NAME}_create_output_section_statements): Always
1202         loop over input files.
1203         * Makefile.in: Rebuild dependencies.
1204
1205         * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
1206         -shared.
1207
1208 Mon Jul 10 13:29:43 1995  Eric Youngdale  <eric@aib.com>
1209
1210         * ldmain.c (main): Set link_info.symbolic to false.
1211         * lexsup.c (parse_args): Handle -Bsymbolic.
1212
1213 Wed Jul  5 00:12:11 1995  Fred Fish  (fnf@cygnus.com)
1214
1215         * ldmain.c (HAVE_SBRK):  Define for everything except
1216         specific systems that are known to not support sbrk.
1217         (main):  Use HAVE_SBRK to decide whether or not to use sbrk.
1218
1219 Tue Jul  4 12:55:48 1995  Ian Lance Taylor  <ian@cygnus.com>
1220
1221         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
1222         Handle etree_provide.
1223
1224         * emultempl/elf32.em (global_needed): New static variable.
1225         (global_found): Likewise.
1226         (gld${EMULATION_NAME}_after_open): New static function.
1227         (gld${EMULATION_NAME}_search_needed): Likewise.
1228         (gld${EMULATION_NAME}_try_needed): Likewise.
1229         (gld${EMULATION_NAME}_check_needed): Likewise.
1230         (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
1231         gld${EMULATION_NAME}_after_open.
1232
1233 Mon Jul  3 14:26:37 1995  Steve Chamberlain  <sac@slash.cygnus.com>
1234
1235         * configure.in (i386-*-win32): New target.
1236
1237 Mon Jul  3 14:39:22 1995  Ian Lance Taylor  <ian@cygnus.com>
1238
1239         * lexsup.c (parse_args): Let -G either set the small data size or
1240         be equivalent to --shared, depending on the next argument.  Accept
1241         and ignore -z for Solaris compatibility.
1242
1243 Sun Jul  2 17:52:34 1995  Ian Lance Taylor  <ian@cygnus.com>
1244
1245         * lexsup.c (parse_args): Cast fopen result to PTR before storing
1246         it in link_info.base_file.  Fix indentation.
1247
1248 Wed Jun 28 17:11:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
1249
1250         * ldmain.c (main): Always initialize PE info in link_info.
1251         * lexsup.c (OPTION_BASE_FILE): New option.
1252         (parse_args): Handle new option.
1253         * emulparams/armpe.sh: Output pei.
1254         * emultempl/i386pe.em: Add newline to end.
1255         * scripttempl/armpe.sc: Change output and quote the $s.
1256         * scripttempl/i386pe.sc: Change output and quote the $s.
1257
1258 Thu Jun 22 19:55:41 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
1259
1260         Sun May  7 11:53:41 MDT 1995  Bryan Ford  <baford@cs.utah.edu>
1261
1262         * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
1263         * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
1264         (i386msdos.o): New target.
1265         * config/i386-msdos.mt: Created.
1266         * emulparams/i386msdos.sh: Created.
1267         * scripttempl/i386msdos.sc: Created.
1268
1269 Thu Jun 22 15:06:35 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
1270
1271         * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
1272         that contains pointers to be relocated.
1273
1274 Tue Jun 20 17:47:20 1995  Stan Shebs  <shebs@andros.cygnus.com>
1275
1276         * mpw-esh.c: New file, modified for MPW from esh.c.
1277         * scripttempl/sh.sc: Reformatted to simplify MPWification,
1278         use *() to concat stab sections instead of [].
1279
1280 Thu Jun 15 08:48:16 1995  Steve Chamberlain  <sac@slash.cygnus.com>
1281
1282         * scripttempl/armpe.sc: Add constructor support.
1283
1284 Tue Jun 13 09:11:20 1995  Steve Chamberlain  <sac@slash.cygnus.com>
1285
1286         * ldlang.c (lang_size_sections):  Any section with a DATA
1287         statement has contents.
1288
1289 Sun Jun 11 15:20:46 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
1290
1291         * emulparams/m68kelf.sh (NOP): Define.
1292         (DYNAMIC_LINK): Don't define.
1293         (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
1294         will come from the linker script.
1295
1296 Thu Jun  8 14:17:33 1995  Steve Chamberlain  <sac@slash.cygnus.com>
1297
1298         * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
1299
1300 Mon Jun  5 02:16:24 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
1301
1302         * configure.in (i[345]86-*-gnu*): Use GNU elf config.
1303
1304 Thu May 25 11:49:28 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
1305
1306         From Andrew Cagney <cagney@highland.com.au>
1307         * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
1308         elf32lppc.
1309
1310 Wed May 24 11:23:21 1995  Steve Chamberlain  <sac@slash.cygnus.com>
1311
1312         Add support for ARM-PE.
1313         * Makefile.in (ALL_EMULATIONS): Add armpe.o
1314         * configure.in: Recognize armpe.
1315         * config/arm-pe.mt: New file.
1316         * emulparams/armpe.sh: New file.
1317         * scripttempl/armpe.sc: New file.
1318
1319
1320 Mon May 22 15:19:26 1995  Doug Evans  <dje@chestnut.cygnus.com>
1321
1322         * configure.in (h8300h-*-hms): Deleted
1323         * config/cf-h8300h.mt: Deleted.
1324
1325 Thu May 18 04:26:10 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
1326
1327         Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
1328
1329         From David Taylor (dtaylor@armltd.co.uk)
1330         * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
1331         * configure.in: Recognize arm{,e[lb]-*-aout.
1332         * config/arm[lb]-aout.mt: New files.
1333         * emulparams/armaout[lb].sh: New files.
1334         * scripttempl/armaout.sc: New file.
1335
1336 Tue May 16 18:27:11 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
1337
1338         * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
1339         be unique in 8 characters for DOS.
1340
1341         * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
1342         * emulparams/elf32ppcle.sh: Deleted.
1343
1344 Fri May 12 11:03:55 1995  Steve Chamberlain  <sac@slash.cygnus.com>
1345                           Tom Griest <griest@cs.yale.edu>
1346
1347         Initial support for PE executables (eg NT, win32)
1348
1349         * Makefile.in (configure.in, ei386pe): Add support.
1350         * ldmain.c (main): Initialize PE argument info.
1351         * ldwrite.c (print_file_stuff): Don't print out .drectve
1352         and .debug section info.
1353         * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
1354          OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
1355          Handle new arguments.
1356         * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
1357         New files
1358
1359 Wed May 10 18:37:59 1995  Stu Grossman  (grossman@andros.cygnus.com)
1360
1361         * scripttempl/hppaelf.sc:  Remove .PARISC.unwind section from text
1362         segment.  This allows ld -r to preserve unwind sections.
1363
1364 Tue May  9 17:19:57 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
1365
1366         * configure.in: Add little endian PowerPC support.
1367
1368         * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
1369         (eelf32ppcle.c): Support for little endian PowerPC.
1370
1371         * config/ppcle-elf32.mt: New file for little endian PowerPC.
1372         * emulparams/elf32ppcle.sh: Ditto.
1373
1374 Wed May  3 12:56:32 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
1375
1376         * ldlang.c (print_output_section_statement): Check
1377         subsection_alignment, instead of checking section_alignment twice.
1378         Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
1379
1380 Tue May  2 16:36:07 1995  Jeff Law  (law@snake.cs.utah.edu)
1381
1382         * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
1383
1384 Mon Apr 24 19:21:02 1995  Michael Meissner  <meissner@cygnus.com>
1385
1386         * ldwrite.c (ldwrite): Before doing anything, reset the error
1387         code.  If bfd_final_link returns an error, but the error code is
1388         unset, don't issue an extra message.  Assume a correct error
1389         message was already set.
1390
1391 Fri Apr 14 16:31:24 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
1392
1393         * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
1394         (em68kelf.o): New target.
1395         * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
1396         * configure.in: Use them for m68*-*-elf.
1397
1398 Tue Apr 11 12:02:03 1995  Stan Shebs  <shebs@andros.cygnus.com>
1399
1400         Merge in support for Mac MPW as a host.
1401         (Old change descriptions retained for informational value.)
1402
1403         * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
1404         (i386-unknown-coff): Remove.
1405         (sh-hitachi-hms): New target.
1406         (emulation_ofiles): Set correctly for each target.
1407         (version, TDEFINES): Add to makefile fragment.
1408         * mpw-make.in (BISON): Use byacc instead of bison.
1409         (em_*.c): Replace with e*.c everywhere.
1410         (ldgram.h): Separate action from ldgram.c generation.
1411         (LD_PROG): Depend on Version.r.
1412         (Version.r): generate from version info.
1413         * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
1414
1415         * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
1416         i386-unknown-aout, i386-unknown-coff): New targets.
1417         (m68k-aout, m68k-coff): Remove targets.
1418         (mk.tmp): Add definition of EMUL.
1419
1420         * mpw-config.in (emulname): Set based on target.
1421         (ldemul-list.h): Construct.
1422         * mpw-make.in (install-only): New target.
1423         (install): Depend on install-only.
1424
1425         * mpw-make.in (bindir): Fix pathname.
1426         (install): Move here from mpw-build.in.
1427
1428         * mpw-config.in: New file, MPW configuration fragment.
1429         * mpw-make.in: New file, MPW makefile fragment.
1430         (This file is semi-automatically generated from Makefile.in.)
1431         * ldfile.c (slash): If MPW, set to `:'.
1432         * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
1433         prevent redefinition errors.
1434
1435 start-sanitize-arc
1436 Thu Apr  6 20:38:36 1995  Doug Evans  <dje@chestnut.cygnus.com>
1437
1438         * emulparams/arcelf.sh (ENTRY): Define.
1439 end-sanitize-arc
1440
1441 Tue Apr  4 17:55:18 1995  Steve Chamberlain  <sac@bang.hack.com>
1442
1443         * ldwrite.c (clone_section): Align clone sections on even
1444         boundaries.
1445
1446 Thu Mar 30 14:32:26 1995  H.J. Lu (hjl@nynexst.com)
1447
1448         * configure.in: Change linux to default to elf.  Using
1449         i[345]86-*-linuxaout will build a linker which defaults to a.out.
1450         * config/i386-laout.mt: Rename from old config/i386-linux.mt.
1451         * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
1452         * config/i386-lelf.mt: Remove.
1453
1454 Thu Mar 30 13:09:46 1995  Ian Lance Taylor  <ian@cygnus.com>
1455
1456         * ldmain.c (main): If opening the map file fails, call
1457         bfd_set_error before calling einfo.
1458
1459         * ld.texinfo, ld.1: Document the -no-keep-memory option.
1460
1461 Mon Mar 27 11:10:08 1995  Ian Lance Taylor  <ian@cygnus.com>
1462
1463         * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
1464         does mark shared libraries as executable.
1465
1466 Tue Mar 21 15:15:38 1995  Ian Lance Taylor  <ian@cygnus.com>
1467
1468         * ldlang.c (lang_common): Change power to int.  Pass larger values
1469         before smaller values.
1470         (lang_one_common): Treat info as int *.  Don't bother to check for
1471         last value, since it is now zero.
1472
1473 Sat Mar 18 01:49:14 1995  Ian Lance Taylor  <ian@cygnus.com>
1474
1475         * ldlang.c (load_symbols): An empty archive is OK.
1476
1477 Fri Mar 17 16:15:31 1995  Stan Shebs  <shebs@andros.cygnus.com>
1478
1479         * ldmain.c (progress.h): Include.
1480         (main): Call START_PROGRESS and END_PROGRESS.
1481
1482 Thu Mar 16 17:17:33 1995  Michael Meissner  <meissner@cygnus.com>
1483
1484         * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
1485         .dtors sections, so that these pointers get relocated also.
1486         Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
1487         and end of the constructors/destructors.
1488
1489 Thu Mar 16 13:59:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1490
1491         * ldlang.c (load_symbols): If whole_archive is true and ENTRY
1492         describes an archive, call bfd_link_add_symbols on each member.
1493         * ldmain.c (whole_archive): New variable.
1494         (main): Initialize it to false.
1495         * ldmain.h: Declare whole_archive.
1496         * lexsup.c (parse_args): Grok --whole-archive switch.
1497         * ld.texinfo, ld.1: Document --whole-archive.
1498
1499 Thu Mar 16 11:38:48 1995  Ian Lance Taylor  <ian@cygnus.com>
1500
1501         * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
1502         using the default emulation.
1503
1504         * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
1505         LDEMULATION.
1506         * config/hppaelf.mh (HOSTING_EMU): Likewise.
1507
1508 Tue Mar 14 12:28:03 1995  Ian Lance Taylor  <ian@cygnus.com>
1509
1510         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
1511         for -lc.N.  From H.J. Lu <hjl@nynexst.com>.
1512
1513 Fri Mar 10 14:43:48 1995  Ian Lance Taylor  <ian@cygnus.com>
1514
1515         * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
1516
1517         * ldlex.l: Return -lFILENAME as the token LNAME.
1518         * ldgram.y: Add token LNAME.
1519         (input_list): Treat LNAME like NAME, but pass it to
1520         lang_add_input_file as lang_input_file_is_l_enum.
1521         * ld.texinfo: Document using -lFILENAME in INPUT.
1522
1523 Thu Mar  9 12:21:51 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
1524
1525         * ldlang.c (lang_check): If the architectures are compatible call
1526         bfd_merge_private_bfd_data to let the backend do additional
1527         checks.
1528
1529 start-sanitize-arc
1530 Tue Mar  7 21:10:28 1995  Doug Evans  <dje@chestnut.cygnus.com>
1531
1532         * emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
1533         (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
1534 end-sanitize-arc
1535
1536 Tue Mar  7 00:53:08 1995  Ian Lance Taylor  <ian@cygnus.com>
1537
1538         * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
1539         all supported emulations.
1540
1541 Mon Mar  6 14:03:50 1995  Ian Lance Taylor  <ian@cygnus.com>
1542
1543         * ldemul.c (ldemul_list_emulations): New function.
1544         * ldemul.h (ldemul_list_emulations): Declare.
1545         * ldver.c (help): List supported targets and emulations.
1546
1547 Fri Mar  3 15:40:36 1995  Doug Evans  <dje@canuck.cygnus.com>
1548
1549         * scripttempl/elf.sc (.debug): Relocate to address 0.
1550         (.debug_srcinfo, .debug_aranges, .debug_pubnames,
1551         .debug_sfnames, .line): Likewise.
1552
1553 Fri Mar  3 17:07:14 1995  Ian Lance Taylor  <ian@cygnus.com>
1554
1555         * emultempl/elf32.em (hold_rel): New static variable.
1556         (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
1557         contents whose names begin with ".rel" after hold_rel.  Remove the
1558         assertion which checked for unplaced .rel sections.  Don't try to
1559         sort the section into place if place->bfd_section is NULL.
1560         (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
1561         section beginning with ".rel".
1562
1563 Thu Mar  2 14:34:43 1995  Ian Lance Taylor  <ian@cygnus.com>
1564
1565         Doc note from pierre@phi.la.tce.com (Pierre Willard):
1566         * ld.texinfo: -X and -x work even if -s or -S are not specified.
1567         * ld.1: Similar change. 
1568
1569 Wed Mar  1 13:51:16 1995  Ian Lance Taylor  <ian@cygnus.com>
1570
1571         * emulparams/gld960coff.sh (COFF_CTORS): Define.
1572         * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
1573
1574 Tue Feb 28 12:42:56 1995  Ian Lance Taylor  <ian@cygnus.com>
1575
1576         * configure.in (i[345]86-*-linuxelf*): New target.  Use i386-lelf.
1577         (i[345]86-*-gnuelf*): New target.  Use i386-gelf.
1578         * config/i386-lelf.mt: New file.
1579         * config/i386-gelf.mt: New file.
1580
1581 Tue Feb 28 10:27:54 1995  Rob Savoye  <rob@darkstar.cygnus.com>
1582
1583         * configure.in: Match on mips-ecoff, and default to the IDT
1584         configuration.
1585
1586 Fri Feb 17 13:06:47 1995  Michael Meissner  <meissner@cygnus.com>
1587
1588         * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
1589         Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
1590         to double the size of the table.
1591
1592 start-sanitize-arc
1593 Thu Feb  9 19:03:25 1995  Doug Evans  <dje@canuck.cygnus.com>
1594
1595         * emulparms/arcelf.sh (TEMPLATE_NAME): Comment out.
1596 end-sanitize-arc
1597
1598 Thu Feb  9 18:29:43 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
1599
1600         * Makefile.in (distclean): Do recursive deletion, since ldscripts
1601         is a directory.
1602
1603 Thu Feb  9 11:38:22 1995  Ian Lance Taylor  <ian@cygnus.com>
1604
1605         * ldmain.c (main): If trace_file_tries is true, and we are using
1606         an internal linker script, print out the script.
1607         * ldfile.c (try_open): Reindent function.  Make the messages about
1608         opening script files more informative.
1609
1610         * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
1611         * ld.texinfo, ld.1: Update accordingly.
1612
1613 Wed Feb  8 17:34:45 1995  Ian Lance Taylor  <ian@cygnus.com>
1614
1615         * ldlang.c (lang_one_common): Adjust references to common symbol
1616         information for new structure.
1617
1618 Mon Feb  6 12:17:24 1995  Ian Lance Taylor  <ian@cygnus.com>
1619
1620         * ldmain.c (undefined_symbol): Handle section being NULL.
1621
1622         * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
1623         * ldexp.c (fold_name): Likewise.
1624         * ldlang.c (print_one_symbol): Likewise.
1625         (lang_finish): Likewise.
1626         * ldmain.c (multiple_common): Likewise.
1627         * ldwrite.c (print_symbol): Likewise.  Also, bfd_link_hash_weak
1628         renamed to bfd_link_hash_undefweak.
1629
1630         * scripttempl/alpha.sc: Set address of .data section correctly
1631         when -n or -N is used.  Patch from Chris G Demetriou
1632         <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
1633         * scripttempl/mips.sc: Similar change.
1634
1635 Tue Jan 31 16:20:52 1995  Doug Evans  <dje@canuck.cygnus.com>
1636
1637         * ldlang.c (lang_size_sections): Clarify error message when user
1638         specified start addr conflicts with region.  Fix resetting of
1639         region pointer.
1640
1641 Tue Jan 31 12:37:09 1995  Ian Lance Taylor  <ian@cygnus.com>
1642
1643         * ldexp.c (fold_name): In case NAME, permit an absolute symbol
1644         in lang_allocating_phase_enum.
1645
1646 Mon Jan 30 11:33:25 1995  Ian Lance Taylor  <ian@cygnus.com>
1647
1648         * Makefile.in (distclean): Depend upon clean.  Don't bother to
1649         remove files which will be removed by clean.  From patch by
1650         alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
1651
1652 Fri Jan 27 16:27:34 1995  Ian Lance Taylor  <ian@cygnus.com>
1653
1654         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
1655         a MIPS target, clobber the size of all but the first input
1656         .reginfo section to be 0, so that lang_size_sections sets the
1657         correct size for the output .reginfo section.
1658
1659 Thu Jan 26 19:53:37 1995  Ian Lance Taylor  <ian@cygnus.com>
1660
1661         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1662         Remove unused variable is.
1663
1664 Thu Jan 26 12:33:05 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
1665
1666         * configure.in: Add support for powerpc-*-eabi.
1667
1668         * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
1669         support.
1670
1671         * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
1672         elf.sc, which defines some new symbols PowerPC elf needs.
1673
1674 Tue Jan 24 10:32:15 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1675
1676         * ldctor.c (ldctor_add_set_entry): Don't dump core if a
1677         constructor entry is in the absolute section.
1678
1679 Mon Jan 23 13:58:13 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1680
1681         * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
1682         * config/i386-gnu.mt: New file.  Include ELF support.
1683
1684 Thu Jan 19 16:22:11 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1685
1686         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
1687         there are any input sections named .gnu.warning, treat them as
1688         containing a warning message to be printed by the linker, and
1689         clobber the size so that the message is not copied into the output
1690         file.
1691         * scripttempl/elf.sc: Put .gnu.warning sections into the .text
1692         section.
1693
1694 Sun Jan 15 16:45:00 1995  Steve Chamberlain  <sac@splat>
1695
1696         * configure.in (w65-*-*): New target.
1697         * Makefile.in: Update.
1698         * scripttempl/w65.sc: New.
1699         * config/coff-w65.mt: New.
1700
1701 Thu Jan 12 01:32:25 1995  Ian Lance Taylor  <ian@tweedledumb.cygnus.com>
1702
1703         * ldlang.c (lang_place_orphans): Don't ignore files with
1704         just_syms_flag set.  Instead, put all their sections in
1705         bfd_abs_section_ptr, using the section VMA as the output_offset.
1706
1707 Wed Jan 11 22:59:09 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
1708
1709         * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
1710         name `reloc_howto_type', since it's now defined to be const.
1711         * ldlang.c (lang_add_reloc): Ditto.
1712         * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
1713
1714 Wed Jan 11 11:24:45 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1715
1716         * ldexp.c (fold_binary): Adding or subtracting an absolute value
1717         to a relative value does not require forcing the relative value to
1718         be absolute.  Also, reindent function.
1719
1720 Wed Dec 28 22:05:52 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
1721
1722         * ldwrite.c (clone_section): Create a symbol with the
1723         same name as the section.
1724
1725 Mon Dec 19 14:02:13 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
1726
1727         * ld.h (split_by_reloc, split_by_file): New flags.
1728         * ldwrite.c  (clone_section, split_sections): New functions.
1729         * lexsup.c (parse_args): Understand new split options.
1730
1731 start-sanitize-arc
1732 Tue Dec 13 16:45:18 1994  Doug Evans  <dje@canuck.cygnus.com>
1733
1734         * configure.in (arc-elf): New target.
1735         * Makefile.in (earcelf.c): New target.
1736         * config/arc-elf.mt: New file.
1737         * emulparms/arcelf.sh: New file.
1738 end-sanitize-arc
1739
1740 Fri Dec  9 17:22:55 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1741
1742         * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
1743         .data segment.  They must be writable when creating a shared
1744         library.  From H.J. Lu <hjl@nynexst.com>.
1745
1746 Fri Dec  2 14:09:00 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
1747
1748         * emultempl/miposecoff.em: New file.
1749         * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
1750         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
1751         * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
1752         provide __runtime_reloc_start and __runtime_reloc_stop if they are
1753         used.   Align _fdata to a 16 byte boundary.
1754         * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
1755         generic.em.
1756         (emipsidtl.c): Likewise.
1757         (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
1758
1759         * ld.h (args_type): Add new field embedded_relocs.
1760         * ldemul.h (ldemul_after_open, after_open_default): Declare.
1761         (ld_emulation_xfer_struct): Add new field after_open.
1762         * ldemul.c (ldemul_after_open): New function.
1763         (after_open_default): New function.
1764         * ldlang.c (lang_process): Call ldemul_after_open.
1765         * lexsup.c (parse_args): Handle --embedded-relocs.
1766         * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
1767         new after_open field to after_open_default.
1768         * emultempl/generic.em, emultempl/gld960.em: Likewise.
1769         * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
1770         * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
1771         * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
1772         * ld.texinfo, ld.1: Mention -embedded-relocs.
1773
1774 Wed Nov 23 22:04:47 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
1775
1776         * Makefile.in: Add eshl.o.
1777         * config/coff-sh.mt: Add shl emulation.
1778
1779 Tue Nov 22 11:55:37 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1780
1781         * scripttempl/elf.sc: Fill .text section with NOPS.  From Eric
1782         Youngdale <eric@aib.com>.
1783
1784 Thu Nov 17 14:39:48 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1785
1786         Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
1787         * config/i386linux.mh: New file; set HOSTING_CRT0.
1788         * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
1789         /usr/lib, since that is already in LIB_PATH.
1790
1791 Wed Nov 16 10:03:03 1994  Jeff Law  (law@snake.cs.utah.edu)
1792
1793         * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
1794         address.
1795         (.data, .bss): If "-N", then place the data/bss just after the end
1796         of the .text section rather than at the default 0x40000000.
1797
1798         * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
1799         text segment.
1800
1801 Sat Nov 12 15:55:56 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
1802
1803         Patches from Eric Youngdale <eric@aib.com>:
1804         * ldlang.c (lang_finish): Don't warn if entry symbol not found
1805         when generating a shared library.
1806         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
1807         attempting to place an orphaned relocation section when generating
1808         a dynamically linked object.
1809
1810         * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
1811         _start.
1812
1813 Fri Nov 11 14:27:23 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1814
1815         * ld.h (args_type): Add field export_dynamic.
1816         * lexsup.c (parse_args): Recognize --export-dynamic.
1817         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1818         Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
1819
1820 Wed Nov  9 12:47:11 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1821
1822         * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
1823         we allocate common symbols.
1824
1825 Tue Nov  8 17:50:43 1994  Eric Youngdale  (eric@aib.com)
1826
1827         * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
1828         .rela.fini to the list of .rel* sections.
1829
1830 Tue Nov  8 17:47:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1831
1832         * ldlang.c (load_symbols): Add new argument place.  Only accept
1833         linker scripts if place is not NULL.  Put commands found in an
1834         assumed linker script into place.
1835         (lookup_name): Pass NULL as place argument to load_symbols.
1836         (open_input_bfds): In lang_input_statement_enum case, pass a place
1837         argument to load_symbols, and store any new statements after the
1838         current one.
1839
1840 Mon Nov  7 15:53:02 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
1841
1842         * ldver.c (ldversion): Bump to 2.5.3.
1843
1844 Fri Nov  4 15:11:26 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
1845
1846         * Makefile.in (e*nbsd.c): Fix typo in dependencies.
1847
1848 Thu Nov  3 19:35:44 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
1849
1850         * Makefile.in (check): Add missing "else true" clause.
1851
1852         * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
1853
1854         * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
1855         entry point to "start".  Align at end of each section to 0x200.
1856         Start .text section 0x1000 later.  Add _etext, _edata, _end
1857         symbols.
1858
1859 Wed Nov  2 12:17:49 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1860
1861         * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
1862         composed of different object file formats.
1863         (ldctor_build_sets): If the output format does not support the
1864         reloc, and we are not generating a relocateable link, try getting
1865         the reloc from the input format.
1866
1867 Tue Nov  1 10:30:19 1994  J.T. Conklin  (jtc@rtl.cygnus.com)
1868
1869         * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
1870           (em68knbsd.c): New target.
1871
1872         * config/m68k-nbsd.mt: New file.
1873         * emulparams/m68knbsd.sh: New file.
1874         * configure.in (m68*-*-netbsd*): Use above configs.
1875
1876 Mon Oct 31 19:35:17 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1877
1878         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
1879         appropriately named static library, stop the search at that
1880         directory.
1881
1882 Wed Oct 26 13:59:12 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
1883
1884         * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o 
1885           and esparcnbsd.o; sorted entries.
1886           (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
1887
1888         * config/netbsd532.mt: Removed.
1889         * emulparams/netbsd532.sh: Removed.
1890
1891         * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
1892         * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
1893         * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*, 
1894           sparc*-*-netbsd*): Use above configs.
1895
1896 Tue Oct 25 11:47:10 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1897
1898         * ldmain.c (multiple_common): One of the types may now be
1899         bfd_link_hash_indirect.  The old BFD argument may be NULL.
1900
1901 Thu Oct 20 22:01:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
1902
1903         * configure.in: Add * at the end of m68k-hp-hpux.
1904
1905 Tue Oct 18 15:58:39 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1906
1907         * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
1908         YY_CHAR *.
1909
1910 Mon Oct 17 14:53:16 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
1911
1912         * scripttempl/nw.sc: Gather constructors and destructors and
1913           define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
1914
1915 Fri Oct 14 14:35:38 1994  J.T. Conklin  (jtc@rtl.cygnus.com)
1916
1917         * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
1918           (ei386nw.c, eppcnw.c): New targets.
1919
1920         * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
1921           scripttempl/nw.sc: New files, for i386 and powerpc netware.
1922           
1923         * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
1924           instead of {i386,ppc}-elf.
1925
1926         * configure.in (sparc*-*-netware): Removed.  There is no such
1927           thing anymore.
1928
1929         * ldint.texinfo: Move misplaced `@end iftex'.
1930
1931 Fri Oct 14 12:02:18 1994  Eric Youngdale  (eric@aib.com)
1932
1933         * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
1934         .rela.dtors to the list of .rel* sections.
1935
1936 Thu Oct 13 14:16:27 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
1937
1938         * ldver.c (ldversion): Update to version 2.5.
1939         * Version 2.5 released.
1940
1941         * configure.in (all_targets): Handle i386-linux*.
1942
1943 Thu Oct 13 11:24:33 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1944
1945         * scripttempl/aout.sc: Set _etext and __etext to ., not
1946         ${DATA_ALIGNMENT}.  This is compatible with SunOS, and, with luck,
1947         will not break any other system.  From Eric Valette
1948         <ev@chorus.fr>.
1949
1950 Wed Oct 12 16:22:58 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1951
1952         * lexsup.c (parse_args): Change -V to be a synonym for -v.  Add
1953         --verbose to get the old -V behaviour.
1954         * ld.1, ld.texinfo: Document this change.
1955
1956 Tue Sep 27 14:56:20 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
1957
1958         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1959         assertion, since it could fail with a user defined linker script.
1960
1961         * ldexp.c (fold_name): For DEFINED case, don't try to look up the
1962         name in the hash table during the first phase--the hash table does
1963         not even exist at that point, much less have the right value.
1964
1965         * Makefile.in (CC): Define.
1966         (CXX): Move definition, change from g++ to gcc.
1967         (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
1968         (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
1969         (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
1970         (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
1971         (.cc.o): Comment out.
1972         (testdir): Remove.
1973         (site.exp): Don't create testdir or set tmpdir.
1974         (check): Run checks even if not running native.  Use CC_FOR_TARGET
1975         instead of RUNTEST_CC, and likewise for CXX.
1976         (cdtest targets): Comment out.
1977         * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
1978         * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
1979         * cdtest-main.cc, cdtest.exp: Remove.
1980
1981 Mon Sep 26 11:40:30 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
1982
1983         * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
1984         file naming problems.
1985         * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
1986         * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
1987         eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
1988         (eelf32bmip.c): Rename from eelf32mipb.c.  Use elf32bmip.sh.
1989         (eelf32lmip.c): Rename from eelf32mipl.c.  Use elf32lmip.sh.
1990         * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
1991         * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
1992
1993         * genscripts.sh: Always search /usr/local/TARGET/lib.
1994
1995         * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
1996
1997 Fri Sep 23 15:05:49 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
1998
1999         * configure.in: Handle i386-bsdi* targets like i386-bsd.
2000
2001 Fri Sep 23 00:06:59 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2002
2003         * lexsup.c (parse_args): Add support for -a for HP/UX
2004         compatibility.
2005
2006         * lexsup.c (parse_args): -c takes an argument.
2007
2008 Tue Sep 20 14:35:27 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2009
2010         * ld.h (args_type): Add new field endian.
2011         * lexsup.c (parse_args): Handle -EB and -EL by setting
2012         command_line.endian.
2013         * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
2014         * ldlang.c (lang_add_output_format): Add arguments big and little.
2015         If command_line.endian is set, use it to select big or little
2016         rather than the default.  Changed all callers.
2017         * ldlang.h (lang_add_output_format): Update declaration.
2018         * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
2019         LITTLE_OUTPUT_FORMAT.
2020         * emulparams/elf32mipl.sh: Likewise.
2021         * emulparams/mipsbig.sh: Likewise.
2022         * emulparams/mipsbsd.sh: Likewise.
2023         * emulparams/mipsidt.sh: Likewise.
2024         * emulparams/mipsidtl.sh: Likewise.
2025         * emulparams/mipslit.sh: Likewise.
2026         * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
2027         LITTLE_OUTPUT_FORMAT if not already defined.  Pass them to
2028         OUTPUT_FORMAT.
2029         * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
2030         LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
2031         * scripttempl/mipsbsd.sc: Likewise.
2032
2033         * Makefile.in (ldgram.h): Make separate target from ldgram.c,
2034         depending upon ldgram.c, so that a parallel make does not try to
2035         build both at once.
2036
2037         * configure.in (mips*el-elf*): New target.
2038         * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
2039         (eelf32mipl.c): New target.
2040
2041         * config/mipsl-elf32.mt: New file.
2042         * emulparams/elf32mipl.sh: New file.
2043
2044 Fri Sep 16 12:16:20 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2045
2046         * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
2047         ld -r -S -x.
2048
2049 Thu Sep 15 13:05:44 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2050
2051         * ldmisc.c (vfinfo): Print BFD file name as well as file name
2052         returned by find_nearest_line, in case the file name is something
2053         unhelpful such as a .h file.  Handle %u.
2054
2055 Wed Sep 14 12:49:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
2056
2057         * ldlang.c (lang_do_assignments): Make sure output statement
2058         has an attached bfd_section before trying to dereference it.
2059
2060 Wed Sep 14 12:48:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2061
2062         * ld.h (ld_config_type): Add new field warn_once.
2063         * ldmain.c (undefined_symbol): Handle -warn-once.
2064         * lexsup.c (parse_args): Recognize -warn-once.
2065         * ld.texinfo (Options): Document -warn-once.
2066         * ld.1: Likewise.
2067
2068         * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
2069         name.  For %C, print the function name on a separate line, to keep
2070         the length of error messages under control.
2071         * ldmain.c (multiple_definition): Use %D for ``first defined
2072         here.''
2073         (undefined_symbol): Use %D for ``more undefined references
2074         follow''.
2075
2076         * ldmisc.c (multiple_warn): Remove; no longer used.
2077         * ldmisc.h (multiple_warn): Don't declare.
2078
2079 Tue Sep 13 20:47:58 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
2080
2081         * ldlang.c (print_output_section_statement): Print all lines
2082         to the map file.
2083
2084 Tue Sep 13 16:30:11 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2085
2086         * ldlang.c (load_symbols): Check for archive before object.  Use
2087         bfd_check_format_matches, and, if ambiguous, print a list of
2088         matching formats.  If file format is not recognized, treat file as
2089         a linker script.
2090         * ldgram.y (yyerror): If assuming an object file is a script,
2091         mention that.  Tweak the format of the error messages.
2092         * ldlex.l (lex_warn_invalid): If assuming an object is a script,
2093         guess that this is not actually a script, and just report that the
2094         file format was not recognized.
2095         * ld.texinfo (Options): Admit that -( may be used more than once.
2096         Add note that unrecognized object files are now treated as linker
2097         scripts.
2098
2099         * ldfile.c (ldfile_input_filename): Make const.
2100         (ldfile_assumed_script): New variable.
2101         (try_open): Change arguments types to const.
2102         (ldfile_find_command_file): Likewise.
2103         (ldfile_open_command_file): Likewise.  Also, set lineno to 1.
2104         * ldfile.h: Update declarations for ldfile.c changes.
2105         * ldlex.l: Include <ctype.h>.
2106         (file_name_stack): Change to be const char *.
2107         (lineno_stack): New static variable.
2108         (<<EOF>>): Set lineno as well as ldfile_input_filename.
2109         (lex_push_file): Make name argument const.  Initialize
2110         lineno_stack entry.
2111         (lex_redirect): Initialize lineno_stack entry.
2112         (lex_warn_invalid): Handle non printable characters nicely.
2113         * ldlex.h (lex_push_file): Declare second argument as const.
2114
2115         * ldgram.y (ifile_p1): Recognize GROUP.
2116         * ldlex.l: Recognize GROUP.
2117         * ld.texinfo (Option Commands): Document GROUP.
2118
2119 Mon Sep 12 17:04:27 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2120
2121         * config/m68klynx.mh: New file.
2122
2123 Mon Sep 12 01:50:03 1994  Jeff Law  (law@snake.cs.utah.edu)
2124
2125         * emultempl/hppaelf.em: Add newlines to the error messages.
2126
2127 Sat Sep 10 16:05:38 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2128
2129         * config/i386lynx.mh: New file.
2130         * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
2131         unless CONSTRUCTING.
2132
2133 Thu Sep  8 13:25:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2134
2135         * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
2136         (GENERATE_SHLIB_SCRIPT): Define as yes.
2137         (DYNAMIC_LINK): Define as false.
2138         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
2139         Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
2140         (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
2141         * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
2142         generic.em.
2143
2144 Thu Sep  8 16:30:37 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
2145
2146         * scripttempl/h8500b.sc: Put rdata stuff into own segment.
2147
2148 Thu Sep  8 13:25:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2149
2150         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
2151         .got section is now explicitly handled in elf.sc.
2152
2153 Wed Sep  7 13:08:34 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2154
2155         * scripttempl/alpha.sc: Redo script to set . outside of sections
2156         and not bother to explicitly specify section addresses.
2157         Explicitly place .sdata section.
2158
2159 Tue Sep  6 23:51:45 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2160
2161         * scripttempl/m68kcoff.sc: Put .bss in data segment.
2162
2163         * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
2164         0, and to only be marked as NOLOAD if relocating.
2165         * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
2166         * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
2167         * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
2168         * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
2169         * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
2170         * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
2171         * scripttempl/sparclynx.sc: Likewise.
2172
2173 Sun Sep 04 17:58:10 1994  Richard Earnshaw (rwe@pegasus.esprit.ec.org)
2174
2175         * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
2176         * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
2177         New files.
2178
2179 Tue Aug 30 11:48:08 1994  Eric Youngdale  (ericy@cais.cais.com)
2180
2181         * ld.h (args_type): Add field soname.
2182         * lexsup.c (parse_args): Handle -soname argument.
2183         * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
2184         pass soname.
2185         * ld.texinfo: Document -soname.
2186
2187 Mon Aug 29 15:21:50 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2188
2189         * ldlang.c (lang_check): Don't try to set the architecture if the
2190         input and output files are incompatible.  Just warn.
2191
2192 Wed Aug 24 12:52:30 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2193
2194         * configure.in: Change i[34]86 to i[345]86.
2195
2196 Sun Aug 21 16:17:19 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2197
2198         * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
2199
2200 Thu Aug 18 15:37:45 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2201
2202         Make the ELF linker handle orphaned sections reasonably.  Also,
2203         define __start_SECNAME and __stop_SECNAME around sections whose
2204         names can be represented in C, for the benefit of symbol sets in
2205         glibc.
2206         * ldemul.h (ldemul_place_orphan): Declare.
2207         (ld_emulation_xfer_type): Add place_orphan field.
2208         * ldemul.c (ldemul_place_orphan): New function.
2209         * ldlang.h (wild_doit): Declare.
2210         * ldlang.c (wild_doit): Make nonstatic.
2211         (lang_place_orphans): Call ldemul_place_orphan.
2212         * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
2213         (hold_section, hold_use, hold_text, hold_data, hold_bss): New
2214         static variables.
2215         (gld${EMULATION_NAME}_place_orphan): New static function.
2216         (gld${EMULATION_NAME}_place_section): New static function.
2217         (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
2218
2219 Tue Aug 16 00:17:20 1994  Eric Youngdale  (ericy@cais.cais.com)
2220
2221         * scripttempl/aout.sc: Add .linux-dynamic after .data.
2222
2223 Tue Aug 16 00:08:22 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2224
2225         * lexsup.c (parse_args) Treat --dll-verbose as --version, for
2226         Linux compatibility.  From hjl@nynexst.com (H.J. Lu).
2227
2228 Mon Aug 15 17:17:33 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2229
2230         * ldexp.h (exp_get_abs_int): Declare.
2231
2232 Sat Aug  6 01:45:39 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
2233
2234         * ldlang.c (lang_do_assignments):  Handle complex AT's better.
2235         * ldexp.c (exp_get_abs_int):  New function.
2236
2237 Fri Aug  5 20:55:55 1994  Jason Molenda (crash@phydeaux.cygnus.com)
2238
2239         * configure.in: add i960-nindy-coff support.
2240
2241 Thu Aug  4 14:45:50 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2242
2243         * ldlex.l (yy_create_string_buffer): Handle change to internal
2244         interface in flex 2.4.7.
2245
2246 Tue Aug  2 11:52:06 1994  Eric Youngdale  (ericy@cais.cais.com)
2247
2248         * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
2249         New function; add 0x20 to any use of -Ttext.
2250         (gld${EMULATION_NAME}_create_output_section_statements): New
2251         function.
2252         (ld_${EMULATION_NAME}_emulation): Use the new function
2253         gld${EMULATION_NAME}_create_output_section_statements.
2254
2255 Mon Aug  1 15:50:44 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2256
2257         * scripttempl/mips.sc: Redo script to set . outside of sections
2258         and not bother to explicitly specify section addresses.
2259
2260 Tue Jul 26 11:02:35 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2261
2262         * scripttempl/elf.sc: Copy several more relocation sections into
2263         the output.  Put .got.plt sections into .got.
2264
2265 Fri Jul 22 12:15:36 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2266
2267         * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
2268
2269         Add a new script operator, PROVIDE, to define a symbol only if it
2270         is needed.
2271         * ldgram.y (PROVIDE): New token.
2272         (assignment): Accept PROVIDE.
2273         * ldlex.l (PROVIDE): New token.
2274         * ldexp.h (node_type): Add etree_provide to node_class enum.
2275         (exp_provide): Declare.
2276         * ldexp.c (exp_fold_tree): Handle etree_provide.
2277         (exp_provide): New function.
2278         (exp_print_tree): Handle etree_provide.
2279         * ld.texinfo: Document PROVIDE.
2280
2281         * ldlang.c (lang_common): Pass desired alignment to
2282         lang_one_common as power of two.
2283         (lang_one_common): Get common symbol alignment from linker hash
2284         table entry.  Treat desired alignment as a power of two.
2285
2286         * ldlang.c (wild_section): Attach all section with the given name,
2287         not just the first one.  If there is no name, attach all sections
2288         even if the SEC_IS_COMMON flag is set.
2289
2290 Wed Jul 20 15:49:27 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2291
2292         * ld.h (args_type): Add field rpath.
2293         * lexsup.c (S_ISDIR): Define if not already defined.
2294         (parse_args): Add support for -rpath.  If -R is used to name a
2295         directory, treat it as -rpath for Solaris compatibility.
2296         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2297         Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
2298         * ldmain.c (main): Initialize command_line.rpath to NULL.
2299         * ld.texinfo: Document -rpath option.
2300
2301 Sun Jul 10 00:33:24 1994  Ian Dall  (dall@hfrd.dsto.gov.au)
2302
2303         * emulparams/pc532machaout.sh: New file. Pc532 mach script
2304         parameters. 
2305
2306         * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
2307
2308         * config/pc532mach.mt: New file. Pc532 mach target support.
2309
2310         * config/pc532mach.mh: New file. Pc532 mach host support.
2311
2312         * config/netbsd532.mt: New file. Netbsd 532 target support.
2313
2314         * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
2315
2316         * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
2317         dependency.
2318
2319 Fri Jul  8 10:57:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2320
2321         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
2322         bfd_abs_section_ptr, not &bfd_abs_section.
2323
2324         * lexsup.c (parse_args): Changed "retain-symbols-file" from
2325         no_argument to required_argument.  From djm.
2326
2327 Thu Jul  7 12:29:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2328
2329         * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
2330         sections to force a VMA of 0; needed for ELF backends which have
2331         not been converted to the new linker style.
2332
2333 Mon Jul  4 19:35:45 1994  Jeff Law  (law@snake.cs.utah.edu)
2334
2335         * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
2336         it was for the HPUX dynamic loader's use and it creates problems
2337         with ELF GDB.
2338
2339 Fri Jul  1 12:53:47 1994  Jeff Law  (law@snake.cs.utah.edu)
2340
2341         * ldlang.c (lang_do_assignments): No longer static.  Delete decl.
2342         * ldlang.h (lang_do_assignments): Put external decl here.
2343         * emultempl/hppaelf.em: Minor cleanups throughout file.
2344         (hppa_elf_create_output_section_statements): Rewrite.
2345         (hppaelf_finish): Rewrite.
2346
2347 Wed Jun 29 16:50:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2348
2349         * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
2350
2351         * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic.  Do not
2352         accept plain -B.
2353         * ld.texinfo: -Bstatic is not ignored.
2354
2355 Tue Jun 28 12:13:34 1994  Stan Shebs  (shebs@andros.cygnus.com)
2356
2357         * ldlex.l: Recognize \r the same as \n.
2358
2359 Thu Jun 23 17:53:04 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2360
2361         Preliminary support for generating shared libraries, from Eric
2362         Youngdale <ericy@cais.cais.com>.
2363         * genscripts.sh: If the emulation parameter file sets
2364         GENERATE_SHLIB_SCRIPT, generate a .xs script file with
2365         CREATE_SHLIB defined.
2366         * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
2367         link_info.shared is set, use the .xs script file.
2368         * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
2369         .interp section, and don't include TEXT_START_ADDR in the starting
2370         address of the first section.
2371         * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
2372         * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
2373
2374 Thu Jun 23 12:52:22 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
2375
2376         * configure.in: Change --with-targets to --enable-targets.
2377
2378 Wed Jun 22 13:42:14 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2379
2380         * lexsup.c (parse_args): Add support for new options -( -) with
2381         synonyms --start-group --end-group.
2382         * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
2383         (lang_group_statement_type): Define new struct.
2384         (lang_statement_union_type): Add group_statement field.
2385         (lang_enter_group, lang_leave_group): Declare.
2386         * ldlang.c (lang_for_each_statement_worker): Handle
2387         lang_group_statement_enum.
2388         (map_input_to_output_sections, print_statement): Likewise.
2389         (lang_size_sections, lang_do_assignments): Likewise.
2390         (open_input_bfds): Completely rewrite.  Now does its own looping,
2391         rather than using lang_for_each_statement.  Handle groups.
2392         (lang_process): Update call to open_input_bfds.
2393         (print_group): New static function.
2394         (lang_enter_group, lang_leave_group): New static functions.
2395         * ldfile.c (ldfile_open_file): If the file has already been
2396         opened, just return rather than taking an assertion failure.
2397         * ldver.c (help): Mention new options.
2398         * ld.texinfo: Document new options.
2399
2400         * ldlang.c (end_of_data_section_statement_list): Don't define.
2401         (lang_leave_output_section_statement): Don't set obsolete variable
2402         end_of_data_section_statement_list.
2403
2404         * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
2405         ALIGN.
2406
2407         * ldlang.c (lang_size_sections): Adjust current region address
2408         even for sections with an explicit address.  From
2409         ralphc@pyramid.com (Ralph Campbell).
2410
2411         * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
2412         From jrs@world.std.com (Rick Sladkey).
2413
2414         * scripttempl/mipsbsd.sc: Let sections align to their natural
2415         boundaries.
2416
2417 Tue Jun 21 11:27:04 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2418
2419         * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
2420         &bfd_abs_section.
2421         (lang_abs_symbol_at_beginning_of): Likewise.
2422         (lang_abs_symbol_at_end_of): Likewise.
2423         (lang_size_sections): Use bfd_is_abs_section to check for the
2424         absolute section.  Don't try to set the VMA or output_offset or
2425         size of the absolute section.
2426         * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
2427         undefined section.
2428
2429 Thu Jun 16 22:48:41 1994  Jeff Law  (law@snake.cs.utah.edu)
2430
2431         * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
2432         when generating relocatable objects.
2433
2434 Thu Jun 16 14:25:22 1994  Eric Youngdale  (ericy@cais.cais.com)
2435
2436         * emultempl/linux.em: New file providing support for linking
2437         against Linux shared libraries.
2438         * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
2439         * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
2440
2441 Thu Jun 16 12:22:01 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2442
2443         * lexsup.c (parse_args): Add -shared to longopts, and handle it.
2444         * ldmain.c (main): Initialize link_info.shared to false.  Give
2445         error if link_info.relocateable and link_info.shared are both set.
2446
2447         * configure.in: If EMUL_EXTRA* is defined in a config file, treat
2448         it as naming an emulation to be added to EMULATION_OFILES.
2449         * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
2450
2451         * Makefile.in: Rebuilt dependencies.
2452         (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
2453         eelf64_sparc.o.  Remove $(OTHER_EMULATIONS).
2454         (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
2455         * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
2456         (ei386linux.c): Remove; now in Makefile.in.
2457         * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
2458         * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
2459         * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
2460         * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
2461         (eelf64_sparc.c): Remove; now in Makefile.in.
2462         * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
2463         (eelf32_sparc.c): Remove; now in Makefile.in.
2464
2465         * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
2466         no owner--it might be bfd_abs_section.  From Eric Youngdale
2467         <ericy@cais.cais.com>.
2468
2469         * scripttempl/aout.sc: Let sections align to their natural
2470         boundaries.
2471
2472 Wed Jun 15 01:54:54 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2473
2474         * ldemul.h (ldemul_open_dynamic_archive): Declare.
2475         (ld_emulation_xfer_type): Add new field open_dynamic_archive.
2476         * ldemul.c: Include ldexp.h and ldlang.h.
2477         (ldemul_open_dynamic_archive): New function.
2478         * ldfile.h (ldfile_open_file_search): Declare.
2479         * ldfile.c: Include ldemul.h.
2480         (try_open_bfd): Rename from cache_bfd_openr.  Return boolean
2481         argument, not bfd *.  Change all callers.
2482         (ldfile_open_file_search): Rename from open_a.  Return boolean
2483         argument, not bfd *.  Clean up.  Change all callers.
2484         (ldfile_open_file): If doing a dynamic link, call
2485         ldemul_open_dynamic_archive rather than assuming the extension of
2486         a dynamic object is ".so".
2487         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
2488         New function.
2489         (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
2490         field.
2491         * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
2492
2493         * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
2494         * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
2495         Accept -static as a synonym for -non_shared.
2496
2497         Let the user change the dynamic linker used by ELF code.
2498         * ld.h (args_type): Add new field interpreter.
2499         * lexsup.c (parse_args): Add dynamic-linker to longopts, and
2500         handle it.
2501         * ldmain.c (main): Initialize command_line.interpreter to NULL.
2502         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
2503         the ELF backend to return the .interp section.  If
2504         command_line.interpreter is not NULL, set the contents of .interp
2505         to it.
2506         * ld.texinfo: Mention -dynamic-linker.
2507
2508         * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
2509         generic.em.
2510
2511         * lexsup.c (parse_args): Sort out the option macros and change the
2512         definitions to make it easier to add a new option.
2513
2514         * scripttempl/aout.sc: Define __etext and __edata to go along with
2515         _etext and _edata.
2516
2517         * ld.h (ld_config_type): Add new field traditional_format.
2518         * lexsup.c (parse_args): Add traditional-format to longopts, and
2519         handle it.
2520         * ldmain.c (main): Initialize config.traditional_format to false.
2521         * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
2522         flags of output_bfd according to config.traditional_format.
2523         * ldver.c (help): Mention -traditional-format.
2524         * ld.texinfo: Document -traditional-format.
2525
2526 Tue Jun 14 23:10:07 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2527
2528         * ldctor.c (ldctor_add_entry): Add entries to a set in the order
2529         they are encountered.
2530
2531 Tue Jun 14 18:05:09 1994  Eric Youngdale  (ericy@cais.cais.com)
2532
2533         * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
2534         (NONPAGED_TEXT_START_ADDR): Define as 0x20.
2535
2536 Mon Jun 13 15:46:09 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2537
2538         * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
2539         _FTEXT, _ETEXT and _FDATA.  Dont define _END.
2540
2541         * ldfile.c (open_a): If this is not an archive, try to open it in
2542         the current directory before searching for it.
2543
2544         * lexsup.c (parse_args): Treat -i as a synonym for -r.
2545
2546         * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
2547         BLOCK works in a section address as documented.
2548
2549         * ldgram.y (YYDEBUG): Don't define.
2550
2551 Fri Jun 10 16:45:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2552
2553         * emultempl/gld960.em: Pass false for new argument to
2554         ldfile_add_library_path.
2555         * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
2556
2557         * emultempl/sunos.em: Only look for .so files if doing a dynamic
2558         link.
2559
2560 Thu Jun  9 08:35:17 1994  Ian Lance Taylor  (ian@cygnus.com)
2561
2562         * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
2563
2564 Thu Jun  9 06:52:29 1994  Bill Cox  (bill@rtl.cygnus.com)
2565
2566         * Makefile.in (check): Delete ld.new dependency so that a regression
2567           test doesn't trigger a rebuild of the linker. 
2568
2569 Thu Jun  9 00:17:20 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2570
2571         * ldlang.c (map_input_to_output_sections): For lang_address, call
2572         init_os if it hasn't already been called.
2573
2574 Thu Jun  2 17:24:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2575
2576         Add support for SunOS shared libraries.
2577         * aout.sc: Don't define __DYNAMIC here.  Add new sections used by
2578         shared library support code.
2579         * emultempl/sunos.em: New file.
2580         * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
2581         * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
2582         * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
2583         (esun3.c): Likewise.
2584
2585         * ldlang.c: Minor formatting cleanups.
2586         (lang_for_each_input_file): New function.
2587         * ldlang.h (lang_for_each_input_file): Declare.
2588
2589         * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
2590         field.
2591         (search_head): Declare.
2592         (ldfile_add_library_path): Add new cmdline argument in prototype.
2593         * ldfile.c (search_head): Make non-static.
2594         (search_dirs_type): Move to ldfile.h.
2595         (ldfile_add_library_path): Accept cmdline argument, and save it.
2596         * lexsup.c (parse_args): Pass true for new cmdline argument of
2597         ldfile_add_library_path.
2598         (set_default_dirlist): Likewise.
2599         * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
2600         argument of ldfile_add_library_path.
2601         * ldgram.y (ifile_p1): Likewise.
2602
2603 Wed Jun  1 14:24:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2604
2605         * ldlang.h (lang_input_statement_type): Remove fields subfiles,
2606         total_size, superfile and chain.
2607         * ldfile.c (open_a): Don't clear search_dirs_flag.
2608         (ldfile_open_file): Don't try to open superfile.  Assert that file
2609         has not already been opened.
2610         * ldlang.c (new_afile): Don't initialize superfile.
2611         * ldmain.c (add_archive_element): Don't initialize subfiles or
2612         chain or superfile.  Initialize search_dirs_flag to false.
2613
2614 Fri May 27 12:25:33 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
2615
2616         * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
2617
2618         Changes from binutils-2.4 release:
2619
2620         * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
2621         variables, use whitespace, so scripts don't break.
2622
2623         * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
2624
2625         * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
2626
2627         * cdtest-bar.cc: Renamed from cdtest-func.cc.
2628         * Makefile.in: Noted change.
2629
2630         * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
2631         don't know where that's supposed to come from, or why it's
2632         necessary.
2633
2634         Wed May 11 22:32:00 1994  DJ Delorie (dj@ctron.com)
2635
2636         * configure.bat: update to latest makefile.in
2637         * emulpara/go32.sh: set to coff-go32 not aout
2638         * emultemp/generic.em: strength-reduce the structure of
2639           this shell script, since the only available shell for
2640           DOS can't handle complex syntax.
2641         * emultemp/stringify.sed: for "sed -f" instead of inline.
2642         * makefile.in: depend on stringify.sed as well as genscripts.sh
2643         * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
2644         * genscripts.sh: empty variables aren't always considered "set",
2645           so set them to "y" instead.
2646
2647 Fri May 27 01:08:14 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2648
2649         * ldlang.c (entry_symbol): Make static.
2650         (lang_add_entry): Add cmdline argument.
2651         * ldlang.h (lang_add_entry): Change prototype.
2652         * ldgram.y (statement_anywhere): Change lang_add_entry call.
2653         * lexsup.c (parse_args): Likewise.
2654
2655 Tue May 24 16:13:43 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2656
2657         * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
2658         .reginfo an address.
2659         (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
2660         (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
2661         * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
2662
2663 Thu May 19 13:31:33 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2664
2665         Add support for ELF shared libraries.
2666         * ld.h (ld_config_type): Add field dynamic_link.
2667         * ldmain.c (main): Initialize config.dynamic_link to false.  Warn
2668         on attempts to use -r with -relax, -call_shared or -s.
2669         * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
2670         OPTION_NON_SHARED.  Add OPTION_IGNORE.  Adjust macro values
2671         accordingly.  Add "dy" and "non_shared" options.  Change "Qy" to
2672         OPTION_IGNORE for now.  Handle OPTION_CALL_SHARED and
2673         OPTION_NON_SHARED by setting dynamic_link field accordingly.
2674         Handle OPTION_IGNORE by ignoring it.  Clear dynamic_link field for
2675         -r and -Ur.
2676         * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
2677         opening a file with a .so extension first.
2678         * emultempl/elf32.em: New file.
2679         * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
2680         (NONPAGED_TEXT_START_ADDR): Likewise.
2681         (TEMPLATE_NAME): Define as elf32.
2682         (DATA_PLT): Define.
2683         * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
2684         * scripttempl/elf.sc: Add placement for new dynamic sections.
2685         Don't use CREATE_OBJECT_SYMBOLS.  Define _etext, _edata and _end
2686         outside of any section.  Don't use ALIGN(8); just let one section
2687         VMA follow another.  Put .dynbss in .bss.  Don't mention debugging
2688         sections; they'll be handled correctly anyhow.
2689         * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
2690
2691 Wed May 18 10:15:39 1994  Ian Lance Taylor  (ian@cygnus.com)
2692
2693         * Makefile.in (install): Redirect output of ln to /dev/null.
2694
2695 Mon May 16 13:35:08 1994  Jeff Law  (law@snake.cs.utah.edu)
2696
2697         * emultempl/hppaelf.em: Change all references of
2698         .hppa_linker_stubs to .PARISC.stubs.
2699         * scripttempl/hppaelf.sc: Likewise.
2700
2701 Fri May 13 13:00:38 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2702
2703         * ldlang.c (print_output_section_statement): Change ``no attached
2704         output section'' message slightly.
2705         (lang_do_assignments): Don't recurse down if there is no real
2706         section.
2707
2708         * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
2709         match corresponding change in emulation templates.
2710         * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
2711         * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
2712
2713 Wed May 11 18:16:46 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
2714
2715         * ldver.c (ldversion): Updated version number.
2716
2717         * cdtest-foo.cc: Use explicit "#pragma implementation".
2718         * cdtest-bar.cc: Renamed from cdtest-func.cc.
2719         * Makefile.in: References to cdtest-func.o changed to
2720         cdtest-bar.o.
2721
2722 Wed May 11 16:24:19 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2723
2724         Don't create unnecessary output sections.
2725         * ldlang.c (out_bfd_get_section_by_name): Remove.
2726         (wild_section): Call bfd_get_section_by_name rather than
2727         our_bfd_get_section_by_name.  Don't call wild_doit if there is no
2728         section.
2729         (lang_create_output_section_statements): Remove.
2730         (map_input_to_output_sections): For several cases, call init_os if
2731         it has not already been called.
2732         (lang_size_sections): If output section was not created, skip it.
2733         (lang_process): Don't call lan_create_output_section_statements.
2734         (lang_place_orphans): Skip files with just_syms_flags set to true.
2735         * ld.texinfo: Document change.
2736
2737 Tue May 10 14:31:16 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2738
2739         * ldlang.c (wild_doit): Don't bother initializing the vma and
2740         section size.  Don't special case SEC_SHARED_LIBRARY.
2741         (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
2742         specially.
2743
2744 Fri May  6 12:24:27 1994  Steve Chamberlain  (sac@cygnus.com)
2745
2746         * config/go32.mh : New file for Xgo32X.
2747
2748 Fri May  6 15:15:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2749
2750         * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
2751         before calling einfo, since we are reporting an fopen failure.
2752         From jrs@world.std.com (Rick Sladkey).
2753
2754         * configure.in: Use "e" rather than "em_" as prefix for
2755         emulations.
2756
2757 Fri May  6 01:08:14 1994  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
2758
2759         * emultempl/generic.em: Use "e" rather than "em_" as prefix for
2760         filename.
2761         * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
2762         emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
2763         Ditto.
2764         * Makefile.in: Changed all generated file names.
2765         (ldemul-list.h): Depend on Makefile, not config.status.  Changed
2766         sed patterns to handle new filenames.
2767
2768         * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
2769         * configure.in: Adjusted.
2770
2771 Thu May  5 15:07:32 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
2772
2773         * Makefile.in (install-info): Don't use "$<*", it doesn't always
2774         work.  Instead, check build dir and $srcdir explicitly, and use
2775         `echo' to get all the filenames.
2776
2777         * configure.in (h8300h-*-hms): Changed ld_target name to
2778         cf-h8300h.
2779         * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
2780         unique in 8.3.
2781
2782         * config/i960coff.mt: New file.
2783         * emulparams/gld960coff.sh: New file.
2784         * emultempl/gld960c.em: New file.
2785         * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
2786         i960coff configuration.
2787         * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
2788
2789         * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
2790         code isn't included in FSF releases, and it can still be
2791         explicitly selected.
2792         (distclean): Remove site.bak and tmpdir.
2793         (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
2794         (mostlyclean): Delete them explicitly here.  Also remove tmpdir.
2795
2796         Patches from Ralph Campbell:
2797         * config/mipsbsd.mh: New file.
2798         * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
2799         * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
2800         * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
2801         instead of `aout'.
2802
2803         * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
2804
2805 Wed May  4 11:59:40 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2806
2807         * config/m68k.mt (EMUL): Set to m68kaout.
2808         * emulparams/m68kaout.sh: New file.
2809         * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
2810         (em_m68kaout.c): New target.
2811
2812         * ldlang.c (lang_size_sections): If dot moves because of an
2813         assignment, don't try to insert a pad into the absolute output
2814         section, just change the address of the default memory region
2815         instead.
2816
2817         * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
2818         cdtest-ur.out, and cdtest-ur.tmp.
2819
2820 Wed Apr 27 16:03:37 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2821
2822         * scripttempl/sa29200.sc: Align all sections to four byte
2823         boundaries.
2824
2825 Wed Apr 27 10:48:03 1994  Steve Chamberlain  (sac@cygnus.com)
2826
2827         * Makefile.in, configure.in: Support for go32 coff.
2828         * config/i386-go32.mt: New file
2829         * emulparams/i386go32.sh: New file
2830         * scripttempl/i386go32.sc: New file
2831
2832 Tue Apr 26 17:20:03 1994  Stan Shebs  (shebs@andros.cygnus.com)
2833
2834         * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
2835         Lynx-specific script templates.
2836         * configure.in (sparclite*-*-coff): Use coff-sparc.
2837         * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
2838         * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
2839         (ENTRY): Set to __main.
2840         * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
2841         * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
2842         * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
2843
2844 Tue Apr 26 12:41:03 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2845
2846         * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
2847         byte boundary, in case the global constructors do not take up an
2848         even 16 bytes.
2849
2850         * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
2851         exist, get crtbegin based on gcc -print-libgcc-file-name.
2852         (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
2853
2854 Mon Apr 25 15:27:52 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2855
2856         * ldlang.c (lang_size_sections): When no address is given for a
2857         section, align it according to its requirements.
2858
2859 Thu Apr 21 17:24:24 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2860
2861         * Makefile.in (clean, distclean): Remove configdoc.texi.
2862
2863 Tue Apr 19 12:12:15 1994  Bill Cox  (bill@rtl.cygnus.com)
2864
2865         * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
2866
2867 Fri Apr 15 14:35:42 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2868
2869         * ldlang.c (lang_size_sections): When relaxing, adjust the
2870         position of a padding statement, and adjust dot accordingly.
2871
2872 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
2873
2874         * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
2875
2876 Mon Apr 11 12:32:57 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2877
2878         * scripttempl/i386coff.sc: If relocating, don't put .init and
2879         .fini sections into .text; keep them separate.
2880         * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
2881         exist, get crtbegin based on gcc -print-libgcc-file-name.
2882         (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
2883
2884 Mon Apr 11 10:31:00 1994  Bill Cox  (bill@rtl.cygnus.com)
2885
2886         * Makefile.in (check): Set TCL_LIBRARY for runtest.
2887
2888 Wed Apr  6 00:09:37 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
2889
2890         * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
2891         manufacturer.
2892
2893         * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
2894         if building a final executable.
2895
2896 Tue Apr  5 12:17:30 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2897
2898         * ldmain.c (main): Check the return value of bfd_close.
2899
2900 Thu Mar 31 18:07:06 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2901
2902         * scripttempl/alpha.sc: Clean up section alignment to ensure that
2903         sections never overlap when using -r.
2904
2905 Wed Mar 30 15:51:15 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2906
2907         * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
2908         changes: get_symtab_upper_bound renamed and returns long,
2909         bfd_canonicalize_symtab returns long, check for error indications.
2910
2911 Fri Mar 25 17:20:01 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2912
2913         * ldlang.c (print_input_section): For section size, use
2914         _cooked_size if it is non-zero, size otherwise.
2915         (size_input_section): Likewise.
2916         (lang_do_assignments): Likewise (case lang_input_section_enum).
2917
2918 Thu Mar 24 15:20:47 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2919
2920         * ldlang.c (new_afile): Add new argument add_to_list.  Don't set
2921         real to true for lang_input_file_is_marker_enum.  Clear the_bfd.
2922         (lang_add_input_file): Pass true to new_afile for add_to_list.
2923         (lookup_name): Remove force_load argument.  Changed all callers.
2924         Pass false to new_afile for add_to_list.  Split loading of symbols
2925         out into separate function.
2926         (load_symbols): New function split out of lookup_name.  Don't load
2927         the symbols if they are already loaded.
2928         (open_input_bfds): For lang_input_statement_enum call load_symbols
2929         rather than lookup_name.
2930         (lang_process): Pass abs_output_section rather than NULL to
2931         lang_size_sections.
2932         (lang_startup): Set real field of first_file to true.
2933
2934 Wed Mar 23 14:15:44 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2935
2936         * ldlang.c (had_relax): Removed.
2937         (relax_again): New static variable.
2938         (lang_size_sections): Change call to bfd_relax_section to
2939         correspond to BFD changes.  Set relax_again appropriately.
2940         (lang_process): Remove #if 0 code.  When relaxing, keep calling
2941         lang_do_assignments and lang_size_sections until relax_again
2942         becomes false.
2943
2944         * emultemp/gld960.em: Include libiberty.h
2945         (gld960_before_parse): Pass NULL as final argument to concat.
2946
2947 Tue Mar 22 13:08:28 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2948
2949         * scripttempl/aout.sc: Force _end and __end to be aligned to a
2950         four byte boundary.
2951
2952         * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
2953         building a bfd_data_link_order, rather than by setting the section
2954         contents immediately.
2955
2956 Mon Mar 21 18:28:37 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2957
2958         Changes to make -Ur work again.
2959         * ldmain.c (add_to_set): Now takes reloc argument rather than
2960         bitsize.  Check config.build_constructors here.  If an new hash
2961         table entry is created, mark it as undefined.
2962         (constructor_callback): No longer takes bitsize argument.  Pass
2963         BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
2964         BFD backend supports it.
2965         (reloc_overflow): Handle a NULL abfd argument.
2966         (reloc_dangerous, unattached_reloc): Likewise.
2967         * ldctor.c: Include ldmain.h.
2968         (struct set_info): Change bitsize field to reloc.
2969         (ldctor_add_set_entry): Now takes reloc argument rather than
2970         bitsize.  Don't bother to check config.build_constructors here.
2971         (ldctor_build_sets): Get the size from the reloc howto.  If
2972         generating relocateable output, call lang_add_reloc rather than
2973         lang_add_data.
2974         * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
2975         instead of bitsize.
2976         * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
2977         (lang_reloc_statement_type): New structure.
2978         (lang_statement_union_type): Add reloc_statement field.
2979         (lang_add_reloc): Declare new function.
2980         * ldlang.c (lang_for_each_statement_worker): Handle
2981         lang_reloc_statement_enum.
2982         (map_input_to_output_sections, print_statement): Likewise.
2983         (lang_size_sections, lang_do_assignments): Likewise.
2984         (print_reloc_statement): New function.
2985         (lang_add_reloc): New function.
2986         * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
2987
2988         * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
2989         (cdtest-ur, cdtest-ur.out): New targets.
2990         (check-cdtest): Now also check that -Ur works correctly.
2991
2992         * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
2993
2994 Thu Mar 17 12:45:41 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2995
2996         * ldlang.c (lang_process): Move lang_common call before
2997         map_input_to_output_sections, to ensure that any alignment
2998         constraints set by common symbols are copied over to the output
2999         sections.
3000
3001 Fri Mar 11 22:17:34 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3002
3003         * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
3004         (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
3005         * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
3006         * emultempl/ppc.em: Remove ugly stub code; turns out not to be
3007         needed for ELF.
3008
3009 Tue Mar  8 04:22:27 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
3010
3011         * config/i386bsd.mh: New file.
3012
3013 Mon Mar  7 15:23:24 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3014
3015         * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
3016         defined.
3017         * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
3018         (DATA_START_SYMBOLS): Define _fdata.
3019
3020 Mon Feb 28 10:59:14 1994  Stan Shebs  (shebs@andros.cygnus.com)
3021
3022         * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
3023
3024 Sun Feb 27 16:29:38 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
3025
3026         * emultempl/hppaelf.em (hppaelf_finish): Update comments.  This
3027         works again.  Attach some output symbols to the stub file bfd.
3028
3029         * emultempl/hppaelf.em: Include elf32-hppa.h.
3030         (file_chain): Add decl.
3031         (hppa_look_for_stubs_in_section): Delete decl.
3032         (hppaelf_finish): Reenable code.  Do not pass symbols
3033         down to hppa_look_for_stubs_in_section.
3034
3035 Sat Feb 26 10:58:25 1994  Ian Lance Taylor  (ian@cygnus.com)
3036
3037         * ldmain.c (write_map): Don't define.  Removed all references.
3038         Just use map_file or map_filename instead.
3039         (add_archive_element): Use minfo to write map information, not
3040         info_msg.
3041         (constructor_callback): Use fprintf to write map information, not
3042         info_msg.
3043         * ldmain.h (write_map): Don't declare.
3044         * ldgram.y (mri_script_command): Removed reference to write_map.
3045         * ldlang.c (lang_one_common): Likewise.
3046         * lexsup.c (parse_args): Likewise.
3047
3048 Fri Feb 25 19:12:03 1994  Ian Lance Taylor  (ian@cygnus.com)
3049
3050         * scripttempl/elf.sc: Force all sections to be aligned.
3051
3052         * ldgram.y (section): Reverse the order of memspec_opt and
3053         fill_opt to avoid an ambiguity when both are used.
3054         * ld.texinfo: Changed accordingly.
3055
3056         * ldgram.y: Move include of ldlex.h back with other includes.
3057         * ldlex.h (input_type): Don't initialize enum constants to
3058         particular values.
3059         * ldlex.l: Use a switch to return the right token based on
3060         input_type, rather than knowing that input_type has a value based
3061         on a token type.
3062
3063         * ldgram.y (dirlist_ptr): Removed; not used.
3064         * lexsup.c: Include ldver.h.
3065         * Makefile.in: Rebuilt dependencies.
3066
3067 Fri Feb 25 18:55:54 1994  Ted Lemon  (mellon@pepper.ncd.com)
3068
3069         * ldlang.c (lookup_name): don't call bfd_set_gp_size.
3070         (ldlang_add_file): call it here instead.
3071
3072 Fri Feb 25 18:13:46 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
3073
3074         * ldgram.y: Include ldlex.h after %token decls, for byacc.
3075
3076 Fri Feb 25 10:47:25 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
3077
3078         * emultempl/hppaelf.em: First attempt to clean this file up.
3079         Add comments in several functions as to their purpose and
3080         how they function (or my current best guess).  Clean up horrible
3081         spacing and indention that never should have been accepted in the
3082         first place.  Add FIXMEs for issues which need to be resolved.
3083         Disable linker-stub generation until it gets fixed.  This allows
3084         the linker to at least work on simple code for testing purposes.
3085
3086         * ldlang.c (lang_size_sections): No longer static (PA ELF calls
3087         it via hppaelf_finish).  Prototype moved into ldlang.h.
3088         (lang_process): Move problematic extra call to lang_size_sections
3089         into the PA ELF specific code.
3090         * emultempl/hppaelf.em (hppaelf_finish): Extra call to
3091         lang_size_sections moved here.
3092
3093 Thu Feb 24 16:47:33 1994  Ian Lance Taylor  (ian@cygnus.com)
3094
3095         * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
3096         * config/ppc-elf32.mt: New file.
3097         * emulparams/elf32ppc.sh: New file.
3098         * emultempl/ppc.em: New file.
3099         * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
3100         (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
3101         (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
3102
3103 Thu Feb 24 12:27:07 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
3104
3105         * lexsup.c (parse_args): Use symbolic numbers for long options.
3106         Fix misunderstanding in -Y and -call_shared et al.
3107
3108         Use getopt instead of lex and yacc to parse the command line.
3109
3110         * ld.texinfo (Options): Document changes to option syntax.
3111         * Makefile.in: Update dependencies.
3112         * ldver.c (help): Tweak dashes in usage message.
3113         * ldgram.y (%union): Remove unused members.
3114         Remove %tokens for command line options; add ones for input types.
3115         (command_line): Rules removed.
3116         (file): Instead of command line, recognize an
3117         input type indicator, then use the nonterminal for that type.
3118         (defsym_expr): New nonterminal from code formerly in command_line.
3119         * ldlex.h: Declare parser input type enum and variable.
3120         Don't declare parse_line.
3121         * ldlex.l: Remove unused variables.  Make some used ones static
3122         and comment them.
3123         (COMMAND): Start state and its rules removed.
3124         At start of yylex, return input state token if at start of input.
3125         (lex_redirect): Don't need to set yyout.
3126         (ldlex_command): Function removed.
3127         * ldmain.c (main): Instead of calling parse_line, set up the
3128         redirections and call yyparse directly.
3129         * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
3130         "command line".
3131         * lexsup.c: Remove #if 0'd code.
3132         (parse_line): Function removed.
3133         (parse_args): Rewrite to use getopt_long_only.
3134         (set_default_dirlist): New function from code formerly in
3135         ldgram.y:command_line.
3136         (set_section_start): New function.
3137         * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
3138         emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
3139         compiled-in link scripts in "{" and "}", as the grammar no longer
3140         wants them to be.
3141
3142 Thu Feb 24 08:43:26 1994  Ken Raeburn  (raeburn@rtl.cygnus.com)
3143
3144         * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
3145         require that it be in $(srcdir).
3146
3147 Tue Feb 22 09:21:18 1994  Ian Lance Taylor  (ian@cygnus.com)
3148
3149         * ldlang.c (lang_size_sections): Only align section to alignment
3150         required by linker script, not to maximum alignment of input
3151         sections.
3152
3153         * ldlang.h (largest_section): Don't declare.
3154         * ldlang.c (largest_section): Don't define.
3155         (size_input_section): Don't set largest_section; not used.
3156
3157 Mon Feb 21 15:15:29 1994  Ian Lance Taylor  (ian@cygnus.com)
3158
3159         * ldlang.c (new_afile): Pass NULL as last argument to concat.
3160
3161 Thu Feb 17 15:51:23 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3162
3163         * ldlang.c, ldmain.c: Include libiberty.h.
3164
3165         * ldmisc.h (concat): Don't declare.
3166         * ldmisc.c (concat): Don't define; just use the one in libiberty.
3167
3168         * ld.h (as_output_section_statement): Removed; not used.
3169
3170 Thu Feb 17 09:32:14 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3171
3172         * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
3173         bfd_set_error and new error names. 
3174
3175 Tue Feb 15 20:14:53 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
3176
3177         * ldwrite.c (build_link_order): If the cooked size of the section
3178         has been set, use it, for determining link_order size.
3179         (ldwrite): In the error message displayed if bfd_final_link fails,
3180         indicate that it was in fact the final link step that failed.
3181
3182         * ldlang.c (lang_size_sections): Clear bfd_error before calling
3183         bfd_relax_section, in case it returns false but doesn't flag an
3184         error.  If an error is returned, indicate which one it is in the
3185         error message.
3186
3187         * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
3188         it'll get picked up from $(srcdir) if appropriate.
3189
3190 Tue Feb 15 16:32:04 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
3191
3192         * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
3193         * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
3194
3195 Fri Feb 11 17:02:49 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3196
3197         * ldlex.l (comment): Increment line number when newline is read.
3198
3199 Fri Feb 11 17:36:20 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3200
3201         * ldlang.c (lookup_name): Take new argument, force_load.  If true,
3202         reload the file even if it is already loaded.
3203         (wild): Call lookup_name with force_load argument of 0.
3204         (open_input_bfds): Call lookup_name with force_load argument of 1.
3205         (print_symbol): Remove declaration of non-existent function.
3206         (print_one_symbol): Return true rather than falling off end.
3207
3208 Thu Feb 10 11:52:38 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3209
3210         * ldmain.c (main): Use %ld when printing long values.
3211
3212         * scripttempl/elf.sc: Move _edata after the .sdata section.
3213         Permit OTHER_BSS_SYMBOLS to be defined.
3214         * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
3215
3216 Mon Feb  7 16:31:15 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
3217
3218         * Rename all "hppaosf" files to "hppaelf".
3219         * Change all "osf" references to "elf" in hppaelf files.
3220         * Makefile.in: Likewise.
3221         * configure.in: Likewise.
3222
3223 Sun Feb  6 20:31:56 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3224
3225         * ldmain.c (main): Call xatexit, not atexit.
3226         Call xmalloc_set_program_name.
3227
3228         * ldlang.c (lang_size_sections): Check if bfd_relax_section set
3229         bfd_errno. 
3230
3231 Sat Feb  5 03:54:34 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3232
3233         * emultempl/lnk960.em (append), emultempl/hppaosf.em
3234         (hppaosf_finish): Call xmalloc, not ldmalloc.
3235         * ldmain.c (preserve_output): Function removed.
3236         (main): Do it here instead.
3237
3238 Fri Feb  4 23:02:19 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
3239
3240         * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
3241         GNU C specific macros.
3242
3243         * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
3244         call to LANG_FOR_EACH_INPUT_SECTION.
3245
3246 Fri Feb  4 16:26:08 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3247
3248         * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
3249         deleted; will use libiberty versions instead.
3250         * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
3251         mri.c Makefile.in: Change callers.
3252
3253         * ldmisc.c (vfinfo): Remove cleanup code.
3254         * ldmain.c (remove_output): Put it here (new function).
3255         (preserve_output): New function.
3256         (main): Register remove_output and preserve_output with atexit.
3257         * ldmain.c ldgram.y: Call xexit instead of exit.
3258         * ldmisc.h: Declare xexit.
3259
3260 Fri Feb  4 15:19:01 1994  Steve Chamberlain  (sac@cygnus.com)
3261
3262         * Makefile.in: Lots of new H8/500 memory models.
3263
3264 Sun Jan 30 14:33:40 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
3265
3266         * ldlex.l: Removed duplicate rules.
3267         (yywrap): Provide default definition, needed with some versions of
3268         flex.
3269
3270 Fri Jan 28 09:12:56 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3271
3272         * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
3273         the archive filename too.
3274
3275         * ldlex.l: Add rule to catch invalid input characters instead of
3276         printing them.  Include "ldmain.h" for program_name decl.
3277         (lex_warn_invalid): New function.
3278         * Makefile.in: Add dependency.
3279
3280 Fri Jan 28 12:58:45 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
3281
3282         * Makefile.in (check): Don't bother running any tests of
3283         cross-linker until the test suite no longer assumes native mode.
3284
3285 Thu Jan 27 17:19:54 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
3286
3287         * ldlang.c (print_one_symbol, print_input_section):  Print
3288         global symbols in symbol table again.
3289
3290 Thu Jan 27 12:35:01 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3291
3292         * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given, 
3293         exit successfully instead of complaining if no input files are
3294         given. 
3295
3296 Tue Jan 25 13:19:41 1994  Stan Shebs  (shebs@andros.cygnus.com)
3297
3298         * Makefile.in: Format variable definitions consistently.
3299         (LD_PROG): Remove unnecessary variables from link command,
3300         change variable LOADLIBES to EXTRALIBS.
3301
3302         * ldmain.c (main): Compute and display total execution time.
3303         * ld.texinfo (-stats): Document the option.
3304
3305 Mon Jan 24 12:56:37 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3306
3307         * ldmain.c (reloc_overflow): Added name, reloc_name and addend
3308         arguments.
3309
3310         * ldlang.c (lookup_name): Set BFD GP size to -G argument value
3311         after opening BFD.
3312
3313         * ldlang.c (relaxing): Removed global variable.
3314         (lang_size_sections): If the canonical symbols have not already
3315         been read in, read them in before relaxing.
3316         * ldlang.h (relaxing): Removed declaration.
3317
3318 Fri Jan 21 00:44:44 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3319
3320         * ldlang.c (new_afile): Initialize loaded field to false.
3321         (lookup_name): If file was already loaded, don't call the
3322         add_symbols entry point again.
3323
3324 Wed Jan 19 13:57:00 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3325
3326         * ld.texinfo: Clarify what -T option does.
3327
3328 Tue Jan 18 16:18:15 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
3329
3330         * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
3331         for a.out.
3332
3333 Tue Jan 11 13:22:04 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3334
3335         * ldmain.c (add_archive_element): If trace_files or
3336         trace_file_tries, print file name.
3337         * ldlang.c (lookup_name): Likewise.
3338         (ldlang_add_file): Don't put files on input_bfds list in reverse
3339         order.
3340
3341         * scripttempl/elf.sc: Correct typo.
3342
3343 Mon Jan 10 19:49:05 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3344
3345         * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
3346         their arguments optional, for compatibility with the old GNU ld.
3347
3348 Fri Jan  7 20:00:24 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3349
3350         * scripttempl/elf.c: Define __bss_start before the .sbss section.
3351
3352 Thu Jan  6 00:13:10 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3353
3354         * ldmain.c (add_to_set): Add bitsize argument.
3355         (constructor_callback): New function.
3356         (link_callbacks): Add constructor_callback.
3357         * ldctor.c (struct set_info): Add bitsize field.
3358         (ldctor_add_set_entry): Add bitsize argument.
3359         (ldctor_build_sets): Base the size of the elements of the set on
3360         the bitsize, rather than always using LONG.
3361         * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
3362
3363         * ld.h (QUAD_SIZE): Define.
3364         * ldgram.y (QUAD): New token.
3365         (length): Handle it.
3366         * ldlex.l: Return QUAD.
3367         * lexsup.c (keywords): Add QUAD.
3368         * ldwrite.c (build_link_order): Handle QUAD.
3369         * ldlang.c (print_data_statement): Handle QUAD.
3370         (lang_size_sections): Likewise.
3371         (lang_do_assignments): Likewise.
3372         * ldexp.c (exp_print_token): Add QUAD to table.
3373         * ld.texinfo: Describe QUAD.
3374
3375         * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
3376         since the Alpha doesn't use them.
3377
3378 Wed Jan  5 17:42:16 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3379
3380         * ldemul.h (ld_emulation_xfer_struct): Comment the members.
3381
3382 Sat Jan  1 13:39:31 1994  Rob Savoye  (rob@darkstar.cygnus.com)
3383
3384         * Makefile.in, configure.in: Add support for VSTa micro-kernel.
3385         * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
3386
3387 Sat Jan  1 10:53:35 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3388
3389         * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
3390         needed for i386mach.  (Should be a no-op on other systems.)
3391
3392         * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
3393         (PAGE_SIZE): Don't define; not used.
3394
3395 Fri Dec 31 16:12:06 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3396
3397         * ldgram.y (yyerror): Make argument const char *, and actually
3398         print it out rather than assuming it is a syntax error.
3399         * ldmisc.h: Change declaration of yyerror.
3400         * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
3401
3402 Fri Dec 31 11:37:28 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
3403
3404         * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
3405         exec header offset, since the exec header isn't loaded.
3406         (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
3407
3408 Thu Dec 30 13:01:43 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3409
3410         A major rewrite to move the bulk of the linker into BFD so that
3411         more efficient backend code can be written for specific object
3412         files.
3413         * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
3414         ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
3415         * ldctor.c, ldctor.h: Complete rewrite.
3416         * ldwrite.c, ldwrite.h: Complete rewrite.
3417         * ld.h (strip_symbols_type, strip_symbols): Removed.  Use
3418         link_info.strip instead.  Changed all uses.
3419         (discard_locals_type, discard_locals): Removed.  Use
3420         link_info.discard instead.  Changed all uses.
3421         (ld_config_type): Removed relocateable_output field; use
3422         link_info.relocateable instead; changed all uses.  Added stats
3423         field.
3424         (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
3425         set_loader_symbol): Removed.
3426         * ldexp.h (node_class): Added etree_rel.
3427         (etree_type): Added rel field.
3428         * ldexp.c (exp_print_token): Bracketed table initialization.
3429         (exp_relop): New function.
3430         (fold_name): Use linker hash table rather than ldsym functions.
3431         (exp_fold_tree): Likewise.  Also, handle etree_rel case.
3432         (exp_print_tree): Handle etree_rel.
3433         * ldgram.y (strip_symbols, discard_locals): Removed.
3434         (OPTION_stats, OPTION_no_keep_memory): New tokens.  Handle them.
3435         (REL): New token.  Does not appear in grammar, but needed for
3436         expression code.
3437         (file): Don't call lang_final; it's called by main anyhow.
3438         * ldlex.l: Accept -stats and -no-keep-memory options.
3439         * ldlang.h (fill_type): Make unsigned int, not unsigned short.
3440         * ldlang.c: Consistently use fill_type for fill argument.
3441         (lang_init_script_file, script_file): Removed.
3442         (create_object_symbols): Removed.  Use
3443         link_info.create_object_symbols_section instead.  Changed all
3444         uses.
3445         (lang_add_keepsyms_file): Removed.
3446         (lookup_name): Call bfd_link_add_symbols instead of
3447         ldmain_open_file_read_symbol.
3448         (wild): Don't iterate over script_file.
3449         (open_output): Create link hash table.
3450         (lang_place_undefineds): Rewrote.
3451         (lang_size_sections): Handle relaxing (doesn't work yet).
3452         (lang_relocate_globals): Removed.
3453         (lang_finish): Use link hash table rather than ldsym functions.
3454         (lang_common): Rewrote.
3455         (lang_one_common): New function.
3456         (ldlang_add_file): Add file to link_info.input_bfds list.  Set
3457         usrdata.
3458         (create_symbol): Removed.
3459         (lang_process): Don't call lang_init_script_file.  Call
3460         ldctor_build_sets rather than find_constructors.  Don't call
3461         lang_relocate_globals.
3462         (lang_abs_symbol_at_beginning_of): Rewrote.
3463         (lang_abs_symbol_at_end_of): Rewrote.
3464         * ldmain.c (had_y): Removed.
3465         (lprefix, lprefix_len): Removed; use link_info fields instead.
3466         Changed all uses.
3467         (multiple_def_count, commons_pending, undefined_global_sym_count,
3468         total_symbols_seen, total_files_seen): Removed.
3469         (link_callbacks, link_info): New variables.
3470         (main): Initialize link_info.  Don't call init_bfd_error_vector or
3471         ldsym_init.  Don't set now unused variables.  Handle -stats.
3472         (get_emulation): Removed obsolete and nonfunctional GNU960 code.
3473         (add_ysym): Rewrote.
3474         (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
3475         search_library, gnu960_check_format, decode_library_subfile,
3476         linear_library, symdef_library, clear_syms, subfile_wanted_p):
3477         Removed.
3478         (add_keepsyms_file, add_archive_element, multiple_definition,
3479         multiple_common, add_to_set, warning_callback, undefined_symbol,
3480         reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
3481         New functions.
3482         * ldmisc.c (vfinfo): Accept a string for %T, not a symbol.  Don't
3483         require symbols for %C; look them up instead.
3484         * emultempl/hppaosf.em: Pass link_info to
3485         hppa_look_for_stubs_in_section.
3486         * Makefile.in: Rebuilt dependencies.
3487         (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
3488         relax.c.
3489         (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
3490         relax.h.
3491         (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
3492         ldlang.h and ldctor.h.
3493
3494         * Makefile.in (ldlex.c): Don't depend on ldgram.h.  Remove
3495         declarations of free and malloc from flex output.  Change malloc
3496         to ldmalloc in flex output.
3497
3498 Thu Dec 16 21:19:57 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
3499
3500         * ldmain.c (lprefix): Change default from a char to a string
3501         with only one character.
3502         (lprefix_len): Set default to one.
3503
3504         * ldmain.h (lprefix_len): Declare.
3505
3506         * ldsym.c (write_file_locals): Use strncmp rather than a character
3507         comparison for lprefix.
3508
3509         * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
3510         correctly.
3511
3512         * emultmpl/hppaosf.em: Include ldexp.h.
3513         (before_parse): Set lprefix and lprefix_len correctly.
3514
3515 Tue Dec 14 17:19:03 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3516
3517         * ldlex.h: Don't declare yywrap if it is a macro.
3518         * ldlex.l: Include sysdep.h.
3519         * ldlang.c (lang_for_each_statement_worker,
3520         lang_for_each_statement): Forgot to use PARAMS.
3521
3522 Mon Dec 13 14:30:03 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3523
3524         * Makefile.in: Added .PHONY targets where appropriate.  Added some
3525         comments.  Also:
3526         (gcclibdir, version): Removed unused variables.
3527         (DEP): New variable, set to mkdep.
3528         (ALL_CFLAGS): New variable.  Used in .c.o target.
3529         (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
3530         variables.
3531         (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
3532         GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
3533         mostly obsolete variables.  Adjusted remaining uses.
3534         (DEF_EMUL): Removed variable.
3535         (ldmain.o): Handle undefined EMUL error correctly.
3536         (ldemul-list.h): Depend on config.status rather than Makefile.
3537         Create via temporary file.
3538         (ver960.c, roll, make): Removed obsolete targets.
3539         (.dep, .dep1, dep.sed, dep, dep-in): New targets.  Used to rebuild
3540         dependencies.
3541         * dep-in.sed: New file, used when rebuilding dependencies.
3542
3543 Sat Dec 11 14:43:44 1993  Ian Lance Taylor  (ian@deneb.cygnus.com)
3544
3545         Made many changes to eliminate gcc warnings.  Made various
3546         cosmetic changes, declared various things in header files, removed
3547         various extern declarations from .c files.  No substantive
3548         changes.
3549
3550         * ldlang.c (lang_process): Ifdef out final call to
3551         lang_size_sections again (reverting change of Nove 2), since it
3552         breaks the Sun4 linker.
3553
3554 Thu Dec  2 16:31:47 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3555
3556         * configure.in (alpha-*-netware*): New target; use alpha.
3557
3558 Wed Dec  1 14:04:20 1993  Ken Raeburn  (raeburn@cygnus.com)
3559
3560         * configure.in: Group targets by CPU.  Merge some m68k target
3561         entries with different CPU specs that use the same ld_target
3562         values.
3563
3564         * configure.in: Add sparc*-*-coff.
3565         * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
3566         * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
3567         (em_coff_sparc.c): Add dependencies and build rules.
3568
3569         * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare. 
3570
3571 Wed Dec  1 12:19:55 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3572
3573         * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
3574         New tokens.
3575         (command_line_option): Accept and ignore them (for now).
3576         * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
3577         where n is a number.
3578
3579 Mon Nov 22 14:14:29 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3580
3581         * ldmain.c (subfile_wanted_p): If merging a common symbol which is
3582         not in bfd_com_section, create the section in the BFD so that it
3583         can be placed in the right output section.
3584
3585 Fri Nov 19 14:12:39 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3586
3587         * configure.in (mips*-sgi-irix5*): New target.  Use mipsb-elf32.
3588         * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
3589         (OTHER_READONLY_SECTIONS): Define for .reginfo.
3590         (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
3591         * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
3592         Move OTHER_READONLY_SECTIONS after all the other readonly
3593         sections.  Don't use DATA_ADDR twice.
3594
3595         * ldmain.c (enter_file_symbols): Removed duplicate tests of p.  If
3596         p is in a common section, make sure the BFD has a section of that
3597         name.
3598
3599         * ldlang.c (lang_common): Add newline to error message.
3600
3601 Thu Nov 11 15:54:41 1993  Stan Shebs  (shebs@rtl.cygnus.com)
3602
3603         * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
3604         Lynx-specific script instead of m68kcoff.
3605         (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
3606         (ENTRY): Define as __main.
3607         (TEXT_START_ADDR): Define as 0.
3608         (PAGE_SIZE): Define as 0x1000.
3609         * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
3610         * scripttempl/m68klynx.sc: New file.
3611
3612 Mon Nov  8 12:00:16 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3613
3614         * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
3615         arguments rather than treating them as emulation names.
3616
3617 Fri Nov  5 09:02:52 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
3618
3619         * configure.in: Support x86 unixware and netware plus generic netware.
3620
3621 Fri Nov  5 21:47:55 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
3622
3623         * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): 
3624         Correct values (?).
3625
3626 Wed Nov  3 15:10:15 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
3627
3628         * Makefile.in (distclean): Don't delete dvi or info files.
3629         (ld.info): Update dependency list.
3630         (ld.dvi): Ditto.  Extend TEXINPUTS to get bfdsumm.texi.
3631
3632 Wed Nov  3 12:07:39 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
3633
3634         * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
3635         Set output_filename instead of creating a new node.
3636         (open_output): Don't set output_filename.
3637         (lang_final): Create the new node here.
3638         * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
3639
3640 Tue Nov  2 15:45:51 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
3641
3642         From Pete Hoogenboom (hoogen@cs.utah.edu):
3643
3644         * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
3645         edata, _edata, end): Add definitions of these symbols.
3646         (__end):  Remove definition of this symbol.
3647         (__data_start): Move definition of this symbol.
3648
3649         * emultempl/hppaosf.em:  Various fixes and support for linker stub
3650         generation.
3651         (hppaosf_finish, hppaosf_search_for_padding_statements,
3652         hppaosf_create_output_section_statements): New functions in
3653         support of linker stub generation.
3654         (ld_hppaosf_emulation):  Redefine to include new
3655         emulation-specific routines.
3656
3657         * ldlang.c (lang_process): Re-enable last call lang_size_sections.
3658         Pass abs_output_section rather than NULL to avoid invalidating
3659         absolute symbols.
3660
3661 Thu Oct 28 21:16:42 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
3662
3663         * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
3664         (em_i386mach.c): New rule.
3665         * configure.in (i[34]86-*-mach*): New case.
3666         * config/i386-mach.mt: New file.
3667         * emulparams/i386mach.sh: New file.
3668
3669 Fri Oct 29 14:55:05 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3670
3671         * ld.h (flag_is_*): Removed macros.
3672         * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
3673         Consistently check the BFD symbol flags directly, rather than
3674         using file_is_* macros.
3675
3676 Thu Oct 28 19:08:42 1993  Stan Shebs  (shebs@rtl.cygnus.com)
3677
3678         * configure.in (sparc*-*-lynxos*): New target.
3679         * Makefile.in: Add rule for em_sparclynx.c.
3680         (ALL_EMULATIONS): Add Lynx emulations.
3681         * config/sparc-lynx.mt: New file.
3682         * emulparams/sparclynx.sh: New file.
3683         * scripttempl/sparccoff.sc: New file.
3684
3685 Thu Oct 28 13:50:25 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3686
3687         * Makefile.in: Add dependency for $(EMULATION_OFILES).
3688
3689 Mon Oct 25 16:09:24 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3690
3691         * relax.c (write_relax): Check return value of bfd_seclet_link.
3692
3693 Mon Oct 25 09:31:21 1993  Ken Raeburn  (raeburn@cygnus.com)
3694
3695         * ldlang.c (delete_output_file_on_failure): New variable.
3696         (open_output): Set it after bfd open succeeds.
3697         * ldmisc.c (vfinfo): Test it.
3698
3699         Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
3700
3701         * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
3702         symbols.
3703
3704         * ldemul.c: Support was added to allow emulation-specific
3705         processing to occur.  This support was added primarily for linker
3706         stub generation in the elf32-hppa gld.
3707         (ldemul_finish, ldemul_create_output_section_statements):  New
3708         functions.
3709         * ldemul.h: Support was added to allow emulation-specific
3710         processing to occur. (As described above.)  Added finish and
3711         create_output_section_statements fields to
3712         ld_emulation_xfer_struct structure.
3713         * ldlang.c: Add calls to emulation-specific routines.
3714         (lang_process):  Add call to
3715         ldemul_create_output_section_statements function.
3716         (lang_process):  Add call to a emulation-specific routine (and
3717         some processing after the call).
3718
3719 Fri Oct 22 20:54:13 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
3720
3721         * configure.in: mips*- instead of mips-, mips*el changes
3722
3723 Tue Oct 19 15:46:28 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3724
3725         * configure.in (alpha-*-osf*): New target; use alpha.mt.
3726         * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
3727         (em_alpha.c): New target; use alpha.sh and alpha.sc.
3728         * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
3729         * config/alpha.mt: New file.
3730         * emulparams/alpha.sh: New file.
3731         * scripttempl/alpha.sc: New file.
3732
3733 Fri Oct 15 02:20:04 1993  Doug Evans  (dje@canuck.cygnus.com)
3734
3735         * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
3736         types of different sizes (eg: 64 and 32 bits), so coerce.
3737         * ld.h (ALIGN_N): Add warning about usage.
3738
3739 Wed Oct 13 16:02:39 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3740
3741         * ldmain.c (enter_global_ref): Just ignore any weak symbol for
3742         which we already have a definition, rather than checking in
3743         several different places whether the symbol is weak.
3744
3745 Tue Oct 12 17:30:51 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3746
3747         * configure.in (mips-*-elf*): New target; use mipsb-elf32.
3748         * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
3749         OTHER_READWRITE_SECTIONS if relocating.  Shell variables are not
3750         expanded within them.
3751         * config/mipsb-elf32.mt: New file.
3752         * emulparams/elf32mipb.sh: New file.
3753         * Makefile.in (em_elf32mipb.c): New target.
3754
3755 Thu Sep 30 17:00:36 1993  Rob Savoye  (rob@darkstar.cygnus.com)
3756
3757         * ldgram.y: In input_list, change lang_input_file_is_file_enum to
3758         lang_input_file_is_search_file_enum so objects brought in using
3759         INPUT() do a path lookup.
3760
3761 Tue Sep 28 13:31:23 1993  Stan Shebs  (shebs@rtl.cygnus.com)
3762
3763         * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
3764         instead of {i386,m68k}-coff.
3765         * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
3766         * config/i386-lynx.mt: New file.
3767         * config/m68k-lynx.mt: New file.
3768         * emulparams/i386lynx.sh: New file.
3769         * emulparams/m68klynx.sh: New file.
3770
3771         * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
3772         but defaulting to _start.
3773
3774         * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
3775         ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
3776         LynxOS libc.
3777
3778 Thu Sep 23 14:51:03 1993  Ian Lance Taylor  (ian@cygnus.com)
3779
3780         * config/solaris2.mh: New file.  Define HOSTING_CRT0 and
3781         HOSTING_LIBS for testing.
3782
3783 Fri Sep 17 17:52:24 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3784
3785         Finish up support for i386-sysv4 (without shared libraries):
3786         * ld.h (flag_is_weak): Define.
3787         * ldlang.c (print_symbol): Mention whether symbol is weak.
3788         (print_input_section): Print weak symbols as globals.
3789         * ldmain.c (refize): Do not zero out BSF_WEAK flag.
3790         (enter_global_ref): Do not warn if a weak symbol redefines a
3791         global symbol.  Do not let a weak symbol redefine a common symbol.
3792         (enter_file_symbols): Treat weak symbols as global symbols.
3793         (subfile_wanted_p): Do not pull in an object file from a archive
3794         just to resolve an undefined weak symbol.
3795         * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
3796         error; the error might be that malloc has run out of space.
3797         * ldsym.c (write_file_locals): Treat weak symbols as global.
3798         * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
3799         use i386-elf.
3800         * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
3801         * config/i386-elf.mt: New file; set EMUL to elf_i386.
3802         * emulparams/elf_i386.sh: New file.
3803         * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
3804         * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
3805         (ALL_EMULATIONS): Add em_elf_i386.o.
3806         (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
3807         (em_elf_i386.c): New target, like other em_*.c targets.
3808         ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
3809         * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument.  If
3810         nonempty, and configured for native, add it to LIB_PATH.
3811
3812 Fri Sep 17 13:07:39 1993  Stan Shebs  (shebs@rtl.cygnus.com)
3813
3814         * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
3815         Added statements to pass stab and stabstr sections through and
3816         mark them as NOLOAD, which makes GDB happier.
3817
3818 Wed Sep 15 16:02:29 1993  Stan Shebs  (shebs@rtl.cygnus.com)
3819
3820         * configure.in: Accept m68k-lynx-lynxos config.
3821
3822         * Makefile.in: Use $(SHELL) to run genscripts.sh.
3823
3824 Sun Sep 12 16:04:40 1993  Doug Evans  (dje@cygnus.com)
3825
3826         * config/coff-h8300.mt: Add EMUL=h8300h.
3827
3828         * ldmain.c (main): Call set_scripts_dir after argv has been processed.
3829
3830 Fri Sep 10 09:36:29 1993  Jeffrey Wheat  (cassidy@cygnus.com)
3831
3832         * Makefile.in: Changed CXX back to g++. 
3833
3834 Fri Sep 10 09:34:29 1993  Jeffrey Wheat  (cassidy@cygnus.com)
3835
3836         * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
3837
3838 Fri Sep 10 07:26:57 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
3839
3840         * Makefile.in (TAGS): Use shell wildcards.
3841
3842 Tue Sep  7 18:04:54 1993  Jeffrey Osier  (jeffrey@cygnus.com)
3843
3844         * Makefile.in:  add TEXINPUTS variable and use it in ld.dvi target
3845
3846 Fri Sep  3 16:46:41 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
3847
3848         * ld.texinfo: re-enable included config file; conditionalize doc
3849         for -oformat to interact properly with SingleFormat doc config
3850         var; rename @up/@down to @raisesections/@lowersections.
3851
3852 Wed Aug 25 16:29:56 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
3853
3854         * configure.in: recognize m88110.
3855
3856 Tue Aug 24 18:49:40 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
3857
3858         From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
3859         * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
3860         ELF emulation is "elf32-hppa" not "elf-big".
3861         (hppaosf_before_parse): Remove unneeded processing of environment
3862         variables.
3863         * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
3864         .text segment of output file.
3865         * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
3866
3867 Tue Aug 24 16:17:00 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
3868
3869         * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
3870           longer in bfd.h.
3871
3872         * ldlang.c, ld.h: updated copyright.
3873
3874 Tue Aug 17 15:22:03 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3875
3876         * ldlang.c (open_output, lang_check): Check return value of
3877         bfd_set_arch_mach.
3878
3879 Tue Aug 17 07:02:19 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
3880
3881         * scripttempl/h8500.sc: Start all sections in a different segment.
3882         * scripttempl/z8ksim.sc: Handle constructors
3883
3884 Thu Aug 12 16:05:37 1993  Jeffrey Wheat  (cassidy@cygnus.com)
3885
3886         * Makefile.in: revert earlier changes back to execute runtest
3887           with make check. cdtest and bootstrap now function as they
3888           did within the Makefile.
3889
3890 Thu Aug 12 10:20:05 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
3891
3892         * Makefile.in:  Update dependencies.
3893
3894         * configure.in: Set EMULATION_OFILES in Makefile based on
3895         --with-targets option.
3896
3897 Thu Aug 12 08:52:29 1993  Jeffrey Wheat  (cassidy@cygnus.com)
3898
3899         * Makefile.in: check targets reimplemented to old way.
3900
3901 Wed Aug 11 08:26:11 1993  Ian Lance Taylor  (ian@cygnus.com)
3902
3903         * config/i386v.mh, config/irix4.mh: Use gcc
3904         -print-libgcc-file-name rather than $(libdir)/libgcc.a.
3905         * config/i386sco.mh: New file; copy of i386v.mh to correspond to
3906         bfd/configure.host change.
3907
3908 Mon Aug  9 14:25:35 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
3909
3910         * scripttempl/elf.sc: Handle .line and .debug* sections.
3911
3912         * ldlex.l: Use bfd_scan_vma, not strtoul.
3913
3914 Fri Aug  6 08:57:39 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
3915
3916         * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
3917         Remove inital caps in some error messages, change "can't" to
3918         "cannot", add missing colons.
3919         * ldmisc.c (vfinfo): Print "%%" as a single %.
3920         For '%' followed by unrecognized character, print them both
3921         verbatim instead of expecting a char * arg.
3922         For '%C', don't put the function name in parens.
3923
3924         * ldexp.c (invalid): Pass "%%", not "% ".
3925
3926 Fri Aug  6 14:31:22 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3927
3928         * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
3929         (BSS_VAR): Removed; now always define _fbss.
3930         * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
3931         Removed.
3932
3933 Thu Aug  5 15:55:19 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
3934
3935         * configure.in: z8k-coff is the same as z8k-sim
3936
3937 Wed Aug  4 21:00:18 1993  Jeffrey Wheat  (cassidy@cygnus.com)
3938
3939         * testsuite/lib/ld.exp: new file
3940         * testsuite/config/unix-ld.exp: new file
3941         * testsuite/ld.bootstrap/bootstrap.exp: new file
3942         * Makefile.in: add dejagnu support for make check
3943
3944 Wed Aug  4 17:52:32 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
3945
3946         * ldlex.l (comment): Add missing newline in message.
3947         * ldindr.c (add_indirect): Ditto.
3948         * ldexp.c (exp_fold_tree): Ditto.
3949
3950 Tue Aug  3 10:57:41 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
3951
3952         * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
3953         into externs.
3954
3955         * ldmisc.c (multiple_warn): New function.
3956         * ldmisc.h: Declare it.
3957         * ldmain.c (enter_global_ref): Call it.
3958         * ld.h (ld_config_type): Add warn_common.
3959         * ldlex.l, ldgram.y: Set it with -warn-common option.
3960         * ldver.c (help): Document it.
3961
3962 Mon Aug  2 12:04:36 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
3963
3964         * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
3965         target-specific sections, and for changing data section vma.
3966
3967 Mon Jul 26 14:00:02 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
3968
3969         * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
3970         terminals, for Solaris.
3971         (dirlist_ptr): New static variable.
3972         (command_line_option): Accept new options.
3973
3974         * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
3975         "-YP,...".
3976
3977         * config/sun4sol2.mt: Pass emulation name without ".sh".
3978
3979         * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
3980         * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
3981
3982 Fri Jul 23 13:51:09 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
3983
3984         * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
3985         .dtors, .data1, .rodata1 sections, instead of combining them into
3986         other sections.  For `-r', set all section start addresses to
3987         zero.
3988
3989         * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
3990         NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
3991         (MAXPAGESIZE): Renamed from PAGE_SIZE.
3992
3993 Wed Jul 21 14:28:42 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
3994
3995         * genscripts.sh: If this is the default emulation, set
3996         COMPILE_IN.
3997         * emultempl/*.em: Use it to determine whether to compile in the
3998         scripts.
3999
4000         * Makefile.in (GENSCRIPTS): Pass the default emulation name to
4001         genscripts.sh.  Pass the current emulation name without ".sh" on
4002         the end.
4003         * genscripts.sh: Take an default emulation arg.
4004         Use the current emulation name as EMULATION_NAME.
4005         Make default lib path for cross-compiling ':', not null.
4006         * emulparams/*.sh: Don't set EMULATION_NAME.
4007         * ldemul.c (ldemul_get_script): Take isfile arg.
4008         Pass it to emulation's get_script function.
4009         * ldemul.h: Adjust get_script prototypes.
4010         * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
4011         No longer static.
4012         * ldfile.h: Declare it.
4013         * ldgram.y: Accept a script on the command line again,
4014         for parsing compiled-in scripts.
4015         * ldmain.c (main): If ld script is a file, parse it as a -T
4016         option, otherwise parse it directly.
4017         * emultempl/*.em (*get_script): Return the scripts themselves if
4018         this is the default emulation; otherwise return their file names.
4019         * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
4020         generic.em.
4021         * emulparams/m88kbcs.sh: Use it.
4022
4023         * ld.h (ld_config_type::unix_relocate): Remove unused element.
4024
4025 Tue Jul 20 12:01:49 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
4026
4027         * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
4028         there's no change log entry yet, tsk tsk) from the list of
4029         emulations compiled in until Mark gets around to checking in
4030         emulparams/i386linux.sh.
4031         (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
4032         changed, this file gets updated.
4033
4034 Fri Jul 16 14:14:32 1993  Ian Lance Taylor  (ian@cygnus.com)
4035
4036         * ldgram.y (OPTION_Lfile): New token.
4037         (command_line_option): Accept OPTION_L NAME (whitespace after -L).
4038         * ldlex.l (<COMMAND>): Accept -L without FILENAME.
4039
4040 Fri Jul 16 13:44:26 1993  Doug Evans  (dje@canuck.cygnus.com)
4041
4042         * configure.in: h8/300h support needs own .mt file.
4043         config/coff-h8300h.mt: New file.
4044
4045 Thu Jul 15 12:44:35 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4046
4047         * ldmain.c: Don't include sys/stat.h; it already got included
4048         somewhere along the way.
4049
4050 Thu Jul 15 14:43:34 1993  Doug Evans  (dje@canuck.cygnus.com)
4051
4052         * Makefile.in: Add h8300h support.
4053         emulparams/h8300h.sh: New file.
4054         scripttempl/h8300h.sc: New file.
4055
4056 Thu Jul 15 12:44:35 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4057
4058         * ldfile.c (ldfile_open_file): In error message, use the name the
4059         user gave (e.g., "-lc"), rather than the base file name.
4060
4061         * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
4062
4063         * ldmain.[ch]: Remove initial Q_ from function names.
4064         * ldexp.c, ldindr.c, ldlang.c: Change callers.
4065
4066         * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
4067
4068         * ldlang.c (lang_process): Move loading of default script from
4069         here to main.  Add a "/" to start of script name to prevent
4070         finding it in "." first.
4071
4072         * ldmain.c (set_scripts_dir): Don't look in "." first.
4073
4074         * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
4075         option_longmap. 
4076
4077 Thu Jul 15 10:55:59 1993  Ian Lance Taylor  (ian@cygnus.com)
4078
4079         * Makefile.in (em_m88kbcs.c): Correct dependency.
4080         * scripttempl/m88kbcs.sc: It's ARCH, not arch.  Removed TARGET
4081         statement.  Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
4082         * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
4083
4084 Wed Jul 14 21:42:53 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4085
4086         * ldfile.c (ldlang_open_file, ldfile_open_command_file),
4087         main.c (main): Print the errno string in the error message.
4088
4089 Tue Jul 13 20:00:30 1993  Doug Evans  (dje@canuck.cygnus.com)
4090
4091         * configure.in: Accept h8300h for target cpu.
4092
4093         * ldmisc.c (vfinfo): Have demangle remove leading underscore if
4094         present (demangle is smart enough to know whether to do it or not).
4095
4096 Mon Jul 12 11:45:48 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4097
4098         * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
4099         ldscripts, as well as <ld bin dir> and SCRIPTDIR.
4100
4101         * ldlang.c (lang_process): Use sizeof instead of magic constant.
4102
4103         * ldmain.c (get_emulation, check_for_scripts_dir,
4104         set_scripts_dir):  New functions.
4105         (main): Call them.
4106
4107 Mon Jul 12 10:57:03 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
4108
4109         * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
4110         Create symbol "end" instead of "__end".  Comment out some parts
4111         that may not be needed (yet) for elf.
4112
4113         * configure.in: Accept sparc-elf and sparc-solaris2 configs.
4114
4115 Thu Jul  8 15:33:32 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
4116
4117         * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
4118
4119         * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
4120         when no prototype is being supplied.
4121         (ldmalloc, ldrealloc): Size argument is now size_t.
4122
4123         * ldmisc.c (finfo): New function, accepts FILE* argument.
4124         (vfinfo, case 'v'): New format character; displays bfd_vma in hex
4125         without leading zeros.
4126         (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
4127         bfd_vma value, instead of fprintf(%x) which won't hold a long long
4128         value.
4129         (concat, buystring): String lengths are size_t.
4130         (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
4131
4132         * ldlang.c (new_statement): Size argument is now size_t.  Added
4133         forward declaration with prototype.
4134
4135 Thu Jul  8 10:53:47 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4136
4137         * ldgram.y (OPTION_v): Don't turn on verbose output.
4138
4139 Wed Jul  7 17:10:45 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
4140
4141         * ldlex.l: Get rid of local typedef for bfd_vma!  Get it from
4142         bfd.h instead.
4143
4144 Wed Jul  7 11:33:12 1993  Ian Lance Taylor  (ian@cygnus.com)
4145
4146         * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
4147         collect2 doesn't look for gld any more anyhow.
4148
4149 Mon Jul  5 14:29:48 1993  Ian Lance Taylor  (ian@cygnus.com)
4150
4151         * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
4152         now have a non NULL srefs_chain.
4153
4154         * config/hp300hpux.mt: Use emulation hp3hpux rather than
4155         hp300hpux, since the latter does not exist.
4156
4157 Fri Jul  2 18:06:05 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4158
4159         * genscripts.sh: Put the scripts in the ldscripts directory, not
4160         emulations. 
4161         * configure.in (ldscripts): Make, instead of emulations.
4162         * Makefile.in (scriptdir): Take off the "ld" part.
4163         (install, clean, distclean): Use ldscripts, not emulations.
4164         In tests, don't pass -Lemulations.
4165         Don't pass tooldir/lib to genscripts.sh.
4166         * genscripts.sh: Don't take tooldir/lib arg.
4167         * ldlang.c (lang_process): Add "ldscripts/" to the name of the
4168         default script file.
4169
4170 Fri Jul  2 17:13:35 1993  Doug Evans  (dje@canuck.cygnus.com)
4171
4172         * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
4173
4174 Thu Jul  1 16:38:45 1993  Doug Evans  (dje@canuck.cygnus.com)
4175
4176         * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
4177
4178 Wed Jun 30 15:45:55 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
4179
4180         * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
4181           run in parallel without colliding on yacc's static file names.
4182           Without the stub rule, make will try to start two yacc's
4183           concurrently which fails because of yacc's static file names.
4184
4185 Tue Jun 29 12:20:36 1993  Ian Lance Taylor  (ian@cygnus.com)
4186
4187         * ldmain.c (subfile_wanted_p): Don't dump core if there are no
4188         symbols.
4189
4190 Mon Jun 28 12:22:11 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4191
4192         * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
4193         different from libdir.
4194
4195         * Makefile.in (scriptdir): Base on tooldir, not datadir.
4196
4197 Sat Jun 26 12:03:57 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4198
4199         * ldver.c (help): New function.
4200         * ldver.h: Declare it.
4201         * ldlex.l, ldgram.y: Recognize new options --help and --version.
4202
4203 Mon Jun 21 20:39:48 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)
4204
4205         * Makefile.in (INCLUDES): Don't need ../include any more.
4206
4207 Mon Jun 21 16:38:35 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4208
4209         * ldlex.l, ldgram.y: Support new -oformat option.
4210         Remove attempt at supporting script fragments on the command line.
4211         * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
4212         * mri.c (mri_format), ldgram.y: Change callers.
4213         * ldlang.h: Change prototype.
4214
4215 Thu Jun 17 16:53:56 1993  david d `zoo' zuhn (zoo@cygnus.com)
4216         
4217         * Makefile.in: canonicalize install.sh; for use within
4218         this directory (and subdirs)
4219
4220 Thu Jun 17 14:33:09 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4221
4222         * ldgram.y: Tweak grammar to make reporting of invalid options work.
4223
4224         * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
4225         and .cc.o rule.
4226
4227 Wed Jun 16 11:45:32 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4228
4229         * ldfile.c (ldfile_open_command): Don't try .ld extension.
4230         It wasn't documented (or likely used) and wastes time.
4231         (try_open): If EXTEN is empty, don't try it.
4232
4233         * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
4234         ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
4235         ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
4236         with normal function declarations.
4237
4238         * Move *.em to emultempl/*.em.  Move *.sh to emulparams/*.sh.
4239         Move *.sc-sh to scripttempl/*.sc.
4240         * {emultempl,emulparams,scripttempl}/README: New files.
4241         * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
4242         removed, replaced with generic.em.
4243         * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
4244          h8[35]00hms.s[ch].  Change their contents to omit the "hms".
4245
4246         * *.em (*_get_script): Return script name instead of script contents.
4247         * ldlang.c (lang_process): Change caller.
4248
4249         * ldlex.l, ldgram.y: Recognize -m option.
4250         Check for input files after *all* options in grammar.
4251         * ldmain.c (main): Check for -m options.  Add default directory
4252         for -m.
4253
4254         * mkscript.c: File removed.
4255         * genscripts.sh: Take two more parameters, tooldirlib and libdir,
4256         to add to the default LIB_PATH.
4257         Look for input files in the new subdirectories.
4258         Create the scripts in emulations subdirectory and don't filter
4259         them through mkscript.
4260         * configure.in: Make the emulations subdirectory.
4261
4262         * Makefile.in: Account for all of the above changes.
4263         Remove unused .SUFFIXES.  Get libgcc.a path with gcc
4264         -print-libgcc-file-name instead of $(libdir)/libgcc.a.
4265         Put CFLAGS last in the compilation rules.
4266         Add -I../bfd to INCLUDES so sysdep.h is found.
4267
4268 Tue Jun 15 23:04:46 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
4269
4270         * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
4271
4272         * aout.sc-sh: Add SHLIB_PATH like STACKZERO.  Make STACKZERO
4273         dependent on RELOCATING, not RELOCATION.
4274         * hp3hpux.sh (SHLIB_PATH): Define it.
4275
4276 Mon Jun 14 19:06:15 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4277
4278         * ldfile.c (try_open): If opening without the extension fails,
4279         try with the extension even if -v or -V was given.
4280         had_script is imported (from ldgram.y), not exported.
4281
4282 Mon Jun 14 16:26:10 1993  david d `zoo' zuhn  (zoo at rtl.cygnus.com)
4283
4284         * Makefile.in: remove parentdir support, use INSTALL_XFORM
4285
4286 Thu Jun 10 14:00:06 1993  Ian Lance Taylor  (ian@cygnus.com)
4287
4288         * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
4289         * ldgram.y (statement_list_opt): New nonterminal, either empty or
4290         statement_list.
4291         (section): Use statement_list_opt, not statement_list.
4292         * m68kcoff.sc-sh: Gather constructors and destructors and define
4293         __CTOR_LIST__ and __DTOR_LIST__ appropriately.
4294         * sa29200.sc-sh: Gather constructors and destructors and define
4295         ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
4296
4297 Mon Jun  7 12:53:28 1993  Per Bothner  (bothner@rtl.cygnus.com)
4298
4299         * Makefile.in (INCLUDES):  Add -I../bfd for sysdep.h and bfd.h.
4300         * configure.in:  No longer need to configure to get sysdep.h.
4301
4302 Fri Jun  4 16:18:24 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4303
4304         * Makefile.in: remove install:all and install-info:info 
4305         dependencies (these cause some spurious rebuilds at 'make install'
4306         time)
4307
4308 Fri Jun  4 08:50:14 1993  Ian Lance Taylor  (ian@cygnus.com)
4309
4310         * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
4311         (mips-idt-ecoff*): Added trailing '*'.
4312         * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
4313         * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
4314         * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
4315
4316         * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
4317         incorrect definitions.
4318
4319 Tue Jun  1 14:56:10 1993  Per Bothner  (bothner@rtl.cygnus.com)
4320
4321         * ldsym.c (write_file_locals):  Write BSF_CONSTRUCTOR
4322         symbols, unless stripping.
4323
4324 Tue May 25 15:34:25 1993  Ian Lance Taylor  (ian@cygnus.com)
4325
4326         * Makefile.in: configure looks for ####, so remove lines with many
4327         '#' characters.
4328         * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
4329         and HOSTING_LIBS correctly so that ``make check'' will work.
4330
4331 Thu May 20 13:56:16 1993  Per Bothner  (bothner@deneb.cygnus.com)
4332
4333         * mips.sc-sh:  Define _etext, _edata, and _end, in addition
4334         to etext, edata, and end.  Needed for IRIX 4.0.5F.
4335         Patch from mwp@iconix.oz.au (Michael Paddon).
4336
4337         * Version 2.2.1 released.
4338
4339 Thu May 20 11:42:06 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
4340
4341         * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
4342         * mipsbsd.sh (EMULATION_NAME): Use new file name.
4343
4344 Tue May 18 17:10:24 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
4345
4346         * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
4347         properly right now.
4348
4349         * Version 2.2 released.
4350
4351 Mon May 17 15:37:28 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
4352
4353         * ldver.c (ldversion): Bump version number to 2.2.
4354
4355 Mon May 17 12:44:31 1993  Per Bothner  (bothner@cygnus.com)
4356
4357         * NEWS:  New file.
4358
4359 Fri May 14 11:26:24 1993  Ian Lance Taylor  (ian@cygnus.com)
4360
4361         * mips.sc-sh: Don't define BSS_VAR unless relocating.
4362
4363 Wed May 12 13:33:29 1993  Ian Lance Taylor  (ian@cygnus.com)
4364
4365         * Makefile.in (mkscript.o, mkscript): Build mkscript via
4366         mkscript.o, rather than directly from mkscript.c.
4367
4368 Tue May  4 21:58:56 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
4369
4370         * configure.in: Look for ${target_makefile_frag} relative to
4371         ${srcdir}, not relative to build directory.
4372
4373         * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
4374         * configure.in: Recognize hppa*-hp-osf.
4375         * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
4376         (em_hppaosf.c): Build it.
4377         * config/hppaosf.mh, hppaosf.mt: New files.
4378
4379         * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
4380         some system header files.  All uses changed.
4381
4382         * configure.in: Recognize i386-aix configurations as i386-coff
4383         targets.
4384
4385         * configure.in: Recognize m68*-*-hpux.
4386         * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
4387         the value of STACKZERO.
4388         * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
4389         (em_hp3hpux.c): Build it.
4390         * hp3hpux.sh, config/hp300hpux.mt: New files.
4391
4392 Tue May  4 12:37:35 1993  Ian Lance Taylor  (ian@cygnus.com)
4393
4394         * mips.sc-sh: Put constructors in the .data section.
4395         * Makefile.in (cdtest): Added dependency on ld.new.
4396
4397 Mon May  3 19:43:39 1993  Per Bothner  (bothner@cygnus.com)
4398
4399         * Makefile.in:  Change definition of $(tooldir) to match FSF.
4400         * vax.sh, config/vax.mt, configure.in, Makefile.in:
4401         Support VAX Ultrix and BSD.
4402
4403 Mon Apr 26 18:35:47 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
4404
4405         * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
4406
4407 Wed Apr 14 21:01:51 1993  John Gilmore  (gnu@cygnus.com)
4408
4409         * ldlang.h (struct memory_region):  Change `length' and
4410         `old_length' fields to bfd_size_type.  Eliminate use of bfd_offset.
4411         * ldlang.c, mri.c:  Corresponding changes, plus lint.
4412
4413 Thu Apr  8 22:08:18 1993  Ian Lance Taylor  (ian@cygnus.com)
4414
4415         * configure.in: For all i386 targets, accept i486 as well.
4416
4417 Mon Apr  5 17:33:39 1993  Ian Lance Taylor  (ian@cygnus.com)
4418
4419         * ldlang.c (wild_doit): Preserve all flags for a
4420         SEC_SHARED_LIBRARY section.
4421         (size_input_section): Consider any SEC_HAS_CONTENTS section when
4422         computing largest_section.
4423
4424 Fri Apr  2 14:33:52 1993  Ian Lance Taylor  (ian@cygnus.com)
4425
4426         * ldlang.c (lang_output_section_statement_lookup): Initialize all
4427         fields of newly created structure.
4428
4429 Wed Mar 31 18:19:15 1993  Ian Lance Taylor  (ian@cygnus.com)
4430
4431         * ldmain.c (g_switch_value): New variable.
4432         * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
4433         (command_line_option): Accept -G and set g_switch_value.
4434         * ldlex.l (COMMAND): Accept -G.
4435         * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
4436
4437 Tue Mar 30 09:40:25 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
4438
4439         Support for linking and loading at different places:
4440
4441         * ldlex.l: Add "AT" keyword.
4442         * ldgram.y: Cleanup, and parse AT.
4443         * ldlang.c (print_output_section_statement): Print output address
4444         of section in map. (lang_size_sections): Fill sections' lma with
4445         load address.
4446         * ldlang.h (lang_output_section_statement_type): Add load_base
4447         information.
4448
4449         * ldindr.c (add_indirect): Keep more information in the alias
4450         symbol chain.
4451         * ldlang.c (wild_doit):  Don't inherit NEVER_LOAD section
4452         attribute from an input section.
4453         * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
4454         default. (Q_enter_file_symbos): Indirect symbols now are known by
4455         their section, not a special symbol flag.
4456         * ldsym.c (write_file_locals): Indirect symbols aren't local.
4457         (write_file_globals): Write the mapping for an indirect symbol.
4458         * relax.c (build_it): When forced to write a NEVER_LOAD section,
4459         fill it with zeros.
4460
4461 Tue Mar 23 13:24:10 1993  Jeffrey Osier  (jeffrey@fowanton.cygnus.com)
4462
4463         * ld.texinfo:  changes for q1
4464
4465 Tue Mar 23 00:13:29 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4466
4467         * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
4468
4469 Mon Mar  8 20:30:35 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4470
4471         * Makefile.in: rename HOST_CC to CC_FOR_BUILD
4472
4473 Thu Mar  4 12:44:33 1993  Ian Lance Taylor  (ian@cygnus.com)
4474
4475         * mips.sc-sh: Added variables which may be overridden by a
4476         specific emulation.
4477         * mipsidt.sh: New file; emulation for IDT MIPS board.
4478         * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
4479         (em_mipsidt.c): New target.  Uses mipsidt.sh and mips.sc-sh.
4480         * config/mips-idt.mt: New file; sets EMUL to mipsidt.
4481         * configure.in (mips-idt-ecoff): New target; uses mips-idt.
4482
4483 Sat Feb 27 00:00:14 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
4484
4485         * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
4486         ralphc@pyramid.com.
4487         * i386bsd.sh, config/i386bsd.mt: New files.
4488         * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
4489
4490 Thu Feb 25 15:33:10 1993  Per Bothner  (bothner@rtl.cygnus.com)
4491
4492         * mri.c:  Add extern declaration of strdup.
4493         * ldsym.c (KEEP macro):  Add spaces around '=' for the
4494         sake of old (e.g. PCC) compilers.
4495
4496 Wed Feb 24 19:49:31 1993  Per Bothner  (bothner@rtl.cygnus.com)
4497
4498         * ldver.c:  Bump to version 2.1.
4499
4500 Fri Feb 12 08:09:11 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
4501
4502         * ldgram.y: allow section types without address  expressions.
4503         * ldlang.c (lang_relocate_globals): avoid possible hang with
4504         undefined but unreferenced symbols.
4505         * relax.c (relax_section): don't complain if the script file isn't
4506         relaxable but -relax is set
4507
4508 Thu Feb 18 17:58:45 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4509
4510         * configure.in: go32 is the 3rd part of the triple, not the 2nd
4511
4512 Wed Feb  3 09:05:56 1993  Ian Lance Taylor  (ian@cygnus.com)
4513
4514         * mipsbig.sh: New file.  Big endian MIPS emulation.
4515         * config/mips-big.mt: New file.  Use mipsbig emulation.
4516         * configure.in (mips-sgi-irix*): Use target mips-big.
4517         * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
4518         (em_mipsbig.c): New target.  Uses mipsbig.sh.
4519
4520 Tue Feb  2 11:32:27 1993  Ian Lance Taylor  (ian@cygnus.com)
4521
4522         * mips.sc-sh: Put .scommon sections into .sbss section.
4523
4524         * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
4525         rather than always putting them in bfd_com_section.
4526         * ldlang.c (lang_common): If a common symbol is not in
4527         bfd_com_section, put in a section of the same name, rather than
4528         always putting it in section COMMON.
4529
4530 Fri Jan 29 09:57:58 1993  Ian Lance Taylor  (ian@cygnus.com)
4531
4532         * ldmain.c (subfile_wanted_p): If we already have a common
4533         definition of a symbol, don't necessarily pull in an object file
4534         that provides a non-common definition.
4535
4536         * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
4537         returning OPTION_EB and OPTION_EL.  gcc passes these to a MIPS
4538         linker.
4539         * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
4540         (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
4541
4542 Thu Jan 28 15:12:04 1993  Ian Lance Taylor  (ian@cygnus.com)
4543
4544         * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
4545         the link to it.
4546
4547 Tue Jan 26 11:49:50 1993  Ian Lance Taylor  (ian@cygnus.com)
4548
4549         * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
4550         checking for equality to bfd_com_section.
4551
4552 Fri Jan 22 14:22:44 1993  Ian Lance Taylor  (ian@cygnus.com)
4553
4554         * mips.sc-sh: New file.  Ultrix, and hopefully other MIPS ECOFF
4555         targets, linker script.
4556         * mipslit.sh: New file.  Little endian MIPS emulation.
4557         * config/mips-lit.mt: New file.  Use mipslit emulation.
4558         * configure.in (mips-dec-ultrix*): Use target mips-lit.
4559         * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
4560         (em_mipslit.c): New target.  Uses mipslit.sh.
4561
4562 Thu Jan 14 15:30:27 1993  Ian Lance Taylor  (ian@cygnus.com)
4563
4564         * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
4565         $(tooldir)/bin/gld, so that gcc can find it with or without
4566         collect2.
4567
4568 Mon Jan 11 18:50:07 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4569
4570         * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
4571         write_norel.  All linking is now done via write_relax.  Call
4572         ldsym_write before calling write_relax.
4573         * relax.c: Added copyright.
4574         (write_relax): Renamed from write_relaxnorel.  Added relocateable
4575         argument.  seclet_dump renamed to bfd_seclet_link.
4576         * relax.h: Added copyright.
4577
4578 Mon Jan 11 15:41:56 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
4579
4580         * ldmain.c (decode_library_subfile): Patch from
4581         hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
4582
4583 Fri Jan  8 18:04:33 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4584
4585         * config/vxworks960.mt renamed to config/i960.mt
4586
4587         * configure.in: sparc-aout emulates a sun4, as does
4588         sparc*-vxworks, i960-nindy uses gld960 emulation
4589
4590 Fri Jan  8 14:39:07 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
4591
4592          Fix support for NOLOAD, add INCLUDE
4593         * ldfile.c (ldfile_open_command_file): pass file name to
4594         lex_push_file.
4595         * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD 
4596         * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
4597         attribute.
4598
4599 Thu Jan  7 10:22:19 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4600
4601         * Makefile.in, config.h: no more default emulation.  Make the lack
4602         of emulation a compile time error
4603
4604 Wed Jan  6 01:08:37 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4605
4606         * configure.in: recognise all sparclite variants, not just 'sparclite'
4607
4608 Mon Dec 28 11:15:35 1992  Ian Lance Taylor  (ian@cygnus.com)
4609
4610         * m68kcoff.sc-sh: define _end as well as end, for consistency with
4611         aout.sc-sh.
4612
4613         * configure.in: accept *-ericsson-ose for any m68k CPU.
4614
4615         * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
4616         for each output section.
4617
4618 Mon Dec 21 16:06:59 1992  Per Bothner  (bothner@rtl.cygnus.com)
4619
4620         * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c:  Use new
4621         macro bfd_asymbol_bfd as appropriate.
4622         * Makefile.in:  Un-duplicate ldlex.c dependency.
4623         * condigure.in:  Replace my_host case table by sourcing
4624         ../bfd/configure.host.  Allow std-host as the default.
4625         * ldmisc.c:  Change logic for C++ name demangling:  There is
4626         no initial '_' to remove from stab-derived function names.
4627
4628 Sun Dec 13 16:31:26 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4629
4630         * ldlang.c (lang_init_script_file): don't attach the output file
4631         sections to the script file.
4632
4633 Wed Dec  9 08:38:05 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4634         * ldlang.c (wild): run expansion loop over command line bfd too.
4635         (lang_ini_script_file): initialize more parts of the command line
4636         bfd.
4637         * ldlex.l: fix DEFINED start states.
4638
4639 Mon Dec  7 08:43:41 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4640          -y support
4641         * ld.texinfo: new doc.
4642         * ldgram.y, ldlex.l: understand -y<symbol>
4643         * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
4644         print info. (add_ysym): new function.
4645         * ldsym.h: (ldsym_type): new define SYM_Y.
4646
4647 Sat Nov 21 03:15:27 1992  John Gilmore  (gnu@cygnus.com)
4648
4649         * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
4650         ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
4651         ldwrite.h, relax.h:  Replace all uses of EXFUN and PROTO ansi-glue
4652         macros with PARAMS.  Recreational cleanup.  Update copyrights.
4653
4654 Tue Nov 10 00:23:37 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4655
4656         * Makefile.in: pass down the bfd source directory for includes
4657
4658 Thu Nov  5 15:41:55 1992  Ian Lance Taylor  (ian@cygnus.com)
4659
4660         * ldlang.c (lang_size_sections): don't change size and address for
4661         SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
4662         sections.
4663
4664 Thu Nov  5 11:33:57 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4665
4666         * relax.c (build_it): re-enable the processing of data_statements
4667         in scripts, makes counted contructor lists work again.
4668
4669 Thu Nov  5 05:43:01 1992  John Gilmore  (gnu@cygnus.com)
4670
4671         * ldemul.h:  Remove uses of SDEF and PROTO macros (use PARAMS).
4672
4673 Tue Oct 20 10:56:06 1992  Ian Lance Taylor  (ian@cygnus.com)
4674
4675         * m68kcoff.sc-sh: don't use initial underscores for etext, edata
4676         and end.
4677
4678 Mon Oct 19 09:45:38 1992  Ian Lance Taylor  (ian@cygnus.com)
4679
4680         * Support for i386-sysv.
4681         configure.in: check for i386-*-sysv* and i386-*-sco*.
4682         i386coff.sc-sh: rewrote to support SVR3 by default.
4683         ldctor.c (find_constructors): preserve stat_ptr.
4684         ldlang.c (wild_doit): initialize vma and size of new output
4685         section to corresponding input section.  This is required for
4686         shared library support.
4687         (lang_size_sections): don't modify vma and size of sections which
4688         are never loaded (for shared libraries).
4689         ldwrite.c (copy_and_relocate): copy the contents of any section
4690         which has contents, not just sections which are loaded (for shared
4691         libraries).
4692
4693 Thu Oct 15 15:20:26 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4694
4695         * ldlang.c (size_input_section): count the sizes of all sections
4696         we allocate.
4697
4698 Thu Oct  8 09:05:25 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4699
4700         * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to 
4701         to demangle symbols better
4702
4703 Tue Oct  6 13:08:54 1992  Ian Lance Taylor  (ian@cygnus.com)
4704
4705         * ldlang.c (lang_finish): don't warn if -e start symbol does not
4706         exist when linking with -r.
4707
4708 Mon Oct  5 14:07:37 1992  Ian Lance Taylor  (ian@cygnus.com)
4709
4710         * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
4711         .bss segment.
4712
4713 Mon Oct  5 08:55:14 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4714
4715         * ldmain.c (linear_library): don't even think about processing 
4716         an object file if it's already been done
4717
4718 Thu Oct  1 23:14:59 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4719
4720         * configure.in: the hp9000/300 config file is now hp300
4721
4722 Wed Sep 30 07:34:09 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4723
4724         * config/z8ksim.mt: new file
4725
4726 Fri Sep 25 13:49:52 1992  Ken Raeburn  (raeburn@kyriath.cygnus.com)
4727
4728         * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
4729         lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
4730
4731         * ld.h (strip_symbols_type): Add value STRIP_SOME.
4732         * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
4733         * ldlang.c (lang_add_keepsyms_file): New function.
4734         * ldlex.l: Handle "-retain-symbols-file".
4735         * ldsym.c (keepsyms_file, kept_syms): New vars.
4736         (process_keepsyms): New functihon; reads file, marks symbols for
4737         saving.
4738         (write_file_locals): File symbols should always be kept.
4739         (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
4740         and "-s".  Process retain-symbols file before setting symtab.
4741         * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
4742         (keepsyms_file, kept_syms): Declare them.
4743
4744         * ldmain.c (main): Non-fatal errors should still cause non-zero
4745         exit status even with -r.
4746
4747 Fri Sep 25 11:08:01 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4748
4749         Added initial support for the z8k
4750         * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
4751         * configure.in, Makefile.in: modified to reflect above
4752
4753         * ldlang.c (lang_check): when linking conflicting architectures,
4754         make the output file reflect at least one of the bad inputs.
4755
4756 Tue Sep 15 15:35:38 1992  Ian Lance Taylor  (ian@cygnus.com)
4757
4758         * Makefile.in (install): if $(tooldir) exists, install ld in
4759         $(tooldir)/bin.
4760
4761 Fri Sep 11 10:24:22 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4762
4763         * Makefile.in, configure.in: modified to support i386-coff
4764         * i386coff.sh: new file
4765
4766 Wed Sep  9 11:52:58 1992  Ian Lance Taylor  (ian@cygnus.com)
4767
4768         * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
4769         added m68k-coff emulation mode, stolen from a29k emulation.
4770         Almost certainly wrong, but perhaps better than sun3.
4771
4772 Thu Sep  3 14:19:30 1992  Per Bothner  (bothner@rtl.cygnus.com)
4773
4774         * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
4775         gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
4776         vanilla.em:  Rename all (generated) ld__*.c files to em_.c.
4777         This is one character shorter, and lets people build on
4778         SVR3 system. (ld__h8300xray.[co] was the killer there;
4779         h8300xray.sc-sh is also overlong, but seems harmless.)
4780         Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
4781         * Makefile.in (clean):  Fix typo mostclean -> mostlyclean.
4782         * configure.in:  Add host isc.
4783
4784         * ldver.c:  Call it version 2.0.
4785
4786 Wed Sep  2 00:21:33 1992  Per Bothner  (bothner@rtl.cygnus.com)
4787
4788         * ldver.c:  Bump to version 0.98.
4789         * TODO:  New file.
4790
4791         * Makefile.in:  Added mostlyclean, distclean, realclean rules.
4792
4793 Tue Sep  1 23:42:16 1992  Per Bothner  (bothner@rtl.cygnus.com)
4794
4795         * ldmisc.c (xrealloc):  New (needed by ../libiberty/cplus.dem.c).
4796         * ldlex.l: Moved comment() to end, since some compilers
4797         otherwise have problems with input() used before it is defined.
4798
4799 Tue Sep  1 17:45:51 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4800
4801         * configure.in: added Solaris 2 and Irix 4 host support.
4802
4803 Mon Aug 31 19:27:11 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4804
4805         * Makefile.in: remove -S flag from the FLEX definition
4806
4807         * configure.in: rewrote, using new style case statement.  use
4808         m68k.mt for m68k-aout systems
4809
4810 Sun Aug 30 21:38:53 1992  Ian Lance Taylor  (ian@cygnus.com)
4811
4812         * Makefile.in: map "ld" through program_transform_name when
4813         installing.
4814
4815 Sun Aug 30 18:12:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
4816
4817         * cplus-dem.c:  Removed.  Use the version in libiberty now.
4818         * ldmisc.c:  Use new libiberty version of cplus_demangle().
4819
4820 Thu Aug 27 16:38:42 1992  Ian Lance Taylor  (ian@cygnus.com)
4821
4822         * gld960.em (gld960_choose_target): default to little endian, not
4823         big endian.
4824
4825 Wed Aug 26 17:28:51 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4826
4827         * ldlang.c (lang_process): don't pass null pointers when
4828         abs_output_section is what is required.
4829         * ldwrite.c (ldwrite): use malloc to allocate the largest space
4830         used, and pass that down.
4831         * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
4832         than alloca. 
4833         
4834 Mon Aug 24 14:42:06 1992  Ian Lance Taylor  (ian@cygnus.com)
4835
4836         * configure.in, config/ose68.mt: renamed OSE to ose.
4837
4838 Thu Aug 20 19:55:22 1992  Ken Raeburn  (raeburn@cygnus.com)
4839
4840         * ldsym.c (write_file_locals): Reorder check for common or
4841         undefined symbols so that it works.
4842
4843 Tue Aug 18 13:41:36 1992  Ian Lance Taylor  (ian@cygnus.com)
4844
4845         * configure.in: accept all m68K family members.
4846
4847         * Makefile.in: always create installation directories.
4848
4849 Thu Aug 13 11:49:34 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4850
4851         * ldlex.l: now parses comment correctly, added ~ to acceptable
4852         chars in filenames
4853         
4854         * ldexp.c (exp_unop): pass down abs_output_section - now can have
4855         unary -ve constants.
4856
4857         * ldlang.c (lang_finish): warn when an entry symbol supplied on
4858         the command line can't be found.
4859
4860 Fri Aug  7 12:31:10 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4861
4862         * ldlang.h: add new field "loadable" to output_section_statement.
4863         * ldlang.c (lang_output_section_statement_lookup): initilize new
4864         field. (wild_doit): if new field is not set, then stop output
4865         section from being loadable.
4866         (lang_enter_output_section_statement): set the field from the
4867         NOLOAD keyword
4868         * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
4869         * h8300hms.sc-sh, h8300hms.em: get -r right.
4870
4871 Thu Aug  6 18:35:21 1992  Per Bothner  (bothner@rtl.cygnus.com)
4872
4873         * ldint.texinfo:  New internals manual (beginnings thereof).
4874         * PORTING:  Removed, merged into ldint.texinfo.
4875
4876 Tue Aug  4 21:12:29 1992  Per Bothner  (bothner@rtl.cygnus.com)
4877
4878         * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
4879         cdtest.exp:  A test program (copied from libg++/test-install)
4880         that tests that constructor and destructors are handled
4881         corrrectly.
4882
4883 Mon Aug  3 14:58:19 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4884
4885         * Makefile.in (install): install from ld.new, renaming during the
4886         copy, or else the next 'make install' needs to re-link ld.
4887
4888 Mon Jul 20 03:37:06 1992  D. V. Henkel-Wallace  (gumby@cygnus.com)
4889
4890         * configure.in: generalise hp recognition (from sef).
4891
4892 Sat Jul 18 14:46:04 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4893
4894         * configure.in: recognize bsd and hpux hppa configurations.
4895         error messages echo to stderr, not stdout
4896
4897 Fri Jul 17 22:06:11 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
4898
4899         * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
4900           ldmisc.c: removed rcsid's.
4901
4902 Tue Jul 14 08:34:34 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4903
4904         * ldlang.c (lang_map): print changes in sizes due to relaxing
4905         (size_input_section): maintain the delta information. 
4906         * ldlang.h: add new field to struct to contain delta info.
4907         * relax.c  (relax_section): complain if input not relaxable.
4908         * ldlex.l : add '_', ',' and '$' to chars which can appear at the
4909         start of a filename
4910
4911 Mon Jul 13 17:33:00 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4912
4913         * ldmain.c(main): prevent -r and -relax from being on at the same
4914         time.
4915
4916 Wed Jul  1 17:51:19 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4917
4918         * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
4919         aliasing problems
4920         
4921
4922 Thu Jun 18 09:38:56 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4923
4924         * h8300hms.em, h8300hms.sc-sh:  do the right thing for -r
4925         * ldexp.c:  lint
4926         * ldlang.c(open_output): set the target arch and machine as soon
4927         as we can. (lang_size_sections): use new macros for setting vma
4928         * ldwrite.c: lint
4929
4930 Mon Jun 15 08:47:43 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
4931
4932         * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
4933         Also deleted an unreachable path to wrs.
4934
4935 Wed May 27 23:24:19 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
4936
4937         * Makefile.in (install): use -d test for $tooldir before
4938         installing ld there so that $tooldir can be inherited from
4939         top-level Makefile.
4940
4941 Wed May 27 16:56:48 1992  Per Bothner  (bothner@rtl.cygnus.com)
4942
4943         * ldlang.c:  Two non-substantial changes for the sake of
4944         the old Portable C Compiler.
4945
4946 Wed May 27 15:15:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4947
4948         * ldgram.y, ldlex.l: parse ABSOLUTE
4949         * ldexp.c: add support for ABSOLUTE
4950
4951 Wed May 27 13:07:20 1992  Per Bothner  (bothner@rtl.cygnus.com)
4952
4953         * Makefile.in:  Added default definitions for HOSTING_CRT0,
4954         HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
4955         * config/*.mh:  Miscellaneous clean-up:  Removed definitions
4956         of YACC (since it is not longer used in the Makefile).
4957         Remove HOSTING_* definitions that are subsumed by the
4958         ones added to Makefile.in.  Removed most definitions of CC.
4959         * config/{sparc,news,hp300bsd,decstation}.mh:  Removed;
4960         These are no longer needed.
4961
4962 Fri May 22 13:47:19 1992  Per Bothner  (bothner@cygnus.com)
4963
4964         * Makefile.in:  Use srcdir instead of VPATH in ldgram/ldlex
4965         rules, since these are used when building a distribution.
4966         * Makefile.in (ldlex.c):  Don't re-direct output, since that
4967         leaves a bogus output files if it fails.
4968
4969         * config/sparc.mh:  Fix HOSTING_LIBS so it has a chance of working.
4970         * ldlex.c:  Fix some unnecessary flex-specific-isms.
4971
4972 Fri May  8 11:49:43 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4973
4974         * ldgram.y: move spurious semicolon
4975         * ldexp.h: fix prototype
4976
4977 Thu May  7 17:01:12 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
4978
4979         * ld.texinfo: references to linker now say "ld" not "gld".
4980
4981 Wed May  6 13:26:19 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4982
4983         changed calling convention for Q_enter_global_ref
4984         * ldexp.c, ldlang.c, ldmain.c: reflect this
4985         * ldver.c: bump version to 1.97.1
4986         * ldindr.c (add_indirect): when an edict declaring an indirect
4987         symbol is found, make sure that any ideas about the symbol being
4988         common are changed if it now known to be defined.
4989         * ldmain.c (linear_library): complain once if archive isn't
4990         ranlibbed.
4991         * ldlang.h, ldlang.c: make room for and initialize the complain
4992         once field.
4993
4994 Wed May  6 11:07:35 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
4995
4996         * Makefile.in: use flex & bison from ../ if they exist.
4997
4998 Tue May  5 17:47:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4999
5000         * relax.c (build_it): don't allocate space in the output file for
5001         stuff if -R flag applys to it.
5002         * ldfile.c: merge in VMS filename support
5003         * ldmain.c (main): take out ./ from library path, and close file
5004         before unlinking. Make multiple defs of a symbol create an
5005         unexecable file.
5006         * ldmisc.c: fatal errosrs delete output file 
5007
5008 Tue May  5 14:05:05 1992  Per Bothner  (bothner@rtl.cygnus.com)
5009
5010         * ldver.c:  Increase version number to 1.97, for consistency
5011         with ../binutils.
5012
5013 Tue May  5 12:12:24 1992  K. Richard Pixley  (rich@cygnus.com)
5014
5015         * Makefile.in: FLEX -> LEX.
5016
5017         * ld.texinfo: {} -> @{@}.
5018
5019 Mon May  4 17:52:41 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
5020
5021         * ld.texinfo: describe alternate, MRI-compatible linker scripts
5022         (and associated change in -c option, now used for these scripts)
5023
5024 Mon May  4 16:10:10 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
5025
5026         * ldver.c: Bumped version to 1.96 - new release, resync with the
5027         bfd too #.
5028         * ldexp.c, ldlang.c: now build memory shape tree in obstacks
5029         rather than with raw malloc, makes it easier to track where memory
5030         is going.
5031         * ldsym.h, ldsym.c: create obstack for all global symbols too.
5032         * ldwrite.c (ldwrite): moved malloc so only used when needed.
5033         * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
5034
5035
5036 Fri May  1 18:17:52 1992  K. Richard Pixley  (rich@cygnus.com)
5037
5038         * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
5039
5040         * Makefile.in: use bootstrap for check.
5041
5042 Fri May  1 13:03:41 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
5043
5044         * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
5045         PUBLIC.
5046         * Makefile.in: now use flex, not lex
5047         * ldlex.l, ldlang.c, ldctor.c: lint
5048
5049 Wed Apr 22 12:48:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
5050
5051         * ldlex.l: added CMDFILENAMECHAR state so that you can lex
5052         different sorts of filenames on the command line than in a script.
5053
5054 Mon Apr 20 22:37:04 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
5055
5056         * Makefile.in: rework CFLAGS so that they can be passed on the
5057           make command line.  Remove MINUS_G.  Default CFLAGS to -g.
5058
5059 Fri Apr 17 08:57:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
5060
5061         * relax.c: added handling for new "padding" seclet type, used to
5062         fill out gaps between section.
5063         * ldgram.y, ldlex.l: now -defsym on the command line is done
5064         properly.
5065
5066 Wed Apr 15 21:20:07 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
5067
5068         * Makefile.in: the tooldir copy of ld goes directly in tooldir.
5069
5070 Wed Apr 15 16:09:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
5071
5072         * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
5073         scripts.
5074
5075 Thu Apr  9 05:52:02 1992  Ken Raeburn  (Raeburn@Cygnus.COM)
5076
5077         * Makefile.in (install): Install second copy in $(tooldir)/bin
5078         without $(program_prefix), since that's what gcc expects.
5079
5080 Sat Apr  4 17:44:06 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
5081
5082         * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer. 
5083         * h8300*: fix bit rot and add support for h8300xray target
5084         * go32.sh: target emulation for go32.
5085
5086 Mon Mar 16 14:53:29 1992  Steve Chamberlain  (sac@rtl.cygnus.com)
5087
5088         * gld960.em, i960.sc-sh. Fix i960 bit rot
5089
5090 Fri Mar 13 19:47:22 1992  K. Richard Pixley  (rich@cygnus.com)
5091
5092         * Makefile.in: install man page.
5093
5094 Fri Mar 13 08:23:59 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
5095
5096         * config/mt-<foo> renamed to <foo>.mt
5097         * config/mh-<foo> renamed to <foo>.mt
5098         * configure.in changed to reflect this
5099         * genscripts.sh now make .xbn files rather than .xN files
5100
5101 Sat Mar  7 03:40:40 1992  K. Richard Pixley  (rich@cygnus.com)
5102
5103         * ldver.h: fix decl of ldversion.
5104
5105 Fri Mar  6 22:00:35 1992  K. Richard Pixley  (rich@cygnus.com)
5106
5107         * Makefile.in: added check target.
5108
5109 Fri Mar  6 06:59:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
5110
5111         * ldmain.c (Q_enter_file_symbols): now aliases work again
5112
5113 Thu Mar  5 21:39:29 1992  K. Richard Pixley  (rich@cygnus.com)
5114
5115         * Makefile.in: added clean-info target.
5116
5117 Thu Mar  5 16:55:56 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
5118
5119         * ldexp.c (exp_print_tree): don't try and follow null pointers
5120         around.
5121         * ldgram.y: remove 11 shift reduce errors
5122
5123 Tue Mar  3 15:46:39 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
5124
5125         * Makefile.in: added tooldir and program_prefix.
5126
5127 Fri Feb 28 08:17:45 1992  Steve Chamberlain  (sac at thepub.cygnus.com)
5128
5129         * ldlang.c (size_input_section): don't move absolute sections
5130         around!
5131
5132
5133 Thu Feb 27 09:20:41 1992  Steve Chamberlain  (sac at thepub.cygnus.com)
5134     
5135         * cplus-dem.c: yet another copy of this - maybe it should go into
5136         libiberty ?
5137         * ldgram.y: now -V and -v have different actions
5138         * ldver.c: if -V, prints list of emulations compiled in
5139         * ldmisc.c: support for cplus demangling
5140
5141
5142 Wed Feb 26 18:04:40 1992  K. Richard Pixley  (rich@cygnus.com)
5143
5144         * Makefile.in, configure.in: removed traces of namesubdir,
5145           -subdirs, $(subdir), $(unsubdir), some rcs triggers.  Forced
5146           copyrights to '92, changed some from Cygnus to FSF.
5147
5148 Thu Feb 20 17:43:46 1992  Per Bothner  (bothner at cygnus.com)
5149
5150         * Makefile.in:  Change mkscript rule into one for ./mkscript
5151         (for the sake of makes that don't realize they're the same).
5152         * PORTING:  Add more details.
5153         * genscripts.sh:  Add more tailorability of DATA_ALIGNMENT.
5154
5155 Mon Feb 17 12:04:36 1992  Per Bothner  (bothner at cygnus.com)
5156
5157         * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
5158         config/mt-hp300bsd:  New port to hp300 running BSD.
5159
5160 Sat Feb 15 13:59:54 1992  Per Bothner  (bothner at cygnus.com)
5161
5162         Major rewrite of how ld is configured.  The major idea
5163         is to use shell scripts to generate everything.
5164         * generic.em replaces ldtemplate.
5165         * Other *.em files replace various *.c files.
5166         A *.em file is a shell script that generates the corresponding
5167         ld__*.c file that implements an emulation.  This is usually
5168         a straight 'cat' of a here-document, possibly with substitutions.
5169         * Script files (*.sc) are places by *.sc-sh scripts.
5170         Again, these are simple shell scripts that 'cat'
5171         here-documents, usually with some substitutions.
5172         The output a *.sc-sh is a script file.
5173         * Each emulation is defined by a short shell script with
5174         extension *.sh that specifies the emulation-specific
5175         parameters (such as the name of the *.sh-sc and *.em
5176         files to use).
5177         * genscript.sh is the master shell script used to generate
5178         an emulation.  It is passed various argument, including
5179         the name a the emulation-speciic *.sh file that it
5180         "sources" to set variables to emulation-specifc parameters.
5181         * config/mt-foo:  Changed EMUL=GLDFOO_EMULATION_NAME
5182         to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
5183         * config/mh-foo:  Rename LDEMULATION names as appropriate
5184         (usually 'gldfoo' -> plain 'foo').
5185         * ldwrite.c:  Fixed a typo in a comment.
5186         * Makefile.in:  Major changes.  Removed some the sed
5187         magic to converts scripts, since that is now handled
5188         by genscripts.sh and the *.sc-sh scipt generators.
5189         * config.h:  Remove a bunch of macros defining emulations
5190         and targets.  This becomes one less file to edit when
5191         adding emulations or targets.
5192         * ldemul.h (struct ld_emulation_xfer_struct):  Add
5193         emulation_name and target_name fields.
5194         * ldemul.c, ldemul.h:  Define some default functions used
5195         by most emulations (and remove from the *.em scripts).
5196         * ldemul.c (ldemul_choose_target):  Search the new
5197         ld_emulations array using a loop (instead of a hardwired
5198         nested if statement).
5199         Define the ld_emulation from the automatically-geenrated
5200         ldemul-list.h.  This means you no longer have to edit ldemul.c
5201         to add a new emulation.
5202         * ldmain.c:  Replace {GLD,LNK}960_EMULATION_NAME by
5203         their expansions, since the former no longer exist.
5204         * PORTING:  A very rough first draft of a porting guide.
5205
5206         * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
5207         to be terminated by a new-line (instead of requiring a semicolon).
5208
5209 Mon Feb 10 16:21:02 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
5210
5211         * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
5212         tests for NULL pointers all over the place.
5213         * ldlang.c (lang_process): remember to relocate global symbols
5214         *after* relaxing has done it stuff.
5215
5216 Thu Feb  6 11:40:15 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
5217
5218         * config/mt-coff-h8300: use EMUL like everything else
5219         * ldlang.c: (print_padding_statement): print the right address.
5220         * Makefile.in, config.h, ldemul.c: renamed  h8300hds to h8300hms
5221         
5222
5223 Tue Feb  4 15:28:01 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
5224
5225         * ldlex.l: Put pack -noinhibit-exec and -sort-common
5226         * ldlang.c (print_data_statement): print the right address.
5227
5228 Thu Jan 30 17:51:53 1992  Per Bothner  (bothner at cygnus.com)
5229
5230         * Makefile.in:  The rule for testing ld by re-linking itself
5231         via an intermediate -r link was moved to the ld1 rule
5232         instead of the ld2 rule.  This allows ld2 and ld3 to be identical,
5233         which allows the bootstrap rule to work.
5234         * ldctor.c (find_constructors):  Don't create a constructor
5235         list if it is already defined (as would happen if ld is
5236         invoked by collect).
5237
5238 Wed Jan 29 08:35:39 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
5239
5240         * config/mh-sparc.h: now uses libgcc.a
5241         * ldmain.c: quit using exit
5242         * *sc: use *(COMMON) rather than [COMMON]
5243         * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
5244         to allow preprocessing of .l file.
5245         * Makefile.in: New ldlex.l mangling
5246         * ldexp.c (fold_binary): perform expressions with % and / in
5247         integer.
5248         * ldfile.c (open_a): open archives on VMS in a special way
5249
5250
5251 Tue Jan 28 10:18:16 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
5252
5253         * ldgram.y: map -M behave in the same way as -Map (sets file name
5254         to be "-".
5255         * ldsym.c, ldlang.c: remember that size of a section is dependent on
5256         whether or not relaxing has been done.
5257         * ldmain.c: don't open a map file if it doesn't have a name
5258         * relax.c: all the brains have moved into bfd.
5259         * ldwrite.c: ammend comment
5260
5261 Fri Jan 24 14:23:46 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
5262
5263         * Makefile.in: added relax, also made three stage go through a
5264         partial link stage.
5265         * relax.c : added
5266         * config.h: if GNU960 defined, then default emulation mode is
5267         GLD960
5268         * ldexp.h, ldexp.c: map to file hooks
5269         * ldlang.c: map to file hooks
5270         * ldgram.y: added -Map -relax
5271         * ldlex.l: added -relax, -Map
5272         * ldmain.c: open map file
5273         * ldmisc.c: support for map file
5274         * ldwrite.c: new relax magic
5275
5276 Thu Dec 19 18:49:51 1991  John Gilmore  (gnu at cygnus.com)
5277
5278         * Makefile.in, config/tm-*.h:  Clean up make output, only
5279         pass DEFAULT_EMULATION to ldmain.c.
5280
5281 Wed Dec 18 15:02:47 1991  Per Bothner  (bothner at cygnus.com)
5282
5283         * ldver.c:  Bump to version 1.94.
5284
5285 Tue Dec 10 04:07:23 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
5286
5287         * Makefile.in: infodir belongs in datadir.
5288
5289 Mon Dec  9 16:26:43 1991  Per Bothner  (bothner at cygnus.com)
5290
5291         * Makefile.in:  Pass -y to bison.  (Again;
5292         accidentally deleted by Rich.)
5293         * news.sc, ldgld68k.sc:  Define __end as well as _end.
5294
5295 Sat Dec  7 17:19:26 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
5296
5297         * ldindr.h: added to contain prototypes of ldindr.c
5298         * ldfile.c: include ctype.h
5299         * ldmain.c: include the requried prototype headers
5300         * ldwrite.c: get_reloc_upper_bound has been renamed
5301         bfd_get_reloc_upper_bound 
5302
5303 Fri Dec  6 23:29:26 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
5304
5305         * Makefile.in: punt "fundamental" mode because it breaks my emacs
5306           macros.  install using INSTALL_PROGRAM and INSTALL_DATA.  remove
5307           spaces following hyphens, bsd make can't cope.  added
5308           standards.text support and made it look like all the other
5309           makefiles.
5310
5311         * configure.in: configure now runs entirely in objdir so make file
5312           existence checks against ${srcdir}.  Mark this directory as
5313           target dependent.
5314
5315 Thu Dec  5 22:46:16 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
5316
5317         * Makefile.in: idestdir and ddestdir go away.  Added copyrights
5318           and shift gpl to v2.  Added ChangeLog if it didn't exist. docdir
5319           and mandir now keyed off datadir by default.
5320
5321 Wed Dec  4 23:36:55 1991  Per Bothner  (bothner at cygnus.com)
5322
5323         * ldver.c:  Bumped version to 1.93.
5324         * Makefile.in:  Pass -y to bison.
5325
5326 Mon Nov 25 18:28:40 1991  Steve Chamberlain  (sac at cygnus.com)
5327
5328         * config.h: h8 is now coff, not ieee
5329         * h8300hds.sc: reflect the same
5330
5331 Thu Nov 14 19:55:09 1991  Per Bothner  (bothner at cygnus.com)
5332
5333         * ldver.c (ldversion()):  Update to 1.92.
5334         * ldctor.c: There are two places constructor sets
5335         can be defined.  One of them checked for an existing
5336         duplicate, the other didn't.  Unfortunately, the latter
5337         was called after the former ...
5338         So, factor out code for inserting a new element into
5339         constructor_name_list (after checking for a duplicate)
5340         into a new function add_constructor_name, and call
5341         it from both aforementioned places (ldlang_add_constructor
5342         and ldlang_check_for_constructors).
5343
5344 Wed Nov 13 15:17:43 1991  Per Bothner  (bothner at cygnus.com)
5345
5346         * Makefile.in:  Rename .c files generated from ldtemplate
5347         to have names starting with ld__.  This helps 'make clean'.     
5348
5349 Tue Nov 12 18:36:50 1991  Steve Chamberlain  (sac at cygnus.com)
5350
5351         * Makefile.in: Take out the version number for install
5352         * m88kbcs.sc: put in contructor blocks.
5353
5354 Mon Nov 11 18:47:33 1991  Per Bothner  (bothner at cygnus.com)
5355
5356         * ldmisc.c, ldmisc.h:  Re-write info() to take a filename
5357         parameter, a format, and an arg pointer, and rename it to
5358         vfinfo().  Write info() in terms of new vfinfo().
5359         New einfo() is the same as info(), except it writes to stderr.
5360         * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
5361         ldmisc.c:  Replace "error" calls to info() by new einfo().
5362
5363 Mon Nov 11 09:57:32 1991  Steve Chamberlain  (steve at cygnus.com)
5364
5365         * ldlex.l ldgram.y: made -V option do same as -v
5366         * Makefile.in: Added $(MINUS_G) flag so debugging can be
5367         turned off
5368
5369 Sun Nov  3 16:37:37 1991  Steve Chamberlain  (steve at cygnus.com)
5370          i386 aout changes from Bob Kukura
5371         * Makefile.in, config.h: added i386aout support
5372         * configure.in: fixed /h-{myhost} typo
5373         * ldgram.y: -MM now gives more boring map.
5374         * ldlang.c: now does D_PAGED flag the right way.
5375         * ldsym.c: -MM flags does the right thing.
5376
5377 Sun Nov  3 15:00:03 1991  Per Bothner  (bothner at cygnus.com)
5378
5379         * configure.in:  Fixed typo.  Also, a fix for hp300bsd.
5380         * ldlang.c (init_os):  Compensate for BFD change,
5381         where bfd_make_section now returns NULL for a duplicate
5382         section request, instead of the old section.
5383
5384 Thu Oct 17 15:27:13 1991  Per Bothner  (bothner at cygnus.com)
5385
5386         * ldver.c: Bump to version 1.91 (consistent with binutils).
5387
5388 Wed Oct 16 12:27:08 1991  Per Bothner  (bothner at cygnus.com)
5389
5390         * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
5391         ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
5392         ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
5393         ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
5394         Add or update copyright notices.        
5395
5396 Mon Oct 14 23:55:27 1991  Per Bothner  (bothner at cygnus.com)
5397
5398         * README: New file.
5399         * Makefile.in:  Changed installation directory name scheme
5400         to be consistent with gcc.  Also changed 'install'.
5401
5402 Mon Oct 14 17:30:02 1991  Roland H. Pesch  (pesch at cygnus.com)
5403
5404         * Makefile.in: new targets ld.mm, ld.me
5405
5406 Mon Oct 14 17:27:24 1991  Per Bothner  (bothner at cygnus.com)
5407
5408         * Makefile.in, ldtemplate:  Need to use separate scripts
5409         for -n and -N options.  Yet more complication.
5410
5411 Fri Oct 11 22:40:46 1991  John Gilmore  (gnu at cygnus.com)
5412
5413         * Makefile.in:  Avoid using $< in explicit Make rules (it doesn't
5414         work).  Add some lines to avoid Sun Make VPATH bugs.
5415
5416 Fri Oct 11 16:42:22 1991  Per Bothner  (bothner at cygnus.com)
5417
5418         * news.sc: Add alignment for data segment.
5419         * ldtemplate: Add (yet another) script to get for -n or -N
5420         options.  (These need different alignment than ZMAGIC files.)
5421         * Makefile.in:  Add stuff for new foo.xn scripts.
5422         These are generated by replacing "ALIGN(0x...00)" by ".".
5423
5424 Fri Oct 11 15:43:04 1991  Roland H. Pesch  (pesch at cygnus.com)
5425
5426         * Makefile.in: new targets ld.ms, ld-index.ms
5427         ld.texinfo: remove tabs, other cleanups for texi2roff
5428
5429 Fri Oct 11 13:51:54 1991  Per Bothner  (bothner at cygnus.com)
5430
5431         * ldmain.c (main): Make config.magic_demand_paged be true
5432         by default.  Don't the WP_TEXT and D_PAGED flags of
5433         output_bfd here; it's too late, so set it when output_bfd
5434         is created (in ldlang.c).  Also fix setting of EXEC_P flag
5435         * ldlang.c (ldlang_open_output):  Set output_bfd->flags here.
5436         * ldlang.c: Remove some duplicate extern declarations.
5437         * ldgram.y: Fixes to -N and -n options.
5438         * Makefile.in:  Recognize upper case letters in sed script
5439         to remove assignments from script files.
5440         * ldtemplate:  Don't assukme that -N or -n options
5441         imply use of -r script.
5442         * mkscript.c:  Tweaking to correctly handle \n and \\ in input.
5443
5444 Fri Oct 11 10:29:27 1991  Steve Chamberlain  (steve at cygnus.com)
5445
5446         * ldtemplate: include bfd.h before sysdep.h.
5447
5448 Fri Oct 11 04:24:45 1991  John Gilmore  (gnu at cygnus.com)
5449
5450         Restructure configuration scheme for bfd, binutils, ld.
5451
5452         * include/sys/h-*.h:  Move to bfd/hosts/h-*.h.
5453         * configure.in:  Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
5454         Change some config names to match other dirs.
5455         * *.c:  Include bfd.h before sysdep.h, so ansidecl and PROTO()
5456         get defined first.
5457         * config/:  Rename some config files to match up h-*.h names.
5458         Remove all the HOST_SYS definitions from the config files.
5459
5460 Tue Oct  8 16:00:57 1991  Per Bothner  (bothner at cygnus.com)
5461
5462         * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
5463         * ldtemplate: Remove ldfile_add_library_path calls;
5464         just use the SEARCH_DIR commands in the script files.
5465         * Makefile.in: Add LIB_PATH macro, which if set is used to replace
5466         the SEARCH_DIR commands in the scripts (using ugly sed magic).
5467         This is primarily intended for cross-linking, where you would
5468         place libaries in a different place than native libraries.
5469         Also, emulations made from ldtemplate now use $(srcdir).
5470         * ldglda29k.sc:  Change SEARCH_DIR commands to a conventional
5471         form; people can use the Makefile's LIB_PATH to override.
5472
5473 Tue Oct  8 14:51:21 1991  Roland H. Pesch  (pesch at cygnus.com)
5474
5475         * Makefile.in: fix target ld.dvi, add target ld.info
5476         ld.texinfo: make info filename ld.info
5477
5478 Fri Oct  4 21:51:58 1991  John Gilmore  (gnu at cygnus.com)
5479
5480         * Makefile.in:  Avoid using $< in non-suffix rules (breaks on Sun
5481         Make). 
5482         * ldfile.c, ldlang.c, ldmain.c, ldwrite.c:  Cope with renames of a
5483         few BFD types & enums.
5484
5485 \f
5486 Local Variables:
5487 mode: indented-text
5488 left-margin: 8
5489 fill-column: 74
5490 version-control: never
5491 End: