Requre that long options starting with 'o' only accept a double dash prefix.
[external/binutils.git] / ld / ChangeLog
1 2000-12-28  Nick Clifton  <nickc@redhat.com>
2
3         * lexsup.c (struct ld_option): Add new enum value:
4         EXACTLY_TWO_DASHES.
5         (ld_options[]): Change -omagic, -output and -oformat options
6         to be EXACTLY_TWO_DASHES.
7         (OUTPUT_COUNT): Use ARRAY_SIZE.
8         (parse_args): Change parameter 'argc' to unsigned.
9         Place EXACTLY_TWO_DASHES options into new really_longopts
10         array.
11         If getopt_long_only fails, try calling getopt_long using the
12         really_longopts array.
13         (help): Print a double dash for both EXACTLY_TWO_DASHES and
14         TWO_DASHES options.
15
16         * ldlex.h: Fix prototype of parse_args.
17
18         * ld.texinfo: Document that long options starting with 'o'
19         must be preceeded by two dashes.  Change example of a single
20         dashed long option from -oformat to -trace-symbol.
21
22 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
23
24         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
25         (longopts[]): New --no-default-excludes option.
26         (gld_${EMULATION_NAME}_list_options): Document.
27         (gld_${EMULATION_NAME}_parse_args): Handle.
28
29 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
30
31         * ldlang.c (new_stat): Revert the last beautification with "innocent"
32         whitespace, it breaks the K&R C preprocessor.
33
34 2000-12-11  DJ Delorie  <dj@redhat.com>
35
36         * ld.texinfo: Add notes about --whole-archive and gcc.
37
38 2000-11-18  Fred Fish  <fnf@be.com>
39
40         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
41         (ld_options): Entry for --allow-shlib-undefined.
42         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
43         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
44         to false.
45         * ld.texinfo: Document new command line switch.
46         
47 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
48
49         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
50         .fixup is actually read/write.
51         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
52         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
53         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
54
55 Mon Dec 11 14:50:33 MET 2000  Jan Hubicka  <jh@suse.cz>
56
57         * NEWS: Add note about x86_64 architecture.
58
59 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
60
61         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
62         Set DWARF2 sections to a VMA of zero.
63
64 2000-12-01      Joel Sherrill <joel@OARcorp.com>
65
66         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
67         New targets.
68         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
69         (sparc*-*-rtems*): Switched from a.out to ELF.
70
71 2000-11-30  Jan Hubicka  <jh@suse.cz>
72
73         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
74         (eelf_x86_64.c): New.
75         * Makefile.in: Regenerate.
76         * configure.tgt: Add support for x86_64-*-linux-gnu*.
77         * emulparams/elf_x86_64.sh: New.
78
79 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
80
81         * emulparams/crislinux.sh (ENTRY): Change back to _start.
82         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
83
84         * scripttempl/crisaout.sc: Change all RELOCATING not related to
85         merging non-a.out sections into CONSTRUCTING.
86
87 2000-11-28  Nick Clifton  <nickc@redhat.com>
88
89         * ld.1 (COPYING): Mention that the GNU Free Documentation
90         License is present in the sources, but not the output, and
91         also available from the GNU website.
92         (GNU Free Documentation License): Comment out this section.
93
94 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
95
96         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
97         does not use them.
98
99 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
100
101         * ld.1: Remove old date so it does not give the impression the manpage
102         is way out of date.
103
104 2000-11-24  Nick Clifton  <nickc@redhat.com>
105
106         * configure.tgt (xscale-coff): Add target.
107         (xscale-elf): Add target.
108
109 2000-11-24  Fred Fish  <fnf@be.com>
110
111         * ldmain.c (main): Remove redundant init of config.make_executable
112         to true.
113
114 2000-11-15  Richard Henderson  <rth@redhat.com>
115
116         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
117
118 2000-11-14  Kazu Hirata  <kazu@hxi.com>
119
120         * scripttempl/h8300.sc: Fix formatting.
121         * scripttempl/h8300h.sc: Likewise.
122         * scripttempl/h8300s.sc: Likewise.
123
124 Tue Nov 14 00:59:19 2000  Denis Chertykov  <denisc@overta.ru>
125
126         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
127
128 2000-11-09  Philip Blundell  <pb@futuretv.com>
129
130         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
131         around orphan sections whose names can be represented in C.
132
133 2000-11-07  Jim Wilson  <wilson@redhat.com>
134
135         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
136         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
137
138 2000-11-06  Nick Clifton  <nickc@redhat.com>
139
140         * ld.texinfo: Add GNU Free Documentation License.
141         * ldint.texinfo: Add GNU Free Documentation License.
142         * ld.1: Add GNU Free Documentation License.
143
144 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
145
146         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
147         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
148
149         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
150         Move 2000-11-02 Makefile.in changes to this file.
151         * Makefile.in: Regenerate.
152
153 2000-11-03  Nick Clifton  <nickc@redhat.com>
154
155         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
156         constructors and destructors.
157         * scripttempl/h8300h.sc: Ditto.
158         * scripttempl/h8300s.sc: Ditto.
159         * scripttempl/h8500.sc: Ditto.
160         * scripttempl/h8500b.sc: Ditto.
161         * scripttempl/h8500c.sc: Ditto.
162         * scripttempl/h8500m.sc: Ditto.
163         * scripttempl/h8500s.sc: Ditto.
164         * scripttempl/v850.sc: Ditto.
165         * scripttempl/w65.sc: Ditto.
166         * scripttempl/z8000.sc: Ditto.
167
168 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
169
170         * Makefile.in (e_i386_chaos.c): New rule.
171         (ALL_EMULATIONS): Added e_i386_chaos.o.
172         * emulparams/elf_i386_chaos.sh: New file.
173         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
174
175 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
176
177         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
178         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
179         Fix sed invocation, so that it coped with '/' in Solaris 64bit
180         library path suffix.
181         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
182
183 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
184
185         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
186         for consecutive sections.
187
188 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
189
190         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
191         options.
192         * ld.texinfo: Added notes about this new option.
193
194 2000-10-16  Nick Clifton  <nickc@redhat.com>
195
196         * emultempl/pe.em (_after_open): Add tests of return values from
197         bfd functions.  Emit appropriate error messages if necessary.
198
199 2000-10-13  Nick Clifton  <nickc@redhat.com>
200
201         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
202         local variables - they are not used, but leave in the call to
203         bfd_canonicalize_symtab.
204         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
205         pe_dll_search_prefix.
206
207 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
208   
209         * emultempl/pe.em (pe_dll_search_prefix): New variable,
210         (longopts): New --dll-search-prefix option.
211         (gld_${EMULATION_NAME}_list_options): Document.
212         (gld_${EMULATION_NAME}_parse_args): Handle.
213         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
214         dynamically, search for a dll named '<prefix><basename>.dll'
215         in preference to 'lib<basename>.dll' if --dll-search-prefix
216         is specified.
217
218 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
219
220         * ldlang.c (section_already_linked): Set kept_section instead of
221         sec->comdat->sec.
222
223 2000-10-10  Kazu Hirata  <kazu@hxi.com>
224
225         * deffile.h: Fix formatting.
226         * lexsup.c: Likewise.
227         * mri.c: Likewise.
228
229 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
230
231         * pe-dll.c (make_one): Do not generate code thunk for DATA
232         exports.
233         (process_def_file): deduce DATA flag for auto-export sumbols.
234
235 2000-10-09  Kazu Hirata  <kazu@hxi.com>
236
237         * ld.h: Fix formatting.
238         * ldcref.c: Likewise.
239         * ldctor.h: Likewise.
240         * ldemul.c: Likewise.
241         * ldemul.h: Likewise.
242         * ldexp.c: Likewise.
243         * ldexp.h: Likewise.
244         * ldfile.c: Likewise.
245         * ldfile.h: Likewise.
246         * ldlang.c: Likewise.
247         * ldlang.h: Likewise.
248         * ldmain.c: Likewise.
249         * pe-dll.c: Likewise.
250
251         * pe-dll.c: Revert some formatting fixes.
252
253 2000-10-08  Kazu Hirata  <kazu@hxi.com>
254
255         * pe-dll.c: Fix formatting.
256
257 2000-10-05  Kazu Hirata  <kazu@hxi.com>
258
259         * ldlang.c: Fix formatting.
260
261 2000-10-03  DJ Delorie  <dj@redhat.com>
262
263         * pe-dll.c (fill_edata): initialize entire block
264         (make_one): fill in correct section.
265
266 2000-10-03  Kazu Hirata  <kazu@hxi.com>
267
268         * ldexp.c: Fix formatting.
269
270 2000-10-02  DJ Delorie  <dj@redhat.com>
271
272         * emultempl/pe.em (gld_*_after_open): detect case where there two
273         import libraries for same dll; rename one to ensure proper link
274         order.
275
276         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
277         typo
278         (generate_edata): fix typo
279
280 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
281
282         * scripttempl/crisaout.sc (ENTRY): Now __start.
283         (.text): Add default setting for __start.
284         Remove CONSTRUCTORS handling.
285         (/DISCARD/): Add .gnu.warning.*.
286         * emulparams/crislinux.sh (ENTRY): Now __start.
287         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
288         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
289         (ENTRY): Now __start.
290         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
291         (EXECUTABLE_SYMBOLS): Add default setting for __start.
292
293 2000-09-29  Kazu Hirata  <kazu@hxi.com>
294
295         * deffile.h: Fix formatting.
296         * ld.h: Likewise.
297         * ldcref.c: Likewise.
298         * ldctor.c: Likewise.
299         * ldctor.h: Likewise.
300         * ldemul.c: Likewise.
301         * ldemul.h: Likewise.
302         * ldexp.c: Likewise.
303         * ldexp.h: Likewise.
304         * ldfile.c: Likewise.
305         * ldfile.h: Likewise.
306         * ldlang.c: Likewise.
307         * ldlang.h: Likewise.
308         * lexsup.c: Likewise.
309         * mri.c: Likewise.
310         * pe-dll.c: Likewise.
311
312 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
313
314         * pe-dll.c (process_def_file): Uninitialized data wasn't
315         exported with --export-all-symbols switch.
316         
317 2000-09-28  DJ Delorie  <dj@redhat.com>
318
319         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
320         noname work properly.
321
322 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
323
324         * ld.texinfo (HPPA ELF32): New section.
325
326         * emultempl/hppaelf.em (group_size): New.
327         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
328         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
329         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
330         options to prevent abbreviations matching.
331         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
332         (PARSE_AND_LIST_ARGS_CASES): Handle it.
333
334 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
335
336         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
337         on the m68*-*-elf target.  Make it support COFF input objects.
338
339 2000-09-21  Kazu Hirata  <kazu@hxi.com>
340
341         * ldmain.c: Fix formatting.
342         * ldmisc.c: Likewise.
343         * ldver.c: Likewise.
344         * ldwrite.c: Likewise.
345
346 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
347
348         * ldwrite.c (clone_section): Silence gcc warnings.
349
350 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
351
352         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
353         out of memory failure.
354
355         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
356         (clone_section): Handle out of memory failures.  Rename var to
357         avoid c++ reserved word.
358
359 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
360
361         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
362         stub_name param to stub_sec_name.
363         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
364
365 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
366
367         * emultempl/m68kelf.em: New file.
368         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
369         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
370         * Makefile.in: Regenerate.
371
372 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
373
374         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
375         only as needed.
376
377 2000-09-13  Nick Clifton  <nickc@redhat.com>
378
379         * ldmain.c (multiple_definition): Disable relaxation if
380         multiple symbol definitions are encountered - otherwise the
381         linker could abort with an assertion failure.
382
383 2000-09-10  Nick Clifton  <nickc@redhat.com>
384
385         * mri.c: Fix formatting.
386
387 2000-09-07  H.J. Lu  <hjl@gnu.org>
388
389         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
390         * configure: Rebuild.
391
392 2000-09-07  H.J. Lu  <hjl@gnu.org>
393
394         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
395         * Makefile.in: Rebuild.
396
397 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
398
399         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
400         broken list handling.  Create __start_SECNAME and __stop_SECNAME
401         when no place-holder.  Add some comments.  Test both SEC_CODE and
402         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
403         Handle case where no output section statement created.
404
405 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
406
407         * configure.tgt (sh-*-linux*): Added.
408         * Makefile.am: Added eshelf_linux and eshlelf_linux.
409         * Makefile.in: Rebuilt.
410         * emulparams/shelf_linux.sh: New file.
411         * emulparams/shlelf_linux.sh: New file.
412
413 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
414
415         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
416         try shuffling sections when the orphan happens to be the place
417         holder.  Keep count of unique section names generated so we speed
418         the search for a new name.
419
420 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
421
422         * configure: Rebuilt with new libtool.m4.
423
424 2000-09-05  Nick Clifton  <nickc@redhat.com>
425
426         * Makefile.in: Regenerate.
427         * aclocal.m4: Regenerate.
428         * configure: Regenerate.
429         * config.in: Regenerate.
430         * po/ld.pot: Regenerate.
431
432         * ldint.texinfo: Remove CVS revision marker - it foils local
433         comparisons.
434
435         * emultempl/ticoff.em: Remove extraneous comma.
436
437 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
438
439         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
440         to stub section flags.
441         (hppa_for_each_input_file_wrapper): New.
442         (hppa_lang_for_each_input_file): New.
443         (lang_for_each_input_file): Define to call above.
444         (multi_subspace): New.
445         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
446         (PARSE_AND_LIST_PROLOGUE): Define.
447         (PARSE_AND_LIST_LONGOPTS): Define.
448         (PARSE_AND_LIST_OPTIONS): Define.
449         (PARSE_AND_LIST_ARGS_CASES): Define.
450         (hppaelf_finish): Call elf32_hppa_set_gp.
451         (hppaelf_set_output_arch): Remove.
452         (LDEMUL_SET_OUTPUT_ARCH): Remove.
453
454         * emulparams/hppalinux.sh (ELFSIZE): Define.
455         (MACHINE): Define.
456         (OTHER_READONLY_SECTIONS): Define.
457         (DATA_PLT): Define.
458         (GENERATE_SHLIB_SCRIPT): Define.
459
460         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
461         to const throughout.  Change `void *' to `PTR' throughout.
462         (lang_memory_default): Function is local to file, add `static'.
463
464         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
465         (ehppalinux.c): Likewise.
466         (earmelf.c): Likewise.
467         (earmelf_linux.c): Likewise.
468         (earmelf_linux26.c): Likewise.
469         * Makefile.in: Regenerate.
470
471         * ld.h (ld_config_type): Add unique_orphan_sections.
472         * lexsup.c (OPTION_UNIQUE): Define.
473         (ld_options): Add "--unique".
474         (parse_args): Handle it.
475         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
476         search for an existing output section if unique_orphan_sections is
477         set.  Make use of bfd_get_unique_section_name rather than
478         duplicating code here.
479         * ld.texinfo: Describe --unique.
480
481         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
482         optional arg to split-by-file.
483         (parse_args): Handle them.
484         * ld.texinfo: Update description of these options.
485         * ldwrite.c (clone_section): Pass in the section name.  Replace
486         local code with bfd_get_unique_section_name.
487         (split_sections): Tidy code and comments.  Use a list traversal
488         more appropriate to the list construction.  Handle cooked section
489         sizes.  Split when split_by_reloc reached rather than exceeded.
490         Track section size and split when split_by_file reached.  Fix
491         link_order_tail (even though it's not used).
492         (ldwrite): Modify condition for calling split_sections to suit
493         changed split_by_reloc and split_by_file.
494         * ldmain.c (main): Init config.split_by_reloc and
495         config.split_by_file to -1.
496         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
497         Change split_by_file to bfd_size_type.
498
499 2000-09-02  Nick Clifton  <nickc@redhat.com>
500
501         * configure.in: Increase version number to 2.10.91.
502         * NEWS: Mention new ability to support removal of duplicate DWARF2
503         debug information.
504         * configure: Regenerate.
505         * aclocal.m4: Regenerate.
506         * config.in: Regenerate.
507
508 2000-09-02  Daniel Berlin <dberlin@redhat.com>
509
510         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
511         sections.
512         * scripttempl/elf32var.sc: Ditto.
513         * scripttempl/elfd10v.sc: Ditto.
514         * scripttempl/elfd30v.sc: Ditto.
515         * scripttempl/elfi370.sc: Ditto.
516         * scripttempl/elfm68hc11.sc: Ditto.
517         * scripttempl/elfm68hc12.sc: Ditto.
518         * scripttempl/elfi386beos.sc: Ditto.
519         * scripttempl/v850.sc: Ditto.
520
521 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
522
523         * acinclude.m4: Include libtool and gettext macros from the
524         top level.
525         * aclocal.m4, configure: Rebuilt.
526
527 2000-08-25  Nick Clifton  <nickc@redhat.com>
528
529         * ldlang.c (open_output): When choosing the target for a
530         particular endianness, do nothing if the target is not
531         supported.
532
533 2000-08-25  H.J. Lu  <hjl@gnu.org>
534
535         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
536         check -rpath nor LD_RUN_PATH for cross link.
537         * ld.texinfo: Document the change.
538
539 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
540
541         * NEWS: Mention support for CRIS.
542
543 2000-08-23  H.J. Lu  <hjl@gnu.org>
544
545         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
546         the current runpath list from bfd_elf_get_runpath_list ()
547         before search.
548
549 2000-08-22  H.J. Lu  <hjl@gnu.org>
550
551         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
552         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
553         LD_LIBRARY_PATH for native linker. Display the needed DSO if
554         trace_file_tries is non-zero.
555         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
556         if trace_file_tries is non-zero.
557
558         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
559         * NEWS: Mention it.
560
561 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
562
563         * NEWS: Mention i860 support.
564
565 2000-08-14  Andreas Schwab  <schwab@suse.de>
566
567         * scripttempl/elf.sc: Fix last change to use correct comment
568         syntax.
569
570 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
571
572         * scripttempl/elf.sc: Add a comment giving the correspondence
573         between sections, per-datum sections, and linkonce sections.  Make
574         the comment true even for .bss, .sdata, .sdata2, .sbss, and
575         .sbss2.
576
577 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
578
579         * emulparams/elf32_i860.sh: New file.
580         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
581         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
582         (eelf32_i860.c): New rule.
583         * Makefile.in: Regenerate.
584
585 2000-08-10  Nick Clifton  <nickc@cygnus.com>
586
587         * emulparams/mipspe.sh (ENTRY): Add definition.
588
589 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
590
591         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
592         in error message.
593
594 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
595
596         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
597         the final size of .bss section.
598         * scripttempl/elfm68hc12.sc: Likewise.
599
600 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
601
602         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
603         gld${EMULATION_NAME}_parse_args for consistency.  Combine
604         lastoptind and prevoptind vars, and keep track of last optind.
605         (gld_${EMULATION_NAME}_list_options): Rename to
606         gld${EMULATION_NAME}_list_options.
607
608 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
609
610         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
611         (i586-sco-sysv5uw7.1.0).
612
613 2000-07-27  H.J. Lu  <hjl@gnu.org>
614
615         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
616         (PARSE_AND_LIST_PROLOGUE): New.
617         (PARSE_AND_LIST_LONGOPTS): Likewise.
618         (PARSE_AND_LIST_OPTIONS): Likewise.
619         (PARSE_AND_LIST_ARGS_CASES): Likewise.
620         (PARSE_AND_LIST_EPILOGUE): Likewise.
621
622 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
623
624         * emultempl/armelf.em: Elide functions common to elf32.em,
625         ie. most of the file.
626         (arm_elf_after_open): New.  Do arm specific things then call
627         gld${EMULATION_NAME}_after_open.
628         (arm_elf_before_allocation): New.  Call
629         gld${EMULATION_NAME}_before_allocation then do arm specifics.
630         (PARSE_AND_LIST_PROLOGUE): Define.
631         (PARSE_AND_LIST_SHORTOPTS): Define.
632         (PARSE_AND_LIST_LONGOPTS): Define.
633         (PARSE_AND_LIST_OPTIONS): Define.
634         (PARSE_AND_LIST_ARGS_CASES): Define.
635         (LDEMUL_AFTER_OPEN): Define.
636         (LDEMUL_BEFORE_ALLOCATION): Define.
637         (LDEMUL_BEFORE_PARSE): Define.
638         (LDEMUL_FINISH): Define.
639
640         * emultempl/hppaelf.em: Similarly zap most of this file.
641         (hppaelf_add_stub_section): Prototype.
642         (hppaelf_layaout_sections_again): Prototype.
643         (hook_in_stub): Prototype.
644         (LDEMUL_SET_OUTPUT_ARCH): Define.
645         (LDEMUL_FINISH): Define.
646         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
647
648         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
649         (EXTRA_EM_FILE): New.
650         * emulparams/armelf_linux.sh: Likewise.
651         * emulparams/armelf_linux26.sh: Likewise.
652         * emulparams/hppalinux.sh: Likewise.
653         * emulparams/hppaelf.sh: Likewise.
654         (NOP): Define.
655
656         * emultempl/elf32.em: Fix formatting.
657         (EXTRA_EM_FILE): Source it.
658         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
659         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
660         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
661         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
662         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
663         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
664         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
665         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
666         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
667         allow functions in this file to be overridden.
668         (PARSE_AND_LIST_SHORTOPTS): Handle it.
669
670         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
671
672         * emultempl/elf32.em: Reorganize file.
673
674 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
675
676         * emulparams/elf64alpha.sh: Implement "-taso" emulation
677         specific option to fit 64-bit executable in the lower
678         31-bit address range.  This is done by changing start
679         address of .interp (the very first section of executable)
680         and then setting EF_ALPHA_32BIT elf header flag.
681
682 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
683
684         * emultempl/m68kcoff.em: New file.
685         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
686         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
687         generic.em.
688         * Makefile.in: Regenerate.
689
690 2000-07-20  H.J. Lu  <hjl@gnu.org>
691
692         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
693         and "disable-new-dtags" to stop getopt from treating -d/-e as
694         abbreviations for these options.
695
696 2000-07-20  H.J. Lu  <hjl@gnu.org>
697
698         * ld.texinfo: Add documentation for --disable-new-dtags and
699         --enable-new-dtags.
700
701         * ldmain.c (main): Initialize link_info.new_dtags to false.
702
703         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
704         --disable-new-dtags and --enable-new-dtags.
705         (gld_${EMULATION_NAME}_list_options): Likewise.
706
707 2000-07-05  Kenneth Block  <krblock@computer.org>
708
709         * ld/lexsup.c: Add optional style to demangle switch
710         * ld/ld.texinfo: Document optional style to demangle switch.
711
712 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
713
714         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
715         ecrislinux.o.
716         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
717         Regenerate dependencies.
718         * Makefile.in: Rebuild.
719         * configure.tgt (cris-*-*): New target.
720         * emulparams/crisaout.sh, emulparams/criself.sh,
721         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
722         * po/POTFILES.in, po/ld.pot: Regenerate.
723
724 2000-07-20  H.J. Lu  <hjl@gnu.org>
725
726         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
727         Print out ignored -z options.
728
729 2000-07-19  H.J. Lu  <hjl@gnu.org>
730
731         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
732         (PARSE_AND_LIST_PROLOGUE): New.
733         (PARSE_AND_LIST_LONGOPTS): Likewise.
734         (PARSE_AND_LIST_OPTIONS): Likewise.
735         (PARSE_AND_LIST_ARGS_CASES): Likewise.
736
737         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
738
739         * lexsup.c (ld_options): Comment out 'z'.
740         (parse_args): Likewise.
741
742         * emultempl/elf32.em: Include "elf/common.h".
743         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
744         options.
745         (gld_${EMULATION_NAME}_list_options): Likewise.
746
747         * ld.texinfo: Add documentation for the recognized -z options.
748
749 2000-07-19  H.J. Lu  <hjl@gnu.org>
750
751         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
752         bfd_elf_set_dt_needed_soname ().
753
754 2000-07-18  DJ Delorie  <dj@cygnus.com>
755
756         * pe-dll.c (pe_dll_id_target): check object target name also
757
758 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
759
760         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
761         ${INIT_END} if relocating.
762         (.fini): Likewise ${FINI_START} and ${FINI_END}.
763
764 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
765
766         * src/ld/emultempl/pe.em (gld_*_open_dynamic_archive): New search
767         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
768         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
769         errors introduced by the old dynamic lib search order.
770
771 2000-07-17  DJ Delorie  <dj@cygnus.com>
772
773         * pe-dll.c (process_def_file): auto-export data items also
774         (pe_process_import_defs): also see if _imp_ form needed
775
776 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
777
778         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
779         for dll import libraries
780
781 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
782
783         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
784           gcc 2.95.2 and later.
785
786 2000-07-11  Kazu Hirata  <kazu@hxi.com>
787
788         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
789         message.
790
791 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
792
793         * ldemul.h (struct lang_input_statement_struct): Remove forward
794         declaration.
795         (struct search_dirs): Likewise.
796         * ldfile.h (struct lang_input_statement_struct): Likewise.
797         Protect file from multiple inclusion.
798         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
799         declaration from macro to file scope.
800
801         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
802         * ldgram.y: Likewise here.
803         * ldlang.c: And here.
804         * ldmain.c: And here.
805         * mpw-elfmips.c: And here.
806         * mpw-eppcmac.c: And here.
807         * emultempl/aix.em: And here.
808         * emultempl/armcoff.em: And here.
809         * emultempl/armelf.em: And here.
810         * emultempl/armelf_oabi.em: And here.
811         * emultempl/beos.em: And here.
812         * emultempl/elf32.em: And here.
813         * emultempl/hppaelf.em: And here.
814         * emultempl/linux.em: And here.
815         * emultempl/lnk960.em: And here.
816         * emultempl/pe.em: And here.
817         * emultempl/sunos.em: And here.
818         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
819         * mpw-idtmips.c: Ditto.
820         * emultempl/generic.em: Ditto.
821         * emultempl/gld960.em: Ditto.
822         * emultempl/gld960c.em: Ditto.
823         * emultempl/mipsecoff.em: Ditto.
824         * emultempl/ticoff.em: Ditto.
825         * emultempl/vanilla.em: Ditto.
826
827         * pe-dll.c: Include ldfile.h
828         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
829
830         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
831         arguments to bfd_elf32_size_dynamic_sections call.
832         (gldelf32ebmip_place_orphan): Add missing arguments to
833         lang_leave_output_section_statement call.
834
835 2000-07-10  H.J. Lu  <hjl@gnu.org>
836
837         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
838         DLL_SUPPORT.
839         (strhash): Likewise.
840         (compute_dll_image_base): Likewise.
841         (pe_undef_found_sym): Likewise.
842         (pe_undef_cdecl_match): Likewise.
843         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
844         argument "arch" with ATTRIBUTE_UNUSED.
845
846 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
847
848         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
849
850         From  Ryan Bradetich  <rbradetich@uswest.net>
851         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
852
853 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
854
855         Changes to create multiple linker stubs, positioned immediately
856         before the section where they are required.
857         * emultempl/hppaelf.em: Include elf32-hppa.h.
858         (stub_sec, file_chain): Delete.
859         (hppaelf_create_output_section_statements): Don't make a stub
860         section here.
861         (hook_stub_info): New struct.
862         (hook_in_stub): New function.
863         (hppaelf_add_stub_section): New function.
864         (hppaelf_finish): Do nothing for relocateable links.  Modify the
865         call to elf32_hppa_size_stubs.  Move code for updating section
866         layout from here...
867         (hppaelf_layaout_sections_again): ..to here, a new function.
868
869         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
870         broken list handling.  Pass in a pointer to the list.
871         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
872         for above changes.
873         (hppaelf_before_parse): Prototype.
874         (hppaelf_set_output_arch): Prototype.
875         (hppaelf_create_output_section_statements): Prototype.
876         (hppaelf_delete_padding_statements): Prototype.
877         (hppaelf_finish): Prototype.
878
879         Merge from elf32.em
880         * emultempl/hppaelf.em: Include ctype.h.
881         (struct orphan_save): New.
882         (gld${EMULATION_NAME}_place_orphan): New.
883         (output_rel_find): New.
884         (hppaelf_get_script): Update from elf32.em.
885         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
886         Change emulation_name field to "${EMULATION_NAME}".  Add
887         gld${EMULATION_NAME}_place_orphan.
888
889         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
890         ehppalinux.o, sort it.  Regenerate dependencies.
891         (ehppalinux.c): Depend on hppaelf.em
892         * Makefile.in: Regenerate.
893
894         * configure.tgt: targ_emul=hppalinux for hppa*linux
895
896         * emulparams/hppalinux.sh: New.
897         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
898
899 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
900
901         * lexsup.c (parse_args): Copy section name.
902
903 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
904
905         * emultempl/pe.em: institute the following search order for
906         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
907         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
908         static lib (libfoo.a) if none of the above are found.
909
910 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
911
912         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
913         (longopts): New --{enable,disable}-auto-image-base options.
914         (gld_${EMULATION_NAME}_list_options): Document.
915         (gld_${EMULATION_NAME}_parse): Handle.
916         (strhash): New static function.
917         (compute_dll_image_base): New static function.
918         (gld_${EMULATION_NAME}_set_symbols): Use.
919
920 2000-07-05  DJ Delorie  <dj@redhat.com>
921
922         * MAINTAINERS: new
923
924 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
925
926         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
927         * emulparams/elf32btsmip.sh: New file.
928         * Makefile.am: Add traditional mips target.
929         * Makefile.in: Rebuild.
930
931 2000-07-01  H.J. Lu  <hjl@gnu.org>
932
933         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
934         automake to use YLWRAP.
935         * Makefile.in: Rebuild.
936
937 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
938
939         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
940         (CLEANFILES): Add DEPA.
941         * Makefile.in: Regenerate.
942
943 2000-06-30  Timothy Wall  <twall@ppc>
944
945         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
946         the page in the upper octet of the address.
947
948 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
949
950         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
951
952 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
953
954         * NEWS: arm-elf does --gc-sections too.
955
956 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
957
958         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
959         find one.
960         * Makefile.in: Regenerate.
961
962 2000-06-21  H.J. Lu  <hjl@gnu.org>
963
964         * Makefile.am: Rebuild dependency.
965         * Makefile.in: Rebuild.
966
967 2000-06-20  H.J. Lu  <hjl@gnu.org>
968
969         * Makefile.am: Rebuild dependency.
970         * Makefile.in: Rebuild.
971
972 2000-06-20  Timothy Wall  <twall@cygnus.com>
973
974         * scripttempl/tic54xcoff.sc: New.
975         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
976         * gen-doc.texi: Add flag for TI COFF.
977         * ld.texinfo: Add documentation for TI COFF handling switches.
978         * emultempl/ticoff.em: New. TI COFF handling.
979         * configure.tgt: Add tic54x target.
980         * Makefile.am: Add tic54x target.
981         * Makefile.in: Ditto.
982
983 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
984
985         * ldmain.c (set_scripts_dir): Correct pointer comparison when
986         checking for backslashes.
987
988 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
989
990         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
991
992 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
993
994         * NEWS: Update list of targets supporting --gc-sections.
995
996         * scripttempl/elf.sc: KEEP .eh_frame contents.
997         * scripttempl/elfd30v.sc: Same here.
998
999 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
1000
1001         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1002         and m68hc11 (elf).
1003         * Makefile.in: Rebuild.
1004         * configure.tgt: Recognize m68hc12 and m68hc11.
1005         * scripttempl/elfm68hc12.sc: New file.
1006         * emulparams/m68hc12elfb: New emulation.
1007         * emulparams/m68hc12elf: New emulation.
1008         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
1009         (includes a memory.x script to define the ROM and RAM banks).
1010         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1011         New configuration files for support of Motorola 68hc11
1012
1013 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
1014
1015         * ldmain.c (main): Only change SEC_READONLY for final link.
1016
1017 2000-06-13  H.J. Lu  <hjl@gnu.org>
1018
1019         * configure: Regenerate.
1020
1021 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
1022
1023         * configure.in (VERSION): Update to show this is the CVS mainline.
1024
1025 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1026
1027         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1028         input objects to be ECOFF.
1029         (check_sections): einfo takes %B, not %P, to print a BFD name.
1030
1031 2000-06-05  Michael Matz <matz@ifh.de>
1032
1033         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1034          version scripts.
1035
1036          * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1037
1038 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
1039
1040         * emulparams/avr1200.sh (STACK): Define as 0.
1041         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1042         * emulparams/avr4433.sh (STACK): Likewise.
1043         * emulparams/avr44x4.sh (STACK): Likewise.
1044         * emulparams/avr85xx.sh (STACK): Likewise.
1045         * emulparams/avrmega103.sh (STACK): Likewise.
1046         * emulparams/avrmega161.sh (STACK): Likewise.
1047         * emulparams/avrmega603.sh (STACK): Likewise.
1048         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1049         (__stack): Define from ${STACK} for main().
1050
1051 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
1052
1053         * Makefile.am: Update dependencies with "make dep-am"
1054         * Makefile.in: Regenerate.
1055
1056 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
1057
1058         * ldmain.c: Include filenames.h.
1059         (set_scripts_dir): Support backslashes in program name.
1060
1061 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
1062
1063         * ldmain.c (main): When deciding if ".text" section should be
1064         read-only, don't forget to reset SEC_READONLY because it
1065         could be already set.
1066
1067 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
1068
1069         * ld.1: Add documentation for new command line option:
1070                 --section-start <sectionname>=<sectionorg>
1071         This is a generic version of -Ttext etc. which accepts
1072         any section name as a parameter instead of just text/data/
1073         bss.
1074         * ld.texinfo: More docs.
1075         * NEWS: More docs.
1076         * lexsup.c: (parse_args): Recognize new command line option.
1077         (ld_options): Add new option.
1078
1079 2000-05-18  H.J. Lu  <hjl@gnu.org>
1080
1081         * lexsup.c (parse_args): `i' == `r', not `q'.
1082
1083 Thu May 18 10:47:57 2000  Jeffrey A Law  (law@cygnus.com)
1084
1085         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1086
1087 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
1088               Rick Gorton          <gorton@scrugs.lkg.dec.com>
1089
1090         Add support for '-q' == '--emit-relocs' switch.
1091         * ldmain.c (main): Default to false.
1092         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1093         * NEWS: Describe the emitrelocations switch.
1094         * ld.texinfo: Describe the emitrelocations switch.
1095
1096 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
1097
1098         * ld/emultempl/pe.em (_open_dynamic_archive): New function: Search
1099         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1100         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1101         link options.
1102
1103 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
1104
1105         * lexsup.c (parse_args): Update the year in the copyright notice.
1106
1107 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
1108
1109         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1110         Replace defines with those from intl/libgettext.h to quieten gcc
1111         warnings.
1112
1113 2000-05-10  H.J. Lu  <hjl@gnu.org>
1114
1115         * ldlang.c (open_input_bfds): Don't load the same file within
1116         a group again if the whole archive has been loaded already.
1117
1118 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
1119
1120         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1121         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1122         strtoul.
1123
1124 Mon May  1 17:34:34 2000  Jim Wilson  <wilson@cygnus.com>
1125
1126         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1127
1128         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1129         host "ia64-*-linux-gnu*".
1130
1131 2000-04-29  Andreas Jaeger  <aj@suse.de>
1132
1133         * ld.h: Correctly check GCC version.
1134
1135 Tue Apr 25 11:20:43 2000  Jeffrey A Law  (law@cygnus.com)
1136
1137         * Makefile.am: Add PA64 support.  Add missing dependencies for
1138         PA32 elf support.
1139         * Makefile.in: Rebuilt.
1140         * configure.tgt: Add PA64 support (currently disabled).
1141
1142 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
1143
1144         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1145         (output_rel_find): New function.
1146         (hold_section, hold_use): Delete.
1147         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1148         hold_interp): Make local to place_orphan.
1149         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1150         rather than place_section to find possible previous use of orphan.
1151         Similarly find the place-holder output sections.  Use returned
1152         value from lang_enter_output_section_statement rather than calling
1153         lang_output_section_statement_lookup.
1154         * emultempl/armelf.em: Same here.
1155         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1156
1157         * ldlang.c (lang_enter_output_section_statement): Return output
1158         section statement.
1159         * ldlang.h (lang_enter_output_section_statement): Change
1160         declaration too.
1161
1162         * ldlang.h (lang_output_section_statement): Export it.
1163         * ldlang.c (lang_output_section_statement): Ditto.
1164
1165 2000-04-24  Nick Clifton  <nickc@cygnus.com>
1166
1167         * ld.texinfo (Output Section Data): Add note that section data
1168         commands cannot appear outside of section directives.
1169
1170 2000-04-2  Matthew Green  <mrg@cygnus.com>
1171
1172         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1173
1174 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
1175                           David Mosberger  <davidm@hpl.hp.com>
1176
1177         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1178         (eelf64_ia64.c): New rule.
1179         * Makefile.in: Rebuild.
1180         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1181         * emulparams/elf64_ia64.sh: New file.
1182
1183 2000-04-21  Richard Henderson  <rth@cygnus.com>
1184
1185         * scripttempl/elfd30v.sc: Place .gcc_except_table.
1186
1187 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
1188
1189         * dep-in.sed: Match space at start of file name, not at end.
1190
1191 2000-04-18  H.J. Lu  <hjl@gnu.org>
1192
1193         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1194         lang_leave_output_section_statement () after calling
1195         lang_enter_output_section_statement ().
1196         * emultempl/armelf.em: Likewise.
1197
1198 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
1199
1200         * emultempl/elf32.em (struct orphan_save): Add section field.
1201         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1202         better order, and place first orphan section as we did before the
1203         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
1204         Don't call make_bfd_section here, let wild_doit do the job for us.
1205         Don't build a statement list when we'll only throw it away.
1206         * emultempl/armelf.em: Ditto.
1207         * emultempl/pe.em: Similarly.
1208
1209 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
1210
1211         * scripttempl/elfppc.sc: Remove.
1212         * emulparams/elf32ppc.sh: Use elf.sc.
1213         * emulparams/elf32lppc.sh: Use elf.sc.
1214         * emulparams/elf32ppclinux.sh: Use elf.sc.
1215         * emulparams/elf32ppcsim.sh: New file.
1216         * emulparams/elf32lppcsim.sh: New file.
1217         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
1218         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1219         * Makefile.in: Regenerate.
1220         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1221
1222 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
1223
1224         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1225         ~SEC_ALLOC sections too.  Init start address of debug sections.
1226         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1227         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1228         Also set all relocateable section start addresses.
1229
1230 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
1231
1232         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1233         Add new BSS_PLT variable for when .plt need not be contained in
1234         the file.  Move _etext so that it is also after .fini, and provide
1235         both etext and _etext with a leading underscore.  Mark the start
1236         and end of .sbss.
1237
1238 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
1239
1240         * emultempl/elf32.em (struct orphan_save): New.
1241         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1242         hold_interp): Make them struct orphan_save.
1243         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1244         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1245         the end of the relevant section list.  Also add associated section
1246         statements to the end of any previous orphan statements.
1247         * emultempl/armelf.em: Similarly.
1248         * emultempl/pe.em: Similarly.
1249
1250 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
1251
1252         * ld.texinfo (Simple Example): Remove extraneous paragraph.
1253
1254 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1255
1256         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
1257         --enable-build-warnings option.
1258         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1259         * Makefile.in, configure: Re-generate.
1260
1261 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
1262
1263         * po/ld.pot: Regenerate.
1264
1265         * lexsup.c (help): Restore translated part of bug string.
1266
1267         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1268         (DEP): Quote when passing vars to sub-make.  Add warning message
1269         to end.
1270         (DEP1): Rewrite for "gcc -MM".
1271         (CLEANFILES): Add DEP2.
1272         Update dependencies.
1273         * Makefile.in: Regenerate.
1274
1275 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
1276
1277         * ld.h: #include "bin-bugs.h"
1278         * lexsup.c (help): Use REPORT_BUGS_TO.
1279
1280 2000-03-27  Denis Chertykov  <denisc@overta.ru>
1281
1282         * configure.tgt (avr-*-*): New target support.
1283         * Makefile.am: Likewise.
1284         * scripttempl/elf32avr.sc: New script file.
1285         * emulparams/avr1200.sh: New file.
1286         * emulparams/avr23xx.sh: New file.
1287         * emulparams/avr4433.sh New file.
1288         * emulparams/avr44x4.sh New file.
1289         * emulparams/avr85xx.sh New file.
1290         * emulparams/avrmega103.sh New file.
1291         * emulparams/avrmega161.sh New file.
1292         * emulparams/avrmega603.sh New file.
1293         * Makefile.in: Regenerate.
1294
1295 2000-03-09  Andreas Jaeger  <aj@suse.de>
1296
1297         * Makefile.am (check-DEJAGNU): Also unset LANG.
1298         * Makefile.in: Rebuild.
1299
1300 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
1301
1302         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1303         archive.
1304
1305 2000-03-02  H.J. Lu  <hjl@gnu.org>
1306
1307         * emulparams/elf32mcore.sh: Include "getopt.h".
1308
1309 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
1310
1311         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1312
1313 2000-03-01  H.J. Lu  <hjl@gnu.org>
1314
1315         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1316         * emulparams/shpe.sh: Likewise.
1317
1318 2000-03-01  Nick Clifton  <nickc@cygnus.com>
1319
1320         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1321         to unused parameters.
1322
1323         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1324         functions only used by DLL code.
1325         (_place_orphan): Initialise 'dollar'.
1326
1327 2000-03-01  H.J. Lu  <hjl@gnu.org>
1328
1329         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1330         indicate if the undefined symbol is a fatal error or not.
1331         Don't delete the output file if "fatal" is false.
1332
1333 2000-02-29  H.J. Lu  <hjl@gnu.org>
1334
1335         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1336         Set LC_COLLATE and LC_ALL to null and export them. It is for
1337         sort which expects the C locale.
1338         Add $(LIBS) to all $(HOSTING_LIBS).
1339         * Makefile.in: Rebuild.
1340
1341 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
1342
1343         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1344         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1345         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1346         (ld_emulation_xfer_struct): Add missing NULL initialiser for
1347         find_potential_libraries.
1348
1349 2000-02-28  Jim Blandy  <jimb@redhat.com>
1350
1351         * ldgram.y (exclude_name_list): Don't require a comma to separate
1352         list entries; the lexer considers commas to be valid part of a
1353         filename, so in something like `foo, bar' the comma is considered
1354         part of the first filename, `foo,'.
1355         * ld.texinfo: Update section on EXCLUDE_FILE lists.
1356
1357 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
1358
1359         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1360         host "i[3456]86-*-freebsdelf*".
1361
1362 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
1363
1364         * scripttempl/i386go32.sc: Move misplaced semicolons.
1365
1366 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
1367
1368         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1369         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1370         (eelf64hppa.c, ehppaelf.c): Remove targets.
1371         * Makefile.in: Rebuild.
1372
1373 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
1374
1375         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1376         GNU/Linux/sparc, but keep the default as 32.
1377
1378         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
1379         it default if sparcv9 or sparc64.
1380
1381 2000-02-24  Nick Clifton  <nickc@cygnus.com>
1382
1383         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1384         * Makefile.in: Regenerate.
1385         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1386
1387         * ldemul.h (ld_emulation_xfer_struct): Add new field:
1388         find_potential_libraries.
1389         * ldemul.c (ldemul_find_potential_libraries): New function.
1390
1391         * ldfile.c (ldfile_open_file_search): Allow function to be
1392         exported.
1393         (ldfile_open_file): Call ldemul_find_potential_libraries.
1394         * ldfile.h: Add prototype for ldfile_open_file_search.
1395
1396         * pe-dll.c: Add support for ARM, MIPS and SH targets.
1397
1398         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
1399         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
1400
1401         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1402         (gld_X_find_potential_libraries): New function.  Search for
1403         libraries called "*.lib".
1404
1405         * scriptempl/pe.sc: Add .pdata section.
1406
1407 2000-02-23  Richard Henderson  <rth@cygnus.com>
1408
1409         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1410         Add and use memory regions.
1411
1412 2000-02-23  Linas Vepstas (linas@linas.org)
1413
1414         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1415
1416         * Makefile.am: Add support for Linux/IBM 370.
1417         * configure.tgt: Likewise.
1418
1419         * Makefile.in: Regenerate.
1420
1421 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
1422
1423         * ldlang.c (print_input_section, print_data_statement,
1424         print_reloc_statement, print_padding_statement, insert_pad,
1425         size_input_section, lang_check_section_addresses,
1426         lang_size_sections, lang_do_assignments, lang_set_startof,
1427         lang_one_common): Change `opb' to unsigned.
1428         (lang_do_assignments): Also change `size' to unsigned.
1429
1430 2000-02-16  Richard Henderson  <rth@cygnus.com>
1431
1432         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1433
1434 2000-02-16  Timothy Wall  <twall@cygnus.com>
1435
1436         * mri.c (mri_draw_tree): Add default LMA region argument to call
1437         to lang_leave_output_section_statement.
1438         * ldlang.h: Update prototypes with LMA region arguments.
1439         * ldlang.c (lang_size_sections): Encapsulate region bounds
1440         checking in os_check_region call.
1441         (os_check_region): New function.
1442         (lang_output_section_statement_lookup): Initialize lma_region.
1443         (lang_leave_output_section_statement): Add LMA region argument.
1444         (lang_leave_overlay): Ditto.
1445         * ldgram.y: Handle LMA region syntax.
1446         * ld.texinfo (Output Section Description): Describe LMA region usage.
1447         * emultempl/armelf.em (gld$place_orphan): Add default value for
1448         lma region in call to lang_leave_output_section_statement.
1449         * emultempl/elf32.em (gld$place_orphan): Add default value for
1450         lma region in call to lang_leave_output_section_statement.
1451         * emultempl/pe.em (gld$place_orphan): Add default value for
1452         lma region in call to lang_leave_output_section_statement.
1453
1454
1455 2000-02-04  Timothy Wall  <twall@redhat.com>
1456
1457         * ldlang.c (lang_check_section_addresses): Use bytes instead of
1458         octets when calculating section end addresses.
1459
1460 2000-02-04  Timothy Wall  <twall@redhat.com>
1461
1462         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
1463
1464 2000-02-03  Timothy Wall <twall@redhat.com>
1465
1466         * ld/ldexp.c (fold_name): Make SIZEOF operator return byte count, not
1467         octet count.
1468         * ld/ldlang.c (print_input_section, print_data_statement,
1469         print_reloc_statement, print_padding_statement): Print target
1470         address values and section sizes as bytes, not octets.
1471         (insert_pad) Calculate padding size in octets, and adjust "dot"
1472         by bytes.
1473         (size_input_section) Always adjust "dot" by bytes, not octets.
1474         (lang_check_section_addresses, lang_do_assignments) Adjust
1475         "dot" by bytes, not octets.  Use the larger of the directive size
1476         or octets_per_byte for the number of octets actually allocated in
1477         the output section.
1478         (lang_set_startof) Make sure STARTOF returns a target address.
1479         (lang_one_common) Record size changes in octets.
1480         (lang_abs_symbol_at_end_of) Section end symbol's value is
1481         recorded in target bytes.
1482         * ld.texinfo:   Updated description of BYTE, SHORT, LONG, etc.
1483         to be clear about behavior when an octet is smaller than one byte.
1484
1485 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
1486
1487         * ldcref.c (output_cref): Don't pass message strings to printf
1488         as format arg.
1489         Update copyright.
1490
1491         * ldmisc.c (vfinfo): Same here.
1492         Update copyright.
1493
1494 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
1495
1496         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
1497         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
1498         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
1499         Add missing NULL initialisers, and comments.
1500
1501         * testsuite/ld-srec/sr3.cc (__rethrow): New.
1502
1503 2000-01-21  Nick Clifton  <nickc@cygnus.com>
1504
1505         * ldlang.c (lang_size_sections): Fix typo in comment.
1506
1507 2000-01-18  H.J. Lu  <hjl@gnu.org>
1508
1509         * ldlang.c (lang_size_sections): Also update the current
1510         address of a region if the SEC_NEVER_LOAD bit is not set.
1511
1512 2000-01-10  Philip Blundell  <pb@futuretv.com>
1513
1514         * configure.tgt (arm*-*-conix*): New target.
1515
1516 2000-01-07  Nick Clifton  <nickc@cygnus.com>
1517
1518         * ld.texinfo (Options): Remind users to preceed linker command
1519         line switches with -Wl, (or whatever is appropriate) if it is
1520         being invoked by a comnpiler driver program.
1521         Fix description of the behaviour of the -n command line switch.
1522
1523 Wed Jan  5 08:02:12 2000  Catherine Moore  <clm@cygnus.com>
1524
1525         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
1526         (name_list): New.
1527         * ld.texinfo (EXCLUDE_FILE): Update documentation.
1528         * ldgram.y (wildcard_spec): Support a list of excluded_files.
1529         (exclude_name_list): New.
1530         ldlang.c (walk_wild_section): Support list of excluded files.
1531         (print_wild_statement): Likewise.
1532         (lang_add_wild): Likewise.
1533         * ldlang.h (lang_wild_statement_type): Likewise.
1534         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
1535
1536 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
1537
1538         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
1539         (process_def_file): Use.
1540         (pe_dll_compat_implib): New variable.
1541         (make_one): Use.
1542
1543         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
1544         pe_dll_compat_implib.
1545
1546         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
1547         compat-implib options.
1548         (gld_${EMULATION_NAME}_list_options): List new options.
1549         (gld_${EMULATION_NAME}_parse_args): Handle.
1550
1551         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
1552         dll.
1553
1554         * deffilep.y (opt_name): Allow "." in name.
1555
1556 1999-12-02  Nick Clifton  <nickc@cygnus.com>
1557
1558         * Makefile.am: Fix arm-epoc-pe dependencies.
1559         * Makefile.in: Regenerate.
1560
1561         * emulparams/arm_epoc_pe.sh (SCRIPT_NAME): Set to epocpe.
1562
1563         * scripttempl/epocpe.sc: New file: copy of pe.sc, customised for
1564         EPOC by placing .rdata into .text.
1565
1566 1999-11-26  Andreas Schwab  <schwab@suse.de>
1567
1568         * configure.in: Put AC_MSG_CHECKING/AC_MSG_RESULT around check for
1569         STRINGIFY.  Use yes/no instead of true/false as value for cache
1570         variable.
1571         * configure: Regenerate.
1572
1573 1999-11-24  Nick Clifton  <nickc@cygnus.com>
1574
1575         * ldlang.c (IGNORE_SECTION): Section must have both ALLOC and LOAD
1576         attributes in order to be checked.
1577
1578 1999-11-22  Nick Clifton  <nickc@cygnus.com>
1579
1580         * ldlang.c (lang_check_section_addresses): Fix test to determine
1581         if a section should be tested.
1582         (IGNORE_SECTION): New macro.
1583
1584 Wed Nov  3 23:31:19 1999  Jeffrey A Law  (law@cygnus.com)
1585
1586         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1587         Clean up code to use EXTRA_SHLIB_EXTENSION.
1588
1589 1999-11-03  Nick Clifton  <nickc@cygnus.com>
1590
1591         * emulparams/elf32mcore.sh (OUTPUT_FORMAT): Change to little endian.
1592         * emulparams/mcorepe.sh (OUTPUT_FORMAT): Change to little endian.
1593
1594 1999-11-01  Steve Chamberlain  <sac@pobox.com>
1595
1596         * ldlang.c (section_already_linked): Rework to use hash table.
1597         (already_linked_newfunc): New function.
1598         (already_linked_table_init): New function.
1599         (already_linked_table_free): New function.
1600         (lang_process): Initialize and free the already_linked hash table.
1601
1602 1999-10-27  Andreas Jaeger  <aj@suse.de>
1603
1604         * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1605         target "mips*-*-linux-gnu*".
1606
1607 1999-10-27  Scott Bambrough  <scottb@netwinder.org>
1608
1609         * emultempl/armelf.em: Include ctype.h to prevent compile time
1610         warnings.
1611
1612 1999-10-26  Nick Clifton  <nickc@cygnus.com>
1613
1614         * emultempl/armcoff.em (gld{}_finish): Remove extraneous
1615         underscore from prototype.
1616         * emultempl/armelf.em (gld{}_finish): Remove extraneous
1617         underscore from prototype.
1618
1619 1999-10-07  Geoffrey Keating  <geoffk@cygnus.com>
1620
1621         * scripttempl/elf.sc (.rel.sdata): Combine all the sdata relocs
1622         being .rel.sdata, .rel.sdata.*, .rel.gnu.linkonce.s*.
1623         (.rela.sdata): Likewise for .rela.sdata.* and .rela.gnu.linkonce.s*.
1624         (.rel.sbss): Make like .rel.bss.
1625         (.rela.sbss): Make like .rel.bss.
1626         (.sdata): Don't include .gnu.linkonce.s.* or .sdata.* when
1627         ld -r.
1628         (.sbss): Do the same things as for .bss: include SDATA_START_SYMBOLS,
1629         .dynsbss.
1630
1631 1999-09-29  Andrew Haley  <aph@cygnus.com>
1632
1633         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Defer
1634         merging sections when not relocating.
1635
1636 1999-09-28  Mumit Khan  <khan@xraylith.wisc.edu>
1637
1638         * pe-dll.c (process_def_file): Move the offset lookup from here to
1639         (fill_exported_offsets): here. New static function.
1640         (fill_edata): Use.
1641
1642 1999-09-28  Mumit Khan  <khan@xraylith.wisc.edu>
1643
1644         * deffilep.y (tokens): Add upper and lower case versions of DATA,
1645         CONSTANT, NONAME and PRIVATE tokens.
1646         (command): Use DATAU.
1647         (expline): Allow for drectve syntax as well.
1648         (exp_opt_list): Likewise.
1649         (exp_opt): Likewise.
1650         * pe-dll.c (make_one): Only generate the idata entries for data
1651         symbols.
1652
1653 1999-09-28  Geoffrey Keating  <geoffk@cygnus.com>
1654
1655         * scripttempl/elf.sc (.sdata): Include .gnu.linkonce.s.* sections
1656         in .sdata too.
1657
1658 1999-09-26  Nick Clifton  <nickc@cygnus.com>
1659
1660         * scripttempl/elf.sc (.bss): Accept sections named .bss.*
1661         (.sbss): Accept sections names .sbss.*
1662
1663 1999-09-22  Nick Clifton  <nickc@cygnus.com>
1664
1665         * Makefile.am: Add earm_epoc_pe.c build target.
1666
1667 Sat Sep 18 07:57:10 1999  Jeffrey A Law  (law@cygnus.com)
1668
1669         * emulparms/elf64hppa.sh (OTHER_READONLY_SYMBOLS): Remove ".stubs",
1670         they've been renamed to ".stub", which is handled automatically
1671         by elf.sc.
1672
1673 Fri Sep 17 11:00:33 1999  Jeffrey A Law  (law@cygnus.com)
1674
1675         * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Kill completely.
1676         (DATA_START_SYMBOLS): Kill __hp_load_map definition
1677
1678 Thu Sep 16 10:59:56 1999  Jeffrey A Law  (law@cygnus.com)
1679
1680         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1681         Use the same filename extension for the bfd_elf_dt_needed_name call
1682         as we did for finding the library.
1683
1684         * emulparms/elf64hppa.sh (DATA_START_SYMBOLS): Define.
1685         (OTHER_READWRITE_SECTIONS): No longer define __hp_load_map.
1686
1687         * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Define.
1688
1689 Wed Sep 15 02:47:43 1999  Jeffrey A Law  (law@cygnus.com)
1690
1691         * emulparms/elf64hppa.sh (SHLIB_TEXT_START_ADDR): Define.
1692         (SHLIB_DATA_ADDR): Likewise.
1693
1694         * emulparms/elf64hppa.sh (TEXT_DYNAMIC): Define.
1695
1696         * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS):  No longer combine
1697         the .plt, .dlt, .opd  into a single output section.  Provide values
1698         for __gp and __hp_load_map.
1699
1700 1999-09-14  Michael Meissner  <meissner@cygnus.com>
1701
1702         * configure.in (Canonicalization of target names): Remove adding
1703         ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
1704         generates $ac_config_sub with a ${CONFIG_SHELL} already.
1705         * configure: Regenerate.
1706
1707 1999-09-14  Donn Terry  <donn@interix.com>
1708
1709         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): allow for
1710         terminating null.
1711
1712 1999-09-14  Ulrich Drepper  <drepper@cygnus.com>
1713
1714         * configure.in: Define EXTRA_SHLIB_EXTENSION to ".sl" for HP target.
1715         * config.in: Add EXTRA_SHLIB_EXTENSION.
1716
1717         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1718         Search for second shared lib extension only if EXTRA_SHLIB_EXTENSION
1719         is defined.
1720
1721 1999-09-14  Nick Clifton  <nickc@cygnus.com>
1722
1723         * Makefile.in: Add earm_epoc_pe.c build target.
1724
1725 Tue Sep 14 05:26:34 1999  Jeffrey A Law  (law@cygnus.com)
1726
1727         * emulparms/elf64hppa.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.dlt.
1728
1729 1999-09-13  Donn Terry  <donn@interix.com>
1730
1731         * emultempl/pe.em: Remove the output file at the start, in case it
1732         is not writable.
1733
1734 Mon Sep 13 00:17:18 1999  Jeffrey A Law  (law@cygnus.com)
1735
1736         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1737         Search for file with .sl extension if no file with a .so extension
1738         is found.
1739
1740         * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Put .plt
1741         at the start of the .dlt output section.
1742
1743 1999-09-12  Ian Lance Taylor  <ian@zembu.com>
1744
1745         * pe.em: Don't include "../bfd/libbfd.h".
1746         (gld_${EMULATION_NAME}_after_open): Use xmalloc rather than
1747         bfd_alloc.
1748
1749         * pe-dll.h: New file.
1750         * pe-dll.c: Include "pe-dll.h".  Mark unused arguments as needed
1751         to avoid warnings.
1752         (edata_sz, reloc_sz): Change from int to size_t.
1753         (pe_details_type): Change type of imagebase_reloc from int to
1754         unsigned int.
1755         (pe_detail_list): Fully initialize last entry.
1756         (pe_dll_id_target): Change parameter to const.
1757         (pe_dll_generate_def_file): Likewise.
1758         (pe_dll_generate_implib): Likewise.
1759         (pe_implied_import_dll): Likewise.  Change dll_name to const.
1760         * emultempl/pe.em: Include "pe-dll.h".  Remove declarations now in
1761         pe-dll.h.
1762         (init): Fully initialize __dll__ entry.
1763         (gld_${EMULATION_NAME}_after_open): Remove unused variables
1764         sequence, elt, and i.
1765         * deffile.h: Add preprocessor guard.
1766         * deffilep.y (def_debug): Remove.
1767         * Makefile.am: Rebuild dependencies.
1768         (HFILES): Add pe-dll.h.
1769
1770 1999-09-12  Donn Terry  <donn@interix.com>
1771
1772         * ld.h (ld_abort): Declare.
1773         (abort): Define.
1774         * ldmisc.c (ld_abort): Define.
1775
1776         * scripttempl/pe.sc: Use ${ENTRY} rather than _mainCRTStartup.
1777         Move .bss section after .rdata.  Move .reloc section after .rsrc.
1778
1779         * lexsup.c (parse_args): Use strtoul for --split-by-reloc
1780         argument.
1781
1782         * lexsup.c (parse_args): If we get an unrecognized argument,
1783         mention --help.
1784
1785         * ldlang.c (section_already_linked): Use comdat information if it
1786         is available.
1787
1788         * emultempl/pe.em (PE_DEF_SECTION_ALIGNMENT): If
1789         OVERRIDE_SECTION_ALIGNMENT is defined, change to that.
1790         (gld_${EMULATION_NAME}_before_parse): Use EXECUTABLE_NAME if it is
1791         defined, rather than a.exe.
1792         (init): Define __subsystem__ as ${SUBSYSTEM}.
1793         (set_pe_subsystem): Add ${INITIAL_SYMBOL_CHAR} before entry symbol
1794         name.
1795
1796 1999-09-12  Ian Lance Taylor  <ian@zembu.com>
1797
1798         * ldlang.c (open_output): Change local variable desired_endian
1799         from int to enum bfd_endian.
1800
1801         * emulparams/arm_epoc_pe.sh: Define ENTRY, SUBSYSTEM and
1802         INITIAL_SYMBOL_CHAR.
1803         * emulparams/armpe.sh: Likewise.
1804         * emulparams/morepe.sh: Likewise.
1805         * emulparams/ppcpe.sh: Likewise.
1806         * emulparams/i386pe.sh (ENTRY): Define as _mainCRTStartup.
1807         (SUBSYSTEM): Define as PE_DEF_SUBSYSTEM.
1808
1809 Fri Sep 10 00:22:50 1999  Jeffrey A Law  (law@cygnus.com)
1810
1811         * emulparms/elf64hppa.sh (LIB_PATH): Define.
1812
1813         * emulparms/elf64hppa.sh (OTHER_READONLY_SECTIONS): Put stubs before
1814         unwinders so that they are closer to the text section.
1815         (OTHER_BSS_SECTIONS): Define.
1816         (EXECUTABLE_SYMBOLS): Provide __SYSTEM_ID and _FPU_STATUS.
1817         (INIT_START, INIT_END): Define.
1818         (FINI_START, FINI_END): Define.
1819         * scripttempl/elf.sc: Add support for INIT_START, INIT_END,
1820         FINI_START, FINI_END and OTHER_BSS_SECTIONS.
1821
1822 Thu Sep  9 21:43:58 1999  Jeffrey A Law  (law@cygnus.com)
1823
1824         * emulparms/elf64hppa.sh (TEXT_START_ADDR): Move up one page.
1825         (DATA_ADDR): Define.
1826
1827 1999-09-09  Stan Shebs  <shebs@andros.cygnus.com>
1828
1829         * emulparams/d10velf.sh (READONLY_START_ADDR): Set to 0x2000004.
1830
1831 1999-09-09  Andreas Schwab  <schwab@suse.de>
1832
1833         * ld.texinfo: Fix arguments of @var to not contain punctuation.
1834
1835 Thu Sep  9 05:52:34 1999  Jeffrey A Law  (law@cygnus.com)
1836
1837         * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Define.
1838
1839 1999-09-08  Ulrich Drepper  <drepper@cygnus.com>
1840
1841         * emulparams/elf64hppa.sh (ELFSIZE): New.  Set to 64.
1842
1843 Wed Sep  8 00:07:39 1999  Jeffrey A Law  (law@cygnus.com)
1844
1845         * emulparms/elf64hppa.sh (ENTRY): Define to main.
1846
1847 1999-09-03  Scott Bambrough  <scottb@netwinder.org>
1848
1849         * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1850         target "arm*-*-linux-gnu*"
1851
1852 1999-09-04  Steve Chamberlain  <sac@pobox.com>
1853
1854         * configure.tgt (pjl-*-*, pj-*-*): New targets.
1855         * emulparams/pjelf.sh: New file.
1856         * emulparams/pjlelf.sh: New file.
1857         * scripttempl/pj.sc: New file.
1858         * Makefile.am (ALL_EMULATIONS): Add epjelf.o and epjlelf.o.
1859         (epjelf.o, epjlelf.o): New targets.
1860         * Makefile.in: Rebuild.
1861
1862 Fri Sep  3 20:17:08 1999  Jeffrey A Law  (law@cygnus.com)
1863
1864         * emulparams/elf64hppa.sh (MAXPAGESIZE): Define.
1865         (OTHER_READONLY_SECTIONS, DATA_PLT): Likewise.
1866
1867 Thu Sep  2 14:32:03 1999  Jeffrey A Law  (law@cygnus.com)
1868
1869         * emulparams/elf64hppa.sh: New file.
1870         * configure.tgt (hppa*w-*-*): Use elf64hppa emulation.
1871         * Makefile.am (ALL_64_EMULATIONS): Add eelf64hppa.o
1872         (eelf64hppa.c): Add dependencies.
1873         * Makefile.in: Rebuilt.
1874
1875 1999-08-25  Philip Blundell  <pb@nexus.co.uk>
1876
1877         * emulparams/armelf.sh (OTHER_BSS_SYMBOLS): Add __end__.
1878         * emulparams/armelf_linux.sh: Likewise.
1879         * emulparams/armelf_linux26.sh: Likewise.
1880
1881 1999-08-24  Nick Clifton  <nickc@cygnus.com>
1882
1883         From a patch submitted by Roland McGrath  <roland@baalperazim.frob.com>
1884
1885         * configure.tgt (arm-*-netbsd*): New target.
1886         * Makefile.am (ALL_EMULATIONS): Add earmnbsd.o.
1887         (earmnbsd.c): New rule with deps.
1888         * Makefile.on: Regenerate.
1889         * emulparams/armnbsd.sh: New file.
1890
1891 1999-08-23  Nick Clifton  <nickc@cygnus.com>
1892
1893         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Define.
1894         Implement --base-file command line switch.
1895
1896         * emultempl/elf32.em: Add ability for individual targets to have
1897         their own command line switches by defining PARSE_AND_LIST_ARGS.
1898
1899 1999-08-19  Andreas Schwab  <schwab@suse.de>
1900
1901         * configure.host: Use ${CC} instead of gcc for finding compiler
1902         related files.
1903
1904 1999-08-11  Nick Clifton  <nickc@cygnus.com>
1905
1906         * scripttempl/mcorepe.sc (OUTPUT_FORMAT): Fix typo.
1907
1908 1999-08-09  Mark Elbrecht  <snowball3@bigfoot.com>
1909
1910         * scripttempl/i386go32.sc: Handle g++ exception sections.
1911
1912 1999-08-09  Ian Lance Taylor  <ian@zembu.com>
1913
1914         From Wally Iimura <iimura@microunity.com>:
1915         * ldlang.c (lang_size_sections): When checking whether an address
1916         is within a region, don't get confused by wrapping around at the
1917         end of the address space.
1918
1919 1999-08-08  Ian Lance Taylor  <ian@zembu.com>
1920
1921         * ldlang.c (wild_doit): Update for renaming of SEC_SHORT to
1922         SEC_SMALL_DATA.
1923
1924         * Makefile.am: Rename .dep* files to DEP*.  Change DEP variable to
1925         MKDEP.  Rebuild dependencies.
1926         * Makefile.in: Rebuild.
1927
1928 1999-08-08  Jakub Jelinek  <jj@ultra.linux.cz>
1929
1930         * configure.host (sparc-*-linux-gnu*): New host.
1931         (sparc64-*-linux-gnu*): New host.
1932
1933 1999-08-06  Ian Lance Taylor  <ian@zembu.com>
1934
1935         * lexsup.c (is_num): Reindent.
1936         (parse_args): Mention program name in error message.
1937
1938         * emultempl/ostring.sed: Rename from stringify.sed.
1939         * emultempl/astring.sed: New file.
1940         * Makefile.am (stringify.sed): New target.
1941         (GEN_DEPENDS): Change $(srcdir)/emultempl/stringify.sed to
1942         stringify.sed.
1943         * configure.in: Define and substitute STRINGIFY.
1944         * emultempl/*.em: Use stringify.sed from build directory rather
1945         than source directory.
1946         * emultempl/elf32.em: Use stringify.sed rather than inline sed
1947         script.
1948         * emultempl/gld960.em, emultempl/gld960c.em: Likewise.
1949         * emultempl/hppaelf.em, emultempl/linux.em: Likewise.
1950         * emultempl/lnk960.em, emultempl/sunos.em: Likewise.
1951         * configure, Makefile.in: Rebuild.
1952
1953 1999-08-05  Donn Terry  <donn@interix.com>
1954
1955         * emulparams/i386pe.sh: Define ENTRY, SUBSYSTEM, and
1956         INITIAL_SYMBOL_CHAR.
1957         * emulparams/i386pe_posix.sh: New file.
1958         * Makefile.am (YACC): If bison is not in the source tree, use
1959         @YACC@ rather than bison -y.
1960         (LEX): If flex is not in the source tree, use @LEX@ rather than
1961         flex.
1962         (ALL_EMULATIONS): Add ei386pe_posix.o.
1963         (ei386pe_posix.c): New target.
1964         * configure.tgt (i[3456]86-*-interix*): New target.
1965         * configure.host (i[3456]86-pc-interix*): New host.
1966         * Makefile.in: Rebuild.
1967
1968 1999-08-03  Ian Lance Taylor  <ian@zembu.com>
1969
1970         * emulparams/elf32ppc.sh (MAXPAGESIZE): Change to 0x10000.
1971         * emulparams/elf32ppclinux.sh (MAXPAGESIZE): Likewise.
1972
1973 1999-08-03  H.J. Lu  <hjl@gnu.org>
1974
1975         * Makefile.am (ALL_EMULATIONS): Remove ego32.o.
1976         (ego32.c): Remove.
1977         * Makefile.in: Rebuild.
1978
1979 1999-07-22  Philip Blundell  <pb@nexus.co.uk>
1980
1981         * emulparams/armelf_linux26.sh (DATA_START_SYMBOLS): Define.
1982         (OTHER_BSS_SYMBOLS, OTHER_BSS_END_SYMBOLS): Likewise.
1983         * emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Define.
1984
1985         * configure.tgt (arm*-*-uclinux*, thumb-*-uclinux*,
1986         thumb-*-linux-gnu*): New targets.
1987
1988 1999-07-21  Mark Elbrecht  <snowball3@bigfoot.com>
1989
1990         * scripttempl/i386go32.sc: Add handling of linkonce sections.
1991
1992         * configure.bat: Remove; obsolete.
1993         * emulparams/go32.sh: Remove; obsolete.
1994         * scripttempl/go32coff.sc: Remove; obsolete.
1995
1996 1999-07-21  H.J. Lu  <hjl@gnu.org>
1997
1998         * configure.tgt (mips*el-*-vxworks*): New target.
1999
2000 1999-07-21  Brad M. Garcia  <bgarcia@fore.com>
2001
2002         * configure.tgt (i[3456]86-*-vxworks*): New target.
2003
2004 Tue Jul 20 15:18:46 1999  Bob Manson  <manson@charmed.cygnus.com>
2005
2006         * ldlang.c (lang_gc_sections): Only handle the start symbol
2007         specially if there is one.
2008
2009 Mon Jul 19 14:19:14 1999  Mark P. Mitchell  <mark@codesourcery.com>
2010
2011         * emulparams/elf32bmipn32.sh (OTHER_RELOCATING_SECTIONS): Add
2012         .MIPS.events and .MIPS.content handling.
2013         * emulparams/elf64bmip.sh (OTHER_RELOCATING_SECTIONS): Likewise.
2014
2015 1999-07-17  Nick Clifton  <nickc@cygnus.com>
2016
2017         * ldlang.c (get_target): New function: Return true iff the
2018         given target is the target being sought.
2019         (stricpy): New function:  Like strcpy but convert to lower
2020         case as well.
2021         (strcut): New function:  Like strstr but remove the located
2022         substring as well.
2023         (name_compare): New function: Compute a compatability rating
2024         for two target names.
2025         (winner): New variable: Best target found by
2026         closest_target_match() so far.
2027         (closest_target_match): New function: Find the target which is
2028         the closest match to the original target.
2029         (get_first_input_target): New function: Find the target format
2030         of the first of the linker's input file.
2031         (open_output): Be more clever about deciding the output target
2032         format.
2033
2034 1999-07-16  Jakub Jelinek  <jj@ultra.linux.cz>
2035
2036         * emulparams/elf64_sparc.sh: Add 64-bit directories to native LIB_PATH.
2037
2038 Thu Jul 15 15:55:15 1999  Mark P. Mitchell  <mark@codesourcery.com>
2039
2040         * configure.host: Set up HOSTING_CRT0 and HOSTING_LIBS for IRIX6.
2041
2042 1999-07-15  Ian Lance Taylor  <ian@zembu.com>
2043
2044         * configure.in: Bump version number to 2.9.5.
2045         * configure: Rebuild.
2046
2047 1999-07-14  Richard Henderson  <rth@cygnus.com>
2048
2049         * ldlang.c (wild_doit): Copy SEC_SHORT to output section.
2050
2051         * scripttempl/elf.sc: Re-order .rel[a].foo outputs to the
2052         same order seen for the main sections.  Add
2053         OTHER_READONLY_RELOC_SECTIONS and OTHER_GOT_RELOC_SECTIONS.
2054
2055 1999-07-12  Andreas Schwab  <schwab@suse.de>
2056
2057         * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Fill in
2058         structure initializations.
2059
2060         * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Add missing
2061         comma in initializer.
2062
2063 1999-07-11  Ian Lance Taylor  <ian@zembu.com>
2064
2065         * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
2066         as appropriate.  Fill in structure initializations.
2067
2068 1999-07-10  Ian Lance Taylor  <ian@zembu.com>
2069
2070         * ldfile.c: Revert patch of 1999-07-08.
2071         (ldfile_try_open_bfd): If we are searching for the file, skip
2072         files with an incompatible architecture.
2073
2074 1999-07-09  Nick Clifton  <nickc@cygnus.com>
2075
2076         * scripttempl/armcoff.sc (OUTPUT_FORMAT): Include big endian and
2077         little endian formats.
2078
2079 1999-07-08  Felix Lee  <flee@cygnus.com>
2080
2081         * scripttempl/mcorepe.sc: fix quoting problem, for bash 2.x
2082
2083 1999-07-08  Jakub Jelinek  <jj@ultra.linux.cz>
2084
2085         * ldfile.c (ldfile_open_file_search): Skip libraries made for
2086         incompatible architectures in the search path. Let the user know
2087         about any such skips.
2088
2089 Thu Jul  8 12:32:23 1999  John David Anglin <dave@hiauly1.hia.nrc.ca>
2090
2091         * configure.tgt (hppa*-linux-gnu*): New target.
2092
2093 1999-07-07  Mark Mitchell  <mark@codesourcery.com>
2094
2095         * Makefile.am (ALL_64_EMULATIONS): Add eelf64bmip.
2096         (eelf64bmip): New target.
2097         * Makefile.in: Regenerated.
2098         * configure.tgt (mips-sgi-irix6*): Add 64-bit emulation.
2099         * emulparams/elf64bmip.sh: New file.
2100
2101 1999-07-05  Nick Clifton  <nickc@cygnus.com>
2102
2103         * emultempl/pe.em (after_open): Abort if input format is ARM and
2104         output format is not.
2105         * emultempl/armcoff.em (after_open): Abort if input format is ARM
2106         and output format is not.
2107         * emultempl/armelf.em (after_open): Abort if input format is ARM
2108         and output format is not.
2109
2110 1999-07-02  Ian Lance Taylor  <ian@zembu.com>
2111
2112         * ldlang.c: Revert change of 1999-06-23.
2113
2114 1999-06-30  Mark Mitchell  <mark@codesourcery.com>
2115
2116         * Makefile.am (ALL_EMULATIONS): Add eelf32bmipn32.o.
2117         (eelf32bmipn32.c): New target.
2118         * Makefile.in: Regenerated.
2119         * configure.tgt (mips-sgi-irix6*): Make n32 the default
2120         emulation.
2121         * emulparams/elf32bmipn32.sh: New file.
2122
2123 1999-06-28  Jim Pick <jim@jimpick.com>
2124
2125         * emultempl/armelf.em: Added code so that .xs linker scripts are
2126         called so that ARM shared libraries are built correctly.
2127
2128 1999-06-22  Mark Mitchell  <mark@codesourcery.com>
2129
2130         * ldmain.c (main): Initialize link_info.init_function and
2131         link_info.fini_function.
2132         * lexsup.c (OPTION_INIT): New macro.
2133         (OPTION_FINI): Likewise.
2134         (ld_options): Add descriptions for them.
2135         (parse_args): Handle them.
2136
2137 1999-06-23  Ian Lance Taylor  <ian@zembu.com>
2138
2139         * ldlang.c (section_already_linked): Only discard link once
2140         sections if we are building constructors.
2141
2142 1999-06-22  Nick Clifton  <nickc@cygnus.com>
2143
2144         * ld.texinfo (Location Counter): Describe behaviour of
2145         location counter inside section statements.
2146
2147 1999-06-20  Mark Mitchell  <mark@codesourcery.com>
2148
2149         * scripttempl/elf.sc (WRITABLE_RODATA): New variable for
2150         controlling whether or not .rodata is in the data segment or the
2151         text segment.
2152
2153 1999-06-18  Nick Clifton  <nickc@cygnus.com>
2154
2155         * emultempl/pe.em: Add new command line switch --thumb-entry.
2156         * emultempl/armelf.em: Add new command line switch --thumb-entry.
2157         * emultempl/armcoff.em: Add new command line switch --thumb-entry.
2158         * ld.texinfo: Document new ARM command line switch: --thumb-entry.
2159
2160 1999-06-20  H.J. Lu  <hjl@gnu.org>
2161
2162         * configure.in (all_libpath): Accumulate across all enabled targets.
2163
2164 Sun Jun 20 14:10:33 1999  Richard Henderson  <rth@cygnus.com>
2165
2166         * emultempl/armelf.em: Watch EMULATION_LIBPATH instead of
2167         DEFAULT_EMULATION.
2168         * emultempl/elf32.em: Likewise.
2169         * emultempl/sunos.em: Likewise.
2170
2171 Fri Jun 18 15:24:48 1999  Richard Henderson  <rth@cygnus.com>
2172
2173         * Makefile.am (GENSCRIPTS): Pass EMULATION_LIBPATH, not EMUL.
2174         * configure.in (all_emuls): Add targ_extra_libpath.
2175         (all_libpath, EMULATION_LIBPATH): Define.
2176         * configure.tgt (powerpc-*-linux-gnu*): Define targ_extra_libpath.
2177         * genscripts.sh (LIB_PATH): Define if emulation in EMULATION_LIBPATH.
2178
2179 Mon Jun 14 10:38:36 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2180
2181         * ld.texinfo: Fix use of @item vs. @itemx.
2182
2183 1999-06-13  Ian Lance Taylor  <ian@zembu.com>
2184
2185         From Thomas Zenker <thz@lennartz-electronic.de>:
2186         * ldgram.y (attributes_opt): Use attributes_list instead of NAME.
2187         (attributes_list, attributes_string): New nonterminals.
2188         * ldlang.c (lang_set_flags): Add invert parameter.  Don't handle
2189         '!'.
2190         * ldlang.c (lang_set_flags): Update declaration.
2191
2192 1999-06-12  Ian Lance Taylor  <ian@zembu.com>
2193
2194         * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Don't add
2195         entry_symbol as an undefined symbol when doing a relocateable
2196         link.  From <jeffdb@goodnet.com>.
2197
2198 1999-06-12  David O'Brien  <obrien@freebsd.org>
2199
2200         * configure.tgt: (i[3456]86-*-freebsd*): Now defaults to ELF.
2201
2202 1999-06-09  Nick Clifton  <nickc@cygnus.com>
2203
2204         * lexsup.c (help): Restore previous format of output.
2205
2206 1999-06-04  Nick Clifton  <nickc@cygnus.com>
2207
2208         * emultempl/pe.em: If compiling for arm_epoc_pe rename
2209         interworking functions to avoid a name space clash.
2210
2211 1999-06-02  Jason Merrill  <jason@yorick.cygnus.com>
2212
2213         * scripttempl/v850.sc: Add initp support.
2214
2215 1999-06-02  Nick Clifton  <nickc@cygnus.com>
2216
2217         * emultempl/pe.em: Rename global arm interworking functions to
2218         avoid name collision when all targets BFD is built.
2219
2220 1999-05-30  Cort Dougan  <cort@attis.cs.nmt.edu>
2221
2222         * Makefile.am (ALL_EMULATIONS): Add eelf32ppclinux.o.
2223         * configure.tgt (powerpc-*-linux-gnu): Use it.
2224         * emulparams/elf32ppclinux.sh: New file.
2225
2226 1999-05-29  Ian Lance Taylor  <ian@zembu.com>
2227
2228         * ld.texinfo (Options): Clarify that options which refer to files
2229         must be properly ordered.
2230
2231 1999-05-29  Nick Clifton  <nickc@cygnus.com>
2232
2233         * emultempl/armelf.em (..._parse_args): New function: Parse
2234         command line option.  Accept arm-elf specific command line option
2235         '-p' or '--no-pipeline-knowledge'.
2236         (..._list_options): New function: Describe the new command line
2237         option.
2238         (..._before_allocation): Pass the value of the new variable
2239         no_pipeline_knowledge to bfd_elf32_arm_process_before_allocation.
2240
2241         * emultemp/armelf_oabi.em (..._before_allocation): Pass zero as
2242         the third parameter to bfd_elf32_arm_process_before_allocation.
2243
2244 1999-05-28  Nick Clifton  <nickc@cygnus.com>
2245
2246         * lexsup.c (help): Minor formatting changes.
2247
2248 1999-05-28  Martin Dorey  <mdorey@madge.com>
2249
2250         * configure.tgt (i960-*-elf*): New target.
2251         * emulparams/elf32_i960.sh: New file.
2252         * Makefile.am (ALL_EMULATIONS): Add eelf32_i960.o.
2253         (eelf32_i960.c): New target.
2254         * Makefile.in: Rebuild.
2255
2256 1999-05-26  Nick Clifton  <nickc@cygnus.com>
2257
2258         * emulparams/armelf_oabi.sh (TEMPLATE_NAME): Set to armelf_oabi.
2259
2260 1999-05-24  Philip Blundell  <philb@gnu.org>
2261
2262         * emultempl/armelf.em (before_parse): Set config.dynamic_link and
2263         config.has_shared.
2264         * emulparams/armelf.sh (GENERATE_SHLIB_SCRIPT): Define.
2265         * emulparams/armelf_linux.sh (GENERATE_SHLIB_SCRIPT): Likewise.
2266
2267 1999-04-13  Philip Blundell  <philb@gnu.org>
2268
2269         * emultempl/armelf.em: Add definitions related to shared objects
2270         (copied from elf32.em).
2271
2272 Wed May 19 12:44:26 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2273
2274         * Makefile.am (ALL_EMULATIONS): Remove earmlinux.o and
2275         earm26linux.o, add earmelf_linux.o and earmelf_linux26.o.
2276         * Makefile.in: Regenerated.
2277
2278 1999-05-16  Nick Clifton  <nickc@cygnus.com>
2279
2280         * emulparams/elf32mcore.sh (GENERATE_SHLIB_SCRIPT): Define.
2281         (TEMPLATE_NAME): Define.
2282
2283 Thu May 13 09:48:09 1999  Joel Sherrill (joel@OARcorp.com)
2284
2285         * configure.tgt (i386-*-rtemself*, sh-*-rtemself*): New targets.
2286         (mips*el-*-rtems*, powerpcle-*-rtems*): New targets.
2287
2288 1999-05-10  DJ Delorie  <dj@cygnus.com>
2289
2290         * scripttempl/pe.sc: Specify the output arch, which Ian says is
2291         the Right Thing to do.
2292
2293         * emultempl/pe.em: various changes to parameterize the
2294         target-specific information.
2295         (gld_i386pe_after_open): Detect and fix MS import libraries
2296         by renaming the member objects (which are all named the same).
2297
2298         * pe-dll.c: various changes to parameterize the target-specific
2299         information.
2300         (generate_reloc): support relocs more generically to allow for
2301         expansion.
2302         (pe_exe_build_sections): new; used to add .relocs to .exes
2303         (pe_exe_fill_sections): ditto
2304
2305 1999-05-10  Catherine Moore  <clm@cygnus.com>
2306
2307         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
2308         Check for TARGET_IS_arm_epoc_pe.
2309         (gld_${EMULATION_NAME}_before_allocation): Likewise.
2310
2311 1999-05-12  Anthony Green  <green@cygnus.com>
2312
2313         * ldlang.c (walk_wild, walk_wild_file, walk_wild_section,
2314         output_section_callback, gc_section_callback): New functions for
2315         generic section walks.
2316         (wild, lang_gc_wild): Use walk_wild.
2317         (wild_file, lang_gc_wild_file): Deleted. Common logic moved to
2318         walk_wild_file.
2319         (wild_section, lang_gc_wild_section): Deleted. Common logic moved
2320         to walk_fild_section.  Unique logic moved into callbacks
2321         output_section_callback and gc_section_callback.
2322
2323 1999-04-26  Tom Tromey  <tromey@cygnus.com>
2324
2325         * aclocal.m4, configure: Updated for new version of libtool.
2326
2327 1999-04-12  Philip Blundell  <pb@nexus.co.uk>
2328
2329         * emulparams/armelf_linux.sh: New file.  Support for ARM
2330         GNU/Linux ELF ABI.
2331         * emulparams/armelf_linux26.sh: New file. APCS-26 version of above.
2332         * configure.tgt: For arm*-*-linux-gnu*, set default emulation to
2333         `armelf_linux', and also include `armelf_linux26' and `armelf'.
2334         * Makefile.am: Add rules to make earmlinux.c and earmlinux26.c.
2335         (ALL_EMULATIONS): Add earmlinux.o and earmlinux26.o.
2336         * Makefile.in: Regenerate.
2337
2338 1999-04-11  Richard Henderson  <rth@cygnus.com>
2339
2340         * Makefile.am (ALL_EMULATIONS): Add elf_i386_be.o.
2341         * configure.tgt (i[3456]86-*-beos*): Use it.
2342         * emulparams/elf_i386_be.sh: New file.
2343         * Makefile.in: Rebuild.
2344
2345         * configure.in (environ): Detect declaration.
2346         * ldmain.c (main): Don't declare environ.
2347         * sysdep.h (environ): Declare if needed.
2348         * configure, config.in: Rebuild.
2349
2350 1999-04-11  Richard Henderson  <rth@cygnus.com>
2351
2352         * ldgram.y (ldgram_vers_current_lang): New.
2353         (vers_defns): Accept `extern "lang" { }' syntax.
2354         * ldlex.l (vers_node_nesting): New.
2355         (V_IDENTIFIER): Accept . and $ in symbols.
2356         (VERS_NODE): Accept `extern "lang" { }' tokens.  Nest VERS_NODE states.
2357         * ldlang.c (lang_new_vers_regex): New `lang' argument.  Update callers.
2358         (lang_vers_match_lang_c): New function.
2359         (lang_vers_match_lang_cplusplus): New function.
2360         (lang_vers_match_lang_java): New function.
2361         (lang_do_version_exports_section): Fix iteration.  Don't free
2362         section contents, as it is still in use by the patterns.
2363
2364 1999-04-10  Richard Henderson  <rth@cygnus.com>
2365
2366         * ldmain.c (main): Init link_info.no_undefined.
2367         * lexsup.c: Add command-line option --no-undefined.
2368
2369 1999-04-06  Ian Lance Taylor  <ian@zembu.com>
2370
2371         * ld.h (LC_MESSAGES): Never define.
2372         * ldmain.c (main): Don't pass LC_MESSAGES to setlocale if the
2373         system does not define it.
2374
2375 1999-04-06  H.J. Lu  <hjl@gnu.org>
2376
2377         * ldmain.h (demangling): Declare.
2378         * ldmain.c (demangling): New global variable.
2379         (main): Initialize demangling.
2380         * ldmisc.c (vfinfo): Don't demangle symbol if ! demangling.
2381         * lexsup.c (ld_options, parse_args): Handle --demangle and
2382         --no-demangle.
2383         * ld.texinfo, ld.1: Document --demangle/--no-demangle.
2384
2385         * ldlex.l (V_IDENTIFIER): Allow '.' in symbol.
2386
2387 1999-04-05  Chris Torek  <torek@BSDI.COM>
2388
2389         * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Check that
2390         a shared library really exists, avoiding broken symlinks.
2391
2392         * ldfile.c (ldfile_open_file): Generate a better error message if
2393         we can't find a -l file.
2394
2395 1999-04-05  DJ Delorie  <dj@cygnus.com>
2396
2397         * configure.tgt (i386-*-pe): add targ_extra_ofiles for other PE
2398         targets (i386-pe and i386-winnt)
2399
2400 1999-04-04  Ian Lance Taylor  <ian@zembu.com>
2401
2402         * deffilep.y: Include "sysdep.h" and "ldmisc.h".
2403         (def_file_add_directive): Change return type to void.  Remove
2404         unused locals sh_reserve, sh_commit, and j.
2405         (def_ungetc): Always return a value.
2406         (def_lex): Correct parenthesization of || within &&.
2407         * deffile.h (def_file_add_directive): Update declaration.
2408         * pe-dll.c: Include <time.h>, <ctype.h>, and "ldemul.h".
2409         (generate_edata): Remove unused local i.
2410         (quoteput): Add cast to avoid warning.
2411         (pe_dll_generate_def_file): Fix type in format string.
2412         (quick_symbol): Remove unused local blhe.
2413         (pe_dll_generate_implib): Add cast to avoid warning.
2414         (pe_process_import_defs): Remove unused locals ar_head, ar_tail,
2415         and n.
2416         (pe_as16): Comment out.
2417
2418 1999-04-04  Don Bowman <don@pixsci.com>
2419
2420         * configure.tgt: Add mips*-*-vxworks* target.
2421
2422 1999-03-31  Nick Clifton  <nickc@cygnus.com>
2423
2424         * Makefile.in (ALL_EMULATIONS): Add earm_epoc_pe.o
2425         Add build rule and dependencies for earm_epoc_pe.c.
2426
2427         * emulparams/arm_epoc_pe.sh: New file.
2428
2429         * configure.tgt: Add 'targ_extra_ofiles' for ARM based PE
2430         targets.
2431
2432 1999-03-31  Philip Blundell  <pb@nexus.co.uk>
2433
2434         * configure.tgt: Match `arm*-*-linux-gnu*' not
2435         `armv*-*-linux-gnu'.
2436
2437 1999-03-26  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2438
2439         * scripttempl/elf.sc: Put the .eh_frame and .gcc_except_table
2440         sections in the data segment.
2441
2442 Fri Mar 26 12:05:51 1999  Catherine Moore  <clm@cygnus.com>
2443
2444         * ld.h (wildcard_spec): Add exclude_name.
2445         * ldgram.y (EXCLUDE_FILE): New token.
2446         (wildcard_spec): Set exclude_name.
2447         (file_NAME_list): Recognize EXCLUDE_FILE.
2448         * ldlang.c (wild_section): Check for excluded files.
2449         (print_wild_statement): Print excluded files.
2450         (lang_add_wild): New argument exclude_filename.
2451         Set exclude_filename.
2452         * ldlang.h (lang_wild_statement_type):  Add exclude_filename.
2453         * ldlex.l: New token EXCLUDE_FILE.
2454         * mri.c (mri_draw_tree):  Add argument to lang_add_wild.
2455         * scripttempl/elf.sc (CTOR, DTOR):  Exclude crtend.o from ctor wildcard.
2456         Reorder sorted and unsorted ctors.
2457         * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
2458         * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
2459         * scripttempl/elfppc.sc (CTOR, DTOR): Likewise.
2460
2461 1999-03-26  Nick Clifton  <nickc@cygnus.com>
2462
2463         * ldlang.c (lang_gc_sections): If entry_symbol is not defined,
2464         default to "start".
2465
2466 1999-03-03  Nick Clifton  <nickc@cygnus.com>
2467
2468         * scripttempl/elf.sc: Add explicit placements for the .eh_frame
2469         and .gcc_except_table sections.
2470
2471 Wed Mar  3 09:13:34 1999  Catherine Moore  <clm@cygnus.clm>
2472
2473         * scripttempl/elf.sc: Remove .end.ctors and .end.dtors
2474         sections.  Reorder .ctors section entries.
2475         * scripttempl/elfd10v.sc: Likewise.
2476         * scripttempl/elfd30v.sc: Likewise.
2477         * scripttempl/elfppc.sc: Likewise.
2478
2479 1999-02-26  Jim Lemke  <jlemke@cygnus.com>
2480
2481         * ldmain.c (main): Wrong error msg for -r and --mpc860c0.
2482
2483 1999-02-25  Nick Clifton  <nickc@cygnus.com>
2484
2485         * ldlang.c (lang_check_section_addresses): Remove extraneous
2486         backslash.
2487
2488 Thu Feb 25 15:07:24 1999  Catherine Moore  <clm@cygnus.com>
2489
2490         * scripttempl/elf.sc: Don't gather .ctor and .dtor sections
2491         for relocateable links.
2492         * scripttempl/elfd10v.sc: Likewise.
2493         * scripttempl/elfd30v.sc: Likewise.
2494         * scripttempl/elfppc.sc: Likewise.
2495
2496 1999-02-22  Jim Lemke  <jlemke@cygnus.com>
2497
2498         * ldint.texinfo: remove extraneous right brace.
2499         * ldmain.c (main): initialize and check option "mpc860c0".
2500         * lexsup.c (ld_options, parse_args): add option "mpc860c0".
2501
2502 Wed Feb 17 12:10:06 1999  Stan Cox  <scox@cygnus.com>
2503
2504         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Remove special
2505         .reginfo section handling.
2506         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Likewise.
2507         * emulparams/elf32elmip.sh (INITIAL_READONLY_SECTIONS): Removed
2508         * emulparams/elf32ebmip.sh (INITIAL_READONLY_SECTIONS): Removed
2509
2510 1999-02-17  Nick Clifton  <nickc@cygnus.com>
2511
2512         Patch from: Scott Bambrough <scottb@corelcomputer.com>
2513
2514         * configure.tgt: Added armv*-*-linux-gnu to $targ_emul
2515         recognition.
2516
2517 Wed Feb 17 Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2518
2519         * emultempl/armelf_oabi.em
2520         (bfd_elf32_arm_allocate_interworking_sections,
2521         bfd_elf32_arm_get_bfd_for_interworking,
2522         bfd_elf32_arm_process_before_allocation): Define them to use the
2523         old ABI versions of the functions.
2524
2525 Tue Feb 16 16:48:19 1999  Ian Lance Taylor  <ian@cygnus.com>
2526
2527         * configure.in: Change AC_PREREQ to 2.13.  Change AM_PROG_INSTALL
2528         to AC_PROG_INSTALL.  Change AM_EXEEXT to AC_EXEEXT.
2529         * Makefile.am (earmelf_oabi.c): Changes spaces to tab.
2530         * acconfig.h: Remove.
2531         * aclocal.m4: Rebuild.
2532         * configure: Rebuild.
2533         * Makefile.in: Rebuild.
2534
2535 Mon Feb 15 18:21:48 1999  Vladimir N. Makarov  <vmakarov@cygnus.com>
2536
2537         * ldexp.h (struct etree_value_type): Change valid onto valid_p.
2538
2539         * ldexp.c (new_abs): Ditto.
2540         (new_rel, new_rel_from_section, fold_binary, invalid, fold_name,
2541         exp_fold_tree, exp_binop, exp_trinop, stat_alloc,
2542         exp_get_abs_int): Ditto
2543
2544         * ldlang.c (print_assignment, lang_size_sections,
2545         lang_do_assignments): Ditto.
2546
2547 1999-02-11  Nick Clifton  <nickc@cygnus.com>
2548
2549         * ldlang.c (lang_check_section_addresses): New function: Check
2550         addresses assigned to section for overlaps.
2551         (lang_process): Call lang_check_section_addresses if suitable.
2552
2553         * ld.h: Add new boolean field to args_type structure:
2554         'check_section_addresses'.
2555
2556         * ldmain.c: Initialise check_section_addresses field to true.
2557
2558         * lexsup.c: Add new command line options '--no-check-sections' and
2559         '--check-sections'.
2560
2561         * ld.texinfo: Document new command line options '--check-sections'
2562         and '--no-check-sections'.
2563
2564 1999-02-08  Nick Clifton  <nickc@cygnus.com>
2565
2566         * configure.tgt: Add support for StrongARM target.
2567
2568 Wed Feb  3 19:41:01 1999  Ian Lance Taylor  <ian@cygnus.com>
2569
2570         * ldctor.c (ldctor_build_sets): Just set SEC_KEEP once.  Check for
2571         an owner of a section before using it to look up a reloc type.
2572         Don't set SEC_KEEP for the absolute section.
2573
2574 Mon Feb  1 11:39:46 1999  Catherine Moore  <clm@cygnus.com>
2575
2576         * Makefile.am (earmelf_oabi.o):  New.
2577         * Makefile.in:  Regenerate.
2578         * configure.tgt (arm-*-oabi):  New.
2579         (thumb-*-oabi):  New.
2580         * emulparams/armelf_oabi.sh:  New.
2581         * emultempl/armelf_oabi.em:  New.
2582
2583 1999-01-31 17:57:31 1998  Michael Meissner  <meissner@cygnus.com>
2584
2585         * scripttempl/elfppc.sc: Add support for -fleading-underscores
2586         switch in all linker generated symbols.
2587
2588         * configure.tgt (powerpc{,le}*-*-vxworks): Add as aliases for
2589         powerpc{,le}-*-eabi.
2590
2591 Wed Jan 20 17:01:48 1999  Ian Lance Taylor  <ian@cygnus.com>
2592
2593         * configure.tgt (i[3456]86-*-solaris2*): New target.  From Pavel
2594         Roskin <pavel_roskin@geocities.com>.
2595
2596 1999-01-19  Nick Clifton  <nickc@cygnus.com>
2597
2598         * ldlang.c (lang_size_sections): Count loadable sections as
2599           contributing to the size of the current segment.
2600
2601 1999-01-15  Nick Clifton  <nickc@cygnus.com>
2602
2603         * ldlang.c (lang_size_sections): Only update the current
2604           address of a region if the section just placed into it is an
2605           allocated section.
2606
2607 1999-01-12  Nick Clifton  <nickc@cygnus.com>
2608
2609         * Makefile.am: Replace efr30.o with eelf32fr30.o.
2610         * Makefile.in: Regenerate.
2611
2612         * configure.tgt: Replace fr30 with elf32fr30.
2613
2614         * emulparams/elf32fr30.sh: New file: Replaces fr30.sh, and uses
2615         generic elf.sc script.  Also replaces the .stack section with a
2616         user definable symbol __stack.
2617
2618 1999-01-11  Nick Clifton  <nickc@cygnus.com>
2619
2620         * scripttempl/fr30.sc: Fill .init and .fini sections with NOP
2621         pattern.
2622
2623 1999-01-03  Ken Raeburn  <raeburn@cygnus.com>
2624
2625         * Makefile.am (check-DEJAGNU): No longer provide HOSTING_EMU,
2626         HOSTING_CRT0, HOSTING_LIBS; the test suite can extract them from
2627         configure.host and configure.tgt now.
2628         * Makefile.in: Rebuild.
2629
2630 1998-12-27  Ulrich Drepper  <drepper@cygnus.com>
2631
2632         * lexsup.c (parse_args, case OPTION_RPATH): Avoid adding duplicate
2633         elements to rpath.
2634
2635 Thu Dec 10 11:12:28 1998  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2636
2637         * Makefile.am (ALL_EMULATIONS): Remove pe-dll.o and deffilep.o.
2638         (ALL_EMUL_EXTRA_OFILES): New variable.  Put them here instead.
2639         * configure.in: Set EMUL_EXTRA_OFILES to $(ALL_EMUL_EXTRA_OFILES)
2640         if configuring with all targets.
2641         * configure, Makefile.in, aclocal.m4: Rebuild.
2642
2643         * emultempl/pe.em (pe_enable_stdcall_fixup): Make static.
2644         (pe_dll_do_default_excludes): Removed, unused.
2645         (pe_def_file, pe_dll_export_everything, pe_dll_kill_ats,
2646         pe_dll_stdcall_aliases): Don't initialize them, this file may be
2647         compiled more than once.
2648         * pe-dll.c (pe_def_file, pe_dll_export_everything,
2649         pe_dll_do_default_excludes, pe_dll_kill_ats,
2650         pe_dll_stdcall_aliases): Define and initialize them here instead.
2651         (generate_reloc): Fix allocation of reloc_addresses array to use
2652         bfd_vma instead of unsigned long.  Fix element size in qsort call.
2653         (reloc_sort): Compare pointers to bfd_vma instead of unsigned
2654         long.
2655
2656 Mon Dec  7 21:10:09 1998  J.J. van der Heijden  <j.j.vanderheijden@student.utwente.nl>
2657
2658         * configure.tgt (i[3456]86-*-mingw32*): Add cygwin target specific
2659         files.
2660
2661 Sun Dec  6 16:33:33 1998  Ian Lance Taylor  <ian@cygnus.com>
2662
2663         * configure.tgt (m68*-*-gnu*): New target.  From Aymeric Vincent
2664         <aymeric.vincent@emi.u-bordeaux.fr>.
2665
2666 1998-12-04  Nick Clifton  <nickc@cygnus.com>
2667
2668         * emulparams/fr30.sh (TEXT_START_ADDR): Change TEXT_START_ADDR
2669         from 0x100000 to 0x10000 so that it fits in 20 bits.
2670
2671 Sat Nov 28 22:32:20 1998  Ian Lance Taylor  <ian@cygnus.com>
2672
2673         * ldemul.h (ldemul_recognized_file): Declare.
2674
2675 Sat Nov 28 22:30:55 1998  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2676
2677         * ldlang.c (lang_add_wild): Don't pretend that there is an input
2678         file if the filename is a wildcard pattern.
2679
2680 1998-11-25  DJ Delorie  <dj@cygnus.com>
2681
2682         * ldemul.h (ld_emulation_xfer_struct): new hook "recognized_file"
2683         * ldemul.c (ldemul_recognized_file): new function, new hook
2684         * ldint.texinfo: document new hook.
2685         * ldlang.c (load_symbols): call recognized_hook for all objects we
2686         do recognize, in case the emulation needs to handle them
2687         specially.  PE DLLs use this.
2688         * pe-dll.c (pe_dll_generate_def_file): take out hack and debug
2689         printfs
2690         * emultempl/pe.em (gld_i386_recognized_file): new function
2691         (gld_i486_unrecognized_file): take out hack
2692
2693 1998-11-23  DJ Delorie  <dj@cygnus.com>
2694
2695         * pe-dll.c (fill_edata): fill in timestamp
2696         (make_head): name object files sequentially to ensure
2697         they link in the right order.
2698         (make_tail): same here
2699         (pe_process_import_defs): use sequential names for bfds to ensure
2700         proper link order.
2701         (pe_implied_import_dll): new function; handles linking directly
2702         against DLLs by simulating IMPORTS directives.  * emultempl/pe.em
2703         (gld_i386pe_before_parse): hack bfd to not recognize .dll files
2704         via bfd_pe_dll_not_recognized_hack
2705
2706 1998-11-23  DJ Delorie  <dj@cygnus.com>
2707
2708         * emultempl/pe.em (gld_i386pe_parse_args): Conditionalize call to
2709         pe_dll_add_excludes
2710
2711 Mon Nov 23 14:36:18 1998  Nick Clifton  <nickc@cygnus.com>
2712
2713         * emultempl/pe.em (after_parse): Only create an undefined entry
2714         symbol if one has been specified.
2715
2716 1998-11-23  DJ Delorie  <dj@cygnus.com>
2717
2718         * emultempl/pe.em (gld_i386pe_after_open): call
2719         pe_process_import_defs
2720         * pe-dll.c (pe_dll_generate_def_file): calculate BASE from
2721         pe_data, only print if actually set.  Print version only if
2722         set.
2723         (save_relocs): save relocs for both input and output.
2724         (make_one): support internal/external different names.
2725         (pe_dll_generate_implib): support new make_one
2726         (pe_process_import_defs): new function; handles IMPORT
2727         directives in .def files.
2728
2729 Fri Nov 20 13:06:49 1998  Nick Clifton  <nickc@cygnus.com>
2730
2731         * ldmisc.c (vfinfo): Cope with empty symbol names.
2732
2733 Thu Nov 19 13:31:15 1998  Nick Clifton  <nickc@cygnus.com>
2734
2735         * scripttempl/pe.sc: Add provision of '_end' symbol.
2736
2737 Wed Nov 18 18:18:43 1998  Geoffrey Noer  <noer@cygnus.com>
2738
2739         * configure.tgt: change refs from cygwin32* to cygwin*.
2740         * aclocal.m4: regenerate
2741         * configure.in: don't need to call AM_CYGWIN32.
2742         * configure: regenerate
2743
2744 Mon Nov 16 22:14:07 1998  DJ Delorie  <dj@cygnus.com>
2745
2746         * emultempl/pe.em (gld_i386_finish): generate import library
2747         * deffile.h: add hint member.
2748         * pe-dll.c (pe_dll_generate_implib): New function with helpers;
2749         generates the import library directly from the export table.
2750         (fill_edata): remember the actual hint for the import library.
2751
2752 Sat Nov 14 14:36:24 1998  Ian Lance Taylor  <ian@cygnus.com>
2753
2754         * ld.1: Some cleanups from NOKUBI Hirotaka <hnokubi@yyy.or.jp>.
2755
2756 Thu Nov 12 19:21:57 1998  Dave Brolley  <brolley@cygnus.com>
2757
2758         * po/ld.pot: Regenerated.
2759         * po/POTFILES.in: Regenerated.
2760         * configure: Regenerated.
2761         * aclocal.m4: Regenerated.
2762         * Makefile.in: Regenerated.
2763
2764 Wed Nov 11 18:10:15 1998  DJ Delorie  <dj@cygnus.com>
2765
2766         * pe-dll.c (generate_reloc): don't output PE relocs for sections
2767         that won't be loaded.
2768
2769 Wed Nov 11 13:44:54 1998  DJ Delorie  <dj@cygnus.com>
2770
2771         * pe-dll.c (fill_edata): don't strip underscores
2772
2773 Tue Nov 10 21:28:19 1998  DJ Delorie  <dj@cygnus.com>
2774
2775         * ld.texinfo: added i386pe option summary
2776
2777 Tue Nov 10 17:53:17 1998  DJ Delorie  <dj@cygnus.com>
2778
2779         * pe-dll.c (process_def_file): properly note undefined exported
2780         symbols, clean up old code.
2781         (pe_dll_generate_def_file): don't crash if pe_def_file is NULL
2782         * emultempl/pe.em (gld_i386_parse_args): add
2783         (en/dis)able-stdcall-fixups
2784         (pe_fixup_stdcalls): warn about stdcall fixups
2785         (gld_i386_unrecognized_file): make exported symbols undefs so that
2786         archive members get pulled in
2787
2788 Tue Nov 10 14:50:51 1998  Catherine Moore  <clm@cygnus.com>
2789
2790         * scripttempl/elfd10v.sc: Add KEEP attribute to .init,
2791         .fini, .dtors and .ctors.  Add .data and .text
2792         wildcards to support section garbage collection.
2793
2794 Mon Nov  9 22:52:50 1998  DJ Delorie  <dj@indy.delorie.com>
2795
2796         * deffilep.y: properly handle relocs with multiple def_files,
2797         cache import module names
2798
2799 Mon Nov  9 22:44:58 1998  DJ Delorie  <dj@cygnus.com>
2800
2801         * pe-dll.c (process_def_file): don't assume exports won't move
2802         during a realloc
2803
2804 Mon Nov  9 16:41:30 1998  DJ Delorie  <dj@cygnus.com>
2805
2806         * pe-dll.c: New file; direct support for PE DLLs
2807         * deffile.h: New file; direct support for PE DLLs
2808         * deffilep.y: New file; direct support for PE DLLs
2809         * emultempl/pe.em: add direct support for PE DLLs
2810         * configure.tgt: allow target-specific extra files
2811         * configure.in: allow target-specific extra files
2812         * ldlang.c (lang_add_assignment): return the assignment so that
2813         one can change the value later based on the object files (pe-dll
2814         DEF files do this)
2815         * ldint.texinfo: add section for emulation walkthrough
2816         * Makefile.am: add new files and target-specific extra files
2817         * emultempl/pe.em (gld_i386_list_options): list dll-specific
2818         options.
2819         * pe-dll.c (process_def_file): auto-export everything if
2820         nothing is otherwise exported.
2821
2822 Wed Nov  4 16:39:18 1998  Nick Clifton  <nickc@cygnus.com>
2823
2824         * Makefile.am: Add support for FR30 target.
2825         * configure.tgt: Add support for FR30 target.
2826         * Makefile.in: Regenerate.
2827         * emulparams/fr30.sh: New file.
2828         * scripttemp/fr30.sc: New file.
2829
2830 Mon Nov  2 14:47:15 1998  Catherine Moore  <clm@cygnus.com>
2831
2832         * ldmain.c (main):  Don't report error for dynamic links and
2833         --gc-sections.
2834
2835 1998-10-26 16:05  Ulrich Drepper  <drepper@cygnus.com>
2836
2837         * lexsup.c (ld_options): Change text of -O to Optimize output file".
2838         (parse_args): Set link_info.optimize based on -O argument.
2839         * ldmain.c (main): Initialize link_info.optimze to false.
2840         * ld.texinfo: Describe -O option.
2841         * ld.1: Likewise.
2842
2843 Mon Oct 12 14:29:56 1998  Nick Clifton  <nickc@cygnus.com>
2844
2845         * scripttempl/v850.sc: Move .sbss and .scommon sections into their
2846         own segment, so that they can be next to the .bss section and so
2847         initialised by the same piece of code.
2848
2849 Fri Oct  9 15:59:52 1998  Catherine Moore  <clm@cygnus.com>
2850
2851         * scripttempl/elf.sc:  Merge .sdata.* etc sections.
2852         * ldctor.c (ldctor_build_sets):  Set SEC_KEEP for
2853         ctor sections.
2854
2855 Mon Oct  5 09:40:43 1998  Catherine Moore  <clm@cygnus.com>
2856
2857         * ldmain.c (main):  Error if --gc-sections and
2858         dyanmic linking.
2859         * scripttempl/v850.sc:  Add KEEP attribute to .init,
2860         .fini, .dtors and .ctors.  Add .data and .text
2861         wildcards to support section garbage collection.
2862
2863 Wed Sep 30 11:19:15 1998  Nick Clifton  <nickc@cygnus.com>
2864
2865         * scripttempl/v850.sc: Rename .call_table section to
2866         .call_table_data and create a new section called
2867         .call_table_text.
2868
2869 Sun Sep 20 00:43:26 1998  Ian Lance Taylor  <ian@cygnus.com>
2870
2871         * scripttempl/elf.sc: Add alignment at the end of the .bss
2872         section, so that it is included in the memsize of the segment.
2873
2874 Fri Sep 18 13:42:42 1998  Catherine Moore  <clm@cygnus.com>
2875
2876         * emultempl/elf32.em (gld_place_orphan): Don't process for
2877         sections with SEC_EXCLUDE flag.
2878
2879 Fri Sep  4 09:24:02 1998  Nick Clifton  <nickc@cygnus.com>
2880
2881         * emulparams/d30velf.sh (TEXT_SIZE): Increased to 2000K.
2882         (DATA_SIZE): Increased to 2000K.
2883
2884 Thu Sep  3 17:30:58 1998  Richard Henderson  <rth@cygnus.com>
2885
2886         * emulparams/d10velf.sh (TEMPLATE_NAME): Use elf32.
2887
2888 Mon Aug 31 01:06:00 1998  Catherine Moore  <clm@cygnus.com>
2889
2890         * Makefile.am:  Change armelf.sc to elf.sc
2891         * Makefile.in:  Regenerate.
2892
2893 Mon Aug 31 11:12:04 1998  Catherine Moore  <clm@cygnus.com>
2894
2895         * emulparams/armelf.sh:  Change SCRIPT_NAME to
2896         elf.  Change TEXT_START_ADDR to 0x8000.  Define
2897         OTHER_TEXT_SECTIONS, OTHER_BSS_SYMBOLS and
2898         OTHER_BSS_END_SYMBOLS.
2899         * scripttempl/elf.sc:  Modify to use
2900         OTHER_BSS_END_SYMBOLS.
2901         * scripttempl/elfarm.sc:  Remove file.
2902
2903 Tue Aug 18 12:05:34 1998  Catherine Moore  <clm@cygnus.com>
2904
2905         * emultempl/armelf.em (gld_armelf_before_allocation):
2906         Add bfd_ prefix to elf32_arm_process_before_allocation
2907         and elf32_arm_allocate_interworking_sections.
2908         (gld_armelf_after_open): Add bfd_ prefix to
2909         elf32_arm_get_bfd_for_interworking.
2910
2911 Fri Aug 14 15:34:29 1998  Ian Lance Taylor  <ian@cygnus.com>
2912
2913         * Makefile.am: Rebuild dependencies.
2914         * Makefile.in: Rebuild.
2915
2916         * ldgram.y: Include "ldctor.h".
2917         (statement): Accept SORT around CONSTRUCTORS.
2918         * ldctor.c: Include <ctype.h>.
2919         (constructors_sorted): New global variable.
2920         (ctor_prio, ctor_cmp): New static functions.
2921         (ldctor_build_sets): Sort constructors if requested.
2922         * ldctor.h (constructors_sorted): Declare.
2923         * ldlang.c (print_statement): Print sorted CONSTRUCTORS
2924         correctly.
2925         * scripttempl/elf.sc: Add sort around CONSTRUCTORS.
2926         * ld.texinfo (Output Section Keywords): Document SORT
2927         (CONSTRUCTORS).
2928
2929 Thu Aug 13 12:20:39 1998  Catherine Moore  <clm@cygnus.com>
2930
2931         * emulparams/armelf.sh:  Define TEMPLATE_NAME to armelf.
2932         * scripttempl/elfarm.sc:  Include .glue_7t and .glue7
2933         sections.
2934         * emultempl/armelf.em: New file.
2935
2936 Thu Aug 13 12:52:45 1998  H.J. Lu  <hjl@gnu.org>
2937
2938         * Makefile.am (ld.dvi): Use " instead of ' for MAKEINFO.
2939         * Makefile.in: Rebuild.
2940
2941 Tue Aug 11 16:17:01 1998  Catherine Moore  <clm@cygnus.com>
2942
2943         * scripttempl/elfarm.sc:  Change text start address
2944         back to zero.
2945
2946 Tue Aug 11 10:01:12 1998  Jeffrey A Law  (law@cygnus.com)
2947
2948         * emulparms/mn10200.sh (MAX_PAGESIZE): Define to 1.
2949         * emulparms/mn10300.sh (MAX_PAGESIZE): Define to 1.
2950
2951 Sun Aug  9 20:31:27 1998  Catherine Moore  <clm@cygnus.com>
2952
2953         * scripttempl/elfarm.sc:  Set text start address to
2954         0x8000.  Add __bss_end definition.
2955
2956 Sat Aug  1 11:47:37 1998  Catherine Moore  <clm@cygnus.com>
2957
2958         * scripttempl/elfarm.sc:  New file.
2959         * emulparams/armelf.sh: Set SCRIPT_NAME to elfarm.
2960
2961 Fri Jul 31 15:56:16 1998  Catherine Moore  <clm@cygnus.com>
2962
2963         * emulparams/armelf.sh: New file.
2964         * configure.tgt:  Recognize thumb-elf and arm-elf.
2965         * Makefile.am (earmelf.o): New.
2966         * Makefile.in: Rebuild.
2967
2968 Fri Jul 24 12:00:57 1998  Ian Lance Taylor  <ian@cygnus.com>
2969
2970         * Makefile.am (install-exec-local): Don't remove the file before
2971         checking whether $(bindir) == $(tooldir)/bin.  From Maciej
2972         W. Rozycki <macro@ds2.pg.gda.pl>.
2973         * Makefile.in: Rebuild.
2974
2975         * configure.tgt: Recognize h8[35]00*-coff* as well as -hms*.
2976
2977 Thu Jul 23 11:15:12 1998  Ian Lance Taylor  <ian@cygnus.com>
2978
2979         * scripttempl/aout.sc: If ALIGNMENT is defined, use it to set
2980         alignment of end symbol.
2981         * scripttempl/elf.sc: Likewise.
2982         * emulparams/sun4.sh (ALIGNMENT): Define.
2983         * emulparams/elf32_sparc.sh (ALIGNMENT): Define.
2984         * ldint.texinfo (emulation parameters): Document ALIGNMENT.
2985
2986         * lexsup.c (parse_args): Add missing break statement.
2987
2988         * ldlang.c (lang_gc_sections_1): Add default case to switch to
2989         avoid warnings.
2990
2991 Tue Jul 14 15:42:17 1998  Richard Henderson  <rth@cygnus.com>
2992
2993         * configure.tgt (i?86-*-beos{pe,elf,}*): Recognize.
2994         * Makefile.am (ei386beos.o): New.
2995         * emulparams/i386beos.sh: New file.
2996         * emultempl/beos.em, scripttempl/i386beos.sc: New file.
2997
2998 Tue Jul 14 15:35:42 1998  Richard Henderson  <rth@cygnus.com>
2999
3000         * lexsup.c: New option --version-exports-section.
3001         * ld.h (struct args_type): Add version_exports_section.
3002         * ldlang.c (lang_do_version_exports_section): New function.
3003         (lang_process): Call it.
3004
3005 Mon Jul 13 13:20:23 1998  Steve Chamberlain  <sac@transmeta.com>
3006
3007         * ldlex.l: Accept ASSERT.
3008         * ldgram.y (exp): Add ASSERT_K case.
3009         * ldexp.h (node_type): Add etree_assert to node_class enum.
3010         (etree_type): Add assert_s field.
3011         (exp_assert): Declare.
3012         * ldexp.c (exp_fold_tree): Handle etree_assert.
3013         (exp_assert): New function.
3014         (exp_print_tree): Handle etree_assert.
3015         * ld.texinfo (Miscellaneous Commands): Document ASSERT.
3016
3017 Wed Jul  8 14:03:12 1998  Ian Lance Taylor  <ian@cygnus.com>
3018
3019         * ldgram.y: Change MAX to MAX_K and MIN to MIN_K, to avoid
3020         conflicts with system header files.  Change all uses.
3021
3022         * Makefile.am (MAINTAINERCLEANFILES): Define.
3023         * Makefile.in: Rebuild.
3024
3025 Tue Jul  7 18:03:22 1998  Ian Lance Taylor  <ian@cygnus.com>
3026
3027         * Makefile.am (ldver.texi): New target.
3028         (ld.info, ld.dvi): Depend upon ldver.texi.
3029         * ld.texinfo: Include ldver.texi.  Mention version number on title
3030         page and in top node.
3031         * Makefile.in: Rebuild.
3032
3033 Mon Jul  6 14:55:13 1998  Ian Lance Taylor  <ian@cygnus.com>
3034
3035         * configure.tgt (i[3456]86-*-solaris*): New target.
3036
3037 Fri Jul  3 14:19:06 1998  Ian Lance Taylor  <ian@cygnus.com>
3038
3039         * ldlang.c (wild_section): Don't get an assertion failure if the
3040         section is discarded.
3041
3042         * scripttempl/pe.sc: Use SORT to sort sections appropriately.
3043         * emultempl/pe.em (sort_by_file_name): Remove.
3044         (sort_by_section_name): Remove.
3045         (sort_sections_1, sort_sections): Remove.
3046         (gld_${EMULATION_NAME}_before_allocation): Don't call
3047         sort_sections.
3048         (hold_section, hold_section_name): New static variables.
3049         (hold_use, hold_text, hold_rdata, hold_data, hold_bss): Likewise.
3050         (gld_${EMULATION_NAME}_place_orphan): Rewrite.  Look for a good
3051         place to put the section.  Align the section.  Sort the input
3052         sections by name.
3053         (gld_${EMULATION_NAME}_place_section): New static function.
3054
3055         * ldlang.c (wild_sort): When sorting by file name, sort by archive
3056         name first.
3057
3058         * emultempl/pe.em (set_pe_subsystem): Don't call
3059         ldlang_add_undef.
3060         (gld_${EMULATION_NAME}_after_parse): New static function.
3061         (ld_${EMULATION_NAME}_emulation): Use new after_parse function
3062         rather than after_parse_default.
3063
3064         * ldgram.y (extern_name_list): Do not require symbols to be
3065         separated by commas.
3066         (ifile_p1): Add EXTERN.
3067         * ldlex.l: Accept EXTERN in BOTH and SCRIPT mode as well as MRI
3068         mode.
3069         * ld.texinfo (Options): Mention that EXTERN is equivalent to -u.
3070         (Miscellaneous Commands): Document EXTERN.
3071
3072 Wed Jul  1 19:40:34 1998  Richard Henderson <rth@cygnus.com>
3073
3074         * ld.h (args_type): Add gc_sections.
3075         * ldgram.y (ldgram_had_keep, KEEP): New.
3076         (input_section_spec_no_keep): Rename from old input_section_spec.
3077         (input_section_spec): New.  Recognize KEEP.
3078         * ldlang.c (wild_section): Handle keep sections.
3079         (lang_gc_wild_section, lang_gc_wild_file, lang_gc_wild): New.
3080         (lang_gc_sections_1, lang_gc_sections): New.
3081         (lang_process): Invoke lang_gc_sections.
3082         (lang_add_wild): Add keep argument.  Update all callers.
3083         * ldlang.h (lang_wild_statement_struct): Add keep_sections.
3084         * ldlex.l (KEEP): Match it.
3085         * ldmain.c (main): Error on -r and --gc-sections.
3086         * lexsup.c: Add --gc-sections.
3087
3088         * scripttempl/elf.sc: Merge .text.* etc sections appropriately.
3089         Mark startup sections with KEEP.
3090         * scripttempl/elfppc.sc: Likewise.
3091
3092         * ld.texinfo: Update for --gc-sections and KEEP.
3093
3094 Wed Jul  1 15:21:20 1998  Ian Lance Taylor  <ian@cygnus.com>
3095
3096         From Peter Jordan <pjordan@chla.usc.edu>:
3097         * scripttempl/i386go32.sc: Correct constructor handling for -u.
3098
3099 Tue Jun 23 15:17:27 1998  Ian Lance Taylor  <ian@cygnus.com>
3100
3101         * Makefile.am (install-data-local): Make ldscripts subdirectory.
3102         * Makefile.in: Rebuild.
3103
3104 Tue Jun 23 15:17:04 1998  Mike Stump  <mrs@wrs.com>
3105
3106         * Makefile.am (install-exec-local): Don't let EXEEXT interfere
3107         with the program transform name.
3108         * Makefile.in: Rebuild.
3109
3110 Sun Jun 21 23:55:16 1998  Jeffrey A Law  (law@cygnus.com)
3111
3112         * ld.texinfo: Note that -relax may make symbolic debugging
3113         impossible on some platforms.
3114
3115 Tue Jun 16 12:51:13 1998  Geoff Keating  <geoffk@ozemail.com.au>
3116
3117         * Makefile.am (Makefile): Remove target.
3118         (config.status): New target.
3119         * Makefile.in: Rebuild.
3120
3121         * configure.host (powerpc*-*-linux-gnu*): New host.
3122
3123 Fri Jun 12 17:38:07 1998  Doug Evans  <devans@seba.cygnus.com>
3124
3125         * scripttempl/elf.sc (INPUT_FILES): Optional INPUT spec.
3126
3127         * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Change top of
3128         stack to 8MB.
3129
3130 Fri Jun 12 19:33:17 1998  Ian Lance Taylor  <ian@cygnus.com>
3131
3132         * Makefile.am (HFILES): Remove config.h.
3133         (EMULATION_OFILES, POTFILES): Move patch of May 14 from
3134         Makefile.in to Makefile.am.
3135         (earmcoff.c): Depend upon armcoff.em, not generic.em.
3136         * po/Make-in (all-yes): Correct misspelling in $(PACKAGE).
3137         ($(srcdir)/$(PACKAGE).pot): Pass -C to $(XGETTEXT).
3138         * Makefile.in, po/POTFILES.in, po/ld.pot: Rebuild.
3139
3140 Fri Jun 12 13:43:17 1998  Tom Tromey  <tromey@cygnus.com>
3141
3142         * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
3143         ($(PACKAGE).pot): Unconditionally depend on POTFILES.
3144
3145 Tue Jun  9 09:36:48 1998  Nick Clifton  <nickc@cygnus.com>
3146
3147         * ldlang.c (lang_finish): Add CONST type modifier to declaration
3148         of 'send'.
3149
3150 Fri Jun  5 18:19:59 1998  Ian Lance Taylor  <ian@cygnus.com>
3151
3152         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
3153         config.has_shared to true.
3154         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
3155         Likewise.
3156         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse):
3157         Likewise.
3158
3159 Tue Jun  2 12:55:03 1998  Ian Lance Taylor  <ian@cygnus.com>
3160
3161         * ldlang.c (lang_finish): If the entry symbol is not found, try
3162         parsing it as a number.
3163         * ld.texinfo (Options): Document this.
3164
3165 Mon Jun  1 14:01:20 1998  Ian Lance Taylor  <ian@cygnus.com>
3166
3167         * ld.texinfo (Input Section Wildcards): Document SORT keyword.
3168
3169 Mon May 18 12:42:53 1998  Doug Evans  <devans@canuck.cygnus.com>
3170
3171         * ld.h (ld_config_type): New member has_shared.
3172         * ldmain.c (main): Initialize it.
3173         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set it.
3174         * lexsup.c (parse_args): Treat -shared as error if not supported.
3175
3176 Mon May 18 13:14:43 1998  Ian Lance Taylor  <ian@cygnus.com>
3177
3178         From Jason Merrill <jason@cygnus.com>:
3179         * ldlang.c (wild_sort): Correct order of sort.
3180         * scripttempl/elf.sc: Put *crtbegin.o before other .ctors and
3181         .dtors.
3182         * scripttempl/elfd10v.sc: Likewise.
3183         * scripttempl/elfd30v.sc: Likewise.
3184         * scripttempl/elfppc.sc: Likewise.
3185
3186 Fri May 15 00:22:35 1998  Ian Lance Taylor  <ian@cygnus.com>
3187
3188         * ldlex.l: Recognize keyword SORT.
3189         * ldgram.y (current_file): Change to struct wildcard_spec.
3190         (%union): Add new fields cname and wildcard.
3191         (wildcard_name, wildcard_spec): New nonterminals.
3192         (file_NAME_list): Use wildcard_spec.
3193         (input_section_spec): Change current_file usage.
3194         * ld.h (struct wildcard_spec): Define.
3195         * ldlang.h (lang_wild_statement_struct): Add new fields
3196         sections_sorted and filenames_sorted.
3197         (lang_add_wild): Update declaration.
3198         * ldlang.c (wild_sort): New static function.
3199         (wild_section): Use wild_sort.
3200         (print_wild_statement): Print sorting information.
3201         (lang_add_wild): Add new parameters sections_sorted and
3202         filenames_sorted.  Change all callers.
3203         * mri.c (mri_draw_tree): Update calls to lang_add_wild.
3204         * scripttempl/elf.sc: Sort .ctors.* and .dtors.* by section name.
3205         * scripttempl/elfd10v.sc: Likewise.
3206         * scripttempl/elfd30v.sc: Likewise.
3207         * scripttempl/elfppc.sc: Likewise.
3208
3209 Thu May 14 18:39:16 1998  Richard Henderson  <rth@cygnus.com>
3210
3211         * emulparams/m32relf.sh (TEMPLATE_NAME): Define.
3212
3213 Thu May 14 14:51:24 1998  Nick Clifton  <nickc@cygnus.com>
3214
3215         * ldemul.h: Add new prototype: ldemul_list_emulation_options.
3216         (ld_emulation_xfer_struct): Add new field: list_options.
3217         * ldemul.c (ldemul_list_options): New function.  Call the
3218         list_options field of the ld_emulation_xfer_struct for each
3219         supported emulation, if such a function is present.
3220         * lexsup.c (help): Call ldemul_list_emulation_options.
3221         * emultempl/pe.em (gld_<>_list_options): New function.  Describe
3222         the pe emulation specific command line options.
3223         * emultempl/armcoff.em (gld<>_list_options): New function.
3224         Describe  the armcoff emulation specific command line options.
3225
3226         * emultempl/pe.em: Add a new command line option:
3227         --support-old-code.
3228         * emultempl/armcoff.em: Ditto.
3229         * ld.texinfo: Document the --support-old-code option.
3230
3231         * Makefile.in: Add emulation files for POTFILES.in target.
3232         * emultempl/pe.em: Internationalise suitable strings.
3233         * emultempl/armcoff.em: Internationalise suitable strings.
3234         * po/POTFILES.in: Rebuilt.
3235
3236 Sun May 10 22:36:30 1998  Jeffrey A Law  (law@cygnus.com)
3237
3238         * po/Make-in (install-info): New target.
3239
3240 Tue Apr 28 19:18:30 1998  Tom Tromey  <tromey@cygnus.com>
3241
3242         * ldmain.c (main): Conditionally call setlocale.
3243         * ld.h: Include <locale.h> if HAVE_LOCALE_H.
3244         (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
3245
3246 Mon Apr 27 11:56:21 1998  Ian Lance Taylor  <ian@cygnus.com>
3247
3248         * configure.in: Change version number to 2.9.4
3249         * configure: Rebuild.
3250
3251         * ld.texinfo (Options) [-rpath-link]: Mention ld.so.conf.
3252
3253         Based on patch from H.J. Lu <hjl@gnu.org>:
3254         * emultempl/elf32.em (global_vercheck_needed): New file static
3255         variable.
3256         (global_vercheck_failed): New file static variable.
3257         (gld${EMULATION_NAME}_after_open): Check for shared libraries
3258         twice, once with force set to 0 and once with it set to 1.
3259         (gld${EMULATION_NAME}_check_ld_so_conf): Add force parameter.
3260         Change all callers.
3261         (gld${EMULATION_NAME}_search_needed): Likewise.
3262         (gld${EMULATION_NAME}_try_needed): Likewise.  If not force, check
3263         whether the libraries needs any incompatible versions.
3264         (gld${EMULATION_NAME}_vercheck): New static function.
3265
3266 Wed Apr 22 16:01:35 1998  Tom Tromey  <tromey@cygnus.com>
3267
3268         * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
3269
3270 Wed Apr 22 12:40:56 1998  Ian Lance Taylor  <ian@cygnus.com>
3271
3272         * Makefile.am (check-DEJAGNU): Add $(INTLLIBS) to LIBIBERTY when
3273         invoking runtest.
3274         * Makefile.in: Rebuild.
3275
3276         * lexsup.c (parse_args): Change -l options into --library options
3277         to avoid confusion between -li and -library.
3278
3279         * ld.texinfo (MEMORY): Clarify use of >REGION.
3280
3281 Tue Apr 21 23:12:40 1998  Tom Tromey  <tromey@scribbles.cygnus.com>
3282
3283         * Many files: Added gettext invocations around user-visible
3284         strings.
3285         * ld.h: Added gettext-related includes and defines.
3286         * ldmain.c: Call setlocale, bindtextdomain, textdomain.
3287         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
3288         HAVE_LC_MESSAGES): Define.
3289         * configure.in: Call CY_GNU_GETTEXT.  Create po/Makefile.in and
3290         po/Makefile.  Use AM_PROG_LEX.
3291         (TDIRS): AC_SUBST early on, to avoid having value split when it
3292         happens to cross line 90 of the generated sed script.
3293         * Makefile.am (SUBDIRS): New macro.
3294         (POTFILES): Likewise.
3295         (po/POTFILES.in): New target.
3296         (ld_new_LDADD): Added INTLLIBS.
3297         (ld_new_DEPENDENCIES): Added INTLDEPS.
3298         * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
3299
3300 Tue Apr 21 23:07:07 1998  Ian Lance Taylor  <ian@cygnus.com>
3301
3302         * ld.texinfo (Simple Example): Rewrite a few things as suggested
3303         by Nick Clifton <nickc@cygnus.com>.
3304         (PROVIDE): Likewise.
3305
3306 Tue Apr 21 09:55:06 1998  Nick Clifton  <nickc@cygnus.com>
3307
3308         * emultempl/pe.em: Rename external arm interworking functions
3309         to conform to BFD naming conventions.  Add code to _after_open()
3310         function to obtain a bfd for use by the interworking code.
3311
3312         * emultempl/armcoff.em: Rename external arm interworking functions
3313         to conform to BFD naming conventions.  Add new _after_open()
3314         function to obtain a bfd for use by the interworking code.
3315
3316 Sun Apr 19 19:23:09 1998  Richard Henderson  <rth@cygnus.com>
3317
3318         * ldlang.c (lang_size_sections) [case lang_assignment_statement_enum]:
3319         Update dot and the default memory section even when relaxing.
3320
3321 Sat Apr 18 18:41:12 1998  Richard Henderson  <rth@cygnus.com>
3322
3323         * ldlang.c (lang_one_common): Manipulate the section's cooked size
3324         rather than its raw size.
3325
3326 Tue Apr  7 13:35:29 1998  H.J. Lu  <hjl@gnu.org>
3327
3328         * configure.in (TESTBFDLIB): New.  Defined and substituted.
3329         * Makefile.am (TESTBFDLIB): Changed to @TESTBFDLIB@.
3330         * configure, Makefile.in: Rebuild.
3331
3332 Mon Apr  6 15:33:39 1998  Ian Lance Taylor  <ian@cygnus.com>
3333
3334         * Makefile.am (ld.info): Invoke makeinfo with -I options directly
3335         rather than relying on default rule.  Don't depend upon
3336         bfdsumm.texi.
3337         (ld.dvi): Likewise.
3338         (bfdsumm.texi): Remove target.
3339         (CLEANFILES): Take bfdsumm.texi out of value.
3340         * Makefile.in: Rebuild.
3341
3342 Sun Apr  5 13:07:57 1998  Ian Lance Taylor  <ian@cygnus.com>
3343
3344         * scripttempl/pe.sc: Use shell variables to avoid depending upon
3345         how $ is handled when expanding a shell substitution.
3346
3347 Fri Apr  3 00:56:50 1998  Ian Lance Taylor  <ian@cygnus.com>
3348
3349         * Makefile.am (MOSTLYCLEANFILES): Add ld.log and ld.sum.
3350         (DISTCLEANFILES): Add site.exp and site.bak.
3351         * Makefile.in: Rebuild.
3352
3353         * configure.in: Put the tdirs in a file and use AC_SUBST_FILE,
3354         rather than in a shell variable and using AC_SUBST.
3355         * Makefile.am (DISTCLEANFILES): Remove ldscripts.  Add tdirs.
3356         (distclean-local): New target.
3357         * configure, Makefile.in: Rebuild.
3358
3359         * ld.texinfo: Completely rewrite linker script documentation.
3360
3361 Mon Mar 30 12:47:33 1998  Ian Lance Taylor  <ian@cygnus.com>
3362
3363         * configure.in: Set version to 2.9.1.
3364         * configure: Rebuild.
3365
3366         * Branched binutils 2.9.
3367
3368 Sat Mar 28 16:48:19 1998  Ian Lance Taylor  <ian@cygnus.com>
3369
3370         * Makefile.am (MOSTLYCLEANFILES): Remove tmpdir.
3371         (mostlyclean-local): New target to remove tmpdir.
3372         * Makefile.in: Rebuild.
3373
3374         Fix some gcc -Wall warnings:
3375         * ldcref.c (output_cref): Add casts to avoid warnings.
3376         * ldfile.c (ldfile_add_arch): Likewise.
3377         * ldlang.c (lang_leave_overlay_section): Likewise.
3378         * lexsup.c (OPTION_COUNT): Likewise.
3379         (parse_args): Likewise.
3380         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan):
3381         Likewise.
3382         * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Likewise.
3383         * ldlang.c (lang_check): Initialize variables to avoid warnings.
3384         * ldwrite.c (build_link_order): Likewise.
3385         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Likewise.
3386         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_allocation):
3387         Remove unused variables.
3388
3389         * Makefile.am (MOSTLYCLEANFILES): Correct name (was
3390         MOSTCLEANFILES).
3391         * Makefile.in: Rebuild.
3392
3393 Fri Mar 27 16:39:25 1998  Ian Lance Taylor  <ian@cygnus.com>
3394
3395         * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Put
3396         ARM code inside ifdef TARGET_IS_armpe.
3397
3398 Wed Mar 25 11:34:13 1998  Ian Lance Taylor  <ian@cygnus.com>
3399
3400         Based on patch from H.J. Lu  <hjl@gnu.org>:
3401         * Makefile.am (LDDISTSTUFF): New variable.
3402         (diststuff): New target.
3403         * Makefile.in: Rebuild.
3404
3405         * scripttempl/pe.sc: Only include .idata\$[0-7] in .idata when
3406         relocating.
3407
3408 Tue Mar 24 15:59:29 1998  Nick Clifton  <nickc@cygnus.com>
3409
3410         * scripttempl/pe.sc (.text): Add .glue_7 and .glue_7t sections to
3411         hold Arm/Thumb stubs.
3412
3413         * emultempl/pe.em (gld_pe_before_allocation): Call
3414         arm_process_before_allocation (for ARM/Thumb targets) in order to
3415         gather interworking stb information.
3416
3417 Mon Mar 23 18:54:15 1998  Joel Sherrill  <joel@OARcorp.com>
3418
3419         * configure.tgt: (sh*-*-rtems*): Switched from ELF to COFF.
3420
3421 Fri Mar 20 19:17:13 1998  Ian Lance Taylor  <ian@cygnus.com>
3422
3423         * aclocal.m4, configure: Rebuild with libtool 1.2.
3424
3425 Thu Mar 19 14:54:45 1998  Geoffrey Noer  <noer@cygnus.com>
3426
3427         * scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy
3428         section to avoid copying certain data on fork.  The linker used to
3429         include this between __data_start__ and __data_end__, but that
3430         breaks building the cygwin32 dll.  The fix is to rename the
3431         section ".data_cygwin_nocopy" and explictly include it after
3432         __data_end__.
3433
3434 Wed Mar 18 09:42:24 1998  Nick Clifton  <nickc@cygnus.com>
3435
3436         * configure.tgt (targ_extra_emuls): Add thumb-pe target.
3437
3438 Sun Mar  8 23:34:14 1998  Stan Cox  <scox@equinox.cygnus.com>
3439
3440         * configure.tgt (sparclite*-*-elf): Added.
3441
3442 Mon Mar  2 19:24:08 1998  Michael Meissner  <meissner@cygnus.com>
3443
3444         * ldlang.c (lang_size_sections): If the default memory region is
3445         *default*, see if there is a memory region that could be used.
3446
3447 Thu Feb 26 17:09:53 1998  Michael Meissner  <meissner@cygnus.com>
3448
3449         * scripttempl/elfd30v.sc: Add support for .eit_v section and put
3450         it at 0xfffff020.
3451         * emulparams/d30v{elf,_o,_e}.sh: Ditto.
3452
3453 Mon Feb 23 17:46:51 1998  Ian Lance Taylor  <ian@cygnus.com>
3454
3455         * emultempl/pe.em (sort_sections): Permit the wildcard to include
3456         a trailing '*' when sorting grouped sections.
3457         * scripttempl/pe.sc: Include grouped sections using NAME\$*.  Only
3458         include them when relocating.
3459
3460 Wed Feb 18 23:39:46 1998  Richard Henderson  <rth@cygnus.com>
3461
3462         * Makefile.am (install-exec-local): Install properly when ln
3463         fails or tooldir == prefix.
3464
3465 Fri Feb 13 15:24:06 1998  Ian Lance Taylor  <ian@cygnus.com>
3466
3467         * Makefile.am (AUTOMAKE_OPTIONS): Define.
3468         * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
3469
3470 Thu Feb 12 14:10:44 1998  Ian Lance Taylor  <ian@cygnus.com>
3471
3472         * scripttempl/elf.sc: Align the _end symbol according to the ELF
3473         format size.  From Gordon W. Ross <gwr@mc.com>.
3474
3475         NetBSD patches from Gordon W. Ross <gwr@mc.com>:
3476         * configure.host (alpha*-*-netbsd*): New host.
3477         * configure.tgt (alpha*-*-netbsd*, powerpc-*-netbsd*): New
3478         targets.
3479
3480         * lexsup.c (help): Update bug-gnu-utils address.
3481         * ld.texinfo (Bug Reporting): Likewise.
3482
3483 Tue Feb 10 18:05:56 1998  Ian Lance Taylor  <ian@cygnus.com>
3484
3485         * ldlang.c (lang_size_sections): Warn if some memory regions were
3486         defined, but a loadable section is going into the default memory
3487         region.
3488
3489 Tue Feb 10 16:17:20 1998  H.J. Lu  <hjl@gnu.org>
3490
3491         * ldlex.l (V_IDENTIFIER): Allow '.' as symbol prefix.
3492
3493 Tue Feb 10 15:09:45 1998  Ian Lance Taylor  <ian@cygnus.com>
3494
3495         * Makefile.am (Makefile): Add target, for dependencies on
3496         configure.host and configure.tgt.
3497         * configure.host, configure.tgt: Change -linux* to -linux-gnu*.
3498         * Makefile.in: Rebuild.
3499
3500 Mon Feb  9 13:44:40 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3501
3502         * scripttempl/elfd10v.sc (.stack): Move stack to 0x00..7FFE.
3503
3504         * emulparams/d10velf.sh (READONLY_START_ADDR): Read only section
3505         moved to 0x00.....4.
3506
3507 Sat Feb  7 15:41:26 1998  Ian Lance Taylor  <ian@cygnus.com>
3508
3509         * configure, aclocal.m4: Rebuild with new libtool.
3510
3511 Thu Feb  5 12:16:11 1998  Ian Lance Taylor  <ian@cygnus.com>
3512
3513         * scripttempl/pe.sc: Remove ${RELOCATING-0} from all sections.
3514         From Thomas de Lellis <tdel@wrs.com>.
3515
3516         * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
3517
3518 Wed Feb  4 13:02:32 1998  Ian Lance Taylor  <ian@cygnus.com>
3519
3520         * Makefile.am (ld_new_LDADD): Remove @LEXLIB@.
3521         * Makefile.in: Rebuild.
3522
3523 Mon Feb  2 19:34:54 1998  Steve Haworth  <steve@pm.cse.rmit.EDU.AU>
3524
3525         Add tms320c30 support:
3526         * configure.tgt (tic30-*-*aout*, tic30-*-*coff*): New targets.
3527         * emulparams/tic30aout.sh: New file.
3528         * emulparams/tic30coff.sh: New file.
3529         * scripttempl/tic30aout.sc: New file.
3530         * scripttempl/tic30coff.sc: New file.
3531         * Makefile.am (ALL_EMULATIONS): Add etic30aout.o and
3532         etic30coff.o.
3533         (etic30aout.c, etic30coff.c): New targets.
3534         * Makefile.in: Rebuild.
3535
3536 Mon Feb  2 14:10:59 1998  Ian Lance Taylor  <ian@cygnus.com>
3537
3538         * configure.host: Correct HOSTING_CRT0 in alpha*-*-linux* case to
3539         accept either ld.so or ld-linux.so.
3540
3541 Fri Jan 30 19:16:28 1998  Doug Evans  <devans@canuck.cygnus.com>
3542
3543         * Makefile.am ({CC,CXX}_FOR_TARGET): Change program_transform_name
3544         to transform.
3545         * Makefile.in: Regenerate.
3546
3547 Fri Jan 30 19:15:17 1998  Geoff Keating  <geoffk@ozemail.com.au>
3548
3549         * scripttempl/elfppc.sc: Put .dynsbss in .sbss.
3550
3551 Fri Jan 30 11:43:49 1998  H.J. Lu  <hjl@gnu.ai.mit.edu>
3552
3553         * Makefile.am (eelf32bsmip.c, eelf32lsmip.c): New targets.
3554         * Makefile.in: Rebuild.
3555
3556 Thu Jan 29 16:04:21 1998  Mumit Khan  <khan@xraylith.wisc.edu>
3557
3558         * ldfile.c (slash): Set to backslash if _WIN32 but not
3559         __CYGWIN32__.
3560         (ldfile_open_file_search): If __MSDOS__ or _WIN32, accept a
3561         leading backslash or a leading x: as an absolute path.
3562         (ldfile_find_command_file): Use slash rather than / when
3563         generating name to try.
3564         * lexsup.c (PATH_SEPARATOR): Define.
3565         (set_default_dirlist): Use PATH_SEPARATOR rather than ':'.
3566
3567 Wed Jan 28 14:06:30 1998  Richard Henderson  <rth@cygnus.com>
3568
3569         * emulparams/elf64_sparc.sh (ELFSIZE): 64
3570         (TEXT_START_ADDR): Round off, since SIZEOF_HEADERS is added later.
3571         (DATA_PLT): Needed by v9 abi.
3572
3573 Wed Jan 28 16:37:27 1998  J.J. van der Heijden  <J.J.vanderHeijden@student.utwente.nl>
3574
3575         * configure.tgt (i[3456]86-*-mingw32*): New entry.
3576
3577 Wed Jan 28 15:51:58 1998  Ian Lance Taylor  <ian@cygnus.com>
3578
3579         * scripttempl/elf.sc: Only include linkonce sections in final
3580         sections when relocating.
3581
3582 Wed Jan 28 14:10:01 1998  Ian Lance Taylor  <ian@cygnus.com>
3583
3584         * ld.texinfo (Options): Add a brief description of the types of
3585         information included in a link map.
3586
3587         * ld.texinfo (Options): Mention LDEMULATION in description of -m.
3588         (Environment): Mention LDEMULATION.
3589
3590         * ld.texinfo (Options): Clarify --export-dynamic a bit.
3591
3592 Thu Jan 22 16:07:23 1998  Richard Henderson  <rth@cygnus.com>
3593
3594         * ldlex.l (<SCRIPT>{WILDCHAR}*): Take care for the comments this
3595         pattern could match.
3596
3597 Wed Jan 21 22:26:46 1998  Ian Lance Taylor  <ian@cygnus.com>
3598
3599         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): When doing
3600         a relocateable link, set the image base to 0, and don't define the
3601         various symbols.
3602         * emulparams/i386pe.sh (RELOCATEABLE_OUTPUT_FORMAT): Define.
3603         * scripttempl/pe.sc: Swap the .data and .bss sections so that
3604         .data comes first.  If doing a relocateable link, use
3605         RELOCATEABLE_OUTPUT_FORMAT if it is defined, and start the
3606         sections at 0, and don't define any symbols.
3607
3608         * ldlang.c (lang_memory_default): Correct parenthisization of
3609         expression.
3610
3611 Wed Jan 21 21:20:32 1998  Manfred Hollstein  <manfred@s-direktnet.de>
3612
3613         * emultempl/sunos.em: Don't include sys/types.h and sys/stat.h
3614         here; they are included already via sysdep.h.
3615
3616 Tue Jan  6 13:40:02 1998  Richard Henderson  <rth@cygnus.com>
3617
3618         * scripttempl/i960.sc: Don't explicitly set .data and .bss start.
3619
3620 Fri Jan  2 20:15:37 1998  Michael Meissner  <meissner@cygnus.com>
3621
3622         * ldgram.y (attributes_opt): Pass region pointer to
3623         lang_set_flags, not &region->flags.
3624
3625         * ldlang.c (lang_memory_default): New function to figure out a
3626         default memory region for a section if it was not specified.
3627         (lang_memory_region_lookup): Zero flags, not_flags field.
3628         (lang_map{,_flags}): Print attribute flags in memory map.
3629         (lang_size_sections): Call lang_memory_default to get default
3630         memory region.
3631         (lang_set_flags): Implement attribute flags for real.  Take new
3632         argument to give the flags we are to skip for this region.
3633
3634         * ldlang.h (memory_region_struct): Add not_flags field, make both
3635         flags fields flagword type.
3636         (lang_output_section_state): Make flags field flagword type.
3637         (lang_set_flags): Update prototype to match new calling sequence.
3638         (lang_memory_region_default): Add prototype.
3639
3640         * emulparams/d30v{_e,_o,elf}.sh ({TEXT,DATA,EMEM}_DEF_SECTION):
3641         Define whether or not the region gets default sections, and if so,
3642         what sections.
3643
3644         * scripttempl/elfd30v.sc (MEMORY): Set up which of the regions get
3645         default sections.
3646
3647 Thu Jan  1 22:58:04 1998  Michael Meissner  <meissner@cygnus.com>
3648
3649         * scripttempl/elfd30v.sc (.eh_frame): Link into the data section.
3650
3651 Thu Jan  1 18:04:51 1998  Jeffrey A Law  (law@cygnus.com)
3652
3653         * scripttempl/h8300h.sc: Fix typo.
3654         * scripttempl/h8300s.sc: Likewise.
3655
3656 Sun Dec 21 12:51:49 1997  Ian Lance Taylor  <ian@cygnus.com>
3657
3658         * ldexp.c (fold_name): Don't crash if the symbol is defined in a
3659         section with no output section, such as a shared library section.
3660
3661 Wed Dec 17 12:14:11 1997  Ian Lance Taylor  <ian@cygnus.com>
3662
3663         * lexsup.c (parse_args): Keep track of where we are in the option
3664         parsing before calling ldemul_parse_args, so that we don't call it
3665         multiple times on the same argument and confuse the getopt
3666         internals.
3667
3668 Thu Dec 11 09:00:15 1997  Michael Meissner  <meissner@cygnus.com>
3669
3670         * configure.tgt (d30v-elf-*): Rename d30velf_e to d30v_e and
3671         d30velf_o to d30v_o to work in DOS environments.
3672         * Makefile.{am,in}: Ditto.
3673
3674         * emulparams/d30v_{o,e}: Rename from d30velf_{o,e}.
3675         * emulparams/d30velf_{o,e}: Deleted.
3676
3677 Wed Dec 10 17:40:08 1997  Nick Clifton  <nickc@cygnus.com>
3678
3679         * scripttempl/armcoff.sc: Add glue sections (code taken from Arm
3680         branch).
3681
3682         * emulparams/armcoff.sh (TEMPLATE_NAME): Set to armcoff.
3683
3684         * emultempl/armcoff.em: New file, imported from Arm branch.
3685
3686 Wed Dec 10 14:10:44 1997  Michael Meissner  <meissner@cygnus.com>
3687
3688         * scripttempl/elfd30v.sc: Add .rel and .rela sections for all
3689         defined sections.  Set up __{D,C}TOR_{LIST,END}__.  Add onchip and
3690         external memory sections for rodata.  Delete .string, .rodata1,
3691         and .data1 sections.
3692
3693 Tue Dec  9 15:28:17 1997  Michael Meissner  <meissner@cygnus.com>
3694
3695         * Makefile.am: Add Oct 23 changes to Makefile.in here.
3696
3697         * Makefile.{am,in}: (ALL_EMULATIONS): Add ed10velf.o.
3698
3699         * Makefile.{am,in}: (ALL_EMULATIONS): Add etic80coff.o.
3700
3701         * Makefile.{am,in}: (ALL_EMULATIONS): Add ed30velf{,_e,_o}.o.
3702         (ed30velf_e.c): Like d30velf, except .text/.data/etc always go in
3703         external memory.
3704         (ed30velf_o.c): Like d30velf, except .text/.data/etc always go in
3705         onchip memory.
3706
3707         * emulparams/d30velf.sh (STACK_START_ADDR): Top of default
3708         stack.
3709         ({TEXT,DATA,EMEM}_SIZE): Sizes of the 3 memory areas.
3710         ({TEXT,DATA,BSS}_MEMORY): Which memory region .text, .data, and
3711         .bss should go in.
3712
3713         * emulparams/d30velf_{e,o}.sh: New files to be explicit whether
3714         .text, .data, etc go in external memory or onchip memory.
3715
3716         * configure.tgt (d30v-*-*ext*): New configuration to default
3717         .text, .data, etc. in external memory.
3718         (d30v-*-*onchip*): New configuration to default .text, .data,
3719         etc. in onchip memory.
3720         (d30v-*-*): Add d30velf_{e,o} emulations.
3721
3722         * scripttempl/elfd30v.sc: Allow .text, .data, .bss to be put in
3723         either the onchip text/data areas or the external memory area.
3724         (MEMORY): Get sizes from d30velf.sh.
3725         (.e{data,text,bss}): Put sections in the external memory region.
3726         (.stext): Put section in the onchip text region.
3727         (.s{data,bss}): Put sections in the onchip data region.
3728         (__stack): Assign from ${STACK_START_ADDR}.
3729         (.text): Put in ${TEXT_MEMORY} memory region.
3730         (.data{,1}/.strings/.rodata{,1}): Put in ${DATA_MEMORY} memory
3731         region.
3732         (.bss): Put in ${BSS_MEMORY} memory region.
3733
3734 Tue Dec  2 10:14:47 1997  Nick Clifton  <nickc@cygnus.com>
3735
3736         * configure.tgt (targ_extra_emuls): Add support for Thumb target.
3737
3738 Sat Nov 22 15:23:19 1997  Ian Lance Taylor  <ian@cygnus.com>
3739
3740         * ldlex.l: Don't define hex_mode.  Correct number regexp to not
3741         accept hex digits without a leading $ or 0x.  Handle leading $
3742         correctly.  Pass 0 rather than hex_mode to bfd_scan_vma.
3743         * ldlex.h (hex_mode): Don't declare.
3744
3745 Sun Nov 16 20:16:45 1997  Michael Meissner  <meissner@cygnus.com>
3746
3747         * emulparams/d30velf.sh ({DATA,EMEM}_START_ADDR): Define as start
3748         of internal data area and external memory on chip.
3749
3750         * scripttempl/elfd30v.sc: Define a MEMORY region that describes
3751         the 3 regions of memory on the chip.  Put .text/.init/.fini into
3752         the text memory region, put other segments into the data memory
3753         region.  Add more of the standard elf sections.  Default __stack
3754         to be 0x20008000, which is 1 byte beyond end of the internal data
3755         region.
3756
3757 Thu Nov 13 13:45:00 1997  Andrew Cagney  <cagney@b1.cygnus.com>
3758
3759         * configure.tgt (targ_extra_emuls): Make FreeBSD a i386bsd
3760         variant.
3761
3762 Sun Nov  2 14:51:36 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
3763
3764         * configure.host (alpha*-*-linux*): Correct HOSTING_CRT0.  Set
3765         HOSTING_LIBS.
3766
3767 Thu Oct 30 12:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
3768
3769         * ld.h (args_type): Add warn_mismatch field.
3770         * ldmain.c (main): Initialize warn_mismatch field.
3771         * lexsup.c (parse_args): Handle --no-warn-mismatch option.
3772         * ldlang.c (ignore_bfd_error): New static function.
3773         (lang_check): If warn_mismatch is false, don't warn about
3774         mismatched input files.
3775         * ld.texinfo, ld.1: Document new option.
3776
3777 Thu Oct 23 14:38:18 1997  Nick Clifton  <nickc@cygnus.com>
3778
3779         * scripttempl/v850.sc: Rename linker symbol '_stack' to '__stack'
3780         to avoid conflicts with C code which is defining a variable called
3781         'stack'.
3782
3783 Thu Oct 23 00:57:45 1997  Richard Henderson  <rth@dot.cygnus.com>
3784
3785         * Makefile.in (ALL_EMULATIONS): Move eelf64_sparc.o ...
3786         (ALL_64_EMULATIONS): ... here.
3787         (eelf64_sparc.c): Template should be elf32 not generic.
3788         * emulparams/elf64_sparc.sh (TEMPLATE_NAME): New definition.
3789
3790 Thu Oct 23 00:44:20 1997  Richard Henderson  <rth@dot.cygnus.com>
3791
3792         * configure.tgt: Add sparc64-*-linux*.
3793         * emulparams/elf64_sparc.sh (GENERATE_SHLIB_SCRIPT, NOP): New.
3794
3795 Wed Oct 22 11:29:25 1997  Ian Lance Taylor  <ian@cygnus.com>
3796
3797         * scripttempl/pe.sc: Put .eh_frame in .rdata.
3798
3799 Fri Oct 17 00:00:13 1997  Richard Henderson  <rth@cygnus.com>
3800
3801         * ldlang.c (lang_register_vers_node): Only check globals<=>locals,
3802         since we need to be able to export different versions of the same
3803         symbol.
3804
3805 Wed Oct 15 14:52:36 1997  Ian Lance Taylor  <ian@cygnus.com>
3806
3807         * scripttempl/pe.sc: Put .stab and .stabstr sections at end.
3808
3809 Wed Oct  8 12:37:05 1997  Richard Henderson  <rth@cygnus.com>
3810
3811         * configure.tgt, configure.host: Change alpha-*-* to alpha*-*-*;
3812         config.guess now recognizes alphaev5 etc.
3813
3814 Fri Oct  3 14:23:02 1997  Ian Lance Taylor  <ian@cygnus.com>
3815
3816         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Don't treat
3817         -s and -u as -static and -unix.
3818
3819 Thu Oct  2 18:40:28 1997  Ian Lance Taylor  <ian@cygnus.com>
3820
3821         * ldlang.c (wild_doit): Rewrite flag handling for clarity.  If we
3822         are not adding the first input section, and SEC_READONLY is clear
3823         on the output section, then don't copy it from the input section.
3824         If SEC_READONLY is not set on the input section, then clear it on
3825         the output section.
3826
3827         * configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
3828         elf32bmip.
3829         (mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
3830         to elf32bsmip.
3831         (mips*-*-linux*): Likewise.
3832         * emulparams/elf32bsmip.sh: New file; just like elf32bmip.sh, but
3833         setting ENTRY to __start.
3834         * emulparams/elf32lsmip.sh: New file; just like elf32lmip.sh, but
3835         setting ENTRY to __start.
3836         * scripttempl/elf.sc: Always set ENTRY to _start if it was not
3837         already set.
3838
3839 Wed Oct  1 16:41:00 1997  Nick Clifton  <nickc@cygnus.com>
3840
3841         * emulparams/v850.sh (ROZDATA_START_ADDR, ROSDATA_START_ADDR): New
3842         Variables.
3843
3844         * scripttempl/v850.sc: Move read only areas out of zero and small
3845         data sections and into their own sections.
3846
3847 Wed Sep 24 16:59:15 1997  Joel Sherrill  <joel@oarcorp.com>
3848
3849         * configure.tgt (sh*-*-rtems*): New target, like sh-*-elf*.
3850
3851 Wed Sep 24 11:33:14 1997  Ian Lance Taylor  <ian@cygnus.com>
3852
3853         * ld.texinfo (Section Options): Improve documentation of NOLOAD
3854         directive.
3855
3856         * aclocal.m4: Rebuild with new libtool.
3857         * configure: Rebuild.
3858
3859 Mon Sep 22 17:24:06 1997  Ian Lance Taylor  <ian@cygnus.com>
3860
3861         * ldlang.c (wild_doit): Revert patch of September 3.
3862
3863 Wed Sep 17 16:45:34 1997  Nick Clifton  <nickc@cygnus.com>
3864
3865         * Makefile.am, Makefile.in: Add rule for ev850.c
3866         * configure.tgt (targ_extra_emuls): Add v850 target.
3867
3868 Wed Sep 17 16:43:39 1997  Nick Clifton  <nickc@cygnus.com>
3869
3870         * emulparams/v850.sh (CALL_TABLE_START_ADDR): New entry.
3871         * scripttempl/v850.sc: Add call table data area
3872
3873 Mon Sep 15 11:29:13 1997  Ken Raeburn  <raeburn@cygnus.com>
3874
3875         Merge change from Martin Hunt:
3876
3877         * scripttempl/elfd30v.sc: Put .rodata in the .text section.
3878
3879 Tue Sep  9 07:49:56 1997  Fred Fish  <fnf@ninemoons.com>
3880
3881         * ldlang.c (lang_memory_region_lookup): Remove extraneous
3882         initialization of p.
3883
3884 Thu Sep  4 09:03:33 1997  Ian Lance Taylor  <ian@cygnus.com>
3885
3886         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): In
3887         expression produced for -bpT and -bpD options, align to a 32 byte
3888         boundary rather than an 8 byte boundary.
3889         * scripttempl/aix.sc: Put .tocbss at start of .bss section.
3890
3891         * ldmisc.h, ldmisc.c, ldcref.c: Rename finfo to lfinfo, to avoid
3892         function name conflict with AIX 4.2 unistd.h header file.
3893
3894 Wed Sep  3 15:12:32 1997  Ian Lance Taylor  <ian@cygnus.com>
3895
3896         * ldlang.c (wild_doit): Clear SEC_HAS_CONTENTS from a
3897         noload_section.
3898
3899 Fri Aug 29 00:32:31 1997  Ian Lance Taylor  <ian@cygnus.com>
3900
3901         * Makefile.am (ld_new_DEPENDENCIES): Remove @LEXLIB@.
3902         * Makefile.in: Rebuild.
3903
3904 Thu Aug 28 10:12:10 1997  Doug Evans  <dje@canuck.cygnus.com>
3905
3906         * configure.tgt (arc-*-elf*): Recognize.
3907         * Makefile.am (ALL_EMULATIONS): Add earcelf.o.
3908         * Makefile.in: Regenerate.
3909         * emulparams/arcelf.sh: New file.
3910
3911 Wed Aug 20 11:14:13 1997  Ian Lance Taylor  <ian@cygnus.com>
3912
3913         * ldlang.c (wildcardp): Don't let a backslash by itself cause a
3914         pattern to be treated as a wildcard pattern.
3915
3916         * ldgram.y (atype): Accept parentheses with no type.
3917
3918         * ld.texinfo (Section Definition): Clarify use of whitespace.
3919         (Section Placement): Likewise.
3920
3921 Mon Aug 18 11:12:03 1997  Nick Clifton  <nickc@cygnus.com>
3922
3923         * configure.tgt (targ_extra_emuls): Add support for v850e target.
3924
3925 Mon Aug 18 11:12:03 1997  Nick Clifton  <nickc@cygnus.com>
3926
3927         * configure.tgt (targ_extra_emuls): Add support for v850e target.
3928
3929 Sat Aug  9 00:42:27 1997  Ian Lance Taylor  <ian@cygnus.com>
3930
3931         * Makefile.am (ld.info): Change dependency from
3932         $(BFDDIR)/doc/bfdsumm.texi to bfdsumm.texi.
3933         (ld.dvi): Likewise.
3934         (bfdsumm.texi): New target.
3935         (CLEANFILES): Add bfdsumm.texi.
3936         * Makefile.in: Rebuild.
3937
3938         * Makefile.am: New file, based on old Makefile.in.
3939         * acinclude.m4: New file, from old aclocal.m4.
3940         * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL.  Remove
3941         shared library handling; now handled by libtool.  Replace
3942         AC_CONFIG_HEADER with AM_CONFIG_HEADER.  Call AC_PROG_YACC,
3943         AC_PROG_LEX, and AC_DECL_YYTEXT.  Call AM_MAINTAINER_MODE,
3944         AM_CYGWIN32, and AM_EXEEXT.  Don't call CY_CYGWIN32 or CY_EXEEXT.
3945         * configure.host: Don't set HLDFLAGS, HLDENV, or RPATH_ENVVAR.
3946         * acconfig.h: Mention PACKAGE and VERSION.
3947         * stamp-h.in: New file.
3948         * ldver.c (ld_program_version): Set ld_program_version from
3949         VERSION.
3950         * ldgram.y, ldlex.l: Replace VERSION with VERSIONK.
3951         * Makefile.in: Now built with automake.
3952         * aclocal.m4: Now built with aclocal.
3953         * configure, config.in: Rebuild.
3954
3955 Mon Jul 28 19:04:50 1997  Rob Savoye  <rob@chinadoll.cygnus.com>
3956
3957         * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
3958         win32 dependencies.
3959         * configure: Regenerated with autoconf 2.12.
3960         * Makefile.in: Add $(EXEEXT) to executable.
3961
3962 Tue Jul 22 18:50:38 1997  Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
3963
3964         * emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".
3965         (SEGMENT_SIZE): Set to 0x200.
3966         * scripttempl/i386go32.sc: Rewrite.
3967         * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
3968
3969 Mon Jul  7 12:39:42 1997  Ian Lance Taylor  <ian@cygnus.com>
3970
3971         From Manfred Hollstein <manfred@s-direktnet.de>:
3972         * configure.host (i[3456]86-*-linux*libc1*): Renamed from
3973         i[3456]86-*-linux*.
3974         (i[3456]86-*-linux*): New host.
3975
3976 Thu Jun 26 13:54:03 1997  Ian Lance Taylor  <ian@cygnus.com>
3977
3978         * scripttempl/pe.sc: Put .rsrc after .reloc.  Put input .rsrc
3979         sections in the output .rsrc section.
3980
3981 Wed Jun 25 12:48:41 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3982
3983         * configure.host (m68*-*-linux*libc1*): Renamed from
3984         `m68*-*-linux*'.
3985         (m68*-*-linux*): New configuration for use with GNU libc 2.
3986
3987 Mon Jun 16 19:18:21 1997  Geoff Keating  <geoffk@ozemail.com.au>
3988
3989         * scripttempl/elfppc.sc: Correct .rela.sdata entries.
3990
3991         * scripttempl/elfppc.sc: Put the PLT between the small and large
3992         BSS segments.
3993         * emulparams/elf32ppc.sh (TEXT_START_ADDR): The ABI says `A
3994         program base of 0x02000000 is recommended...' because otherwise
3995         shared libraries are less efficient.  We use 0x01800000 because
3996         otherwise it's impossible to branch to location 0, for instance if
3997         you have an undefined weak symbol.
3998
3999 Mon Jun 16 12:49:36 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
4000
4001         * ldlang.c (lang_place_undefineds): Add \n in einfo call.
4002         (lang_size_sections): Likewise.
4003         * ldlex.l: Likewise.
4004         * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
4005         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open):
4006         Likewise.
4007         (check_sections): Likewise.
4008         (gld${EMULATION_NAME}_after_allocation): Likewise.
4009         * emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
4010         Likewise.
4011         * mpw-eppcmac.c (gldppcmacos_read_file): Likewise.
4012         * mpw-idtmips.c (gldmipsidt_after_open): Likewise.
4013         (check_sections): Likewise.
4014         (gldmipsidt_after_allocation): Likewise.
4015
4016         * ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
4017
4018 Fri Jun  6 23:47:42 1997  Ian Lance Taylor  <ian@cygnus.com>
4019
4020         * scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
4021         the import list.
4022
4023 Thu May 29 13:13:22 1997  Ian Lance Taylor  <ian@cygnus.com>
4024
4025         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Don't
4026         crash if an output section has no BFD section.
4027
4028 Fri May 23 15:23:25 1997  Fred Fish  <fnf@cygnus.com>
4029
4030         * lexsup.c (ld_options): Add entry for the new "task-link" option.
4031         (parse_args): Handle the "task-link" option.
4032         (OPTION_TASK_LINK): Add define.
4033
4034 Wed May 21 17:44:15 1997  Ian Lance Taylor  <ian@cygnus.com>
4035
4036         * ldmain.c (main): Correct check of fclose return value when
4037         handling --force-exe-suffix.
4038
4039 Thu May 15 11:35:29 1997  Nick Clifton  <nickc@cygnus.com>
4040
4041         * ldlang.c (lang_check): Add test of the return value from the
4042         call to bfd_merge_private_bfd_data().
4043
4044 Mon May 12 23:22:58 1997  Ian Lance Taylor  <ian@cygnus.com>
4045
4046         * scripttempl/elfmips.sc: Remove.
4047         * scripttempl/elf.sc: Set ENTRY based on target.  Permit
4048         TEXT_DYNAMIC to control .dynamic segment.  Permit
4049         SHLIB_TEXT_START_ADDR to set start of shared object.  Support
4050         INITIAL_READONLY_SECTIONS.  Put .stub in .text.  Only put
4051         .gnu.linkonce.t* in .text when relocating.  Support
4052         OTHER_TEXT_SECTIONS.  Support SHLIB_DATA_ADDR as well as
4053         DATA_ADDR.  Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS.
4054         * emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf.
4055         (DATA_ADDR): Don't set.
4056         (INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS.
4057         (OTHER_TEXT_SECTIONS): Set.
4058         (OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS.
4059         (MACHINE): Set to empty string.
4060         * emulparams/elf32l4300.sh: Likewise.
4061         * emulparams/elf32ebmip.sh: Likewise.
4062         * emulparams/elf32elmip.sh: Likewise.
4063         * emulparams/elf32bmip.sh: Likewise.  Also:
4064         (TEXT_DYNAMIC): Set.
4065         * emulparams/elf32lmips.sh: Likewise.
4066         * Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than
4067         elfmips.sc.
4068         (eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
4069
4070 Mon May 12 11:11:06 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4071
4072         * scripttempl/elf.sc: Don't align the data segment on the next 8
4073         byte boundary, instead let the linker use whatever the individual
4074         sections require.
4075
4076 Fri May  9 17:45:46 1997  Ian Lance Taylor  <ian@cygnus.com>
4077
4078         * configure.tgt (i[3456]86-*-gnu*): Don't include Mach support.
4079
4080 Tue May  6 13:21:19 1997  Ian Lance Taylor  <ian@cygnus.com>
4081
4082         From Sean McNeil <sean@mcneil.com>:
4083         * emultempl/pe.em (sort_by_file_name): Sort by archive name
4084         first.
4085         (sort_sections): Sort all sections, not just sections in the same
4086         archive.
4087
4088 Mon May  5 18:19:55 1997  Philip Blundell  <pjb27@cam.ac.uk>
4089
4090         * configure.tgt, configure.host: cope with '*-*-linux-gnuaout'
4091         targets.
4092
4093 Fri May  2 15:54:28 1997  Mike Meissner  <meissner@cygnus.com>
4094
4095         * scripttempl/tic80coff.sc (.text): Add a leading underscore to
4096         __{D,C}TOR_{LIST,END}__ definations.  Rearrange the order of items
4097         in the .text section.  Move .const, .ctors, .dtors into separate
4098         sections.
4099
4100 Wed Apr 30 12:23:21 1997  Manfred Hollstein  <manfred@s-direktnet.de>
4101
4102         * scripttempl/m88kbcs.sc (__.initp.end, _etext): Added whitespace
4103         around assignment of current location pointer.
4104
4105 Thu Apr 17 13:07:18 1997  Ian Lance Taylor  <ian@cygnus.com>
4106
4107         * ldctor.c (ldctor_build_sets): Make sure the set is aligned
4108         appropriately.
4109
4110 Tue Apr 15 13:19:26 1997  Ian Lance Taylor  <ian@cygnus.com>
4111
4112         * Makefile.in (INSTALL): Set to @INSTALL@.
4113         (INSTALL_XFORM, INSTALL_XFORM1): Remove.
4114         (install): Depend upon ld.new and installdirs.  Use
4115         $(program_transform_name) directly, rather than using
4116         $(INSTALL_XFORM) and $(INSTALL_XFORM1).
4117         (installdirs): New target.
4118         (install-info): Run mkinstalldirs.
4119
4120 Mon Apr 14 12:06:15 1997  Ian Lance Taylor  <ian@cygnus.com>
4121
4122         * Makefile.in (INSTALL): Change install.sh to install-sh.
4123
4124         From Thomas Graichen <graichen@rzpd.de>:
4125         * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
4126         * configure: Rebuild.
4127
4128 Fri Apr  4 11:42:41 1997  Ian Lance Taylor  <ian@cygnus.com>
4129
4130         * emultempl/pe.em: Include "libiberty.h".
4131         (sort_sections_1): Use xmalloc rather than alloca.
4132
4133         * ldlex.l: Recognize SQUAD.
4134         * ldgram.y (length): Add SQUAD.
4135         * ldctor.c (ldctor_build_sets): Use SQUAD for a signed 8 byte
4136         reloc.
4137         * ldlang.c (print_data_statement): Handle SQUAD.
4138         (lang_size_sections, lang_do_assignments): Likewise.
4139         * ldexp.c (exp_print_token): Add SQUAD to table.
4140         * ldwrite.c (build_link_order): Handle SQUAD.
4141         * ld.texinfo (Section Data Expressions): Document SQUAD.
4142
4143 Thu Apr  3 13:19:40 1997  Ian Lance Taylor  <ian@cygnus.com>
4144
4145         * ldver.c (ld_program_version): Set to 2.8.1.
4146
4147         * Branched binutils 2.8.
4148
4149 Wed Apr  2 11:55:27 1997  Ian Lance Taylor  <ian@cygnus.com>
4150
4151         * mpw-idtmips.c: Rename from mpw-emipsidt.c.
4152         * mpw-elfmips.c: Rename from mpw-emipself.c.
4153         * mpw-config.in: Update accordingly.
4154
4155         * ldlang.c (lang_process): Call lang_check immediately after
4156         opening the input files, rather than at the end of the link.
4157
4158 Mon Mar 31 23:44:00 1997  Ian Lance Taylor  <ian@cygnus.com>
4159
4160         * emultempl/pe.em (init): Fully bracket initializer.
4161         (set_pe_stack_heap): Remove locals begin_commit and end.
4162         (gld_${EMULATION_NAME}_after_open): Remove unused local i.
4163         (gld${EMULATION_NAME}_place_orphan): Remove unused local ptr.
4164
4165 Mon Mar 31 16:35:51 1997  Joel Sherrill  <joel@oarcorp.com>
4166
4167         * configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
4168
4169 Fri Mar 28 15:29:23 1997  H.J. Lu <hjl@gnu.ai.mit.edu>
4170
4171         Contributed by David S. Miller <davem@caip.rutgers.edu>:
4172         * configure.tgt (sparc*-*-linuxaout*): New target.
4173         (sparc*-*-linux*): New target.
4174         * emulparams/sparclinux.sh: New file.
4175         * Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
4176         (esparclinux.c): New target.
4177
4178 Fri Mar 28 14:30:12 1997  Ian Lance Taylor  <ian@cygnus.com>
4179
4180         From Ralf Baechle <ralf@gnu.ai.mit.edu>:
4181         * configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
4182         mips*-*-linux*.  Use elf32bmip and elf32lmip, not elf32ebmip and
4183         elf32elmip.
4184
4185 Thu Mar 27 17:14:32 1997  Ian Lance Taylor  <ian@cygnus.com>
4186
4187         * lexsup.c (parse_args): Update copyright date in version
4188         message.
4189
4190 Fri Mar 21 12:28:41 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>
4191
4192         * emulparams/delta68.sh (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
4193
4194 Tue Mar 18 11:16:23 1997  Ian Lance Taylor  <ian@cygnus.com>
4195
4196         * Makefile.in: Rebuild dependencies.
4197
4198         * emultempl/aix.em: Include "obstack.h".
4199
4200 Mon Mar 17 19:26:06 1997  Ian Lance Taylor  <ian@cygnus.com>
4201
4202         * ldlang.c: Include "obstack.h".
4203
4204 Sat Mar 15 23:23:46 1997  Fred Fish  <fnf@cygnus.com>
4205
4206         * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
4207
4208 Sat Mar 15 18:10:38 1997  H.J. Lu  <hjl@lucon.org>
4209
4210         * ldemul.h (ldemul_list_emulations): Use full prototype.
4211         * ldlang.c (print_one_symbol): Add declaration.
4212         * ldlang.h (dprint_statements): Declare.
4213         * ldmain.c (remove_output): Declare.
4214         * ldmisc.c (vfinfo): Declare.
4215         * ldwrite.c (clone_section): Declare.
4216         (split_sections): Make static.  Declare.
4217         * mri.c: Include libiberty.h.
4218         (strdup): Don't declare.
4219         (mri_alias): Use xstrdup rather than strdup.
4220
4221 Fri Mar 14 21:30:06 1997  Ian Lance Taylor  <ian@cygnus.com>
4222
4223         * scripttempl/elfmips.sc: Change handling of data area when
4224         generating a shared library to not skip a large block of memory.
4225         From Per Fogelstrom <pefo@cvs.openbsd.org>.
4226
4227 Wed Mar 12 21:33:09 1997  Ian Lance Taylor  <ian@cygnus.com>
4228
4229         * ldmain.c (multiple_definition): Only skip the warning if the
4230         output section is absolute when the input section is not
4231         absolute.
4232
4233         * ldlex.l: Accept whitespace in VERS_START state.  Warn about
4234         invalid characters in VERS_* states.
4235
4236 Tue Mar 11 13:51:31 1997  Ian Lance Taylor  <ian@cygnus.com>
4237
4238         * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Don't let a
4239         trailing space lead us to think that there is a zero address.
4240
4241 Sun Mar  9 23:06:35 1997  Eric Youngdale  <eric@andante.jic.com>
4242
4243         * ldgram.y (vers_node): Correct typo of '('  for '{'.
4244
4245 Fri Mar  7 18:40:12 1997  Fred Fish  <fnf@cygnus.com>
4246
4247         * scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
4248         rather than _start.
4249         (__edata): Define this rather than "edata".
4250         (__end): Define this rather than "end".
4251
4252 Tue Mar  4 17:18:35 1997  Michael Meissner  <meissner@cygnus.com>
4253
4254         * configure.tgt (tic80-*-*): Allow dropping of -coff.
4255
4256 Sun Mar  2 22:59:49 1997  Fred Fish  <fnf@cygnus.com>
4257
4258         * Makefile.in (ld.dvi): Set MAKEINFO environment variable as well
4259         as TEXINPUTS.  Needed for building in separate build dir.
4260         * ldint.texinfo (SCRIPT_NAME): Fix typo.
4261         * emulparams/tic80coff.sh: Rewrite to include internal documentation
4262         about each shell variable that is set (or not set).
4263         * scripttempl/tic80coff.sc: Complete rewrite.
4264
4265 Fri Feb 28 17:42:27 1997  Ian Lance Taylor  <ian@cygnus.com>
4266
4267         * ldmain.c (main): Call bfd_set_default_target.
4268         * Makefile.in (ldmain.o): Define TARGET when compiling.
4269
4270 Thu Feb 27 11:41:03 1997  Ian Lance Taylor  <ian@cygnus.com>
4271
4272         * ldmain.c (main): Don't initialize link_info.lprefix or
4273         link_info.lprefix_len.
4274         * emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
4275
4276         * emultempl/m88kbcs.em: Remove.
4277         * emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set.
4278         * Makefile.in (em88kbcs.c): Depend upon generic.em rather than
4279         m88kbcs.em.
4280
4281         * mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
4282         to lang_enter_output_section_statement.  From Mark Rasin
4283         <mark.rasin@telrad.co.il>.
4284
4285 Wed Feb 26 11:51:44 1997  Ian Lance Taylor  <ian@cygnus.com>
4286
4287         * ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
4288         section.
4289
4290 Tue Feb 25 20:38:11 1997  Stan Shebs  <shebs@andros.cygnus.com>
4291
4292         * configure.tgt (mips*-*-lnews*): New target.
4293         * Makefile.in (emipslnews.c): New target.
4294         * emulparams/mipslnews.sh: New file.
4295
4296 Tue Feb 25 16:04:09 1997  Ian Lance Taylor  <ian@cygnus.com>
4297
4298         * emultempl/elf32.em (hold_interp): New static variable.
4299         (gld${EMULATION_NAME}_place_orphan): Put loadable .note sections
4300         after hold_interp.  Choose a unique output section name.
4301         (gld${EMULATION_NAME}_place_section): Don't set hold_use if the
4302         SEC_LOAD or SEC_ALLOC flags differ.  Set hold_interp.
4303
4304 Mon Feb 24 18:16:09 1997  Ian Lance Taylor  <ian@cygnus.com>
4305
4306         From Eric Youngdale <eric@andante.jic.com>:
4307         * ldlex.l (V_TAG, V_IDENTIFIER): New macros.
4308         (VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
4309         information.
4310         (ldlex_version_script, ldlex_version_file): New functions.
4311         * ldlex.h (enum input_enum): Add input_version_script.
4312         (ldlex_version_script): Declare.
4313         (ldlex_version_file): Declare.
4314         * ldgram.y (%union): Add deflist, versyms, and versnode.
4315         (VERS_TAG, VERS_IDENTIFIER): New terminals.
4316         (GLOBAL, LOCAL, VERSION, INPUT_VERSION_SCRIPT): New terminals.
4317         (file): Accept INPUT_VERSION_SCRIPT.
4318         (ifile_p1): Accept version.
4319         (version_script_file): New nonterminal.
4320         (version, vers_nodes, vers_node): Likewise.
4321         (verdep, vers_tag, ver_defns): Likewise.
4322         * ldlang.c (lang_elf_version_info): New global variable.
4323         (lang_new_vers_regex): New function.
4324         (lang_new_vers_node): New function.
4325         (version_index): New static variable.
4326         (lang_register_vers_node): New function.
4327         (lang_add_vers_depend): New function.
4328         * ldlang.h (lang_elf_version_info): Declare.
4329         (lang_new_vers_regex, lang_new_vers_node): Declare.
4330         (lang_add_vers_depend, lang_register_vers_node): Declare.
4331         * lexsup.c (OPTION_VERSION_SCRIPT): Define.
4332         (ld_options): Add "version-script".
4333         (parse_args): Handle OPTION_VERSION_SCRIPT.
4334         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4335         Pass lang_elf_version_info to size_dynamic_sections.
4336         * scripttempl/elf.sc: Add .gnu.version sections.
4337         * ld.texinfo: Document symbol versioning.
4338
4339 Fri Feb 21 17:37:51 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>
4340
4341         * Makefile.in (ed30velf.c): New target.
4342         * configure.tgt (d30v-*-*): New target.
4343         * emulparams/d30velf.sh: New file.
4344         * scripttempl/elfd30v.sc: New file.
4345
4346 Fri Feb 14 18:28:31 1997  Ian Lance Taylor  <ian@cygnus.com>
4347
4348         * ld.texinfo (Option Commands): Document the INCLUDE command.
4349
4350 Thu Feb 13 20:31:37 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>
4351
4352         * configure.in: Call BFD_NEED_DECLARATION on getenv.
4353         * acconfig.h (NEED_DECLARATION_GETENV): New macro.
4354         * sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
4355         * ldemul.c (ld_emul_default_target): Do not cast getenv return
4356         value.
4357         * ldmain.c (get_emulation): Likewise.
4358         * configure, config.in: Rebuild.
4359
4360 Tue Feb 11 15:34:26 1997  Ian Lance Taylor  <ian@cygnus.com>
4361
4362         * scripttempl/elfmips.sc: When relocating, put .mips16.fn.* and
4363         .mips16.call.* in .text.
4364
4365 Sun Feb  9 18:09:13 1997  Fred Fish  <fnf@cygnus.com>
4366
4367         * emulparams/tic80coff.sh: New (dummy) file for TIc80.
4368         * scripttempl/tic80coff.sc: New (dummy) file for TIc80.
4369         * Makefile.in (etic80coff.c): Add target and rule to build it.
4370         * configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
4371
4372 Fri Jan 31 13:16:53 1997  Ian Lance Taylor  <ian@cygnus.com>
4373
4374         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
4375         ".so" in the name, not ".so.".
4376         (gld${EMULATION_NAME}_search_dir): Accept a plain .so file.
4377
4378         * Makefile.in (ld.info): Add -I$(srcdir).  From Alan Modra
4379         <alan@spri.levels.unisa.edu.au>.
4380
4381 Thu Jan 30 11:31:52 1997  Ian Lance Taylor  <ian@cygnus.com>
4382
4383         * emultempl/sunos.em: Include <ctype.h>.
4384         (gld${EMULATION_NAME}_find_so): Skip the directory name when
4385         searching for ".so.".
4386         (gld${EMULATION_NAME}_search_dir): Make sure that the library name
4387         has a version number, and that only version numbers follow .so.
4388
4389 Wed Jan 29 18:15:00 1997  Geoffrey Noer  <noer@cygnus.com>
4390
4391         * scripttempl/pe.sc:
4392         * scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
4393         section so Win32 executables are valid.
4394
4395 Mon Jan 27 12:28:43 1997  Ian Lance Taylor  <ian@cygnus.com>
4396
4397         * scripttempl/elf.sc: Put linkonce reloc section in other
4398         appropriate reloc sections.
4399         * scripttempl/elfmips.sc: Add linkonce support.
4400         * scripttempl/elfppc.sc: Likewise.
4401
4402 Fri Jan 24 10:44:09 1997  Jeffrey A Law  (law@cygnus.com)
4403
4404         * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
4405         stack up to 0x80000.
4406         * emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
4407
4408 Tue Jan 21 12:11:10 1997  Doug Evans  <dje@seba.cygnus.com>
4409
4410         * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
4411         to define `_stack'.
4412
4413 Thu Jan 16 17:07:52 1997  Ian Lance Taylor  <ian@cygnus.com>
4414
4415         * ld.h (args_type): Rename auxiliary_filter_shlib to
4416         auxiliary_filters, and make it char **.
4417         * lexsup.c (parse_args): Handle -f by setting up an array.
4418         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4419         new name of auxiliary_filters.
4420
4421         * ld.texinfo (Options): Improve documentation of --filter and
4422         --auxiliary.
4423
4424 Tue Jan 14 15:44:28 1997  Ian Lance Taylor  <ian@cygnus.com>
4425
4426         * ld.texinfo (Options): Clarify that the normal usage is -T.
4427         (Commands): Likewise.
4428
4429 Thu Jan  9 11:26:27 1997  Ian Lance Taylor  <ian@cygnus.com>
4430
4431         * scripttempl/armcoff.sc: Correct mask used for .data address.
4432
4433 Wed Jan  8 15:14:59 1997  Geoffrey Noer  <noer@cygnus.com>
4434
4435         * emultempl/pe.em: make default executable a.exe instead of
4436         a.out
4437
4438 Fri Jan  3 17:33:34 1997  Richard Henderson  <rth@tamu.edu>
4439
4440         * scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
4441         shifting .plt back.  Rumour has it that the NetBSD ld.so depends
4442         on .dynamic being after .got, so we leave that.
4443
4444 Fri Jan  3 14:04:40 1997  Ian Lance Taylor  <ian@cygnus.com>
4445
4446         * Makefile.in (clean): Don't remove configdoc.texi.
4447         (maintainer-clean): Do remove configdoc.texi.
4448
4449         * ld.texinfo (Operators): Remove '@' from @smallexmple in comment
4450         to avoid confusing texi2roff.
4451
4452 Fri Jan  3 11:27:02 1997  Michael Meissner  <meissner@tiktok.cygnus.com>
4453
4454         * scripttempl/v850.sc (.zdata): Add .zcommon section.
4455         (.tdata): Add .tcommon and .tcommon_byte sections.
4456
4457 Thu Jan  2 18:14:32 1997  Ian Lance Taylor  <ian@cygnus.com>
4458
4459         * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
4460         * scripttempl/elfmips.sc: Use __start as the entry address for
4461         mips*-*-linux*.
4462
4463 Tue Dec 31 14:48:30 1996  Ian Lance Taylor  <ian@cygnus.com>
4464
4465         * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
4466
4467         * ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
4468         fields.
4469         * lexsup.c (parse_args): Recognize --auxiliary/-f and
4470         --filter/-F.
4471         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4472         Pass filter_shlib and auxiliary_filter_shlib to
4473         size_dynamic_sections.
4474         * ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
4475
4476 Mon Dec 30 13:55:57 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
4477
4478         * scripttempl/v850.sc (.tdata) Add .tbss and .tbyte sections.
4479
4480 Wed Dec 18 22:57:35 1996  Stan Shebs  <shebs@andros.cygnus.com>
4481
4482         * mpw-make.sed: Use NewFolderRecursive for installation.
4483
4484 Fri Dec 13 14:08:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
4485
4486         * scripttempl/v850.sc: Make sure __{e,g}p start relative to the
4487         {s,t}data sections.  Do not emit any linker generated symbols if
4488         -r.  Use {TEXT,{Z,S,T}DATA}_START_ADDR variables to initialize
4489         where the different sections go.  Change some whitespace.
4490
4491         * emulparams/v850.sh ({TEXT,{Z,S,T}DATA}_START_ADDR): Define
4492         appropriately.  Remove crud not used anymore.
4493
4494 Fri Dec 13 10:19:57 1996  Jeffrey A Law  (law@cygnus.com)
4495
4496         * Makefile.in (emn10200.c): Add dependencies.
4497         * configure.tgt: Handle mn10200.
4498         * emulparms/mn10200.sh: New file.
4499
4500 Thu Dec 12 17:04:55 1996  Ian Lance Taylor  <ian@cygnus.com>
4501
4502         * emultempl/gld960c.em: Include <ctype.h>.
4503         (gld960_set_output_arch): Get the machine type from the -A option
4504         if there is one, rather than always using core.
4505
4506 Sat Dec  7 10:07:51 1996  Jeffrey A Law  (law@cygnus.com)
4507
4508         * emulparms/mn10300.sh: Handle leading underscores.
4509
4510 Thu Dec  5 13:45:58 1996  Ian Lance Taylor  <ian@cygnus.com>
4511
4512         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Only
4513         set hold_rel if SEC_ALLOC is set.
4514
4515 Tue Dec  3 11:29:20 1996  Ian Lance Taylor  <ian@cygnus.com>
4516
4517         * ldlang.c (section_already_linked): Set the output_offset as well
4518         as the output_section when only reading symbols from a file.
4519
4520 Mon Dec  2 11:43:50 1996  Ian Lance Taylor  <ian@cygnus.com>
4521
4522         * emulparams/*.sh: Make sure that each set of parameters which
4523         uses the elf.sc script sets MACHINE.
4524
4525 Wed Nov 27 03:22:05 1996  Jason Merrill  <jason@yorick.cygnus.com>
4526
4527         * scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
4528         * scripttempl/elfd10v.sc: Likewise.
4529         * scripttempl/v850.sc: Likewise.
4530
4531 Tue Nov 26 16:58:33 1996  Ian Lance Taylor  <ian@cygnus.com>
4532
4533         * configure: Rebuild with autoconf 2.12.
4534
4535 Mon Nov 25 12:17:55 1996  Jim Wilson  <wilson@cygnus.com>
4536
4537         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Add case
4538         for bfd_vma to init loop.
4539
4540 Mon Nov 25 09:55:07 1996  Jeffrey A Law  (law@cygnus.com)
4541
4542         * emulparms/mn10300.sh: Remove bogus '_' prefix for
4543         entry symbol and ctor/dtor stuff.
4544
4545 Fri Nov 15 13:00:18 1996  Jeffrey A Law  (law@cygnus.com)
4546
4547         * Makefile.in (emn10300.c): Add dependencies.
4548         * configure.tgt: Handle mn10300.
4549         * emulparms/mn10300.sh: New file.
4550
4551 Tue Nov  5 10:57:50 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
4552
4553         * emulparams/d10velf.sh (READONLY_START_ADDR): Changed to 0x2000004.
4554         (EMBEDDED): Define.
4555
4556 Fri Nov  1 10:01:27 1996  Ian Lance Taylor  <ian@cygnus.com>
4557
4558         * ld.texinfo: Add section on reporting bugs.
4559
4560         * scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
4561         symbols are correctly aligned.
4562
4563 Thu Oct 31 09:28:59 1996  Jeffrey A Law  (law@cygnus.com)
4564
4565         * scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
4566         romzbss too.
4567
4568 Tue Oct 29 12:33:05 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
4569
4570         * emulparams/d10velf.sh: Changes needed for D10V-EVA board.
4571         Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
4572         0x2000000.
4573
4574         * scripttempl/elfd10v.sc:  Fix calculation of .text.  Change
4575         .stack to start at 0x2007ffe.
4576
4577 Mon Oct 28 15:37:00 1996  Doug Evans  <dje@canuck.cygnus.com>
4578
4579         * configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
4580
4581 Wed Oct 23 16:17:22 1996  Jeffrey A Law  (law@cygnus.com)
4582
4583         * scriptempl/v850.sc (zdata): Fix typo "zrodata" -> "rozdata".
4584
4585         * scriptempl/v850.sc (zdata): Make sure this stays
4586         in lo-memory.
4587
4588 Tue Oct 22 11:36:47 1996  Jeffrey A Law  (law@cygnus.com)
4589
4590         * scripttempl/v850.sc (__ep): Put it at the start
4591         of the tda section.
4592
4593         * scriptempl/v850.sc: Move all "normal" sections into
4594         the external memory region (0x100000 - 0x200000).
4595
4596 Mon Oct 21 17:16:59 1996  Michael Meissner  <meissner@wogglebug.tiac.net>
4597
4598         * scripttempl/elfd10v.sc: Clone from elf.sc, move .text to
4599         0x10000, so that is more room for data.
4600
4601         * emulparams/d10velf.sh (TEXT_START_ADDR): Now 0x100000.
4602         (READONLY_START_ADDR): Now 0x0.
4603         (SCRIPT_NAME): Now elfd10v.
4604
4605         * Makefile.in (ed10velf.c): Depend on elfd10v.sc, not elf.sc.
4606
4607 Fri Oct 18 22:12:49 1996  Doug Evans  <dje@canuck.cygnus.com>
4608
4609         * emulparams/m32relf.sh (TEXT_START_ADDR): Change from 0 to 0x100.
4610
4611 Fri Oct 18 15:43:38 1996  Ian Lance Taylor  <ian@cygnus.com>
4612
4613         * Makefile.in (ALL_EMULATIONS): Remove eelf64alpha.o.
4614         (ALL_64_EMULATIONS): New variable.
4615         * configure.in: Accept --enable-64-bit-bfd option.  If it is set
4616         with --enable-targets=all, include ALL_64_EMULATIONS in
4617         EMULATION_OFILES.
4618         * configure: Rebuild.
4619
4620 Fri Oct 18 12:58:35 1996  Jeffrey A Law  (law@cygnus.com)
4621
4622         * scripttempl/v850.sc (__gp, __ep): Define.
4623
4624 Thu Oct 17 18:14:07 1996  Ian Lance Taylor  <ian@cygnus.com>
4625
4626         * ld.texinfo: Try to consistently use a single or a double dash
4627         for each option.
4628
4629 Thu Oct 17 10:17:20 1996  Doug Evans  <dje@canuck.cygnus.com>
4630
4631         * emulparams/m32relf.sh (EMBEDDED): Define.
4632
4633 Thu Oct 17 10:56:49 1996  Jeffrey A Law  (law@cygnus.com)
4634
4635         * scripttempl/v850.sc (.zdata): Add this before .text.
4636         (.sdata): Also include .rosdata as part of the .sdata.
4637         (.tdata): Include this just before .sdata.
4638
4639         * emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
4640         * scripttempl/v850.sc: Wrap script with a "cat << EOF".
4641
4642 Wed Oct 16 23:10:01 1996  Jeffrey A Law  (law@cygnus.com)
4643
4644         * scripttempl/v850.sc: New linker script for the V850.
4645         * Makefile.in: Use it.
4646
4647 Thu Oct 10 17:57:00 1996  Ian Lance Taylor  <ian@cygnus.com>
4648
4649         * emulparams/elf32b4300.sh: Define _gp in OTHER_GOT_SYMBOLS, not
4650         OTHER_READWRITE_SECTIONS.
4651         * emulparams/elf32l4300.sh: Likewise.
4652
4653 Wed Oct  9 14:36:18 1996  Ian Lance Taylor  <ian@cygnus.com>
4654
4655         * ld.h (ld_config_type): Add warn_section_align field.
4656         * lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
4657         (ld_options): Add --warn-section-align.
4658         (parse_args): Handle --warn-section-align.
4659         * ldlang.c (lang_size_sections): If warn_section_align, warn if
4660         the start of a section changes due to alignment.
4661         * ld.texinfo, ld.1: Document --warn-section-align.
4662         * ld.texinfo: Change some single dashes to double dashes.
4663
4664         * emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
4665         subsystem type.  Ifdef out os2 type.  Recognize a version number.
4666
4667 Tue Oct  8 12:07:13 1996  Ian Lance Taylor  <ian@cygnus.com>
4668
4669         * emultempl/pe.em (set_pe_subsystem): When setting the subsystem
4670         to windows, set the entry point.
4671
4672         * Makefile.in (ldlex.c): Don't pass any options to $(LEX).
4673
4674 Mon Oct  7 17:29:05 1996  Ian Lance Taylor  <ian@cygnus.com>
4675
4676         * ld.texinfo (Options): Mention .so extensions for shared
4677         libraries.
4678
4679 Sun Oct  6 22:35:36 1996  Jason Merrill  <jason@yorick.cygnus.com>
4680
4681         * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
4682
4683 Fri Oct  4 18:49:31 1996  Ian Lance Taylor  <ian@cygnus.com>
4684
4685         * scripttempl/m68kcoff.sc: Only set the address of .text if
4686         RELOCATING.
4687
4688 Fri Oct  4 10:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
4689
4690         * emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
4691         * scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
4692         (OUTPUT_FORMAT): Support bi-endian targets.
4693
4694 Thu Oct  3 13:52:03 1996  Ian Lance Taylor  <ian@cygnus.com>
4695
4696         * fnmatch.h, fnmatch.c: Remove (now in libiberty).
4697         * Makefile.in: Rebuild dependencies.
4698         (CFILES): Remove fnmatch.c.
4699         (HFILES): Remove fnmatch.h.
4700         (OFILES): Remove fnmatch.o.
4701
4702 Thu Oct  3 15:41:24 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
4703
4704         * Makefile.in (mostlyclean): Move config.log to distclean.
4705
4706 Wed Oct  2 23:45:25 1996  Geoffrey Noer  <noer@cygnus.com>
4707
4708         * emultmpl/pe.em: increase size of stack reserve to 0x2000000
4709         (necessary in order to compile parse.c in gcc sources under NT)
4710
4711 Wed Oct  2 14:49:10 1996  Ian Lance Taylor  <ian@cygnus.com>
4712
4713         * lexsup.c (ld_options): Fix typo in --rpath-link description.
4714         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
4715         --rpath if a needed library is not found.
4716
4717 Tue Oct  1 16:17:33 1996  Joel Sherrill  <joel@oarcorp.com>
4718
4719         * configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
4720
4721 Tue Oct  1 15:50:34 1996  Ian Lance Taylor  <ian@cygnus.com>
4722
4723         * ld.texinfo (Options): Give more detail on -l option.
4724
4725         * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
4726         elf.sc does, so that glibc works better.
4727
4728         * ldver.c (ld_program_version): New variable.
4729         (ldversion): Use it.
4730         * ldver.h (ld_program_version): Declare.
4731         * lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
4732         --version.  Change --version handling to match current GNU
4733         standards.
4734         (help): Print bug report address.
4735
4736 Mon Sep 30 12:14:43 1996  Doug Evans  <dje@canuck.cygnus.com>
4737
4738         * Makefile.in (em32relf.c): Add rule for.
4739         * configure.tgt (m32r-*-*): Recognize.
4740         * emulparams/m32relf.sh: New file.
4741
4742 Thu Sep 26 13:58:47 1996  Stan Shebs  <shebs@andros.cygnus.com>
4743
4744         * mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
4745         * mpw-config.in: Add mips-*-* case as mips-elf, and use more
4746         wildcards in matching.
4747         * mpw-emipself.c: New file, pregenerated mips elf emulation.
4748
4749 Tue Sep 17 12:18:21 1996  Ian Lance Taylor  <ian@cygnus.com>
4750
4751         * ldint.texinfo: Rewrote.
4752
4753         * configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
4754
4755 Mon Sep 16 17:55:21 1996  Ian Lance Taylor  <ian@cygnus.com>
4756
4757         * scripttempl/armcoff.sc: Only define symbols if RELOCATING.  Fix
4758         syntax error on __end__ line.
4759
4760         * scripttempl/armcoff.sc: For -N or -n, don't align .data.  From
4761         Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
4762
4763 Sun Sep 15 22:09:56 1996  Jeffrey A Law  (law@cygnus.com)
4764
4765         * emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
4766
4767 Sun Sep 15 10:38:16 1996  Mark Alexander  <marka@cygnus.com>
4768
4769         * emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
4770         stack at top of simulator memory.
4771
4772 Fri Sep 13 15:49:45 1996  Ian Lance Taylor  <ian@cygnus.com>
4773
4774         * ldlex.l (SYMBOLCHARN): Add $, _, and ~.
4775
4776 Wed Sep 11 23:30:42 1996  Ian Lance Taylor  <ian@cygnus.com>
4777
4778         * ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
4779
4780 Thu Sep  5 15:24:12 1996  Ian Lance Taylor  <ian@cygnus.com>
4781
4782         * ldlang.c (section_already_linked): Accept a lang_input_statement
4783         as the PTR argument.  If the file is symbols only, discard all
4784         input sections.
4785         (ldlang_add_file): Pass entry to bfd_map_over_sections.
4786
4787 Wed Sep  4 15:53:43 1996  Ian Lance Taylor  <ian@cygnus.com>
4788
4789         * configure.tgt (alpha-*-gnu*): New target.  From Fila Kolodny
4790         <fila@ibi.com>.
4791
4792 Tue Sep  3 00:52:54 1996  Jeffrey A Law  (law@cygnus.com)
4793
4794         * emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
4795
4796 Sun Sep  1 21:48:58 1996  Jeffrey A Law  (law@cygnus.com)
4797
4798         * emulparms/v850.sh: Set EMBEDDED.
4799
4800 Fri Aug 30 22:30:30 1996  Jeffrey A Law  (law@cygnus.com)
4801
4802         * emulparms/v850.sh: Entry symbol is "_start", tweak
4803         ctor/dtor support.
4804
4805 Fri Aug 30 18:32:31 1996  Ian Lance Taylor  <ian@cygnus.com>
4806
4807         * configure.tgt (sh-*-elf*): New target.
4808         * emulparams/shelf.sh: New file.
4809         * emulparams/shlelf.sh: New file.
4810         * Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
4811         (eshelf.c, eshlelf.c): New targets.
4812         * scripttempl/elf.sc: If EMBEDDED is defined, then don't add
4813         SIZEOF_HEADERS to TEXT_START_ADDR.  Expand CTOR_START and CTOR_END
4814         around .ctors, and DTOR_START and DTOR_END around .dtors.  Expand
4815         OTHER_RELOCATING_SECTIONS if RELOCATING.
4816
4817 Thu Aug 29 16:57:46 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
4818
4819         * configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
4820         pro.
4821
4822 Mon Aug 26 12:58:11 1996  Ian Lance Taylor  <ian@cygnus.com>
4823
4824         * ldgram.y (section): Add opt_nocrossrefs; pass value to
4825         lang_enter_overlay.
4826         (opt_nocrossrefs): New nonterminal.
4827         * ldlex.l: Recognize NOCROSSREFS keyword in EXPRESSION mode.
4828         * ldlang.c (overlay_nocrossrefs): New static variable.
4829         (lang_enter_overlay): Add nocrossrefs parameter.
4830         (lang_leave_overlay): Only add nocrossrefs if overlay_nocrossrefs
4831         is set.  Initialize overlay_nocrossrefs.
4832         * ldlang.h (lang_enter_overlay): Update declaration.
4833         * ld.texinfo (Overlays): Update documentation.
4834
4835         * ldver.c (ldversion): Print GNU ld in the version message.
4836
4837 Thu Aug 22 17:10:40 1996  Ian Lance Taylor  <ian@cygnus.com>
4838
4839         * configure.host: Set HLDENV.
4840         * configure.in: Substitute HLDENV.
4841         * configure: Rebuild.
4842         * Makefile.in (HLDENV): New variable.
4843         ($(LD_PROG)): Use $(HLDENV).
4844
4845 Thu Aug 22 16:29:28 1996  Jeffrey A Law  (law@cygnus.com)
4846
4847         * Makefile.in (ev850.c): New target.
4848         * configure.tgt (v850-*-*): New target.
4849         * emulparams/v850.sh: New file.
4850
4851 Thu Aug 22 11:16:02 1996  Stan Shebs  <shebs@andros.cygnus.com>
4852
4853         * mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
4854
4855 Wed Aug 21 11:26:37 1996  Ian Lance Taylor  <ian@cygnus.com>
4856
4857         * scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
4858         containing sections.
4859
4860 Mon Aug 19 13:01:42 1996  Ian Lance Taylor  <ian@cygnus.com>
4861
4862         * fnmatch.c: Include sysdep.h.
4863
4864 Mon Aug 19 11:28:29 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
4865
4866         * genscripts.sh: Undo 8/16 change.
4867
4868         * emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
4869
4870 Fri Aug 16 19:18:08 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
4871
4872         * genscripts.sh: Explicitly reset any shell variables set or used
4873         by the various .sc scripts to allow inadvertant use of these
4874         names as normal environment variables by the person running
4875         configure.
4876
4877         * Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
4878
4879 Fri Aug 16 14:15:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
4880
4881         * scripttempl/armcoff.sc (__bss_start__, __bss_end__,
4882         __data_start__, __data_end__): Added to keep in sync. with the
4883         default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
4884
4885 Thu Aug  8 14:24:56 1996  Ian Lance Taylor  <ian@cygnus.com>
4886
4887         * ldcref.c (check_reloc_refs): If info->same, look for any symbol
4888         defined in info->defsec, not just the section symbol.
4889
4890 Wed Aug  7 14:40:48 1996  Philippe De Muyter  <phdm@info.ucl.ac.be>
4891
4892         * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
4893         * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
4894         (NEED_DECLARATION_SBRK): New macro.
4895         * configure, config.in: Rebuild.
4896         * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
4897         * ldmain.c (sbrk): Declare if HAVE_SBRK and
4898         NEED_DECLARATION_SBRK.
4899
4900         * ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
4901
4902 Mon Aug  5 16:26:14 1996  Ian Lance Taylor  <ian@cygnus.com>
4903
4904         * ldlex.l: Recognize OVERLAY.
4905         * ldgram.y: Add section_phdr field to %union.
4906         (section): Handle phdr_opt result.  Add OVERLAY case.
4907         (opt_exp_without_type): New nonterminal.
4908         (phdr_opt): Return list of phdrs.
4909         (overlay_section): New nonterminal.
4910         * ldlang.c: Include <ctype.h>.
4911         (lang_leave_output_section_statement): Add phdrs parameter.
4912         Change all callers.
4913         (lang_section_in_phdr): Remove.
4914         (overlay_vma, overlay_lmn, overlay_max): New static variables.
4915         (struct overlay_list): Define.
4916         (overlay_list): New static variable.
4917         (lang_enter_overlay, lang_enter_overlay_section): New functions.
4918         (lang_leave_overlay_section, lang_leave_overlay): New functions.
4919         * ldlang.h (lang_leave_output_section_statement): Update
4920         declaration for new parameter.
4921         (lang_section_in_phdr): Don't declare.
4922         (lang_enter_overlay, lang_enter_overlay_section): Declare.
4923         (lang_leave_overlay_section, lang_leave_overlay): Declare.
4924         * ld.texinfo (Overlays): New node under SECTIONS, documenting
4925         overlays.
4926
4927         * ldlex.l: Recognize MAX and MIN.
4928         * ldgram.y (MAX, MIN): New terminals.
4929         (exp): Recognize MAX and MIN.
4930         * ldexp.c (fold_binary): Handle MAX and MIN.
4931         * ld.texinfo (Arithmetic Functions): Document MAX and MIN.
4932
4933         * ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
4934         index entries.
4935
4936         * ldgram.y (SIZEOF, ADDR): Do not specify type.
4937
4938         * ldcref.c (check_nocrossref): Skip symbols with no output
4939         sections.
4940
4941 Fri Aug  2 14:57:49 1996  Ian Lance Taylor  <ian@cygnus.com>
4942
4943         * ldgram.y (LOADADDR): New terminal.
4944         (exp): Handle LOADADDR.
4945         * ldlex.l: Recognize LOADADDR.
4946         * ldexp.c (exp_print_token): Add LOADADDR.
4947         (fold_name): Implement LOADADDR.
4948         * ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
4949         * ld.texinfo (Arithmetic Functions): Document LOADADDR.
4950
4951 Thu Aug  1 12:52:19 1996  Ian Lance Taylor  <ian@cygnus.com>
4952
4953         * ld.h (check_nocrossrefs): Declare.
4954         * ldlang.h (struct lang_nocrossref): Define.
4955         (struct lang_nocrossrefs): Define.
4956         (nocrossref_list): Declare.
4957         (lang_add_nocrossref): Declare.
4958         * ldlex.l: Recognize NOCROSSREFS keyword.
4959         * ldgram.y (%union): Add nocrossref field.
4960         (NOCROSSREFS): New terminal.
4961         (ifile_p1): Recognize NOCROSSREFS.
4962         (nocrossref_list): New nonterminal.
4963         * ldlang.c (nocrossref_list): Define.
4964         (lang_add_nocrossref): New function.
4965         * ldmain.c (main): If nocrossref_list is not NULL, call
4966         check_nocrossrefs.
4967         (warning_callback): Free symbols if there is no place to store
4968         them.
4969         (notice): Call add_cref if nocrossref_list is not NULL.
4970         * ldcref.c: Include "ldexp.h" and "ldlang.h".
4971         (check_nocrossrefs): New function.
4972         (check_nocrossref): New static function.
4973         (struct check_refs_info): Define.
4974         (check_refs, check_reloc_refs): New static functions.
4975         * Makefile.in: Rebuild dependencies.
4976         * ld.texinfo (Option Commands): Document NOCROSSREFS.
4977
4978         * ld.texinfo (Section Placement): Improve the wording of the
4979         wildcard documentation.  Mention that wildcards are only searched
4980         for on the command line, not in the file system.
4981
4982         * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
4983         definition of lib_path inside condition where it is used.
4984
4985 Wed Jul 31 13:17:10 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
4986
4987         * emulparams/d10velf.sh: Now works with elf.sc.
4988
4989 Wed Jul 31 11:52:03 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
4990
4991         * emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
4992
4993 Tue Jul 30 14:46:42 1996  Ian Lance Taylor  <ian@cygnus.com>
4994
4995         * ldlang.c (lang_size_sections): Add the section VMA to the result
4996         value when computing the address of a section.
4997
4998         * ld.h (args_type): Add cref field.
4999         * lexsup.c (parse_args): Set command_line.cref.
5000         * ldmain.c (main): Check command_line.cref rather than
5001         link_info.notice_all.
5002         (notice): Likewise.
5003
5004         * ldcref.c (output_one_cref): Don't crash if a symbol is defined
5005         in a section without an owner.
5006
5007 Mon Jul 29 17:23:33 1996  Ian Lance Taylor  <ian@cygnus.com>
5008
5009         * fnmatch.h, fnmatch.c: New files.
5010         * ldlex.l: Remove unused definition of FILENAME.  Add definition
5011         of WILDCHAR.  In SCRIPT mode, accept any sequence of WILDCHAR as a
5012         NAME.
5013         * ldgram.y (file_NAME_list): Accept '*' and '?' specially.
5014         (input_section_spec): Accept '?' specially.
5015         (statement): Change exp to mustbe_exp in length and FILL cases.
5016         (section): Call ldlex_script before section statements, and call
5017         ldlex_popstate after them.
5018         * ldlang.c: Include "fnmatch.h".
5019         (wildcardp): New static function.
5020         (wild_section): Permit the section name to be a wildcard.
5021         (wild_file): New static function, broken out of wild.
5022         (wild): Call wild_file.  Permit the file name to be a wildcard.
5023         (open_input_bfds): Don't call lookup_name for a wildcard pattern.
5024         * Makefile.in: Rebuild dependencies.
5025         (CFILES): Add fnmatch.c.
5026         (HFILES): Add fnmatch.h.
5027         (OFILES): Add fnmatch.o.
5028         * ld.texinfo: Document that file and section names can now be
5029         wildcard patterns.
5030
5031         * ldlang.c (lang_place_orphans): Correct condition: place a common
5032         section if not relocateable or if common definitions are forced.
5033
5034 Wed Jul 24 12:16:38 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
5035
5036         * emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
5037
5038 Wed Jul 24 13:38:22 1996  Michael Meissner  <meissner@wogglebug.tiac.net>
5039
5040         * configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
5041
5042 Tue Jul 23 10:36:19 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
5043
5044         * Makefile.in (ed10velf.c): New target.
5045         * configure.tgt (d10v-*-elf*): New target.
5046         * emulparams/d10velf.sh: New file.
5047
5048 Thu Jul 18 16:25:39 1996  Ian Lance Taylor  <ian@cygnus.com>
5049
5050         * configure.tgt (sparc*-*-sysv4*): New target.  From Andrew Gierth
5051         <ANDREWG@microlise.co.uk>.
5052
5053         * configure.host: Change irix5 to irix[56]*.
5054         * configure.tgt: Likewise.
5055
5056 Wed Jul 17 10:52:46 1996  Kim Knuttila  <krk@cygnus.com>
5057
5058         * emultempl/pe.em (sort_sections): Pay attention to return code.
5059
5060         * ldmisc.c (demangle): Remove all prefix '.'s from a name.
5061
5062 Mon Jul 15 11:49:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5063
5064         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round
5065         the value of __start_SECNAME to the alignment required by the
5066         section to be placed.
5067
5068 Tue Jul  9 12:09:02 1996  Ian Lance Taylor  <ian@cygnus.com>
5069
5070         * configure.tgt (mips*el-*-elf*): Use elf32elmip.
5071         (mips*-*-elf*): Use elf32ebmip.
5072         * emulparams/elf32bmip.sh (EMBEDDED): Don't define.
5073         * emulparams/elf32lmip.sh (EMBEDDED): Don't define.
5074         * emulparams/elf32elmip.sh: New file; copy of elf32lmip.sh with
5075         EMBEDDED defined.
5076         * emulparams/elf32ebmip.sh: New file; copy of elf32bmip.sh with
5077         EMBEDDED defined.
5078         * emulparams/elf32b4300.sh (EMBEDDED): Define.
5079         * emulparams/elf32l4300.sh (EMBEDDED): Define.
5080         * Makefile.in (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
5081         (eelf32ebmip.c, eelf32elmip.c): New targets.
5082
5083 Thu Jul  4 12:01:03 1996  Ian Lance Taylor  <ian@cygnus.com>
5084
5085         * ldver.c (ldversion): Set version to cygnus-2.7.1.
5086
5087         * Released binutils 2.7.
5088
5089         * emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
5090         System V file name limitations.
5091         * configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
5092         pc532macha rather than pc532machaout.
5093         * Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
5094         epc532macha.o.
5095         (epc532macha.c): Rename target from epc532machaout.c.
5096
5097 Wed Jul  3 11:40:10 1996  Ian Lance Taylor  <ian@cygnus.com>
5098
5099         * ldlang.c (print_padding_statement): Use %u, not %x, to print
5100         fill value.
5101
5102 Sun Jun 30 11:16:43 1996  Stan Shebs  <shebs@andros.cygnus.com>
5103
5104         * mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
5105
5106 Thu Jun 27 14:03:42 1996  Ian Lance Taylor  <ian@cygnus.com>
5107
5108         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
5109         file just before the .so file, rather than just after.
5110
5111         * configure.host: Use -print-file-name=FILE rather than piping
5112         -print-libgcc-file-name through sed.
5113         (i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
5114         crtend.o files, in case gcc doesn't use them.
5115         * Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
5116
5117 Wed Jun 26 15:57:21 1996  Ian Lance Taylor  <ian@cygnus.com>
5118
5119         * configure.tgt (mips*-dec-osf*): New target.
5120
5121 Tue Jun 25 22:15:29 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
5122
5123         * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
5124         INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
5125         (docdir): Removed.
5126         * configure.in (AC_PREREQ): autoconf 2.5 or higher.
5127         (AC_PROG_INSTALL): Added.
5128         * configure: Rebuilt.
5129
5130 Mon Jun 24 18:48:16 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
5131
5132         * scripttempl/elfppc.sc (_GLOBAL_OFFSET_TABLE_): Don't do a
5133         PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
5134         non-fixed location.
5135
5136 Mon Jun 24 17:55:31 1996  Jouke Numan  <jnuman@bazis.nl>
5137
5138         * ldlang.h (enum section_type): Define.
5139         (lang_output_section_statement_type): Remove loadable field.  Add
5140         sectype field.
5141         (lang_enter_output_section_statement): Change flags parameter in
5142         prototype to sectype.
5143         * ldgram.y (typebits): Remove.
5144         (sectype): New static variable.
5145         (opt_at): Use sectype rather than typebits.
5146         (type): Set sectype rather than typebits.
5147         (atype): Likewise.
5148         * ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
5149         EXPRESSION mode.
5150         * ldlang.c (lang_output_section_statement_lookup): Set sectype
5151         field rather than loadable field.
5152         (wild_doit): Check sectype rather than loadable.
5153         (lang_record_phdrs): Likewise.
5154         (lang_enter_output_section_statement): Rename flags parameter to
5155         sectype.  Set sectype field rather than loadable field.  Set flags
5156         field based on sectype.
5157
5158 Mon Jun 24 12:00:32 1996  Ian Lance Taylor  <ian@cygnus.com>
5159
5160         * scripttempl/elf.sc: Force .stab* and .comment sections to start
5161         at 0.
5162
5163         * configure.in: On alpha*-*-osf*, link against libbfd.a if not
5164         using shared libraries.
5165         * configure: Rebuild with autoconf 2.10.
5166
5167 Fri Jun 21 17:40:56 1996  Joel Sherrill  <joel@merlin.gcs.redstone.army.mil>
5168
5169         * configure.tgt: Add support for *-*-rtems* configurations.
5170
5171 Fri Jun 21 13:05:51 1996  Richard Henderson  <rth@tamu.edu>
5172
5173         * configure.tgt (alpha-*-linuxecoff*): New target.
5174         (alpha-*-linux*): Use elf64alpha.
5175         * emulparams/elf64alpha.sh: New file.
5176         * emultempl/elf32.em: If ELFSIZE is not set, set it to 32.  Use
5177         ${ELFSIZE} rather than 32 when calling BFD routines.
5178         (hold_rodata): New static variable.
5179         (gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
5180         readonly section that is not code.
5181         (gld${EMULATION_NAME}_place_section): Set hold_rodata.  Don't use
5182         a .rel section unless its bfd_section field is not NULL.
5183         * Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
5184         (eelf64alpha.c): New target.
5185
5186 Fri Jun 21 12:45:46 1996  Ian Lance Taylor  <ian@cygnus.com>
5187
5188         * ldmisc.c (vfinfo): Correct handling of 0 in %W case.
5189
5190 Thu Jun 20 13:55:28 1996  Ian Lance Taylor  <ian@cygnus.com>
5191
5192         Add enough support to understand the gcc svr3.ifile script:
5193         * ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context.  Add
5194         BIND keyword.
5195         * ldgram.y: Add BIND token.
5196         (section): Recognize GROUP.
5197         (opt_ext_with_type): Recognize a couple of cases of BIND.
5198         * ldlang.c (init_os): Don't do anything if section is already
5199         initialized.  Call exp_init_os on addr_tree field.
5200         (exp_init_os): New static function.
5201         (map_input_to_output_sections): Call exp_init_os on assignment
5202         expression.
5203         (lang_place_orphans): Check for common sections by name COMMON
5204         rather than by common_section field.  Don't warn about absence of
5205         [COMMON] command.
5206
5207         * ldlang.h (lang_input_statement_type): Remove useless fields
5208         common_section, common_output_section, and complained, as well as
5209         all references to them.
5210
5211         * ldexp.c: Reindent a lot of code.
5212         (exp_fold_tree): Call FAIL rather than einfo in default case.
5213
5214 Wed Jun 19 11:40:14 1996  Ian Lance Taylor  <ian@cygnus.com>
5215
5216         * configure.host (m88*-*-dgux*): Quote HOSTING_CRT0.  From
5217         <randall.hron@medaphis.com>.
5218
5219 Tue Jun 18 15:53:09 1996  Jeffrey A. Law  <law@rtl.cygnus.com>
5220
5221         * scripttempl/h8300s.sc: New file for H8/S.
5222         * emulpararms/h8300s.sh: New file for H8/S.
5223         * Makefile.in (ALL_EMULATIONS): Add H8/S.
5224         (e_h8300s.c): Add dependencies.
5225         * configure.tgt: Add H8/S to targ_extra_emuls.
5226
5227 Tue Jun 18 17:55:39 1996  Ian Lance Taylor  <ian@cygnus.com>
5228
5229         * configure.tgt (i[345]86*-*-isc*): New target.  From
5230         <uddeborg@carmen.se>.
5231
5232 Wed Jun 12 12:46:21 1996  Ian Lance Taylor  <ian@cygnus.com>
5233
5234         * lexsup.c: Include "libiberty.h".
5235         (parse_args): Copy the -Y argument into memory.
5236         (set_default_dirlist): Don't put the ':' back into the directory
5237         list.
5238
5239 Fri Jun  7 11:27:42 1996  Ian Lance Taylor  <ian@cygnus.com>
5240
5241         * emultempl/sunos.em: Include libiberty.h.
5242         (gld${EMULATION_NAME}_set_symbols): New static function to add
5243         LD_LIBRARY_PATH to the list of search directories.
5244         (ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
5245
5246 Thu Jun  6 11:50:31 1996  Ian Lance Taylor  <ian@cygnus.com>
5247
5248         * emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
5249         rather than . when computing _gp value.  From Per Fogelstrom.
5250         * emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
5251
5252         * ldmain.c (main): Don't close and unlink the file on error, since
5253         remove_output will do it anyhow.
5254         * ldlang.c (open_output): Set boolean variable to true, not 1.
5255
5256 Wed Jun  5 18:34:14 1996  James G. Smith  <jsmith@cygnus.co.uk>
5257
5258         * emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
5259         elfmips instead of elf.
5260
5261 Tue Jun  4 18:43:07 1996  Ian Lance Taylor  <ian@cygnus.com>
5262
5263         * ldcref.c: New file.
5264         * ld.h (add_cref, output_cref): Declare.
5265         * ldmain.c (main): Initialize notice_all field.  If it is set at
5266         end of link, call output_cref.
5267         (notice): Rename from notice_ysym.  Check notice_all.
5268         * ldmisc.c (finfo): Make globally visible.
5269         * ldmisc.h (finfo): Declare.
5270         * lexsup.c (OPTION_CREF): Define.
5271         (ld_options): Add "cref".
5272         (parse_args): Handle OPTION_CREF.
5273         * Makefile.in: Rebuild dependencies.
5274         (CFILES): Add ldcref.c.
5275         (OFILES): Add ldcref.o.
5276         * ld.texinfo, ld.1: Document --cref.
5277
5278 Tue Jun  4 12:12:25 1996  Tom Tromey  <tromey@csk3.cygnus.com>
5279
5280         * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
5281
5282 Fri May 31 12:40:55 1996  Ian Lance Taylor  <ian@cygnus.com>
5283
5284         * emultempl/pe.em (sort_sections): Don't assume that a
5285         wild_statement has a section name.
5286
5287 Wed May 29 13:13:35 1996  Ian Lance Taylor  <ian@cygnus.com>
5288
5289         * scripttempl/elfmips.sc: Quote test -z argument.
5290
5291         * ld.texinfo: Clarify the CONSTRUCTORS command.
5292
5293 Thu May 23 16:07:44 1996  Ian Lance Taylor  <ian@cygnus.com>
5294
5295         * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
5296         file, not impfile.
5297
5298 Wed May 22 11:31:30 1996  Doug Evans  <dje@seba.cygnus.com>
5299
5300         * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
5301         if final link.
5302         * emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
5303         (sort_by_section_name, sort_sections_1): New functions.
5304         (sort_sections): Only sort by file name sections in .idata.
5305         Add "Grouped Sections" support.
5306         (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
5307         Sections.
5308         (gld${EMULATION_NAME}_place_section): Delete.
5309         * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
5310         (.CRT,.rsrc): Rewrite to use Grouped Section support.
5311
5312 Tue May 21 14:31:48 1996  Stan Shebs  <shebs@andros.cygnus.com>
5313
5314         * mpw-eppcmac.c: Update to reflect changes to aix.em.
5315
5316 Sun May 19 16:59:44 1996  Doug Evans  <dje@seba.cygnus.com>
5317
5318         * ldlang.c (dprint_statement): Stop printing at end of list.
5319
5320 Sat May 18 13:12:05 1996  Steve Chamberlain  <sac@slash.cygnus.com>
5321
5322         Support for --force-exe-suffix
5323         * ld.h (args_type): Add force_exe_suffix.
5324         * ld.texinfo: Add documentation.
5325         * ldmain.c (main):  Add support for option.
5326         * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
5327         (ld_options, parse_args):  Add support for option.
5328
5329 Wed May 15 12:50:25 1996  Jim Wilson  <wilson@chestnut.cygnus.com>
5330
5331         * emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
5332
5333 Fri May 10 16:28:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
5334
5335         * scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
5336         referenced but not defined.
5337
5338 Thu May  9 08:52:23 1996  Rob Savoye  <rob@chinadoll.cygnus.com>
5339
5340         * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
5341         Set a new variable to signify if the final target is an embedded
5342         system.
5343         * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
5344         .text for an embedded system.
5345
5346 Tue May  7 10:56:11 1996  Doug Evans  <dje@canuck.cygnus.com>
5347
5348         * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
5349         (gld${EMULATION_NAME}_place_section): New function.
5350         (hold_{section,use,text,rdata,data}): New static locals.
5351         (ld_${EMULATION_NAME}_emulation): Update orphan field.
5352         * scripttempl/pe.sc: Whitespace cleanup.  Semicolon usage cleanup.
5353         (INIT,FINI): Delete, unused.
5354         (.text): Document orphan .text.foo sections.
5355         (.rdata): Document orphan .rdata.foo sections.
5356         (.data): Document orphan .data.foo sections.
5357
5358 Tue May  7 11:35:46 1996  Jeffrey A Law  (law@cygnus.com)
5359
5360         * scripttempl/h8300.sc: Place ".tiny" sections right
5361         after ".data" sections.
5362         * scripttempl/h8300h.sc: Place ".tiny" sections into
5363         the "tiny" memory region, 0xff8000 through 0xffff00.
5364
5365         * scripttempl/h8300.sc: Set the entry point to the value of
5366         "_start" rather than the start of the text segment.
5367         * scripttempl/h8300h.sc: Likewise.
5368
5369         * scripttempl/h8300.sc: Place .rodata sections before .text
5370         sections in main ram.
5371         * scripttempl/h8300h.sc: Likewise.
5372
5373 Mon May  6 23:32:30 1996  Jeffrey A Law  (law@cygnus.com)
5374
5375         * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
5376         8-bit region and 8-bit sections.
5377
5378 Wed May  1 17:50:06 1996  Doug Evans  <dje@canuck.cygnus.com>
5379
5380         * ldlang.c (section_already_linked): Fix typos.
5381
5382 Mon Apr 29 20:31:06 1996  Doug Evans  <dje@canuck.cygnus.com>
5383
5384         * scripttempl/pe.sc (.endjunk): Define __end__.
5385
5386 Mon Apr 29 17:05:13 1996  Ian Lance Taylor  <ian@cygnus.com>
5387
5388         * ldlang.c (longest_section_name): Remove.
5389         (SECTION_NAME_MAP_LENGTH): Define.
5390         (print_size, print_alignment, print_fill, print_section): Remove.
5391         (print_flags): Remove.
5392         (lang_map): Rewrite.
5393         (print_output_section_statement): Rewrite.
5394         (print_assignment): Rewrite.
5395         (print_one_symbol): Rewrite.
5396         (print_input_section): Rewrite.
5397         (print_fill_statement): Rewrite.
5398         (print_data_statement): Rewrite.
5399         (print_address_statement): New static function.
5400         (print_reloc_statement): Rewrite.
5401         (print_padding_statement): Rewrite.
5402         (print_wild_statement): Rewrite.
5403         (print_statement_list): Clean up.
5404         (print_statement): Clean up.  Some minor output changes.
5405         (print_statements): Clean up.
5406         (load_symbols): Put another - before -whole-archive.
5407         * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
5408         print 0x and to omit leading zeroes.  For etree_rel, use %B to
5409         print the BFD.  For etree_assign, remove the space after the
5410         destination name.
5411         * ldwrite.c: Include "libiberty.h".
5412         (clone_section): Call xstrdup, not strdup.
5413         (ldwrite): Don't print any map information.
5414         (print_symbol_table, print_file_stuff, print_symbol): Remove.
5415         * ldmain.c (main): Call lang_map when appropriate.
5416         * ldmisc.c (vfinfo): Add support for %W.
5417         (print_address): Remove.
5418         * ldmisc.h (print_address): Don't declare.
5419         * Makefile.in: Rebuild dependencies.
5420
5421 Mon Apr 29 10:29:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5422
5423         * configure.host (m68*-*-linux*): Add -dynamic-linker to
5424         HOSTING_CRT0.  Search -lgcc both before and after -lc in
5425         HOSTING_LIBS.  Look for crt{begin,end}.o in the compiler directory
5426         at first.
5427         (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
5428         directory at first.
5429
5430 Fri Apr 26 14:42:27 1996  Ian Lance Taylor  <ian@cygnus.com>
5431
5432         * ldmisc.h (demangle): Declare.
5433         * ldmisc.c: Include "libiberty.h".  Include demangle.h with "",
5434         not <>.
5435         (demangle): Make non-static.  Remove remove_underscore paramter.
5436         Always return an allocated string.
5437         (vfinfo): Free result of demangle.  Add case 'G'.  Use %T to print
5438         functionname, rather than calling demangle.  Print a colon between
5439         the BFD(section+offset) and the line number.
5440         * ldmain.c (add_archive_element): Improve format of archive
5441         information in map file.
5442         (constructor_callback): Don't print anything to the map file.
5443         * ldlang.c (lang_one_common): Improve format of common symbol
5444         information in map file.
5445         * ldctor.c (ldctor_build_sets): If producing a map file, print set
5446         information.
5447         * ldwrite.c (print_symbol_table): Print a newline before the
5448         header in the map file.
5449         * Makefile.in: Rebuild dependencies.
5450
5451         * ldmisc.c (vfinfo): Reindent.
5452
5453 Mon Apr 22 12:07:32 1996  Ian Lance Taylor  <ian@cygnus.com>
5454
5455         * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
5456         don't clobber it when not relaxing.
5457
5458         * ld.h (ld_config_type): Remove traditional_format field.
5459         * ldmain.c (main): Use link_info.traditional_format rather than
5460         config.traditional_format.
5461         * ldlang.c (ldlang_open_output): Likewise.
5462         * lexsup.c (parse_args): Likewise.
5463         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
5464         * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
5465
5466         * ldlang.c (wild_doit): Discard debugging sections if we are
5467         stripping debugging information.
5468
5469         * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
5470
5471 Tue Apr 16 16:38:32 1996  Ian Lance Taylor  <ian@cygnus.com>
5472
5473         * ldexp.c (fold_binary): Correct handling of subtraction with
5474         absolute values.
5475         (fold_name): Permit symbols in lang_allocating_phase_enum.
5476
5477         * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING.  Undo
5478         accidental changes in last patch.
5479
5480 Tue Apr 16 10:25:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
5481
5482         * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
5483         (powerpcle*-*-{sysv,solaris}): Ditto.
5484
5485 Mon Apr 15 14:50:56 1996  Rob Savoye  <rob@chinadoll.cygnus.com>
5486
5487         * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
5488         in m68k/crt0.S without things blowing up.
5489
5490 Fri Apr 12 16:40:56 1996  Rob Savoye  <rob@chinadoll.cygnus.com>
5491
5492         * scripttempl/m68kcoff.sc: Remove default address for .data so
5493         .text, .data, and .bss are all sequential.
5494
5495 Thu Apr 11 12:05:35 1996  Ian Lance Taylor  <ian@cygnus.com>
5496
5497         * scripttempl/m68kcoff.sc: Remove regions and simplify.
5498
5499 Wed Apr 10 14:41:53 1996  Jeffrey A Law  (law@cygnus.com)
5500
5501         * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
5502         bytes of the address space.  Put data from the ".eight" sections
5503         into the 8-bit area.
5504         * scripttempl/h8300h.sc: Likewise.
5505
5506 Tue Apr  9 14:10:42 1996  Doug Evans  <dje@canuck.cygnus.com>
5507
5508         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
5509         Pass $ARCH to ldfile_set_output_arch instead of setting
5510         ldfile_output_architecture directly.
5511
5512 Tue Apr  9 14:22:15 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
5513
5514         * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
5515         next to .text.  Put _etext after .text, .init, .fini, and
5516         .rodata{,2} sections.
5517
5518 Tue Apr  9 12:18:57 1996  Ian Lance Taylor  <ian@cygnus.com>
5519
5520         * ld.texinfo: Rearrange option documentation.
5521
5522         * lexsup.c (ld_options): New static array.
5523         (parse_args): Build shortopts and longopts from ld_options array.
5524         (help): New static function.
5525         * ldver.h (help): Don't declare.
5526         * ldver.c (ldversion): Reindent.
5527         (help): Remove.
5528
5529         * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
5530
5531 Mon Apr  8 11:56:23 1996  Ian Lance Taylor  <ian@cygnus.com>
5532
5533         * emultempl/elf32.em: When checking for a native emulation, check
5534         that the current emulation is the default emulation.
5535         * emultempl/sunos.em: Likewise.
5536
5537         * configure.in: Permit --enable-shared to specify a list of
5538         directories.
5539         * configure: Rebuild.
5540
5541         * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
5542         for HP/UX compatibility.
5543
5544 Fri Apr  5 14:30:14 1996  Ian Lance Taylor  <ian@cygnus.com>
5545
5546         * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
5547         static function, if ${host} = ${target}.
5548         (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
5549         needed shared library if ${host} = $[target}.
5550
5551         * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
5552         HOSTING_CRT0.  Search -lgcc both before and after -lc in
5553         HOSTING_LIBS.
5554
5555         * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
5556         Polstra <jdp@polstra.com>.
5557
5558 Fri Apr  5 18:11:25 1996  James G. Smith  <jsmith@cygnus.co.uk>
5559
5560         * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
5561         architecture number.
5562         * scripttempl/elf.sc: Use $MACHINE definition if present.
5563         * configure.tgt (targ_extra_emuls): Force 4100 build to use same
5564         template as 4300.
5565
5566 Mon Apr  1 17:35:40 1996  Ian Lance Taylor  <ian@cygnus.com>
5567
5568         * ldlang.c (lang_size_sections): Change region check to handle
5569         regions which end at the highest possible address correctly.
5570         From Roland Weber <roweber@ira.uka.de>.
5571
5572         * ldlang.c (section_already_linked): New static function.
5573         (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
5574         relocateable link.  Don't worry about section being NULL, since it
5575         never should be.  Don't call init_os unless the section is going
5576         to be added.
5577         (ldlang_add_file): Call section_already_linked for each section.
5578         * ldmain.c (multiple_definition): Don't warn about multiple
5579         definitions in sections which are being discarded.
5580
5581 Sun Mar 31 00:30:47 1996  steve chamberlain  <sac@slash.cygnus.com>
5582
5583         * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
5584         * emultempl/pe.em (init): Remove special case PPC code.
5585
5586 Fri Mar 29 00:01:29 1996  Jeffrey A Law  (law@cygnus.com)
5587
5588         * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
5589         so as not to overwrite the magic syscall entry at 0xc4.
5590         * scripttempl/h8300h.sc: Likewise.
5591
5592 Thu Mar 28 11:05:47 1996  Doug Evans  <dje@canuck.cygnus.com>
5593
5594         * configure.tgt (sparc64-*-solaris2*): Delete.
5595         Stick with sparc-*-solaris2*.
5596
5597 Wed Mar 27 12:33:24 1996  Ian Lance Taylor  <ian@cygnus.com>
5598
5599         * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
5600         * ldlang.c (init_os): Fail on an attempt to initialize any section
5601         named DISCARD_SECTION_NAME.
5602         (wild_doit): Discard input sections assigned to an output section
5603         named DISCARD_SECTION_NAME.
5604         * ld.texinfo: Document use of /DISCARD/.
5605
5606         * ldlang.c: Fix some indentation and comments.
5607
5608 Tue Mar 26 18:14:49 1996  Ian Lance Taylor  <ian@cygnus.com>
5609
5610         * ldmain.c (main): Call bfd_set_error_program_name.
5611
5612 Thu Mar 21 13:17:34 1996  Ian Lance Taylor  <ian@cygnus.com>
5613
5614         * ld.texinfo: Fix a couple of indexing entries.  Mention that
5615         --verbose displays builtin linker scripts.
5616
5617         * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
5618         and the local symbol name does not match the filename, print the
5619         filename as well.
5620
5621         Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
5622         * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
5623         * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
5624         as TEXT_START_ADDR.
5625
5626 Wed Mar 20 18:18:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5627
5628         * ld.texinfo: Fix typos.  Use @pxref only inside parentheses.
5629
5630 Wed Mar 20 16:56:15 1996  Ian Lance Taylor  <ian@cygnus.com>
5631
5632         * ldmain.c (add_wrap): New function.
5633         * ldmain.h (add_wrap): Declare.
5634         * lexsup.c (parse_args): Call add_wrap.
5635
5636 Tue Mar 19 16:44:20 1996  Doug Evans  <dje@canuck.cygnus.com>
5637
5638         * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
5639
5640 Wed Mar 13 17:47:31 1996  Jeffrey A Law  (law@cygnus.com)
5641
5642         * scripttempl/h8300.sc: Change name of page zero memory
5643         from "null" to "vectors".  Create an output section for
5644         vectors.  Add comments on how to explicitly place items
5645         in the vector table.
5646         * scripttempl/h8300h.sc: Likewise.
5647
5648 Wed Mar 13 12:40:18 1996  Ian Lance Taylor  <ian@cygnus.com>
5649
5650         * emultempl/lnk960.em (machine_table): Add jx and hx.
5651
5652         * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
5653         support it.
5654
5655 Tue Mar 12 12:43:59 1996  David Mosberger-Tang  <davidm@koala.azstarnet.com>
5656
5657         * ld.h (ld_config_type): Add warn_multiple_gp field.
5658         * lexsup.c (parse_args): Handle --warn-multiple-gp.
5659         * ldmain.c (warning_callback): Suppress multiple gp values warning
5660         if --warn_multiple_gp was not used.
5661         * ld.texinfo, ld.1: Document --warn-multiple-gp.
5662
5663 Tue Mar 12 12:02:21 1996  Ian Lance Taylor  <ian@cygnus.com>
5664
5665         * lexsup.c (parse_args): Handle --wrap.
5666         * ldmain.c (main): Initialize link_info.wrap_hash.
5667         * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
5668         and NAME cases.
5669         * ld.texinfo, ld.1: Document --wrap.
5670
5671         * configure: Rebuild with autoconf 2.8.
5672
5673         Don't do SunOS style dynamic linking for sparc-aout:
5674         * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
5675         (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
5676         (sparc*-wrs-vxworks*): Likewise.
5677         * emulparams/sparcaout.sh: New file.
5678         * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
5679         (esparcaout.c): New target.
5680
5681 Wed Mar  6 16:06:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
5682
5683         * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
5684         in a different manner to work around differences in shell variable
5685         expansion.
5686
5687 Wed Mar  6 18:08:18 1996  Ian Lance Taylor  <ian@cygnus.com>
5688
5689         * ldemul.h (ldemul_unrecognized_file): Declare.
5690         (ldemulation_xfer_type): Add unrecognized_file field.
5691         * ldemul.c (ldemul_unrecognized_file): New function.
5692         * ldlang.c (load_symbols): If a file can not be recognized, call
5693         ldemul_unrecognized_file before trying it as a linker script.
5694         * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
5695         function.
5696         (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
5697         (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
5698
5699 Mon Mar  4 14:11:17 1996  Ian Lance Taylor  <ian@cygnus.com>
5700
5701         * ldlang.c (wild): Handle foo.a(.text) by mapping each included
5702         member of foo.a separately.  From Jouke Numan <jnuman@bazis.nl>.
5703
5704 Fri Mar  1 10:24:59 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5705
5706         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
5707         Search trinary.cond rather than searching trinary.lhs twice.
5708
5709 Tue Feb 27 15:08:43 1996  Stan Shebs  <shebs@andros.cygnus.com>
5710
5711         * mpw-make.sed: Edit out shared library support.
5712         (@TDIRS@): Edit out, can't use genscripts.
5713
5714 Tue Feb 27 15:09:21 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5715
5716         * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
5717         * emulparams/m68klinux.sh: New file.
5718         * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
5719         Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
5720         bfd_linux_size_dynamic_sections.
5721         * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
5722         (em68klinux.c): New target.
5723         * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
5724
5725 Tue Feb 27 12:55:46 1996  Ian Lance Taylor  <ian@cygnus.com>
5726
5727         * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
5728         Fill in missing entries.
5729
5730         * lexsup.c (parse_args): Recognize --no-whole-archive.
5731         * ldlang.h (lang_input_statement_type): Add whole_archive field.
5732         * ldlang.c (new_afile): Set whole_archive field.
5733         (load_symbols): Check input file specific whole_archive field
5734         rather than global variable.
5735         * ld.texinfo, ld.1: Document --no-whole-archive.
5736
5737 Tue Feb 20 16:07:00 1996  Ian Lance Taylor  <ian@cygnus.com>
5738
5739         * configure.tgt: Correct gldi960 to gld960.
5740
5741 Mon Feb 19 11:16:44 1996  Ian Lance Taylor  <ian@cygnus.com>
5742
5743         * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
5744         the SONAME if it is available.
5745         (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
5746         filename, when checking for conflicting library versions.  Don't
5747         assume that the suffix is only numbers and dots.
5748
5749         * ld.texinfo: Mention that -R can be used for -rpath.
5750
5751 Sun Feb 18 15:05:17 1996  Ian Lance Taylor  <ian@cygnus.com>
5752
5753         * configure.host: Check for 'do not mix' from native linker before
5754         trying to use -rpath.
5755
5756 Thu Feb 15 13:58:06 1996  Ian Lance Taylor  <ian@cygnus.com>
5757
5758         * configure.in: Remove explicit substitution of CFLAGS; autoconf
5759         does it anyhow.
5760         * configure: Rebuild.
5761         * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
5762
5763         * configure.in: Call AC_PROG_CC before configure.host.
5764         * configure: Rebuild.
5765         * configure.host: Remove go32 host, since it should no longer be
5766         necessary.  Don't set CC for romp host.
5767
5768         * scripttempl/elf.sc: Don't skip a page in virtual memory space if
5769         the text segment ends exactly on a page boundary.
5770
5771         * configure.in: Substitute RPATH_ENVVAR.
5772         * configure: Rebuild.
5773         * configure.host: Set RPATH_ENVVAR.
5774         * Makefile.in (RPATH_ENVVAR): New variable.
5775         (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
5776
5777 Wed Feb 14 18:49:01 1996  Alan Modra  <alan@spri.levels.unisa.edu.au>
5778
5779         * configure.in: Redo emulation handling so that each emulation
5780         searches the correct tool directory, based on the target alias.
5781         For example, "configure --enable-targets=m68k-coff i386-linux"
5782         will search /usr/local/i386-linux/lib for linux and
5783         /usr/local/m68k-coff/lib for m68k-coff.
5784         * configure: Rebuild.
5785         * configure.tgt: Add special tdir settings for Linux.
5786         * Makefile.in: Add @TDIRS@.  Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
5787         for each eEMUL.c target.
5788         * genscripts.sh: Accept specific alias as 9th argument, and use it
5789         in LIB_PATH.
5790
5791 Wed Feb 14 16:38:36 1996  Martin Anantharaman  <martin@mail.imech.uni-duisburg.de>
5792
5793         * ldlang.c (lang_set_startof): Don't do anything for a
5794         relocateable link.
5795
5796         * ldgram.y (mri_script_file): Call mri_draw_tree.
5797         * mri.c (mri_draw_tree): Make globally visible.  Don't bother to
5798         create memory regions.
5799         (mri_load): Don't call mri_draw_tree.
5800         * mri.h (mri_draw_tree): Declare.
5801
5802         * configure.tgt (m68*-*-psos): New target.
5803         * emulparams/m68kpsos.sh: New file.
5804         * scripttempl/psos.sc: New file.
5805         * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
5806         (em68kpsos.c): New target.
5807
5808 Wed Feb 14 11:09:25 1996  Ian Lance Taylor  <ian@cygnus.com>
5809
5810         * configure.tgt (*-*-ieee*): New target; use vanilla.
5811
5812         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
5813         `:foo' from ${ARCH}.
5814
5815 Tue Feb 13 15:58:58 1996  Bryan Ford  <baford@snake.cs.utah.edu>
5816
5817         * scripttempl/i386msdos.sc: Don't pad the .text section.  Put
5818         .rodata in .data.
5819
5820 Tue Feb 13 14:04:19 1996  Ian Lance Taylor  <ian@cygnus.com>
5821
5822         * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
5823
5824         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
5825         it looks like we might be linking in two different versions of the
5826         same shared library.  Based on a patch from H J Lu <hjl@zoom.com>.
5827
5828 Thu Feb  8 19:25:54 1996  Ian Lance Taylor  <ian@cygnus.com>
5829
5830         * ldlang.c (lang_size_sections): Increment the section size when a
5831         padding statement is encountered.
5832
5833 Wed Feb  7 14:01:33 1996  Ian Lance Taylor  <ian@cygnus.com>
5834
5835         * configure.in: Look for --enable-shared.  Change the value of
5836         BFDLIB when linking against a shared library on SunOS.
5837         * configure: Rebuild.
5838         * configure.host: If using a shared BFD library, try to pass a
5839         reasonable -rpath option when linking.
5840         * Makefile.in (BFDLIB): Set to @BFDLIB@.
5841
5842 Tue Feb  6 12:29:14 1996  Doug Evans  <dje@charmed.cygnus.com>
5843
5844         * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
5845         * emultempl/generic.em: Strip `:foo' from ${ARCH}.
5846
5847 Mon Feb  5 16:25:30 1996  Ian Lance Taylor  <ian@cygnus.com>
5848
5849         Support for building bfd and opcodes as shared libraries, based on
5850         patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
5851         * configure.in (HLDFLAGS): New substitution.
5852         * configure: Rebuild.
5853         * configure.host: Set HLDFLAGS on SunOS.
5854         * Makefile.in (HLDFLAGS): New variable.
5855         (BFDDEP): New variable.
5856         (BFDLIB): Change to -L../bfd -lbfd.
5857         ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB).  Use
5858         $(HLDFLAGS) in link.
5859         (check): Set LD_LIBRARY_PATH in the environment.
5860
5861 Fri Feb  2 19:26:25 1996  Michael Meissner  <meissner@wogglebug.tiac.net>
5862
5863         * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
5864         in the read-only section, not read/write unless we are making a
5865         shared library.
5866         (.debug*): Add dwarf debug sections.
5867         (.rela.{sdata*,sbss*}): Add sections.
5868
5869 Fri Feb  2 16:50:21 1996  Ian Lance Taylor  <ian@cygnus.com>
5870
5871         * configure: Regenerate.
5872
5873 Thu Feb  1 10:50:46 1996  Ian Lance Taylor  <ian@cygnus.com>
5874
5875         * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
5876         for SVR4 compatibility.
5877
5878         * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
5879
5880 Wed Jan 31 17:30:19 1996  Steve Chamberlain  <sac@slash.cygnus.com>
5881
5882         * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
5883         * emultempl/pe.em (definfo init): Make the default stack reserve
5884         of a PPC larger.
5885
5886 Wed Jan 31 14:34:23 1996  Richard Henderson  <rth@tamu.edu>
5887
5888         * configure.tgt (m68*-apple-aux*): New target.
5889         * emulparams/m68kaux.sh: New file.
5890         * scripttempl/m68kaux.sc: New file.
5891         * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
5892         (em68kaux.c): New target.
5893
5894 Tue Jan 30 13:18:56 1996  Ian Lance Taylor  <ian@cygnus.com>
5895
5896         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
5897         -bnoentry, since the right thing tends to happen anyhow.
5898
5899 Mon Jan 29 12:29:26 1996  Ian Lance Taylor  <ian@cygnus.com>
5900
5901         * ld.texinfo, ld.1: Document -export-dynamic.
5902
5903 Fri Jan 26 11:11:55 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5904
5905         * emultempl/sunos.em: Check for native compile by comparing
5906         ${target} and ${host}.
5907
5908 Thu Jan 25 16:46:58 1996  James G. Smith  <jsmith@cygnus.co.uk>
5909
5910         * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
5911         TEXT_START_ADDR to allow use on IDT and PMON systems.
5912
5913 Wed Jan 24 20:59:40 1996  Steve Chamberlain  <sac@slash.cygnus.com>
5914
5915         * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
5916         correct spelling.
5917
5918 Wed Jan 24 16:59:19 1996  Doug Evans  <dje@charmed.cygnus.com>
5919
5920         * configure.tgt (sparc64-*-solaris2*): New configuration.
5921         (sparc64-*-aout*): Renamed from sparc64*.
5922
5923 Mon Jan 22 13:01:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5924
5925         * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
5926         * genscripts.sh: Set host, target and target_alias variables.
5927         Check for native compile by comparing ${target} and ${host}.
5928         * emultempl/elf32.em: Likewise.
5929         * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
5930
5931 Mon Jan 22 11:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
5932
5933         * scripttempl/elfppc.sc: Refine eabi support to better support
5934         .sdata, .sdata2, .sbss, etc. sections.
5935
5936 Tue Jan 16 15:16:58 1996  Ian Lance Taylor  <ian@cygnus.com>
5937
5938         * ldgram.y (%union): Add phdr field.
5939         (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
5940         (phdr_qualifiers): New nonterminal.  Add support for FLAGS.
5941         (opt_hdrs, hdr): Remove.
5942         (phdr_val): New nonterminal.
5943         * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
5944         and phdrs parameters.  Add flags parameter.
5945         (lang_record_phdrs): Update for changes to lang_phdr.  Pass flags
5946         to bfd_record_phdr.
5947         * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
5948         phdrs fields.  Add flags field.
5949         (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
5950         (lang_new_phdr): Update declaration.
5951         * ld.texinfo: Document FLAGS.
5952
5953 Mon Jan 15 15:07:19 1996  Ian Lance Taylor  <ian@cygnus.com>
5954
5955         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
5956         Don't make a shared library because of an undefined reference to
5957         __GLOBAL_OFFSET_TABLE_.
5958
5959         Add some Irix 5 support, mostly from Kazumoto Kojima
5960         <kkojima@info.kanagawa-u.ac.jp>:
5961         * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
5962         (SHLIB_TEXT_START_ADDR): Define.
5963         (OTHER_GOT_SYMBOLS): Define.
5964         (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
5965         (EXECUTABLE_SYMBOLS): Don't define.
5966         (DYNAMIC_LINK): Don't define.
5967         * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
5968         * scripttempl/elfmips.sc: New file.
5969         * configure.host (mips*-dec-bsd*): Change mips to mips*.
5970         (mips*-sgi-irix4*): Likewise.
5971         (mips*-sgi-irix5*): New entry.
5972         * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
5973         elf.sc.
5974         (eelf32lmip.c): Likewise.
5975
5976 Sat Jan 13 09:41:43 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
5977
5978         * scripttempl/elfppc.sc: Remove support for .rel.* sections.  Add
5979         .rela.got.neg section.
5980
5981 Fri Jan 12 14:56:19 1996  Ian Lance Taylor  <ian@cygnus.com>
5982
5983         * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
5984
5985         * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
5986         ANSI_PROTOTYPES is defined.  Remove special handling of
5987         WINDOWS_NT.  Various indendation fixes.
5988         (vfinfo): Change fmt parameter to const char *.
5989         (info_msg): Write <stdarg.h> version.
5990         (einfo, minfo, finfo): Likewise.
5991         (info_assert): Change file parameter to const char *.
5992         * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
5993         defined, use a real prototype.
5994         (info_assert): Change first parameter to be const char *.
5995
5996 Fri Jan 12 13:29:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
5997
5998         * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc.  Add
5999         in old support that 2.7.2 needs, but the current compiler does
6000         not.
6001
6002         * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
6003         correct Linker script template.
6004
6005         * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
6006         not 0x400000.
6007         (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
6008
6009 Tue Jan  9 15:53:02 1996  Ian Lance Taylor  <ian@cygnus.com>
6010
6011         * scripttempl/alpha.sc: Put .rconst right after .rdata.
6012
6013 Fri Jan  5 14:07:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
6014
6015         * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
6016         sort using right pointer.
6017
6018 Fri Jan  5 12:25:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6019
6020         * scripttempl/elfppc.sc: Remove support for creating special
6021         labels for eabi section begin/end here.  The compiler now uses
6022         crt{i,n}.o to create these symbols.
6023
6024 Thu Jan  4 17:08:58 1996  Ian Lance Taylor  <ian@cygnus.com>
6025
6026         * configure.host: Change existing Linux HOSTING_CRT0 to be used
6027         for a.out only, and put in appropriate HOSTING_CRT0 and
6028         HOSTING_LIBS values for Linux ELF.
6029
6030 Thu Jan  4 12:02:05 1996  Doug Evans  <dje@canuck.cygnus.com>
6031
6032         * scripttempl/h8300.sc: Use all 64K for ram.
6033         * scripttempl/h8300h.sc: Define 256K ram size.
6034
6035 Thu Dec 21 15:57:18 1995  Ian Lance Taylor  <ian@cygnus.com>
6036
6037         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
6038         export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
6039         was used, regardless of whether -bE was used.
6040
6041 Tue Dec 19 17:35:38 1995  Ian Lance Taylor  <ian@cygnus.com>
6042
6043         * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
6044         relocateable before calling ldctor_build_sets if the output file
6045         is in an XCOFF format.
6046
6047 Fri Dec 15 16:34:36 1995  Ian Lance Taylor  <ian@cygnus.com>
6048
6049         * ldwrite.c (build_link_order): When handling a data statement, if
6050         the endianness of the output file is unknown, use the endianness
6051         of the input file.
6052
6053 Tue Dec 12 13:55:41 1995  Stan Shebs  <shebs@andros.cygnus.com>
6054
6055         * mpw-config.in: Recognize mips-*-* as equivalent to
6056         mips-idt-ecoff.
6057         * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
6058         * mpw-ld.r: Add version resources.
6059         (cfrg): Use symbolic instead of literal name for executable.
6060
6061 Mon Dec 11 15:13:41 1995  Kim Knuttila  <krk@cygnus.com>
6062
6063         * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
6064
6065 Wed Dec  6 14:33:50 1995  Doug Evans  <dje@canuck.cygnus.com>
6066
6067         * ldlang.c (print_statement{,s}): Delete duplicate prototype.
6068         (print_statement_list): Renamed from print_statement.  All callers
6069         updated.
6070         (print_statement): New function to print just one statement.
6071         (print_{data,reloc,padding}_statement): Don't crash if
6072         output_section == NULL.
6073         (dprint_statement): New function.
6074
6075         * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
6076         call to sort_sections.
6077
6078 Wed Dec  6 14:59:06 1995  Ian Lance Taylor  <ian@cygnus.com>
6079
6080         * emultempl/aix.em (unix_ld): New static variable.
6081         (gld${EMULATION_NAME}_parse_args): Handle -unix.
6082         (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
6083         gc as false and export_defineds as true to size_dynamic_sections.
6084
6085         * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
6086         phase if the current section is abs_output_section.
6087
6088
6089 Tue Dec  5 09:49:39 1995  Doug Evans  <dje@canuck.cygnus.com>
6090
6091         * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
6092         to sort_sections.
6093
6094 Fri Dec  1 16:48:36 1995  Ian Lance Taylor  <ian@cygnus.com>
6095
6096         * ldgram.y (PHDRS): New token.
6097         (ifile_p1): Accept phdrs.
6098         (section): Accept phdr_opt at the end of the section definition.
6099         (phdr_op): New nonterminal.
6100         (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
6101         * ldlex.l: Accept PHDRS.
6102         * ldlang.h (struct lang_output_section_phdr_list): Define.
6103         (lang_output_section_statement_type): Add phdrs field.
6104         (struct lang_phdr): Define.
6105         (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
6106         (lang_new_phdr): Declare.
6107         * ldlang.c (lang_phdr_list): New static variable.
6108         (lang_output_section_statement_lookup): Initialize phdrs field.
6109         (lang_process): Call lang_record_phdrs.
6110         (lang_new_phdr): New function.
6111         (lang_section_in_phdr): New function.
6112         (lang_record_phdrs): New static function.
6113         * ld.texinfo: Document PHDRS.
6114
6115 Thu Nov 30 13:14:30 1995  Kim Knuttila  <krk@cygnus.com>
6116
6117         * scripttempl/ppcpe.sc: Moved .edata into its own section to
6118         expose it.
6119
6120 Thu Nov 30 11:32:34 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <manfred@lts.sel.alcatel.de>
6121
6122         * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
6123         HOSTING_LIBS for testing.
6124         (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
6125         testing.
6126
6127 Tue Nov 28 12:14:53 1995  Ian Lance Taylor  <ian@cygnus.com>
6128
6129         * lexsup.c (parse_args): Set config.dynamic_link to false for -N
6130         and -n.
6131
6132 Mon Nov 27 13:12:09 1995  Ian Lance Taylor  <ian@cygnus.com>
6133
6134         * configure: Rebuild with autoconf 2.7.
6135
6136 Fri Nov 24 18:35:35 1995  Doug Evans  <dje@canuck.cygnus.com>
6137
6138         * scripttempl/pe.sc: Two .junk's is too much junk.
6139
6140 Tue Nov 21 16:14:32 1995  Ian Lance Taylor  <ian@cygnus.com>
6141
6142         * configure.in: Use BFD_NEED_DECLARATION.
6143         * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
6144         * configure, config.in: Rebuild with autoconf 2.6.
6145
6146         * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
6147         being unsupported if this is not a relocateable link and the input
6148         BFD supports it, since ldctor_build_sets can cope with that case.
6149
6150 Fri Nov 17 16:23:15 1995  Stan Shebs  <shebs@andros.cygnus.com>
6151
6152         * configure.tgt (powerpc-*-macos*): New target.
6153         * emulparams/ppcmacos.sh: New file, PowerMac emulation.
6154         * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
6155         (eppcmacos.c): New target.
6156         * mpw-eppcmacos.c: Update.
6157         * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
6158
6159 Fri Nov 17 10:37:27 1995  Ian Lance Taylor  <ian@cygnus.com>
6160
6161         * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
6162         $(host_canonical) and $(target_canonical).
6163         (CXX_FOR_TARGET): Likewise.
6164
6165 Thu Nov 16 11:23:42 1995  Doug Evans  <dje@canuck.cygnus.com>
6166
6167         * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
6168         so the malloc heap begins at a sane place.
6169
6170 Thu Nov 16 03:09:32 1995  Ken Raeburn  <raeburn@cygnus.com>
6171
6172         Version 2.6 released.
6173         * ldver.c (ldversion): Update to 2.6.
6174
6175         * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
6176         $(GENERATED_*FILES), since they need to be retained by distclean.
6177         (maintainer-clean, realclean): Delete them here.
6178
6179 Tue Nov 14 17:08:06 1995  Ian Lance Taylor  <ian@cygnus.com>
6180
6181         * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
6182         base file with FOPEN_WB, not "w".
6183
6184         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
6185         environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
6186         were used.
6187         (gld${EMULATION_NAME}_before_allocation): Use the environment
6188         variable LD_RUN_PATH if -rpath was not used.
6189         * ld.texinfo, ld.1: Document LD_RUN_PATH.
6190
6191 Thu Nov  9 13:09:29 1995  Ian Lance Taylor  <ian@cygnus.com>
6192
6193         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
6194         -bl and -bloadmap options.
6195
6196         * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
6197         report a better error.
6198
6199         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
6200         new local variable special_sections, and pass it to
6201         size_dynamic_sections.  Look through the results, and move the
6202         sections around in the mapping so that they are defined correctly.
6203
6204 Wed Nov  8 11:40:59 1995  Ian Lance Taylor  <ian@cygnus.com>
6205
6206         * ldemul.c (ldemul_default_target): Cast getenv return value.
6207
6208 Tue Nov  7 11:15:36 1995  Kim Knuttila  <krk@cygnus.com>
6209
6210         * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
6211         Executable support.
6212         * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
6213         support.
6214
6215         * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
6216         * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
6217
6218         * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
6219         (gld_$_before_allocation): added hooks for toc construction based
6220         on the above macro.
6221
6222 Tue Nov  7 11:47:23 1995  Ian Lance Taylor  <ian@cygnus.com>
6223
6224         * ld.texinfo: The linker does not use _main as an entry point.
6225
6226 Tue Nov  7 11:46:11 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <manfred@lts.sel.alcatel.de>
6227
6228         * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
6229         0x2000 not 0x200.
6230
6231 Mon Nov  6 10:59:21 1995  Ian Lance Taylor  <ian@cygnus.com>
6232
6233         * configure.in: Add test for whether free must be declared.
6234         * sysdep.h: Declare free if necessary.  Include "ansidecl.h".
6235         * acconfig.h: Explain NEED_DECLARATION_FREE.
6236         * configure, config.in: Rebuild.
6237
6238         * lexsup.c (parse_args): Take B:: out of shortopts.
6239
6240 Sun Nov  5 03:08:28 1995  Ken Raeburn  <raeburn@cygnus.com>
6241
6242         * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
6243         for now, as with m68k4kbsd, until shared library support gets
6244         done.
6245
6246         * configure.host: For i386 BSD variants, crt0.o lives in
6247         /usr/lib.  (True for NetBSD at least, unconfirmed for others.)
6248
6249 Wed Nov  1 15:42:45 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <manfred@lts.sel.alcatel.de>
6250
6251         * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
6252         (edelta68.c): New target.
6253         * configure.tgt (m68*-motorola-sysv*): New target.
6254         * emulparams/delta68.sh: New file.
6255         * scripttempl/delta68.sc: New file.
6256
6257         * scripttempl/m88kbcs.sc: Handle .init and .fini.  Change section
6258         addresses.
6259
6260 Wed Nov  1 11:41:56 1995  Ian Lance Taylor  <ian@cygnus.com>
6261
6262         * ldgram.y (mri_script_command): Accept ',' as well as '=' in
6263         ALIGN and ALIGNMOD statements.
6264
6265         * emultempl/aix.em: Include ldgram.h.
6266         (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
6267         AIX 4.1.
6268         * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
6269
6270 Tue Oct 31 18:22:24 1995  David Mosberger-Tang  <davidm@azstarnet.com>
6271
6272         * configure.host (alpha-*-linux*): New host.
6273         * configure.tgt (alpha-*-linux*): New target.
6274
6275 Tue Oct 31 12:36:52 1995  Ian Lance Taylor  <ian@cygnus.com>
6276
6277         * emultempl/aix.em (export_files): Remove.
6278         (import_files): Make static.
6279         (struct export_symbol_list): Define.
6280         (export_symbols): New static variable.
6281         (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
6282         correctly.  Call read_file for an export file.
6283         (gld${EMULATION_NAME}_before_allocation): Call
6284         bfd_xcoff_export_symbol for each export symbol, rather than
6285         calling read_file for each export file.
6286         (gld${EMULATION_NAME}_read_file): For an export file, make the
6287         exported symbols undefined, and store them on the export_symbols
6288         list.
6289
6290 Sat Oct 28 00:10:03 1995  steve chamberlain  <sac@slash.cygnus.com>
6291
6292         * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
6293         Don't hang if last option is unrecognised.
6294         (gld_${EMULATION_NAME}_set_symbols): Insert created
6295         symbols into ABS output section.
6296
6297 Fri Oct 27 18:03:17 1995  Niklas Hallqvist  <niklas@appli.se>
6298
6299         *  Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
6300         m68k4k arch.
6301         (em68k4knbsd.c): New rule.
6302
6303         * configure.tgt: Added support for the NetBSD m68k4k arch.
6304
6305         * genscripts.sh, ldint.texinfo,
6306         emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
6307         gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
6308         hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
6309         i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
6310         m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
6311         pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
6312         st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
6313         PAGE_SIZE to TARGET_PAGE_SIZE.
6314
6315         * emulparams/m68knbsd.h: Ditto.
6316         (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
6317         (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
6318         being.
6319
6320         * emulparams/m68k4knbsd.sh: New file.
6321
6322         * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
6323
6324 Fri Oct 27 17:59:09 1995  Ian Lance Taylor  <ian@cygnus.com>
6325
6326         * emultempl/aix.em: Include ldctor.h.
6327         (gld${EMULATION_NAME}_after_open): New static function.
6328         (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
6329         (gld${EMULATION_NAME}_find_relocs): New static function.
6330         (gld${EMULATION_NAME}_find_exp_assignment): New static function.
6331         (ld_${EMULATION_NAME}_emulation): Use new after_open function.
6332         * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
6333         * ldctor.c (struct set_info): Move definition into ldctor.h.
6334         (struct set_element): Likewise.
6335         (sets): Make non-static.
6336         (ldctor_add_set_entry): Add name parameter.  Save it in the new
6337         set element.
6338         (ldctor_build_sets): Avoid being called twice.  Pass set element
6339         name to lang_add_reloc.
6340         * ldctor.h (struct set_info): Move definition here from ldctor.c.
6341         (struct set_element): Likewise.  Add new field name.
6342         (sets): Declare.
6343         (ldctor_add_set_entry): Declare new name parameter.
6344         * ldwrite.c (build_link_order): Don't insist that either name or
6345         section be NULL in a lang_reloc_statement.
6346         * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
6347         new name parameter.
6348         (constructor_callback): Pass name to ldctor_add_new_set_entry for
6349         new name parameter.
6350
6351         * ldmisc.c (demangle): Fix indentation.  Remove a leading period.
6352
6353 Thu Oct 26 22:22:49 1995  Stan Shebs  <shebs@andros.cygnus.com>
6354
6355         * mpw-config.in: Add PowerMac target support, generate config.h.
6356         * mac-ld.r: New file, Mac resources.
6357         * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
6358         * mpw-make.in: Remove.
6359         * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
6360
6361 Thu Oct 26 14:11:26 1995  Ian Lance Taylor  <ian@cygnus.com>
6362
6363         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
6364         -static as a synonym for -bnso.
6365
6366         * scripttempl/aix.sc: Move special symbols inside sections.
6367         Always start .data at 0.
6368
6369 Wed Oct 25 11:52:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
6370
6371         * Makefile.in (diststuff):  Also make info.
6372         (maintainer-clean realclean):  Also delete *.info*.
6373
6374 Wed Oct 25 11:27:25 1995  Ian Lance Taylor  <ian@cygnus.com>
6375
6376         * emultempl/aix.em: Add support for various AIX linker options,
6377         for AIX import and export files, and for AIX shared objects.
6378         * scripttempl/aix.sc: Add .pad.  Put .ds just before the TOC.
6379
6380         * ldmain.c (main): Initialize new field link_info.static_link.
6381
6382         * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
6383         (constructor_callback): Likewise.
6384         * ldmisc.c (vfinfo): Likewise.
6385         * ldwrite.c (build_link_order): Likewise.
6386
6387         * ld.texinfo: The MRI ALIGN directive is supported.
6388
6389 Mon Oct 23 11:46:43 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
6390
6391         * emulparams/elf32vr4300.sh: Deleted.
6392         * emulparams/elf32vr4300el.sh: Deleted.
6393         * emulparams/elf32b4300.sh: Added.
6394         * emulparams/elf32l4300.sh: Added.
6395         * configure.tgt, Makefile.in: Updated the build to use the
6396         new 8.3 unique names.
6397
6398 Thu Oct 19 17:41:46 1995  Ian Lance Taylor  <ian@cygnus.com>
6399
6400         * ldlang.c (entry_symbol): Make non-static.
6401         * ldlang.h (entry_symbol): Declare.
6402
6403         * ldlex.l: Treat PROVIDE as a keyword in expression state.
6404
6405 Wed Oct 18 17:34:06 1995  steve chamberlain  <sac@slash.cygnus.com>
6406
6407         * scripttempl/pe.sc (.bss): Move to be after .text
6408
6409 Tue Oct 17 12:22:05 1995  Ian Lance Taylor  <ian@cygnus.com>
6410
6411         * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
6412         Search trinary.cond rather than searching trinary.lhs twice.  From
6413         linli@ihp.PHys.ethz.CH.
6414
6415         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
6416         directory searching code into gld${EMULATION_NAME}_search_dir.
6417         (gld${EMULATION_NAME}_search_dir): New static function, extracted
6418         from gld${EMULATION_NAME}_find_so.
6419         (global_needed, global_found): New static variables.
6420         (gld${EMULATION_NAME}_after_open): New static function.
6421         (gld${EMULATION_NAME}_search_needed): New static function.
6422         (gld${EMULATION_NAME}_try_needed): New static function.
6423         (gld${EMULATION_NAME}_check_needed): New static function.
6424         (ld_${EMULATION_NAME}_emulation): Use new after_open function.
6425         * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
6426
6427         * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
6428         (eelf32lppc.c): Likewise.
6429         * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
6430         (GENERATE_SHLIB_SCRIPT): Define as yes.
6431
6432 Mon Oct 16 19:11:13 1995  Ian Lance Taylor  <ian@cygnus.com>
6433
6434         * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
6435         bfd_link_needed-list; make appropriate changes.
6436
6437         * configure.tgt (powerpc-*-aix*): New target; use aixppc.
6438         (rs6000-*-aix*): New target; use aixrs6.
6439         * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
6440         * emultempl/aix.em: New file.
6441         * scripttempl/aix.sc: New file.
6442         * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
6443         (eaixppc.c, eaixrs6.c): New targets.
6444
6445 Fri Oct 13 14:00:37 1995  steve chamberlain  <sac@slash.cygnus.com>
6446
6447         * scripttemp/pe.sc (.reloc): Move to the end.
6448
6449 Tue Oct 10 17:53:22 1995  Ian Lance Taylor  <ian@cygnus.com>
6450
6451         * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
6452         section which was not linked into the final output.
6453
6454 Tue Oct 10 10:17:22 1995  steve chamberlain  <sac@slash.cygnus.com>
6455
6456         * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
6457         fatal typos.
6458
6459 Tue Oct 10 01:01:51 1995  Ian Lance Taylor  <ian@cygnus.com>
6460
6461         * ld.h (args_type): Add rpath_link field.
6462         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
6463         required dependencies in rpath_link path.  Only search
6464         LD_LIBRARY_PATH when configured native.
6465         * lexsup.c (parse_args): Recognize -rpath-link.
6466         * ld.1, ld.texinfo: Document -rpath-link.
6467
6468 Sat Oct  7 17:07:17 1995  Ian Lance Taylor  <ian@cygnus.com>
6469
6470         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
6471         bother searching for needed libraries unless doing a final link.
6472
6473 Fri Oct  6 16:26:16 1995  Ken Raeburn  <raeburn@cygnus.com>
6474
6475         Mon Sep 25 22:49:32 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6476
6477         * ld/ld.1: Fix formatting bugs.
6478
6479 Wed Oct  4 17:37:46 1995  Ian Lance Taylor  <ian@cygnus.com>
6480
6481         * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
6482         * ldexp.h (exp_get_abs_int): Update declaration.
6483         * ldlang.c (print_output_section_statement): Use fprintf_vma to
6484         print return value of exp_get_abs_int.
6485
6486 Mon Oct  2 13:56:09 1995  Ian Lance Taylor  <ian@cygnus.com>
6487
6488         * emultempl/elf32.em (global_stat): New file static variable.
6489         (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
6490         that the file has not already been included under another name.
6491         (gld${EMULATION_NAME}_stat_needed): New static function.
6492
6493 Fri Sep 29 12:00:18 1995  Doug Evans  <dje@deneb.cygnus.com>
6494
6495         * scripttempl/armcoff.sc: Start .text at 0x8000.
6496         Start .data at 0x40000.
6497
6498 Fri Sep 29 11:09:46 1995  Ian Lance Taylor  <ian@cygnus.com>
6499
6500         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
6501         command_line.rpath is set, use it, rather than the -L options, to
6502         build the rules section.
6503         * ld.texinfo: Document this use of -rpath.
6504
6505         * lexsup.c (parse_args): Don't set link_info.shared for -assert
6506         pure-text.  Pass true, not 1, to lang_add_entry.
6507         * emultempl/sunos.em (find_assign): New static variable.
6508         (found_assign): New static variable.
6509         (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
6510         If not a relocateable link, and no start symbol was specified on
6511         the command line, and there are any undefined symbols, set
6512         link_info.shared.  If link_info.shared is set, set the address of
6513         the .text section to 0x20.
6514         (gld${EMULATION_NAME}_find_assignment): Rename from
6515         gld${EMULATION_NAME}_find_statement_assignment.  If find_assign is
6516         set, then just set found_assign based on whether an assignment is
6517         found to find_assign.
6518         (gld${EMULATION_NAME}_get_script): Don't use a special script when
6519         producing a shared library.
6520         * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
6521         * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
6522         * ldlang.c (entry_from_cmdline): New global variable.
6523         (lang_add_entry): Change cmdline parameter from int to boolean.
6524         Use global entry_from_cmdline rather than function static
6525         from_cmdline.
6526         * ldlang.h (entry_from_cmdline): Declare.
6527         (lang_add_entry): Change declaration of second parameter from int
6528         to boolean.
6529         * ldgram.y: Pass false, not 0, to lang_add_entry.
6530
6531 Thu Sep 28 12:34:13 1995  Ian Lance Taylor  <ian@cygnus.com>
6532
6533         * ld.h (parsing_defsym): Declare.
6534         * ldlex.h (lex_string): Declare.
6535         * ldlex.l (lex_string): Define.
6536         * lexsup.c (parsing_defsym): Define.
6537         (parse_args): In OPTION_DEFSYM case, set lex_string before calling
6538         lex_redirect, and clear it after calling yyparse.  Set
6539         parsing_defsym around call to yyparse.
6540         * ldmain.c (main): Set lex_string before calling lex_redirect, and
6541         clear it after calling yyparse.
6542         * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
6543         in linker scripts correctly.
6544
6545         * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
6546         COFF targets, allowing for the leading underscore used on SPARC
6547         COFF.
6548
6549         * lexsup.c (parse_args): Handle -assert.
6550         * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
6551         * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
6552         shared library script when appropriate.
6553         * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
6554         section at SIZEOF_HEADERS.
6555
6556 Thu Sep 28 01:40:37 1995  Doug Evans  <dje@deneb.cygnus.com>
6557
6558         * Makefile.in (earmcoff.c): Build.
6559         * configure.tgt (arm-*-coff): New target
6560         * emulparms/armcoff.sh: New file.
6561         * scripttempl/armcoff.sc: New file.
6562
6563 Tue Sep 26 10:59:32 1995  Ian Lance Taylor  <ian@cygnus.com>
6564
6565         * scripttempl/i386coff.sc: Remove .data2; no longer needed.
6566
6567 Fri Sep 22 18:09:02 1995  Ian Lance Taylor  <ian@cygnus.com>
6568
6569         * ldfile.c (ldfile_set_output_arch): Make arch const.
6570
6571 Thu Sep 21 17:55:24 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
6572
6573         * scripttempl/elfppc.sc: Correctly locate __bss_start at the
6574         beginning of the .bss area, not at the end of data.  Add
6575         __sbss_{start,end} symbols.
6576
6577 Wed Sep 20 12:29:36 1995  Ian Lance Taylor  <ian@cygnus.com>
6578
6579         * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
6580         (CXX_FOR_TARGET, install): Likewise.
6581
6582 Mon Sep 18 14:53:22 1995  Ian Lance Taylor  <ian@cygnus.com>
6583
6584         Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
6585         * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
6586         (CXX_FOR_TARGET): Likewise.
6587         (install): Likewise.
6588         (GENERATED_HFILES): Remove config.h.
6589         (.dep): Depend upon config.h.
6590
6591 Mon Sep 18 14:39:38 1995  Arne H. Juul  <arnej@pvv.unit.no>
6592
6593         * configure.tgt (mips*-dec-netbsd*): New target.
6594
6595 Fri Sep 15 20:01:52 1995  Ken Raeburn  <raeburn@cygnus.com>
6596
6597         * configure.host (m88*-*-dgux*): Fix another shell syntax error.
6598
6599 Fri Sep 15 23:28:05 1995  Andrew Cagney  <cagney@highland.com.au>
6600
6601         * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
6602
6603 Thu Sep 12 12:50:49 1995  steve chamberlain  <sac@slash.cygnus.com>
6604
6605         * scripttemp/pe.sc:  Allow both spellings of .ctors/.dtors.
6606         Start .text section on the right boundary. Always align
6607         stabs.
6608
6609 Tue Sep 12 12:24:17 1995  Ian Lance Taylor  <ian@cygnus.com>
6610
6611         * Makefile.in (maintainer-clean): New target.
6612
6613         * ldmain.c (struct warning_callback_info): Define.
6614         (warning_callback): Add new parameter symbol.  Call
6615         warning_find_reloc to try to find the section and VMA.
6616         (warning_find_reloc): New static function.
6617         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6618         Pass NULL as symbol parameter to warning callback.
6619
6620         * ld.texinfo: Clarify -L option.
6621
6622         * ldlang.c (lang_one_common): Add cast to avoid warning.
6623         (topower): Likewise.  Also, reindent.
6624         * ldwrite.c (clone_section): Change i to unsigned int.
6625         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
6626         cast to avoid warning.
6627
6628 Fri Sep  8 16:32:43 1995  Ian Lance Taylor  <ian@cygnus.com>
6629
6630         * Makefile.in (config.status): Depend upon configure.tgt.
6631
6632         * ldemul.h (ldemul_set_symbols): Declare.
6633         (ldemul_parse_args): Declare.
6634         * ldemul.c (ldemul_parse_args): Fix indentation.
6635
6636         * configure.in: Call AC_HEADER_DIRENT.
6637         * configure, config.in: Rebuild.
6638         * emultempl/sunos.em: Use autoconf recommend mechanism to define
6639         DIR and struct dirent.
6640
6641         * configure.tgt (mips*-*-bsd*): New case.
6642
6643         * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
6644         New case.
6645         * configure.tgt (i[345]86-*-ptx*): New case.
6646
6647 Thu Sep  7 10:48:26 1995  Ian Lance Taylor  <ian@cygnus.com>
6648
6649         * config.in: Rename from config.h.in.
6650         * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
6651         Check for config.h:config.in when creating stamp-h.
6652         * configure: Rebuild.
6653         * Makefile.in (stamp-h): Depend upon config.in rather than
6654         config.h.in.  Set CONFIG_HEADERS to config.h:config.in when
6655         calling config.status.
6656
6657         * Makefile.in (distclean): Remove config.h and stamp-h.
6658
6659         * configure.host (sparc-*-sunos64*): Remove.
6660         * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
6661
6662         * ldexp.c (exp_fold_tree): Don't warn about moving the location
6663         counter backward in the absolute section.
6664
6665 Wed Sep  6 14:42:11 1995  Ian Lance Taylor  <ian@cygnus.com>
6666
6667         * configure.in: Rewrite to use autoconf.
6668         * configure.host: New file.
6669         * configure.tgt: New file.
6670         * aclocal.m4: New file.
6671         * configure: New file, built by autoconf.
6672         * acconfig.h: New file.
6673         * config.h.in: New file, built by autoheader.
6674         * sysdep.h: New file.
6675         * ld.h: Incorporate old contents of config.h.
6676         * config.h: Remove.
6677         * Makefile.in: Various changes for new configure script.  Also:
6678         (CC_FOR_BUILD): Remove.
6679         (ldmain.o): Don't bother to ensure that EMUL is non-empty.
6680         (dep.sed): Use @SRCDIR@, not @srcdir@.
6681         * dep-in.sed: Use @SRCDIR@, not @srcdir@.
6682         * genscripts.sh: Create ldscripts if it does not exist.
6683         * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
6684         * mpw-esh.c, emultemp/*.em: Likewise.
6685         * ldmain.c: Likewise.  Include <ctype.h>.  Don't try to set
6686         HAVE_SBRK here.
6687         * config/*.mt, config/*.mh: Remove.
6688
6689 Tue Sep  5 14:55:24 1995  Ken Raeburn  <raeburn@cygnus.com>
6690
6691         * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
6692         ns32k-pc532-lites* like ns32k-pc532-netbsd*.  From Ian Dall.
6693
6694 Fri Sep  1 22:29:52 1995  Doug Evans  <dje@canuck.cygnus.com>
6695
6696         * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
6697
6698 Fri Sep  1 13:13:29 1995  Ian Lance Taylor  <ian@cygnus.com>
6699
6700         * ldmain.c (warning_callback): Add abfd, section, and address
6701         parameters.
6702         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6703         Change call to warning accordingly.
6704
6705         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
6706         relocateable and not shared, put .gnu.warning.SYMBOL sections into
6707         the .text section.
6708
6709 Fri Sep  1 08:35:16 1995  James G. Smith  <jsmith@beauty.cygnus.com>
6710
6711         * configure.in: Added mips*vr4300-idt-elf* and
6712         mips*vr4300el-idt-elf* targets.
6713         * Makefile.in: Added eelf32vr4300* targets.
6714         * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
6715         * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
6716
6717 Fri Sep  1 10:51:45 1995  Ian Lance Taylor  <ian@cygnus.com>
6718
6719         * scripttempl/a29k.sc: Fix to be reasonable.  From Brendan Kehoe
6720         <brendan@cygnus.com>.
6721
6722 Thu Aug 31 16:37:07 1995  steve chamberlain  <sac@slash.cygnus.com>
6723
6724         * ldemul.c (ldemul_parse_args): New.
6725         * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
6726         * lexsup.c (all pe stuff): Moved into pe.em
6727         (parse_args): Call emulation arg parser.
6728         * emultempl/pe.em (parse_args): handle PE specfic args.
6729
6730 Thu Aug 31 17:01:37 1995  Ian Lance Taylor  <ian@cygnus.com>
6731
6732         * ldlang.c (lang_memory_region_lookup): Don't use the first region
6733         as the default region.  Create a new region instead.
6734
6735 Tue Aug 29 14:21:41 1995  steve chamberlain  <sac@slash.cygnus.com>
6736
6737         * ldemul.c (ldemul_set_symbols): New function.
6738         * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
6739         * ldmain.c (main): Add call to ldemul_set_symbols.
6740         * lexsup.c (set_pe_value): New args.
6741         (set_pe_name): New.
6742         (parse_args): Cope with new set_pe_value args.
6743         * emultempl/pe.em (set_symbols): New function.
6744         (ld_emulation_xfer_struct): Add set_symbols.
6745         * scripttempl/pe.sc: Use new symbols.
6746
6747 Thu Aug 24 18:12:18 1995  Ian Lance Taylor  (ian@cygnus.com)
6748
6749         * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
6750         For -Y, ignore a leading `P,', and only call set_default_dirlist
6751         after processing all the other arguments.
6752
6753 Tue Aug 22 07:36:58 1995  steve chamberlain  <sac@slash.cygnus.com>
6754
6755         * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
6756         * emulparams/armpe.sh: Run PE script.
6757
6758 Mon Aug 21 18:30:42 1995  steve chamberlain  <sac@slash.cygnus.com>
6759
6760         * ldmain.c (main): Remove PE stuff.
6761         * lexsup.c (options): Load more PE options.
6762         (set_pe_value): New function.
6763
6764 Thu Aug 17 13:35:49 1995  steve chamberlain  <sac@slash.cygnus.com>
6765
6766
6767         * emultempl/{armpe.sc, i386pe.sc}: Deleted.
6768         * emultempl/pe.sc: New file performs generic PE support and sorts
6769         archive members.
6770         * emulparams/{armpe.sh,i386pe.sh}: Use new file.
6771         * scripttempl/{armpe.sc, i386pe.sc}: Deleted
6772         * scripttempl/pe.sc: New.
6773         * Makefile.in: Use new files.
6774
6775 Thu Aug 17 14:46:34 1995  Doug Evans  <dje@canuck.cygnus.com>
6776
6777         * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
6778         (.strings,.ctors,.dtors): Likewise.
6779
6780 Wed Aug 16 11:38:59 1995  steve chamberlain  <sac@slash.cygnus.com>
6781
6782         * scripttempl/armpe.sc: Always start code at 0x401000, even
6783         if -r.
6784         * ldwrite.c (strdup): New extern declaration.
6785         * ldgram.y (atype): New rule to clarify type parsing.
6786         * ldlang.c (init_os): Remove commented out code.
6787         (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
6788         unless told not to by the link script.
6789
6790 Wed Aug 16 11:45:11 1995  Ian Lance Taylor  <ian@cygnus.com>
6791
6792         * ldlang.c (lang_set_startof): New static function.
6793         (lang_process): Call it.
6794
6795         * ldgram.y: Tweak casesymlist to avoid bison errors.
6796
6797         * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
6798         Solaris compatibility.
6799
6800 Tue Aug 15 17:31:16 1995  Ian Lance Taylor  <ian@cygnus.com>
6801
6802         * ldgram.y (YYDEBUG): If not defined, define as 1.
6803         (CASE, EXTERN, START): New tokens.
6804         (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
6805         (casesymlist): New nonterminal.
6806         (extern_name_list): New nonterminal.
6807         * ldlex.l: Accept lower case trailing base specifiers.  Don't
6808         ignore the first digit when the base is a suffix.  Accept many
6809         EXPRESSION state tokens in MRI state.  Support MRI continuation
6810         lines and MRI semicolon comments.  Accept all MRI keywords in
6811         lower case.  Add CASE, EXTERN, and START MRI keywords.
6812
6813 Tue Aug  8 19:14:58 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
6814
6815         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
6816         instead of alloca.
6817
6818 Tue Aug  8 15:24:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
6819
6820         * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
6821         $r/../gcc/xgcc unless it is present.
6822
6823 Thu Aug  3 11:56:22 1995  Ian Lance Taylor  <ian@cygnus.com>
6824
6825         * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
6826         when CONSTRUCTING.
6827         * scripttempl/m68klynx.sc: Likewise.
6828         * scripttempl/nw.sc: Likewise.
6829         * scripttempl/sa29200.sc: Likewise.
6830         * scripttempl/sparclynx.sc: Likewise.
6831
6832 Fri Jul 28 12:02:23 1995  steve chamberlain  <sac@slash.cygnus.com>
6833
6834         * emulparams/{z8001.sh, z8002.sh}: Fix typo.
6835
6836 Thu Jul 27 21:06:21 1995  Ken Raeburn  <raeburn@cygnus.com>
6837
6838         * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
6839
6840 Thu Jul 27 15:26:28 1995  steve chamberlain  <sac@slash.cygnus.com>
6841
6842         * scripttempl/i386pe.sc: Cope with constructors.
6843         * scripttempl/z8ksim.sc: Deleted.
6844         * scripttempl/z8000.sc: Resurrected as this, but
6845         can handle z8001 and z8002 formats.
6846         * emulparams/z8ksim.sh: Deleted.
6847         * emulparams/{z8001.sh, z8002.sh}: New files.
6848         * config/z8ksim.mt: Deleted
6849         * config/z8k-coff.mt: New, generates both emulations.
6850
6851 Tue Jul 25 14:53:02 1995  Ian Lance Taylor  <ian@cygnus.com>
6852
6853         * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
6854         %B, in case it is in an archive.
6855
6856 Mon Jul 24 15:23:39 1995  Ian Lance Taylor  <ian@cygnus.com>
6857
6858         * ldlang.c (lang_process): Call reset_memory_regions for each
6859         relaxation pass.
6860
6861 Fri Jul 21 22:49:44 1995  Michael Meissner  <meissner@cygnus.com>
6862
6863         * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
6864         _SDA_BASE.
6865
6866 Thu Jul 20 16:26:55 1995  Ken Raeburn  <raeburn@cygnus.com>
6867
6868         * ldmain.c (constructor_callback): Allocate set_name in stack
6869         frame, rather than always calling alloca with a fixed size.
6870
6871 Wed Jul 19 16:21:43 1995  Doug Evans  <dje@canuck.cygnus.com>
6872
6873         * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
6874         (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
6875
6876 Mon Jul 17 13:57:00 1995  Ian Lance Taylor  <ian@cygnus.com>
6877
6878         * ldwrite.c (clone_section): Set the alignment of the clone
6879         section to that of the section being cloned.
6880
6881         * ldwrite.c (split_sections): Don't split the first input section
6882         into a new output section.
6883
6884 Sat Jul 15 00:26:35 1995  Michael Meissner  <meissner@cygnus.com>
6885
6886         * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
6887         (GENERATE_SHLIB_SCRIPT): Define as yes.
6888
6889 Fri Jul 14 12:11:46 1995  Ian Lance Taylor  <ian@cygnus.com>
6890
6891         * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
6892
6893         * ldver.c (help): Update list of options to match currently
6894         supported list.
6895
6896 Thu Jul 13 13:52:10 1995  Ian Lance Taylor  <ian@cygnus.com>
6897
6898         * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
6899         after_open field.
6900
6901         * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
6902         it takes a size_t anyhow.
6903         (exp_binop): Likewise.
6904         (exp_trinop): Likewise.
6905         (exp_unop): Likewise.
6906         (exp_nameop): Likewise.
6907         (exp_assop): Likewise.
6908         * ldlang.c (lang_memory_region_lookup): Likewise.
6909         (init_os): Likewise.
6910         (ldlang_add_undef): Likewise.
6911         (insert_pad): Likewise.
6912         * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
6913         bfd_size_type.
6914
6915         * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
6916
6917 Wed Jul 12 11:32:22 1995  Ian Lance Taylor  <ian@cygnus.com>
6918
6919         * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
6920         declaration.
6921         (ld_emulation_xfer_type): Add search parameter to
6922         open_dynamic_archive entry point.
6923         * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
6924         * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
6925         make non-static.  Change all callers to use new name.
6926         (ldfile_open_file_search): Make static.  If entry is dynamic, call
6927         ldemul_open_dynamic_archive.
6928         (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
6929         * ldfile.h (ldfile_open_file_search): Don't declare.
6930         (ldfile_try_open_bfd): Declare.
6931         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
6932         Accept search parameter.  Don't search for a library, just look in
6933         a single place.
6934         * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
6935         Likewise.
6936
6937 Tue Jul 11 16:44:21 1995  Ian Lance Taylor  <ian@cygnus.com>
6938
6939         * ldmain.c (set_scripts_dir): Don't base script directory on
6940         current directory.
6941
6942 Tue Jul 11 12:29:02 1995  Rick Sladkey  <jrs@world.std.com>
6943
6944         * ldmisc.c (vfinfo): Don't print the line number if it isn't
6945         meaningful.
6946
6947 Mon Jul 10 13:38:28 1995  Ian Lance Taylor  <ian@cygnus.com>
6948
6949         * ld.h (ld_config_type): Add field warn_constructors.
6950         * ldmain.c (add_to_set): Warn if config.warn_constructors.
6951         (constructor_callback): Likewise.
6952         * lexsup.c (parse_args): Handle -warn-constructors.
6953         * ld.texinfo, ld.1: Document -warn-constructors.
6954
6955         * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
6956         get confused by directory names if we searched for the file.
6957
6958         Based on patches from H.J. Lu <hjl@nynexst.com>:
6959         * ldlang.h (lang_input_statement_type): Add new field dynamic.
6960         * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
6961         * ldfile.c: Include bfdlink.h.
6962         (ldfile_open_file): Check dynamic field of entry, not global
6963         dynamic_link field.  Don't do a dynamic search when doing a
6964         relocateable link.
6965         * ldmain.c (main): Don't warn about dynamic_link for a
6966         relocateable link.
6967         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
6968         dynamic is false.
6969         (gld${EMULATION_NAME}_create_output_section_statements): Always
6970         loop over input files.
6971         * Makefile.in: Rebuild dependencies.
6972
6973         * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
6974         -shared.
6975
6976 Mon Jul 10 13:29:43 1995  Eric Youngdale  <eric@aib.com>
6977
6978         * ldmain.c (main): Set link_info.symbolic to false.
6979         * lexsup.c (parse_args): Handle -Bsymbolic.
6980
6981 Wed Jul  5 00:12:11 1995  Fred Fish  (fnf@cygnus.com)
6982
6983         * ldmain.c (HAVE_SBRK):  Define for everything except
6984         specific systems that are known to not support sbrk.
6985         (main):  Use HAVE_SBRK to decide whether or not to use sbrk.
6986
6987 Tue Jul  4 12:55:48 1995  Ian Lance Taylor  <ian@cygnus.com>
6988
6989         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
6990         Handle etree_provide.
6991
6992         * emultempl/elf32.em (global_needed): New static variable.
6993         (global_found): Likewise.
6994         (gld${EMULATION_NAME}_after_open): New static function.
6995         (gld${EMULATION_NAME}_search_needed): Likewise.
6996         (gld${EMULATION_NAME}_try_needed): Likewise.
6997         (gld${EMULATION_NAME}_check_needed): Likewise.
6998         (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
6999         gld${EMULATION_NAME}_after_open.
7000
7001 Mon Jul  3 14:26:37 1995  Steve Chamberlain  <sac@slash.cygnus.com>
7002
7003         * configure.in (i386-*-win32): New target.
7004
7005 Mon Jul  3 14:39:22 1995  Ian Lance Taylor  <ian@cygnus.com>
7006
7007         * lexsup.c (parse_args): Let -G either set the small data size or
7008         be equivalent to --shared, depending on the next argument.  Accept
7009         and ignore -z for Solaris compatibility.
7010
7011 Sun Jul  2 17:52:34 1995  Ian Lance Taylor  <ian@cygnus.com>
7012
7013         * lexsup.c (parse_args): Cast fopen result to PTR before storing
7014         it in link_info.base_file.  Fix indentation.
7015
7016 Wed Jun 28 17:11:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
7017
7018         * ldmain.c (main): Always initialize PE info in link_info.
7019         * lexsup.c (OPTION_BASE_FILE): New option.
7020         (parse_args): Handle new option.
7021         * emulparams/armpe.sh: Output pei.
7022         * emultempl/i386pe.em: Add newline to end.
7023         * scripttempl/armpe.sc: Change output and quote the $s.
7024         * scripttempl/i386pe.sc: Change output and quote the $s.
7025
7026 Thu Jun 22 19:55:41 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
7027
7028         Sun May  7 11:53:41 MDT 1995  Bryan Ford  <baford@cs.utah.edu>
7029
7030         * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
7031         * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
7032         (i386msdos.o): New target.
7033         * config/i386-msdos.mt: Created.
7034         * emulparams/i386msdos.sh: Created.
7035         * scripttempl/i386msdos.sc: Created.
7036
7037 Thu Jun 22 15:06:35 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
7038
7039         * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
7040         that contains pointers to be relocated.
7041
7042 Tue Jun 20 17:47:20 1995  Stan Shebs  <shebs@andros.cygnus.com>
7043
7044         * mpw-esh.c: New file, modified for MPW from esh.c.
7045         * scripttempl/sh.sc: Reformatted to simplify MPWification,
7046         use *() to concat stab sections instead of [].
7047
7048 Thu Jun 15 08:48:16 1995  Steve Chamberlain  <sac@slash.cygnus.com>
7049
7050         * scripttempl/armpe.sc: Add constructor support.
7051
7052 Tue Jun 13 09:11:20 1995  Steve Chamberlain  <sac@slash.cygnus.com>
7053
7054         * ldlang.c (lang_size_sections):  Any section with a DATA
7055         statement has contents.
7056
7057 Sun Jun 11 15:20:46 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
7058
7059         * emulparams/m68kelf.sh (NOP): Define.
7060         (DYNAMIC_LINK): Don't define.
7061         (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
7062         will come from the linker script.
7063
7064 Thu Jun  8 14:17:33 1995  Steve Chamberlain  <sac@slash.cygnus.com>
7065
7066         * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
7067
7068 Mon Jun  5 02:16:24 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
7069
7070         * configure.in (i[345]86-*-gnu*): Use GNU elf config.
7071
7072 Thu May 25 11:49:28 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
7073
7074         From Andrew Cagney <cagney@highland.com.au>
7075         * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
7076         elf32lppc.
7077
7078 Wed May 24 11:23:21 1995  Steve Chamberlain  <sac@slash.cygnus.com>
7079
7080         Add support for ARM-PE.
7081         * Makefile.in (ALL_EMULATIONS): Add armpe.o
7082         * configure.in: Recognize armpe.
7083         * config/arm-pe.mt: New file.
7084         * emulparams/armpe.sh: New file.
7085         * scripttempl/armpe.sc: New file.
7086
7087
7088 Mon May 22 15:19:26 1995  Doug Evans  <dje@chestnut.cygnus.com>
7089
7090         * configure.in (h8300h-*-hms): Deleted
7091         * config/cf-h8300h.mt: Deleted.
7092
7093 Thu May 18 04:26:10 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
7094
7095         Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
7096
7097         From David Taylor (dtaylor@armltd.co.uk)
7098         * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
7099         * configure.in: Recognize arm{,e[lb]-*-aout.
7100         * config/arm[lb]-aout.mt: New files.
7101         * emulparams/armaout[lb].sh: New files.
7102         * scripttempl/armaout.sc: New file.
7103
7104 Tue May 16 18:27:11 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
7105
7106         * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
7107         be unique in 8 characters for DOS.
7108
7109         * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
7110         * emulparams/elf32ppcle.sh: Deleted.
7111
7112 Fri May 12 11:03:55 1995  Steve Chamberlain  <sac@slash.cygnus.com>
7113                           Tom Griest <griest@cs.yale.edu>
7114
7115         Initial support for PE executables (eg NT, win32)
7116
7117         * Makefile.in (configure.in, ei386pe): Add support.
7118         * ldmain.c (main): Initialize PE argument info.
7119         * ldwrite.c (print_file_stuff): Don't print out .drectve
7120         and .debug section info.
7121         * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
7122          OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
7123          Handle new arguments.
7124         * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
7125         New files
7126
7127 Wed May 10 18:37:59 1995  Stu Grossman  (grossman@andros.cygnus.com)
7128
7129         * scripttempl/hppaelf.sc:  Remove .PARISC.unwind section from text
7130         segment.  This allows ld -r to preserve unwind sections.
7131
7132 Tue May  9 17:19:57 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
7133
7134         * configure.in: Add little endian PowerPC support.
7135
7136         * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
7137         (eelf32ppcle.c): Support for little endian PowerPC.
7138
7139         * config/ppcle-elf32.mt: New file for little endian PowerPC.
7140         * emulparams/elf32ppcle.sh: Ditto.
7141
7142 Wed May  3 12:56:32 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
7143
7144         * ldlang.c (print_output_section_statement): Check
7145         subsection_alignment, instead of checking section_alignment twice.
7146         Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
7147
7148 Tue May  2 16:36:07 1995  Jeff Law  (law@snake.cs.utah.edu)
7149
7150         * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
7151
7152 Mon Apr 24 19:21:02 1995  Michael Meissner  <meissner@cygnus.com>
7153
7154         * ldwrite.c (ldwrite): Before doing anything, reset the error
7155         code.  If bfd_final_link returns an error, but the error code is
7156         unset, don't issue an extra message.  Assume a correct error
7157         message was already set.
7158
7159 Fri Apr 14 16:31:24 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
7160
7161         * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
7162         (em68kelf.o): New target.
7163         * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
7164         * configure.in: Use them for m68*-*-elf.
7165
7166 Tue Apr 11 12:02:03 1995  Stan Shebs  <shebs@andros.cygnus.com>
7167
7168         Merge in support for Mac MPW as a host.
7169         (Old change descriptions retained for informational value.)
7170
7171         * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
7172         (i386-unknown-coff): Remove.
7173         (sh-hitachi-hms): New target.
7174         (emulation_ofiles): Set correctly for each target.
7175         (version, TDEFINES): Add to makefile fragment.
7176         * mpw-make.in (BISON): Use byacc instead of bison.
7177         (em_*.c): Replace with e*.c everywhere.
7178         (ldgram.h): Separate action from ldgram.c generation.
7179         (LD_PROG): Depend on Version.r.
7180         (Version.r): generate from version info.
7181         * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
7182
7183         * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
7184         i386-unknown-aout, i386-unknown-coff): New targets.
7185         (m68k-aout, m68k-coff): Remove targets.
7186         (mk.tmp): Add definition of EMUL.
7187
7188         * mpw-config.in (emulname): Set based on target.
7189         (ldemul-list.h): Construct.
7190         * mpw-make.in (install-only): New target.
7191         (install): Depend on install-only.
7192
7193         * mpw-make.in (bindir): Fix pathname.
7194         (install): Move here from mpw-build.in.
7195
7196         * mpw-config.in: New file, MPW configuration fragment.
7197         * mpw-make.in: New file, MPW makefile fragment.
7198         (This file is semi-automatically generated from Makefile.in.)
7199         * ldfile.c (slash): If MPW, set to `:'.
7200         * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
7201         prevent redefinition errors.
7202
7203 Tue Apr  4 17:55:18 1995  Steve Chamberlain  <sac@bang.hack.com>
7204
7205         * ldwrite.c (clone_section): Align clone sections on even
7206         boundaries.
7207
7208 Thu Mar 30 14:32:26 1995  H.J. Lu (hjl@nynexst.com)
7209
7210         * configure.in: Change linux to default to elf.  Using
7211         i[345]86-*-linuxaout will build a linker which defaults to a.out.
7212         * config/i386-laout.mt: Rename from old config/i386-linux.mt.
7213         * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
7214         * config/i386-lelf.mt: Remove.
7215
7216 Thu Mar 30 13:09:46 1995  Ian Lance Taylor  <ian@cygnus.com>
7217
7218         * ldmain.c (main): If opening the map file fails, call
7219         bfd_set_error before calling einfo.
7220
7221         * ld.texinfo, ld.1: Document the -no-keep-memory option.
7222
7223 Mon Mar 27 11:10:08 1995  Ian Lance Taylor  <ian@cygnus.com>
7224
7225         * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
7226         does mark shared libraries as executable.
7227
7228 Tue Mar 21 15:15:38 1995  Ian Lance Taylor  <ian@cygnus.com>
7229
7230         * ldlang.c (lang_common): Change power to int.  Pass larger values
7231         before smaller values.
7232         (lang_one_common): Treat info as int *.  Don't bother to check for
7233         last value, since it is now zero.
7234
7235 Sat Mar 18 01:49:14 1995  Ian Lance Taylor  <ian@cygnus.com>
7236
7237         * ldlang.c (load_symbols): An empty archive is OK.
7238
7239 Fri Mar 17 16:15:31 1995  Stan Shebs  <shebs@andros.cygnus.com>
7240
7241         * ldmain.c (progress.h): Include.
7242         (main): Call START_PROGRESS and END_PROGRESS.
7243
7244 Thu Mar 16 17:17:33 1995  Michael Meissner  <meissner@cygnus.com>
7245
7246         * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
7247         .dtors sections, so that these pointers get relocated also.
7248         Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
7249         and end of the constructors/destructors.
7250
7251 Thu Mar 16 13:59:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7252
7253         * ldlang.c (load_symbols): If whole_archive is true and ENTRY
7254         describes an archive, call bfd_link_add_symbols on each member.
7255         * ldmain.c (whole_archive): New variable.
7256         (main): Initialize it to false.
7257         * ldmain.h: Declare whole_archive.
7258         * lexsup.c (parse_args): Grok --whole-archive switch.
7259         * ld.texinfo, ld.1: Document --whole-archive.
7260
7261 Thu Mar 16 11:38:48 1995  Ian Lance Taylor  <ian@cygnus.com>
7262
7263         * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
7264         using the default emulation.
7265
7266         * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
7267         LDEMULATION.
7268         * config/hppaelf.mh (HOSTING_EMU): Likewise.
7269
7270 Tue Mar 14 12:28:03 1995  Ian Lance Taylor  <ian@cygnus.com>
7271
7272         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
7273         for -lc.N.  From H.J. Lu <hjl@nynexst.com>.
7274
7275 Fri Mar 10 14:43:48 1995  Ian Lance Taylor  <ian@cygnus.com>
7276
7277         * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
7278
7279         * ldlex.l: Return -lFILENAME as the token LNAME.
7280         * ldgram.y: Add token LNAME.
7281         (input_list): Treat LNAME like NAME, but pass it to
7282         lang_add_input_file as lang_input_file_is_l_enum.
7283         * ld.texinfo: Document using -lFILENAME in INPUT.
7284
7285 Thu Mar  9 12:21:51 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
7286
7287         * ldlang.c (lang_check): If the architectures are compatible call
7288         bfd_merge_private_bfd_data to let the backend do additional
7289         checks.
7290
7291 Tue Mar  7 00:53:08 1995  Ian Lance Taylor  <ian@cygnus.com>
7292
7293         * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
7294         all supported emulations.
7295
7296 Mon Mar  6 14:03:50 1995  Ian Lance Taylor  <ian@cygnus.com>
7297
7298         * ldemul.c (ldemul_list_emulations): New function.
7299         * ldemul.h (ldemul_list_emulations): Declare.
7300         * ldver.c (help): List supported targets and emulations.
7301
7302 Fri Mar  3 15:40:36 1995  Doug Evans  <dje@canuck.cygnus.com>
7303
7304         * scripttempl/elf.sc (.debug): Relocate to address 0.
7305         (.debug_srcinfo, .debug_aranges, .debug_pubnames,
7306         .debug_sfnames, .line): Likewise.
7307
7308 Fri Mar  3 17:07:14 1995  Ian Lance Taylor  <ian@cygnus.com>
7309
7310         * emultempl/elf32.em (hold_rel): New static variable.
7311         (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
7312         contents whose names begin with ".rel" after hold_rel.  Remove the
7313         assertion which checked for unplaced .rel sections.  Don't try to
7314         sort the section into place if place->bfd_section is NULL.
7315         (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
7316         section beginning with ".rel".
7317
7318 Thu Mar  2 14:34:43 1995  Ian Lance Taylor  <ian@cygnus.com>
7319
7320         Doc note from pierre@phi.la.tce.com (Pierre Willard):
7321         * ld.texinfo: -X and -x work even if -s or -S are not specified.
7322         * ld.1: Similar change.
7323
7324 Wed Mar  1 13:51:16 1995  Ian Lance Taylor  <ian@cygnus.com>
7325
7326         * emulparams/gld960coff.sh (COFF_CTORS): Define.
7327         * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
7328
7329 Tue Feb 28 12:42:56 1995  Ian Lance Taylor  <ian@cygnus.com>
7330
7331         * configure.in (i[345]86-*-linuxelf*): New target.  Use i386-lelf.
7332         (i[345]86-*-gnuelf*): New target.  Use i386-gelf.
7333         * config/i386-lelf.mt: New file.
7334         * config/i386-gelf.mt: New file.
7335
7336 Tue Feb 28 10:27:54 1995  Rob Savoye  <rob@darkstar.cygnus.com>
7337
7338         * configure.in: Match on mips-ecoff, and default to the IDT
7339         configuration.
7340
7341 Fri Feb 17 13:06:47 1995  Michael Meissner  <meissner@cygnus.com>
7342
7343         * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
7344         Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
7345         to double the size of the table.
7346
7347 Thu Feb  9 18:29:43 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
7348
7349         * Makefile.in (distclean): Do recursive deletion, since ldscripts
7350         is a directory.
7351
7352 Thu Feb  9 11:38:22 1995  Ian Lance Taylor  <ian@cygnus.com>
7353
7354         * ldmain.c (main): If trace_file_tries is true, and we are using
7355         an internal linker script, print out the script.
7356         * ldfile.c (try_open): Reindent function.  Make the messages about
7357         opening script files more informative.
7358
7359         * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
7360         * ld.texinfo, ld.1: Update accordingly.
7361
7362 Wed Feb  8 17:34:45 1995  Ian Lance Taylor  <ian@cygnus.com>
7363
7364         * ldlang.c (lang_one_common): Adjust references to common symbol
7365         information for new structure.
7366
7367 Mon Feb  6 12:17:24 1995  Ian Lance Taylor  <ian@cygnus.com>
7368
7369         * ldmain.c (undefined_symbol): Handle section being NULL.
7370
7371         * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
7372         * ldexp.c (fold_name): Likewise.
7373         * ldlang.c (print_one_symbol): Likewise.
7374         (lang_finish): Likewise.
7375         * ldmain.c (multiple_common): Likewise.
7376         * ldwrite.c (print_symbol): Likewise.  Also, bfd_link_hash_weak
7377         renamed to bfd_link_hash_undefweak.
7378
7379         * scripttempl/alpha.sc: Set address of .data section correctly
7380         when -n or -N is used.  Patch from Chris G Demetriou
7381         <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
7382         * scripttempl/mips.sc: Similar change.
7383
7384 Tue Jan 31 16:20:52 1995  Doug Evans  <dje@canuck.cygnus.com>
7385
7386         * ldlang.c (lang_size_sections): Clarify error message when user
7387         specified start addr conflicts with region.  Fix resetting of
7388         region pointer.
7389
7390 Tue Jan 31 12:37:09 1995  Ian Lance Taylor  <ian@cygnus.com>
7391
7392         * ldexp.c (fold_name): In case NAME, permit an absolute symbol
7393         in lang_allocating_phase_enum.
7394
7395 Mon Jan 30 11:33:25 1995  Ian Lance Taylor  <ian@cygnus.com>
7396
7397         * Makefile.in (distclean): Depend upon clean.  Don't bother to
7398         remove files which will be removed by clean.  From patch by
7399         alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
7400
7401 Fri Jan 27 16:27:34 1995  Ian Lance Taylor  <ian@cygnus.com>
7402
7403         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
7404         a MIPS target, clobber the size of all but the first input
7405         .reginfo section to be 0, so that lang_size_sections sets the
7406         correct size for the output .reginfo section.
7407
7408 Thu Jan 26 19:53:37 1995  Ian Lance Taylor  <ian@cygnus.com>
7409
7410         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
7411         Remove unused variable is.
7412
7413 Thu Jan 26 12:33:05 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
7414
7415         * configure.in: Add support for powerpc-*-eabi.
7416
7417         * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
7418         support.
7419
7420         * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
7421         elf.sc, which defines some new symbols PowerPC elf needs.
7422
7423 Tue Jan 24 10:32:15 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7424
7425         * ldctor.c (ldctor_add_set_entry): Don't dump core if a
7426         constructor entry is in the absolute section.
7427
7428 Mon Jan 23 13:58:13 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7429
7430         * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
7431         * config/i386-gnu.mt: New file.  Include ELF support.
7432
7433 Thu Jan 19 16:22:11 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7434
7435         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
7436         there are any input sections named .gnu.warning, treat them as
7437         containing a warning message to be printed by the linker, and
7438         clobber the size so that the message is not copied into the output
7439         file.
7440         * scripttempl/elf.sc: Put .gnu.warning sections into the .text
7441         section.
7442
7443 Sun Jan 15 16:45:00 1995  Steve Chamberlain  <sac@splat>
7444
7445         * configure.in (w65-*-*): New target.
7446         * Makefile.in: Update.
7447         * scripttempl/w65.sc: New.
7448         * config/coff-w65.mt: New.
7449
7450 Thu Jan 12 01:32:25 1995  Ian Lance Taylor  <ian@tweedledumb.cygnus.com>
7451
7452         * ldlang.c (lang_place_orphans): Don't ignore files with
7453         just_syms_flag set.  Instead, put all their sections in
7454         bfd_abs_section_ptr, using the section VMA as the output_offset.
7455
7456 Wed Jan 11 22:59:09 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
7457
7458         * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
7459         name `reloc_howto_type', since it's now defined to be const.
7460         * ldlang.c (lang_add_reloc): Ditto.
7461         * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
7462
7463 Wed Jan 11 11:24:45 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7464
7465         * ldexp.c (fold_binary): Adding or subtracting an absolute value
7466         to a relative value does not require forcing the relative value to
7467         be absolute.  Also, reindent function.
7468
7469 Wed Dec 28 22:05:52 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
7470
7471         * ldwrite.c (clone_section): Create a symbol with the
7472         same name as the section.
7473
7474 Mon Dec 19 14:02:13 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
7475
7476         * ld.h (split_by_reloc, split_by_file): New flags.
7477         * ldwrite.c  (clone_section, split_sections): New functions.
7478         * lexsup.c (parse_args): Understand new split options.
7479
7480 Fri Dec  9 17:22:55 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7481
7482         * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
7483         .data segment.  They must be writable when creating a shared
7484         library.  From H.J. Lu <hjl@nynexst.com>.
7485
7486 Fri Dec  2 14:09:00 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
7487
7488         * emultempl/miposecoff.em: New file.
7489         * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
7490         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
7491         * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
7492         provide __runtime_reloc_start and __runtime_reloc_stop if they are
7493         used.   Align _fdata to a 16 byte boundary.
7494         * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
7495         generic.em.
7496         (emipsidtl.c): Likewise.
7497         (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
7498
7499         * ld.h (args_type): Add new field embedded_relocs.
7500         * ldemul.h (ldemul_after_open, after_open_default): Declare.
7501         (ld_emulation_xfer_struct): Add new field after_open.
7502         * ldemul.c (ldemul_after_open): New function.
7503         (after_open_default): New function.
7504         * ldlang.c (lang_process): Call ldemul_after_open.
7505         * lexsup.c (parse_args): Handle --embedded-relocs.
7506         * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
7507         new after_open field to after_open_default.
7508         * emultempl/generic.em, emultempl/gld960.em: Likewise.
7509         * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
7510         * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
7511         * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
7512         * ld.texinfo, ld.1: Mention -embedded-relocs.
7513
7514 Wed Nov 23 22:04:47 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
7515
7516         * Makefile.in: Add eshl.o.
7517         * config/coff-sh.mt: Add shl emulation.
7518
7519 Tue Nov 22 11:55:37 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7520
7521         * scripttempl/elf.sc: Fill .text section with NOPS.  From Eric
7522         Youngdale <eric@aib.com>.
7523
7524 Thu Nov 17 14:39:48 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7525
7526         Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
7527         * config/i386linux.mh: New file; set HOSTING_CRT0.
7528         * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
7529         /usr/lib, since that is already in LIB_PATH.
7530
7531 Wed Nov 16 10:03:03 1994  Jeff Law  (law@snake.cs.utah.edu)
7532
7533         * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
7534         address.
7535         (.data, .bss): If "-N", then place the data/bss just after the end
7536         of the .text section rather than at the default 0x40000000.
7537
7538         * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
7539         text segment.
7540
7541 Sat Nov 12 15:55:56 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
7542
7543         Patches from Eric Youngdale <eric@aib.com>:
7544         * ldlang.c (lang_finish): Don't warn if entry symbol not found
7545         when generating a shared library.
7546         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
7547         attempting to place an orphaned relocation section when generating
7548         a dynamically linked object.
7549
7550         * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
7551         _start.
7552
7553 Fri Nov 11 14:27:23 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7554
7555         * ld.h (args_type): Add field export_dynamic.
7556         * lexsup.c (parse_args): Recognize --export-dynamic.
7557         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
7558         Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
7559
7560 Wed Nov  9 12:47:11 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7561
7562         * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
7563         we allocate common symbols.
7564
7565 Tue Nov  8 17:50:43 1994  Eric Youngdale  (eric@aib.com)
7566
7567         * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
7568         .rela.fini to the list of .rel* sections.
7569
7570 Tue Nov  8 17:47:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7571
7572         * ldlang.c (load_symbols): Add new argument place.  Only accept
7573         linker scripts if place is not NULL.  Put commands found in an
7574         assumed linker script into place.
7575         (lookup_name): Pass NULL as place argument to load_symbols.
7576         (open_input_bfds): In lang_input_statement_enum case, pass a place
7577         argument to load_symbols, and store any new statements after the
7578         current one.
7579
7580 Mon Nov  7 15:53:02 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
7581
7582         * ldver.c (ldversion): Bump to 2.5.3.
7583
7584 Fri Nov  4 15:11:26 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
7585
7586         * Makefile.in (e*nbsd.c): Fix typo in dependencies.
7587
7588 Thu Nov  3 19:35:44 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
7589
7590         * Makefile.in (check): Add missing "else true" clause.
7591
7592         * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
7593
7594         * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
7595         entry point to "start".  Align at end of each section to 0x200.
7596         Start .text section 0x1000 later.  Add _etext, _edata, _end
7597         symbols.
7598
7599 Wed Nov  2 12:17:49 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7600
7601         * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
7602         composed of different object file formats.
7603         (ldctor_build_sets): If the output format does not support the
7604         reloc, and we are not generating a relocateable link, try getting
7605         the reloc from the input format.
7606
7607 Tue Nov  1 10:30:19 1994  J.T. Conklin  (jtc@rtl.cygnus.com)
7608
7609         * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
7610           (em68knbsd.c): New target.
7611
7612         * config/m68k-nbsd.mt: New file.
7613         * emulparams/m68knbsd.sh: New file.
7614         * configure.in (m68*-*-netbsd*): Use above configs.
7615
7616 Mon Oct 31 19:35:17 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7617
7618         * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
7619         appropriately named static library, stop the search at that
7620         directory.
7621
7622 Wed Oct 26 13:59:12 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
7623
7624         * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
7625           and esparcnbsd.o; sorted entries.
7626           (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
7627
7628         * config/netbsd532.mt: Removed.
7629         * emulparams/netbsd532.sh: Removed.
7630
7631         * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
7632         * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
7633         * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
7634           sparc*-*-netbsd*): Use above configs.
7635
7636 Tue Oct 25 11:47:10 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7637
7638         * ldmain.c (multiple_common): One of the types may now be
7639         bfd_link_hash_indirect.  The old BFD argument may be NULL.
7640
7641 Thu Oct 20 22:01:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
7642
7643         * configure.in: Add * at the end of m68k-hp-hpux.
7644
7645 Tue Oct 18 15:58:39 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7646
7647         * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
7648         YY_CHAR *.
7649
7650 Mon Oct 17 14:53:16 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
7651
7652         * scripttempl/nw.sc: Gather constructors and destructors and
7653           define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
7654
7655 Fri Oct 14 14:35:38 1994  J.T. Conklin  (jtc@rtl.cygnus.com)
7656
7657         * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
7658           (ei386nw.c, eppcnw.c): New targets.
7659
7660         * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
7661           scripttempl/nw.sc: New files, for i386 and powerpc netware.
7662
7663         * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
7664           instead of {i386,ppc}-elf.
7665
7666         * configure.in (sparc*-*-netware): Removed.  There is no such
7667           thing anymore.
7668
7669         * ldint.texinfo: Move misplaced `@end iftex'.
7670
7671 Fri Oct 14 12:02:18 1994  Eric Youngdale  (eric@aib.com)
7672
7673         * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
7674         .rela.dtors to the list of .rel* sections.
7675
7676 Thu Oct 13 14:16:27 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
7677
7678         * ldver.c (ldversion): Update to version 2.5.
7679         * Version 2.5 released.
7680
7681         * configure.in (all_targets): Handle i386-linux*.
7682
7683 Thu Oct 13 11:24:33 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7684
7685         * scripttempl/aout.sc: Set _etext and __etext to ., not
7686         ${DATA_ALIGNMENT}.  This is compatible with SunOS, and, with luck,
7687         will not break any other system.  From Eric Valette
7688         <ev@chorus.fr>.
7689
7690 Wed Oct 12 16:22:58 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
7691
7692         * lexsup.c (parse_args): Change -V to be a synonym for -v.  Add
7693         --verbose to get the old -V behaviour.
7694         * ld.1, ld.texinfo: Document this change.
7695
7696 Tue Sep 27 14:56:20 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7697
7698         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
7699         assertion, since it could fail with a user defined linker script.
7700
7701         * ldexp.c (fold_name): For DEFINED case, don't try to look up the
7702         name in the hash table during the first phase--the hash table does
7703         not even exist at that point, much less have the right value.
7704
7705         * Makefile.in (CC): Define.
7706         (CXX): Move definition, change from g++ to gcc.
7707         (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
7708         (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
7709         (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
7710         (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
7711         (.cc.o): Comment out.
7712         (testdir): Remove.
7713         (site.exp): Don't create testdir or set tmpdir.
7714         (check): Run checks even if not running native.  Use CC_FOR_TARGET
7715         instead of RUNTEST_CC, and likewise for CXX.
7716         (cdtest targets): Comment out.
7717         * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
7718         * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
7719         * cdtest-main.cc, cdtest.exp: Remove.
7720
7721 Mon Sep 26 11:40:30 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7722
7723         * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
7724         file naming problems.
7725         * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
7726         * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
7727         eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
7728         (eelf32bmip.c): Rename from eelf32mipb.c.  Use elf32bmip.sh.
7729         (eelf32lmip.c): Rename from eelf32mipl.c.  Use elf32lmip.sh.
7730         * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
7731         * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
7732
7733         * genscripts.sh: Always search /usr/local/TARGET/lib.
7734
7735         * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
7736
7737 Fri Sep 23 15:05:49 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
7738
7739         * configure.in: Handle i386-bsdi* targets like i386-bsd.
7740
7741 Fri Sep 23 00:06:59 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
7742
7743         * lexsup.c (parse_args): Add support for -a for HP/UX
7744         compatibility.
7745
7746         * lexsup.c (parse_args): -c takes an argument.
7747
7748 Tue Sep 20 14:35:27 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7749
7750         * ld.h (args_type): Add new field endian.
7751         * lexsup.c (parse_args): Handle -EB and -EL by setting
7752         command_line.endian.
7753         * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
7754         * ldlang.c (lang_add_output_format): Add arguments big and little.
7755         If command_line.endian is set, use it to select big or little
7756         rather than the default.  Changed all callers.
7757         * ldlang.h (lang_add_output_format): Update declaration.
7758         * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
7759         LITTLE_OUTPUT_FORMAT.
7760         * emulparams/elf32mipl.sh: Likewise.
7761         * emulparams/mipsbig.sh: Likewise.
7762         * emulparams/mipsbsd.sh: Likewise.
7763         * emulparams/mipsidt.sh: Likewise.
7764         * emulparams/mipsidtl.sh: Likewise.
7765         * emulparams/mipslit.sh: Likewise.
7766         * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
7767         LITTLE_OUTPUT_FORMAT if not already defined.  Pass them to
7768         OUTPUT_FORMAT.
7769         * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
7770         LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
7771         * scripttempl/mipsbsd.sc: Likewise.
7772
7773         * Makefile.in (ldgram.h): Make separate target from ldgram.c,
7774         depending upon ldgram.c, so that a parallel make does not try to
7775         build both at once.
7776
7777         * configure.in (mips*el-elf*): New target.
7778         * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
7779         (eelf32mipl.c): New target.
7780
7781         * config/mipsl-elf32.mt: New file.
7782         * emulparams/elf32mipl.sh: New file.
7783
7784 Fri Sep 16 12:16:20 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7785
7786         * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
7787         ld -r -S -x.
7788
7789 Thu Sep 15 13:05:44 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7790
7791         * ldmisc.c (vfinfo): Print BFD file name as well as file name
7792         returned by find_nearest_line, in case the file name is something
7793         unhelpful such as a .h file.  Handle %u.
7794
7795 Wed Sep 14 12:49:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
7796
7797         * ldlang.c (lang_do_assignments): Make sure output statement
7798         has an attached bfd_section before trying to dereference it.
7799
7800 Wed Sep 14 12:48:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7801
7802         * ld.h (ld_config_type): Add new field warn_once.
7803         * ldmain.c (undefined_symbol): Handle -warn-once.
7804         * lexsup.c (parse_args): Recognize -warn-once.
7805         * ld.texinfo (Options): Document -warn-once.
7806         * ld.1: Likewise.
7807
7808         * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
7809         name.  For %C, print the function name on a separate line, to keep
7810         the length of error messages under control.
7811         * ldmain.c (multiple_definition): Use %D for ``first defined
7812         here.''
7813         (undefined_symbol): Use %D for ``more undefined references
7814         follow''.
7815
7816         * ldmisc.c (multiple_warn): Remove; no longer used.
7817         * ldmisc.h (multiple_warn): Don't declare.
7818
7819 Tue Sep 13 20:47:58 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
7820
7821         * ldlang.c (print_output_section_statement): Print all lines
7822         to the map file.
7823
7824 Tue Sep 13 16:30:11 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7825
7826         * ldlang.c (load_symbols): Check for archive before object.  Use
7827         bfd_check_format_matches, and, if ambiguous, print a list of
7828         matching formats.  If file format is not recognized, treat file as
7829         a linker script.
7830         * ldgram.y (yyerror): If assuming an object file is a script,
7831         mention that.  Tweak the format of the error messages.
7832         * ldlex.l (lex_warn_invalid): If assuming an object is a script,
7833         guess that this is not actually a script, and just report that the
7834         file format was not recognized.
7835         * ld.texinfo (Options): Admit that -( may be used more than once.
7836         Add note that unrecognized object files are now treated as linker
7837         scripts.
7838
7839         * ldfile.c (ldfile_input_filename): Make const.
7840         (ldfile_assumed_script): New variable.
7841         (try_open): Change arguments types to const.
7842         (ldfile_find_command_file): Likewise.
7843         (ldfile_open_command_file): Likewise.  Also, set lineno to 1.
7844         * ldfile.h: Update declarations for ldfile.c changes.
7845         * ldlex.l: Include <ctype.h>.
7846         (file_name_stack): Change to be const char *.
7847         (lineno_stack): New static variable.
7848         (<<EOF>>): Set lineno as well as ldfile_input_filename.
7849         (lex_push_file): Make name argument const.  Initialize
7850         lineno_stack entry.
7851         (lex_redirect): Initialize lineno_stack entry.
7852         (lex_warn_invalid): Handle non printable characters nicely.
7853         * ldlex.h (lex_push_file): Declare second argument as const.
7854
7855         * ldgram.y (ifile_p1): Recognize GROUP.
7856         * ldlex.l: Recognize GROUP.
7857         * ld.texinfo (Option Commands): Document GROUP.
7858
7859 Mon Sep 12 17:04:27 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7860
7861         * config/m68klynx.mh: New file.
7862
7863 Mon Sep 12 01:50:03 1994  Jeff Law  (law@snake.cs.utah.edu)
7864
7865         * emultempl/hppaelf.em: Add newlines to the error messages.
7866
7867 Sat Sep 10 16:05:38 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
7868
7869         * config/i386lynx.mh: New file.
7870         * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
7871         unless CONSTRUCTING.
7872
7873 Thu Sep  8 13:25:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7874
7875         * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
7876         (GENERATE_SHLIB_SCRIPT): Define as yes.
7877         (DYNAMIC_LINK): Define as false.
7878         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
7879         Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
7880         (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
7881         * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
7882         generic.em.
7883
7884 Thu Sep  8 16:30:37 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
7885
7886         * scripttempl/h8500b.sc: Put rdata stuff into own segment.
7887
7888 Thu Sep  8 13:25:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7889
7890         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
7891         .got section is now explicitly handled in elf.sc.
7892
7893 Wed Sep  7 13:08:34 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7894
7895         * scripttempl/alpha.sc: Redo script to set . outside of sections
7896         and not bother to explicitly specify section addresses.
7897         Explicitly place .sdata section.
7898
7899 Tue Sep  6 23:51:45 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
7900
7901         * scripttempl/m68kcoff.sc: Put .bss in data segment.
7902
7903         * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
7904         0, and to only be marked as NOLOAD if relocating.
7905         * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
7906         * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
7907         * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
7908         * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
7909         * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
7910         * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
7911         * scripttempl/sparclynx.sc: Likewise.
7912
7913 Sun Sep 04 17:58:10 1994  Richard Earnshaw (rwe@pegasus.esprit.ec.org)
7914
7915         * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
7916         * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
7917         New files.
7918
7919 Tue Aug 30 11:48:08 1994  Eric Youngdale  (ericy@cais.cais.com)
7920
7921         * ld.h (args_type): Add field soname.
7922         * lexsup.c (parse_args): Handle -soname argument.
7923         * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
7924         pass soname.
7925         * ld.texinfo: Document -soname.
7926
7927 Mon Aug 29 15:21:50 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7928
7929         * ldlang.c (lang_check): Don't try to set the architecture if the
7930         input and output files are incompatible.  Just warn.
7931
7932 Wed Aug 24 12:52:30 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7933
7934         * configure.in: Change i[34]86 to i[345]86.
7935
7936 Sun Aug 21 16:17:19 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
7937
7938         * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
7939
7940 Thu Aug 18 15:37:45 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7941
7942         Make the ELF linker handle orphaned sections reasonably.  Also,
7943         define __start_SECNAME and __stop_SECNAME around sections whose
7944         names can be represented in C, for the benefit of symbol sets in
7945         glibc.
7946         * ldemul.h (ldemul_place_orphan): Declare.
7947         (ld_emulation_xfer_type): Add place_orphan field.
7948         * ldemul.c (ldemul_place_orphan): New function.
7949         * ldlang.h (wild_doit): Declare.
7950         * ldlang.c (wild_doit): Make nonstatic.
7951         (lang_place_orphans): Call ldemul_place_orphan.
7952         * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
7953         (hold_section, hold_use, hold_text, hold_data, hold_bss): New
7954         static variables.
7955         (gld${EMULATION_NAME}_place_orphan): New static function.
7956         (gld${EMULATION_NAME}_place_section): New static function.
7957         (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
7958
7959 Tue Aug 16 00:17:20 1994  Eric Youngdale  (ericy@cais.cais.com)
7960
7961         * scripttempl/aout.sc: Add .linux-dynamic after .data.
7962
7963 Tue Aug 16 00:08:22 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
7964
7965         * lexsup.c (parse_args) Treat --dll-verbose as --version, for
7966         Linux compatibility.  From hjl@nynexst.com (H.J. Lu).
7967
7968 Mon Aug 15 17:17:33 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7969
7970         * ldexp.h (exp_get_abs_int): Declare.
7971
7972 Sat Aug  6 01:45:39 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
7973
7974         * ldlang.c (lang_do_assignments):  Handle complex AT's better.
7975         * ldexp.c (exp_get_abs_int):  New function.
7976
7977 Fri Aug  5 20:55:55 1994  Jason Molenda (crash@phydeaux.cygnus.com)
7978
7979         * configure.in: add i960-nindy-coff support.
7980
7981 Thu Aug  4 14:45:50 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7982
7983         * ldlex.l (yy_create_string_buffer): Handle change to internal
7984         interface in flex 2.4.7.
7985
7986 Tue Aug  2 11:52:06 1994  Eric Youngdale  (ericy@cais.cais.com)
7987
7988         * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
7989         New function; add 0x20 to any use of -Ttext.
7990         (gld${EMULATION_NAME}_create_output_section_statements): New
7991         function.
7992         (ld_${EMULATION_NAME}_emulation): Use the new function
7993         gld${EMULATION_NAME}_create_output_section_statements.
7994
7995 Mon Aug  1 15:50:44 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
7996
7997         * scripttempl/mips.sc: Redo script to set . outside of sections
7998         and not bother to explicitly specify section addresses.
7999
8000 Tue Jul 26 11:02:35 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8001
8002         * scripttempl/elf.sc: Copy several more relocation sections into
8003         the output.  Put .got.plt sections into .got.
8004
8005 Fri Jul 22 12:15:36 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8006
8007         * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
8008
8009         Add a new script operator, PROVIDE, to define a symbol only if it
8010         is needed.
8011         * ldgram.y (PROVIDE): New token.
8012         (assignment): Accept PROVIDE.
8013         * ldlex.l (PROVIDE): New token.
8014         * ldexp.h (node_type): Add etree_provide to node_class enum.
8015         (exp_provide): Declare.
8016         * ldexp.c (exp_fold_tree): Handle etree_provide.
8017         (exp_provide): New function.
8018         (exp_print_tree): Handle etree_provide.
8019         * ld.texinfo: Document PROVIDE.
8020
8021         * ldlang.c (lang_common): Pass desired alignment to
8022         lang_one_common as power of two.
8023         (lang_one_common): Get common symbol alignment from linker hash
8024         table entry.  Treat desired alignment as a power of two.
8025
8026         * ldlang.c (wild_section): Attach all section with the given name,
8027         not just the first one.  If there is no name, attach all sections
8028         even if the SEC_IS_COMMON flag is set.
8029
8030 Wed Jul 20 15:49:27 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8031
8032         * ld.h (args_type): Add field rpath.
8033         * lexsup.c (S_ISDIR): Define if not already defined.
8034         (parse_args): Add support for -rpath.  If -R is used to name a
8035         directory, treat it as -rpath for Solaris compatibility.
8036         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
8037         Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
8038         * ldmain.c (main): Initialize command_line.rpath to NULL.
8039         * ld.texinfo: Document -rpath option.
8040
8041 Sun Jul 10 00:33:24 1994  Ian Dall  (dall@hfrd.dsto.gov.au)
8042
8043         * emulparams/pc532machaout.sh: New file. Pc532 mach script
8044         parameters.
8045
8046         * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
8047
8048         * config/pc532mach.mt: New file. Pc532 mach target support.
8049
8050         * config/pc532mach.mh: New file. Pc532 mach host support.
8051
8052         * config/netbsd532.mt: New file. Netbsd 532 target support.
8053
8054         * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
8055
8056         * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
8057         dependency.
8058
8059 Fri Jul  8 10:57:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8060
8061         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
8062         bfd_abs_section_ptr, not &bfd_abs_section.
8063
8064         * lexsup.c (parse_args): Changed "retain-symbols-file" from
8065         no_argument to required_argument.  From djm.
8066
8067 Thu Jul  7 12:29:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8068
8069         * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
8070         sections to force a VMA of 0; needed for ELF backends which have
8071         not been converted to the new linker style.
8072
8073 Mon Jul  4 19:35:45 1994  Jeff Law  (law@snake.cs.utah.edu)
8074
8075         * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
8076         it was for the HPUX dynamic loader's use and it creates problems
8077         with ELF GDB.
8078
8079 Fri Jul  1 12:53:47 1994  Jeff Law  (law@snake.cs.utah.edu)
8080
8081         * ldlang.c (lang_do_assignments): No longer static.  Delete decl.
8082         * ldlang.h (lang_do_assignments): Put external decl here.
8083         * emultempl/hppaelf.em: Minor cleanups throughout file.
8084         (hppa_elf_create_output_section_statements): Rewrite.
8085         (hppaelf_finish): Rewrite.
8086
8087 Wed Jun 29 16:50:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8088
8089         * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
8090
8091         * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic.  Do not
8092         accept plain -B.
8093         * ld.texinfo: -Bstatic is not ignored.
8094
8095 Tue Jun 28 12:13:34 1994  Stan Shebs  (shebs@andros.cygnus.com)
8096
8097         * ldlex.l: Recognize \r the same as \n.
8098
8099 Thu Jun 23 17:53:04 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8100
8101         Preliminary support for generating shared libraries, from Eric
8102         Youngdale <ericy@cais.cais.com>.
8103         * genscripts.sh: If the emulation parameter file sets
8104         GENERATE_SHLIB_SCRIPT, generate a .xs script file with
8105         CREATE_SHLIB defined.
8106         * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
8107         link_info.shared is set, use the .xs script file.
8108         * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
8109         .interp section, and don't include TEXT_START_ADDR in the starting
8110         address of the first section.
8111         * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
8112         * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
8113
8114 Thu Jun 23 12:52:22 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
8115
8116         * configure.in: Change --with-targets to --enable-targets.
8117
8118 Wed Jun 22 13:42:14 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8119
8120         * lexsup.c (parse_args): Add support for new options -( -) with
8121         synonyms --start-group --end-group.
8122         * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
8123         (lang_group_statement_type): Define new struct.
8124         (lang_statement_union_type): Add group_statement field.
8125         (lang_enter_group, lang_leave_group): Declare.
8126         * ldlang.c (lang_for_each_statement_worker): Handle
8127         lang_group_statement_enum.
8128         (map_input_to_output_sections, print_statement): Likewise.
8129         (lang_size_sections, lang_do_assignments): Likewise.
8130         (open_input_bfds): Completely rewrite.  Now does its own looping,
8131         rather than using lang_for_each_statement.  Handle groups.
8132         (lang_process): Update call to open_input_bfds.
8133         (print_group): New static function.
8134         (lang_enter_group, lang_leave_group): New static functions.
8135         * ldfile.c (ldfile_open_file): If the file has already been
8136         opened, just return rather than taking an assertion failure.
8137         * ldver.c (help): Mention new options.
8138         * ld.texinfo: Document new options.
8139
8140         * ldlang.c (end_of_data_section_statement_list): Don't define.
8141         (lang_leave_output_section_statement): Don't set obsolete variable
8142         end_of_data_section_statement_list.
8143
8144         * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
8145         ALIGN.
8146
8147         * ldlang.c (lang_size_sections): Adjust current region address
8148         even for sections with an explicit address.  From
8149         ralphc@pyramid.com (Ralph Campbell).
8150
8151         * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
8152         From jrs@world.std.com (Rick Sladkey).
8153
8154         * scripttempl/mipsbsd.sc: Let sections align to their natural
8155         boundaries.
8156
8157 Tue Jun 21 11:27:04 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8158
8159         * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
8160         &bfd_abs_section.
8161         (lang_abs_symbol_at_beginning_of): Likewise.
8162         (lang_abs_symbol_at_end_of): Likewise.
8163         (lang_size_sections): Use bfd_is_abs_section to check for the
8164         absolute section.  Don't try to set the VMA or output_offset or
8165         size of the absolute section.
8166         * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
8167         undefined section.
8168
8169 Thu Jun 16 22:48:41 1994  Jeff Law  (law@snake.cs.utah.edu)
8170
8171         * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
8172         when generating relocatable objects.
8173
8174 Thu Jun 16 14:25:22 1994  Eric Youngdale  (ericy@cais.cais.com)
8175
8176         * emultempl/linux.em: New file providing support for linking
8177         against Linux shared libraries.
8178         * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
8179         * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
8180
8181 Thu Jun 16 12:22:01 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8182
8183         * lexsup.c (parse_args): Add -shared to longopts, and handle it.
8184         * ldmain.c (main): Initialize link_info.shared to false.  Give
8185         error if link_info.relocateable and link_info.shared are both set.
8186
8187         * configure.in: If EMUL_EXTRA* is defined in a config file, treat
8188         it as naming an emulation to be added to EMULATION_OFILES.
8189         * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
8190
8191         * Makefile.in: Rebuilt dependencies.
8192         (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
8193         eelf64_sparc.o.  Remove $(OTHER_EMULATIONS).
8194         (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
8195         * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
8196         (ei386linux.c): Remove; now in Makefile.in.
8197         * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
8198         * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
8199         * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
8200         * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
8201         (eelf64_sparc.c): Remove; now in Makefile.in.
8202         * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
8203         (eelf32_sparc.c): Remove; now in Makefile.in.
8204
8205         * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
8206         no owner--it might be bfd_abs_section.  From Eric Youngdale
8207         <ericy@cais.cais.com>.
8208
8209         * scripttempl/aout.sc: Let sections align to their natural
8210         boundaries.
8211
8212 Wed Jun 15 01:54:54 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8213
8214         * ldemul.h (ldemul_open_dynamic_archive): Declare.
8215         (ld_emulation_xfer_type): Add new field open_dynamic_archive.
8216         * ldemul.c: Include ldexp.h and ldlang.h.
8217         (ldemul_open_dynamic_archive): New function.
8218         * ldfile.h (ldfile_open_file_search): Declare.
8219         * ldfile.c: Include ldemul.h.
8220         (try_open_bfd): Rename from cache_bfd_openr.  Return boolean
8221         argument, not bfd *.  Change all callers.
8222         (ldfile_open_file_search): Rename from open_a.  Return boolean
8223         argument, not bfd *.  Clean up.  Change all callers.
8224         (ldfile_open_file): If doing a dynamic link, call
8225         ldemul_open_dynamic_archive rather than assuming the extension of
8226         a dynamic object is ".so".
8227         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
8228         New function.
8229         (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
8230         field.
8231         * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
8232
8233         * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
8234         * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
8235         Accept -static as a synonym for -non_shared.
8236
8237         Let the user change the dynamic linker used by ELF code.
8238         * ld.h (args_type): Add new field interpreter.
8239         * lexsup.c (parse_args): Add dynamic-linker to longopts, and
8240         handle it.
8241         * ldmain.c (main): Initialize command_line.interpreter to NULL.
8242         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
8243         the ELF backend to return the .interp section.  If
8244         command_line.interpreter is not NULL, set the contents of .interp
8245         to it.
8246         * ld.texinfo: Mention -dynamic-linker.
8247
8248         * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
8249         generic.em.
8250
8251         * lexsup.c (parse_args): Sort out the option macros and change the
8252         definitions to make it easier to add a new option.
8253
8254         * scripttempl/aout.sc: Define __etext and __edata to go along with
8255         _etext and _edata.
8256
8257         * ld.h (ld_config_type): Add new field traditional_format.
8258         * lexsup.c (parse_args): Add traditional-format to longopts, and
8259         handle it.
8260         * ldmain.c (main): Initialize config.traditional_format to false.
8261         * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
8262         flags of output_bfd according to config.traditional_format.
8263         * ldver.c (help): Mention -traditional-format.
8264         * ld.texinfo: Document -traditional-format.
8265
8266 Tue Jun 14 23:10:07 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8267
8268         * ldctor.c (ldctor_add_entry): Add entries to a set in the order
8269         they are encountered.
8270
8271 Tue Jun 14 18:05:09 1994  Eric Youngdale  (ericy@cais.cais.com)
8272
8273         * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
8274         (NONPAGED_TEXT_START_ADDR): Define as 0x20.
8275
8276 Mon Jun 13 15:46:09 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8277
8278         * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
8279         _FTEXT, _ETEXT and _FDATA.  Dont define _END.
8280
8281         * ldfile.c (open_a): If this is not an archive, try to open it in
8282         the current directory before searching for it.
8283
8284         * lexsup.c (parse_args): Treat -i as a synonym for -r.
8285
8286         * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
8287         BLOCK works in a section address as documented.
8288
8289         * ldgram.y (YYDEBUG): Don't define.
8290
8291 Fri Jun 10 16:45:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8292
8293         * emultempl/gld960.em: Pass false for new argument to
8294         ldfile_add_library_path.
8295         * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
8296
8297         * emultempl/sunos.em: Only look for .so files if doing a dynamic
8298         link.
8299
8300 Thu Jun  9 08:35:17 1994  Ian Lance Taylor  (ian@cygnus.com)
8301
8302         * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
8303
8304 Thu Jun  9 06:52:29 1994  Bill Cox  (bill@rtl.cygnus.com)
8305
8306         * Makefile.in (check): Delete ld.new dependency so that a regression
8307           test doesn't trigger a rebuild of the linker.
8308
8309 Thu Jun  9 00:17:20 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8310
8311         * ldlang.c (map_input_to_output_sections): For lang_address, call
8312         init_os if it hasn't already been called.
8313
8314 Thu Jun  2 17:24:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8315
8316         Add support for SunOS shared libraries.
8317         * aout.sc: Don't define __DYNAMIC here.  Add new sections used by
8318         shared library support code.
8319         * emultempl/sunos.em: New file.
8320         * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
8321         * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
8322         * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
8323         (esun3.c): Likewise.
8324
8325         * ldlang.c: Minor formatting cleanups.
8326         (lang_for_each_input_file): New function.
8327         * ldlang.h (lang_for_each_input_file): Declare.
8328
8329         * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
8330         field.
8331         (search_head): Declare.
8332         (ldfile_add_library_path): Add new cmdline argument in prototype.
8333         * ldfile.c (search_head): Make non-static.
8334         (search_dirs_type): Move to ldfile.h.
8335         (ldfile_add_library_path): Accept cmdline argument, and save it.
8336         * lexsup.c (parse_args): Pass true for new cmdline argument of
8337         ldfile_add_library_path.
8338         (set_default_dirlist): Likewise.
8339         * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
8340         argument of ldfile_add_library_path.
8341         * ldgram.y (ifile_p1): Likewise.
8342
8343 Wed Jun  1 14:24:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8344
8345         * ldlang.h (lang_input_statement_type): Remove fields subfiles,
8346         total_size, superfile and chain.
8347         * ldfile.c (open_a): Don't clear search_dirs_flag.
8348         (ldfile_open_file): Don't try to open superfile.  Assert that file
8349         has not already been opened.
8350         * ldlang.c (new_afile): Don't initialize superfile.
8351         * ldmain.c (add_archive_element): Don't initialize subfiles or
8352         chain or superfile.  Initialize search_dirs_flag to false.
8353
8354 Fri May 27 12:25:33 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
8355
8356         * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
8357
8358         Changes from binutils-2.4 release:
8359
8360         * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
8361         variables, use whitespace, so scripts don't break.
8362
8363         * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
8364
8365         * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
8366
8367         * cdtest-bar.cc: Renamed from cdtest-func.cc.
8368         * Makefile.in: Noted change.
8369
8370         * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
8371         don't know where that's supposed to come from, or why it's
8372         necessary.
8373
8374         Wed May 11 22:32:00 1994  DJ Delorie (dj@ctron.com)
8375
8376         * configure.bat: update to latest makefile.in
8377         * emulpara/go32.sh: set to coff-go32 not aout
8378         * emultemp/generic.em: strength-reduce the structure of
8379           this shell script, since the only available shell for
8380           DOS can't handle complex syntax.
8381         * emultemp/stringify.sed: for "sed -f" instead of inline.
8382         * makefile.in: depend on stringify.sed as well as genscripts.sh
8383         * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
8384         * genscripts.sh: empty variables aren't always considered "set",
8385           so set them to "y" instead.
8386
8387 Fri May 27 01:08:14 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8388
8389         * ldlang.c (entry_symbol): Make static.
8390         (lang_add_entry): Add cmdline argument.
8391         * ldlang.h (lang_add_entry): Change prototype.
8392         * ldgram.y (statement_anywhere): Change lang_add_entry call.
8393         * lexsup.c (parse_args): Likewise.
8394
8395 Tue May 24 16:13:43 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8396
8397         * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
8398         .reginfo an address.
8399         (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
8400         (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
8401         * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
8402
8403 Thu May 19 13:31:33 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8404
8405         Add support for ELF shared libraries.
8406         * ld.h (ld_config_type): Add field dynamic_link.
8407         * ldmain.c (main): Initialize config.dynamic_link to false.  Warn
8408         on attempts to use -r with -relax, -call_shared or -s.
8409         * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
8410         OPTION_NON_SHARED.  Add OPTION_IGNORE.  Adjust macro values
8411         accordingly.  Add "dy" and "non_shared" options.  Change "Qy" to
8412         OPTION_IGNORE for now.  Handle OPTION_CALL_SHARED and
8413         OPTION_NON_SHARED by setting dynamic_link field accordingly.
8414         Handle OPTION_IGNORE by ignoring it.  Clear dynamic_link field for
8415         -r and -Ur.
8416         * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
8417         opening a file with a .so extension first.
8418         * emultempl/elf32.em: New file.
8419         * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
8420         (NONPAGED_TEXT_START_ADDR): Likewise.
8421         (TEMPLATE_NAME): Define as elf32.
8422         (DATA_PLT): Define.
8423         * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
8424         * scripttempl/elf.sc: Add placement for new dynamic sections.
8425         Don't use CREATE_OBJECT_SYMBOLS.  Define _etext, _edata and _end
8426         outside of any section.  Don't use ALIGN(8); just let one section
8427         VMA follow another.  Put .dynbss in .bss.  Don't mention debugging
8428         sections; they'll be handled correctly anyhow.
8429         * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
8430
8431 Wed May 18 10:15:39 1994  Ian Lance Taylor  (ian@cygnus.com)
8432
8433         * Makefile.in (install): Redirect output of ln to /dev/null.
8434
8435 Mon May 16 13:35:08 1994  Jeff Law  (law@snake.cs.utah.edu)
8436
8437         * emultempl/hppaelf.em: Change all references of
8438         .hppa_linker_stubs to .PARISC.stubs.
8439         * scripttempl/hppaelf.sc: Likewise.
8440
8441 Fri May 13 13:00:38 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8442
8443         * ldlang.c (print_output_section_statement): Change ``no attached
8444         output section'' message slightly.
8445         (lang_do_assignments): Don't recurse down if there is no real
8446         section.
8447
8448         * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
8449         match corresponding change in emulation templates.
8450         * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
8451         * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
8452
8453 Wed May 11 18:16:46 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
8454
8455         * ldver.c (ldversion): Updated version number.
8456
8457         * cdtest-foo.cc: Use explicit "#pragma implementation".
8458         * cdtest-bar.cc: Renamed from cdtest-func.cc.
8459         * Makefile.in: References to cdtest-func.o changed to
8460         cdtest-bar.o.
8461
8462 Wed May 11 16:24:19 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8463
8464         Don't create unnecessary output sections.
8465         * ldlang.c (out_bfd_get_section_by_name): Remove.
8466         (wild_section): Call bfd_get_section_by_name rather than
8467         our_bfd_get_section_by_name.  Don't call wild_doit if there is no
8468         section.
8469         (lang_create_output_section_statements): Remove.
8470         (map_input_to_output_sections): For several cases, call init_os if
8471         it has not already been called.
8472         (lang_size_sections): If output section was not created, skip it.
8473         (lang_process): Don't call lan_create_output_section_statements.
8474         (lang_place_orphans): Skip files with just_syms_flags set to true.
8475         * ld.texinfo: Document change.
8476
8477 Tue May 10 14:31:16 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8478
8479         * ldlang.c (wild_doit): Don't bother initializing the vma and
8480         section size.  Don't special case SEC_SHARED_LIBRARY.
8481         (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
8482         specially.
8483
8484 Fri May  6 12:24:27 1994  Steve Chamberlain  (sac@cygnus.com)
8485
8486         * config/go32.mh : New file for Xgo32X.
8487
8488 Fri May  6 15:15:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8489
8490         * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
8491         before calling einfo, since we are reporting an fopen failure.
8492         From jrs@world.std.com (Rick Sladkey).
8493
8494         * configure.in: Use "e" rather than "em_" as prefix for
8495         emulations.
8496
8497 Fri May  6 01:08:14 1994  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
8498
8499         * emultempl/generic.em: Use "e" rather than "em_" as prefix for
8500         filename.
8501         * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
8502         emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
8503         Ditto.
8504         * Makefile.in: Changed all generated file names.
8505         (ldemul-list.h): Depend on Makefile, not config.status.  Changed
8506         sed patterns to handle new filenames.
8507
8508         * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
8509         * configure.in: Adjusted.
8510
8511 Thu May  5 15:07:32 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
8512
8513         * Makefile.in (install-info): Don't use "$<*", it doesn't always
8514         work.  Instead, check build dir and $srcdir explicitly, and use
8515         `echo' to get all the filenames.
8516
8517         * configure.in (h8300h-*-hms): Changed ld_target name to
8518         cf-h8300h.
8519         * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
8520         unique in 8.3.
8521
8522         * config/i960coff.mt: New file.
8523         * emulparams/gld960coff.sh: New file.
8524         * emultempl/gld960c.em: New file.
8525         * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
8526         i960coff configuration.
8527         * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
8528
8529         * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
8530         code isn't included in FSF releases, and it can still be
8531         explicitly selected.
8532         (distclean): Remove site.bak and tmpdir.
8533         (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
8534         (mostlyclean): Delete them explicitly here.  Also remove tmpdir.
8535
8536         Patches from Ralph Campbell:
8537         * config/mipsbsd.mh: New file.
8538         * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
8539         * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
8540         * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
8541         instead of `aout'.
8542
8543         * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
8544
8545 Wed May  4 11:59:40 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8546
8547         * config/m68k.mt (EMUL): Set to m68kaout.
8548         * emulparams/m68kaout.sh: New file.
8549         * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
8550         (em_m68kaout.c): New target.
8551
8552         * ldlang.c (lang_size_sections): If dot moves because of an
8553         assignment, don't try to insert a pad into the absolute output
8554         section, just change the address of the default memory region
8555         instead.
8556
8557         * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
8558         cdtest-ur.out, and cdtest-ur.tmp.
8559
8560 Wed Apr 27 16:03:37 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8561
8562         * scripttempl/sa29200.sc: Align all sections to four byte
8563         boundaries.
8564
8565 Wed Apr 27 10:48:03 1994  Steve Chamberlain  (sac@cygnus.com)
8566
8567         * Makefile.in, configure.in: Support for go32 coff.
8568         * config/i386-go32.mt: New file
8569         * emulparams/i386go32.sh: New file
8570         * scripttempl/i386go32.sc: New file
8571
8572 Tue Apr 26 17:20:03 1994  Stan Shebs  (shebs@andros.cygnus.com)
8573
8574         * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
8575         Lynx-specific script templates.
8576         * configure.in (sparclite*-*-coff): Use coff-sparc.
8577         * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
8578         * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
8579         (ENTRY): Set to __main.
8580         * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
8581         * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
8582         * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
8583
8584 Tue Apr 26 12:41:03 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8585
8586         * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
8587         byte boundary, in case the global constructors do not take up an
8588         even 16 bytes.
8589
8590         * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
8591         exist, get crtbegin based on gcc -print-libgcc-file-name.
8592         (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
8593
8594 Mon Apr 25 15:27:52 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8595
8596         * ldlang.c (lang_size_sections): When no address is given for a
8597         section, align it according to its requirements.
8598
8599 Thu Apr 21 17:24:24 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8600
8601         * Makefile.in (clean, distclean): Remove configdoc.texi.
8602
8603 Tue Apr 19 12:12:15 1994  Bill Cox  (bill@rtl.cygnus.com)
8604
8605         * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
8606
8607 Fri Apr 15 14:35:42 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8608
8609         * ldlang.c (lang_size_sections): When relaxing, adjust the
8610         position of a padding statement, and adjust dot accordingly.
8611
8612 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
8613
8614         * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
8615
8616 Mon Apr 11 12:32:57 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8617
8618         * scripttempl/i386coff.sc: If relocating, don't put .init and
8619         .fini sections into .text; keep them separate.
8620         * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
8621         exist, get crtbegin based on gcc -print-libgcc-file-name.
8622         (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
8623
8624 Mon Apr 11 10:31:00 1994  Bill Cox  (bill@rtl.cygnus.com)
8625
8626         * Makefile.in (check): Set TCL_LIBRARY for runtest.
8627
8628 Wed Apr  6 00:09:37 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
8629
8630         * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
8631         manufacturer.
8632
8633         * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
8634         if building a final executable.
8635
8636 Tue Apr  5 12:17:30 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8637
8638         * ldmain.c (main): Check the return value of bfd_close.
8639
8640 Thu Mar 31 18:07:06 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8641
8642         * scripttempl/alpha.sc: Clean up section alignment to ensure that
8643         sections never overlap when using -r.
8644
8645 Wed Mar 30 15:51:15 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8646
8647         * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
8648         changes: get_symtab_upper_bound renamed and returns long,
8649         bfd_canonicalize_symtab returns long, check for error indications.
8650
8651 Fri Mar 25 17:20:01 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8652
8653         * ldlang.c (print_input_section): For section size, use
8654         _cooked_size if it is non-zero, size otherwise.
8655         (size_input_section): Likewise.
8656         (lang_do_assignments): Likewise (case lang_input_section_enum).
8657
8658 Thu Mar 24 15:20:47 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8659
8660         * ldlang.c (new_afile): Add new argument add_to_list.  Don't set
8661         real to true for lang_input_file_is_marker_enum.  Clear the_bfd.
8662         (lang_add_input_file): Pass true to new_afile for add_to_list.
8663         (lookup_name): Remove force_load argument.  Changed all callers.
8664         Pass false to new_afile for add_to_list.  Split loading of symbols
8665         out into separate function.
8666         (load_symbols): New function split out of lookup_name.  Don't load
8667         the symbols if they are already loaded.
8668         (open_input_bfds): For lang_input_statement_enum call load_symbols
8669         rather than lookup_name.
8670         (lang_process): Pass abs_output_section rather than NULL to
8671         lang_size_sections.
8672         (lang_startup): Set real field of first_file to true.
8673
8674 Wed Mar 23 14:15:44 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8675
8676         * ldlang.c (had_relax): Removed.
8677         (relax_again): New static variable.
8678         (lang_size_sections): Change call to bfd_relax_section to
8679         correspond to BFD changes.  Set relax_again appropriately.
8680         (lang_process): Remove #if 0 code.  When relaxing, keep calling
8681         lang_do_assignments and lang_size_sections until relax_again
8682         becomes false.
8683
8684         * emultemp/gld960.em: Include libiberty.h
8685         (gld960_before_parse): Pass NULL as final argument to concat.
8686
8687 Tue Mar 22 13:08:28 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8688
8689         * scripttempl/aout.sc: Force _end and __end to be aligned to a
8690         four byte boundary.
8691
8692         * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
8693         building a bfd_data_link_order, rather than by setting the section
8694         contents immediately.
8695
8696 Mon Mar 21 18:28:37 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8697
8698         Changes to make -Ur work again.
8699         * ldmain.c (add_to_set): Now takes reloc argument rather than
8700         bitsize.  Check config.build_constructors here.  If an new hash
8701         table entry is created, mark it as undefined.
8702         (constructor_callback): No longer takes bitsize argument.  Pass
8703         BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
8704         BFD backend supports it.
8705         (reloc_overflow): Handle a NULL abfd argument.
8706         (reloc_dangerous, unattached_reloc): Likewise.
8707         * ldctor.c: Include ldmain.h.
8708         (struct set_info): Change bitsize field to reloc.
8709         (ldctor_add_set_entry): Now takes reloc argument rather than
8710         bitsize.  Don't bother to check config.build_constructors here.
8711         (ldctor_build_sets): Get the size from the reloc howto.  If
8712         generating relocateable output, call lang_add_reloc rather than
8713         lang_add_data.
8714         * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
8715         instead of bitsize.
8716         * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
8717         (lang_reloc_statement_type): New structure.
8718         (lang_statement_union_type): Add reloc_statement field.
8719         (lang_add_reloc): Declare new function.
8720         * ldlang.c (lang_for_each_statement_worker): Handle
8721         lang_reloc_statement_enum.
8722         (map_input_to_output_sections, print_statement): Likewise.
8723         (lang_size_sections, lang_do_assignments): Likewise.
8724         (print_reloc_statement): New function.
8725         (lang_add_reloc): New function.
8726         * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
8727
8728         * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
8729         (cdtest-ur, cdtest-ur.out): New targets.
8730         (check-cdtest): Now also check that -Ur works correctly.
8731
8732         * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
8733
8734 Thu Mar 17 12:45:41 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8735
8736         * ldlang.c (lang_process): Move lang_common call before
8737         map_input_to_output_sections, to ensure that any alignment
8738         constraints set by common symbols are copied over to the output
8739         sections.
8740
8741 Fri Mar 11 22:17:34 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8742
8743         * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
8744         (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
8745         * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
8746         * emultempl/ppc.em: Remove ugly stub code; turns out not to be
8747         needed for ELF.
8748
8749 Tue Mar  8 04:22:27 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
8750
8751         * config/i386bsd.mh: New file.
8752
8753 Mon Mar  7 15:23:24 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8754
8755         * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
8756         defined.
8757         * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
8758         (DATA_START_SYMBOLS): Define _fdata.
8759
8760 Mon Feb 28 10:59:14 1994  Stan Shebs  (shebs@andros.cygnus.com)
8761
8762         * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
8763
8764 Sun Feb 27 16:29:38 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
8765
8766         * emultempl/hppaelf.em (hppaelf_finish): Update comments.  This
8767         works again.  Attach some output symbols to the stub file bfd.
8768
8769         * emultempl/hppaelf.em: Include elf32-hppa.h.
8770         (file_chain): Add decl.
8771         (hppa_look_for_stubs_in_section): Delete decl.
8772         (hppaelf_finish): Reenable code.  Do not pass symbols
8773         down to hppa_look_for_stubs_in_section.
8774
8775 Sat Feb 26 10:58:25 1994  Ian Lance Taylor  (ian@cygnus.com)
8776
8777         * ldmain.c (write_map): Don't define.  Removed all references.
8778         Just use map_file or map_filename instead.
8779         (add_archive_element): Use minfo to write map information, not
8780         info_msg.
8781         (constructor_callback): Use fprintf to write map information, not
8782         info_msg.
8783         * ldmain.h (write_map): Don't declare.
8784         * ldgram.y (mri_script_command): Removed reference to write_map.
8785         * ldlang.c (lang_one_common): Likewise.
8786         * lexsup.c (parse_args): Likewise.
8787
8788 Fri Feb 25 19:12:03 1994  Ian Lance Taylor  (ian@cygnus.com)
8789
8790         * scripttempl/elf.sc: Force all sections to be aligned.
8791
8792         * ldgram.y (section): Reverse the order of memspec_opt and
8793         fill_opt to avoid an ambiguity when both are used.
8794         * ld.texinfo: Changed accordingly.
8795
8796         * ldgram.y: Move include of ldlex.h back with other includes.
8797         * ldlex.h (input_type): Don't initialize enum constants to
8798         particular values.
8799         * ldlex.l: Use a switch to return the right token based on
8800         input_type, rather than knowing that input_type has a value based
8801         on a token type.
8802
8803         * ldgram.y (dirlist_ptr): Removed; not used.
8804         * lexsup.c: Include ldver.h.
8805         * Makefile.in: Rebuilt dependencies.
8806
8807 Fri Feb 25 18:55:54 1994  Ted Lemon  (mellon@pepper.ncd.com)
8808
8809         * ldlang.c (lookup_name): don't call bfd_set_gp_size.
8810         (ldlang_add_file): call it here instead.
8811
8812 Fri Feb 25 18:13:46 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
8813
8814         * ldgram.y: Include ldlex.h after %token decls, for byacc.
8815
8816 Fri Feb 25 10:47:25 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
8817
8818         * emultempl/hppaelf.em: First attempt to clean this file up.
8819         Add comments in several functions as to their purpose and
8820         how they function (or my current best guess).  Clean up horrible
8821         spacing and indention that never should have been accepted in the
8822         first place.  Add FIXMEs for issues which need to be resolved.
8823         Disable linker-stub generation until it gets fixed.  This allows
8824         the linker to at least work on simple code for testing purposes.
8825
8826         * ldlang.c (lang_size_sections): No longer static (PA ELF calls
8827         it via hppaelf_finish).  Prototype moved into ldlang.h.
8828         (lang_process): Move problematic extra call to lang_size_sections
8829         into the PA ELF specific code.
8830         * emultempl/hppaelf.em (hppaelf_finish): Extra call to
8831         lang_size_sections moved here.
8832
8833 Thu Feb 24 16:47:33 1994  Ian Lance Taylor  (ian@cygnus.com)
8834
8835         * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
8836         * config/ppc-elf32.mt: New file.
8837         * emulparams/elf32ppc.sh: New file.
8838         * emultempl/ppc.em: New file.
8839         * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
8840         (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
8841         (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
8842
8843 Thu Feb 24 12:27:07 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
8844
8845         * lexsup.c (parse_args): Use symbolic numbers for long options.
8846         Fix misunderstanding in -Y and -call_shared et al.
8847
8848         Use getopt instead of lex and yacc to parse the command line.
8849
8850         * ld.texinfo (Options): Document changes to option syntax.
8851         * Makefile.in: Update dependencies.
8852         * ldver.c (help): Tweak dashes in usage message.
8853         * ldgram.y (%union): Remove unused members.
8854         Remove %tokens for command line options; add ones for input types.
8855         (command_line): Rules removed.
8856         (file): Instead of command line, recognize an
8857         input type indicator, then use the nonterminal for that type.
8858         (defsym_expr): New nonterminal from code formerly in command_line.
8859         * ldlex.h: Declare parser input type enum and variable.
8860         Don't declare parse_line.
8861         * ldlex.l: Remove unused variables.  Make some used ones static
8862         and comment them.
8863         (COMMAND): Start state and its rules removed.
8864         At start of yylex, return input state token if at start of input.
8865         (lex_redirect): Don't need to set yyout.
8866         (ldlex_command): Function removed.
8867         * ldmain.c (main): Instead of calling parse_line, set up the
8868         redirections and call yyparse directly.
8869         * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
8870         "command line".
8871         * lexsup.c: Remove #if 0'd code.
8872         (parse_line): Function removed.
8873         (parse_args): Rewrite to use getopt_long_only.
8874         (set_default_dirlist): New function from code formerly in
8875         ldgram.y:command_line.
8876         (set_section_start): New function.
8877         * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
8878         emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
8879         compiled-in link scripts in "{" and "}", as the grammar no longer
8880         wants them to be.
8881
8882 Thu Feb 24 08:43:26 1994  Ken Raeburn  (raeburn@rtl.cygnus.com)
8883
8884         * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
8885         require that it be in $(srcdir).
8886
8887 Tue Feb 22 09:21:18 1994  Ian Lance Taylor  (ian@cygnus.com)
8888
8889         * ldlang.c (lang_size_sections): Only align section to alignment
8890         required by linker script, not to maximum alignment of input
8891         sections.
8892
8893         * ldlang.h (largest_section): Don't declare.
8894         * ldlang.c (largest_section): Don't define.
8895         (size_input_section): Don't set largest_section; not used.
8896
8897 Mon Feb 21 15:15:29 1994  Ian Lance Taylor  (ian@cygnus.com)
8898
8899         * ldlang.c (new_afile): Pass NULL as last argument to concat.
8900
8901 Thu Feb 17 15:51:23 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8902
8903         * ldlang.c, ldmain.c: Include libiberty.h.
8904
8905         * ldmisc.h (concat): Don't declare.
8906         * ldmisc.c (concat): Don't define; just use the one in libiberty.
8907
8908         * ld.h (as_output_section_statement): Removed; not used.
8909
8910 Thu Feb 17 09:32:14 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
8911
8912         * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
8913         bfd_set_error and new error names.
8914
8915 Tue Feb 15 20:14:53 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
8916
8917         * ldwrite.c (build_link_order): If the cooked size of the section
8918         has been set, use it, for determining link_order size.
8919         (ldwrite): In the error message displayed if bfd_final_link fails,
8920         indicate that it was in fact the final link step that failed.
8921
8922         * ldlang.c (lang_size_sections): Clear bfd_error before calling
8923         bfd_relax_section, in case it returns false but doesn't flag an
8924         error.  If an error is returned, indicate which one it is in the
8925         error message.
8926
8927         * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
8928         it'll get picked up from $(srcdir) if appropriate.
8929
8930 Tue Feb 15 16:32:04 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
8931
8932         * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
8933         * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
8934
8935 Fri Feb 11 17:02:49 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
8936
8937         * ldlex.l (comment): Increment line number when newline is read.
8938
8939 Fri Feb 11 17:36:20 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8940
8941         * ldlang.c (lookup_name): Take new argument, force_load.  If true,
8942         reload the file even if it is already loaded.
8943         (wild): Call lookup_name with force_load argument of 0.
8944         (open_input_bfds): Call lookup_name with force_load argument of 1.
8945         (print_symbol): Remove declaration of non-existent function.
8946         (print_one_symbol): Return true rather than falling off end.
8947
8948 Thu Feb 10 11:52:38 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8949
8950         * ldmain.c (main): Use %ld when printing long values.
8951
8952         * scripttempl/elf.sc: Move _edata after the .sdata section.
8953         Permit OTHER_BSS_SYMBOLS to be defined.
8954         * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
8955
8956 Mon Feb  7 16:31:15 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
8957
8958         * Rename all "hppaosf" files to "hppaelf".
8959         * Change all "osf" references to "elf" in hppaelf files.
8960         * Makefile.in: Likewise.
8961         * configure.in: Likewise.
8962
8963 Sun Feb  6 20:31:56 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
8964
8965         * ldmain.c (main): Call xatexit, not atexit.
8966         Call xmalloc_set_program_name.
8967
8968         * ldlang.c (lang_size_sections): Check if bfd_relax_section set
8969         bfd_errno.
8970
8971 Sat Feb  5 03:54:34 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
8972
8973         * emultempl/lnk960.em (append), emultempl/hppaosf.em
8974         (hppaosf_finish): Call xmalloc, not ldmalloc.
8975         * ldmain.c (preserve_output): Function removed.
8976         (main): Do it here instead.
8977
8978 Fri Feb  4 23:02:19 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
8979
8980         * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
8981         GNU C specific macros.
8982
8983         * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
8984         call to LANG_FOR_EACH_INPUT_SECTION.
8985
8986 Fri Feb  4 16:26:08 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
8987
8988         * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
8989         deleted; will use libiberty versions instead.
8990         * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
8991         mri.c Makefile.in: Change callers.
8992
8993         * ldmisc.c (vfinfo): Remove cleanup code.
8994         * ldmain.c (remove_output): Put it here (new function).
8995         (preserve_output): New function.
8996         (main): Register remove_output and preserve_output with atexit.
8997         * ldmain.c ldgram.y: Call xexit instead of exit.
8998         * ldmisc.h: Declare xexit.
8999
9000 Fri Feb  4 15:19:01 1994  Steve Chamberlain  (sac@cygnus.com)
9001
9002         * Makefile.in: Lots of new H8/500 memory models.
9003
9004 Sun Jan 30 14:33:40 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
9005
9006         * ldlex.l: Removed duplicate rules.
9007         (yywrap): Provide default definition, needed with some versions of
9008         flex.
9009
9010 Fri Jan 28 09:12:56 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
9011
9012         * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
9013         the archive filename too.
9014
9015         * ldlex.l: Add rule to catch invalid input characters instead of
9016         printing them.  Include "ldmain.h" for program_name decl.
9017         (lex_warn_invalid): New function.
9018         * Makefile.in: Add dependency.
9019
9020 Fri Jan 28 12:58:45 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
9021
9022         * Makefile.in (check): Don't bother running any tests of
9023         cross-linker until the test suite no longer assumes native mode.
9024
9025 Thu Jan 27 17:19:54 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
9026
9027         * ldlang.c (print_one_symbol, print_input_section):  Print
9028         global symbols in symbol table again.
9029
9030 Thu Jan 27 12:35:01 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
9031
9032         * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
9033         exit successfully instead of complaining if no input files are
9034         given.
9035
9036 Tue Jan 25 13:19:41 1994  Stan Shebs  (shebs@andros.cygnus.com)
9037
9038         * Makefile.in: Format variable definitions consistently.
9039         (LD_PROG): Remove unnecessary variables from link command,
9040         change variable LOADLIBES to EXTRALIBS.
9041
9042         * ldmain.c (main): Compute and display total execution time.
9043         * ld.texinfo (-stats): Document the option.
9044
9045 Mon Jan 24 12:56:37 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9046
9047         * ldmain.c (reloc_overflow): Added name, reloc_name and addend
9048         arguments.
9049
9050         * ldlang.c (lookup_name): Set BFD GP size to -G argument value
9051         after opening BFD.
9052
9053         * ldlang.c (relaxing): Removed global variable.
9054         (lang_size_sections): If the canonical symbols have not already
9055         been read in, read them in before relaxing.
9056         * ldlang.h (relaxing): Removed declaration.
9057
9058 Fri Jan 21 00:44:44 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9059
9060         * ldlang.c (new_afile): Initialize loaded field to false.
9061         (lookup_name): If file was already loaded, don't call the
9062         add_symbols entry point again.
9063
9064 Wed Jan 19 13:57:00 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
9065
9066         * ld.texinfo: Clarify what -T option does.
9067
9068 Tue Jan 18 16:18:15 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
9069
9070         * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
9071         for a.out.
9072
9073 Tue Jan 11 13:22:04 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9074
9075         * ldmain.c (add_archive_element): If trace_files or
9076         trace_file_tries, print file name.
9077         * ldlang.c (lookup_name): Likewise.
9078         (ldlang_add_file): Don't put files on input_bfds list in reverse
9079         order.
9080
9081         * scripttempl/elf.sc: Correct typo.
9082
9083 Mon Jan 10 19:49:05 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
9084
9085         * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
9086         their arguments optional, for compatibility with the old GNU ld.
9087
9088 Fri Jan  7 20:00:24 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9089
9090         * scripttempl/elf.c: Define __bss_start before the .sbss section.
9091
9092 Thu Jan  6 00:13:10 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9093
9094         * ldmain.c (add_to_set): Add bitsize argument.
9095         (constructor_callback): New function.
9096         (link_callbacks): Add constructor_callback.
9097         * ldctor.c (struct set_info): Add bitsize field.
9098         (ldctor_add_set_entry): Add bitsize argument.
9099         (ldctor_build_sets): Base the size of the elements of the set on
9100         the bitsize, rather than always using LONG.
9101         * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
9102
9103         * ld.h (QUAD_SIZE): Define.
9104         * ldgram.y (QUAD): New token.
9105         (length): Handle it.
9106         * ldlex.l: Return QUAD.
9107         * lexsup.c (keywords): Add QUAD.
9108         * ldwrite.c (build_link_order): Handle QUAD.
9109         * ldlang.c (print_data_statement): Handle QUAD.
9110         (lang_size_sections): Likewise.
9111         (lang_do_assignments): Likewise.
9112         * ldexp.c (exp_print_token): Add QUAD to table.
9113         * ld.texinfo: Describe QUAD.
9114
9115         * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
9116         since the Alpha doesn't use them.
9117
9118 Wed Jan  5 17:42:16 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
9119
9120         * ldemul.h (ld_emulation_xfer_struct): Comment the members.
9121
9122 Sat Jan  1 13:39:31 1994  Rob Savoye  (rob@darkstar.cygnus.com)
9123
9124         * Makefile.in, configure.in: Add support for VSTa micro-kernel.
9125         * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
9126
9127 Sat Jan  1 10:53:35 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
9128
9129         * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
9130         needed for i386mach.  (Should be a no-op on other systems.)
9131
9132         * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
9133         (PAGE_SIZE): Don't define; not used.
9134
9135 Fri Dec 31 16:12:06 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9136
9137         * ldgram.y (yyerror): Make argument const char *, and actually
9138         print it out rather than assuming it is a syntax error.
9139         * ldmisc.h: Change declaration of yyerror.
9140         * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
9141
9142 Fri Dec 31 11:37:28 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9143
9144         * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
9145         exec header offset, since the exec header isn't loaded.
9146         (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
9147
9148 Thu Dec 30 13:01:43 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9149
9150         A major rewrite to move the bulk of the linker into BFD so that
9151         more efficient backend code can be written for specific object
9152         files.
9153         * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
9154         ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
9155         * ldctor.c, ldctor.h: Complete rewrite.
9156         * ldwrite.c, ldwrite.h: Complete rewrite.
9157         * ld.h (strip_symbols_type, strip_symbols): Removed.  Use
9158         link_info.strip instead.  Changed all uses.
9159         (discard_locals_type, discard_locals): Removed.  Use
9160         link_info.discard instead.  Changed all uses.
9161         (ld_config_type): Removed relocateable_output field; use
9162         link_info.relocateable instead; changed all uses.  Added stats
9163         field.
9164         (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
9165         set_loader_symbol): Removed.
9166         * ldexp.h (node_class): Added etree_rel.
9167         (etree_type): Added rel field.
9168         * ldexp.c (exp_print_token): Bracketed table initialization.
9169         (exp_relop): New function.
9170         (fold_name): Use linker hash table rather than ldsym functions.
9171         (exp_fold_tree): Likewise.  Also, handle etree_rel case.
9172         (exp_print_tree): Handle etree_rel.
9173         * ldgram.y (strip_symbols, discard_locals): Removed.
9174         (OPTION_stats, OPTION_no_keep_memory): New tokens.  Handle them.
9175         (REL): New token.  Does not appear in grammar, but needed for
9176         expression code.
9177         (file): Don't call lang_final; it's called by main anyhow.
9178         * ldlex.l: Accept -stats and -no-keep-memory options.
9179         * ldlang.h (fill_type): Make unsigned int, not unsigned short.
9180         * ldlang.c: Consistently use fill_type for fill argument.
9181         (lang_init_script_file, script_file): Removed.
9182         (create_object_symbols): Removed.  Use
9183         link_info.create_object_symbols_section instead.  Changed all
9184         uses.
9185         (lang_add_keepsyms_file): Removed.
9186         (lookup_name): Call bfd_link_add_symbols instead of
9187         ldmain_open_file_read_symbol.
9188         (wild): Don't iterate over script_file.
9189         (open_output): Create link hash table.
9190         (lang_place_undefineds): Rewrote.
9191         (lang_size_sections): Handle relaxing (doesn't work yet).
9192         (lang_relocate_globals): Removed.
9193         (lang_finish): Use link hash table rather than ldsym functions.
9194         (lang_common): Rewrote.
9195         (lang_one_common): New function.
9196         (ldlang_add_file): Add file to link_info.input_bfds list.  Set
9197         usrdata.
9198         (create_symbol): Removed.
9199         (lang_process): Don't call lang_init_script_file.  Call
9200         ldctor_build_sets rather than find_constructors.  Don't call
9201         lang_relocate_globals.
9202         (lang_abs_symbol_at_beginning_of): Rewrote.
9203         (lang_abs_symbol_at_end_of): Rewrote.
9204         * ldmain.c (had_y): Removed.
9205         (lprefix, lprefix_len): Removed; use link_info fields instead.
9206         Changed all uses.
9207         (multiple_def_count, commons_pending, undefined_global_sym_count,
9208         total_symbols_seen, total_files_seen): Removed.
9209         (link_callbacks, link_info): New variables.
9210         (main): Initialize link_info.  Don't call init_bfd_error_vector or
9211         ldsym_init.  Don't set now unused variables.  Handle -stats.
9212         (get_emulation): Removed obsolete and nonfunctional GNU960 code.
9213         (add_ysym): Rewrote.
9214         (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
9215         search_library, gnu960_check_format, decode_library_subfile,
9216         linear_library, symdef_library, clear_syms, subfile_wanted_p):
9217         Removed.
9218         (add_keepsyms_file, add_archive_element, multiple_definition,
9219         multiple_common, add_to_set, warning_callback, undefined_symbol,
9220         reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
9221         New functions.
9222         * ldmisc.c (vfinfo): Accept a string for %T, not a symbol.  Don't
9223         require symbols for %C; look them up instead.
9224         * emultempl/hppaosf.em: Pass link_info to
9225         hppa_look_for_stubs_in_section.
9226         * Makefile.in: Rebuilt dependencies.
9227         (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
9228         relax.c.
9229         (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
9230         relax.h.
9231         (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
9232         ldlang.h and ldctor.h.
9233
9234         * Makefile.in (ldlex.c): Don't depend on ldgram.h.  Remove
9235         declarations of free and malloc from flex output.  Change malloc
9236         to ldmalloc in flex output.
9237
9238 Thu Dec 16 21:19:57 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
9239
9240         * ldmain.c (lprefix): Change default from a char to a string
9241         with only one character.
9242         (lprefix_len): Set default to one.
9243
9244         * ldmain.h (lprefix_len): Declare.
9245
9246         * ldsym.c (write_file_locals): Use strncmp rather than a character
9247         comparison for lprefix.
9248
9249         * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
9250         correctly.
9251
9252         * emultmpl/hppaosf.em: Include ldexp.h.
9253         (before_parse): Set lprefix and lprefix_len correctly.
9254
9255 Tue Dec 14 17:19:03 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9256
9257         * ldlex.h: Don't declare yywrap if it is a macro.
9258         * ldlex.l: Include sysdep.h.
9259         * ldlang.c (lang_for_each_statement_worker,
9260         lang_for_each_statement): Forgot to use PARAMS.
9261
9262 Mon Dec 13 14:30:03 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9263
9264         * Makefile.in: Added .PHONY targets where appropriate.  Added some
9265         comments.  Also:
9266         (gcclibdir, version): Removed unused variables.
9267         (DEP): New variable, set to mkdep.
9268         (ALL_CFLAGS): New variable.  Used in .c.o target.
9269         (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
9270         variables.
9271         (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
9272         GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
9273         mostly obsolete variables.  Adjusted remaining uses.
9274         (DEF_EMUL): Removed variable.
9275         (ldmain.o): Handle undefined EMUL error correctly.
9276         (ldemul-list.h): Depend on config.status rather than Makefile.
9277         Create via temporary file.
9278         (ver960.c, roll, make): Removed obsolete targets.
9279         (.dep, .dep1, dep.sed, dep, dep-in): New targets.  Used to rebuild
9280         dependencies.
9281         * dep-in.sed: New file, used when rebuilding dependencies.
9282
9283 Sat Dec 11 14:43:44 1993  Ian Lance Taylor  (ian@deneb.cygnus.com)
9284
9285         Made many changes to eliminate gcc warnings.  Made various
9286         cosmetic changes, declared various things in header files, removed
9287         various extern declarations from .c files.  No substantive
9288         changes.
9289
9290         * ldlang.c (lang_process): Ifdef out final call to
9291         lang_size_sections again (reverting change of Nove 2), since it
9292         breaks the Sun4 linker.
9293
9294 Thu Dec  2 16:31:47 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9295
9296         * configure.in (alpha-*-netware*): New target; use alpha.
9297
9298 Wed Dec  1 14:04:20 1993  Ken Raeburn  (raeburn@cygnus.com)
9299
9300         * configure.in: Group targets by CPU.  Merge some m68k target
9301         entries with different CPU specs that use the same ld_target
9302         values.
9303
9304         * configure.in: Add sparc*-*-coff.
9305         * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
9306         * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
9307         (em_coff_sparc.c): Add dependencies and build rules.
9308
9309         * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
9310
9311 Wed Dec  1 12:19:55 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9312
9313         * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
9314         New tokens.
9315         (command_line_option): Accept and ignore them (for now).
9316         * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
9317         where n is a number.
9318
9319 Mon Nov 22 14:14:29 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9320
9321         * ldmain.c (subfile_wanted_p): If merging a common symbol which is
9322         not in bfd_com_section, create the section in the BFD so that it
9323         can be placed in the right output section.
9324
9325 Fri Nov 19 14:12:39 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9326
9327         * configure.in (mips*-sgi-irix5*): New target.  Use mipsb-elf32.
9328         * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
9329         (OTHER_READONLY_SECTIONS): Define for .reginfo.
9330         (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
9331         * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
9332         Move OTHER_READONLY_SECTIONS after all the other readonly
9333         sections.  Don't use DATA_ADDR twice.
9334
9335         * ldmain.c (enter_file_symbols): Removed duplicate tests of p.  If
9336         p is in a common section, make sure the BFD has a section of that
9337         name.
9338
9339         * ldlang.c (lang_common): Add newline to error message.
9340
9341 Thu Nov 11 15:54:41 1993  Stan Shebs  (shebs@rtl.cygnus.com)
9342
9343         * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
9344         Lynx-specific script instead of m68kcoff.
9345         (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
9346         (ENTRY): Define as __main.
9347         (TEXT_START_ADDR): Define as 0.
9348         (PAGE_SIZE): Define as 0x1000.
9349         * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
9350         * scripttempl/m68klynx.sc: New file.
9351
9352 Mon Nov  8 12:00:16 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9353
9354         * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
9355         arguments rather than treating them as emulation names.
9356
9357 Fri Nov  5 09:02:52 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
9358
9359         * configure.in: Support x86 unixware and netware plus generic netware.
9360
9361 Fri Nov  5 21:47:55 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9362
9363         * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
9364         Correct values (?).
9365
9366 Wed Nov  3 15:10:15 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
9367
9368         * Makefile.in (distclean): Don't delete dvi or info files.
9369         (ld.info): Update dependency list.
9370         (ld.dvi): Ditto.  Extend TEXINPUTS to get bfdsumm.texi.
9371
9372 Wed Nov  3 12:07:39 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9373
9374         * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
9375         Set output_filename instead of creating a new node.
9376         (open_output): Don't set output_filename.
9377         (lang_final): Create the new node here.
9378         * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
9379
9380 Tue Nov  2 15:45:51 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
9381
9382         From Pete Hoogenboom (hoogen@cs.utah.edu):
9383
9384         * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
9385         edata, _edata, end): Add definitions of these symbols.
9386         (__end):  Remove definition of this symbol.
9387         (__data_start): Move definition of this symbol.
9388
9389         * emultempl/hppaosf.em:  Various fixes and support for linker stub
9390         generation.
9391         (hppaosf_finish, hppaosf_search_for_padding_statements,
9392         hppaosf_create_output_section_statements): New functions in
9393         support of linker stub generation.
9394         (ld_hppaosf_emulation):  Redefine to include new
9395         emulation-specific routines.
9396
9397         * ldlang.c (lang_process): Re-enable last call lang_size_sections.
9398         Pass abs_output_section rather than NULL to avoid invalidating
9399         absolute symbols.
9400
9401 Thu Oct 28 21:16:42 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9402
9403         * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
9404         (em_i386mach.c): New rule.
9405         * configure.in (i[34]86-*-mach*): New case.
9406         * config/i386-mach.mt: New file.
9407         * emulparams/i386mach.sh: New file.
9408
9409 Fri Oct 29 14:55:05 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9410
9411         * ld.h (flag_is_*): Removed macros.
9412         * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
9413         Consistently check the BFD symbol flags directly, rather than
9414         using file_is_* macros.
9415
9416 Thu Oct 28 19:08:42 1993  Stan Shebs  (shebs@rtl.cygnus.com)
9417
9418         * configure.in (sparc*-*-lynxos*): New target.
9419         * Makefile.in: Add rule for em_sparclynx.c.
9420         (ALL_EMULATIONS): Add Lynx emulations.
9421         * config/sparc-lynx.mt: New file.
9422         * emulparams/sparclynx.sh: New file.
9423         * scripttempl/sparccoff.sc: New file.
9424
9425 Thu Oct 28 13:50:25 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9426
9427         * Makefile.in: Add dependency for $(EMULATION_OFILES).
9428
9429 Mon Oct 25 16:09:24 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9430
9431         * relax.c (write_relax): Check return value of bfd_seclet_link.
9432
9433 Mon Oct 25 09:31:21 1993  Ken Raeburn  (raeburn@cygnus.com)
9434
9435         * ldlang.c (delete_output_file_on_failure): New variable.
9436         (open_output): Set it after bfd open succeeds.
9437         * ldmisc.c (vfinfo): Test it.
9438
9439         Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
9440
9441         * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
9442         symbols.
9443
9444         * ldemul.c: Support was added to allow emulation-specific
9445         processing to occur.  This support was added primarily for linker
9446         stub generation in the elf32-hppa gld.
9447         (ldemul_finish, ldemul_create_output_section_statements):  New
9448         functions.
9449         * ldemul.h: Support was added to allow emulation-specific
9450         processing to occur. (As described above.)  Added finish and
9451         create_output_section_statements fields to
9452         ld_emulation_xfer_struct structure.
9453         * ldlang.c: Add calls to emulation-specific routines.
9454         (lang_process):  Add call to
9455         ldemul_create_output_section_statements function.
9456         (lang_process):  Add call to a emulation-specific routine (and
9457         some processing after the call).
9458
9459 Fri Oct 22 20:54:13 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9460
9461         * configure.in: mips*- instead of mips-, mips*el changes
9462
9463 Tue Oct 19 15:46:28 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9464
9465         * configure.in (alpha-*-osf*): New target; use alpha.mt.
9466         * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
9467         (em_alpha.c): New target; use alpha.sh and alpha.sc.
9468         * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
9469         * config/alpha.mt: New file.
9470         * emulparams/alpha.sh: New file.
9471         * scripttempl/alpha.sc: New file.
9472
9473 Fri Oct 15 02:20:04 1993  Doug Evans  (dje@canuck.cygnus.com)
9474
9475         * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
9476         types of different sizes (eg: 64 and 32 bits), so coerce.
9477         * ld.h (ALIGN_N): Add warning about usage.
9478
9479 Wed Oct 13 16:02:39 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9480
9481         * ldmain.c (enter_global_ref): Just ignore any weak symbol for
9482         which we already have a definition, rather than checking in
9483         several different places whether the symbol is weak.
9484
9485 Tue Oct 12 17:30:51 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9486
9487         * configure.in (mips-*-elf*): New target; use mipsb-elf32.
9488         * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
9489         OTHER_READWRITE_SECTIONS if relocating.  Shell variables are not
9490         expanded within them.
9491         * config/mipsb-elf32.mt: New file.
9492         * emulparams/elf32mipb.sh: New file.
9493         * Makefile.in (em_elf32mipb.c): New target.
9494
9495 Thu Sep 30 17:00:36 1993  Rob Savoye  (rob@darkstar.cygnus.com)
9496
9497         * ldgram.y: In input_list, change lang_input_file_is_file_enum to
9498         lang_input_file_is_search_file_enum so objects brought in using
9499         INPUT() do a path lookup.
9500
9501 Tue Sep 28 13:31:23 1993  Stan Shebs  (shebs@rtl.cygnus.com)
9502
9503         * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
9504         instead of {i386,m68k}-coff.
9505         * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
9506         * config/i386-lynx.mt: New file.
9507         * config/m68k-lynx.mt: New file.
9508         * emulparams/i386lynx.sh: New file.
9509         * emulparams/m68klynx.sh: New file.
9510
9511         * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
9512         but defaulting to _start.
9513
9514         * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
9515         ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
9516         LynxOS libc.
9517
9518 Thu Sep 23 14:51:03 1993  Ian Lance Taylor  (ian@cygnus.com)
9519
9520         * config/solaris2.mh: New file.  Define HOSTING_CRT0 and
9521         HOSTING_LIBS for testing.
9522
9523 Fri Sep 17 17:52:24 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9524
9525         Finish up support for i386-sysv4 (without shared libraries):
9526         * ld.h (flag_is_weak): Define.
9527         * ldlang.c (print_symbol): Mention whether symbol is weak.
9528         (print_input_section): Print weak symbols as globals.
9529         * ldmain.c (refize): Do not zero out BSF_WEAK flag.
9530         (enter_global_ref): Do not warn if a weak symbol redefines a
9531         global symbol.  Do not let a weak symbol redefine a common symbol.
9532         (enter_file_symbols): Treat weak symbols as global symbols.
9533         (subfile_wanted_p): Do not pull in an object file from a archive
9534         just to resolve an undefined weak symbol.
9535         * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
9536         error; the error might be that malloc has run out of space.
9537         * ldsym.c (write_file_locals): Treat weak symbols as global.
9538         * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
9539         use i386-elf.
9540         * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
9541         * config/i386-elf.mt: New file; set EMUL to elf_i386.
9542         * emulparams/elf_i386.sh: New file.
9543         * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
9544         * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
9545         (ALL_EMULATIONS): Add em_elf_i386.o.
9546         (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
9547         (em_elf_i386.c): New target, like other em_*.c targets.
9548         ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
9549         * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument.  If
9550         nonempty, and configured for native, add it to LIB_PATH.
9551
9552 Fri Sep 17 13:07:39 1993  Stan Shebs  (shebs@rtl.cygnus.com)
9553
9554         * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
9555         Added statements to pass stab and stabstr sections through and
9556         mark them as NOLOAD, which makes GDB happier.
9557
9558 Wed Sep 15 16:02:29 1993  Stan Shebs  (shebs@rtl.cygnus.com)
9559
9560         * configure.in: Accept m68k-lynx-lynxos config.
9561
9562         * Makefile.in: Use $(SHELL) to run genscripts.sh.
9563
9564 Sun Sep 12 16:04:40 1993  Doug Evans  (dje@cygnus.com)
9565
9566         * config/coff-h8300.mt: Add EMUL=h8300h.
9567
9568         * ldmain.c (main): Call set_scripts_dir after argv has been processed.
9569
9570 Fri Sep 10 09:36:29 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9571
9572         * Makefile.in: Changed CXX back to g++.
9573
9574 Fri Sep 10 09:34:29 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9575
9576         * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
9577
9578 Fri Sep 10 07:26:57 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9579
9580         * Makefile.in (TAGS): Use shell wildcards.
9581
9582 Tue Sep  7 18:04:54 1993  Jeffrey Osier  (jeffrey@cygnus.com)
9583
9584         * Makefile.in:  add TEXINPUTS variable and use it in ld.dvi target
9585
9586 Fri Sep  3 16:46:41 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
9587
9588         * ld.texinfo: re-enable included config file; conditionalize doc
9589         for -oformat to interact properly with SingleFormat doc config
9590         var; rename @up/@down to @raisesections/@lowersections.
9591
9592 Wed Aug 25 16:29:56 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9593
9594         * configure.in: recognize m88110.
9595
9596 Tue Aug 24 18:49:40 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
9597
9598         From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
9599         * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
9600         ELF emulation is "elf32-hppa" not "elf-big".
9601         (hppaosf_before_parse): Remove unneeded processing of environment
9602         variables.
9603         * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
9604         .text segment of output file.
9605         * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
9606
9607 Tue Aug 24 16:17:00 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9608
9609         * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
9610           longer in bfd.h.
9611
9612         * ldlang.c, ld.h: updated copyright.
9613
9614 Tue Aug 17 15:22:03 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9615
9616         * ldlang.c (open_output, lang_check): Check return value of
9617         bfd_set_arch_mach.
9618
9619 Tue Aug 17 07:02:19 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
9620
9621         * scripttempl/h8500.sc: Start all sections in a different segment.
9622         * scripttempl/z8ksim.sc: Handle constructors
9623
9624 Thu Aug 12 16:05:37 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9625
9626         * Makefile.in: revert earlier changes back to execute runtest
9627           with make check. cdtest and bootstrap now function as they
9628           did within the Makefile.
9629
9630 Thu Aug 12 10:20:05 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9631
9632         * Makefile.in:  Update dependencies.
9633
9634         * configure.in: Set EMULATION_OFILES in Makefile based on
9635         --with-targets option.
9636
9637 Thu Aug 12 08:52:29 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9638
9639         * Makefile.in: check targets reimplemented to old way.
9640
9641 Wed Aug 11 08:26:11 1993  Ian Lance Taylor  (ian@cygnus.com)
9642
9643         * config/i386v.mh, config/irix4.mh: Use gcc
9644         -print-libgcc-file-name rather than $(libdir)/libgcc.a.
9645         * config/i386sco.mh: New file; copy of i386v.mh to correspond to
9646         bfd/configure.host change.
9647
9648 Mon Aug  9 14:25:35 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
9649
9650         * scripttempl/elf.sc: Handle .line and .debug* sections.
9651
9652         * ldlex.l: Use bfd_scan_vma, not strtoul.
9653
9654 Fri Aug  6 08:57:39 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9655
9656         * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
9657         Remove inital caps in some error messages, change "can't" to
9658         "cannot", add missing colons.
9659         * ldmisc.c (vfinfo): Print "%%" as a single %.
9660         For '%' followed by unrecognized character, print them both
9661         verbatim instead of expecting a char * arg.
9662         For '%C', don't put the function name in parens.
9663
9664         * ldexp.c (invalid): Pass "%%", not "% ".
9665
9666 Fri Aug  6 14:31:22 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9667
9668         * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
9669         (BSS_VAR): Removed; now always define _fbss.
9670         * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
9671         Removed.
9672
9673 Thu Aug  5 15:55:19 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9674
9675         * configure.in: z8k-coff is the same as z8k-sim
9676
9677 Wed Aug  4 21:00:18 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9678
9679         * testsuite/lib/ld.exp: new file
9680         * testsuite/config/unix-ld.exp: new file
9681         * testsuite/ld.bootstrap/bootstrap.exp: new file
9682         * Makefile.in: add dejagnu support for make check
9683
9684 Wed Aug  4 17:52:32 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9685
9686         * ldlex.l (comment): Add missing newline in message.
9687         * ldindr.c (add_indirect): Ditto.
9688         * ldexp.c (exp_fold_tree): Ditto.
9689
9690 Tue Aug  3 10:57:41 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9691
9692         * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
9693         into externs.
9694
9695         * ldmisc.c (multiple_warn): New function.
9696         * ldmisc.h: Declare it.
9697         * ldmain.c (enter_global_ref): Call it.
9698         * ld.h (ld_config_type): Add warn_common.
9699         * ldlex.l, ldgram.y: Set it with -warn-common option.
9700         * ldver.c (help): Document it.
9701
9702 Mon Aug  2 12:04:36 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
9703
9704         * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
9705         target-specific sections, and for changing data section vma.
9706
9707 Mon Jul 26 14:00:02 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
9708
9709         * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
9710         terminals, for Solaris.
9711         (dirlist_ptr): New static variable.
9712         (command_line_option): Accept new options.
9713
9714         * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
9715         "-YP,...".
9716
9717         * config/sun4sol2.mt: Pass emulation name without ".sh".
9718
9719         * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
9720         * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
9721
9722 Fri Jul 23 13:51:09 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
9723
9724         * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
9725         .dtors, .data1, .rodata1 sections, instead of combining them into
9726         other sections.  For `-r', set all section start addresses to
9727         zero.
9728
9729         * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
9730         NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
9731         (MAXPAGESIZE): Renamed from PAGE_SIZE.
9732
9733 Wed Jul 21 14:28:42 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9734
9735         * genscripts.sh: If this is the default emulation, set
9736         COMPILE_IN.
9737         * emultempl/*.em: Use it to determine whether to compile in the
9738         scripts.
9739
9740         * Makefile.in (GENSCRIPTS): Pass the default emulation name to
9741         genscripts.sh.  Pass the current emulation name without ".sh" on
9742         the end.
9743         * genscripts.sh: Take an default emulation arg.
9744         Use the current emulation name as EMULATION_NAME.
9745         Make default lib path for cross-compiling ':', not null.
9746         * emulparams/*.sh: Don't set EMULATION_NAME.
9747         * ldemul.c (ldemul_get_script): Take isfile arg.
9748         Pass it to emulation's get_script function.
9749         * ldemul.h: Adjust get_script prototypes.
9750         * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
9751         No longer static.
9752         * ldfile.h: Declare it.
9753         * ldgram.y: Accept a script on the command line again,
9754         for parsing compiled-in scripts.
9755         * ldmain.c (main): If ld script is a file, parse it as a -T
9756         option, otherwise parse it directly.
9757         * emultempl/*.em (*get_script): Return the scripts themselves if
9758         this is the default emulation; otherwise return their file names.
9759         * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
9760         generic.em.
9761         * emulparams/m88kbcs.sh: Use it.
9762
9763         * ld.h (ld_config_type::unix_relocate): Remove unused element.
9764
9765 Tue Jul 20 12:01:49 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
9766
9767         * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
9768         there's no change log entry yet, tsk tsk) from the list of
9769         emulations compiled in until Mark gets around to checking in
9770         emulparams/i386linux.sh.
9771         (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
9772         changed, this file gets updated.
9773
9774 Fri Jul 16 14:14:32 1993  Ian Lance Taylor  (ian@cygnus.com)
9775
9776         * ldgram.y (OPTION_Lfile): New token.
9777         (command_line_option): Accept OPTION_L NAME (whitespace after -L).
9778         * ldlex.l (<COMMAND>): Accept -L without FILENAME.
9779
9780 Fri Jul 16 13:44:26 1993  Doug Evans  (dje@canuck.cygnus.com)
9781
9782         * configure.in: h8/300h support needs own .mt file.
9783         config/coff-h8300h.mt: New file.
9784
9785 Thu Jul 15 12:44:35 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9786
9787         * ldmain.c: Don't include sys/stat.h; it already got included
9788         somewhere along the way.
9789
9790 Thu Jul 15 14:43:34 1993  Doug Evans  (dje@canuck.cygnus.com)
9791
9792         * Makefile.in: Add h8300h support.
9793         emulparams/h8300h.sh: New file.
9794         scripttempl/h8300h.sc: New file.
9795
9796 Thu Jul 15 12:44:35 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9797
9798         * ldfile.c (ldfile_open_file): In error message, use the name the
9799         user gave (e.g., "-lc"), rather than the base file name.
9800
9801         * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
9802
9803         * ldmain.[ch]: Remove initial Q_ from function names.
9804         * ldexp.c, ldindr.c, ldlang.c: Change callers.
9805
9806         * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
9807
9808         * ldlang.c (lang_process): Move loading of default script from
9809         here to main.  Add a "/" to start of script name to prevent
9810         finding it in "." first.
9811
9812         * ldmain.c (set_scripts_dir): Don't look in "." first.
9813
9814         * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
9815         option_longmap.
9816
9817 Thu Jul 15 10:55:59 1993  Ian Lance Taylor  (ian@cygnus.com)
9818
9819         * Makefile.in (em_m88kbcs.c): Correct dependency.
9820         * scripttempl/m88kbcs.sc: It's ARCH, not arch.  Removed TARGET
9821         statement.  Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
9822         * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
9823
9824 Wed Jul 14 21:42:53 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9825
9826         * ldfile.c (ldlang_open_file, ldfile_open_command_file),
9827         main.c (main): Print the errno string in the error message.
9828
9829 Tue Jul 13 20:00:30 1993  Doug Evans  (dje@canuck.cygnus.com)
9830
9831         * configure.in: Accept h8300h for target cpu.
9832
9833         * ldmisc.c (vfinfo): Have demangle remove leading underscore if
9834         present (demangle is smart enough to know whether to do it or not).
9835
9836 Mon Jul 12 11:45:48 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9837
9838         * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
9839         ldscripts, as well as <ld bin dir> and SCRIPTDIR.
9840
9841         * ldlang.c (lang_process): Use sizeof instead of magic constant.
9842
9843         * ldmain.c (get_emulation, check_for_scripts_dir,
9844         set_scripts_dir):  New functions.
9845         (main): Call them.
9846
9847 Mon Jul 12 10:57:03 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
9848
9849         * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
9850         Create symbol "end" instead of "__end".  Comment out some parts
9851         that may not be needed (yet) for elf.
9852
9853         * configure.in: Accept sparc-elf and sparc-solaris2 configs.
9854
9855 Thu Jul  8 15:33:32 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
9856
9857         * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
9858
9859         * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
9860         when no prototype is being supplied.
9861         (ldmalloc, ldrealloc): Size argument is now size_t.
9862
9863         * ldmisc.c (finfo): New function, accepts FILE* argument.
9864         (vfinfo, case 'v'): New format character; displays bfd_vma in hex
9865         without leading zeros.
9866         (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
9867         bfd_vma value, instead of fprintf(%x) which won't hold a long long
9868         value.
9869         (concat, buystring): String lengths are size_t.
9870         (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
9871
9872         * ldlang.c (new_statement): Size argument is now size_t.  Added
9873         forward declaration with prototype.
9874
9875 Thu Jul  8 10:53:47 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9876
9877         * ldgram.y (OPTION_v): Don't turn on verbose output.
9878
9879 Wed Jul  7 17:10:45 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
9880
9881         * ldlex.l: Get rid of local typedef for bfd_vma!  Get it from
9882         bfd.h instead.
9883
9884 Wed Jul  7 11:33:12 1993  Ian Lance Taylor  (ian@cygnus.com)
9885
9886         * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
9887         collect2 doesn't look for gld any more anyhow.
9888
9889 Mon Jul  5 14:29:48 1993  Ian Lance Taylor  (ian@cygnus.com)
9890
9891         * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
9892         now have a non NULL srefs_chain.
9893
9894         * config/hp300hpux.mt: Use emulation hp3hpux rather than
9895         hp300hpux, since the latter does not exist.
9896
9897 Fri Jul  2 18:06:05 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9898
9899         * genscripts.sh: Put the scripts in the ldscripts directory, not
9900         emulations.
9901         * configure.in (ldscripts): Make, instead of emulations.
9902         * Makefile.in (scriptdir): Take off the "ld" part.
9903         (install, clean, distclean): Use ldscripts, not emulations.
9904         In tests, don't pass -Lemulations.
9905         Don't pass tooldir/lib to genscripts.sh.
9906         * genscripts.sh: Don't take tooldir/lib arg.
9907         * ldlang.c (lang_process): Add "ldscripts/" to the name of the
9908         default script file.
9909
9910 Fri Jul  2 17:13:35 1993  Doug Evans  (dje@canuck.cygnus.com)
9911
9912         * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
9913
9914 Thu Jul  1 16:38:45 1993  Doug Evans  (dje@canuck.cygnus.com)
9915
9916         * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
9917
9918 Wed Jun 30 15:45:55 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9919
9920         * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
9921           run in parallel without colliding on yacc's static file names.
9922           Without the stub rule, make will try to start two yacc's
9923           concurrently which fails because of yacc's static file names.
9924
9925 Tue Jun 29 12:20:36 1993  Ian Lance Taylor  (ian@cygnus.com)
9926
9927         * ldmain.c (subfile_wanted_p): Don't dump core if there are no
9928         symbols.
9929
9930 Mon Jun 28 12:22:11 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9931
9932         * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
9933         different from libdir.
9934
9935         * Makefile.in (scriptdir): Base on tooldir, not datadir.
9936
9937 Sat Jun 26 12:03:57 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9938
9939         * ldver.c (help): New function.
9940         * ldver.h: Declare it.
9941         * ldlex.l, ldgram.y: Recognize new options --help and --version.
9942
9943 Mon Jun 21 20:39:48 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)
9944
9945         * Makefile.in (INCLUDES): Don't need ../include any more.
9946
9947 Mon Jun 21 16:38:35 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9948
9949         * ldlex.l, ldgram.y: Support new -oformat option.
9950         Remove attempt at supporting script fragments on the command line.
9951         * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
9952         * mri.c (mri_format), ldgram.y: Change callers.
9953         * ldlang.h: Change prototype.
9954
9955 Thu Jun 17 16:53:56 1993  david d `zoo' zuhn (zoo@cygnus.com)
9956
9957         * Makefile.in: canonicalize install.sh; for use within
9958         this directory (and subdirs)
9959
9960 Thu Jun 17 14:33:09 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9961
9962         * ldgram.y: Tweak grammar to make reporting of invalid options work.
9963
9964         * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
9965         and .cc.o rule.
9966
9967 Wed Jun 16 11:45:32 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9968
9969         * ldfile.c (ldfile_open_command): Don't try .ld extension.
9970         It wasn't documented (or likely used) and wastes time.
9971         (try_open): If EXTEN is empty, don't try it.
9972
9973         * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
9974         ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
9975         ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
9976         with normal function declarations.
9977
9978         * Move *.em to emultempl/*.em.  Move *.sh to emulparams/*.sh.
9979         Move *.sc-sh to scripttempl/*.sc.
9980         * {emultempl,emulparams,scripttempl}/README: New files.
9981         * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
9982         removed, replaced with generic.em.
9983         * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
9984          h8[35]00hms.s[ch].  Change their contents to omit the "hms".
9985
9986         * *.em (*_get_script): Return script name instead of script contents.
9987         * ldlang.c (lang_process): Change caller.
9988
9989         * ldlex.l, ldgram.y: Recognize -m option.
9990         Check for input files after *all* options in grammar.
9991         * ldmain.c (main): Check for -m options.  Add default directory
9992         for -m.
9993
9994         * mkscript.c: File removed.
9995         * genscripts.sh: Take two more parameters, tooldirlib and libdir,
9996         to add to the default LIB_PATH.
9997         Look for input files in the new subdirectories.
9998         Create the scripts in emulations subdirectory and don't filter
9999         them through mkscript.
10000         * configure.in: Make the emulations subdirectory.
10001
10002         * Makefile.in: Account for all of the above changes.
10003         Remove unused .SUFFIXES.  Get libgcc.a path with gcc
10004         -print-libgcc-file-name instead of $(libdir)/libgcc.a.
10005         Put CFLAGS last in the compilation rules.
10006         Add -I../bfd to INCLUDES so sysdep.h is found.
10007
10008 Tue Jun 15 23:04:46 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
10009
10010         * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
10011
10012         * aout.sc-sh: Add SHLIB_PATH like STACKZERO.  Make STACKZERO
10013         dependent on RELOCATING, not RELOCATION.
10014         * hp3hpux.sh (SHLIB_PATH): Define it.
10015
10016 Mon Jun 14 19:06:15 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
10017
10018         * ldfile.c (try_open): If opening without the extension fails,
10019         try with the extension even if -v or -V was given.
10020         had_script is imported (from ldgram.y), not exported.
10021
10022 Mon Jun 14 16:26:10 1993  david d `zoo' zuhn  (zoo at rtl.cygnus.com)
10023
10024         * Makefile.in: remove parentdir support, use INSTALL_XFORM
10025
10026 Thu Jun 10 14:00:06 1993  Ian Lance Taylor  (ian@cygnus.com)
10027
10028         * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
10029         * ldgram.y (statement_list_opt): New nonterminal, either empty or
10030         statement_list.
10031         (section): Use statement_list_opt, not statement_list.
10032         * m68kcoff.sc-sh: Gather constructors and destructors and define
10033         __CTOR_LIST__ and __DTOR_LIST__ appropriately.
10034         * sa29200.sc-sh: Gather constructors and destructors and define
10035         ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
10036
10037 Mon Jun  7 12:53:28 1993  Per Bothner  (bothner@rtl.cygnus.com)
10038
10039         * Makefile.in (INCLUDES):  Add -I../bfd for sysdep.h and bfd.h.
10040         * configure.in:  No longer need to configure to get sysdep.h.
10041
10042 Fri Jun  4 16:18:24 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10043
10044         * Makefile.in: remove install:all and install-info:info
10045         dependencies (these cause some spurious rebuilds at 'make install'
10046         time)
10047
10048 Fri Jun  4 08:50:14 1993  Ian Lance Taylor  (ian@cygnus.com)
10049
10050         * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
10051         (mips-idt-ecoff*): Added trailing '*'.
10052         * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
10053         * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
10054         * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
10055
10056         * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
10057         incorrect definitions.
10058
10059 Tue Jun  1 14:56:10 1993  Per Bothner  (bothner@rtl.cygnus.com)
10060
10061         * ldsym.c (write_file_locals):  Write BSF_CONSTRUCTOR
10062         symbols, unless stripping.
10063
10064 Tue May 25 15:34:25 1993  Ian Lance Taylor  (ian@cygnus.com)
10065
10066         * Makefile.in: configure looks for ####, so remove lines with many
10067         '#' characters.
10068         * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
10069         and HOSTING_LIBS correctly so that ``make check'' will work.
10070
10071 Thu May 20 13:56:16 1993  Per Bothner  (bothner@deneb.cygnus.com)
10072
10073         * mips.sc-sh:  Define _etext, _edata, and _end, in addition
10074         to etext, edata, and end.  Needed for IRIX 4.0.5F.
10075         Patch from mwp@iconix.oz.au (Michael Paddon).
10076
10077         * Version 2.2.1 released.
10078
10079 Thu May 20 11:42:06 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
10080
10081         * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
10082         * mipsbsd.sh (EMULATION_NAME): Use new file name.
10083
10084 Tue May 18 17:10:24 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
10085
10086         * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
10087         properly right now.
10088
10089         * Version 2.2 released.
10090
10091 Mon May 17 15:37:28 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
10092
10093         * ldver.c (ldversion): Bump version number to 2.2.
10094
10095 Mon May 17 12:44:31 1993  Per Bothner  (bothner@cygnus.com)
10096
10097         * NEWS:  New file.
10098
10099 Fri May 14 11:26:24 1993  Ian Lance Taylor  (ian@cygnus.com)
10100
10101         * mips.sc-sh: Don't define BSS_VAR unless relocating.
10102
10103 Wed May 12 13:33:29 1993  Ian Lance Taylor  (ian@cygnus.com)
10104
10105         * Makefile.in (mkscript.o, mkscript): Build mkscript via
10106         mkscript.o, rather than directly from mkscript.c.
10107
10108 Tue May  4 21:58:56 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
10109
10110         * configure.in: Look for ${target_makefile_frag} relative to
10111         ${srcdir}, not relative to build directory.
10112
10113         * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
10114         * configure.in: Recognize hppa*-hp-osf.
10115         * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
10116         (em_hppaosf.c): Build it.
10117         * config/hppaosf.mh, hppaosf.mt: New files.
10118
10119         * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
10120         some system header files.  All uses changed.
10121
10122         * configure.in: Recognize i386-aix configurations as i386-coff
10123         targets.
10124
10125         * configure.in: Recognize m68*-*-hpux.
10126         * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
10127         the value of STACKZERO.
10128         * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
10129         (em_hp3hpux.c): Build it.
10130         * hp3hpux.sh, config/hp300hpux.mt: New files.
10131
10132 Tue May  4 12:37:35 1993  Ian Lance Taylor  (ian@cygnus.com)
10133
10134         * mips.sc-sh: Put constructors in the .data section.
10135         * Makefile.in (cdtest): Added dependency on ld.new.
10136
10137 Mon May  3 19:43:39 1993  Per Bothner  (bothner@cygnus.com)
10138
10139         * Makefile.in:  Change definition of $(tooldir) to match FSF.
10140         * vax.sh, config/vax.mt, configure.in, Makefile.in:
10141         Support VAX Ultrix and BSD.
10142
10143 Mon Apr 26 18:35:47 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
10144
10145         * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
10146
10147 Wed Apr 14 21:01:51 1993  John Gilmore  (gnu@cygnus.com)
10148
10149         * ldlang.h (struct memory_region):  Change `length' and
10150         `old_length' fields to bfd_size_type.  Eliminate use of bfd_offset.
10151         * ldlang.c, mri.c:  Corresponding changes, plus lint.
10152
10153 Thu Apr  8 22:08:18 1993  Ian Lance Taylor  (ian@cygnus.com)
10154
10155         * configure.in: For all i386 targets, accept i486 as well.
10156
10157 Mon Apr  5 17:33:39 1993  Ian Lance Taylor  (ian@cygnus.com)
10158
10159         * ldlang.c (wild_doit): Preserve all flags for a
10160         SEC_SHARED_LIBRARY section.
10161         (size_input_section): Consider any SEC_HAS_CONTENTS section when
10162         computing largest_section.
10163
10164 Fri Apr  2 14:33:52 1993  Ian Lance Taylor  (ian@cygnus.com)
10165
10166         * ldlang.c (lang_output_section_statement_lookup): Initialize all
10167         fields of newly created structure.
10168
10169 Wed Mar 31 18:19:15 1993  Ian Lance Taylor  (ian@cygnus.com)
10170
10171         * ldmain.c (g_switch_value): New variable.
10172         * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
10173         (command_line_option): Accept -G and set g_switch_value.
10174         * ldlex.l (COMMAND): Accept -G.
10175         * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
10176
10177 Tue Mar 30 09:40:25 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
10178
10179         Support for linking and loading at different places:
10180
10181         * ldlex.l: Add "AT" keyword.
10182         * ldgram.y: Cleanup, and parse AT.
10183         * ldlang.c (print_output_section_statement): Print output address
10184         of section in map. (lang_size_sections): Fill sections' lma with
10185         load address.
10186         * ldlang.h (lang_output_section_statement_type): Add load_base
10187         information.
10188
10189         * ldindr.c (add_indirect): Keep more information in the alias
10190         symbol chain.
10191         * ldlang.c (wild_doit):  Don't inherit NEVER_LOAD section
10192         attribute from an input section.
10193         * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
10194         default. (Q_enter_file_symbos): Indirect symbols now are known by
10195         their section, not a special symbol flag.
10196         * ldsym.c (write_file_locals): Indirect symbols aren't local.
10197         (write_file_globals): Write the mapping for an indirect symbol.
10198         * relax.c (build_it): When forced to write a NEVER_LOAD section,
10199         fill it with zeros.
10200
10201 Tue Mar 23 13:24:10 1993  Jeffrey Osier  (jeffrey@fowanton.cygnus.com)
10202
10203         * ld.texinfo:  changes for q1
10204
10205 Tue Mar 23 00:13:29 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10206
10207         * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
10208
10209 Mon Mar  8 20:30:35 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10210
10211         * Makefile.in: rename HOST_CC to CC_FOR_BUILD
10212
10213 Thu Mar  4 12:44:33 1993  Ian Lance Taylor  (ian@cygnus.com)
10214
10215         * mips.sc-sh: Added variables which may be overridden by a
10216         specific emulation.
10217         * mipsidt.sh: New file; emulation for IDT MIPS board.
10218         * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
10219         (em_mipsidt.c): New target.  Uses mipsidt.sh and mips.sc-sh.
10220         * config/mips-idt.mt: New file; sets EMUL to mipsidt.
10221         * configure.in (mips-idt-ecoff): New target; uses mips-idt.
10222
10223 Sat Feb 27 00:00:14 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
10224
10225         * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
10226         ralphc@pyramid.com.
10227         * i386bsd.sh, config/i386bsd.mt: New files.
10228         * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
10229
10230 Thu Feb 25 15:33:10 1993  Per Bothner  (bothner@rtl.cygnus.com)
10231
10232         * mri.c:  Add extern declaration of strdup.
10233         * ldsym.c (KEEP macro):  Add spaces around '=' for the
10234         sake of old (e.g. PCC) compilers.
10235
10236 Wed Feb 24 19:49:31 1993  Per Bothner  (bothner@rtl.cygnus.com)
10237
10238         * ldver.c:  Bump to version 2.1.
10239
10240 Fri Feb 12 08:09:11 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
10241
10242         * ldgram.y: allow section types without address  expressions.
10243         * ldlang.c (lang_relocate_globals): avoid possible hang with
10244         undefined but unreferenced symbols.
10245         * relax.c (relax_section): don't complain if the script file isn't
10246         relaxable but -relax is set
10247
10248 Thu Feb 18 17:58:45 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10249
10250         * configure.in: go32 is the 3rd part of the triple, not the 2nd
10251
10252 Wed Feb  3 09:05:56 1993  Ian Lance Taylor  (ian@cygnus.com)
10253
10254         * mipsbig.sh: New file.  Big endian MIPS emulation.
10255         * config/mips-big.mt: New file.  Use mipsbig emulation.
10256         * configure.in (mips-sgi-irix*): Use target mips-big.
10257         * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
10258         (em_mipsbig.c): New target.  Uses mipsbig.sh.
10259
10260 Tue Feb  2 11:32:27 1993  Ian Lance Taylor  (ian@cygnus.com)
10261
10262         * mips.sc-sh: Put .scommon sections into .sbss section.
10263
10264         * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
10265         rather than always putting them in bfd_com_section.
10266         * ldlang.c (lang_common): If a common symbol is not in
10267         bfd_com_section, put in a section of the same name, rather than
10268         always putting it in section COMMON.
10269
10270 Fri Jan 29 09:57:58 1993  Ian Lance Taylor  (ian@cygnus.com)
10271
10272         * ldmain.c (subfile_wanted_p): If we already have a common
10273         definition of a symbol, don't necessarily pull in an object file
10274         that provides a non-common definition.
10275
10276         * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
10277         returning OPTION_EB and OPTION_EL.  gcc passes these to a MIPS
10278         linker.
10279         * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
10280         (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
10281
10282 Thu Jan 28 15:12:04 1993  Ian Lance Taylor  (ian@cygnus.com)
10283
10284         * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
10285         the link to it.
10286
10287 Tue Jan 26 11:49:50 1993  Ian Lance Taylor  (ian@cygnus.com)
10288
10289         * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
10290         checking for equality to bfd_com_section.
10291
10292 Fri Jan 22 14:22:44 1993  Ian Lance Taylor  (ian@cygnus.com)
10293
10294         * mips.sc-sh: New file.  Ultrix, and hopefully other MIPS ECOFF
10295         targets, linker script.
10296         * mipslit.sh: New file.  Little endian MIPS emulation.
10297         * config/mips-lit.mt: New file.  Use mipslit emulation.
10298         * configure.in (mips-dec-ultrix*): Use target mips-lit.
10299         * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
10300         (em_mipslit.c): New target.  Uses mipslit.sh.
10301
10302 Thu Jan 14 15:30:27 1993  Ian Lance Taylor  (ian@cygnus.com)
10303
10304         * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
10305         $(tooldir)/bin/gld, so that gcc can find it with or without
10306         collect2.
10307
10308 Mon Jan 11 18:50:07 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
10309
10310         * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
10311         write_norel.  All linking is now done via write_relax.  Call
10312         ldsym_write before calling write_relax.
10313         * relax.c: Added copyright.
10314         (write_relax): Renamed from write_relaxnorel.  Added relocateable
10315         argument.  seclet_dump renamed to bfd_seclet_link.
10316         * relax.h: Added copyright.
10317
10318 Mon Jan 11 15:41:56 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
10319
10320         * ldmain.c (decode_library_subfile): Patch from
10321         hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
10322
10323 Fri Jan  8 18:04:33 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10324
10325         * config/vxworks960.mt renamed to config/i960.mt
10326
10327         * configure.in: sparc-aout emulates a sun4, as does
10328         sparc*-vxworks, i960-nindy uses gld960 emulation
10329
10330 Fri Jan  8 14:39:07 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
10331
10332          Fix support for NOLOAD, add INCLUDE
10333         * ldfile.c (ldfile_open_command_file): pass file name to
10334         lex_push_file.
10335         * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
10336         * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
10337         attribute.
10338
10339 Thu Jan  7 10:22:19 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10340
10341         * Makefile.in, config.h: no more default emulation.  Make the lack
10342         of emulation a compile time error
10343
10344 Wed Jan  6 01:08:37 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10345
10346         * configure.in: recognise all sparclite variants, not just 'sparclite'
10347
10348 Mon Dec 28 11:15:35 1992  Ian Lance Taylor  (ian@cygnus.com)
10349
10350         * m68kcoff.sc-sh: define _end as well as end, for consistency with
10351         aout.sc-sh.
10352
10353         * configure.in: accept *-ericsson-ose for any m68k CPU.
10354
10355         * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
10356         for each output section.
10357
10358 Mon Dec 21 16:06:59 1992  Per Bothner  (bothner@rtl.cygnus.com)
10359
10360         * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c:  Use new
10361         macro bfd_asymbol_bfd as appropriate.
10362         * Makefile.in:  Un-duplicate ldlex.c dependency.
10363         * condigure.in:  Replace my_host case table by sourcing
10364         ../bfd/configure.host.  Allow std-host as the default.
10365         * ldmisc.c:  Change logic for C++ name demangling:  There is
10366         no initial '_' to remove from stab-derived function names.
10367
10368 Sun Dec 13 16:31:26 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10369
10370         * ldlang.c (lang_init_script_file): don't attach the output file
10371         sections to the script file.
10372
10373 Wed Dec  9 08:38:05 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10374         * ldlang.c (wild): run expansion loop over command line bfd too.
10375         (lang_ini_script_file): initialize more parts of the command line
10376         bfd.
10377         * ldlex.l: fix DEFINED start states.
10378
10379 Mon Dec  7 08:43:41 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10380          -y support
10381         * ld.texinfo: new doc.
10382         * ldgram.y, ldlex.l: understand -y<symbol>
10383         * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
10384         print info. (add_ysym): new function.
10385         * ldsym.h: (ldsym_type): new define SYM_Y.
10386
10387 Sat Nov 21 03:15:27 1992  John Gilmore  (gnu@cygnus.com)
10388
10389         * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
10390         ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
10391         ldwrite.h, relax.h:  Replace all uses of EXFUN and PROTO ansi-glue
10392         macros with PARAMS.  Recreational cleanup.  Update copyrights.
10393
10394 Tue Nov 10 00:23:37 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10395
10396         * Makefile.in: pass down the bfd source directory for includes
10397
10398 Thu Nov  5 15:41:55 1992  Ian Lance Taylor  (ian@cygnus.com)
10399
10400         * ldlang.c (lang_size_sections): don't change size and address for
10401         SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
10402         sections.
10403
10404 Thu Nov  5 11:33:57 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10405
10406         * relax.c (build_it): re-enable the processing of data_statements
10407         in scripts, makes counted contructor lists work again.
10408
10409 Thu Nov  5 05:43:01 1992  John Gilmore  (gnu@cygnus.com)
10410
10411         * ldemul.h:  Remove uses of SDEF and PROTO macros (use PARAMS).
10412
10413 Tue Oct 20 10:56:06 1992  Ian Lance Taylor  (ian@cygnus.com)
10414
10415         * m68kcoff.sc-sh: don't use initial underscores for etext, edata
10416         and end.
10417
10418 Mon Oct 19 09:45:38 1992  Ian Lance Taylor  (ian@cygnus.com)
10419
10420         * Support for i386-sysv.
10421         configure.in: check for i386-*-sysv* and i386-*-sco*.
10422         i386coff.sc-sh: rewrote to support SVR3 by default.
10423         ldctor.c (find_constructors): preserve stat_ptr.
10424         ldlang.c (wild_doit): initialize vma and size of new output
10425         section to corresponding input section.  This is required for
10426         shared library support.
10427         (lang_size_sections): don't modify vma and size of sections which
10428         are never loaded (for shared libraries).
10429         ldwrite.c (copy_and_relocate): copy the contents of any section
10430         which has contents, not just sections which are loaded (for shared
10431         libraries).
10432
10433 Thu Oct 15 15:20:26 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10434
10435         * ldlang.c (size_input_section): count the sizes of all sections
10436         we allocate.
10437
10438 Thu Oct  8 09:05:25 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10439
10440         * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
10441         to demangle symbols better
10442
10443 Tue Oct  6 13:08:54 1992  Ian Lance Taylor  (ian@cygnus.com)
10444
10445         * ldlang.c (lang_finish): don't warn if -e start symbol does not
10446         exist when linking with -r.
10447
10448 Mon Oct  5 14:07:37 1992  Ian Lance Taylor  (ian@cygnus.com)
10449
10450         * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
10451         .bss segment.
10452
10453 Mon Oct  5 08:55:14 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10454
10455         * ldmain.c (linear_library): don't even think about processing
10456         an object file if it's already been done
10457
10458 Thu Oct  1 23:14:59 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10459
10460         * configure.in: the hp9000/300 config file is now hp300
10461
10462 Wed Sep 30 07:34:09 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10463
10464         * config/z8ksim.mt: new file
10465
10466 Fri Sep 25 13:49:52 1992  Ken Raeburn  (raeburn@kyriath.cygnus.com)
10467
10468         * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
10469         lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
10470
10471         * ld.h (strip_symbols_type): Add value STRIP_SOME.
10472         * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
10473         * ldlang.c (lang_add_keepsyms_file): New function.
10474         * ldlex.l: Handle "-retain-symbols-file".
10475         * ldsym.c (keepsyms_file, kept_syms): New vars.
10476         (process_keepsyms): New functihon; reads file, marks symbols for
10477         saving.
10478         (write_file_locals): File symbols should always be kept.
10479         (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
10480         and "-s".  Process retain-symbols file before setting symtab.
10481         * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
10482         (keepsyms_file, kept_syms): Declare them.
10483
10484         * ldmain.c (main): Non-fatal errors should still cause non-zero
10485         exit status even with -r.
10486
10487 Fri Sep 25 11:08:01 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10488
10489         Added initial support for the z8k
10490         * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
10491         * configure.in, Makefile.in: modified to reflect above
10492
10493         * ldlang.c (lang_check): when linking conflicting architectures,
10494         make the output file reflect at least one of the bad inputs.
10495
10496 Tue Sep 15 15:35:38 1992  Ian Lance Taylor  (ian@cygnus.com)
10497
10498         * Makefile.in (install): if $(tooldir) exists, install ld in
10499         $(tooldir)/bin.
10500
10501 Fri Sep 11 10:24:22 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10502
10503         * Makefile.in, configure.in: modified to support i386-coff
10504         * i386coff.sh: new file
10505
10506 Wed Sep  9 11:52:58 1992  Ian Lance Taylor  (ian@cygnus.com)
10507
10508         * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
10509         added m68k-coff emulation mode, stolen from a29k emulation.
10510         Almost certainly wrong, but perhaps better than sun3.
10511
10512 Thu Sep  3 14:19:30 1992  Per Bothner  (bothner@rtl.cygnus.com)
10513
10514         * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
10515         gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
10516         vanilla.em:  Rename all (generated) ld__*.c files to em_.c.
10517         This is one character shorter, and lets people build on
10518         SVR3 system. (ld__h8300xray.[co] was the killer there;
10519         h8300xray.sc-sh is also overlong, but seems harmless.)
10520         Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
10521         * Makefile.in (clean):  Fix typo mostclean -> mostlyclean.
10522         * configure.in:  Add host isc.
10523
10524         * ldver.c:  Call it version 2.0.
10525
10526 Wed Sep  2 00:21:33 1992  Per Bothner  (bothner@rtl.cygnus.com)
10527
10528         * ldver.c:  Bump to version 0.98.
10529         * TODO:  New file.
10530
10531         * Makefile.in:  Added mostlyclean, distclean, realclean rules.
10532
10533 Tue Sep  1 23:42:16 1992  Per Bothner  (bothner@rtl.cygnus.com)
10534
10535         * ldmisc.c (xrealloc):  New (needed by ../libiberty/cplus.dem.c).
10536         * ldlex.l: Moved comment() to end, since some compilers
10537         otherwise have problems with input() used before it is defined.
10538
10539 Tue Sep  1 17:45:51 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10540
10541         * configure.in: added Solaris 2 and Irix 4 host support.
10542
10543 Mon Aug 31 19:27:11 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10544
10545         * Makefile.in: remove -S flag from the FLEX definition
10546
10547         * configure.in: rewrote, using new style case statement.  use
10548         m68k.mt for m68k-aout systems
10549
10550 Sun Aug 30 21:38:53 1992  Ian Lance Taylor  (ian@cygnus.com)
10551
10552         * Makefile.in: map "ld" through program_transform_name when
10553         installing.
10554
10555 Sun Aug 30 18:12:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
10556
10557         * cplus-dem.c:  Removed.  Use the version in libiberty now.
10558         * ldmisc.c:  Use new libiberty version of cplus_demangle().
10559
10560 Thu Aug 27 16:38:42 1992  Ian Lance Taylor  (ian@cygnus.com)
10561
10562         * gld960.em (gld960_choose_target): default to little endian, not
10563         big endian.
10564
10565 Wed Aug 26 17:28:51 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10566
10567         * ldlang.c (lang_process): don't pass null pointers when
10568         abs_output_section is what is required.
10569         * ldwrite.c (ldwrite): use malloc to allocate the largest space
10570         used, and pass that down.
10571         * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
10572         than alloca.
10573
10574 Mon Aug 24 14:42:06 1992  Ian Lance Taylor  (ian@cygnus.com)
10575
10576         * configure.in, config/ose68.mt: renamed OSE to ose.
10577
10578 Thu Aug 20 19:55:22 1992  Ken Raeburn  (raeburn@cygnus.com)
10579
10580         * ldsym.c (write_file_locals): Reorder check for common or
10581         undefined symbols so that it works.
10582
10583 Tue Aug 18 13:41:36 1992  Ian Lance Taylor  (ian@cygnus.com)
10584
10585         * configure.in: accept all m68K family members.
10586
10587         * Makefile.in: always create installation directories.
10588
10589 Thu Aug 13 11:49:34 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10590
10591         * ldlex.l: now parses comment correctly, added ~ to acceptable
10592         chars in filenames
10593
10594         * ldexp.c (exp_unop): pass down abs_output_section - now can have
10595         unary -ve constants.
10596
10597         * ldlang.c (lang_finish): warn when an entry symbol supplied on
10598         the command line can't be found.
10599
10600 Fri Aug  7 12:31:10 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10601
10602         * ldlang.h: add new field "loadable" to output_section_statement.
10603         * ldlang.c (lang_output_section_statement_lookup): initilize new
10604         field. (wild_doit): if new field is not set, then stop output
10605         section from being loadable.
10606         (lang_enter_output_section_statement): set the field from the
10607         NOLOAD keyword
10608         * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
10609         * h8300hms.sc-sh, h8300hms.em: get -r right.
10610
10611 Thu Aug  6 18:35:21 1992  Per Bothner  (bothner@rtl.cygnus.com)
10612
10613         * ldint.texinfo:  New internals manual (beginnings thereof).
10614         * PORTING:  Removed, merged into ldint.texinfo.
10615
10616 Tue Aug  4 21:12:29 1992  Per Bothner  (bothner@rtl.cygnus.com)
10617
10618         * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
10619         cdtest.exp:  A test program (copied from libg++/test-install)
10620         that tests that constructor and destructors are handled
10621         corrrectly.
10622
10623 Mon Aug  3 14:58:19 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10624
10625         * Makefile.in (install): install from ld.new, renaming during the
10626         copy, or else the next 'make install' needs to re-link ld.
10627
10628 Mon Jul 20 03:37:06 1992  D. V. Henkel-Wallace  (gumby@cygnus.com)
10629
10630         * configure.in: generalise hp recognition (from sef).
10631
10632 Sat Jul 18 14:46:04 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10633
10634         * configure.in: recognize bsd and hpux hppa configurations.
10635         error messages echo to stderr, not stdout
10636
10637 Fri Jul 17 22:06:11 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
10638
10639         * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
10640           ldmisc.c: removed rcsid's.
10641
10642 Tue Jul 14 08:34:34 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10643
10644         * ldlang.c (lang_map): print changes in sizes due to relaxing
10645         (size_input_section): maintain the delta information.
10646         * ldlang.h: add new field to struct to contain delta info.
10647         * relax.c  (relax_section): complain if input not relaxable.
10648         * ldlex.l : add '_', ',' and '$' to chars which can appear at the
10649         start of a filename
10650
10651 Mon Jul 13 17:33:00 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10652
10653         * ldmain.c(main): prevent -r and -relax from being on at the same
10654         time.
10655
10656 Wed Jul  1 17:51:19 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10657
10658         * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
10659         aliasing problems
10660
10661
10662 Thu Jun 18 09:38:56 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10663
10664         * h8300hms.em, h8300hms.sc-sh:  do the right thing for -r
10665         * ldexp.c:  lint
10666         * ldlang.c(open_output): set the target arch and machine as soon
10667         as we can. (lang_size_sections): use new macros for setting vma
10668         * ldwrite.c: lint
10669
10670 Mon Jun 15 08:47:43 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
10671
10672         * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
10673         Also deleted an unreachable path to wrs.
10674
10675 Wed May 27 23:24:19 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
10676
10677         * Makefile.in (install): use -d test for $tooldir before
10678         installing ld there so that $tooldir can be inherited from
10679         top-level Makefile.
10680
10681 Wed May 27 16:56:48 1992  Per Bothner  (bothner@rtl.cygnus.com)
10682
10683         * ldlang.c:  Two non-substantial changes for the sake of
10684         the old Portable C Compiler.
10685
10686 Wed May 27 15:15:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10687
10688         * ldgram.y, ldlex.l: parse ABSOLUTE
10689         * ldexp.c: add support for ABSOLUTE
10690
10691 Wed May 27 13:07:20 1992  Per Bothner  (bothner@rtl.cygnus.com)
10692
10693         * Makefile.in:  Added default definitions for HOSTING_CRT0,
10694         HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
10695         * config/*.mh:  Miscellaneous clean-up:  Removed definitions
10696         of YACC (since it is not longer used in the Makefile).
10697         Remove HOSTING_* definitions that are subsumed by the
10698         ones added to Makefile.in.  Removed most definitions of CC.
10699         * config/{sparc,news,hp300bsd,decstation}.mh:  Removed;
10700         These are no longer needed.
10701
10702 Fri May 22 13:47:19 1992  Per Bothner  (bothner@cygnus.com)
10703
10704         * Makefile.in:  Use srcdir instead of VPATH in ldgram/ldlex
10705         rules, since these are used when building a distribution.
10706         * Makefile.in (ldlex.c):  Don't re-direct output, since that
10707         leaves a bogus output files if it fails.
10708
10709         * config/sparc.mh:  Fix HOSTING_LIBS so it has a chance of working.
10710         * ldlex.c:  Fix some unnecessary flex-specific-isms.
10711
10712 Fri May  8 11:49:43 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10713
10714         * ldgram.y: move spurious semicolon
10715         * ldexp.h: fix prototype
10716
10717 Thu May  7 17:01:12 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10718
10719         * ld.texinfo: references to linker now say "ld" not "gld".
10720
10721 Wed May  6 13:26:19 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10722
10723         changed calling convention for Q_enter_global_ref
10724         * ldexp.c, ldlang.c, ldmain.c: reflect this
10725         * ldver.c: bump version to 1.97.1
10726         * ldindr.c (add_indirect): when an edict declaring an indirect
10727         symbol is found, make sure that any ideas about the symbol being
10728         common are changed if it now known to be defined.
10729         * ldmain.c (linear_library): complain once if archive isn't
10730         ranlibbed.
10731         * ldlang.h, ldlang.c: make room for and initialize the complain
10732         once field.
10733
10734 Wed May  6 11:07:35 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
10735
10736         * Makefile.in: use flex & bison from ../ if they exist.
10737
10738 Tue May  5 17:47:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10739
10740         * relax.c (build_it): don't allocate space in the output file for
10741         stuff if -R flag applys to it.
10742         * ldfile.c: merge in VMS filename support
10743         * ldmain.c (main): take out ./ from library path, and close file
10744         before unlinking. Make multiple defs of a symbol create an
10745         unexecable file.
10746         * ldmisc.c: fatal errosrs delete output file
10747
10748 Tue May  5 14:05:05 1992  Per Bothner  (bothner@rtl.cygnus.com)
10749
10750         * ldver.c:  Increase version number to 1.97, for consistency
10751         with ../binutils.
10752
10753 Tue May  5 12:12:24 1992  K. Richard Pixley  (rich@cygnus.com)
10754
10755         * Makefile.in: FLEX -> LEX.
10756
10757         * ld.texinfo: {} -> @{@}.
10758
10759 Mon May  4 17:52:41 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10760
10761         * ld.texinfo: describe alternate, MRI-compatible linker scripts
10762         (and associated change in -c option, now used for these scripts)
10763
10764 Mon May  4 16:10:10 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10765
10766         * ldver.c: Bumped version to 1.96 - new release, resync with the
10767         bfd too #.
10768         * ldexp.c, ldlang.c: now build memory shape tree in obstacks
10769         rather than with raw malloc, makes it easier to track where memory
10770         is going.
10771         * ldsym.h, ldsym.c: create obstack for all global symbols too.
10772         * ldwrite.c (ldwrite): moved malloc so only used when needed.
10773         * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
10774
10775
10776 Fri May  1 18:17:52 1992  K. Richard Pixley  (rich@cygnus.com)
10777
10778         * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
10779
10780         * Makefile.in: use bootstrap for check.
10781
10782 Fri May  1 13:03:41 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10783
10784         * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
10785         PUBLIC.
10786         * Makefile.in: now use flex, not lex
10787         * ldlex.l, ldlang.c, ldctor.c: lint
10788
10789 Wed Apr 22 12:48:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10790
10791         * ldlex.l: added CMDFILENAMECHAR state so that you can lex
10792         different sorts of filenames on the command line than in a script.
10793
10794 Mon Apr 20 22:37:04 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
10795
10796         * Makefile.in: rework CFLAGS so that they can be passed on the
10797           make command line.  Remove MINUS_G.  Default CFLAGS to -g.
10798
10799 Fri Apr 17 08:57:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10800
10801         * relax.c: added handling for new "padding" seclet type, used to
10802         fill out gaps between section.
10803         * ldgram.y, ldlex.l: now -defsym on the command line is done
10804         properly.
10805
10806 Wed Apr 15 21:20:07 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
10807
10808         * Makefile.in: the tooldir copy of ld goes directly in tooldir.
10809
10810 Wed Apr 15 16:09:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10811
10812         * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
10813         scripts.
10814
10815 Thu Apr  9 05:52:02 1992  Ken Raeburn  (Raeburn@Cygnus.COM)
10816
10817         * Makefile.in (install): Install second copy in $(tooldir)/bin
10818         without $(program_prefix), since that's what gcc expects.
10819
10820 Sat Apr  4 17:44:06 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10821
10822         * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
10823         * h8300*: fix bit rot and add support for h8300xray target
10824         * go32.sh: target emulation for go32.
10825
10826 Mon Mar 16 14:53:29 1992  Steve Chamberlain  (sac@rtl.cygnus.com)
10827
10828         * gld960.em, i960.sc-sh. Fix i960 bit rot
10829
10830 Fri Mar 13 19:47:22 1992  K. Richard Pixley  (rich@cygnus.com)
10831
10832         * Makefile.in: install man page.
10833
10834 Fri Mar 13 08:23:59 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10835
10836         * config/mt-<foo> renamed to <foo>.mt
10837         * config/mh-<foo> renamed to <foo>.mt
10838         * configure.in changed to reflect this
10839         * genscripts.sh now make .xbn files rather than .xN files
10840
10841 Sat Mar  7 03:40:40 1992  K. Richard Pixley  (rich@cygnus.com)
10842
10843         * ldver.h: fix decl of ldversion.
10844
10845 Fri Mar  6 22:00:35 1992  K. Richard Pixley  (rich@cygnus.com)
10846
10847         * Makefile.in: added check target.
10848
10849 Fri Mar  6 06:59:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10850
10851         * ldmain.c (Q_enter_file_symbols): now aliases work again
10852
10853 Thu Mar  5 21:39:29 1992  K. Richard Pixley  (rich@cygnus.com)
10854
10855         * Makefile.in: added clean-info target.
10856
10857 Thu Mar  5 16:55:56 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10858
10859         * ldexp.c (exp_print_tree): don't try and follow null pointers
10860         around.
10861         * ldgram.y: remove 11 shift reduce errors
10862
10863 Tue Mar  3 15:46:39 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
10864
10865         * Makefile.in: added tooldir and program_prefix.
10866
10867 Fri Feb 28 08:17:45 1992  Steve Chamberlain  (sac at thepub.cygnus.com)
10868
10869         * ldlang.c (size_input_section): don't move absolute sections
10870         around!
10871
10872
10873 Thu Feb 27 09:20:41 1992  Steve Chamberlain  (sac at thepub.cygnus.com)
10874
10875         * cplus-dem.c: yet another copy of this - maybe it should go into
10876         libiberty ?
10877         * ldgram.y: now -V and -v have different actions
10878         * ldver.c: if -V, prints list of emulations compiled in
10879         * ldmisc.c: support for cplus demangling
10880
10881
10882 Wed Feb 26 18:04:40 1992  K. Richard Pixley  (rich@cygnus.com)
10883
10884         * Makefile.in, configure.in: removed traces of namesubdir,
10885           -subdirs, $(subdir), $(unsubdir), some rcs triggers.  Forced
10886           copyrights to '92, changed some from Cygnus to FSF.
10887
10888 Thu Feb 20 17:43:46 1992  Per Bothner  (bothner at cygnus.com)
10889
10890         * Makefile.in:  Change mkscript rule into one for ./mkscript
10891         (for the sake of makes that don't realize they're the same).
10892         * PORTING:  Add more details.
10893         * genscripts.sh:  Add more tailorability of DATA_ALIGNMENT.
10894
10895 Mon Feb 17 12:04:36 1992  Per Bothner  (bothner at cygnus.com)
10896
10897         * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
10898         config/mt-hp300bsd:  New port to hp300 running BSD.
10899
10900 Sat Feb 15 13:59:54 1992  Per Bothner  (bothner at cygnus.com)
10901
10902         Major rewrite of how ld is configured.  The major idea
10903         is to use shell scripts to generate everything.
10904         * generic.em replaces ldtemplate.
10905         * Other *.em files replace various *.c files.
10906         A *.em file is a shell script that generates the corresponding
10907         ld__*.c file that implements an emulation.  This is usually
10908         a straight 'cat' of a here-document, possibly with substitutions.
10909         * Script files (*.sc) are places by *.sc-sh scripts.
10910         Again, these are simple shell scripts that 'cat'
10911         here-documents, usually with some substitutions.
10912         The output a *.sc-sh is a script file.
10913         * Each emulation is defined by a short shell script with
10914         extension *.sh that specifies the emulation-specific
10915         parameters (such as the name of the *.sh-sc and *.em
10916         files to use).
10917         * genscript.sh is the master shell script used to generate
10918         an emulation.  It is passed various argument, including
10919         the name a the emulation-speciic *.sh file that it
10920         "sources" to set variables to emulation-specifc parameters.
10921         * config/mt-foo:  Changed EMUL=GLDFOO_EMULATION_NAME
10922         to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
10923         * config/mh-foo:  Rename LDEMULATION names as appropriate
10924         (usually 'gldfoo' -> plain 'foo').
10925         * ldwrite.c:  Fixed a typo in a comment.
10926         * Makefile.in:  Major changes.  Removed some the sed
10927         magic to converts scripts, since that is now handled
10928         by genscripts.sh and the *.sc-sh scipt generators.
10929         * config.h:  Remove a bunch of macros defining emulations
10930         and targets.  This becomes one less file to edit when
10931         adding emulations or targets.
10932         * ldemul.h (struct ld_emulation_xfer_struct):  Add
10933         emulation_name and target_name fields.
10934         * ldemul.c, ldemul.h:  Define some default functions used
10935         by most emulations (and remove from the *.em scripts).
10936         * ldemul.c (ldemul_choose_target):  Search the new
10937         ld_emulations array using a loop (instead of a hardwired
10938         nested if statement).
10939         Define the ld_emulation from the automatically-geenrated
10940         ldemul-list.h.  This means you no longer have to edit ldemul.c
10941         to add a new emulation.
10942         * ldmain.c:  Replace {GLD,LNK}960_EMULATION_NAME by
10943         their expansions, since the former no longer exist.
10944         * PORTING:  A very rough first draft of a porting guide.
10945
10946         * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
10947         to be terminated by a new-line (instead of requiring a semicolon).
10948
10949 Mon Feb 10 16:21:02 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
10950
10951         * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
10952         tests for NULL pointers all over the place.
10953         * ldlang.c (lang_process): remember to relocate global symbols
10954         *after* relaxing has done it stuff.
10955
10956 Thu Feb  6 11:40:15 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
10957
10958         * config/mt-coff-h8300: use EMUL like everything else
10959         * ldlang.c: (print_padding_statement): print the right address.
10960         * Makefile.in, config.h, ldemul.c: renamed  h8300hds to h8300hms
10961
10962
10963 Tue Feb  4 15:28:01 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
10964
10965         * ldlex.l: Put pack -noinhibit-exec and -sort-common
10966         * ldlang.c (print_data_statement): print the right address.
10967
10968 Thu Jan 30 17:51:53 1992  Per Bothner  (bothner at cygnus.com)
10969
10970         * Makefile.in:  The rule for testing ld by re-linking itself
10971         via an intermediate -r link was moved to the ld1 rule
10972         instead of the ld2 rule.  This allows ld2 and ld3 to be identical,
10973         which allows the bootstrap rule to work.
10974         * ldctor.c (find_constructors):  Don't create a constructor
10975         list if it is already defined (as would happen if ld is
10976         invoked by collect).
10977
10978 Wed Jan 29 08:35:39 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
10979
10980         * config/mh-sparc.h: now uses libgcc.a
10981         * ldmain.c: quit using exit
10982         * *sc: use *(COMMON) rather than [COMMON]
10983         * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
10984         to allow preprocessing of .l file.
10985         * Makefile.in: New ldlex.l mangling
10986         * ldexp.c (fold_binary): perform expressions with % and / in
10987         integer.
10988         * ldfile.c (open_a): open archives on VMS in a special way
10989
10990
10991 Tue Jan 28 10:18:16 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
10992
10993         * ldgram.y: map -M behave in the same way as -Map (sets file name
10994         to be "-".
10995         * ldsym.c, ldlang.c: remember that size of a section is dependent on
10996         whether or not relaxing has been done.
10997         * ldmain.c: don't open a map file if it doesn't have a name
10998         * relax.c: all the brains have moved into bfd.
10999         * ldwrite.c: ammend comment
11000
11001 Fri Jan 24 14:23:46 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
11002
11003         * Makefile.in: added relax, also made three stage go through a
11004         partial link stage.
11005         * relax.c : added
11006         * config.h: if GNU960 defined, then default emulation mode is
11007         GLD960
11008         * ldexp.h, ldexp.c: map to file hooks
11009         * ldlang.c: map to file hooks
11010         * ldgram.y: added -Map -relax
11011         * ldlex.l: added -relax, -Map
11012         * ldmain.c: open map file
11013         * ldmisc.c: support for map file
11014         * ldwrite.c: new relax magic
11015
11016 Thu Dec 19 18:49:51 1991  John Gilmore  (gnu at cygnus.com)
11017
11018         * Makefile.in, config/tm-*.h:  Clean up make output, only
11019         pass DEFAULT_EMULATION to ldmain.c.
11020
11021 Wed Dec 18 15:02:47 1991  Per Bothner  (bothner at cygnus.com)
11022
11023         * ldver.c:  Bump to version 1.94.
11024
11025 Tue Dec 10 04:07:23 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
11026
11027         * Makefile.in: infodir belongs in datadir.
11028
11029 Mon Dec  9 16:26:43 1991  Per Bothner  (bothner at cygnus.com)
11030
11031         * Makefile.in:  Pass -y to bison.  (Again;
11032         accidentally deleted by Rich.)
11033         * news.sc, ldgld68k.sc:  Define __end as well as _end.
11034
11035 Sat Dec  7 17:19:26 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
11036
11037         * ldindr.h: added to contain prototypes of ldindr.c
11038         * ldfile.c: include ctype.h
11039         * ldmain.c: include the requried prototype headers
11040         * ldwrite.c: get_reloc_upper_bound has been renamed
11041         bfd_get_reloc_upper_bound
11042
11043 Fri Dec  6 23:29:26 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
11044
11045         * Makefile.in: punt "fundamental" mode because it breaks my emacs
11046           macros.  install using INSTALL_PROGRAM and INSTALL_DATA.  remove
11047           spaces following hyphens, bsd make can't cope.  added
11048           standards.text support and made it look like all the other
11049           makefiles.
11050
11051         * configure.in: configure now runs entirely in objdir so make file
11052           existence checks against ${srcdir}.  Mark this directory as
11053           target dependent.
11054
11055 Thu Dec  5 22:46:16 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
11056
11057         * Makefile.in: idestdir and ddestdir go away.  Added copyrights
11058           and shift gpl to v2.  Added ChangeLog if it didn't exist. docdir
11059           and mandir now keyed off datadir by default.
11060
11061 Wed Dec  4 23:36:55 1991  Per Bothner  (bothner at cygnus.com)
11062
11063         * ldver.c:  Bumped version to 1.93.
11064         * Makefile.in:  Pass -y to bison.
11065
11066 Mon Nov 25 18:28:40 1991  Steve Chamberlain  (sac at cygnus.com)
11067
11068         * config.h: h8 is now coff, not ieee
11069         * h8300hds.sc: reflect the same
11070
11071 Thu Nov 14 19:55:09 1991  Per Bothner  (bothner at cygnus.com)
11072
11073         * ldver.c (ldversion()):  Update to 1.92.
11074         * ldctor.c: There are two places constructor sets
11075         can be defined.  One of them checked for an existing
11076         duplicate, the other didn't.  Unfortunately, the latter
11077         was called after the former ...
11078         So, factor out code for inserting a new element into
11079         constructor_name_list (after checking for a duplicate)
11080         into a new function add_constructor_name, and call
11081         it from both aforementioned places (ldlang_add_constructor
11082         and ldlang_check_for_constructors).
11083
11084 Wed Nov 13 15:17:43 1991  Per Bothner  (bothner at cygnus.com)
11085
11086         * Makefile.in:  Rename .c files generated from ldtemplate
11087         to have names starting with ld__.  This helps 'make clean'.
11088
11089 Tue Nov 12 18:36:50 1991  Steve Chamberlain  (sac at cygnus.com)
11090
11091         * Makefile.in: Take out the version number for install
11092         * m88kbcs.sc: put in contructor blocks.
11093
11094 Mon Nov 11 18:47:33 1991  Per Bothner  (bothner at cygnus.com)
11095
11096         * ldmisc.c, ldmisc.h:  Re-write info() to take a filename
11097         parameter, a format, and an arg pointer, and rename it to
11098         vfinfo().  Write info() in terms of new vfinfo().
11099         New einfo() is the same as info(), except it writes to stderr.
11100         * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
11101         ldmisc.c:  Replace "error" calls to info() by new einfo().
11102
11103 Mon Nov 11 09:57:32 1991  Steve Chamberlain  (steve at cygnus.com)
11104
11105         * ldlex.l ldgram.y: made -V option do same as -v
11106         * Makefile.in: Added $(MINUS_G) flag so debugging can be
11107         turned off
11108
11109 Sun Nov  3 16:37:37 1991  Steve Chamberlain  (steve at cygnus.com)
11110          i386 aout changes from Bob Kukura
11111         * Makefile.in, config.h: added i386aout support
11112         * configure.in: fixed /h-{myhost} typo
11113         * ldgram.y: -MM now gives more boring map.
11114         * ldlang.c: now does D_PAGED flag the right way.
11115         * ldsym.c: -MM flags does the right thing.
11116
11117 Sun Nov  3 15:00:03 1991  Per Bothner  (bothner at cygnus.com)
11118
11119         * configure.in:  Fixed typo.  Also, a fix for hp300bsd.
11120         * ldlang.c (init_os):  Compensate for BFD change,
11121         where bfd_make_section now returns NULL for a duplicate
11122         section request, instead of the old section.
11123
11124 Thu Oct 17 15:27:13 1991  Per Bothner  (bothner at cygnus.com)
11125
11126         * ldver.c: Bump to version 1.91 (consistent with binutils).
11127
11128 Wed Oct 16 12:27:08 1991  Per Bothner  (bothner at cygnus.com)
11129
11130         * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
11131         ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
11132         ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
11133         ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
11134         Add or update copyright notices.
11135
11136 Mon Oct 14 23:55:27 1991  Per Bothner  (bothner at cygnus.com)
11137
11138         * README: New file.
11139         * Makefile.in:  Changed installation directory name scheme
11140         to be consistent with gcc.  Also changed 'install'.
11141
11142 Mon Oct 14 17:30:02 1991  Roland H. Pesch  (pesch at cygnus.com)
11143
11144         * Makefile.in: new targets ld.mm, ld.me
11145
11146 Mon Oct 14 17:27:24 1991  Per Bothner  (bothner at cygnus.com)
11147
11148         * Makefile.in, ldtemplate:  Need to use separate scripts
11149         for -n and -N options.  Yet more complication.
11150
11151 Fri Oct 11 22:40:46 1991  John Gilmore  (gnu at cygnus.com)
11152
11153         * Makefile.in:  Avoid using $< in explicit Make rules (it doesn't
11154         work).  Add some lines to avoid Sun Make VPATH bugs.
11155
11156 Fri Oct 11 16:42:22 1991  Per Bothner  (bothner at cygnus.com)
11157
11158         * news.sc: Add alignment for data segment.
11159         * ldtemplate: Add (yet another) script to get for -n or -N
11160         options.  (These need different alignment than ZMAGIC files.)
11161         * Makefile.in:  Add stuff for new foo.xn scripts.
11162         These are generated by replacing "ALIGN(0x...00)" by ".".
11163
11164 Fri Oct 11 15:43:04 1991  Roland H. Pesch  (pesch at cygnus.com)
11165
11166         * Makefile.in: new targets ld.ms, ld-index.ms
11167         ld.texinfo: remove tabs, other cleanups for texi2roff
11168
11169 Fri Oct 11 13:51:54 1991  Per Bothner  (bothner at cygnus.com)
11170
11171         * ldmain.c (main): Make config.magic_demand_paged be true
11172         by default.  Don't set the WP_TEXT and D_PAGED flags of
11173         output_bfd here; it's too late, so set it when output_bfd
11174         is created (in ldlang.c).  Also fix setting of EXEC_P flag
11175         * ldlang.c (ldlang_open_output):  Set output_bfd->flags here.
11176         * ldlang.c: Remove some duplicate extern declarations.
11177         * ldgram.y: Fixes to -N and -n options.
11178         * Makefile.in:  Recognize upper case letters in sed script
11179         to remove assignments from script files.
11180         * ldtemplate:  Don't assukme that -N or -n options
11181         imply use of -r script.
11182         * mkscript.c:  Tweaking to correctly handle \n and \\ in input.
11183
11184 Fri Oct 11 10:29:27 1991  Steve Chamberlain  (steve at cygnus.com)
11185
11186         * ldtemplate: include bfd.h before sysdep.h.
11187
11188 Fri Oct 11 04:24:45 1991  John Gilmore  (gnu at cygnus.com)
11189
11190         Restructure configuration scheme for bfd, binutils, ld.
11191
11192         * include/sys/h-*.h:  Move to bfd/hosts/h-*.h.
11193         * configure.in:  Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
11194         Change some config names to match other dirs.
11195         * *.c:  Include bfd.h before sysdep.h, so ansidecl and PROTO()
11196         get defined first.
11197         * config/:  Rename some config files to match up h-*.h names.
11198         Remove all the HOST_SYS definitions from the config files.
11199
11200 Tue Oct  8 16:00:57 1991  Per Bothner  (bothner at cygnus.com)
11201
11202         * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
11203         * ldtemplate: Remove ldfile_add_library_path calls;
11204         just use the SEARCH_DIR commands in the script files.
11205         * Makefile.in: Add LIB_PATH macro, which if set is used to replace
11206         the SEARCH_DIR commands in the scripts (using ugly sed magic).
11207         This is primarily intended for cross-linking, where you would
11208         place libaries in a different place than native libraries.
11209         Also, emulations made from ldtemplate now use $(srcdir).
11210         * ldglda29k.sc:  Change SEARCH_DIR commands to a conventional
11211         form; people can use the Makefile's LIB_PATH to override.
11212
11213 Tue Oct  8 14:51:21 1991  Roland H. Pesch  (pesch at cygnus.com)
11214
11215         * Makefile.in: fix target ld.dvi, add target ld.info
11216         ld.texinfo: make info filename ld.info
11217
11218 Fri Oct  4 21:51:58 1991  John Gilmore  (gnu at cygnus.com)
11219
11220         * Makefile.in:  Avoid using $< in non-suffix rules (breaks on Sun
11221         Make).
11222         * ldfile.c, ldlang.c, ldmain.c, ldwrite.c:  Cope with renames of a
11223         few BFD types & enums.
11224
11225 \f
11226 Local Variables:
11227 mode: change-log
11228 left-margin: 8
11229 fill-column: 74
11230 version-control: never
11231 End: