Move GNU Free Documentation License from the output into a comment
[binutils-gdb.git] / ld / ChangeLog
1 2000-11-28 Nick Clifton <nickc@redhat.com>
2
3 * ld.1 (COPYING): Mention that the GNU Free Documentation
4 License is present in the sources, but not the output, and
5 also available from the GNU website.
6 (GNU Free Documentation License): Comment out this section.
7
8 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
9
10 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
11 does not use them.
12
13 2000-11-25 David O'Brien <obrien@FreeBSD.org>
14
15 * ld.1: Remove old date so it does not give the impression the manpage
16 is way out of date.
17
18 2000-11-24 Nick Clifton <nickc@redhat.com>
19
20 * configure.tgt (xscale-coff): Add target.
21 (xscale-elf): Add target.
22
23 2000-11-24 Fred Fish <fnf@be.com>
24
25 * ldmain.c (main): Remove redundant init of config.make_executable
26 to true.
27
28 2000-11-15 Richard Henderson <rth@redhat.com>
29
30 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
31
32 2000-11-14 Kazu Hirata <kazu@hxi.com>
33
34 * scripttempl/h8300.sc: Fix formatting.
35 * scripttempl/h8300h.sc: Likewise.
36 * scripttempl/h8300s.sc: Likewise.
37
38 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
39
40 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
41
42 2000-11-09 Philip Blundell <pb@futuretv.com>
43
44 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
45 around orphan sections whose names can be represented in C.
46
47 2000-11-07 Jim Wilson <wilson@redhat.com>
48
49 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
50 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
51
52 2000-11-06 Nick Clifton <nickc@redhat.com>
53
54 * ld.texinfo: Add GNU Free Documentation License.
55 * ldint.texinfo: Add GNU Free Documentation License.
56 * ld.1: Add GNU Free Documentation License.
57
58 2000-11-05 Alan Modra <alan@linuxcare.com.au>
59
60 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
61 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
62
63 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
64 Move 2000-11-02 Makefile.in changes to this file.
65 * Makefile.in: Regenerate.
66
67 2000-11-03 Nick Clifton <nickc@redhat.com>
68
69 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
70 constructors and destructors.
71 * scripttempl/h8300h.sc: Ditto.
72 * scripttempl/h8300s.sc: Ditto.
73 * scripttempl/h8500.sc: Ditto.
74 * scripttempl/h8500b.sc: Ditto.
75 * scripttempl/h8500c.sc: Ditto.
76 * scripttempl/h8500m.sc: Ditto.
77 * scripttempl/h8500s.sc: Ditto.
78 * scripttempl/v850.sc: Ditto.
79 * scripttempl/w65.sc: Ditto.
80 * scripttempl/z8000.sc: Ditto.
81
82 2000-11-02 Per Lundberg <plundis@chaosdev.org>
83
84 * Makefile.in (e_i386_chaos.c): New rule.
85 (ALL_EMULATIONS): Added e_i386_chaos.o.
86 * emulparams/elf_i386_chaos.sh: New file.
87 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
88
89 2000-10-20 Jakub Jelinek <jakub@redhat.com>
90
91 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
92 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
93 Fix sed invocation, so that it coped with '/' in Solaris 64bit
94 library path suffix.
95 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
96
97 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
98
99 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
100 for consecutive sections.
101
102 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
103
104 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
105 options.
106 * ld.texinfo: Added notes about this new option.
107
108 2000-10-16 Nick Clifton <nickc@redhat.com>
109
110 * emultempl/pe.em (_after_open): Add tests of return values from
111 bfd functions. Emit appropriate error messages if necessary.
112
113 2000-10-13 Nick Clifton <nickc@redhat.com>
114
115 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
116 local variables - they are not used, but leave in the call to
117 bfd_canonicalize_symtab.
118 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
119 pe_dll_search_prefix.
120
121 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
122
123 * emultempl/pe.em (pe_dll_search_prefix): New variable,
124 (longopts): New --dll-search-prefix option.
125 (gld_${EMULATION_NAME}_list_options): Document.
126 (gld_${EMULATION_NAME}_parse_args): Handle.
127 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
128 dynamically, search for a dll named '<prefix><basename>.dll'
129 in preference to 'lib<basename>.dll' if --dll-search-prefix
130 is specified.
131
132 2000-10-12 Alan Modra <alan@linuxcare.com.au>
133
134 * ldlang.c (section_already_linked): Set kept_section instead of
135 sec->comdat->sec.
136
137 2000-10-10 Kazu Hirata <kazu@hxi.com>
138
139 * deffile.h: Fix formatting.
140 * lexsup.c: Likewise.
141 * mri.c: Likewise.
142
143 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
144
145 * pe-dll.c (make_one): Do not generate code thunk for DATA
146 exports.
147 (process_def_file): deduce DATA flag for auto-export sumbols.
148
149 2000-10-09 Kazu Hirata <kazu@hxi.com>
150
151 * ld.h: Fix formatting.
152 * ldcref.c: Likewise.
153 * ldctor.h: Likewise.
154 * ldemul.c: Likewise.
155 * ldemul.h: Likewise.
156 * ldexp.c: Likewise.
157 * ldexp.h: Likewise.
158 * ldfile.c: Likewise.
159 * ldfile.h: Likewise.
160 * ldlang.c: Likewise.
161 * ldlang.h: Likewise.
162 * ldmain.c: Likewise.
163 * pe-dll.c: Likewise.
164
165 * pe-dll.c: Revert some formatting fixes.
166
167 2000-10-08 Kazu Hirata <kazu@hxi.com>
168
169 * pe-dll.c: Fix formatting.
170
171 2000-10-05 Kazu Hirata <kazu@hxi.com>
172
173 * ldlang.c: Fix formatting.
174
175 2000-10-03 DJ Delorie <dj@redhat.com>
176
177 * pe-dll.c (fill_edata): initialize entire block
178 (make_one): fill in correct section.
179
180 2000-10-03 Kazu Hirata <kazu@hxi.com>
181
182 * ldexp.c: Fix formatting.
183
184 2000-10-02 DJ Delorie <dj@redhat.com>
185
186 * emultempl/pe.em (gld_*_after_open): detect case where there two
187 import libraries for same dll; rename one to ensure proper link
188 order.
189
190 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
191 typo
192 (generate_edata): fix typo
193
194 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
195
196 * scripttempl/crisaout.sc (ENTRY): Now __start.
197 (.text): Add default setting for __start.
198 Remove CONSTRUCTORS handling.
199 (/DISCARD/): Add .gnu.warning.*.
200 * emulparams/crislinux.sh (ENTRY): Now __start.
201 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
202 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
203 (ENTRY): Now __start.
204 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
205 (EXECUTABLE_SYMBOLS): Add default setting for __start.
206
207 2000-09-29 Kazu Hirata <kazu@hxi.com>
208
209 * deffile.h: Fix formatting.
210 * ld.h: Likewise.
211 * ldcref.c: Likewise.
212 * ldctor.c: Likewise.
213 * ldctor.h: Likewise.
214 * ldemul.c: Likewise.
215 * ldemul.h: Likewise.
216 * ldexp.c: Likewise.
217 * ldexp.h: Likewise.
218 * ldfile.c: Likewise.
219 * ldfile.h: Likewise.
220 * ldlang.c: Likewise.
221 * ldlang.h: Likewise.
222 * lexsup.c: Likewise.
223 * mri.c: Likewise.
224 * pe-dll.c: Likewise.
225
226 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
227
228 * pe-dll.c (process_def_file): Uninitialized data wasn't
229 exported with --export-all-symbols switch.
230
231 2000-09-28 DJ Delorie <dj@redhat.com>
232
233 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
234 noname work properly.
235
236 2000-09-28 Alan Modra <alan@linuxcare.com.au>
237
238 * ld.texinfo (HPPA ELF32): New section.
239
240 * emultempl/hppaelf.em (group_size): New.
241 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
242 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
243 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
244 options to prevent abbreviations matching.
245 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
246 (PARSE_AND_LIST_ARGS_CASES): Handle it.
247
248 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
249
250 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
251 on the m68*-*-elf target. Make it support COFF input objects.
252
253 2000-09-21 Kazu Hirata <kazu@hxi.com>
254
255 * ldmain.c: Fix formatting.
256 * ldmisc.c: Likewise.
257 * ldver.c: Likewise.
258 * ldwrite.c: Likewise.
259
260 2000-09-21 Alan Modra <alan@linuxcare.com.au>
261
262 * ldwrite.c (clone_section): Silence gcc warnings.
263
264 2000-09-20 Alan Modra <alan@linuxcare.com.au>
265
266 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
267 out of memory failure.
268
269 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
270 (clone_section): Handle out of memory failures. Rename var to
271 avoid c++ reserved word.
272
273 2000-09-18 Alan Modra <alan@linuxcare.com.au>
274
275 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
276 stub_name param to stub_sec_name.
277 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
278
279 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
280
281 * emultempl/m68kelf.em: New file.
282 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
283 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
284 * Makefile.in: Regenerate.
285
286 2000-09-15 Alan Modra <alan@linuxcare.com.au>
287
288 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
289 only as needed.
290
291 2000-09-13 Nick Clifton <nickc@redhat.com>
292
293 * ldmain.c (multiple_definition): Disable relaxation if
294 multiple symbol definitions are encountered - otherwise the
295 linker could abort with an assertion failure.
296
297 2000-09-10 Nick Clifton <nickc@redhat.com>
298
299 * mri.c: Fix formatting.
300
301 2000-09-07 H.J. Lu <hjl@gnu.org>
302
303 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
304 * configure: Rebuild.
305
306 2000-09-07 H.J. Lu <hjl@gnu.org>
307
308 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
309 * Makefile.in: Rebuild.
310
311 2000-09-07 Alan Modra <alan@linuxcare.com.au>
312
313 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
314 broken list handling. Create __start_SECNAME and __stop_SECNAME
315 when no place-holder. Add some comments. Test both SEC_CODE and
316 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
317 Handle case where no output section statement created.
318
319 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
320
321 * configure.tgt (sh-*-linux*): Added.
322 * Makefile.am: Added eshelf_linux and eshlelf_linux.
323 * Makefile.in: Rebuilt.
324 * emulparams/shelf_linux.sh: New file.
325 * emulparams/shlelf_linux.sh: New file.
326
327 2000-09-06 Alan Modra <alan@linuxcare.com.au>
328
329 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
330 try shuffling sections when the orphan happens to be the place
331 holder. Keep count of unique section names generated so we speed
332 the search for a new name.
333
334 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
335
336 * configure: Rebuilt with new libtool.m4.
337
338 2000-09-05 Nick Clifton <nickc@redhat.com>
339
340 * Makefile.in: Regenerate.
341 * aclocal.m4: Regenerate.
342 * configure: Regenerate.
343 * config.in: Regenerate.
344 * po/ld.pot: Regenerate.
345
346 * ldint.texinfo: Remove CVS revision marker - it foils local
347 comparisons.
348
349 * emultempl/ticoff.em: Remove extraneous comma.
350
351 2000-09-05 Alan Modra <alan@linuxcare.com.au>
352
353 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
354 to stub section flags.
355 (hppa_for_each_input_file_wrapper): New.
356 (hppa_lang_for_each_input_file): New.
357 (lang_for_each_input_file): Define to call above.
358 (multi_subspace): New.
359 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
360 (PARSE_AND_LIST_PROLOGUE): Define.
361 (PARSE_AND_LIST_LONGOPTS): Define.
362 (PARSE_AND_LIST_OPTIONS): Define.
363 (PARSE_AND_LIST_ARGS_CASES): Define.
364 (hppaelf_finish): Call elf32_hppa_set_gp.
365 (hppaelf_set_output_arch): Remove.
366 (LDEMUL_SET_OUTPUT_ARCH): Remove.
367
368 * emulparams/hppalinux.sh (ELFSIZE): Define.
369 (MACHINE): Define.
370 (OTHER_READONLY_SECTIONS): Define.
371 (DATA_PLT): Define.
372 (GENERATE_SHLIB_SCRIPT): Define.
373
374 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
375 to const throughout. Change `void *' to `PTR' throughout.
376 (lang_memory_default): Function is local to file, add `static'.
377
378 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
379 (ehppalinux.c): Likewise.
380 (earmelf.c): Likewise.
381 (earmelf_linux.c): Likewise.
382 (earmelf_linux26.c): Likewise.
383 * Makefile.in: Regenerate.
384
385 * ld.h (ld_config_type): Add unique_orphan_sections.
386 * lexsup.c (OPTION_UNIQUE): Define.
387 (ld_options): Add "--unique".
388 (parse_args): Handle it.
389 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
390 search for an existing output section if unique_orphan_sections is
391 set. Make use of bfd_get_unique_section_name rather than
392 duplicating code here.
393 * ld.texinfo: Describe --unique.
394
395 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
396 optional arg to split-by-file.
397 (parse_args): Handle them.
398 * ld.texinfo: Update description of these options.
399 * ldwrite.c (clone_section): Pass in the section name. Replace
400 local code with bfd_get_unique_section_name.
401 (split_sections): Tidy code and comments. Use a list traversal
402 more appropriate to the list construction. Handle cooked section
403 sizes. Split when split_by_reloc reached rather than exceeded.
404 Track section size and split when split_by_file reached. Fix
405 link_order_tail (even though it's not used).
406 (ldwrite): Modify condition for calling split_sections to suit
407 changed split_by_reloc and split_by_file.
408 * ldmain.c (main): Init config.split_by_reloc and
409 config.split_by_file to -1.
410 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
411 Change split_by_file to bfd_size_type.
412
413 2000-09-02 Nick Clifton <nickc@redhat.com>
414
415 * configure.in: Increase version number to 2.10.91.
416 * NEWS: Mention new ability to support removal of duplicate DWARF2
417 debug information.
418 * configure: Regenerate.
419 * aclocal.m4: Regenerate.
420 * config.in: Regenerate.
421
422 2000-09-02 Daniel Berlin <dberlin@redhat.com>
423
424 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
425 sections.
426 * scripttempl/elf32var.sc: Ditto.
427 * scripttempl/elfd10v.sc: Ditto.
428 * scripttempl/elfd30v.sc: Ditto.
429 * scripttempl/elfi370.sc: Ditto.
430 * scripttempl/elfm68hc11.sc: Ditto.
431 * scripttempl/elfm68hc12.sc: Ditto.
432 * scripttempl/elfi386beos.sc: Ditto.
433 * scripttempl/v850.sc: Ditto.
434
435 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
436
437 * acinclude.m4: Include libtool and gettext macros from the
438 top level.
439 * aclocal.m4, configure: Rebuilt.
440
441 2000-08-25 Nick Clifton <nickc@redhat.com>
442
443 * ldlang.c (open_output): When choosing the target for a
444 particular endianness, do nothing if the target is not
445 supported.
446
447 2000-08-25 H.J. Lu <hjl@gnu.org>
448
449 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
450 check -rpath nor LD_RUN_PATH for cross link.
451 * ld.texinfo: Document the change.
452
453 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
454
455 * NEWS: Mention support for CRIS.
456
457 2000-08-23 H.J. Lu <hjl@gnu.org>
458
459 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
460 the current runpath list from bfd_elf_get_runpath_list ()
461 before search.
462
463 2000-08-22 H.J. Lu <hjl@gnu.org>
464
465 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
466 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
467 LD_LIBRARY_PATH for native linker. Display the needed DSO if
468 trace_file_tries is non-zero.
469 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
470 if trace_file_tries is non-zero.
471
472 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
473 * NEWS: Mention it.
474
475 2000-08-14 Jason Eckhardt <jle@cygnus.com>
476
477 * NEWS: Mention i860 support.
478
479 2000-08-14 Andreas Schwab <schwab@suse.de>
480
481 * scripttempl/elf.sc: Fix last change to use correct comment
482 syntax.
483
484 2000-08-10 Geoff Keating <geoffk@cygnus.com>
485
486 * scripttempl/elf.sc: Add a comment giving the correspondence
487 between sections, per-datum sections, and linkonce sections. Make
488 the comment true even for .bss, .sdata, .sdata2, .sbss, and
489 .sbss2.
490
491 2000-08-10 Jason Eckhardt <jle@cygnus.com>
492
493 * emulparams/elf32_i860.sh: New file.
494 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
495 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
496 (eelf32_i860.c): New rule.
497 * Makefile.in: Regenerate.
498
499 2000-08-10 Nick Clifton <nickc@cygnus.com>
500
501 * emulparams/mipspe.sh (ENTRY): Add definition.
502
503 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
504
505 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
506 in error message.
507
508 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
509
510 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
511 the final size of .bss section.
512 * scripttempl/elfm68hc12.sc: Likewise.
513
514 2000-08-04 Alan Modra <alan@linuxcare.com.au>
515
516 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
517 gld${EMULATION_NAME}_parse_args for consistency. Combine
518 lastoptind and prevoptind vars, and keep track of last optind.
519 (gld_${EMULATION_NAME}_list_options): Rename to
520 gld${EMULATION_NAME}_list_options.
521
522 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
523
524 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
525 (i586-sco-sysv5uw7.1.0).
526
527 2000-07-27 H.J. Lu <hjl@gnu.org>
528
529 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
530 (PARSE_AND_LIST_PROLOGUE): New.
531 (PARSE_AND_LIST_LONGOPTS): Likewise.
532 (PARSE_AND_LIST_OPTIONS): Likewise.
533 (PARSE_AND_LIST_ARGS_CASES): Likewise.
534 (PARSE_AND_LIST_EPILOGUE): Likewise.
535
536 2000-07-28 Alan Modra <alan@linuxcare.com.au>
537
538 * emultempl/armelf.em: Elide functions common to elf32.em,
539 ie. most of the file.
540 (arm_elf_after_open): New. Do arm specific things then call
541 gld${EMULATION_NAME}_after_open.
542 (arm_elf_before_allocation): New. Call
543 gld${EMULATION_NAME}_before_allocation then do arm specifics.
544 (PARSE_AND_LIST_PROLOGUE): Define.
545 (PARSE_AND_LIST_SHORTOPTS): Define.
546 (PARSE_AND_LIST_LONGOPTS): Define.
547 (PARSE_AND_LIST_OPTIONS): Define.
548 (PARSE_AND_LIST_ARGS_CASES): Define.
549 (LDEMUL_AFTER_OPEN): Define.
550 (LDEMUL_BEFORE_ALLOCATION): Define.
551 (LDEMUL_BEFORE_PARSE): Define.
552 (LDEMUL_FINISH): Define.
553
554 * emultempl/hppaelf.em: Similarly zap most of this file.
555 (hppaelf_add_stub_section): Prototype.
556 (hppaelf_layaout_sections_again): Prototype.
557 (hook_in_stub): Prototype.
558 (LDEMUL_SET_OUTPUT_ARCH): Define.
559 (LDEMUL_FINISH): Define.
560 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
561
562 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
563 (EXTRA_EM_FILE): New.
564 * emulparams/armelf_linux.sh: Likewise.
565 * emulparams/armelf_linux26.sh: Likewise.
566 * emulparams/hppalinux.sh: Likewise.
567 * emulparams/hppaelf.sh: Likewise.
568 (NOP): Define.
569
570 * emultempl/elf32.em: Fix formatting.
571 (EXTRA_EM_FILE): Source it.
572 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
573 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
574 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
575 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
576 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
577 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
578 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
579 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
580 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
581 allow functions in this file to be overridden.
582 (PARSE_AND_LIST_SHORTOPTS): Handle it.
583
584 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
585
586 * emultempl/elf32.em: Reorganize file.
587
588 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
589
590 * emulparams/elf64alpha.sh: Implement "-taso" emulation
591 specific option to fit 64-bit executable in the lower
592 31-bit address range. This is done by changing start
593 address of .interp (the very first section of executable)
594 and then setting EF_ALPHA_32BIT elf header flag.
595
596 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
597
598 * emultempl/m68kcoff.em: New file.
599 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
600 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
601 generic.em.
602 * Makefile.in: Regenerate.
603
604 2000-07-20 H.J. Lu <hjl@gnu.org>
605
606 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
607 and "disable-new-dtags" to stop getopt from treating -d/-e as
608 abbreviations for these options.
609
610 2000-07-20 H.J. Lu <hjl@gnu.org>
611
612 * ld.texinfo: Add documentation for --disable-new-dtags and
613 --enable-new-dtags.
614
615 * ldmain.c (main): Initialize link_info.new_dtags to false.
616
617 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
618 --disable-new-dtags and --enable-new-dtags.
619 (gld_${EMULATION_NAME}_list_options): Likewise.
620
621 2000-07-05 Kenneth Block <krblock@computer.org>
622
623 * ld/lexsup.c: Add optional style to demangle switch
624 * ld/ld.texinfo: Document optional style to demangle switch.
625
626 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
627
628 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
629 ecrislinux.o.
630 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
631 Regenerate dependencies.
632 * Makefile.in: Rebuild.
633 * configure.tgt (cris-*-*): New target.
634 * emulparams/crisaout.sh, emulparams/criself.sh,
635 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
636 * po/POTFILES.in, po/ld.pot: Regenerate.
637
638 2000-07-20 H.J. Lu <hjl@gnu.org>
639
640 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
641 Print out ignored -z options.
642
643 2000-07-19 H.J. Lu <hjl@gnu.org>
644
645 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
646 (PARSE_AND_LIST_PROLOGUE): New.
647 (PARSE_AND_LIST_LONGOPTS): Likewise.
648 (PARSE_AND_LIST_OPTIONS): Likewise.
649 (PARSE_AND_LIST_ARGS_CASES): Likewise.
650
651 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
652
653 * lexsup.c (ld_options): Comment out 'z'.
654 (parse_args): Likewise.
655
656 * emultempl/elf32.em: Include "elf/common.h".
657 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
658 options.
659 (gld_${EMULATION_NAME}_list_options): Likewise.
660
661 * ld.texinfo: Add documentation for the recognized -z options.
662
663 2000-07-19 H.J. Lu <hjl@gnu.org>
664
665 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
666 bfd_elf_set_dt_needed_soname ().
667
668 2000-07-18 DJ Delorie <dj@cygnus.com>
669
670 * pe-dll.c (pe_dll_id_target): check object target name also
671
672 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
673
674 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
675 ${INIT_END} if relocating.
676 (.fini): Likewise ${FINI_START} and ${FINI_END}.
677
678 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
679
680 * src/ld/emultempl/pe.em (gld_*_open_dynamic_archive): New search
681 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
682 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
683 errors introduced by the old dynamic lib search order.
684
685 2000-07-17 DJ Delorie <dj@cygnus.com>
686
687 * pe-dll.c (process_def_file): auto-export data items also
688 (pe_process_import_defs): also see if _imp_ form needed
689
690 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
691
692 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
693 for dll import libraries
694
695 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
696
697 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
698 gcc 2.95.2 and later.
699
700 2000-07-11 Kazu Hirata <kazu@hxi.com>
701
702 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
703 message.
704
705 2000-07-10 Alan Modra <alan@linuxcare.com.au>
706
707 * ldemul.h (struct lang_input_statement_struct): Remove forward
708 declaration.
709 (struct search_dirs): Likewise.
710 * ldfile.h (struct lang_input_statement_struct): Likewise.
711 Protect file from multiple inclusion.
712 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
713 declaration from macro to file scope.
714
715 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
716 * ldgram.y: Likewise here.
717 * ldlang.c: And here.
718 * ldmain.c: And here.
719 * mpw-elfmips.c: And here.
720 * mpw-eppcmac.c: And here.
721 * emultempl/aix.em: And here.
722 * emultempl/armcoff.em: And here.
723 * emultempl/armelf.em: And here.
724 * emultempl/armelf_oabi.em: And here.
725 * emultempl/beos.em: And here.
726 * emultempl/elf32.em: And here.
727 * emultempl/hppaelf.em: And here.
728 * emultempl/linux.em: And here.
729 * emultempl/lnk960.em: And here.
730 * emultempl/pe.em: And here.
731 * emultempl/sunos.em: And here.
732 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
733 * mpw-idtmips.c: Ditto.
734 * emultempl/generic.em: Ditto.
735 * emultempl/gld960.em: Ditto.
736 * emultempl/gld960c.em: Ditto.
737 * emultempl/mipsecoff.em: Ditto.
738 * emultempl/ticoff.em: Ditto.
739 * emultempl/vanilla.em: Ditto.
740
741 * pe-dll.c: Include ldfile.h
742 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
743
744 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
745 arguments to bfd_elf32_size_dynamic_sections call.
746 (gldelf32ebmip_place_orphan): Add missing arguments to
747 lang_leave_output_section_statement call.
748
749 2000-07-10 H.J. Lu <hjl@gnu.org>
750
751 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
752 DLL_SUPPORT.
753 (strhash): Likewise.
754 (compute_dll_image_base): Likewise.
755 (pe_undef_found_sym): Likewise.
756 (pe_undef_cdecl_match): Likewise.
757 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
758 argument "arch" with ATTRIBUTE_UNUSED.
759
760 2000-07-10 Alan Modra <alan@linuxcare.com.au>
761
762 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
763
764 From Ryan Bradetich <rbradetich@uswest.net>
765 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
766
767 2000-07-09 Alan Modra <alan@linuxcare.com.au>
768
769 Changes to create multiple linker stubs, positioned immediately
770 before the section where they are required.
771 * emultempl/hppaelf.em: Include elf32-hppa.h.
772 (stub_sec, file_chain): Delete.
773 (hppaelf_create_output_section_statements): Don't make a stub
774 section here.
775 (hook_stub_info): New struct.
776 (hook_in_stub): New function.
777 (hppaelf_add_stub_section): New function.
778 (hppaelf_finish): Do nothing for relocateable links. Modify the
779 call to elf32_hppa_size_stubs. Move code for updating section
780 layout from here...
781 (hppaelf_layaout_sections_again): ..to here, a new function.
782
783 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
784 broken list handling. Pass in a pointer to the list.
785 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
786 for above changes.
787 (hppaelf_before_parse): Prototype.
788 (hppaelf_set_output_arch): Prototype.
789 (hppaelf_create_output_section_statements): Prototype.
790 (hppaelf_delete_padding_statements): Prototype.
791 (hppaelf_finish): Prototype.
792
793 Merge from elf32.em
794 * emultempl/hppaelf.em: Include ctype.h.
795 (struct orphan_save): New.
796 (gld${EMULATION_NAME}_place_orphan): New.
797 (output_rel_find): New.
798 (hppaelf_get_script): Update from elf32.em.
799 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
800 Change emulation_name field to "${EMULATION_NAME}". Add
801 gld${EMULATION_NAME}_place_orphan.
802
803 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
804 ehppalinux.o, sort it. Regenerate dependencies.
805 (ehppalinux.c): Depend on hppaelf.em
806 * Makefile.in: Regenerate.
807
808 * configure.tgt: targ_emul=hppalinux for hppa*linux
809
810 * emulparams/hppalinux.sh: New.
811 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
812
813 2000-07-08 Alan Modra <alan@linuxcare.com.au>
814
815 * lexsup.c (parse_args): Copy section name.
816
817 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
818
819 * emultempl/pe.em: institute the following search order for
820 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
821 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
822 static lib (libfoo.a) if none of the above are found.
823
824 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
825
826 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
827 (longopts): New --{enable,disable}-auto-image-base options.
828 (gld_${EMULATION_NAME}_list_options): Document.
829 (gld_${EMULATION_NAME}_parse): Handle.
830 (strhash): New static function.
831 (compute_dll_image_base): New static function.
832 (gld_${EMULATION_NAME}_set_symbols): Use.
833
834 2000-07-05 DJ Delorie <dj@redhat.com>
835
836 * MAINTAINERS: new
837
838 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
839
840 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
841 * emulparams/elf32btsmip.sh: New file.
842 * Makefile.am: Add traditional mips target.
843 * Makefile.in: Rebuild.
844
845 2000-07-01 H.J. Lu <hjl@gnu.org>
846
847 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
848 automake to use YLWRAP.
849 * Makefile.in: Rebuild.
850
851 2000-07-01 Alan Modra <alan@linuxcare.com.au>
852
853 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
854 (CLEANFILES): Add DEPA.
855 * Makefile.in: Regenerate.
856
857 2000-06-30 Timothy Wall <twall@ppc>
858
859 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
860 the page in the upper octet of the address.
861
862 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
863
864 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
865
866 2000-06-24 Alan Modra <alan@linuxcare.com.au>
867
868 * NEWS: arm-elf does --gc-sections too.
869
870 2000-06-22 Alan Modra <alan@linuxcare.com.au>
871
872 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
873 find one.
874 * Makefile.in: Regenerate.
875
876 2000-06-21 H.J. Lu <hjl@gnu.org>
877
878 * Makefile.am: Rebuild dependency.
879 * Makefile.in: Rebuild.
880
881 2000-06-20 H.J. Lu <hjl@gnu.org>
882
883 * Makefile.am: Rebuild dependency.
884 * Makefile.in: Rebuild.
885
886 2000-06-20 Timothy Wall <twall@cygnus.com>
887
888 * scripttempl/tic54xcoff.sc: New.
889 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
890 * gen-doc.texi: Add flag for TI COFF.
891 * ld.texinfo: Add documentation for TI COFF handling switches.
892 * emultempl/ticoff.em: New. TI COFF handling.
893 * configure.tgt: Add tic54x target.
894 * Makefile.am: Add tic54x target.
895 * Makefile.in: Ditto.
896
897 2000-06-20 Alan Modra <alan@linuxcare.com.au>
898
899 * ldmain.c (set_scripts_dir): Correct pointer comparison when
900 checking for backslashes.
901
902 2000-06-19 Alan Modra <alan@linuxcare.com.au>
903
904 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
905
906 2000-06-18 Alan Modra <alan@linuxcare.com.au>
907
908 * NEWS: Update list of targets supporting --gc-sections.
909
910 * scripttempl/elf.sc: KEEP .eh_frame contents.
911 * scripttempl/elfd30v.sc: Same here.
912
913 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
914
915 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
916 and m68hc11 (elf).
917 * Makefile.in: Rebuild.
918 * configure.tgt: Recognize m68hc12 and m68hc11.
919 * scripttempl/elfm68hc12.sc: New file.
920 * emulparams/m68hc12elfb: New emulation.
921 * emulparams/m68hc12elf: New emulation.
922 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
923 (includes a memory.x script to define the ROM and RAM banks).
924 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
925 New configuration files for support of Motorola 68hc11
926
927 2000-06-15 Alan Modra <alan@linuxcare.com.au>
928
929 * ldmain.c (main): Only change SEC_READONLY for final link.
930
931 2000-06-13 H.J. Lu <hjl@gnu.org>
932
933 * configure: Regenerate.
934
935 2000-06-08 David O'Brien <obrien@FreeBSD.org>
936
937 * configure.in (VERSION): Update to show this is the CVS mainline.
938
939 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
940
941 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
942 input objects to be ECOFF.
943 (check_sections): einfo takes %B, not %P, to print a BFD name.
944
945 2000-06-05 Michael Matz <matz@ifh.de>
946
947 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
948 version scripts.
949
950 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
951
952 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
953
954 * emulparams/avr1200.sh (STACK): Define as 0.
955 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
956 * emulparams/avr4433.sh (STACK): Likewise.
957 * emulparams/avr44x4.sh (STACK): Likewise.
958 * emulparams/avr85xx.sh (STACK): Likewise.
959 * emulparams/avrmega103.sh (STACK): Likewise.
960 * emulparams/avrmega161.sh (STACK): Likewise.
961 * emulparams/avrmega603.sh (STACK): Likewise.
962 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
963 (__stack): Define from ${STACK} for main().
964
965 2000-05-26 Alan Modra <alan@linuxcare.com.au>
966
967 * Makefile.am: Update dependencies with "make dep-am"
968 * Makefile.in: Regenerate.
969
970 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
971
972 * ldmain.c: Include filenames.h.
973 (set_scripts_dir): Support backslashes in program name.
974
975 2000-05-22 Igor Shevlyakov <igor@windriver.com>
976
977 * ldmain.c (main): When deciding if ".text" section should be
978 read-only, don't forget to reset SEC_READONLY because it
979 could be already set.
980
981 2000-05-22 Thomas de Lellis <tdel@windriver.com>
982
983 * ld.1: Add documentation for new command line option:
984 --section-start <sectionname>=<sectionorg>
985 This is a generic version of -Ttext etc. which accepts
986 any section name as a parameter instead of just text/data/
987 bss.
988 * ld.texinfo: More docs.
989 * NEWS: More docs.
990 * lexsup.c: (parse_args): Recognize new command line option.
991 (ld_options): Add new option.
992
993 2000-05-18 H.J. Lu <hjl@gnu.org>
994
995 * lexsup.c (parse_args): `i' == `r', not `q'.
996
997 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
998
999 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1000
1001 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1002 Rick Gorton <gorton@scrugs.lkg.dec.com>
1003
1004 Add support for '-q' == '--emit-relocs' switch.
1005 * ldmain.c (main): Default to false.
1006 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1007 * NEWS: Describe the emitrelocations switch.
1008 * ld.texinfo: Describe the emitrelocations switch.
1009
1010 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
1011
1012 * ld/emultempl/pe.em (_open_dynamic_archive): New function: Search
1013 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1014 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1015 link options.
1016
1017 2000-05-15 David O'Brien <obrien@FreeBSD.org>
1018
1019 * lexsup.c (parse_args): Update the year in the copyright notice.
1020
1021 2000-05-13 Alan Modra <alan@linuxcare.com.au>
1022
1023 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1024 Replace defines with those from intl/libgettext.h to quieten gcc
1025 warnings.
1026
1027 2000-05-10 H.J. Lu <hjl@gnu.org>
1028
1029 * ldlang.c (open_input_bfds): Don't load the same file within
1030 a group again if the whole archive has been loaded already.
1031
1032 2000-05-03 Alan Modra <alan@linuxcare.com.au>
1033
1034 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1035 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1036 strtoul.
1037
1038 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
1039
1040 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1041
1042 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1043 host "ia64-*-linux-gnu*".
1044
1045 2000-04-29 Andreas Jaeger <aj@suse.de>
1046
1047 * ld.h: Correctly check GCC version.
1048
1049 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
1050
1051 * Makefile.am: Add PA64 support. Add missing dependencies for
1052 PA32 elf support.
1053 * Makefile.in: Rebuilt.
1054 * configure.tgt: Add PA64 support (currently disabled).
1055
1056 2000-04-25 Alan Modra <alan@linuxcare.com.au>
1057
1058 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1059 (output_rel_find): New function.
1060 (hold_section, hold_use): Delete.
1061 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1062 hold_interp): Make local to place_orphan.
1063 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1064 rather than place_section to find possible previous use of orphan.
1065 Similarly find the place-holder output sections. Use returned
1066 value from lang_enter_output_section_statement rather than calling
1067 lang_output_section_statement_lookup.
1068 * emultempl/armelf.em: Same here.
1069 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1070
1071 * ldlang.c (lang_enter_output_section_statement): Return output
1072 section statement.
1073 * ldlang.h (lang_enter_output_section_statement): Change
1074 declaration too.
1075
1076 * ldlang.h (lang_output_section_statement): Export it.
1077 * ldlang.c (lang_output_section_statement): Ditto.
1078
1079 2000-04-24 Nick Clifton <nickc@cygnus.com>
1080
1081 * ld.texinfo (Output Section Data): Add note that section data
1082 commands cannot appear outside of section directives.
1083
1084 2000-04-2 Matthew Green <mrg@cygnus.com>
1085
1086 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1087
1088 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
1089 David Mosberger <davidm@hpl.hp.com>
1090
1091 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1092 (eelf64_ia64.c): New rule.
1093 * Makefile.in: Rebuild.
1094 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1095 * emulparams/elf64_ia64.sh: New file.
1096
1097 2000-04-21 Richard Henderson <rth@cygnus.com>
1098
1099 * scripttempl/elfd30v.sc: Place .gcc_except_table.
1100
1101 2000-04-19 Alan Modra <alan@linuxcare.com.au>
1102
1103 * dep-in.sed: Match space at start of file name, not at end.
1104
1105 2000-04-18 H.J. Lu <hjl@gnu.org>
1106
1107 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1108 lang_leave_output_section_statement () after calling
1109 lang_enter_output_section_statement ().
1110 * emultempl/armelf.em: Likewise.
1111
1112 2000-04-18 Alan Modra <alan@linuxcare.com.au>
1113
1114 * emultempl/elf32.em (struct orphan_save): Add section field.
1115 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1116 better order, and place first orphan section as we did before the
1117 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
1118 Don't call make_bfd_section here, let wild_doit do the job for us.
1119 Don't build a statement list when we'll only throw it away.
1120 * emultempl/armelf.em: Ditto.
1121 * emultempl/pe.em: Similarly.
1122
1123 2000-04-14 Geoff Keating <geoffk@cygnus.com>
1124
1125 * scripttempl/elfppc.sc: Remove.
1126 * emulparams/elf32ppc.sh: Use elf.sc.
1127 * emulparams/elf32lppc.sh: Use elf.sc.
1128 * emulparams/elf32ppclinux.sh: Use elf.sc.
1129 * emulparams/elf32ppcsim.sh: New file.
1130 * emulparams/elf32lppcsim.sh: New file.
1131 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
1132 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1133 * Makefile.in: Regenerate.
1134 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1135
1136 2000-04-14 Alan Modra <alan@linuxcare.com.au>
1137
1138 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1139 ~SEC_ALLOC sections too. Init start address of debug sections.
1140 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1141 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1142 Also set all relocateable section start addresses.
1143
1144 2000-04-13 Geoff Keating <geoffk@cygnus.com>
1145
1146 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1147 Add new BSS_PLT variable for when .plt need not be contained in
1148 the file. Move _etext so that it is also after .fini, and provide
1149 both etext and _etext with a leading underscore. Mark the start
1150 and end of .sbss.
1151
1152 2000-04-12 Alan Modra <alan@linuxcare.com.au>
1153
1154 * emultempl/elf32.em (struct orphan_save): New.
1155 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1156 hold_interp): Make them struct orphan_save.
1157 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1158 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1159 the end of the relevant section list. Also add associated section
1160 statements to the end of any previous orphan statements.
1161 * emultempl/armelf.em: Similarly.
1162 * emultempl/pe.em: Similarly.
1163
1164 2000-04-11 Alan Modra <alan@linuxcare.com.au>
1165
1166 * ld.texinfo (Simple Example): Remove extraneous paragraph.
1167
1168 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1169
1170 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1171 --enable-build-warnings option.
1172 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1173 * Makefile.in, configure: Re-generate.
1174
1175 2000-04-04 Alan Modra <alan@linuxcare.com.au>
1176
1177 * po/ld.pot: Regenerate.
1178
1179 * lexsup.c (help): Restore translated part of bug string.
1180
1181 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1182 (DEP): Quote when passing vars to sub-make. Add warning message
1183 to end.
1184 (DEP1): Rewrite for "gcc -MM".
1185 (CLEANFILES): Add DEP2.
1186 Update dependencies.
1187 * Makefile.in: Regenerate.
1188
1189 2000-04-03 Alan Modra <alan@linuxcare.com.au>
1190
1191 * ld.h: #include "bin-bugs.h"
1192 * lexsup.c (help): Use REPORT_BUGS_TO.
1193
1194 2000-03-27 Denis Chertykov <denisc@overta.ru>
1195
1196 * configure.tgt (avr-*-*): New target support.
1197 * Makefile.am: Likewise.
1198 * scripttempl/elf32avr.sc: New script file.
1199 * emulparams/avr1200.sh: New file.
1200 * emulparams/avr23xx.sh: New file.
1201 * emulparams/avr4433.sh New file.
1202 * emulparams/avr44x4.sh New file.
1203 * emulparams/avr85xx.sh New file.
1204 * emulparams/avrmega103.sh New file.
1205 * emulparams/avrmega161.sh New file.
1206 * emulparams/avrmega603.sh New file.
1207 * Makefile.in: Regenerate.
1208
1209 2000-03-09 Andreas Jaeger <aj@suse.de>
1210
1211 * Makefile.am (check-DEJAGNU): Also unset LANG.
1212 * Makefile.in: Rebuild.
1213
1214 2000-03-06 Ian Lance Taylor <ian@zembu.com>
1215
1216 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1217 archive.
1218
1219 2000-03-02 H.J. Lu <hjl@gnu.org>
1220
1221 * emulparams/elf32mcore.sh: Include "getopt.h".
1222
1223 2000-03-01 Ian Lance Taylor <ian@zembu.com>
1224
1225 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1226
1227 2000-03-01 H.J. Lu <hjl@gnu.org>
1228
1229 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1230 * emulparams/shpe.sh: Likewise.
1231
1232 2000-03-01 Nick Clifton <nickc@cygnus.com>
1233
1234 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1235 to unused parameters.
1236
1237 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1238 functions only used by DLL code.
1239 (_place_orphan): Initialise 'dollar'.
1240
1241 2000-03-01 H.J. Lu <hjl@gnu.org>
1242
1243 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1244 indicate if the undefined symbol is a fatal error or not.
1245 Don't delete the output file if "fatal" is false.
1246
1247 2000-02-29 H.J. Lu <hjl@gnu.org>
1248
1249 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1250 Set LC_COLLATE and LC_ALL to null and export them. It is for
1251 sort which expects the C locale.
1252 Add $(LIBS) to all $(HOSTING_LIBS).
1253 * Makefile.in: Rebuild.
1254
1255 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
1256
1257 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1258 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1259 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1260 (ld_emulation_xfer_struct): Add missing NULL initialiser for
1261 find_potential_libraries.
1262
1263 2000-02-28 Jim Blandy <jimb@redhat.com>
1264
1265 * ldgram.y (exclude_name_list): Don't require a comma to separate
1266 list entries; the lexer considers commas to be valid part of a
1267 filename, so in something like `foo, bar' the comma is considered
1268 part of the first filename, `foo,'.
1269 * ld.texinfo: Update section on EXCLUDE_FILE lists.
1270
1271 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
1272
1273 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1274 host "i[3456]86-*-freebsdelf*".
1275
1276 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
1277
1278 * scripttempl/i386go32.sc: Move misplaced semicolons.
1279
1280 2000-02-25 Ian Lance Taylor <ian@zembu.com>
1281
1282 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1283 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1284 (eelf64hppa.c, ehppaelf.c): Remove targets.
1285 * Makefile.in: Rebuild.
1286
1287 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1288
1289 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1290 GNU/Linux/sparc, but keep the default as 32.
1291
1292 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
1293 it default if sparcv9 or sparc64.
1294
1295 2000-02-24 Nick Clifton <nickc@cygnus.com>
1296
1297 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1298 * Makefile.in: Regenerate.
1299 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1300
1301 * ldemul.h (ld_emulation_xfer_struct): Add new field:
1302 find_potential_libraries.
1303 * ldemul.c (ldemul_find_potential_libraries): New function.
1304
1305 * ldfile.c (ldfile_open_file_search): Allow function to be
1306 exported.
1307 (ldfile_open_file): Call ldemul_find_potential_libraries.
1308 * ldfile.h: Add prototype for ldfile_open_file_search.
1309
1310 * pe-dll.c: Add support for ARM, MIPS and SH targets.
1311
1312 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
1313 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
1314
1315 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1316 (gld_X_find_potential_libraries): New function. Search for
1317 libraries called "*.lib".
1318
1319 * scriptempl/pe.sc: Add .pdata section.
1320
1321 2000-02-23 Richard Henderson <rth@cygnus.com>
1322
1323 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1324 Add and use memory regions.
1325
1326 2000-02-23 Linas Vepstas (linas@linas.org)
1327
1328 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1329
1330 * Makefile.am: Add support for Linux/IBM 370.
1331 * configure.tgt: Likewise.
1332
1333 * Makefile.in: Regenerate.
1334
1335 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
1336
1337 * ldlang.c (print_input_section, print_data_statement,
1338 print_reloc_statement, print_padding_statement, insert_pad,
1339 size_input_section, lang_check_section_addresses,
1340 lang_size_sections, lang_do_assignments, lang_set_startof,
1341 lang_one_common): Change `opb' to unsigned.
1342 (lang_do_assignments): Also change `size' to unsigned.
1343
1344 2000-02-16 Richard Henderson <rth@cygnus.com>
1345
1346 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1347
1348 2000-02-16 Timothy Wall <twall@cygnus.com>
1349
1350 * mri.c (mri_draw_tree): Add default LMA region argument to call
1351 to lang_leave_output_section_statement.
1352 * ldlang.h: Update prototypes with LMA region arguments.
1353 * ldlang.c (lang_size_sections): Encapsulate region bounds
1354 checking in os_check_region call.
1355 (os_check_region): New function.
1356 (lang_output_section_statement_lookup): Initialize lma_region.
1357 (lang_leave_output_section_statement): Add LMA region argument.
1358 (lang_leave_overlay): Ditto.
1359 * ldgram.y: Handle LMA region syntax.
1360 * ld.texinfo (Output Section Description): Describe LMA region usage.
1361 * emultempl/armelf.em (gld$place_orphan): Add default value for
1362 lma region in call to lang_leave_output_section_statement.
1363 * emultempl/elf32.em (gld$place_orphan): Add default value for
1364 lma region in call to lang_leave_output_section_statement.
1365 * emultempl/pe.em (gld$place_orphan): Add default value for
1366 lma region in call to lang_leave_output_section_statement.
1367
1368
1369 2000-02-04 Timothy Wall <twall@redhat.com>
1370
1371 * ldlang.c (lang_check_section_addresses): Use bytes instead of
1372 octets when calculating section end addresses.
1373
1374 2000-02-04 Timothy Wall <twall@redhat.com>
1375
1376 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
1377
1378 2000-02-03 Timothy Wall <twall@redhat.com>
1379
1380 * ld/ldexp.c (fold_name): Make SIZEOF operator return byte count, not
1381 octet count.
1382 * ld/ldlang.c (print_input_section, print_data_statement,
1383 print_reloc_statement, print_padding_statement): Print target
1384 address values and section sizes as bytes, not octets.
1385 (insert_pad) Calculate padding size in octets, and adjust "dot"
1386 by bytes.
1387 (size_input_section) Always adjust "dot" by bytes, not octets.
1388 (lang_check_section_addresses, lang_do_assignments) Adjust
1389 "dot" by bytes, not octets. Use the larger of the directive size
1390 or octets_per_byte for the number of octets actually allocated in
1391 the output section.
1392 (lang_set_startof) Make sure STARTOF returns a target address.
1393 (lang_one_common) Record size changes in octets.
1394 (lang_abs_symbol_at_end_of) Section end symbol's value is
1395 recorded in target bytes.
1396 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
1397 to be clear about behavior when an octet is smaller than one byte.
1398
1399 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
1400
1401 * ldcref.c (output_cref): Don't pass message strings to printf
1402 as format arg.
1403 Update copyright.
1404
1405 * ldmisc.c (vfinfo): Same here.
1406 Update copyright.
1407
1408 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
1409
1410 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
1411 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
1412 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
1413 Add missing NULL initialisers, and comments.
1414
1415 * testsuite/ld-srec/sr3.cc (__rethrow): New.
1416
1417 2000-01-21 Nick Clifton <nickc@cygnus.com>
1418
1419 * ldlang.c (lang_size_sections): Fix typo in comment.
1420
1421 2000-01-18 H.J. Lu <hjl@gnu.org>
1422
1423 * ldlang.c (lang_size_sections): Also update the current
1424 address of a region if the SEC_NEVER_LOAD bit is not set.
1425
1426 2000-01-10 Philip Blundell <pb@futuretv.com>
1427
1428 * configure.tgt (arm*-*-conix*): New target.
1429
1430 2000-01-07 Nick Clifton <nickc@cygnus.com>
1431
1432 * ld.texinfo (Options): Remind users to preceed linker command
1433 line switches with -Wl, (or whatever is appropriate) if it is
1434 being invoked by a comnpiler driver program.
1435 Fix description of the behaviour of the -n command line switch.
1436
1437 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
1438
1439 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
1440 (name_list): New.
1441 * ld.texinfo (EXCLUDE_FILE): Update documentation.
1442 * ldgram.y (wildcard_spec): Support a list of excluded_files.
1443 (exclude_name_list): New.
1444 ldlang.c (walk_wild_section): Support list of excluded files.
1445 (print_wild_statement): Likewise.
1446 (lang_add_wild): Likewise.
1447 * ldlang.h (lang_wild_statement_type): Likewise.
1448 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
1449
1450 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1451
1452 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
1453 (process_def_file): Use.
1454 (pe_dll_compat_implib): New variable.
1455 (make_one): Use.
1456
1457 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
1458 pe_dll_compat_implib.
1459
1460 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
1461 compat-implib options.
1462 (gld_${EMULATION_NAME}_list_options): List new options.
1463 (gld_${EMULATION_NAME}_parse_args): Handle.
1464
1465 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
1466 dll.
1467
1468 * deffilep.y (opt_name): Allow "." in name.
1469
1470 1999-12-02 Nick Clifton <nickc@cygnus.com>
1471
1472 * Makefile.am: Fix arm-epoc-pe dependencies.
1473 * Makefile.in: Regenerate.
1474
1475 * emulparams/arm_epoc_pe.sh (SCRIPT_NAME): Set to epocpe.
1476
1477 * scripttempl/epocpe.sc: New file: copy of pe.sc, customised for
1478 EPOC by placing .rdata into .text.
1479
1480 1999-11-26 Andreas Schwab <schwab@suse.de>
1481
1482 * configure.in: Put AC_MSG_CHECKING/AC_MSG_RESULT around check for
1483 STRINGIFY. Use yes/no instead of true/false as value for cache
1484 variable.
1485 * configure: Regenerate.
1486
1487 1999-11-24 Nick Clifton <nickc@cygnus.com>
1488
1489 * ldlang.c (IGNORE_SECTION): Section must have both ALLOC and LOAD
1490 attributes in order to be checked.
1491
1492 1999-11-22 Nick Clifton <nickc@cygnus.com>
1493
1494 * ldlang.c (lang_check_section_addresses): Fix test to determine
1495 if a section should be tested.
1496 (IGNORE_SECTION): New macro.
1497
1498 Wed Nov 3 23:31:19 1999 Jeffrey A Law (law@cygnus.com)
1499
1500 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1501 Clean up code to use EXTRA_SHLIB_EXTENSION.
1502
1503 1999-11-03 Nick Clifton <nickc@cygnus.com>
1504
1505 * emulparams/elf32mcore.sh (OUTPUT_FORMAT): Change to little endian.
1506 * emulparams/mcorepe.sh (OUTPUT_FORMAT): Change to little endian.
1507
1508 1999-11-01 Steve Chamberlain <sac@pobox.com>
1509
1510 * ldlang.c (section_already_linked): Rework to use hash table.
1511 (already_linked_newfunc): New function.
1512 (already_linked_table_init): New function.
1513 (already_linked_table_free): New function.
1514 (lang_process): Initialize and free the already_linked hash table.
1515
1516 1999-10-27 Andreas Jaeger <aj@suse.de>
1517
1518 * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1519 target "mips*-*-linux-gnu*".
1520
1521 1999-10-27 Scott Bambrough <scottb@netwinder.org>
1522
1523 * emultempl/armelf.em: Include ctype.h to prevent compile time
1524 warnings.
1525
1526 1999-10-26 Nick Clifton <nickc@cygnus.com>
1527
1528 * emultempl/armcoff.em (gld{}_finish): Remove extraneous
1529 underscore from prototype.
1530 * emultempl/armelf.em (gld{}_finish): Remove extraneous
1531 underscore from prototype.
1532
1533 1999-10-07 Geoffrey Keating <geoffk@cygnus.com>
1534
1535 * scripttempl/elf.sc (.rel.sdata): Combine all the sdata relocs
1536 being .rel.sdata, .rel.sdata.*, .rel.gnu.linkonce.s*.
1537 (.rela.sdata): Likewise for .rela.sdata.* and .rela.gnu.linkonce.s*.
1538 (.rel.sbss): Make like .rel.bss.
1539 (.rela.sbss): Make like .rel.bss.
1540 (.sdata): Don't include .gnu.linkonce.s.* or .sdata.* when
1541 ld -r.
1542 (.sbss): Do the same things as for .bss: include SDATA_START_SYMBOLS,
1543 .dynsbss.
1544
1545 1999-09-29 Andrew Haley <aph@cygnus.com>
1546
1547 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Defer
1548 merging sections when not relocating.
1549
1550 1999-09-28 Mumit Khan <khan@xraylith.wisc.edu>
1551
1552 * pe-dll.c (process_def_file): Move the offset lookup from here to
1553 (fill_exported_offsets): here. New static function.
1554 (fill_edata): Use.
1555
1556 1999-09-28 Mumit Khan <khan@xraylith.wisc.edu>
1557
1558 * deffilep.y (tokens): Add upper and lower case versions of DATA,
1559 CONSTANT, NONAME and PRIVATE tokens.
1560 (command): Use DATAU.
1561 (expline): Allow for drectve syntax as well.
1562 (exp_opt_list): Likewise.
1563 (exp_opt): Likewise.
1564 * pe-dll.c (make_one): Only generate the idata entries for data
1565 symbols.
1566
1567 1999-09-28 Geoffrey Keating <geoffk@cygnus.com>
1568
1569 * scripttempl/elf.sc (.sdata): Include .gnu.linkonce.s.* sections
1570 in .sdata too.
1571
1572 1999-09-26 Nick Clifton <nickc@cygnus.com>
1573
1574 * scripttempl/elf.sc (.bss): Accept sections named .bss.*
1575 (.sbss): Accept sections names .sbss.*
1576
1577 1999-09-22 Nick Clifton <nickc@cygnus.com>
1578
1579 * Makefile.am: Add earm_epoc_pe.c build target.
1580
1581 Sat Sep 18 07:57:10 1999 Jeffrey A Law (law@cygnus.com)
1582
1583 * emulparms/elf64hppa.sh (OTHER_READONLY_SYMBOLS): Remove ".stubs",
1584 they've been renamed to ".stub", which is handled automatically
1585 by elf.sc.
1586
1587 Fri Sep 17 11:00:33 1999 Jeffrey A Law (law@cygnus.com)
1588
1589 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Kill completely.
1590 (DATA_START_SYMBOLS): Kill __hp_load_map definition
1591
1592 Thu Sep 16 10:59:56 1999 Jeffrey A Law (law@cygnus.com)
1593
1594 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1595 Use the same filename extension for the bfd_elf_dt_needed_name call
1596 as we did for finding the library.
1597
1598 * emulparms/elf64hppa.sh (DATA_START_SYMBOLS): Define.
1599 (OTHER_READWRITE_SECTIONS): No longer define __hp_load_map.
1600
1601 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Define.
1602
1603 Wed Sep 15 02:47:43 1999 Jeffrey A Law (law@cygnus.com)
1604
1605 * emulparms/elf64hppa.sh (SHLIB_TEXT_START_ADDR): Define.
1606 (SHLIB_DATA_ADDR): Likewise.
1607
1608 * emulparms/elf64hppa.sh (TEXT_DYNAMIC): Define.
1609
1610 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): No longer combine
1611 the .plt, .dlt, .opd into a single output section. Provide values
1612 for __gp and __hp_load_map.
1613
1614 1999-09-14 Michael Meissner <meissner@cygnus.com>
1615
1616 * configure.in (Canonicalization of target names): Remove adding
1617 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
1618 generates $ac_config_sub with a ${CONFIG_SHELL} already.
1619 * configure: Regenerate.
1620
1621 1999-09-14 Donn Terry <donn@interix.com>
1622
1623 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): allow for
1624 terminating null.
1625
1626 1999-09-14 Ulrich Drepper <drepper@cygnus.com>
1627
1628 * configure.in: Define EXTRA_SHLIB_EXTENSION to ".sl" for HP target.
1629 * config.in: Add EXTRA_SHLIB_EXTENSION.
1630
1631 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1632 Search for second shared lib extension only if EXTRA_SHLIB_EXTENSION
1633 is defined.
1634
1635 1999-09-14 Nick Clifton <nickc@cygnus.com>
1636
1637 * Makefile.in: Add earm_epoc_pe.c build target.
1638
1639 Tue Sep 14 05:26:34 1999 Jeffrey A Law (law@cygnus.com)
1640
1641 * emulparms/elf64hppa.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.dlt.
1642
1643 1999-09-13 Donn Terry <donn@interix.com>
1644
1645 * emultempl/pe.em: Remove the output file at the start, in case it
1646 is not writable.
1647
1648 Mon Sep 13 00:17:18 1999 Jeffrey A Law (law@cygnus.com)
1649
1650 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1651 Search for file with .sl extension if no file with a .so extension
1652 is found.
1653
1654 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Put .plt
1655 at the start of the .dlt output section.
1656
1657 1999-09-12 Ian Lance Taylor <ian@zembu.com>
1658
1659 * pe.em: Don't include "../bfd/libbfd.h".
1660 (gld_${EMULATION_NAME}_after_open): Use xmalloc rather than
1661 bfd_alloc.
1662
1663 * pe-dll.h: New file.
1664 * pe-dll.c: Include "pe-dll.h". Mark unused arguments as needed
1665 to avoid warnings.
1666 (edata_sz, reloc_sz): Change from int to size_t.
1667 (pe_details_type): Change type of imagebase_reloc from int to
1668 unsigned int.
1669 (pe_detail_list): Fully initialize last entry.
1670 (pe_dll_id_target): Change parameter to const.
1671 (pe_dll_generate_def_file): Likewise.
1672 (pe_dll_generate_implib): Likewise.
1673 (pe_implied_import_dll): Likewise. Change dll_name to const.
1674 * emultempl/pe.em: Include "pe-dll.h". Remove declarations now in
1675 pe-dll.h.
1676 (init): Fully initialize __dll__ entry.
1677 (gld_${EMULATION_NAME}_after_open): Remove unused variables
1678 sequence, elt, and i.
1679 * deffile.h: Add preprocessor guard.
1680 * deffilep.y (def_debug): Remove.
1681 * Makefile.am: Rebuild dependencies.
1682 (HFILES): Add pe-dll.h.
1683
1684 1999-09-12 Donn Terry <donn@interix.com>
1685
1686 * ld.h (ld_abort): Declare.
1687 (abort): Define.
1688 * ldmisc.c (ld_abort): Define.
1689
1690 * scripttempl/pe.sc: Use ${ENTRY} rather than _mainCRTStartup.
1691 Move .bss section after .rdata. Move .reloc section after .rsrc.
1692
1693 * lexsup.c (parse_args): Use strtoul for --split-by-reloc
1694 argument.
1695
1696 * lexsup.c (parse_args): If we get an unrecognized argument,
1697 mention --help.
1698
1699 * ldlang.c (section_already_linked): Use comdat information if it
1700 is available.
1701
1702 * emultempl/pe.em (PE_DEF_SECTION_ALIGNMENT): If
1703 OVERRIDE_SECTION_ALIGNMENT is defined, change to that.
1704 (gld_${EMULATION_NAME}_before_parse): Use EXECUTABLE_NAME if it is
1705 defined, rather than a.exe.
1706 (init): Define __subsystem__ as ${SUBSYSTEM}.
1707 (set_pe_subsystem): Add ${INITIAL_SYMBOL_CHAR} before entry symbol
1708 name.
1709
1710 1999-09-12 Ian Lance Taylor <ian@zembu.com>
1711
1712 * ldlang.c (open_output): Change local variable desired_endian
1713 from int to enum bfd_endian.
1714
1715 * emulparams/arm_epoc_pe.sh: Define ENTRY, SUBSYSTEM and
1716 INITIAL_SYMBOL_CHAR.
1717 * emulparams/armpe.sh: Likewise.
1718 * emulparams/morepe.sh: Likewise.
1719 * emulparams/ppcpe.sh: Likewise.
1720 * emulparams/i386pe.sh (ENTRY): Define as _mainCRTStartup.
1721 (SUBSYSTEM): Define as PE_DEF_SUBSYSTEM.
1722
1723 Fri Sep 10 00:22:50 1999 Jeffrey A Law (law@cygnus.com)
1724
1725 * emulparms/elf64hppa.sh (LIB_PATH): Define.
1726
1727 * emulparms/elf64hppa.sh (OTHER_READONLY_SECTIONS): Put stubs before
1728 unwinders so that they are closer to the text section.
1729 (OTHER_BSS_SECTIONS): Define.
1730 (EXECUTABLE_SYMBOLS): Provide __SYSTEM_ID and _FPU_STATUS.
1731 (INIT_START, INIT_END): Define.
1732 (FINI_START, FINI_END): Define.
1733 * scripttempl/elf.sc: Add support for INIT_START, INIT_END,
1734 FINI_START, FINI_END and OTHER_BSS_SECTIONS.
1735
1736 Thu Sep 9 21:43:58 1999 Jeffrey A Law (law@cygnus.com)
1737
1738 * emulparms/elf64hppa.sh (TEXT_START_ADDR): Move up one page.
1739 (DATA_ADDR): Define.
1740
1741 1999-09-09 Stan Shebs <shebs@andros.cygnus.com>
1742
1743 * emulparams/d10velf.sh (READONLY_START_ADDR): Set to 0x2000004.
1744
1745 1999-09-09 Andreas Schwab <schwab@suse.de>
1746
1747 * ld.texinfo: Fix arguments of @var to not contain punctuation.
1748
1749 Thu Sep 9 05:52:34 1999 Jeffrey A Law (law@cygnus.com)
1750
1751 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Define.
1752
1753 1999-09-08 Ulrich Drepper <drepper@cygnus.com>
1754
1755 * emulparams/elf64hppa.sh (ELFSIZE): New. Set to 64.
1756
1757 Wed Sep 8 00:07:39 1999 Jeffrey A Law (law@cygnus.com)
1758
1759 * emulparms/elf64hppa.sh (ENTRY): Define to main.
1760
1761 1999-09-03 Scott Bambrough <scottb@netwinder.org>
1762
1763 * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1764 target "arm*-*-linux-gnu*"
1765
1766 1999-09-04 Steve Chamberlain <sac@pobox.com>
1767
1768 * configure.tgt (pjl-*-*, pj-*-*): New targets.
1769 * emulparams/pjelf.sh: New file.
1770 * emulparams/pjlelf.sh: New file.
1771 * scripttempl/pj.sc: New file.
1772 * Makefile.am (ALL_EMULATIONS): Add epjelf.o and epjlelf.o.
1773 (epjelf.o, epjlelf.o): New targets.
1774 * Makefile.in: Rebuild.
1775
1776 Fri Sep 3 20:17:08 1999 Jeffrey A Law (law@cygnus.com)
1777
1778 * emulparams/elf64hppa.sh (MAXPAGESIZE): Define.
1779 (OTHER_READONLY_SECTIONS, DATA_PLT): Likewise.
1780
1781 Thu Sep 2 14:32:03 1999 Jeffrey A Law (law@cygnus.com)
1782
1783 * emulparams/elf64hppa.sh: New file.
1784 * configure.tgt (hppa*w-*-*): Use elf64hppa emulation.
1785 * Makefile.am (ALL_64_EMULATIONS): Add eelf64hppa.o
1786 (eelf64hppa.c): Add dependencies.
1787 * Makefile.in: Rebuilt.
1788
1789 1999-08-25 Philip Blundell <pb@nexus.co.uk>
1790
1791 * emulparams/armelf.sh (OTHER_BSS_SYMBOLS): Add __end__.
1792 * emulparams/armelf_linux.sh: Likewise.
1793 * emulparams/armelf_linux26.sh: Likewise.
1794
1795 1999-08-24 Nick Clifton <nickc@cygnus.com>
1796
1797 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
1798
1799 * configure.tgt (arm-*-netbsd*): New target.
1800 * Makefile.am (ALL_EMULATIONS): Add earmnbsd.o.
1801 (earmnbsd.c): New rule with deps.
1802 * Makefile.on: Regenerate.
1803 * emulparams/armnbsd.sh: New file.
1804
1805 1999-08-23 Nick Clifton <nickc@cygnus.com>
1806
1807 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Define.
1808 Implement --base-file command line switch.
1809
1810 * emultempl/elf32.em: Add ability for individual targets to have
1811 their own command line switches by defining PARSE_AND_LIST_ARGS.
1812
1813 1999-08-19 Andreas Schwab <schwab@suse.de>
1814
1815 * configure.host: Use ${CC} instead of gcc for finding compiler
1816 related files.
1817
1818 1999-08-11 Nick Clifton <nickc@cygnus.com>
1819
1820 * scripttempl/mcorepe.sc (OUTPUT_FORMAT): Fix typo.
1821
1822 1999-08-09 Mark Elbrecht <snowball3@bigfoot.com>
1823
1824 * scripttempl/i386go32.sc: Handle g++ exception sections.
1825
1826 1999-08-09 Ian Lance Taylor <ian@zembu.com>
1827
1828 From Wally Iimura <iimura@microunity.com>:
1829 * ldlang.c (lang_size_sections): When checking whether an address
1830 is within a region, don't get confused by wrapping around at the
1831 end of the address space.
1832
1833 1999-08-08 Ian Lance Taylor <ian@zembu.com>
1834
1835 * ldlang.c (wild_doit): Update for renaming of SEC_SHORT to
1836 SEC_SMALL_DATA.
1837
1838 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
1839 MKDEP. Rebuild dependencies.
1840 * Makefile.in: Rebuild.
1841
1842 1999-08-08 Jakub Jelinek <jj@ultra.linux.cz>
1843
1844 * configure.host (sparc-*-linux-gnu*): New host.
1845 (sparc64-*-linux-gnu*): New host.
1846
1847 1999-08-06 Ian Lance Taylor <ian@zembu.com>
1848
1849 * lexsup.c (is_num): Reindent.
1850 (parse_args): Mention program name in error message.
1851
1852 * emultempl/ostring.sed: Rename from stringify.sed.
1853 * emultempl/astring.sed: New file.
1854 * Makefile.am (stringify.sed): New target.
1855 (GEN_DEPENDS): Change $(srcdir)/emultempl/stringify.sed to
1856 stringify.sed.
1857 * configure.in: Define and substitute STRINGIFY.
1858 * emultempl/*.em: Use stringify.sed from build directory rather
1859 than source directory.
1860 * emultempl/elf32.em: Use stringify.sed rather than inline sed
1861 script.
1862 * emultempl/gld960.em, emultempl/gld960c.em: Likewise.
1863 * emultempl/hppaelf.em, emultempl/linux.em: Likewise.
1864 * emultempl/lnk960.em, emultempl/sunos.em: Likewise.
1865 * configure, Makefile.in: Rebuild.
1866
1867 1999-08-05 Donn Terry <donn@interix.com>
1868
1869 * emulparams/i386pe.sh: Define ENTRY, SUBSYSTEM, and
1870 INITIAL_SYMBOL_CHAR.
1871 * emulparams/i386pe_posix.sh: New file.
1872 * Makefile.am (YACC): If bison is not in the source tree, use
1873 @YACC@ rather than bison -y.
1874 (LEX): If flex is not in the source tree, use @LEX@ rather than
1875 flex.
1876 (ALL_EMULATIONS): Add ei386pe_posix.o.
1877 (ei386pe_posix.c): New target.
1878 * configure.tgt (i[3456]86-*-interix*): New target.
1879 * configure.host (i[3456]86-pc-interix*): New host.
1880 * Makefile.in: Rebuild.
1881
1882 1999-08-03 Ian Lance Taylor <ian@zembu.com>
1883
1884 * emulparams/elf32ppc.sh (MAXPAGESIZE): Change to 0x10000.
1885 * emulparams/elf32ppclinux.sh (MAXPAGESIZE): Likewise.
1886
1887 1999-08-03 H.J. Lu <hjl@gnu.org>
1888
1889 * Makefile.am (ALL_EMULATIONS): Remove ego32.o.
1890 (ego32.c): Remove.
1891 * Makefile.in: Rebuild.
1892
1893 1999-07-22 Philip Blundell <pb@nexus.co.uk>
1894
1895 * emulparams/armelf_linux26.sh (DATA_START_SYMBOLS): Define.
1896 (OTHER_BSS_SYMBOLS, OTHER_BSS_END_SYMBOLS): Likewise.
1897 * emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Define.
1898
1899 * configure.tgt (arm*-*-uclinux*, thumb-*-uclinux*,
1900 thumb-*-linux-gnu*): New targets.
1901
1902 1999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
1903
1904 * scripttempl/i386go32.sc: Add handling of linkonce sections.
1905
1906 * configure.bat: Remove; obsolete.
1907 * emulparams/go32.sh: Remove; obsolete.
1908 * scripttempl/go32coff.sc: Remove; obsolete.
1909
1910 1999-07-21 H.J. Lu <hjl@gnu.org>
1911
1912 * configure.tgt (mips*el-*-vxworks*): New target.
1913
1914 1999-07-21 Brad M. Garcia <bgarcia@fore.com>
1915
1916 * configure.tgt (i[3456]86-*-vxworks*): New target.
1917
1918 Tue Jul 20 15:18:46 1999 Bob Manson <manson@charmed.cygnus.com>
1919
1920 * ldlang.c (lang_gc_sections): Only handle the start symbol
1921 specially if there is one.
1922
1923 Mon Jul 19 14:19:14 1999 Mark P. Mitchell <mark@codesourcery.com>
1924
1925 * emulparams/elf32bmipn32.sh (OTHER_RELOCATING_SECTIONS): Add
1926 .MIPS.events and .MIPS.content handling.
1927 * emulparams/elf64bmip.sh (OTHER_RELOCATING_SECTIONS): Likewise.
1928
1929 1999-07-17 Nick Clifton <nickc@cygnus.com>
1930
1931 * ldlang.c (get_target): New function: Return true iff the
1932 given target is the target being sought.
1933 (stricpy): New function: Like strcpy but convert to lower
1934 case as well.
1935 (strcut): New function: Like strstr but remove the located
1936 substring as well.
1937 (name_compare): New function: Compute a compatability rating
1938 for two target names.
1939 (winner): New variable: Best target found by
1940 closest_target_match() so far.
1941 (closest_target_match): New function: Find the target which is
1942 the closest match to the original target.
1943 (get_first_input_target): New function: Find the target format
1944 of the first of the linker's input file.
1945 (open_output): Be more clever about deciding the output target
1946 format.
1947
1948 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
1949
1950 * emulparams/elf64_sparc.sh: Add 64-bit directories to native LIB_PATH.
1951
1952 Thu Jul 15 15:55:15 1999 Mark P. Mitchell <mark@codesourcery.com>
1953
1954 * configure.host: Set up HOSTING_CRT0 and HOSTING_LIBS for IRIX6.
1955
1956 1999-07-15 Ian Lance Taylor <ian@zembu.com>
1957
1958 * configure.in: Bump version number to 2.9.5.
1959 * configure: Rebuild.
1960
1961 1999-07-14 Richard Henderson <rth@cygnus.com>
1962
1963 * ldlang.c (wild_doit): Copy SEC_SHORT to output section.
1964
1965 * scripttempl/elf.sc: Re-order .rel[a].foo outputs to the
1966 same order seen for the main sections. Add
1967 OTHER_READONLY_RELOC_SECTIONS and OTHER_GOT_RELOC_SECTIONS.
1968
1969 1999-07-12 Andreas Schwab <schwab@suse.de>
1970
1971 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Fill in
1972 structure initializations.
1973
1974 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Add missing
1975 comma in initializer.
1976
1977 1999-07-11 Ian Lance Taylor <ian@zembu.com>
1978
1979 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
1980 as appropriate. Fill in structure initializations.
1981
1982 1999-07-10 Ian Lance Taylor <ian@zembu.com>
1983
1984 * ldfile.c: Revert patch of 1999-07-08.
1985 (ldfile_try_open_bfd): If we are searching for the file, skip
1986 files with an incompatible architecture.
1987
1988 1999-07-09 Nick Clifton <nickc@cygnus.com>
1989
1990 * scripttempl/armcoff.sc (OUTPUT_FORMAT): Include big endian and
1991 little endian formats.
1992
1993 1999-07-08 Felix Lee <flee@cygnus.com>
1994
1995 * scripttempl/mcorepe.sc: fix quoting problem, for bash 2.x
1996
1997 1999-07-08 Jakub Jelinek <jj@ultra.linux.cz>
1998
1999 * ldfile.c (ldfile_open_file_search): Skip libraries made for
2000 incompatible architectures in the search path. Let the user know
2001 about any such skips.
2002
2003 Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
2004
2005 * configure.tgt (hppa*-linux-gnu*): New target.
2006
2007 1999-07-07 Mark Mitchell <mark@codesourcery.com>
2008
2009 * Makefile.am (ALL_64_EMULATIONS): Add eelf64bmip.
2010 (eelf64bmip): New target.
2011 * Makefile.in: Regenerated.
2012 * configure.tgt (mips-sgi-irix6*): Add 64-bit emulation.
2013 * emulparams/elf64bmip.sh: New file.
2014
2015 1999-07-05 Nick Clifton <nickc@cygnus.com>
2016
2017 * emultempl/pe.em (after_open): Abort if input format is ARM and
2018 output format is not.
2019 * emultempl/armcoff.em (after_open): Abort if input format is ARM
2020 and output format is not.
2021 * emultempl/armelf.em (after_open): Abort if input format is ARM
2022 and output format is not.
2023
2024 1999-07-02 Ian Lance Taylor <ian@zembu.com>
2025
2026 * ldlang.c: Revert change of 1999-06-23.
2027
2028 1999-06-30 Mark Mitchell <mark@codesourcery.com>
2029
2030 * Makefile.am (ALL_EMULATIONS): Add eelf32bmipn32.o.
2031 (eelf32bmipn32.c): New target.
2032 * Makefile.in: Regenerated.
2033 * configure.tgt (mips-sgi-irix6*): Make n32 the default
2034 emulation.
2035 * emulparams/elf32bmipn32.sh: New file.
2036
2037 1999-06-28 Jim Pick <jim@jimpick.com>
2038
2039 * emultempl/armelf.em: Added code so that .xs linker scripts are
2040 called so that ARM shared libraries are built correctly.
2041
2042 1999-06-22 Mark Mitchell <mark@codesourcery.com>
2043
2044 * ldmain.c (main): Initialize link_info.init_function and
2045 link_info.fini_function.
2046 * lexsup.c (OPTION_INIT): New macro.
2047 (OPTION_FINI): Likewise.
2048 (ld_options): Add descriptions for them.
2049 (parse_args): Handle them.
2050
2051 1999-06-23 Ian Lance Taylor <ian@zembu.com>
2052
2053 * ldlang.c (section_already_linked): Only discard link once
2054 sections if we are building constructors.
2055
2056 1999-06-22 Nick Clifton <nickc@cygnus.com>
2057
2058 * ld.texinfo (Location Counter): Describe behaviour of
2059 location counter inside section statements.
2060
2061 1999-06-20 Mark Mitchell <mark@codesourcery.com>
2062
2063 * scripttempl/elf.sc (WRITABLE_RODATA): New variable for
2064 controlling whether or not .rodata is in the data segment or the
2065 text segment.
2066
2067 1999-06-18 Nick Clifton <nickc@cygnus.com>
2068
2069 * emultempl/pe.em: Add new command line switch --thumb-entry.
2070 * emultempl/armelf.em: Add new command line switch --thumb-entry.
2071 * emultempl/armcoff.em: Add new command line switch --thumb-entry.
2072 * ld.texinfo: Document new ARM command line switch: --thumb-entry.
2073
2074 1999-06-20 H.J. Lu <hjl@gnu.org>
2075
2076 * configure.in (all_libpath): Accumulate across all enabled targets.
2077
2078 Sun Jun 20 14:10:33 1999 Richard Henderson <rth@cygnus.com>
2079
2080 * emultempl/armelf.em: Watch EMULATION_LIBPATH instead of
2081 DEFAULT_EMULATION.
2082 * emultempl/elf32.em: Likewise.
2083 * emultempl/sunos.em: Likewise.
2084
2085 Fri Jun 18 15:24:48 1999 Richard Henderson <rth@cygnus.com>
2086
2087 * Makefile.am (GENSCRIPTS): Pass EMULATION_LIBPATH, not EMUL.
2088 * configure.in (all_emuls): Add targ_extra_libpath.
2089 (all_libpath, EMULATION_LIBPATH): Define.
2090 * configure.tgt (powerpc-*-linux-gnu*): Define targ_extra_libpath.
2091 * genscripts.sh (LIB_PATH): Define if emulation in EMULATION_LIBPATH.
2092
2093 Mon Jun 14 10:38:36 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2094
2095 * ld.texinfo: Fix use of @item vs. @itemx.
2096
2097 1999-06-13 Ian Lance Taylor <ian@zembu.com>
2098
2099 From Thomas Zenker <thz@lennartz-electronic.de>:
2100 * ldgram.y (attributes_opt): Use attributes_list instead of NAME.
2101 (attributes_list, attributes_string): New nonterminals.
2102 * ldlang.c (lang_set_flags): Add invert parameter. Don't handle
2103 '!'.
2104 * ldlang.c (lang_set_flags): Update declaration.
2105
2106 1999-06-12 Ian Lance Taylor <ian@zembu.com>
2107
2108 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Don't add
2109 entry_symbol as an undefined symbol when doing a relocateable
2110 link. From <jeffdb@goodnet.com>.
2111
2112 1999-06-12 David O'Brien <obrien@freebsd.org>
2113
2114 * configure.tgt: (i[3456]86-*-freebsd*): Now defaults to ELF.
2115
2116 1999-06-09 Nick Clifton <nickc@cygnus.com>
2117
2118 * lexsup.c (help): Restore previous format of output.
2119
2120 1999-06-04 Nick Clifton <nickc@cygnus.com>
2121
2122 * emultempl/pe.em: If compiling for arm_epoc_pe rename
2123 interworking functions to avoid a name space clash.
2124
2125 1999-06-02 Jason Merrill <jason@yorick.cygnus.com>
2126
2127 * scripttempl/v850.sc: Add initp support.
2128
2129 1999-06-02 Nick Clifton <nickc@cygnus.com>
2130
2131 * emultempl/pe.em: Rename global arm interworking functions to
2132 avoid name collision when all targets BFD is built.
2133
2134 1999-05-30 Cort Dougan <cort@attis.cs.nmt.edu>
2135
2136 * Makefile.am (ALL_EMULATIONS): Add eelf32ppclinux.o.
2137 * configure.tgt (powerpc-*-linux-gnu): Use it.
2138 * emulparams/elf32ppclinux.sh: New file.
2139
2140 1999-05-29 Ian Lance Taylor <ian@zembu.com>
2141
2142 * ld.texinfo (Options): Clarify that options which refer to files
2143 must be properly ordered.
2144
2145 1999-05-29 Nick Clifton <nickc@cygnus.com>
2146
2147 * emultempl/armelf.em (..._parse_args): New function: Parse
2148 command line option. Accept arm-elf specific command line option
2149 '-p' or '--no-pipeline-knowledge'.
2150 (..._list_options): New function: Describe the new command line
2151 option.
2152 (..._before_allocation): Pass the value of the new variable
2153 no_pipeline_knowledge to bfd_elf32_arm_process_before_allocation.
2154
2155 * emultemp/armelf_oabi.em (..._before_allocation): Pass zero as
2156 the third parameter to bfd_elf32_arm_process_before_allocation.
2157
2158 1999-05-28 Nick Clifton <nickc@cygnus.com>
2159
2160 * lexsup.c (help): Minor formatting changes.
2161
2162 1999-05-28 Martin Dorey <mdorey@madge.com>
2163
2164 * configure.tgt (i960-*-elf*): New target.
2165 * emulparams/elf32_i960.sh: New file.
2166 * Makefile.am (ALL_EMULATIONS): Add eelf32_i960.o.
2167 (eelf32_i960.c): New target.
2168 * Makefile.in: Rebuild.
2169
2170 1999-05-26 Nick Clifton <nickc@cygnus.com>
2171
2172 * emulparams/armelf_oabi.sh (TEMPLATE_NAME): Set to armelf_oabi.
2173
2174 1999-05-24 Philip Blundell <philb@gnu.org>
2175
2176 * emultempl/armelf.em (before_parse): Set config.dynamic_link and
2177 config.has_shared.
2178 * emulparams/armelf.sh (GENERATE_SHLIB_SCRIPT): Define.
2179 * emulparams/armelf_linux.sh (GENERATE_SHLIB_SCRIPT): Likewise.
2180
2181 1999-04-13 Philip Blundell <philb@gnu.org>
2182
2183 * emultempl/armelf.em: Add definitions related to shared objects
2184 (copied from elf32.em).
2185
2186 Wed May 19 12:44:26 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2187
2188 * Makefile.am (ALL_EMULATIONS): Remove earmlinux.o and
2189 earm26linux.o, add earmelf_linux.o and earmelf_linux26.o.
2190 * Makefile.in: Regenerated.
2191
2192 1999-05-16 Nick Clifton <nickc@cygnus.com>
2193
2194 * emulparams/elf32mcore.sh (GENERATE_SHLIB_SCRIPT): Define.
2195 (TEMPLATE_NAME): Define.
2196
2197 Thu May 13 09:48:09 1999 Joel Sherrill (joel@OARcorp.com)
2198
2199 * configure.tgt (i386-*-rtemself*, sh-*-rtemself*): New targets.
2200 (mips*el-*-rtems*, powerpcle-*-rtems*): New targets.
2201
2202 1999-05-10 DJ Delorie <dj@cygnus.com>
2203
2204 * scripttempl/pe.sc: Specify the output arch, which Ian says is
2205 the Right Thing to do.
2206
2207 * emultempl/pe.em: various changes to parameterize the
2208 target-specific information.
2209 (gld_i386pe_after_open): Detect and fix MS import libraries
2210 by renaming the member objects (which are all named the same).
2211
2212 * pe-dll.c: various changes to parameterize the target-specific
2213 information.
2214 (generate_reloc): support relocs more generically to allow for
2215 expansion.
2216 (pe_exe_build_sections): new; used to add .relocs to .exes
2217 (pe_exe_fill_sections): ditto
2218
2219 1999-05-10 Catherine Moore <clm@cygnus.com>
2220
2221 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
2222 Check for TARGET_IS_arm_epoc_pe.
2223 (gld_${EMULATION_NAME}_before_allocation): Likewise.
2224
2225 1999-05-12 Anthony Green <green@cygnus.com>
2226
2227 * ldlang.c (walk_wild, walk_wild_file, walk_wild_section,
2228 output_section_callback, gc_section_callback): New functions for
2229 generic section walks.
2230 (wild, lang_gc_wild): Use walk_wild.
2231 (wild_file, lang_gc_wild_file): Deleted. Common logic moved to
2232 walk_wild_file.
2233 (wild_section, lang_gc_wild_section): Deleted. Common logic moved
2234 to walk_fild_section. Unique logic moved into callbacks
2235 output_section_callback and gc_section_callback.
2236
2237 1999-04-26 Tom Tromey <tromey@cygnus.com>
2238
2239 * aclocal.m4, configure: Updated for new version of libtool.
2240
2241 1999-04-12 Philip Blundell <pb@nexus.co.uk>
2242
2243 * emulparams/armelf_linux.sh: New file. Support for ARM
2244 GNU/Linux ELF ABI.
2245 * emulparams/armelf_linux26.sh: New file. APCS-26 version of above.
2246 * configure.tgt: For arm*-*-linux-gnu*, set default emulation to
2247 `armelf_linux', and also include `armelf_linux26' and `armelf'.
2248 * Makefile.am: Add rules to make earmlinux.c and earmlinux26.c.
2249 (ALL_EMULATIONS): Add earmlinux.o and earmlinux26.o.
2250 * Makefile.in: Regenerate.
2251
2252 1999-04-11 Richard Henderson <rth@cygnus.com>
2253
2254 * Makefile.am (ALL_EMULATIONS): Add elf_i386_be.o.
2255 * configure.tgt (i[3456]86-*-beos*): Use it.
2256 * emulparams/elf_i386_be.sh: New file.
2257 * Makefile.in: Rebuild.
2258
2259 * configure.in (environ): Detect declaration.
2260 * ldmain.c (main): Don't declare environ.
2261 * sysdep.h (environ): Declare if needed.
2262 * configure, config.in: Rebuild.
2263
2264 1999-04-11 Richard Henderson <rth@cygnus.com>
2265
2266 * ldgram.y (ldgram_vers_current_lang): New.
2267 (vers_defns): Accept `extern "lang" { }' syntax.
2268 * ldlex.l (vers_node_nesting): New.
2269 (V_IDENTIFIER): Accept . and $ in symbols.
2270 (VERS_NODE): Accept `extern "lang" { }' tokens. Nest VERS_NODE states.
2271 * ldlang.c (lang_new_vers_regex): New `lang' argument. Update callers.
2272 (lang_vers_match_lang_c): New function.
2273 (lang_vers_match_lang_cplusplus): New function.
2274 (lang_vers_match_lang_java): New function.
2275 (lang_do_version_exports_section): Fix iteration. Don't free
2276 section contents, as it is still in use by the patterns.
2277
2278 1999-04-10 Richard Henderson <rth@cygnus.com>
2279
2280 * ldmain.c (main): Init link_info.no_undefined.
2281 * lexsup.c: Add command-line option --no-undefined.
2282
2283 1999-04-06 Ian Lance Taylor <ian@zembu.com>
2284
2285 * ld.h (LC_MESSAGES): Never define.
2286 * ldmain.c (main): Don't pass LC_MESSAGES to setlocale if the
2287 system does not define it.
2288
2289 1999-04-06 H.J. Lu <hjl@gnu.org>
2290
2291 * ldmain.h (demangling): Declare.
2292 * ldmain.c (demangling): New global variable.
2293 (main): Initialize demangling.
2294 * ldmisc.c (vfinfo): Don't demangle symbol if ! demangling.
2295 * lexsup.c (ld_options, parse_args): Handle --demangle and
2296 --no-demangle.
2297 * ld.texinfo, ld.1: Document --demangle/--no-demangle.
2298
2299 * ldlex.l (V_IDENTIFIER): Allow '.' in symbol.
2300
2301 1999-04-05 Chris Torek <torek@BSDI.COM>
2302
2303 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Check that
2304 a shared library really exists, avoiding broken symlinks.
2305
2306 * ldfile.c (ldfile_open_file): Generate a better error message if
2307 we can't find a -l file.
2308
2309 1999-04-05 DJ Delorie <dj@cygnus.com>
2310
2311 * configure.tgt (i386-*-pe): add targ_extra_ofiles for other PE
2312 targets (i386-pe and i386-winnt)
2313
2314 1999-04-04 Ian Lance Taylor <ian@zembu.com>
2315
2316 * deffilep.y: Include "sysdep.h" and "ldmisc.h".
2317 (def_file_add_directive): Change return type to void. Remove
2318 unused locals sh_reserve, sh_commit, and j.
2319 (def_ungetc): Always return a value.
2320 (def_lex): Correct parenthesization of || within &&.
2321 * deffile.h (def_file_add_directive): Update declaration.
2322 * pe-dll.c: Include <time.h>, <ctype.h>, and "ldemul.h".
2323 (generate_edata): Remove unused local i.
2324 (quoteput): Add cast to avoid warning.
2325 (pe_dll_generate_def_file): Fix type in format string.
2326 (quick_symbol): Remove unused local blhe.
2327 (pe_dll_generate_implib): Add cast to avoid warning.
2328 (pe_process_import_defs): Remove unused locals ar_head, ar_tail,
2329 and n.
2330 (pe_as16): Comment out.
2331
2332 1999-04-04 Don Bowman <don@pixsci.com>
2333
2334 * configure.tgt: Add mips*-*-vxworks* target.
2335
2336 1999-03-31 Nick Clifton <nickc@cygnus.com>
2337
2338 * Makefile.in (ALL_EMULATIONS): Add earm_epoc_pe.o
2339 Add build rule and dependencies for earm_epoc_pe.c.
2340
2341 * emulparams/arm_epoc_pe.sh: New file.
2342
2343 * configure.tgt: Add 'targ_extra_ofiles' for ARM based PE
2344 targets.
2345
2346 1999-03-31 Philip Blundell <pb@nexus.co.uk>
2347
2348 * configure.tgt: Match `arm*-*-linux-gnu*' not
2349 `armv*-*-linux-gnu'.
2350
2351 1999-03-26 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2352
2353 * scripttempl/elf.sc: Put the .eh_frame and .gcc_except_table
2354 sections in the data segment.
2355
2356 Fri Mar 26 12:05:51 1999 Catherine Moore <clm@cygnus.com>
2357
2358 * ld.h (wildcard_spec): Add exclude_name.
2359 * ldgram.y (EXCLUDE_FILE): New token.
2360 (wildcard_spec): Set exclude_name.
2361 (file_NAME_list): Recognize EXCLUDE_FILE.
2362 * ldlang.c (wild_section): Check for excluded files.
2363 (print_wild_statement): Print excluded files.
2364 (lang_add_wild): New argument exclude_filename.
2365 Set exclude_filename.
2366 * ldlang.h (lang_wild_statement_type): Add exclude_filename.
2367 * ldlex.l: New token EXCLUDE_FILE.
2368 * mri.c (mri_draw_tree): Add argument to lang_add_wild.
2369 * scripttempl/elf.sc (CTOR, DTOR): Exclude crtend.o from ctor wildcard.
2370 Reorder sorted and unsorted ctors.
2371 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
2372 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
2373 * scripttempl/elfppc.sc (CTOR, DTOR): Likewise.
2374
2375 1999-03-26 Nick Clifton <nickc@cygnus.com>
2376
2377 * ldlang.c (lang_gc_sections): If entry_symbol is not defined,
2378 default to "start".
2379
2380 1999-03-03 Nick Clifton <nickc@cygnus.com>
2381
2382 * scripttempl/elf.sc: Add explicit placements for the .eh_frame
2383 and .gcc_except_table sections.
2384
2385 Wed Mar 3 09:13:34 1999 Catherine Moore <clm@cygnus.clm>
2386
2387 * scripttempl/elf.sc: Remove .end.ctors and .end.dtors
2388 sections. Reorder .ctors section entries.
2389 * scripttempl/elfd10v.sc: Likewise.
2390 * scripttempl/elfd30v.sc: Likewise.
2391 * scripttempl/elfppc.sc: Likewise.
2392
2393 1999-02-26 Jim Lemke <jlemke@cygnus.com>
2394
2395 * ldmain.c (main): Wrong error msg for -r and --mpc860c0.
2396
2397 1999-02-25 Nick Clifton <nickc@cygnus.com>
2398
2399 * ldlang.c (lang_check_section_addresses): Remove extraneous
2400 backslash.
2401
2402 Thu Feb 25 15:07:24 1999 Catherine Moore <clm@cygnus.com>
2403
2404 * scripttempl/elf.sc: Don't gather .ctor and .dtor sections
2405 for relocateable links.
2406 * scripttempl/elfd10v.sc: Likewise.
2407 * scripttempl/elfd30v.sc: Likewise.
2408 * scripttempl/elfppc.sc: Likewise.
2409
2410 1999-02-22 Jim Lemke <jlemke@cygnus.com>
2411
2412 * ldint.texinfo: remove extraneous right brace.
2413 * ldmain.c (main): initialize and check option "mpc860c0".
2414 * lexsup.c (ld_options, parse_args): add option "mpc860c0".
2415
2416 Wed Feb 17 12:10:06 1999 Stan Cox <scox@cygnus.com>
2417
2418 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Remove special
2419 .reginfo section handling.
2420 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Likewise.
2421 * emulparams/elf32elmip.sh (INITIAL_READONLY_SECTIONS): Removed
2422 * emulparams/elf32ebmip.sh (INITIAL_READONLY_SECTIONS): Removed
2423
2424 1999-02-17 Nick Clifton <nickc@cygnus.com>
2425
2426 Patch from: Scott Bambrough <scottb@corelcomputer.com>
2427
2428 * configure.tgt: Added armv*-*-linux-gnu to $targ_emul
2429 recognition.
2430
2431 Wed Feb 17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2432
2433 * emultempl/armelf_oabi.em
2434 (bfd_elf32_arm_allocate_interworking_sections,
2435 bfd_elf32_arm_get_bfd_for_interworking,
2436 bfd_elf32_arm_process_before_allocation): Define them to use the
2437 old ABI versions of the functions.
2438
2439 Tue Feb 16 16:48:19 1999 Ian Lance Taylor <ian@cygnus.com>
2440
2441 * configure.in: Change AC_PREREQ to 2.13. Change AM_PROG_INSTALL
2442 to AC_PROG_INSTALL. Change AM_EXEEXT to AC_EXEEXT.
2443 * Makefile.am (earmelf_oabi.c): Changes spaces to tab.
2444 * acconfig.h: Remove.
2445 * aclocal.m4: Rebuild.
2446 * configure: Rebuild.
2447 * Makefile.in: Rebuild.
2448
2449 Mon Feb 15 18:21:48 1999 Vladimir N. Makarov <vmakarov@cygnus.com>
2450
2451 * ldexp.h (struct etree_value_type): Change valid onto valid_p.
2452
2453 * ldexp.c (new_abs): Ditto.
2454 (new_rel, new_rel_from_section, fold_binary, invalid, fold_name,
2455 exp_fold_tree, exp_binop, exp_trinop, stat_alloc,
2456 exp_get_abs_int): Ditto
2457
2458 * ldlang.c (print_assignment, lang_size_sections,
2459 lang_do_assignments): Ditto.
2460
2461 1999-02-11 Nick Clifton <nickc@cygnus.com>
2462
2463 * ldlang.c (lang_check_section_addresses): New function: Check
2464 addresses assigned to section for overlaps.
2465 (lang_process): Call lang_check_section_addresses if suitable.
2466
2467 * ld.h: Add new boolean field to args_type structure:
2468 'check_section_addresses'.
2469
2470 * ldmain.c: Initialise check_section_addresses field to true.
2471
2472 * lexsup.c: Add new command line options '--no-check-sections' and
2473 '--check-sections'.
2474
2475 * ld.texinfo: Document new command line options '--check-sections'
2476 and '--no-check-sections'.
2477
2478 1999-02-08 Nick Clifton <nickc@cygnus.com>
2479
2480 * configure.tgt: Add support for StrongARM target.
2481
2482 Wed Feb 3 19:41:01 1999 Ian Lance Taylor <ian@cygnus.com>
2483
2484 * ldctor.c (ldctor_build_sets): Just set SEC_KEEP once. Check for
2485 an owner of a section before using it to look up a reloc type.
2486 Don't set SEC_KEEP for the absolute section.
2487
2488 Mon Feb 1 11:39:46 1999 Catherine Moore <clm@cygnus.com>
2489
2490 * Makefile.am (earmelf_oabi.o): New.
2491 * Makefile.in: Regenerate.
2492 * configure.tgt (arm-*-oabi): New.
2493 (thumb-*-oabi): New.
2494 * emulparams/armelf_oabi.sh: New.
2495 * emultempl/armelf_oabi.em: New.
2496
2497 1999-01-31 17:57:31 1998 Michael Meissner <meissner@cygnus.com>
2498
2499 * scripttempl/elfppc.sc: Add support for -fleading-underscores
2500 switch in all linker generated symbols.
2501
2502 * configure.tgt (powerpc{,le}*-*-vxworks): Add as aliases for
2503 powerpc{,le}-*-eabi.
2504
2505 Wed Jan 20 17:01:48 1999 Ian Lance Taylor <ian@cygnus.com>
2506
2507 * configure.tgt (i[3456]86-*-solaris2*): New target. From Pavel
2508 Roskin <pavel_roskin@geocities.com>.
2509
2510 1999-01-19 Nick Clifton <nickc@cygnus.com>
2511
2512 * ldlang.c (lang_size_sections): Count loadable sections as
2513 contributing to the size of the current segment.
2514
2515 1999-01-15 Nick Clifton <nickc@cygnus.com>
2516
2517 * ldlang.c (lang_size_sections): Only update the current
2518 address of a region if the section just placed into it is an
2519 allocated section.
2520
2521 1999-01-12 Nick Clifton <nickc@cygnus.com>
2522
2523 * Makefile.am: Replace efr30.o with eelf32fr30.o.
2524 * Makefile.in: Regenerate.
2525
2526 * configure.tgt: Replace fr30 with elf32fr30.
2527
2528 * emulparams/elf32fr30.sh: New file: Replaces fr30.sh, and uses
2529 generic elf.sc script. Also replaces the .stack section with a
2530 user definable symbol __stack.
2531
2532 1999-01-11 Nick Clifton <nickc@cygnus.com>
2533
2534 * scripttempl/fr30.sc: Fill .init and .fini sections with NOP
2535 pattern.
2536
2537 1999-01-03 Ken Raeburn <raeburn@cygnus.com>
2538
2539 * Makefile.am (check-DEJAGNU): No longer provide HOSTING_EMU,
2540 HOSTING_CRT0, HOSTING_LIBS; the test suite can extract them from
2541 configure.host and configure.tgt now.
2542 * Makefile.in: Rebuild.
2543
2544 1998-12-27 Ulrich Drepper <drepper@cygnus.com>
2545
2546 * lexsup.c (parse_args, case OPTION_RPATH): Avoid adding duplicate
2547 elements to rpath.
2548
2549 Thu Dec 10 11:12:28 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2550
2551 * Makefile.am (ALL_EMULATIONS): Remove pe-dll.o and deffilep.o.
2552 (ALL_EMUL_EXTRA_OFILES): New variable. Put them here instead.
2553 * configure.in: Set EMUL_EXTRA_OFILES to $(ALL_EMUL_EXTRA_OFILES)
2554 if configuring with all targets.
2555 * configure, Makefile.in, aclocal.m4: Rebuild.
2556
2557 * emultempl/pe.em (pe_enable_stdcall_fixup): Make static.
2558 (pe_dll_do_default_excludes): Removed, unused.
2559 (pe_def_file, pe_dll_export_everything, pe_dll_kill_ats,
2560 pe_dll_stdcall_aliases): Don't initialize them, this file may be
2561 compiled more than once.
2562 * pe-dll.c (pe_def_file, pe_dll_export_everything,
2563 pe_dll_do_default_excludes, pe_dll_kill_ats,
2564 pe_dll_stdcall_aliases): Define and initialize them here instead.
2565 (generate_reloc): Fix allocation of reloc_addresses array to use
2566 bfd_vma instead of unsigned long. Fix element size in qsort call.
2567 (reloc_sort): Compare pointers to bfd_vma instead of unsigned
2568 long.
2569
2570 Mon Dec 7 21:10:09 1998 J.J. van der Heijden <j.j.vanderheijden@student.utwente.nl>
2571
2572 * configure.tgt (i[3456]86-*-mingw32*): Add cygwin target specific
2573 files.
2574
2575 Sun Dec 6 16:33:33 1998 Ian Lance Taylor <ian@cygnus.com>
2576
2577 * configure.tgt (m68*-*-gnu*): New target. From Aymeric Vincent
2578 <aymeric.vincent@emi.u-bordeaux.fr>.
2579
2580 1998-12-04 Nick Clifton <nickc@cygnus.com>
2581
2582 * emulparams/fr30.sh (TEXT_START_ADDR): Change TEXT_START_ADDR
2583 from 0x100000 to 0x10000 so that it fits in 20 bits.
2584
2585 Sat Nov 28 22:32:20 1998 Ian Lance Taylor <ian@cygnus.com>
2586
2587 * ldemul.h (ldemul_recognized_file): Declare.
2588
2589 Sat Nov 28 22:30:55 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2590
2591 * ldlang.c (lang_add_wild): Don't pretend that there is an input
2592 file if the filename is a wildcard pattern.
2593
2594 1998-11-25 DJ Delorie <dj@cygnus.com>
2595
2596 * ldemul.h (ld_emulation_xfer_struct): new hook "recognized_file"
2597 * ldemul.c (ldemul_recognized_file): new function, new hook
2598 * ldint.texinfo: document new hook.
2599 * ldlang.c (load_symbols): call recognized_hook for all objects we
2600 do recognize, in case the emulation needs to handle them
2601 specially. PE DLLs use this.
2602 * pe-dll.c (pe_dll_generate_def_file): take out hack and debug
2603 printfs
2604 * emultempl/pe.em (gld_i386_recognized_file): new function
2605 (gld_i486_unrecognized_file): take out hack
2606
2607 1998-11-23 DJ Delorie <dj@cygnus.com>
2608
2609 * pe-dll.c (fill_edata): fill in timestamp
2610 (make_head): name object files sequentially to ensure
2611 they link in the right order.
2612 (make_tail): same here
2613 (pe_process_import_defs): use sequential names for bfds to ensure
2614 proper link order.
2615 (pe_implied_import_dll): new function; handles linking directly
2616 against DLLs by simulating IMPORTS directives. * emultempl/pe.em
2617 (gld_i386pe_before_parse): hack bfd to not recognize .dll files
2618 via bfd_pe_dll_not_recognized_hack
2619
2620 1998-11-23 DJ Delorie <dj@cygnus.com>
2621
2622 * emultempl/pe.em (gld_i386pe_parse_args): Conditionalize call to
2623 pe_dll_add_excludes
2624
2625 Mon Nov 23 14:36:18 1998 Nick Clifton <nickc@cygnus.com>
2626
2627 * emultempl/pe.em (after_parse): Only create an undefined entry
2628 symbol if one has been specified.
2629
2630 1998-11-23 DJ Delorie <dj@cygnus.com>
2631
2632 * emultempl/pe.em (gld_i386pe_after_open): call
2633 pe_process_import_defs
2634 * pe-dll.c (pe_dll_generate_def_file): calculate BASE from
2635 pe_data, only print if actually set. Print version only if
2636 set.
2637 (save_relocs): save relocs for both input and output.
2638 (make_one): support internal/external different names.
2639 (pe_dll_generate_implib): support new make_one
2640 (pe_process_import_defs): new function; handles IMPORT
2641 directives in .def files.
2642
2643 Fri Nov 20 13:06:49 1998 Nick Clifton <nickc@cygnus.com>
2644
2645 * ldmisc.c (vfinfo): Cope with empty symbol names.
2646
2647 Thu Nov 19 13:31:15 1998 Nick Clifton <nickc@cygnus.com>
2648
2649 * scripttempl/pe.sc: Add provision of '_end' symbol.
2650
2651 Wed Nov 18 18:18:43 1998 Geoffrey Noer <noer@cygnus.com>
2652
2653 * configure.tgt: change refs from cygwin32* to cygwin*.
2654 * aclocal.m4: regenerate
2655 * configure.in: don't need to call AM_CYGWIN32.
2656 * configure: regenerate
2657
2658 Mon Nov 16 22:14:07 1998 DJ Delorie <dj@cygnus.com>
2659
2660 * emultempl/pe.em (gld_i386_finish): generate import library
2661 * deffile.h: add hint member.
2662 * pe-dll.c (pe_dll_generate_implib): New function with helpers;
2663 generates the import library directly from the export table.
2664 (fill_edata): remember the actual hint for the import library.
2665
2666 Sat Nov 14 14:36:24 1998 Ian Lance Taylor <ian@cygnus.com>
2667
2668 * ld.1: Some cleanups from NOKUBI Hirotaka <hnokubi@yyy.or.jp>.
2669
2670 Thu Nov 12 19:21:57 1998 Dave Brolley <brolley@cygnus.com>
2671
2672 * po/ld.pot: Regenerated.
2673 * po/POTFILES.in: Regenerated.
2674 * configure: Regenerated.
2675 * aclocal.m4: Regenerated.
2676 * Makefile.in: Regenerated.
2677
2678 Wed Nov 11 18:10:15 1998 DJ Delorie <dj@cygnus.com>
2679
2680 * pe-dll.c (generate_reloc): don't output PE relocs for sections
2681 that won't be loaded.
2682
2683 Wed Nov 11 13:44:54 1998 DJ Delorie <dj@cygnus.com>
2684
2685 * pe-dll.c (fill_edata): don't strip underscores
2686
2687 Tue Nov 10 21:28:19 1998 DJ Delorie <dj@cygnus.com>
2688
2689 * ld.texinfo: added i386pe option summary
2690
2691 Tue Nov 10 17:53:17 1998 DJ Delorie <dj@cygnus.com>
2692
2693 * pe-dll.c (process_def_file): properly note undefined exported
2694 symbols, clean up old code.
2695 (pe_dll_generate_def_file): don't crash if pe_def_file is NULL
2696 * emultempl/pe.em (gld_i386_parse_args): add
2697 (en/dis)able-stdcall-fixups
2698 (pe_fixup_stdcalls): warn about stdcall fixups
2699 (gld_i386_unrecognized_file): make exported symbols undefs so that
2700 archive members get pulled in
2701
2702 Tue Nov 10 14:50:51 1998 Catherine Moore <clm@cygnus.com>
2703
2704 * scripttempl/elfd10v.sc: Add KEEP attribute to .init,
2705 .fini, .dtors and .ctors. Add .data and .text
2706 wildcards to support section garbage collection.
2707
2708 Mon Nov 9 22:52:50 1998 DJ Delorie <dj@indy.delorie.com>
2709
2710 * deffilep.y: properly handle relocs with multiple def_files,
2711 cache import module names
2712
2713 Mon Nov 9 22:44:58 1998 DJ Delorie <dj@cygnus.com>
2714
2715 * pe-dll.c (process_def_file): don't assume exports won't move
2716 during a realloc
2717
2718 Mon Nov 9 16:41:30 1998 DJ Delorie <dj@cygnus.com>
2719
2720 * pe-dll.c: New file; direct support for PE DLLs
2721 * deffile.h: New file; direct support for PE DLLs
2722 * deffilep.y: New file; direct support for PE DLLs
2723 * emultempl/pe.em: add direct support for PE DLLs
2724 * configure.tgt: allow target-specific extra files
2725 * configure.in: allow target-specific extra files
2726 * ldlang.c (lang_add_assignment): return the assignment so that
2727 one can change the value later based on the object files (pe-dll
2728 DEF files do this)
2729 * ldint.texinfo: add section for emulation walkthrough
2730 * Makefile.am: add new files and target-specific extra files
2731 * emultempl/pe.em (gld_i386_list_options): list dll-specific
2732 options.
2733 * pe-dll.c (process_def_file): auto-export everything if
2734 nothing is otherwise exported.
2735
2736 Wed Nov 4 16:39:18 1998 Nick Clifton <nickc@cygnus.com>
2737
2738 * Makefile.am: Add support for FR30 target.
2739 * configure.tgt: Add support for FR30 target.
2740 * Makefile.in: Regenerate.
2741 * emulparams/fr30.sh: New file.
2742 * scripttemp/fr30.sc: New file.
2743
2744 Mon Nov 2 14:47:15 1998 Catherine Moore <clm@cygnus.com>
2745
2746 * ldmain.c (main): Don't report error for dynamic links and
2747 --gc-sections.
2748
2749 1998-10-26 16:05 Ulrich Drepper <drepper@cygnus.com>
2750
2751 * lexsup.c (ld_options): Change text of -O to Optimize output file".
2752 (parse_args): Set link_info.optimize based on -O argument.
2753 * ldmain.c (main): Initialize link_info.optimze to false.
2754 * ld.texinfo: Describe -O option.
2755 * ld.1: Likewise.
2756
2757 Mon Oct 12 14:29:56 1998 Nick Clifton <nickc@cygnus.com>
2758
2759 * scripttempl/v850.sc: Move .sbss and .scommon sections into their
2760 own segment, so that they can be next to the .bss section and so
2761 initialised by the same piece of code.
2762
2763 Fri Oct 9 15:59:52 1998 Catherine Moore <clm@cygnus.com>
2764
2765 * scripttempl/elf.sc: Merge .sdata.* etc sections.
2766 * ldctor.c (ldctor_build_sets): Set SEC_KEEP for
2767 ctor sections.
2768
2769 Mon Oct 5 09:40:43 1998 Catherine Moore <clm@cygnus.com>
2770
2771 * ldmain.c (main): Error if --gc-sections and
2772 dyanmic linking.
2773 * scripttempl/v850.sc: Add KEEP attribute to .init,
2774 .fini, .dtors and .ctors. Add .data and .text
2775 wildcards to support section garbage collection.
2776
2777 Wed Sep 30 11:19:15 1998 Nick Clifton <nickc@cygnus.com>
2778
2779 * scripttempl/v850.sc: Rename .call_table section to
2780 .call_table_data and create a new section called
2781 .call_table_text.
2782
2783 Sun Sep 20 00:43:26 1998 Ian Lance Taylor <ian@cygnus.com>
2784
2785 * scripttempl/elf.sc: Add alignment at the end of the .bss
2786 section, so that it is included in the memsize of the segment.
2787
2788 Fri Sep 18 13:42:42 1998 Catherine Moore <clm@cygnus.com>
2789
2790 * emultempl/elf32.em (gld_place_orphan): Don't process for
2791 sections with SEC_EXCLUDE flag.
2792
2793 Fri Sep 4 09:24:02 1998 Nick Clifton <nickc@cygnus.com>
2794
2795 * emulparams/d30velf.sh (TEXT_SIZE): Increased to 2000K.
2796 (DATA_SIZE): Increased to 2000K.
2797
2798 Thu Sep 3 17:30:58 1998 Richard Henderson <rth@cygnus.com>
2799
2800 * emulparams/d10velf.sh (TEMPLATE_NAME): Use elf32.
2801
2802 Mon Aug 31 01:06:00 1998 Catherine Moore <clm@cygnus.com>
2803
2804 * Makefile.am: Change armelf.sc to elf.sc
2805 * Makefile.in: Regenerate.
2806
2807 Mon Aug 31 11:12:04 1998 Catherine Moore <clm@cygnus.com>
2808
2809 * emulparams/armelf.sh: Change SCRIPT_NAME to
2810 elf. Change TEXT_START_ADDR to 0x8000. Define
2811 OTHER_TEXT_SECTIONS, OTHER_BSS_SYMBOLS and
2812 OTHER_BSS_END_SYMBOLS.
2813 * scripttempl/elf.sc: Modify to use
2814 OTHER_BSS_END_SYMBOLS.
2815 * scripttempl/elfarm.sc: Remove file.
2816
2817 Tue Aug 18 12:05:34 1998 Catherine Moore <clm@cygnus.com>
2818
2819 * emultempl/armelf.em (gld_armelf_before_allocation):
2820 Add bfd_ prefix to elf32_arm_process_before_allocation
2821 and elf32_arm_allocate_interworking_sections.
2822 (gld_armelf_after_open): Add bfd_ prefix to
2823 elf32_arm_get_bfd_for_interworking.
2824
2825 Fri Aug 14 15:34:29 1998 Ian Lance Taylor <ian@cygnus.com>
2826
2827 * Makefile.am: Rebuild dependencies.
2828 * Makefile.in: Rebuild.
2829
2830 * ldgram.y: Include "ldctor.h".
2831 (statement): Accept SORT around CONSTRUCTORS.
2832 * ldctor.c: Include <ctype.h>.
2833 (constructors_sorted): New global variable.
2834 (ctor_prio, ctor_cmp): New static functions.
2835 (ldctor_build_sets): Sort constructors if requested.
2836 * ldctor.h (constructors_sorted): Declare.
2837 * ldlang.c (print_statement): Print sorted CONSTRUCTORS
2838 correctly.
2839 * scripttempl/elf.sc: Add sort around CONSTRUCTORS.
2840 * ld.texinfo (Output Section Keywords): Document SORT
2841 (CONSTRUCTORS).
2842
2843 Thu Aug 13 12:20:39 1998 Catherine Moore <clm@cygnus.com>
2844
2845 * emulparams/armelf.sh: Define TEMPLATE_NAME to armelf.
2846 * scripttempl/elfarm.sc: Include .glue_7t and .glue7
2847 sections.
2848 * emultempl/armelf.em: New file.
2849
2850 Thu Aug 13 12:52:45 1998 H.J. Lu <hjl@gnu.org>
2851
2852 * Makefile.am (ld.dvi): Use " instead of ' for MAKEINFO.
2853 * Makefile.in: Rebuild.
2854
2855 Tue Aug 11 16:17:01 1998 Catherine Moore <clm@cygnus.com>
2856
2857 * scripttempl/elfarm.sc: Change text start address
2858 back to zero.
2859
2860 Tue Aug 11 10:01:12 1998 Jeffrey A Law (law@cygnus.com)
2861
2862 * emulparms/mn10200.sh (MAX_PAGESIZE): Define to 1.
2863 * emulparms/mn10300.sh (MAX_PAGESIZE): Define to 1.
2864
2865 Sun Aug 9 20:31:27 1998 Catherine Moore <clm@cygnus.com>
2866
2867 * scripttempl/elfarm.sc: Set text start address to
2868 0x8000. Add __bss_end definition.
2869
2870 Sat Aug 1 11:47:37 1998 Catherine Moore <clm@cygnus.com>
2871
2872 * scripttempl/elfarm.sc: New file.
2873 * emulparams/armelf.sh: Set SCRIPT_NAME to elfarm.
2874
2875 Fri Jul 31 15:56:16 1998 Catherine Moore <clm@cygnus.com>
2876
2877 * emulparams/armelf.sh: New file.
2878 * configure.tgt: Recognize thumb-elf and arm-elf.
2879 * Makefile.am (earmelf.o): New.
2880 * Makefile.in: Rebuild.
2881
2882 Fri Jul 24 12:00:57 1998 Ian Lance Taylor <ian@cygnus.com>
2883
2884 * Makefile.am (install-exec-local): Don't remove the file before
2885 checking whether $(bindir) == $(tooldir)/bin. From Maciej
2886 W. Rozycki <macro@ds2.pg.gda.pl>.
2887 * Makefile.in: Rebuild.
2888
2889 * configure.tgt: Recognize h8[35]00*-coff* as well as -hms*.
2890
2891 Thu Jul 23 11:15:12 1998 Ian Lance Taylor <ian@cygnus.com>
2892
2893 * scripttempl/aout.sc: If ALIGNMENT is defined, use it to set
2894 alignment of end symbol.
2895 * scripttempl/elf.sc: Likewise.
2896 * emulparams/sun4.sh (ALIGNMENT): Define.
2897 * emulparams/elf32_sparc.sh (ALIGNMENT): Define.
2898 * ldint.texinfo (emulation parameters): Document ALIGNMENT.
2899
2900 * lexsup.c (parse_args): Add missing break statement.
2901
2902 * ldlang.c (lang_gc_sections_1): Add default case to switch to
2903 avoid warnings.
2904
2905 Tue Jul 14 15:42:17 1998 Richard Henderson <rth@cygnus.com>
2906
2907 * configure.tgt (i?86-*-beos{pe,elf,}*): Recognize.
2908 * Makefile.am (ei386beos.o): New.
2909 * emulparams/i386beos.sh: New file.
2910 * emultempl/beos.em, scripttempl/i386beos.sc: New file.
2911
2912 Tue Jul 14 15:35:42 1998 Richard Henderson <rth@cygnus.com>
2913
2914 * lexsup.c: New option --version-exports-section.
2915 * ld.h (struct args_type): Add version_exports_section.
2916 * ldlang.c (lang_do_version_exports_section): New function.
2917 (lang_process): Call it.
2918
2919 Mon Jul 13 13:20:23 1998 Steve Chamberlain <sac@transmeta.com>
2920
2921 * ldlex.l: Accept ASSERT.
2922 * ldgram.y (exp): Add ASSERT_K case.
2923 * ldexp.h (node_type): Add etree_assert to node_class enum.
2924 (etree_type): Add assert_s field.
2925 (exp_assert): Declare.
2926 * ldexp.c (exp_fold_tree): Handle etree_assert.
2927 (exp_assert): New function.
2928 (exp_print_tree): Handle etree_assert.
2929 * ld.texinfo (Miscellaneous Commands): Document ASSERT.
2930
2931 Wed Jul 8 14:03:12 1998 Ian Lance Taylor <ian@cygnus.com>
2932
2933 * ldgram.y: Change MAX to MAX_K and MIN to MIN_K, to avoid
2934 conflicts with system header files. Change all uses.
2935
2936 * Makefile.am (MAINTAINERCLEANFILES): Define.
2937 * Makefile.in: Rebuild.
2938
2939 Tue Jul 7 18:03:22 1998 Ian Lance Taylor <ian@cygnus.com>
2940
2941 * Makefile.am (ldver.texi): New target.
2942 (ld.info, ld.dvi): Depend upon ldver.texi.
2943 * ld.texinfo: Include ldver.texi. Mention version number on title
2944 page and in top node.
2945 * Makefile.in: Rebuild.
2946
2947 Mon Jul 6 14:55:13 1998 Ian Lance Taylor <ian@cygnus.com>
2948
2949 * configure.tgt (i[3456]86-*-solaris*): New target.
2950
2951 Fri Jul 3 14:19:06 1998 Ian Lance Taylor <ian@cygnus.com>
2952
2953 * ldlang.c (wild_section): Don't get an assertion failure if the
2954 section is discarded.
2955
2956 * scripttempl/pe.sc: Use SORT to sort sections appropriately.
2957 * emultempl/pe.em (sort_by_file_name): Remove.
2958 (sort_by_section_name): Remove.
2959 (sort_sections_1, sort_sections): Remove.
2960 (gld_${EMULATION_NAME}_before_allocation): Don't call
2961 sort_sections.
2962 (hold_section, hold_section_name): New static variables.
2963 (hold_use, hold_text, hold_rdata, hold_data, hold_bss): Likewise.
2964 (gld_${EMULATION_NAME}_place_orphan): Rewrite. Look for a good
2965 place to put the section. Align the section. Sort the input
2966 sections by name.
2967 (gld_${EMULATION_NAME}_place_section): New static function.
2968
2969 * ldlang.c (wild_sort): When sorting by file name, sort by archive
2970 name first.
2971
2972 * emultempl/pe.em (set_pe_subsystem): Don't call
2973 ldlang_add_undef.
2974 (gld_${EMULATION_NAME}_after_parse): New static function.
2975 (ld_${EMULATION_NAME}_emulation): Use new after_parse function
2976 rather than after_parse_default.
2977
2978 * ldgram.y (extern_name_list): Do not require symbols to be
2979 separated by commas.
2980 (ifile_p1): Add EXTERN.
2981 * ldlex.l: Accept EXTERN in BOTH and SCRIPT mode as well as MRI
2982 mode.
2983 * ld.texinfo (Options): Mention that EXTERN is equivalent to -u.
2984 (Miscellaneous Commands): Document EXTERN.
2985
2986 Wed Jul 1 19:40:34 1998 Richard Henderson <rth@cygnus.com>
2987
2988 * ld.h (args_type): Add gc_sections.
2989 * ldgram.y (ldgram_had_keep, KEEP): New.
2990 (input_section_spec_no_keep): Rename from old input_section_spec.
2991 (input_section_spec): New. Recognize KEEP.
2992 * ldlang.c (wild_section): Handle keep sections.
2993 (lang_gc_wild_section, lang_gc_wild_file, lang_gc_wild): New.
2994 (lang_gc_sections_1, lang_gc_sections): New.
2995 (lang_process): Invoke lang_gc_sections.
2996 (lang_add_wild): Add keep argument. Update all callers.
2997 * ldlang.h (lang_wild_statement_struct): Add keep_sections.
2998 * ldlex.l (KEEP): Match it.
2999 * ldmain.c (main): Error on -r and --gc-sections.
3000 * lexsup.c: Add --gc-sections.
3001
3002 * scripttempl/elf.sc: Merge .text.* etc sections appropriately.
3003 Mark startup sections with KEEP.
3004 * scripttempl/elfppc.sc: Likewise.
3005
3006 * ld.texinfo: Update for --gc-sections and KEEP.
3007
3008 Wed Jul 1 15:21:20 1998 Ian Lance Taylor <ian@cygnus.com>
3009
3010 From Peter Jordan <pjordan@chla.usc.edu>:
3011 * scripttempl/i386go32.sc: Correct constructor handling for -u.
3012
3013 Tue Jun 23 15:17:27 1998 Ian Lance Taylor <ian@cygnus.com>
3014
3015 * Makefile.am (install-data-local): Make ldscripts subdirectory.
3016 * Makefile.in: Rebuild.
3017
3018 Tue Jun 23 15:17:04 1998 Mike Stump <mrs@wrs.com>
3019
3020 * Makefile.am (install-exec-local): Don't let EXEEXT interfere
3021 with the program transform name.
3022 * Makefile.in: Rebuild.
3023
3024 Sun Jun 21 23:55:16 1998 Jeffrey A Law (law@cygnus.com)
3025
3026 * ld.texinfo: Note that -relax may make symbolic debugging
3027 impossible on some platforms.
3028
3029 Tue Jun 16 12:51:13 1998 Geoff Keating <geoffk@ozemail.com.au>
3030
3031 * Makefile.am (Makefile): Remove target.
3032 (config.status): New target.
3033 * Makefile.in: Rebuild.
3034
3035 * configure.host (powerpc*-*-linux-gnu*): New host.
3036
3037 Fri Jun 12 17:38:07 1998 Doug Evans <devans@seba.cygnus.com>
3038
3039 * scripttempl/elf.sc (INPUT_FILES): Optional INPUT spec.
3040
3041 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Change top of
3042 stack to 8MB.
3043
3044 Fri Jun 12 19:33:17 1998 Ian Lance Taylor <ian@cygnus.com>
3045
3046 * Makefile.am (HFILES): Remove config.h.
3047 (EMULATION_OFILES, POTFILES): Move patch of May 14 from
3048 Makefile.in to Makefile.am.
3049 (earmcoff.c): Depend upon armcoff.em, not generic.em.
3050 * po/Make-in (all-yes): Correct misspelling in $(PACKAGE).
3051 ($(srcdir)/$(PACKAGE).pot): Pass -C to $(XGETTEXT).
3052 * Makefile.in, po/POTFILES.in, po/ld.pot: Rebuild.
3053
3054 Fri Jun 12 13:43:17 1998 Tom Tromey <tromey@cygnus.com>
3055
3056 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
3057 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
3058
3059 Tue Jun 9 09:36:48 1998 Nick Clifton <nickc@cygnus.com>
3060
3061 * ldlang.c (lang_finish): Add CONST type modifier to declaration
3062 of 'send'.
3063
3064 Fri Jun 5 18:19:59 1998 Ian Lance Taylor <ian@cygnus.com>
3065
3066 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
3067 config.has_shared to true.
3068 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
3069 Likewise.
3070 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse):
3071 Likewise.
3072
3073 Tue Jun 2 12:55:03 1998 Ian Lance Taylor <ian@cygnus.com>
3074
3075 * ldlang.c (lang_finish): If the entry symbol is not found, try
3076 parsing it as a number.
3077 * ld.texinfo (Options): Document this.
3078
3079 Mon Jun 1 14:01:20 1998 Ian Lance Taylor <ian@cygnus.com>
3080
3081 * ld.texinfo (Input Section Wildcards): Document SORT keyword.
3082
3083 Mon May 18 12:42:53 1998 Doug Evans <devans@canuck.cygnus.com>
3084
3085 * ld.h (ld_config_type): New member has_shared.
3086 * ldmain.c (main): Initialize it.
3087 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set it.
3088 * lexsup.c (parse_args): Treat -shared as error if not supported.
3089
3090 Mon May 18 13:14:43 1998 Ian Lance Taylor <ian@cygnus.com>
3091
3092 From Jason Merrill <jason@cygnus.com>:
3093 * ldlang.c (wild_sort): Correct order of sort.
3094 * scripttempl/elf.sc: Put *crtbegin.o before other .ctors and
3095 .dtors.
3096 * scripttempl/elfd10v.sc: Likewise.
3097 * scripttempl/elfd30v.sc: Likewise.
3098 * scripttempl/elfppc.sc: Likewise.
3099
3100 Fri May 15 00:22:35 1998 Ian Lance Taylor <ian@cygnus.com>
3101
3102 * ldlex.l: Recognize keyword SORT.
3103 * ldgram.y (current_file): Change to struct wildcard_spec.
3104 (%union): Add new fields cname and wildcard.
3105 (wildcard_name, wildcard_spec): New nonterminals.
3106 (file_NAME_list): Use wildcard_spec.
3107 (input_section_spec): Change current_file usage.
3108 * ld.h (struct wildcard_spec): Define.
3109 * ldlang.h (lang_wild_statement_struct): Add new fields
3110 sections_sorted and filenames_sorted.
3111 (lang_add_wild): Update declaration.
3112 * ldlang.c (wild_sort): New static function.
3113 (wild_section): Use wild_sort.
3114 (print_wild_statement): Print sorting information.
3115 (lang_add_wild): Add new parameters sections_sorted and
3116 filenames_sorted. Change all callers.
3117 * mri.c (mri_draw_tree): Update calls to lang_add_wild.
3118 * scripttempl/elf.sc: Sort .ctors.* and .dtors.* by section name.
3119 * scripttempl/elfd10v.sc: Likewise.
3120 * scripttempl/elfd30v.sc: Likewise.
3121 * scripttempl/elfppc.sc: Likewise.
3122
3123 Thu May 14 18:39:16 1998 Richard Henderson <rth@cygnus.com>
3124
3125 * emulparams/m32relf.sh (TEMPLATE_NAME): Define.
3126
3127 Thu May 14 14:51:24 1998 Nick Clifton <nickc@cygnus.com>
3128
3129 * ldemul.h: Add new prototype: ldemul_list_emulation_options.
3130 (ld_emulation_xfer_struct): Add new field: list_options.
3131 * ldemul.c (ldemul_list_options): New function. Call the
3132 list_options field of the ld_emulation_xfer_struct for each
3133 supported emulation, if such a function is present.
3134 * lexsup.c (help): Call ldemul_list_emulation_options.
3135 * emultempl/pe.em (gld_<>_list_options): New function. Describe
3136 the pe emulation specific command line options.
3137 * emultempl/armcoff.em (gld<>_list_options): New function.
3138 Describe the armcoff emulation specific command line options.
3139
3140 * emultempl/pe.em: Add a new command line option:
3141 --support-old-code.
3142 * emultempl/armcoff.em: Ditto.
3143 * ld.texinfo: Document the --support-old-code option.
3144
3145 * Makefile.in: Add emulation files for POTFILES.in target.
3146 * emultempl/pe.em: Internationalise suitable strings.
3147 * emultempl/armcoff.em: Internationalise suitable strings.
3148 * po/POTFILES.in: Rebuilt.
3149
3150 Sun May 10 22:36:30 1998 Jeffrey A Law (law@cygnus.com)
3151
3152 * po/Make-in (install-info): New target.
3153
3154 Tue Apr 28 19:18:30 1998 Tom Tromey <tromey@cygnus.com>
3155
3156 * ldmain.c (main): Conditionally call setlocale.
3157 * ld.h: Include <locale.h> if HAVE_LOCALE_H.
3158 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
3159
3160 Mon Apr 27 11:56:21 1998 Ian Lance Taylor <ian@cygnus.com>
3161
3162 * configure.in: Change version number to 2.9.4
3163 * configure: Rebuild.
3164
3165 * ld.texinfo (Options) [-rpath-link]: Mention ld.so.conf.
3166
3167 Based on patch from H.J. Lu <hjl@gnu.org>:
3168 * emultempl/elf32.em (global_vercheck_needed): New file static
3169 variable.
3170 (global_vercheck_failed): New file static variable.
3171 (gld${EMULATION_NAME}_after_open): Check for shared libraries
3172 twice, once with force set to 0 and once with it set to 1.
3173 (gld${EMULATION_NAME}_check_ld_so_conf): Add force parameter.
3174 Change all callers.
3175 (gld${EMULATION_NAME}_search_needed): Likewise.
3176 (gld${EMULATION_NAME}_try_needed): Likewise. If not force, check
3177 whether the libraries needs any incompatible versions.
3178 (gld${EMULATION_NAME}_vercheck): New static function.
3179
3180 Wed Apr 22 16:01:35 1998 Tom Tromey <tromey@cygnus.com>
3181
3182 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
3183
3184 Wed Apr 22 12:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
3185
3186 * Makefile.am (check-DEJAGNU): Add $(INTLLIBS) to LIBIBERTY when
3187 invoking runtest.
3188 * Makefile.in: Rebuild.
3189
3190 * lexsup.c (parse_args): Change -l options into --library options
3191 to avoid confusion between -li and -library.
3192
3193 * ld.texinfo (MEMORY): Clarify use of >REGION.
3194
3195 Tue Apr 21 23:12:40 1998 Tom Tromey <tromey@scribbles.cygnus.com>
3196
3197 * Many files: Added gettext invocations around user-visible
3198 strings.
3199 * ld.h: Added gettext-related includes and defines.
3200 * ldmain.c: Call setlocale, bindtextdomain, textdomain.
3201 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
3202 HAVE_LC_MESSAGES): Define.
3203 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
3204 po/Makefile. Use AM_PROG_LEX.
3205 (TDIRS): AC_SUBST early on, to avoid having value split when it
3206 happens to cross line 90 of the generated sed script.
3207 * Makefile.am (SUBDIRS): New macro.
3208 (POTFILES): Likewise.
3209 (po/POTFILES.in): New target.
3210 (ld_new_LDADD): Added INTLLIBS.
3211 (ld_new_DEPENDENCIES): Added INTLDEPS.
3212 * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
3213
3214 Tue Apr 21 23:07:07 1998 Ian Lance Taylor <ian@cygnus.com>
3215
3216 * ld.texinfo (Simple Example): Rewrite a few things as suggested
3217 by Nick Clifton <nickc@cygnus.com>.
3218 (PROVIDE): Likewise.
3219
3220 Tue Apr 21 09:55:06 1998 Nick Clifton <nickc@cygnus.com>
3221
3222 * emultempl/pe.em: Rename external arm interworking functions
3223 to conform to BFD naming conventions. Add code to _after_open()
3224 function to obtain a bfd for use by the interworking code.
3225
3226 * emultempl/armcoff.em: Rename external arm interworking functions
3227 to conform to BFD naming conventions. Add new _after_open()
3228 function to obtain a bfd for use by the interworking code.
3229
3230 Sun Apr 19 19:23:09 1998 Richard Henderson <rth@cygnus.com>
3231
3232 * ldlang.c (lang_size_sections) [case lang_assignment_statement_enum]:
3233 Update dot and the default memory section even when relaxing.
3234
3235 Sat Apr 18 18:41:12 1998 Richard Henderson <rth@cygnus.com>
3236
3237 * ldlang.c (lang_one_common): Manipulate the section's cooked size
3238 rather than its raw size.
3239
3240 Tue Apr 7 13:35:29 1998 H.J. Lu <hjl@gnu.org>
3241
3242 * configure.in (TESTBFDLIB): New. Defined and substituted.
3243 * Makefile.am (TESTBFDLIB): Changed to @TESTBFDLIB@.
3244 * configure, Makefile.in: Rebuild.
3245
3246 Mon Apr 6 15:33:39 1998 Ian Lance Taylor <ian@cygnus.com>
3247
3248 * Makefile.am (ld.info): Invoke makeinfo with -I options directly
3249 rather than relying on default rule. Don't depend upon
3250 bfdsumm.texi.
3251 (ld.dvi): Likewise.
3252 (bfdsumm.texi): Remove target.
3253 (CLEANFILES): Take bfdsumm.texi out of value.
3254 * Makefile.in: Rebuild.
3255
3256 Sun Apr 5 13:07:57 1998 Ian Lance Taylor <ian@cygnus.com>
3257
3258 * scripttempl/pe.sc: Use shell variables to avoid depending upon
3259 how $ is handled when expanding a shell substitution.
3260
3261 Fri Apr 3 00:56:50 1998 Ian Lance Taylor <ian@cygnus.com>
3262
3263 * Makefile.am (MOSTLYCLEANFILES): Add ld.log and ld.sum.
3264 (DISTCLEANFILES): Add site.exp and site.bak.
3265 * Makefile.in: Rebuild.
3266
3267 * configure.in: Put the tdirs in a file and use AC_SUBST_FILE,
3268 rather than in a shell variable and using AC_SUBST.
3269 * Makefile.am (DISTCLEANFILES): Remove ldscripts. Add tdirs.
3270 (distclean-local): New target.
3271 * configure, Makefile.in: Rebuild.
3272
3273 * ld.texinfo: Completely rewrite linker script documentation.
3274
3275 Mon Mar 30 12:47:33 1998 Ian Lance Taylor <ian@cygnus.com>
3276
3277 * configure.in: Set version to 2.9.1.
3278 * configure: Rebuild.
3279
3280 * Branched binutils 2.9.
3281
3282 Sat Mar 28 16:48:19 1998 Ian Lance Taylor <ian@cygnus.com>
3283
3284 * Makefile.am (MOSTLYCLEANFILES): Remove tmpdir.
3285 (mostlyclean-local): New target to remove tmpdir.
3286 * Makefile.in: Rebuild.
3287
3288 Fix some gcc -Wall warnings:
3289 * ldcref.c (output_cref): Add casts to avoid warnings.
3290 * ldfile.c (ldfile_add_arch): Likewise.
3291 * ldlang.c (lang_leave_overlay_section): Likewise.
3292 * lexsup.c (OPTION_COUNT): Likewise.
3293 (parse_args): Likewise.
3294 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan):
3295 Likewise.
3296 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Likewise.
3297 * ldlang.c (lang_check): Initialize variables to avoid warnings.
3298 * ldwrite.c (build_link_order): Likewise.
3299 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Likewise.
3300 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_allocation):
3301 Remove unused variables.
3302
3303 * Makefile.am (MOSTLYCLEANFILES): Correct name (was
3304 MOSTCLEANFILES).
3305 * Makefile.in: Rebuild.
3306
3307 Fri Mar 27 16:39:25 1998 Ian Lance Taylor <ian@cygnus.com>
3308
3309 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Put
3310 ARM code inside ifdef TARGET_IS_armpe.
3311
3312 Wed Mar 25 11:34:13 1998 Ian Lance Taylor <ian@cygnus.com>
3313
3314 Based on patch from H.J. Lu <hjl@gnu.org>:
3315 * Makefile.am (LDDISTSTUFF): New variable.
3316 (diststuff): New target.
3317 * Makefile.in: Rebuild.
3318
3319 * scripttempl/pe.sc: Only include .idata\$[0-7] in .idata when
3320 relocating.
3321
3322 Tue Mar 24 15:59:29 1998 Nick Clifton <nickc@cygnus.com>
3323
3324 * scripttempl/pe.sc (.text): Add .glue_7 and .glue_7t sections to
3325 hold Arm/Thumb stubs.
3326
3327 * emultempl/pe.em (gld_pe_before_allocation): Call
3328 arm_process_before_allocation (for ARM/Thumb targets) in order to
3329 gather interworking stb information.
3330
3331 Mon Mar 23 18:54:15 1998 Joel Sherrill <joel@OARcorp.com>
3332
3333 * configure.tgt: (sh*-*-rtems*): Switched from ELF to COFF.
3334
3335 Fri Mar 20 19:17:13 1998 Ian Lance Taylor <ian@cygnus.com>
3336
3337 * aclocal.m4, configure: Rebuild with libtool 1.2.
3338
3339 Thu Mar 19 14:54:45 1998 Geoffrey Noer <noer@cygnus.com>
3340
3341 * scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy
3342 section to avoid copying certain data on fork. The linker used to
3343 include this between __data_start__ and __data_end__, but that
3344 breaks building the cygwin32 dll. The fix is to rename the
3345 section ".data_cygwin_nocopy" and explictly include it after
3346 __data_end__.
3347
3348 Wed Mar 18 09:42:24 1998 Nick Clifton <nickc@cygnus.com>
3349
3350 * configure.tgt (targ_extra_emuls): Add thumb-pe target.
3351
3352 Sun Mar 8 23:34:14 1998 Stan Cox <scox@equinox.cygnus.com>
3353
3354 * configure.tgt (sparclite*-*-elf): Added.
3355
3356 Mon Mar 2 19:24:08 1998 Michael Meissner <meissner@cygnus.com>
3357
3358 * ldlang.c (lang_size_sections): If the default memory region is
3359 *default*, see if there is a memory region that could be used.
3360
3361 Thu Feb 26 17:09:53 1998 Michael Meissner <meissner@cygnus.com>
3362
3363 * scripttempl/elfd30v.sc: Add support for .eit_v section and put
3364 it at 0xfffff020.
3365 * emulparams/d30v{elf,_o,_e}.sh: Ditto.
3366
3367 Mon Feb 23 17:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
3368
3369 * emultempl/pe.em (sort_sections): Permit the wildcard to include
3370 a trailing '*' when sorting grouped sections.
3371 * scripttempl/pe.sc: Include grouped sections using NAME\$*. Only
3372 include them when relocating.
3373
3374 Wed Feb 18 23:39:46 1998 Richard Henderson <rth@cygnus.com>
3375
3376 * Makefile.am (install-exec-local): Install properly when ln
3377 fails or tooldir == prefix.
3378
3379 Fri Feb 13 15:24:06 1998 Ian Lance Taylor <ian@cygnus.com>
3380
3381 * Makefile.am (AUTOMAKE_OPTIONS): Define.
3382 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
3383
3384 Thu Feb 12 14:10:44 1998 Ian Lance Taylor <ian@cygnus.com>
3385
3386 * scripttempl/elf.sc: Align the _end symbol according to the ELF
3387 format size. From Gordon W. Ross <gwr@mc.com>.
3388
3389 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
3390 * configure.host (alpha*-*-netbsd*): New host.
3391 * configure.tgt (alpha*-*-netbsd*, powerpc-*-netbsd*): New
3392 targets.
3393
3394 * lexsup.c (help): Update bug-gnu-utils address.
3395 * ld.texinfo (Bug Reporting): Likewise.
3396
3397 Tue Feb 10 18:05:56 1998 Ian Lance Taylor <ian@cygnus.com>
3398
3399 * ldlang.c (lang_size_sections): Warn if some memory regions were
3400 defined, but a loadable section is going into the default memory
3401 region.
3402
3403 Tue Feb 10 16:17:20 1998 H.J. Lu <hjl@gnu.org>
3404
3405 * ldlex.l (V_IDENTIFIER): Allow '.' as symbol prefix.
3406
3407 Tue Feb 10 15:09:45 1998 Ian Lance Taylor <ian@cygnus.com>
3408
3409 * Makefile.am (Makefile): Add target, for dependencies on
3410 configure.host and configure.tgt.
3411 * configure.host, configure.tgt: Change -linux* to -linux-gnu*.
3412 * Makefile.in: Rebuild.
3413
3414 Mon Feb 9 13:44:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
3415
3416 * scripttempl/elfd10v.sc (.stack): Move stack to 0x00..7FFE.
3417
3418 * emulparams/d10velf.sh (READONLY_START_ADDR): Read only section
3419 moved to 0x00.....4.
3420
3421 Sat Feb 7 15:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
3422
3423 * configure, aclocal.m4: Rebuild with new libtool.
3424
3425 Thu Feb 5 12:16:11 1998 Ian Lance Taylor <ian@cygnus.com>
3426
3427 * scripttempl/pe.sc: Remove ${RELOCATING-0} from all sections.
3428 From Thomas de Lellis <tdel@wrs.com>.
3429
3430 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
3431
3432 Wed Feb 4 13:02:32 1998 Ian Lance Taylor <ian@cygnus.com>
3433
3434 * Makefile.am (ld_new_LDADD): Remove @LEXLIB@.
3435 * Makefile.in: Rebuild.
3436
3437 Mon Feb 2 19:34:54 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
3438
3439 Add tms320c30 support:
3440 * configure.tgt (tic30-*-*aout*, tic30-*-*coff*): New targets.
3441 * emulparams/tic30aout.sh: New file.
3442 * emulparams/tic30coff.sh: New file.
3443 * scripttempl/tic30aout.sc: New file.
3444 * scripttempl/tic30coff.sc: New file.
3445 * Makefile.am (ALL_EMULATIONS): Add etic30aout.o and
3446 etic30coff.o.
3447 (etic30aout.c, etic30coff.c): New targets.
3448 * Makefile.in: Rebuild.
3449
3450 Mon Feb 2 14:10:59 1998 Ian Lance Taylor <ian@cygnus.com>
3451
3452 * configure.host: Correct HOSTING_CRT0 in alpha*-*-linux* case to
3453 accept either ld.so or ld-linux.so.
3454
3455 Fri Jan 30 19:16:28 1998 Doug Evans <devans@canuck.cygnus.com>
3456
3457 * Makefile.am ({CC,CXX}_FOR_TARGET): Change program_transform_name
3458 to transform.
3459 * Makefile.in: Regenerate.
3460
3461 Fri Jan 30 19:15:17 1998 Geoff Keating <geoffk@ozemail.com.au>
3462
3463 * scripttempl/elfppc.sc: Put .dynsbss in .sbss.
3464
3465 Fri Jan 30 11:43:49 1998 H.J. Lu <hjl@gnu.ai.mit.edu>
3466
3467 * Makefile.am (eelf32bsmip.c, eelf32lsmip.c): New targets.
3468 * Makefile.in: Rebuild.
3469
3470 Thu Jan 29 16:04:21 1998 Mumit Khan <khan@xraylith.wisc.edu>
3471
3472 * ldfile.c (slash): Set to backslash if _WIN32 but not
3473 __CYGWIN32__.
3474 (ldfile_open_file_search): If __MSDOS__ or _WIN32, accept a
3475 leading backslash or a leading x: as an absolute path.
3476 (ldfile_find_command_file): Use slash rather than / when
3477 generating name to try.
3478 * lexsup.c (PATH_SEPARATOR): Define.
3479 (set_default_dirlist): Use PATH_SEPARATOR rather than ':'.
3480
3481 Wed Jan 28 14:06:30 1998 Richard Henderson <rth@cygnus.com>
3482
3483 * emulparams/elf64_sparc.sh (ELFSIZE): 64
3484 (TEXT_START_ADDR): Round off, since SIZEOF_HEADERS is added later.
3485 (DATA_PLT): Needed by v9 abi.
3486
3487 Wed Jan 28 16:37:27 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
3488
3489 * configure.tgt (i[3456]86-*-mingw32*): New entry.
3490
3491 Wed Jan 28 15:51:58 1998 Ian Lance Taylor <ian@cygnus.com>
3492
3493 * scripttempl/elf.sc: Only include linkonce sections in final
3494 sections when relocating.
3495
3496 Wed Jan 28 14:10:01 1998 Ian Lance Taylor <ian@cygnus.com>
3497
3498 * ld.texinfo (Options): Add a brief description of the types of
3499 information included in a link map.
3500
3501 * ld.texinfo (Options): Mention LDEMULATION in description of -m.
3502 (Environment): Mention LDEMULATION.
3503
3504 * ld.texinfo (Options): Clarify --export-dynamic a bit.
3505
3506 Thu Jan 22 16:07:23 1998 Richard Henderson <rth@cygnus.com>
3507
3508 * ldlex.l (<SCRIPT>{WILDCHAR}*): Take care for the comments this
3509 pattern could match.
3510
3511 Wed Jan 21 22:26:46 1998 Ian Lance Taylor <ian@cygnus.com>
3512
3513 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): When doing
3514 a relocateable link, set the image base to 0, and don't define the
3515 various symbols.
3516 * emulparams/i386pe.sh (RELOCATEABLE_OUTPUT_FORMAT): Define.
3517 * scripttempl/pe.sc: Swap the .data and .bss sections so that
3518 .data comes first. If doing a relocateable link, use
3519 RELOCATEABLE_OUTPUT_FORMAT if it is defined, and start the
3520 sections at 0, and don't define any symbols.
3521
3522 * ldlang.c (lang_memory_default): Correct parenthisization of
3523 expression.
3524
3525 Wed Jan 21 21:20:32 1998 Manfred Hollstein <manfred@s-direktnet.de>
3526
3527 * emultempl/sunos.em: Don't include sys/types.h and sys/stat.h
3528 here; they are included already via sysdep.h.
3529
3530 Tue Jan 6 13:40:02 1998 Richard Henderson <rth@cygnus.com>
3531
3532 * scripttempl/i960.sc: Don't explicitly set .data and .bss start.
3533
3534 Fri Jan 2 20:15:37 1998 Michael Meissner <meissner@cygnus.com>
3535
3536 * ldgram.y (attributes_opt): Pass region pointer to
3537 lang_set_flags, not &region->flags.
3538
3539 * ldlang.c (lang_memory_default): New function to figure out a
3540 default memory region for a section if it was not specified.
3541 (lang_memory_region_lookup): Zero flags, not_flags field.
3542 (lang_map{,_flags}): Print attribute flags in memory map.
3543 (lang_size_sections): Call lang_memory_default to get default
3544 memory region.
3545 (lang_set_flags): Implement attribute flags for real. Take new
3546 argument to give the flags we are to skip for this region.
3547
3548 * ldlang.h (memory_region_struct): Add not_flags field, make both
3549 flags fields flagword type.
3550 (lang_output_section_state): Make flags field flagword type.
3551 (lang_set_flags): Update prototype to match new calling sequence.
3552 (lang_memory_region_default): Add prototype.
3553
3554 * emulparams/d30v{_e,_o,elf}.sh ({TEXT,DATA,EMEM}_DEF_SECTION):
3555 Define whether or not the region gets default sections, and if so,
3556 what sections.
3557
3558 * scripttempl/elfd30v.sc (MEMORY): Set up which of the regions get
3559 default sections.
3560
3561 Thu Jan 1 22:58:04 1998 Michael Meissner <meissner@cygnus.com>
3562
3563 * scripttempl/elfd30v.sc (.eh_frame): Link into the data section.
3564
3565 Thu Jan 1 18:04:51 1998 Jeffrey A Law (law@cygnus.com)
3566
3567 * scripttempl/h8300h.sc: Fix typo.
3568 * scripttempl/h8300s.sc: Likewise.
3569
3570 Sun Dec 21 12:51:49 1997 Ian Lance Taylor <ian@cygnus.com>
3571
3572 * ldexp.c (fold_name): Don't crash if the symbol is defined in a
3573 section with no output section, such as a shared library section.
3574
3575 Wed Dec 17 12:14:11 1997 Ian Lance Taylor <ian@cygnus.com>
3576
3577 * lexsup.c (parse_args): Keep track of where we are in the option
3578 parsing before calling ldemul_parse_args, so that we don't call it
3579 multiple times on the same argument and confuse the getopt
3580 internals.
3581
3582 Thu Dec 11 09:00:15 1997 Michael Meissner <meissner@cygnus.com>
3583
3584 * configure.tgt (d30v-elf-*): Rename d30velf_e to d30v_e and
3585 d30velf_o to d30v_o to work in DOS environments.
3586 * Makefile.{am,in}: Ditto.
3587
3588 * emulparams/d30v_{o,e}: Rename from d30velf_{o,e}.
3589 * emulparams/d30velf_{o,e}: Deleted.
3590
3591 Wed Dec 10 17:40:08 1997 Nick Clifton <nickc@cygnus.com>
3592
3593 * scripttempl/armcoff.sc: Add glue sections (code taken from Arm
3594 branch).
3595
3596 * emulparams/armcoff.sh (TEMPLATE_NAME): Set to armcoff.
3597
3598 * emultempl/armcoff.em: New file, imported from Arm branch.
3599
3600 Wed Dec 10 14:10:44 1997 Michael Meissner <meissner@cygnus.com>
3601
3602 * scripttempl/elfd30v.sc: Add .rel and .rela sections for all
3603 defined sections. Set up __{D,C}TOR_{LIST,END}__. Add onchip and
3604 external memory sections for rodata. Delete .string, .rodata1,
3605 and .data1 sections.
3606
3607 Tue Dec 9 15:28:17 1997 Michael Meissner <meissner@cygnus.com>
3608
3609 * Makefile.am: Add Oct 23 changes to Makefile.in here.
3610
3611 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed10velf.o.
3612
3613 * Makefile.{am,in}: (ALL_EMULATIONS): Add etic80coff.o.
3614
3615 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed30velf{,_e,_o}.o.
3616 (ed30velf_e.c): Like d30velf, except .text/.data/etc always go in
3617 external memory.
3618 (ed30velf_o.c): Like d30velf, except .text/.data/etc always go in
3619 onchip memory.
3620
3621 * emulparams/d30velf.sh (STACK_START_ADDR): Top of default
3622 stack.
3623 ({TEXT,DATA,EMEM}_SIZE): Sizes of the 3 memory areas.
3624 ({TEXT,DATA,BSS}_MEMORY): Which memory region .text, .data, and
3625 .bss should go in.
3626
3627 * emulparams/d30velf_{e,o}.sh: New files to be explicit whether
3628 .text, .data, etc go in external memory or onchip memory.
3629
3630 * configure.tgt (d30v-*-*ext*): New configuration to default
3631 .text, .data, etc. in external memory.
3632 (d30v-*-*onchip*): New configuration to default .text, .data,
3633 etc. in onchip memory.
3634 (d30v-*-*): Add d30velf_{e,o} emulations.
3635
3636 * scripttempl/elfd30v.sc: Allow .text, .data, .bss to be put in
3637 either the onchip text/data areas or the external memory area.
3638 (MEMORY): Get sizes from d30velf.sh.
3639 (.e{data,text,bss}): Put sections in the external memory region.
3640 (.stext): Put section in the onchip text region.
3641 (.s{data,bss}): Put sections in the onchip data region.
3642 (__stack): Assign from ${STACK_START_ADDR}.
3643 (.text): Put in ${TEXT_MEMORY} memory region.
3644 (.data{,1}/.strings/.rodata{,1}): Put in ${DATA_MEMORY} memory
3645 region.
3646 (.bss): Put in ${BSS_MEMORY} memory region.
3647
3648 Tue Dec 2 10:14:47 1997 Nick Clifton <nickc@cygnus.com>
3649
3650 * configure.tgt (targ_extra_emuls): Add support for Thumb target.
3651
3652 Sat Nov 22 15:23:19 1997 Ian Lance Taylor <ian@cygnus.com>
3653
3654 * ldlex.l: Don't define hex_mode. Correct number regexp to not
3655 accept hex digits without a leading $ or 0x. Handle leading $
3656 correctly. Pass 0 rather than hex_mode to bfd_scan_vma.
3657 * ldlex.h (hex_mode): Don't declare.
3658
3659 Sun Nov 16 20:16:45 1997 Michael Meissner <meissner@cygnus.com>
3660
3661 * emulparams/d30velf.sh ({DATA,EMEM}_START_ADDR): Define as start
3662 of internal data area and external memory on chip.
3663
3664 * scripttempl/elfd30v.sc: Define a MEMORY region that describes
3665 the 3 regions of memory on the chip. Put .text/.init/.fini into
3666 the text memory region, put other segments into the data memory
3667 region. Add more of the standard elf sections. Default __stack
3668 to be 0x20008000, which is 1 byte beyond end of the internal data
3669 region.
3670
3671 Thu Nov 13 13:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
3672
3673 * configure.tgt (targ_extra_emuls): Make FreeBSD a i386bsd
3674 variant.
3675
3676 Sun Nov 2 14:51:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3677
3678 * configure.host (alpha*-*-linux*): Correct HOSTING_CRT0. Set
3679 HOSTING_LIBS.
3680
3681 Thu Oct 30 12:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
3682
3683 * ld.h (args_type): Add warn_mismatch field.
3684 * ldmain.c (main): Initialize warn_mismatch field.
3685 * lexsup.c (parse_args): Handle --no-warn-mismatch option.
3686 * ldlang.c (ignore_bfd_error): New static function.
3687 (lang_check): If warn_mismatch is false, don't warn about
3688 mismatched input files.
3689 * ld.texinfo, ld.1: Document new option.
3690
3691 Thu Oct 23 14:38:18 1997 Nick Clifton <nickc@cygnus.com>
3692
3693 * scripttempl/v850.sc: Rename linker symbol '_stack' to '__stack'
3694 to avoid conflicts with C code which is defining a variable called
3695 'stack'.
3696
3697 Thu Oct 23 00:57:45 1997 Richard Henderson <rth@dot.cygnus.com>
3698
3699 * Makefile.in (ALL_EMULATIONS): Move eelf64_sparc.o ...
3700 (ALL_64_EMULATIONS): ... here.
3701 (eelf64_sparc.c): Template should be elf32 not generic.
3702 * emulparams/elf64_sparc.sh (TEMPLATE_NAME): New definition.
3703
3704 Thu Oct 23 00:44:20 1997 Richard Henderson <rth@dot.cygnus.com>
3705
3706 * configure.tgt: Add sparc64-*-linux*.
3707 * emulparams/elf64_sparc.sh (GENERATE_SHLIB_SCRIPT, NOP): New.
3708
3709 Wed Oct 22 11:29:25 1997 Ian Lance Taylor <ian@cygnus.com>
3710
3711 * scripttempl/pe.sc: Put .eh_frame in .rdata.
3712
3713 Fri Oct 17 00:00:13 1997 Richard Henderson <rth@cygnus.com>
3714
3715 * ldlang.c (lang_register_vers_node): Only check globals<=>locals,
3716 since we need to be able to export different versions of the same
3717 symbol.
3718
3719 Wed Oct 15 14:52:36 1997 Ian Lance Taylor <ian@cygnus.com>
3720
3721 * scripttempl/pe.sc: Put .stab and .stabstr sections at end.
3722
3723 Wed Oct 8 12:37:05 1997 Richard Henderson <rth@cygnus.com>
3724
3725 * configure.tgt, configure.host: Change alpha-*-* to alpha*-*-*;
3726 config.guess now recognizes alphaev5 etc.
3727
3728 Fri Oct 3 14:23:02 1997 Ian Lance Taylor <ian@cygnus.com>
3729
3730 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Don't treat
3731 -s and -u as -static and -unix.
3732
3733 Thu Oct 2 18:40:28 1997 Ian Lance Taylor <ian@cygnus.com>
3734
3735 * ldlang.c (wild_doit): Rewrite flag handling for clarity. If we
3736 are not adding the first input section, and SEC_READONLY is clear
3737 on the output section, then don't copy it from the input section.
3738 If SEC_READONLY is not set on the input section, then clear it on
3739 the output section.
3740
3741 * configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
3742 elf32bmip.
3743 (mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
3744 to elf32bsmip.
3745 (mips*-*-linux*): Likewise.
3746 * emulparams/elf32bsmip.sh: New file; just like elf32bmip.sh, but
3747 setting ENTRY to __start.
3748 * emulparams/elf32lsmip.sh: New file; just like elf32lmip.sh, but
3749 setting ENTRY to __start.
3750 * scripttempl/elf.sc: Always set ENTRY to _start if it was not
3751 already set.
3752
3753 Wed Oct 1 16:41:00 1997 Nick Clifton <nickc@cygnus.com>
3754
3755 * emulparams/v850.sh (ROZDATA_START_ADDR, ROSDATA_START_ADDR): New
3756 Variables.
3757
3758 * scripttempl/v850.sc: Move read only areas out of zero and small
3759 data sections and into their own sections.
3760
3761 Wed Sep 24 16:59:15 1997 Joel Sherrill <joel@oarcorp.com>
3762
3763 * configure.tgt (sh*-*-rtems*): New target, like sh-*-elf*.
3764
3765 Wed Sep 24 11:33:14 1997 Ian Lance Taylor <ian@cygnus.com>
3766
3767 * ld.texinfo (Section Options): Improve documentation of NOLOAD
3768 directive.
3769
3770 * aclocal.m4: Rebuild with new libtool.
3771 * configure: Rebuild.
3772
3773 Mon Sep 22 17:24:06 1997 Ian Lance Taylor <ian@cygnus.com>
3774
3775 * ldlang.c (wild_doit): Revert patch of September 3.
3776
3777 Wed Sep 17 16:45:34 1997 Nick Clifton <nickc@cygnus.com>
3778
3779 * Makefile.am, Makefile.in: Add rule for ev850.c
3780 * configure.tgt (targ_extra_emuls): Add v850 target.
3781
3782 Wed Sep 17 16:43:39 1997 Nick Clifton <nickc@cygnus.com>
3783
3784 * emulparams/v850.sh (CALL_TABLE_START_ADDR): New entry.
3785 * scripttempl/v850.sc: Add call table data area
3786
3787 Mon Sep 15 11:29:13 1997 Ken Raeburn <raeburn@cygnus.com>
3788
3789 Merge change from Martin Hunt:
3790
3791 * scripttempl/elfd30v.sc: Put .rodata in the .text section.
3792
3793 Tue Sep 9 07:49:56 1997 Fred Fish <fnf@ninemoons.com>
3794
3795 * ldlang.c (lang_memory_region_lookup): Remove extraneous
3796 initialization of p.
3797
3798 Thu Sep 4 09:03:33 1997 Ian Lance Taylor <ian@cygnus.com>
3799
3800 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): In
3801 expression produced for -bpT and -bpD options, align to a 32 byte
3802 boundary rather than an 8 byte boundary.
3803 * scripttempl/aix.sc: Put .tocbss at start of .bss section.
3804
3805 * ldmisc.h, ldmisc.c, ldcref.c: Rename finfo to lfinfo, to avoid
3806 function name conflict with AIX 4.2 unistd.h header file.
3807
3808 Wed Sep 3 15:12:32 1997 Ian Lance Taylor <ian@cygnus.com>
3809
3810 * ldlang.c (wild_doit): Clear SEC_HAS_CONTENTS from a
3811 noload_section.
3812
3813 Fri Aug 29 00:32:31 1997 Ian Lance Taylor <ian@cygnus.com>
3814
3815 * Makefile.am (ld_new_DEPENDENCIES): Remove @LEXLIB@.
3816 * Makefile.in: Rebuild.
3817
3818 Thu Aug 28 10:12:10 1997 Doug Evans <dje@canuck.cygnus.com>
3819
3820 * configure.tgt (arc-*-elf*): Recognize.
3821 * Makefile.am (ALL_EMULATIONS): Add earcelf.o.
3822 * Makefile.in: Regenerate.
3823 * emulparams/arcelf.sh: New file.
3824
3825 Wed Aug 20 11:14:13 1997 Ian Lance Taylor <ian@cygnus.com>
3826
3827 * ldlang.c (wildcardp): Don't let a backslash by itself cause a
3828 pattern to be treated as a wildcard pattern.
3829
3830 * ldgram.y (atype): Accept parentheses with no type.
3831
3832 * ld.texinfo (Section Definition): Clarify use of whitespace.
3833 (Section Placement): Likewise.
3834
3835 Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
3836
3837 * configure.tgt (targ_extra_emuls): Add support for v850e target.
3838
3839 Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
3840
3841 * configure.tgt (targ_extra_emuls): Add support for v850e target.
3842
3843 Sat Aug 9 00:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
3844
3845 * Makefile.am (ld.info): Change dependency from
3846 $(BFDDIR)/doc/bfdsumm.texi to bfdsumm.texi.
3847 (ld.dvi): Likewise.
3848 (bfdsumm.texi): New target.
3849 (CLEANFILES): Add bfdsumm.texi.
3850 * Makefile.in: Rebuild.
3851
3852 * Makefile.am: New file, based on old Makefile.in.
3853 * acinclude.m4: New file, from old aclocal.m4.
3854 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
3855 shared library handling; now handled by libtool. Replace
3856 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
3857 AC_PROG_LEX, and AC_DECL_YYTEXT. Call AM_MAINTAINER_MODE,
3858 AM_CYGWIN32, and AM_EXEEXT. Don't call CY_CYGWIN32 or CY_EXEEXT.
3859 * configure.host: Don't set HLDFLAGS, HLDENV, or RPATH_ENVVAR.
3860 * acconfig.h: Mention PACKAGE and VERSION.
3861 * stamp-h.in: New file.
3862 * ldver.c (ld_program_version): Set ld_program_version from
3863 VERSION.
3864 * ldgram.y, ldlex.l: Replace VERSION with VERSIONK.
3865 * Makefile.in: Now built with automake.
3866 * aclocal.m4: Now built with aclocal.
3867 * configure, config.in: Rebuild.
3868
3869 Mon Jul 28 19:04:50 1997 Rob Savoye <rob@chinadoll.cygnus.com>
3870
3871 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
3872 win32 dependencies.
3873 * configure: Regenerated with autoconf 2.12.
3874 * Makefile.in: Add $(EXEEXT) to executable.
3875
3876 Tue Jul 22 18:50:38 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
3877
3878 * emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".
3879 (SEGMENT_SIZE): Set to 0x200.
3880 * scripttempl/i386go32.sc: Rewrite.
3881 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
3882
3883 Mon Jul 7 12:39:42 1997 Ian Lance Taylor <ian@cygnus.com>
3884
3885 From Manfred Hollstein <manfred@s-direktnet.de>:
3886 * configure.host (i[3456]86-*-linux*libc1*): Renamed from
3887 i[3456]86-*-linux*.
3888 (i[3456]86-*-linux*): New host.
3889
3890 Thu Jun 26 13:54:03 1997 Ian Lance Taylor <ian@cygnus.com>
3891
3892 * scripttempl/pe.sc: Put .rsrc after .reloc. Put input .rsrc
3893 sections in the output .rsrc section.
3894
3895 Wed Jun 25 12:48:41 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3896
3897 * configure.host (m68*-*-linux*libc1*): Renamed from
3898 `m68*-*-linux*'.
3899 (m68*-*-linux*): New configuration for use with GNU libc 2.
3900
3901 Mon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>
3902
3903 * scripttempl/elfppc.sc: Correct .rela.sdata entries.
3904
3905 * scripttempl/elfppc.sc: Put the PLT between the small and large
3906 BSS segments.
3907 * emulparams/elf32ppc.sh (TEXT_START_ADDR): The ABI says `A
3908 program base of 0x02000000 is recommended...' because otherwise
3909 shared libraries are less efficient. We use 0x01800000 because
3910 otherwise it's impossible to branch to location 0, for instance if
3911 you have an undefined weak symbol.
3912
3913 Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3914
3915 * ldlang.c (lang_place_undefineds): Add \n in einfo call.
3916 (lang_size_sections): Likewise.
3917 * ldlex.l: Likewise.
3918 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
3919 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open):
3920 Likewise.
3921 (check_sections): Likewise.
3922 (gld${EMULATION_NAME}_after_allocation): Likewise.
3923 * emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
3924 Likewise.
3925 * mpw-eppcmac.c (gldppcmacos_read_file): Likewise.
3926 * mpw-idtmips.c (gldmipsidt_after_open): Likewise.
3927 (check_sections): Likewise.
3928 (gldmipsidt_after_allocation): Likewise.
3929
3930 * ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
3931
3932 Fri Jun 6 23:47:42 1997 Ian Lance Taylor <ian@cygnus.com>
3933
3934 * scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
3935 the import list.
3936
3937 Thu May 29 13:13:22 1997 Ian Lance Taylor <ian@cygnus.com>
3938
3939 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Don't
3940 crash if an output section has no BFD section.
3941
3942 Fri May 23 15:23:25 1997 Fred Fish <fnf@cygnus.com>
3943
3944 * lexsup.c (ld_options): Add entry for the new "task-link" option.
3945 (parse_args): Handle the "task-link" option.
3946 (OPTION_TASK_LINK): Add define.
3947
3948 Wed May 21 17:44:15 1997 Ian Lance Taylor <ian@cygnus.com>
3949
3950 * ldmain.c (main): Correct check of fclose return value when
3951 handling --force-exe-suffix.
3952
3953 Thu May 15 11:35:29 1997 Nick Clifton <nickc@cygnus.com>
3954
3955 * ldlang.c (lang_check): Add test of the return value from the
3956 call to bfd_merge_private_bfd_data().
3957
3958 Mon May 12 23:22:58 1997 Ian Lance Taylor <ian@cygnus.com>
3959
3960 * scripttempl/elfmips.sc: Remove.
3961 * scripttempl/elf.sc: Set ENTRY based on target. Permit
3962 TEXT_DYNAMIC to control .dynamic segment. Permit
3963 SHLIB_TEXT_START_ADDR to set start of shared object. Support
3964 INITIAL_READONLY_SECTIONS. Put .stub in .text. Only put
3965 .gnu.linkonce.t* in .text when relocating. Support
3966 OTHER_TEXT_SECTIONS. Support SHLIB_DATA_ADDR as well as
3967 DATA_ADDR. Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS.
3968 * emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf.
3969 (DATA_ADDR): Don't set.
3970 (INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS.
3971 (OTHER_TEXT_SECTIONS): Set.
3972 (OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS.
3973 (MACHINE): Set to empty string.
3974 * emulparams/elf32l4300.sh: Likewise.
3975 * emulparams/elf32ebmip.sh: Likewise.
3976 * emulparams/elf32elmip.sh: Likewise.
3977 * emulparams/elf32bmip.sh: Likewise. Also:
3978 (TEXT_DYNAMIC): Set.
3979 * emulparams/elf32lmips.sh: Likewise.
3980 * Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than
3981 elfmips.sc.
3982 (eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
3983
3984 Mon May 12 11:11:06 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3985
3986 * scripttempl/elf.sc: Don't align the data segment on the next 8
3987 byte boundary, instead let the linker use whatever the individual
3988 sections require.
3989
3990 Fri May 9 17:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
3991
3992 * configure.tgt (i[3456]86-*-gnu*): Don't include Mach support.
3993
3994 Tue May 6 13:21:19 1997 Ian Lance Taylor <ian@cygnus.com>
3995
3996 From Sean McNeil <sean@mcneil.com>:
3997 * emultempl/pe.em (sort_by_file_name): Sort by archive name
3998 first.
3999 (sort_sections): Sort all sections, not just sections in the same
4000 archive.
4001
4002 Mon May 5 18:19:55 1997 Philip Blundell <pjb27@cam.ac.uk>
4003
4004 * configure.tgt, configure.host: cope with '*-*-linux-gnuaout'
4005 targets.
4006
4007 Fri May 2 15:54:28 1997 Mike Meissner <meissner@cygnus.com>
4008
4009 * scripttempl/tic80coff.sc (.text): Add a leading underscore to
4010 __{D,C}TOR_{LIST,END}__ definations. Rearrange the order of items
4011 in the .text section. Move .const, .ctors, .dtors into separate
4012 sections.
4013
4014 Wed Apr 30 12:23:21 1997 Manfred Hollstein <manfred@s-direktnet.de>
4015
4016 * scripttempl/m88kbcs.sc (__.initp.end, _etext): Added whitespace
4017 around assignment of current location pointer.
4018
4019 Thu Apr 17 13:07:18 1997 Ian Lance Taylor <ian@cygnus.com>
4020
4021 * ldctor.c (ldctor_build_sets): Make sure the set is aligned
4022 appropriately.
4023
4024 Tue Apr 15 13:19:26 1997 Ian Lance Taylor <ian@cygnus.com>
4025
4026 * Makefile.in (INSTALL): Set to @INSTALL@.
4027 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
4028 (install): Depend upon ld.new and installdirs. Use
4029 $(program_transform_name) directly, rather than using
4030 $(INSTALL_XFORM) and $(INSTALL_XFORM1).
4031 (installdirs): New target.
4032 (install-info): Run mkinstalldirs.
4033
4034 Mon Apr 14 12:06:15 1997 Ian Lance Taylor <ian@cygnus.com>
4035
4036 * Makefile.in (INSTALL): Change install.sh to install-sh.
4037
4038 From Thomas Graichen <graichen@rzpd.de>:
4039 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
4040 * configure: Rebuild.
4041
4042 Fri Apr 4 11:42:41 1997 Ian Lance Taylor <ian@cygnus.com>
4043
4044 * emultempl/pe.em: Include "libiberty.h".
4045 (sort_sections_1): Use xmalloc rather than alloca.
4046
4047 * ldlex.l: Recognize SQUAD.
4048 * ldgram.y (length): Add SQUAD.
4049 * ldctor.c (ldctor_build_sets): Use SQUAD for a signed 8 byte
4050 reloc.
4051 * ldlang.c (print_data_statement): Handle SQUAD.
4052 (lang_size_sections, lang_do_assignments): Likewise.
4053 * ldexp.c (exp_print_token): Add SQUAD to table.
4054 * ldwrite.c (build_link_order): Handle SQUAD.
4055 * ld.texinfo (Section Data Expressions): Document SQUAD.
4056
4057 Thu Apr 3 13:19:40 1997 Ian Lance Taylor <ian@cygnus.com>
4058
4059 * ldver.c (ld_program_version): Set to 2.8.1.
4060
4061 * Branched binutils 2.8.
4062
4063 Wed Apr 2 11:55:27 1997 Ian Lance Taylor <ian@cygnus.com>
4064
4065 * mpw-idtmips.c: Rename from mpw-emipsidt.c.
4066 * mpw-elfmips.c: Rename from mpw-emipself.c.
4067 * mpw-config.in: Update accordingly.
4068
4069 * ldlang.c (lang_process): Call lang_check immediately after
4070 opening the input files, rather than at the end of the link.
4071
4072 Mon Mar 31 23:44:00 1997 Ian Lance Taylor <ian@cygnus.com>
4073
4074 * emultempl/pe.em (init): Fully bracket initializer.
4075 (set_pe_stack_heap): Remove locals begin_commit and end.
4076 (gld_${EMULATION_NAME}_after_open): Remove unused local i.
4077 (gld${EMULATION_NAME}_place_orphan): Remove unused local ptr.
4078
4079 Mon Mar 31 16:35:51 1997 Joel Sherrill <joel@oarcorp.com>
4080
4081 * configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
4082
4083 Fri Mar 28 15:29:23 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
4084
4085 Contributed by David S. Miller <davem@caip.rutgers.edu>:
4086 * configure.tgt (sparc*-*-linuxaout*): New target.
4087 (sparc*-*-linux*): New target.
4088 * emulparams/sparclinux.sh: New file.
4089 * Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
4090 (esparclinux.c): New target.
4091
4092 Fri Mar 28 14:30:12 1997 Ian Lance Taylor <ian@cygnus.com>
4093
4094 From Ralf Baechle <ralf@gnu.ai.mit.edu>:
4095 * configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
4096 mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
4097 elf32elmip.
4098
4099 Thu Mar 27 17:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
4100
4101 * lexsup.c (parse_args): Update copyright date in version
4102 message.
4103
4104 Fri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
4105
4106 * emulparams/delta68.sh (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
4107
4108 Tue Mar 18 11:16:23 1997 Ian Lance Taylor <ian@cygnus.com>
4109
4110 * Makefile.in: Rebuild dependencies.
4111
4112 * emultempl/aix.em: Include "obstack.h".
4113
4114 Mon Mar 17 19:26:06 1997 Ian Lance Taylor <ian@cygnus.com>
4115
4116 * ldlang.c: Include "obstack.h".
4117
4118 Sat Mar 15 23:23:46 1997 Fred Fish <fnf@cygnus.com>
4119
4120 * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
4121
4122 Sat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
4123
4124 * ldemul.h (ldemul_list_emulations): Use full prototype.
4125 * ldlang.c (print_one_symbol): Add declaration.
4126 * ldlang.h (dprint_statements): Declare.
4127 * ldmain.c (remove_output): Declare.
4128 * ldmisc.c (vfinfo): Declare.
4129 * ldwrite.c (clone_section): Declare.
4130 (split_sections): Make static. Declare.
4131 * mri.c: Include libiberty.h.
4132 (strdup): Don't declare.
4133 (mri_alias): Use xstrdup rather than strdup.
4134
4135 Fri Mar 14 21:30:06 1997 Ian Lance Taylor <ian@cygnus.com>
4136
4137 * scripttempl/elfmips.sc: Change handling of data area when
4138 generating a shared library to not skip a large block of memory.
4139 From Per Fogelstrom <pefo@cvs.openbsd.org>.
4140
4141 Wed Mar 12 21:33:09 1997 Ian Lance Taylor <ian@cygnus.com>
4142
4143 * ldmain.c (multiple_definition): Only skip the warning if the
4144 output section is absolute when the input section is not
4145 absolute.
4146
4147 * ldlex.l: Accept whitespace in VERS_START state. Warn about
4148 invalid characters in VERS_* states.
4149
4150 Tue Mar 11 13:51:31 1997 Ian Lance Taylor <ian@cygnus.com>
4151
4152 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Don't let a
4153 trailing space lead us to think that there is a zero address.
4154
4155 Sun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
4156
4157 * ldgram.y (vers_node): Correct typo of '(' for '{'.
4158
4159 Fri Mar 7 18:40:12 1997 Fred Fish <fnf@cygnus.com>
4160
4161 * scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
4162 rather than _start.
4163 (__edata): Define this rather than "edata".
4164 (__end): Define this rather than "end".
4165
4166 Tue Mar 4 17:18:35 1997 Michael Meissner <meissner@cygnus.com>
4167
4168 * configure.tgt (tic80-*-*): Allow dropping of -coff.
4169
4170 Sun Mar 2 22:59:49 1997 Fred Fish <fnf@cygnus.com>
4171
4172 * Makefile.in (ld.dvi): Set MAKEINFO environment variable as well
4173 as TEXINPUTS. Needed for building in separate build dir.
4174 * ldint.texinfo (SCRIPT_NAME): Fix typo.
4175 * emulparams/tic80coff.sh: Rewrite to include internal documentation
4176 about each shell variable that is set (or not set).
4177 * scripttempl/tic80coff.sc: Complete rewrite.
4178
4179 Fri Feb 28 17:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
4180
4181 * ldmain.c (main): Call bfd_set_default_target.
4182 * Makefile.in (ldmain.o): Define TARGET when compiling.
4183
4184 Thu Feb 27 11:41:03 1997 Ian Lance Taylor <ian@cygnus.com>
4185
4186 * ldmain.c (main): Don't initialize link_info.lprefix or
4187 link_info.lprefix_len.
4188 * emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
4189
4190 * emultempl/m88kbcs.em: Remove.
4191 * emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set.
4192 * Makefile.in (em88kbcs.c): Depend upon generic.em rather than
4193 m88kbcs.em.
4194
4195 * mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
4196 to lang_enter_output_section_statement. From Mark Rasin
4197 <mark.rasin@telrad.co.il>.
4198
4199 Wed Feb 26 11:51:44 1997 Ian Lance Taylor <ian@cygnus.com>
4200
4201 * ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
4202 section.
4203
4204 Tue Feb 25 20:38:11 1997 Stan Shebs <shebs@andros.cygnus.com>
4205
4206 * configure.tgt (mips*-*-lnews*): New target.
4207 * Makefile.in (emipslnews.c): New target.
4208 * emulparams/mipslnews.sh: New file.
4209
4210 Tue Feb 25 16:04:09 1997 Ian Lance Taylor <ian@cygnus.com>
4211
4212 * emultempl/elf32.em (hold_interp): New static variable.
4213 (gld${EMULATION_NAME}_place_orphan): Put loadable .note sections
4214 after hold_interp. Choose a unique output section name.
4215 (gld${EMULATION_NAME}_place_section): Don't set hold_use if the
4216 SEC_LOAD or SEC_ALLOC flags differ. Set hold_interp.
4217
4218 Mon Feb 24 18:16:09 1997 Ian Lance Taylor <ian@cygnus.com>
4219
4220 From Eric Youngdale <eric@andante.jic.com>:
4221 * ldlex.l (V_TAG, V_IDENTIFIER): New macros.
4222 (VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
4223 information.
4224 (ldlex_version_script, ldlex_version_file): New functions.
4225 * ldlex.h (enum input_enum): Add input_version_script.
4226 (ldlex_version_script): Declare.
4227 (ldlex_version_file): Declare.
4228 * ldgram.y (%union): Add deflist, versyms, and versnode.
4229 (VERS_TAG, VERS_IDENTIFIER): New terminals.
4230 (GLOBAL, LOCAL, VERSION, INPUT_VERSION_SCRIPT): New terminals.
4231 (file): Accept INPUT_VERSION_SCRIPT.
4232 (ifile_p1): Accept version.
4233 (version_script_file): New nonterminal.
4234 (version, vers_nodes, vers_node): Likewise.
4235 (verdep, vers_tag, ver_defns): Likewise.
4236 * ldlang.c (lang_elf_version_info): New global variable.
4237 (lang_new_vers_regex): New function.
4238 (lang_new_vers_node): New function.
4239 (version_index): New static variable.
4240 (lang_register_vers_node): New function.
4241 (lang_add_vers_depend): New function.
4242 * ldlang.h (lang_elf_version_info): Declare.
4243 (lang_new_vers_regex, lang_new_vers_node): Declare.
4244 (lang_add_vers_depend, lang_register_vers_node): Declare.
4245 * lexsup.c (OPTION_VERSION_SCRIPT): Define.
4246 (ld_options): Add "version-script".
4247 (parse_args): Handle OPTION_VERSION_SCRIPT.
4248 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4249 Pass lang_elf_version_info to size_dynamic_sections.
4250 * scripttempl/elf.sc: Add .gnu.version sections.
4251 * ld.texinfo: Document symbol versioning.
4252
4253 Fri Feb 21 17:37:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
4254
4255 * Makefile.in (ed30velf.c): New target.
4256 * configure.tgt (d30v-*-*): New target.
4257 * emulparams/d30velf.sh: New file.
4258 * scripttempl/elfd30v.sc: New file.
4259
4260 Fri Feb 14 18:28:31 1997 Ian Lance Taylor <ian@cygnus.com>
4261
4262 * ld.texinfo (Option Commands): Document the INCLUDE command.
4263
4264 Thu Feb 13 20:31:37 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
4265
4266 * configure.in: Call BFD_NEED_DECLARATION on getenv.
4267 * acconfig.h (NEED_DECLARATION_GETENV): New macro.
4268 * sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
4269 * ldemul.c (ld_emul_default_target): Do not cast getenv return
4270 value.
4271 * ldmain.c (get_emulation): Likewise.
4272 * configure, config.in: Rebuild.
4273
4274 Tue Feb 11 15:34:26 1997 Ian Lance Taylor <ian@cygnus.com>
4275
4276 * scripttempl/elfmips.sc: When relocating, put .mips16.fn.* and
4277 .mips16.call.* in .text.
4278
4279 Sun Feb 9 18:09:13 1997 Fred Fish <fnf@cygnus.com>
4280
4281 * emulparams/tic80coff.sh: New (dummy) file for TIc80.
4282 * scripttempl/tic80coff.sc: New (dummy) file for TIc80.
4283 * Makefile.in (etic80coff.c): Add target and rule to build it.
4284 * configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
4285
4286 Fri Jan 31 13:16:53 1997 Ian Lance Taylor <ian@cygnus.com>
4287
4288 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
4289 ".so" in the name, not ".so.".
4290 (gld${EMULATION_NAME}_search_dir): Accept a plain .so file.
4291
4292 * Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
4293 <alan@spri.levels.unisa.edu.au>.
4294
4295 Thu Jan 30 11:31:52 1997 Ian Lance Taylor <ian@cygnus.com>
4296
4297 * emultempl/sunos.em: Include <ctype.h>.
4298 (gld${EMULATION_NAME}_find_so): Skip the directory name when
4299 searching for ".so.".
4300 (gld${EMULATION_NAME}_search_dir): Make sure that the library name
4301 has a version number, and that only version numbers follow .so.
4302
4303 Wed Jan 29 18:15:00 1997 Geoffrey Noer <noer@cygnus.com>
4304
4305 * scripttempl/pe.sc:
4306 * scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
4307 section so Win32 executables are valid.
4308
4309 Mon Jan 27 12:28:43 1997 Ian Lance Taylor <ian@cygnus.com>
4310
4311 * scripttempl/elf.sc: Put linkonce reloc section in other
4312 appropriate reloc sections.
4313 * scripttempl/elfmips.sc: Add linkonce support.
4314 * scripttempl/elfppc.sc: Likewise.
4315
4316 Fri Jan 24 10:44:09 1997 Jeffrey A Law (law@cygnus.com)
4317
4318 * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
4319 stack up to 0x80000.
4320 * emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
4321
4322 Tue Jan 21 12:11:10 1997 Doug Evans <dje@seba.cygnus.com>
4323
4324 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
4325 to define `_stack'.
4326
4327 Thu Jan 16 17:07:52 1997 Ian Lance Taylor <ian@cygnus.com>
4328
4329 * ld.h (args_type): Rename auxiliary_filter_shlib to
4330 auxiliary_filters, and make it char **.
4331 * lexsup.c (parse_args): Handle -f by setting up an array.
4332 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4333 new name of auxiliary_filters.
4334
4335 * ld.texinfo (Options): Improve documentation of --filter and
4336 --auxiliary.
4337
4338 Tue Jan 14 15:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
4339
4340 * ld.texinfo (Options): Clarify that the normal usage is -T.
4341 (Commands): Likewise.
4342
4343 Thu Jan 9 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
4344
4345 * scripttempl/armcoff.sc: Correct mask used for .data address.
4346
4347 Wed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
4348
4349 * emultempl/pe.em: make default executable a.exe instead of
4350 a.out
4351
4352 Fri Jan 3 17:33:34 1997 Richard Henderson <rth@tamu.edu>
4353
4354 * scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
4355 shifting .plt back. Rumour has it that the NetBSD ld.so depends
4356 on .dynamic being after .got, so we leave that.
4357
4358 Fri Jan 3 14:04:40 1997 Ian Lance Taylor <ian@cygnus.com>
4359
4360 * Makefile.in (clean): Don't remove configdoc.texi.
4361 (maintainer-clean): Do remove configdoc.texi.
4362
4363 * ld.texinfo (Operators): Remove '@' from @smallexmple in comment
4364 to avoid confusing texi2roff.
4365
4366 Fri Jan 3 11:27:02 1997 Michael Meissner <meissner@tiktok.cygnus.com>
4367
4368 * scripttempl/v850.sc (.zdata): Add .zcommon section.
4369 (.tdata): Add .tcommon and .tcommon_byte sections.
4370
4371 Thu Jan 2 18:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
4372
4373 * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
4374 * scripttempl/elfmips.sc: Use __start as the entry address for
4375 mips*-*-linux*.
4376
4377 Tue Dec 31 14:48:30 1996 Ian Lance Taylor <ian@cygnus.com>
4378
4379 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
4380
4381 * ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
4382 fields.
4383 * lexsup.c (parse_args): Recognize --auxiliary/-f and
4384 --filter/-F.
4385 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4386 Pass filter_shlib and auxiliary_filter_shlib to
4387 size_dynamic_sections.
4388 * ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
4389
4390 Mon Dec 30 13:55:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4391
4392 * scripttempl/v850.sc (.tdata) Add .tbss and .tbyte sections.
4393
4394 Wed Dec 18 22:57:35 1996 Stan Shebs <shebs@andros.cygnus.com>
4395
4396 * mpw-make.sed: Use NewFolderRecursive for installation.
4397
4398 Fri Dec 13 14:08:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4399
4400 * scripttempl/v850.sc: Make sure __{e,g}p start relative to the
4401 {s,t}data sections. Do not emit any linker generated symbols if
4402 -r. Use {TEXT,{Z,S,T}DATA}_START_ADDR variables to initialize
4403 where the different sections go. Change some whitespace.
4404
4405 * emulparams/v850.sh ({TEXT,{Z,S,T}DATA}_START_ADDR): Define
4406 appropriately. Remove crud not used anymore.
4407
4408 Fri Dec 13 10:19:57 1996 Jeffrey A Law (law@cygnus.com)
4409
4410 * Makefile.in (emn10200.c): Add dependencies.
4411 * configure.tgt: Handle mn10200.
4412 * emulparms/mn10200.sh: New file.
4413
4414 Thu Dec 12 17:04:55 1996 Ian Lance Taylor <ian@cygnus.com>
4415
4416 * emultempl/gld960c.em: Include <ctype.h>.
4417 (gld960_set_output_arch): Get the machine type from the -A option
4418 if there is one, rather than always using core.
4419
4420 Sat Dec 7 10:07:51 1996 Jeffrey A Law (law@cygnus.com)
4421
4422 * emulparms/mn10300.sh: Handle leading underscores.
4423
4424 Thu Dec 5 13:45:58 1996 Ian Lance Taylor <ian@cygnus.com>
4425
4426 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Only
4427 set hold_rel if SEC_ALLOC is set.
4428
4429 Tue Dec 3 11:29:20 1996 Ian Lance Taylor <ian@cygnus.com>
4430
4431 * ldlang.c (section_already_linked): Set the output_offset as well
4432 as the output_section when only reading symbols from a file.
4433
4434 Mon Dec 2 11:43:50 1996 Ian Lance Taylor <ian@cygnus.com>
4435
4436 * emulparams/*.sh: Make sure that each set of parameters which
4437 uses the elf.sc script sets MACHINE.
4438
4439 Wed Nov 27 03:22:05 1996 Jason Merrill <jason@yorick.cygnus.com>
4440
4441 * scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
4442 * scripttempl/elfd10v.sc: Likewise.
4443 * scripttempl/v850.sc: Likewise.
4444
4445 Tue Nov 26 16:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
4446
4447 * configure: Rebuild with autoconf 2.12.
4448
4449 Mon Nov 25 12:17:55 1996 Jim Wilson <wilson@cygnus.com>
4450
4451 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Add case
4452 for bfd_vma to init loop.
4453
4454 Mon Nov 25 09:55:07 1996 Jeffrey A Law (law@cygnus.com)
4455
4456 * emulparms/mn10300.sh: Remove bogus '_' prefix for
4457 entry symbol and ctor/dtor stuff.
4458
4459 Fri Nov 15 13:00:18 1996 Jeffrey A Law (law@cygnus.com)
4460
4461 * Makefile.in (emn10300.c): Add dependencies.
4462 * configure.tgt: Handle mn10300.
4463 * emulparms/mn10300.sh: New file.
4464
4465 Tue Nov 5 10:57:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4466
4467 * emulparams/d10velf.sh (READONLY_START_ADDR): Changed to 0x2000004.
4468 (EMBEDDED): Define.
4469
4470 Fri Nov 1 10:01:27 1996 Ian Lance Taylor <ian@cygnus.com>
4471
4472 * ld.texinfo: Add section on reporting bugs.
4473
4474 * scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
4475 symbols are correctly aligned.
4476
4477 Thu Oct 31 09:28:59 1996 Jeffrey A Law (law@cygnus.com)
4478
4479 * scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
4480 romzbss too.
4481
4482 Tue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4483
4484 * emulparams/d10velf.sh: Changes needed for D10V-EVA board.
4485 Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
4486 0x2000000.
4487
4488 * scripttempl/elfd10v.sc: Fix calculation of .text. Change
4489 .stack to start at 0x2007ffe.
4490
4491 Mon Oct 28 15:37:00 1996 Doug Evans <dje@canuck.cygnus.com>
4492
4493 * configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
4494
4495 Wed Oct 23 16:17:22 1996 Jeffrey A Law (law@cygnus.com)
4496
4497 * scriptempl/v850.sc (zdata): Fix typo "zrodata" -> "rozdata".
4498
4499 * scriptempl/v850.sc (zdata): Make sure this stays
4500 in lo-memory.
4501
4502 Tue Oct 22 11:36:47 1996 Jeffrey A Law (law@cygnus.com)
4503
4504 * scripttempl/v850.sc (__ep): Put it at the start
4505 of the tda section.
4506
4507 * scriptempl/v850.sc: Move all "normal" sections into
4508 the external memory region (0x100000 - 0x200000).
4509
4510 Mon Oct 21 17:16:59 1996 Michael Meissner <meissner@wogglebug.tiac.net>
4511
4512 * scripttempl/elfd10v.sc: Clone from elf.sc, move .text to
4513 0x10000, so that is more room for data.
4514
4515 * emulparams/d10velf.sh (TEXT_START_ADDR): Now 0x100000.
4516 (READONLY_START_ADDR): Now 0x0.
4517 (SCRIPT_NAME): Now elfd10v.
4518
4519 * Makefile.in (ed10velf.c): Depend on elfd10v.sc, not elf.sc.
4520
4521 Fri Oct 18 22:12:49 1996 Doug Evans <dje@canuck.cygnus.com>
4522
4523 * emulparams/m32relf.sh (TEXT_START_ADDR): Change from 0 to 0x100.
4524
4525 Fri Oct 18 15:43:38 1996 Ian Lance Taylor <ian@cygnus.com>
4526
4527 * Makefile.in (ALL_EMULATIONS): Remove eelf64alpha.o.
4528 (ALL_64_EMULATIONS): New variable.
4529 * configure.in: Accept --enable-64-bit-bfd option. If it is set
4530 with --enable-targets=all, include ALL_64_EMULATIONS in
4531 EMULATION_OFILES.
4532 * configure: Rebuild.
4533
4534 Fri Oct 18 12:58:35 1996 Jeffrey A Law (law@cygnus.com)
4535
4536 * scripttempl/v850.sc (__gp, __ep): Define.
4537
4538 Thu Oct 17 18:14:07 1996 Ian Lance Taylor <ian@cygnus.com>
4539
4540 * ld.texinfo: Try to consistently use a single or a double dash
4541 for each option.
4542
4543 Thu Oct 17 10:17:20 1996 Doug Evans <dje@canuck.cygnus.com>
4544
4545 * emulparams/m32relf.sh (EMBEDDED): Define.
4546
4547 Thu Oct 17 10:56:49 1996 Jeffrey A Law (law@cygnus.com)
4548
4549 * scripttempl/v850.sc (.zdata): Add this before .text.
4550 (.sdata): Also include .rosdata as part of the .sdata.
4551 (.tdata): Include this just before .sdata.
4552
4553 * emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
4554 * scripttempl/v850.sc: Wrap script with a "cat << EOF".
4555
4556 Wed Oct 16 23:10:01 1996 Jeffrey A Law (law@cygnus.com)
4557
4558 * scripttempl/v850.sc: New linker script for the V850.
4559 * Makefile.in: Use it.
4560
4561 Thu Oct 10 17:57:00 1996 Ian Lance Taylor <ian@cygnus.com>
4562
4563 * emulparams/elf32b4300.sh: Define _gp in OTHER_GOT_SYMBOLS, not
4564 OTHER_READWRITE_SECTIONS.
4565 * emulparams/elf32l4300.sh: Likewise.
4566
4567 Wed Oct 9 14:36:18 1996 Ian Lance Taylor <ian@cygnus.com>
4568
4569 * ld.h (ld_config_type): Add warn_section_align field.
4570 * lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
4571 (ld_options): Add --warn-section-align.
4572 (parse_args): Handle --warn-section-align.
4573 * ldlang.c (lang_size_sections): If warn_section_align, warn if
4574 the start of a section changes due to alignment.
4575 * ld.texinfo, ld.1: Document --warn-section-align.
4576 * ld.texinfo: Change some single dashes to double dashes.
4577
4578 * emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
4579 subsystem type. Ifdef out os2 type. Recognize a version number.
4580
4581 Tue Oct 8 12:07:13 1996 Ian Lance Taylor <ian@cygnus.com>
4582
4583 * emultempl/pe.em (set_pe_subsystem): When setting the subsystem
4584 to windows, set the entry point.
4585
4586 * Makefile.in (ldlex.c): Don't pass any options to $(LEX).
4587
4588 Mon Oct 7 17:29:05 1996 Ian Lance Taylor <ian@cygnus.com>
4589
4590 * ld.texinfo (Options): Mention .so extensions for shared
4591 libraries.
4592
4593 Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
4594
4595 * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
4596
4597 Fri Oct 4 18:49:31 1996 Ian Lance Taylor <ian@cygnus.com>
4598
4599 * scripttempl/m68kcoff.sc: Only set the address of .text if
4600 RELOCATING.
4601
4602 Fri Oct 4 10:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
4603
4604 * emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
4605 * scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
4606 (OUTPUT_FORMAT): Support bi-endian targets.
4607
4608 Thu Oct 3 13:52:03 1996 Ian Lance Taylor <ian@cygnus.com>
4609
4610 * fnmatch.h, fnmatch.c: Remove (now in libiberty).
4611 * Makefile.in: Rebuild dependencies.
4612 (CFILES): Remove fnmatch.c.
4613 (HFILES): Remove fnmatch.h.
4614 (OFILES): Remove fnmatch.o.
4615
4616 Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
4617
4618 * Makefile.in (mostlyclean): Move config.log to distclean.
4619
4620 Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
4621
4622 * emultmpl/pe.em: increase size of stack reserve to 0x2000000
4623 (necessary in order to compile parse.c in gcc sources under NT)
4624
4625 Wed Oct 2 14:49:10 1996 Ian Lance Taylor <ian@cygnus.com>
4626
4627 * lexsup.c (ld_options): Fix typo in --rpath-link description.
4628 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
4629 --rpath if a needed library is not found.
4630
4631 Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com>
4632
4633 * configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
4634
4635 Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com>
4636
4637 * ld.texinfo (Options): Give more detail on -l option.
4638
4639 * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
4640 elf.sc does, so that glibc works better.
4641
4642 * ldver.c (ld_program_version): New variable.
4643 (ldversion): Use it.
4644 * ldver.h (ld_program_version): Declare.
4645 * lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
4646 --version. Change --version handling to match current GNU
4647 standards.
4648 (help): Print bug report address.
4649
4650 Mon Sep 30 12:14:43 1996 Doug Evans <dje@canuck.cygnus.com>
4651
4652 * Makefile.in (em32relf.c): Add rule for.
4653 * configure.tgt (m32r-*-*): Recognize.
4654 * emulparams/m32relf.sh: New file.
4655
4656 Thu Sep 26 13:58:47 1996 Stan Shebs <shebs@andros.cygnus.com>
4657
4658 * mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
4659 * mpw-config.in: Add mips-*-* case as mips-elf, and use more
4660 wildcards in matching.
4661 * mpw-emipself.c: New file, pregenerated mips elf emulation.
4662
4663 Tue Sep 17 12:18:21 1996 Ian Lance Taylor <ian@cygnus.com>
4664
4665 * ldint.texinfo: Rewrote.
4666
4667 * configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
4668
4669 Mon Sep 16 17:55:21 1996 Ian Lance Taylor <ian@cygnus.com>
4670
4671 * scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
4672 syntax error on __end__ line.
4673
4674 * scripttempl/armcoff.sc: For -N or -n, don't align .data. From
4675 Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
4676
4677 Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com)
4678
4679 * emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
4680
4681 Sun Sep 15 10:38:16 1996 Mark Alexander <marka@cygnus.com>
4682
4683 * emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
4684 stack at top of simulator memory.
4685
4686 Fri Sep 13 15:49:45 1996 Ian Lance Taylor <ian@cygnus.com>
4687
4688 * ldlex.l (SYMBOLCHARN): Add $, _, and ~.
4689
4690 Wed Sep 11 23:30:42 1996 Ian Lance Taylor <ian@cygnus.com>
4691
4692 * ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
4693
4694 Thu Sep 5 15:24:12 1996 Ian Lance Taylor <ian@cygnus.com>
4695
4696 * ldlang.c (section_already_linked): Accept a lang_input_statement
4697 as the PTR argument. If the file is symbols only, discard all
4698 input sections.
4699 (ldlang_add_file): Pass entry to bfd_map_over_sections.
4700
4701 Wed Sep 4 15:53:43 1996 Ian Lance Taylor <ian@cygnus.com>
4702
4703 * configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
4704 <fila@ibi.com>.
4705
4706 Tue Sep 3 00:52:54 1996 Jeffrey A Law (law@cygnus.com)
4707
4708 * emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
4709
4710 Sun Sep 1 21:48:58 1996 Jeffrey A Law (law@cygnus.com)
4711
4712 * emulparms/v850.sh: Set EMBEDDED.
4713
4714 Fri Aug 30 22:30:30 1996 Jeffrey A Law (law@cygnus.com)
4715
4716 * emulparms/v850.sh: Entry symbol is "_start", tweak
4717 ctor/dtor support.
4718
4719 Fri Aug 30 18:32:31 1996 Ian Lance Taylor <ian@cygnus.com>
4720
4721 * configure.tgt (sh-*-elf*): New target.
4722 * emulparams/shelf.sh: New file.
4723 * emulparams/shlelf.sh: New file.
4724 * Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
4725 (eshelf.c, eshlelf.c): New targets.
4726 * scripttempl/elf.sc: If EMBEDDED is defined, then don't add
4727 SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END
4728 around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
4729 OTHER_RELOCATING_SECTIONS if RELOCATING.
4730
4731 Thu Aug 29 16:57:46 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4732
4733 * configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
4734 pro.
4735
4736 Mon Aug 26 12:58:11 1996 Ian Lance Taylor <ian@cygnus.com>
4737
4738 * ldgram.y (section): Add opt_nocrossrefs; pass value to
4739 lang_enter_overlay.
4740 (opt_nocrossrefs): New nonterminal.
4741 * ldlex.l: Recognize NOCROSSREFS keyword in EXPRESSION mode.
4742 * ldlang.c (overlay_nocrossrefs): New static variable.
4743 (lang_enter_overlay): Add nocrossrefs parameter.
4744 (lang_leave_overlay): Only add nocrossrefs if overlay_nocrossrefs
4745 is set. Initialize overlay_nocrossrefs.
4746 * ldlang.h (lang_enter_overlay): Update declaration.
4747 * ld.texinfo (Overlays): Update documentation.
4748
4749 * ldver.c (ldversion): Print GNU ld in the version message.
4750
4751 Thu Aug 22 17:10:40 1996 Ian Lance Taylor <ian@cygnus.com>
4752
4753 * configure.host: Set HLDENV.
4754 * configure.in: Substitute HLDENV.
4755 * configure: Rebuild.
4756 * Makefile.in (HLDENV): New variable.
4757 ($(LD_PROG)): Use $(HLDENV).
4758
4759 Thu Aug 22 16:29:28 1996 Jeffrey A Law (law@cygnus.com)
4760
4761 * Makefile.in (ev850.c): New target.
4762 * configure.tgt (v850-*-*): New target.
4763 * emulparams/v850.sh: New file.
4764
4765 Thu Aug 22 11:16:02 1996 Stan Shebs <shebs@andros.cygnus.com>
4766
4767 * mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
4768
4769 Wed Aug 21 11:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
4770
4771 * scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
4772 containing sections.
4773
4774 Mon Aug 19 13:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
4775
4776 * fnmatch.c: Include sysdep.h.
4777
4778 Mon Aug 19 11:28:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4779
4780 * genscripts.sh: Undo 8/16 change.
4781
4782 * emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
4783
4784 Fri Aug 16 19:18:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4785
4786 * genscripts.sh: Explicitly reset any shell variables set or used
4787 by the various .sc scripts to allow inadvertant use of these
4788 names as normal environment variables by the person running
4789 configure.
4790
4791 * Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
4792
4793 Fri Aug 16 14:15:41 1996 James G. Smith <jsmith@cygnus.co.uk>
4794
4795 * scripttempl/armcoff.sc (__bss_start__, __bss_end__,
4796 __data_start__, __data_end__): Added to keep in sync. with the
4797 default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
4798
4799 Thu Aug 8 14:24:56 1996 Ian Lance Taylor <ian@cygnus.com>
4800
4801 * ldcref.c (check_reloc_refs): If info->same, look for any symbol
4802 defined in info->defsec, not just the section symbol.
4803
4804 Wed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
4805
4806 * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
4807 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
4808 (NEED_DECLARATION_SBRK): New macro.
4809 * configure, config.in: Rebuild.
4810 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
4811 * ldmain.c (sbrk): Declare if HAVE_SBRK and
4812 NEED_DECLARATION_SBRK.
4813
4814 * ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
4815
4816 Mon Aug 5 16:26:14 1996 Ian Lance Taylor <ian@cygnus.com>
4817
4818 * ldlex.l: Recognize OVERLAY.
4819 * ldgram.y: Add section_phdr field to %union.
4820 (section): Handle phdr_opt result. Add OVERLAY case.
4821 (opt_exp_without_type): New nonterminal.
4822 (phdr_opt): Return list of phdrs.
4823 (overlay_section): New nonterminal.
4824 * ldlang.c: Include <ctype.h>.
4825 (lang_leave_output_section_statement): Add phdrs parameter.
4826 Change all callers.
4827 (lang_section_in_phdr): Remove.
4828 (overlay_vma, overlay_lmn, overlay_max): New static variables.
4829 (struct overlay_list): Define.
4830 (overlay_list): New static variable.
4831 (lang_enter_overlay, lang_enter_overlay_section): New functions.
4832 (lang_leave_overlay_section, lang_leave_overlay): New functions.
4833 * ldlang.h (lang_leave_output_section_statement): Update
4834 declaration for new parameter.
4835 (lang_section_in_phdr): Don't declare.
4836 (lang_enter_overlay, lang_enter_overlay_section): Declare.
4837 (lang_leave_overlay_section, lang_leave_overlay): Declare.
4838 * ld.texinfo (Overlays): New node under SECTIONS, documenting
4839 overlays.
4840
4841 * ldlex.l: Recognize MAX and MIN.
4842 * ldgram.y (MAX, MIN): New terminals.
4843 (exp): Recognize MAX and MIN.
4844 * ldexp.c (fold_binary): Handle MAX and MIN.
4845 * ld.texinfo (Arithmetic Functions): Document MAX and MIN.
4846
4847 * ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
4848 index entries.
4849
4850 * ldgram.y (SIZEOF, ADDR): Do not specify type.
4851
4852 * ldcref.c (check_nocrossref): Skip symbols with no output
4853 sections.
4854
4855 Fri Aug 2 14:57:49 1996 Ian Lance Taylor <ian@cygnus.com>
4856
4857 * ldgram.y (LOADADDR): New terminal.
4858 (exp): Handle LOADADDR.
4859 * ldlex.l: Recognize LOADADDR.
4860 * ldexp.c (exp_print_token): Add LOADADDR.
4861 (fold_name): Implement LOADADDR.
4862 * ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
4863 * ld.texinfo (Arithmetic Functions): Document LOADADDR.
4864
4865 Thu Aug 1 12:52:19 1996 Ian Lance Taylor <ian@cygnus.com>
4866
4867 * ld.h (check_nocrossrefs): Declare.
4868 * ldlang.h (struct lang_nocrossref): Define.
4869 (struct lang_nocrossrefs): Define.
4870 (nocrossref_list): Declare.
4871 (lang_add_nocrossref): Declare.
4872 * ldlex.l: Recognize NOCROSSREFS keyword.
4873 * ldgram.y (%union): Add nocrossref field.
4874 (NOCROSSREFS): New terminal.
4875 (ifile_p1): Recognize NOCROSSREFS.
4876 (nocrossref_list): New nonterminal.
4877 * ldlang.c (nocrossref_list): Define.
4878 (lang_add_nocrossref): New function.
4879 * ldmain.c (main): If nocrossref_list is not NULL, call
4880 check_nocrossrefs.
4881 (warning_callback): Free symbols if there is no place to store
4882 them.
4883 (notice): Call add_cref if nocrossref_list is not NULL.
4884 * ldcref.c: Include "ldexp.h" and "ldlang.h".
4885 (check_nocrossrefs): New function.
4886 (check_nocrossref): New static function.
4887 (struct check_refs_info): Define.
4888 (check_refs, check_reloc_refs): New static functions.
4889 * Makefile.in: Rebuild dependencies.
4890 * ld.texinfo (Option Commands): Document NOCROSSREFS.
4891
4892 * ld.texinfo (Section Placement): Improve the wording of the
4893 wildcard documentation. Mention that wildcards are only searched
4894 for on the command line, not in the file system.
4895
4896 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
4897 definition of lib_path inside condition where it is used.
4898
4899 Wed Jul 31 13:17:10 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4900
4901 * emulparams/d10velf.sh: Now works with elf.sc.
4902
4903 Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4904
4905 * emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
4906
4907 Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
4908
4909 * ldlang.c (lang_size_sections): Add the section VMA to the result
4910 value when computing the address of a section.
4911
4912 * ld.h (args_type): Add cref field.
4913 * lexsup.c (parse_args): Set command_line.cref.
4914 * ldmain.c (main): Check command_line.cref rather than
4915 link_info.notice_all.
4916 (notice): Likewise.
4917
4918 * ldcref.c (output_one_cref): Don't crash if a symbol is defined
4919 in a section without an owner.
4920
4921 Mon Jul 29 17:23:33 1996 Ian Lance Taylor <ian@cygnus.com>
4922
4923 * fnmatch.h, fnmatch.c: New files.
4924 * ldlex.l: Remove unused definition of FILENAME. Add definition
4925 of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a
4926 NAME.
4927 * ldgram.y (file_NAME_list): Accept '*' and '?' specially.
4928 (input_section_spec): Accept '?' specially.
4929 (statement): Change exp to mustbe_exp in length and FILL cases.
4930 (section): Call ldlex_script before section statements, and call
4931 ldlex_popstate after them.
4932 * ldlang.c: Include "fnmatch.h".
4933 (wildcardp): New static function.
4934 (wild_section): Permit the section name to be a wildcard.
4935 (wild_file): New static function, broken out of wild.
4936 (wild): Call wild_file. Permit the file name to be a wildcard.
4937 (open_input_bfds): Don't call lookup_name for a wildcard pattern.
4938 * Makefile.in: Rebuild dependencies.
4939 (CFILES): Add fnmatch.c.
4940 (HFILES): Add fnmatch.h.
4941 (OFILES): Add fnmatch.o.
4942 * ld.texinfo: Document that file and section names can now be
4943 wildcard patterns.
4944
4945 * ldlang.c (lang_place_orphans): Correct condition: place a common
4946 section if not relocateable or if common definitions are forced.
4947
4948 Wed Jul 24 12:16:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4949
4950 * emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
4951
4952 Wed Jul 24 13:38:22 1996 Michael Meissner <meissner@wogglebug.tiac.net>
4953
4954 * configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
4955
4956 Tue Jul 23 10:36:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4957
4958 * Makefile.in (ed10velf.c): New target.
4959 * configure.tgt (d10v-*-elf*): New target.
4960 * emulparams/d10velf.sh: New file.
4961
4962 Thu Jul 18 16:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
4963
4964 * configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
4965 <ANDREWG@microlise.co.uk>.
4966
4967 * configure.host: Change irix5 to irix[56]*.
4968 * configure.tgt: Likewise.
4969
4970 Wed Jul 17 10:52:46 1996 Kim Knuttila <krk@cygnus.com>
4971
4972 * emultempl/pe.em (sort_sections): Pay attention to return code.
4973
4974 * ldmisc.c (demangle): Remove all prefix '.'s from a name.
4975
4976 Mon Jul 15 11:49:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4977
4978 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round
4979 the value of __start_SECNAME to the alignment required by the
4980 section to be placed.
4981
4982 Tue Jul 9 12:09:02 1996 Ian Lance Taylor <ian@cygnus.com>
4983
4984 * configure.tgt (mips*el-*-elf*): Use elf32elmip.
4985 (mips*-*-elf*): Use elf32ebmip.
4986 * emulparams/elf32bmip.sh (EMBEDDED): Don't define.
4987 * emulparams/elf32lmip.sh (EMBEDDED): Don't define.
4988 * emulparams/elf32elmip.sh: New file; copy of elf32lmip.sh with
4989 EMBEDDED defined.
4990 * emulparams/elf32ebmip.sh: New file; copy of elf32bmip.sh with
4991 EMBEDDED defined.
4992 * emulparams/elf32b4300.sh (EMBEDDED): Define.
4993 * emulparams/elf32l4300.sh (EMBEDDED): Define.
4994 * Makefile.in (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
4995 (eelf32ebmip.c, eelf32elmip.c): New targets.
4996
4997 Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
4998
4999 * ldver.c (ldversion): Set version to cygnus-2.7.1.
5000
5001 * Released binutils 2.7.
5002
5003 * emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
5004 System V file name limitations.
5005 * configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
5006 pc532macha rather than pc532machaout.
5007 * Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
5008 epc532macha.o.
5009 (epc532macha.c): Rename target from epc532machaout.c.
5010
5011 Wed Jul 3 11:40:10 1996 Ian Lance Taylor <ian@cygnus.com>
5012
5013 * ldlang.c (print_padding_statement): Use %u, not %x, to print
5014 fill value.
5015
5016 Sun Jun 30 11:16:43 1996 Stan Shebs <shebs@andros.cygnus.com>
5017
5018 * mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
5019
5020 Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
5021
5022 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
5023 file just before the .so file, rather than just after.
5024
5025 * configure.host: Use -print-file-name=FILE rather than piping
5026 -print-libgcc-file-name through sed.
5027 (i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
5028 crtend.o files, in case gcc doesn't use them.
5029 * Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
5030
5031 Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
5032
5033 * configure.tgt (mips*-dec-osf*): New target.
5034
5035 Tue Jun 25 22:15:29 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
5036
5037 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
5038 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
5039 (docdir): Removed.
5040 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
5041 (AC_PROG_INSTALL): Added.
5042 * configure: Rebuilt.
5043
5044 Mon Jun 24 18:48:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5045
5046 * scripttempl/elfppc.sc (_GLOBAL_OFFSET_TABLE_): Don't do a
5047 PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
5048 non-fixed location.
5049
5050 Mon Jun 24 17:55:31 1996 Jouke Numan <jnuman@bazis.nl>
5051
5052 * ldlang.h (enum section_type): Define.
5053 (lang_output_section_statement_type): Remove loadable field. Add
5054 sectype field.
5055 (lang_enter_output_section_statement): Change flags parameter in
5056 prototype to sectype.
5057 * ldgram.y (typebits): Remove.
5058 (sectype): New static variable.
5059 (opt_at): Use sectype rather than typebits.
5060 (type): Set sectype rather than typebits.
5061 (atype): Likewise.
5062 * ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
5063 EXPRESSION mode.
5064 * ldlang.c (lang_output_section_statement_lookup): Set sectype
5065 field rather than loadable field.
5066 (wild_doit): Check sectype rather than loadable.
5067 (lang_record_phdrs): Likewise.
5068 (lang_enter_output_section_statement): Rename flags parameter to
5069 sectype. Set sectype field rather than loadable field. Set flags
5070 field based on sectype.
5071
5072 Mon Jun 24 12:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
5073
5074 * scripttempl/elf.sc: Force .stab* and .comment sections to start
5075 at 0.
5076
5077 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
5078 using shared libraries.
5079 * configure: Rebuild with autoconf 2.10.
5080
5081 Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
5082
5083 * configure.tgt: Add support for *-*-rtems* configurations.
5084
5085 Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
5086
5087 * configure.tgt (alpha-*-linuxecoff*): New target.
5088 (alpha-*-linux*): Use elf64alpha.
5089 * emulparams/elf64alpha.sh: New file.
5090 * emultempl/elf32.em: If ELFSIZE is not set, set it to 32. Use
5091 ${ELFSIZE} rather than 32 when calling BFD routines.
5092 (hold_rodata): New static variable.
5093 (gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
5094 readonly section that is not code.
5095 (gld${EMULATION_NAME}_place_section): Set hold_rodata. Don't use
5096 a .rel section unless its bfd_section field is not NULL.
5097 * Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
5098 (eelf64alpha.c): New target.
5099
5100 Fri Jun 21 12:45:46 1996 Ian Lance Taylor <ian@cygnus.com>
5101
5102 * ldmisc.c (vfinfo): Correct handling of 0 in %W case.
5103
5104 Thu Jun 20 13:55:28 1996 Ian Lance Taylor <ian@cygnus.com>
5105
5106 Add enough support to understand the gcc svr3.ifile script:
5107 * ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context. Add
5108 BIND keyword.
5109 * ldgram.y: Add BIND token.
5110 (section): Recognize GROUP.
5111 (opt_ext_with_type): Recognize a couple of cases of BIND.
5112 * ldlang.c (init_os): Don't do anything if section is already
5113 initialized. Call exp_init_os on addr_tree field.
5114 (exp_init_os): New static function.
5115 (map_input_to_output_sections): Call exp_init_os on assignment
5116 expression.
5117 (lang_place_orphans): Check for common sections by name COMMON
5118 rather than by common_section field. Don't warn about absence of
5119 [COMMON] command.
5120
5121 * ldlang.h (lang_input_statement_type): Remove useless fields
5122 common_section, common_output_section, and complained, as well as
5123 all references to them.
5124
5125 * ldexp.c: Reindent a lot of code.
5126 (exp_fold_tree): Call FAIL rather than einfo in default case.
5127
5128 Wed Jun 19 11:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
5129
5130 * configure.host (m88*-*-dgux*): Quote HOSTING_CRT0. From
5131 <randall.hron@medaphis.com>.
5132
5133 Tue Jun 18 15:53:09 1996 Jeffrey A. Law <law@rtl.cygnus.com>
5134
5135 * scripttempl/h8300s.sc: New file for H8/S.
5136 * emulpararms/h8300s.sh: New file for H8/S.
5137 * Makefile.in (ALL_EMULATIONS): Add H8/S.
5138 (e_h8300s.c): Add dependencies.
5139 * configure.tgt: Add H8/S to targ_extra_emuls.
5140
5141 Tue Jun 18 17:55:39 1996 Ian Lance Taylor <ian@cygnus.com>
5142
5143 * configure.tgt (i[345]86*-*-isc*): New target. From
5144 <uddeborg@carmen.se>.
5145
5146 Wed Jun 12 12:46:21 1996 Ian Lance Taylor <ian@cygnus.com>
5147
5148 * lexsup.c: Include "libiberty.h".
5149 (parse_args): Copy the -Y argument into memory.
5150 (set_default_dirlist): Don't put the ':' back into the directory
5151 list.
5152
5153 Fri Jun 7 11:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
5154
5155 * emultempl/sunos.em: Include libiberty.h.
5156 (gld${EMULATION_NAME}_set_symbols): New static function to add
5157 LD_LIBRARY_PATH to the list of search directories.
5158 (ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
5159
5160 Thu Jun 6 11:50:31 1996 Ian Lance Taylor <ian@cygnus.com>
5161
5162 * emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
5163 rather than . when computing _gp value. From Per Fogelstrom.
5164 * emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
5165
5166 * ldmain.c (main): Don't close and unlink the file on error, since
5167 remove_output will do it anyhow.
5168 * ldlang.c (open_output): Set boolean variable to true, not 1.
5169
5170 Wed Jun 5 18:34:14 1996 James G. Smith <jsmith@cygnus.co.uk>
5171
5172 * emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
5173 elfmips instead of elf.
5174
5175 Tue Jun 4 18:43:07 1996 Ian Lance Taylor <ian@cygnus.com>
5176
5177 * ldcref.c: New file.
5178 * ld.h (add_cref, output_cref): Declare.
5179 * ldmain.c (main): Initialize notice_all field. If it is set at
5180 end of link, call output_cref.
5181 (notice): Rename from notice_ysym. Check notice_all.
5182 * ldmisc.c (finfo): Make globally visible.
5183 * ldmisc.h (finfo): Declare.
5184 * lexsup.c (OPTION_CREF): Define.
5185 (ld_options): Add "cref".
5186 (parse_args): Handle OPTION_CREF.
5187 * Makefile.in: Rebuild dependencies.
5188 (CFILES): Add ldcref.c.
5189 (OFILES): Add ldcref.o.
5190 * ld.texinfo, ld.1: Document --cref.
5191
5192 Tue Jun 4 12:12:25 1996 Tom Tromey <tromey@csk3.cygnus.com>
5193
5194 * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
5195
5196 Fri May 31 12:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
5197
5198 * emultempl/pe.em (sort_sections): Don't assume that a
5199 wild_statement has a section name.
5200
5201 Wed May 29 13:13:35 1996 Ian Lance Taylor <ian@cygnus.com>
5202
5203 * scripttempl/elfmips.sc: Quote test -z argument.
5204
5205 * ld.texinfo: Clarify the CONSTRUCTORS command.
5206
5207 Thu May 23 16:07:44 1996 Ian Lance Taylor <ian@cygnus.com>
5208
5209 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
5210 file, not impfile.
5211
5212 Wed May 22 11:31:30 1996 Doug Evans <dje@seba.cygnus.com>
5213
5214 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
5215 if final link.
5216 * emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
5217 (sort_by_section_name, sort_sections_1): New functions.
5218 (sort_sections): Only sort by file name sections in .idata.
5219 Add "Grouped Sections" support.
5220 (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
5221 Sections.
5222 (gld${EMULATION_NAME}_place_section): Delete.
5223 * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
5224 (.CRT,.rsrc): Rewrite to use Grouped Section support.
5225
5226 Tue May 21 14:31:48 1996 Stan Shebs <shebs@andros.cygnus.com>
5227
5228 * mpw-eppcmac.c: Update to reflect changes to aix.em.
5229
5230 Sun May 19 16:59:44 1996 Doug Evans <dje@seba.cygnus.com>
5231
5232 * ldlang.c (dprint_statement): Stop printing at end of list.
5233
5234 Sat May 18 13:12:05 1996 Steve Chamberlain <sac@slash.cygnus.com>
5235
5236 Support for --force-exe-suffix
5237 * ld.h (args_type): Add force_exe_suffix.
5238 * ld.texinfo: Add documentation.
5239 * ldmain.c (main): Add support for option.
5240 * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
5241 (ld_options, parse_args): Add support for option.
5242
5243 Wed May 15 12:50:25 1996 Jim Wilson <wilson@chestnut.cygnus.com>
5244
5245 * emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
5246
5247 Fri May 10 16:28:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5248
5249 * scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
5250 referenced but not defined.
5251
5252 Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
5253
5254 * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
5255 Set a new variable to signify if the final target is an embedded
5256 system.
5257 * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
5258 .text for an embedded system.
5259
5260 Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
5261
5262 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
5263 (gld${EMULATION_NAME}_place_section): New function.
5264 (hold_{section,use,text,rdata,data}): New static locals.
5265 (ld_${EMULATION_NAME}_emulation): Update orphan field.
5266 * scripttempl/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
5267 (INIT,FINI): Delete, unused.
5268 (.text): Document orphan .text.foo sections.
5269 (.rdata): Document orphan .rdata.foo sections.
5270 (.data): Document orphan .data.foo sections.
5271
5272 Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
5273
5274 * scripttempl/h8300.sc: Place ".tiny" sections right
5275 after ".data" sections.
5276 * scripttempl/h8300h.sc: Place ".tiny" sections into
5277 the "tiny" memory region, 0xff8000 through 0xffff00.
5278
5279 * scripttempl/h8300.sc: Set the entry point to the value of
5280 "_start" rather than the start of the text segment.
5281 * scripttempl/h8300h.sc: Likewise.
5282
5283 * scripttempl/h8300.sc: Place .rodata sections before .text
5284 sections in main ram.
5285 * scripttempl/h8300h.sc: Likewise.
5286
5287 Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
5288
5289 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
5290 8-bit region and 8-bit sections.
5291
5292 Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
5293
5294 * ldlang.c (section_already_linked): Fix typos.
5295
5296 Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
5297
5298 * scripttempl/pe.sc (.endjunk): Define __end__.
5299
5300 Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
5301
5302 * ldlang.c (longest_section_name): Remove.
5303 (SECTION_NAME_MAP_LENGTH): Define.
5304 (print_size, print_alignment, print_fill, print_section): Remove.
5305 (print_flags): Remove.
5306 (lang_map): Rewrite.
5307 (print_output_section_statement): Rewrite.
5308 (print_assignment): Rewrite.
5309 (print_one_symbol): Rewrite.
5310 (print_input_section): Rewrite.
5311 (print_fill_statement): Rewrite.
5312 (print_data_statement): Rewrite.
5313 (print_address_statement): New static function.
5314 (print_reloc_statement): Rewrite.
5315 (print_padding_statement): Rewrite.
5316 (print_wild_statement): Rewrite.
5317 (print_statement_list): Clean up.
5318 (print_statement): Clean up. Some minor output changes.
5319 (print_statements): Clean up.
5320 (load_symbols): Put another - before -whole-archive.
5321 * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
5322 print 0x and to omit leading zeroes. For etree_rel, use %B to
5323 print the BFD. For etree_assign, remove the space after the
5324 destination name.
5325 * ldwrite.c: Include "libiberty.h".
5326 (clone_section): Call xstrdup, not strdup.
5327 (ldwrite): Don't print any map information.
5328 (print_symbol_table, print_file_stuff, print_symbol): Remove.
5329 * ldmain.c (main): Call lang_map when appropriate.
5330 * ldmisc.c (vfinfo): Add support for %W.
5331 (print_address): Remove.
5332 * ldmisc.h (print_address): Don't declare.
5333 * Makefile.in: Rebuild dependencies.
5334
5335 Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5336
5337 * configure.host (m68*-*-linux*): Add -dynamic-linker to
5338 HOSTING_CRT0. Search -lgcc both before and after -lc in
5339 HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
5340 at first.
5341 (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
5342 directory at first.
5343
5344 Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
5345
5346 * ldmisc.h (demangle): Declare.
5347 * ldmisc.c: Include "libiberty.h". Include demangle.h with "",
5348 not <>.
5349 (demangle): Make non-static. Remove remove_underscore paramter.
5350 Always return an allocated string.
5351 (vfinfo): Free result of demangle. Add case 'G'. Use %T to print
5352 functionname, rather than calling demangle. Print a colon between
5353 the BFD(section+offset) and the line number.
5354 * ldmain.c (add_archive_element): Improve format of archive
5355 information in map file.
5356 (constructor_callback): Don't print anything to the map file.
5357 * ldlang.c (lang_one_common): Improve format of common symbol
5358 information in map file.
5359 * ldctor.c (ldctor_build_sets): If producing a map file, print set
5360 information.
5361 * ldwrite.c (print_symbol_table): Print a newline before the
5362 header in the map file.
5363 * Makefile.in: Rebuild dependencies.
5364
5365 * ldmisc.c (vfinfo): Reindent.
5366
5367 Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
5368
5369 * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
5370 don't clobber it when not relaxing.
5371
5372 * ld.h (ld_config_type): Remove traditional_format field.
5373 * ldmain.c (main): Use link_info.traditional_format rather than
5374 config.traditional_format.
5375 * ldlang.c (ldlang_open_output): Likewise.
5376 * lexsup.c (parse_args): Likewise.
5377 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
5378 * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
5379
5380 * ldlang.c (wild_doit): Discard debugging sections if we are
5381 stripping debugging information.
5382
5383 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
5384
5385 Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
5386
5387 * ldexp.c (fold_binary): Correct handling of subtraction with
5388 absolute values.
5389 (fold_name): Permit symbols in lang_allocating_phase_enum.
5390
5391 * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
5392 accidental changes in last patch.
5393
5394 Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5395
5396 * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
5397 (powerpcle*-*-{sysv,solaris}): Ditto.
5398
5399 Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
5400
5401 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
5402 in m68k/crt0.S without things blowing up.
5403
5404 Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
5405
5406 * scripttempl/m68kcoff.sc: Remove default address for .data so
5407 .text, .data, and .bss are all sequential.
5408
5409 Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
5410
5411 * scripttempl/m68kcoff.sc: Remove regions and simplify.
5412
5413 Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
5414
5415 * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
5416 bytes of the address space. Put data from the ".eight" sections
5417 into the 8-bit area.
5418 * scripttempl/h8300h.sc: Likewise.
5419
5420 Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
5421
5422 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
5423 Pass $ARCH to ldfile_set_output_arch instead of setting
5424 ldfile_output_architecture directly.
5425
5426 Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5427
5428 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
5429 next to .text. Put _etext after .text, .init, .fini, and
5430 .rodata{,2} sections.
5431
5432 Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
5433
5434 * ld.texinfo: Rearrange option documentation.
5435
5436 * lexsup.c (ld_options): New static array.
5437 (parse_args): Build shortopts and longopts from ld_options array.
5438 (help): New static function.
5439 * ldver.h (help): Don't declare.
5440 * ldver.c (ldversion): Reindent.
5441 (help): Remove.
5442
5443 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
5444
5445 Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
5446
5447 * emultempl/elf32.em: When checking for a native emulation, check
5448 that the current emulation is the default emulation.
5449 * emultempl/sunos.em: Likewise.
5450
5451 * configure.in: Permit --enable-shared to specify a list of
5452 directories.
5453 * configure: Rebuild.
5454
5455 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
5456 for HP/UX compatibility.
5457
5458 Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
5459
5460 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
5461 static function, if ${host} = ${target}.
5462 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
5463 needed shared library if ${host} = $[target}.
5464
5465 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
5466 HOSTING_CRT0. Search -lgcc both before and after -lc in
5467 HOSTING_LIBS.
5468
5469 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
5470 Polstra <jdp@polstra.com>.
5471
5472 Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
5473
5474 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
5475 architecture number.
5476 * scripttempl/elf.sc: Use $MACHINE definition if present.
5477 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
5478 template as 4300.
5479
5480 Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
5481
5482 * ldlang.c (lang_size_sections): Change region check to handle
5483 regions which end at the highest possible address correctly.
5484 From Roland Weber <roweber@ira.uka.de>.
5485
5486 * ldlang.c (section_already_linked): New static function.
5487 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
5488 relocateable link. Don't worry about section being NULL, since it
5489 never should be. Don't call init_os unless the section is going
5490 to be added.
5491 (ldlang_add_file): Call section_already_linked for each section.
5492 * ldmain.c (multiple_definition): Don't warn about multiple
5493 definitions in sections which are being discarded.
5494
5495 Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
5496
5497 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
5498 * emultempl/pe.em (init): Remove special case PPC code.
5499
5500 Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
5501
5502 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
5503 so as not to overwrite the magic syscall entry at 0xc4.
5504 * scripttempl/h8300h.sc: Likewise.
5505
5506 Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
5507
5508 * configure.tgt (sparc64-*-solaris2*): Delete.
5509 Stick with sparc-*-solaris2*.
5510
5511 Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
5512
5513 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
5514 * ldlang.c (init_os): Fail on an attempt to initialize any section
5515 named DISCARD_SECTION_NAME.
5516 (wild_doit): Discard input sections assigned to an output section
5517 named DISCARD_SECTION_NAME.
5518 * ld.texinfo: Document use of /DISCARD/.
5519
5520 * ldlang.c: Fix some indentation and comments.
5521
5522 Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
5523
5524 * ldmain.c (main): Call bfd_set_error_program_name.
5525
5526 Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
5527
5528 * ld.texinfo: Fix a couple of indexing entries. Mention that
5529 --verbose displays builtin linker scripts.
5530
5531 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
5532 and the local symbol name does not match the filename, print the
5533 filename as well.
5534
5535 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
5536 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
5537 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
5538 as TEXT_START_ADDR.
5539
5540 Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5541
5542 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
5543
5544 Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
5545
5546 * ldmain.c (add_wrap): New function.
5547 * ldmain.h (add_wrap): Declare.
5548 * lexsup.c (parse_args): Call add_wrap.
5549
5550 Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
5551
5552 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
5553
5554 Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
5555
5556 * scripttempl/h8300.sc: Change name of page zero memory
5557 from "null" to "vectors". Create an output section for
5558 vectors. Add comments on how to explicitly place items
5559 in the vector table.
5560 * scripttempl/h8300h.sc: Likewise.
5561
5562 Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
5563
5564 * emultempl/lnk960.em (machine_table): Add jx and hx.
5565
5566 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
5567 support it.
5568
5569 Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
5570
5571 * ld.h (ld_config_type): Add warn_multiple_gp field.
5572 * lexsup.c (parse_args): Handle --warn-multiple-gp.
5573 * ldmain.c (warning_callback): Suppress multiple gp values warning
5574 if --warn_multiple_gp was not used.
5575 * ld.texinfo, ld.1: Document --warn-multiple-gp.
5576
5577 Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
5578
5579 * lexsup.c (parse_args): Handle --wrap.
5580 * ldmain.c (main): Initialize link_info.wrap_hash.
5581 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
5582 and NAME cases.
5583 * ld.texinfo, ld.1: Document --wrap.
5584
5585 * configure: Rebuild with autoconf 2.8.
5586
5587 Don't do SunOS style dynamic linking for sparc-aout:
5588 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
5589 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
5590 (sparc*-wrs-vxworks*): Likewise.
5591 * emulparams/sparcaout.sh: New file.
5592 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
5593 (esparcaout.c): New target.
5594
5595 Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
5596
5597 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
5598 in a different manner to work around differences in shell variable
5599 expansion.
5600
5601 Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
5602
5603 * ldemul.h (ldemul_unrecognized_file): Declare.
5604 (ldemulation_xfer_type): Add unrecognized_file field.
5605 * ldemul.c (ldemul_unrecognized_file): New function.
5606 * ldlang.c (load_symbols): If a file can not be recognized, call
5607 ldemul_unrecognized_file before trying it as a linker script.
5608 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
5609 function.
5610 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
5611 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
5612
5613 Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
5614
5615 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
5616 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
5617
5618 Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5619
5620 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
5621 Search trinary.cond rather than searching trinary.lhs twice.
5622
5623 Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
5624
5625 * mpw-make.sed: Edit out shared library support.
5626 (@TDIRS@): Edit out, can't use genscripts.
5627
5628 Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5629
5630 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
5631 * emulparams/m68klinux.sh: New file.
5632 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
5633 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
5634 bfd_linux_size_dynamic_sections.
5635 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
5636 (em68klinux.c): New target.
5637 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
5638
5639 Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
5640
5641 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
5642 Fill in missing entries.
5643
5644 * lexsup.c (parse_args): Recognize --no-whole-archive.
5645 * ldlang.h (lang_input_statement_type): Add whole_archive field.
5646 * ldlang.c (new_afile): Set whole_archive field.
5647 (load_symbols): Check input file specific whole_archive field
5648 rather than global variable.
5649 * ld.texinfo, ld.1: Document --no-whole-archive.
5650
5651 Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
5652
5653 * configure.tgt: Correct gldi960 to gld960.
5654
5655 Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
5656
5657 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
5658 the SONAME if it is available.
5659 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
5660 filename, when checking for conflicting library versions. Don't
5661 assume that the suffix is only numbers and dots.
5662
5663 * ld.texinfo: Mention that -R can be used for -rpath.
5664
5665 Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
5666
5667 * configure.host: Check for 'do not mix' from native linker before
5668 trying to use -rpath.
5669
5670 Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
5671
5672 * configure.in: Remove explicit substitution of CFLAGS; autoconf
5673 does it anyhow.
5674 * configure: Rebuild.
5675 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
5676
5677 * configure.in: Call AC_PROG_CC before configure.host.
5678 * configure: Rebuild.
5679 * configure.host: Remove go32 host, since it should no longer be
5680 necessary. Don't set CC for romp host.
5681
5682 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
5683 the text segment ends exactly on a page boundary.
5684
5685 * configure.in: Substitute RPATH_ENVVAR.
5686 * configure: Rebuild.
5687 * configure.host: Set RPATH_ENVVAR.
5688 * Makefile.in (RPATH_ENVVAR): New variable.
5689 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
5690
5691 Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
5692
5693 * configure.in: Redo emulation handling so that each emulation
5694 searches the correct tool directory, based on the target alias.
5695 For example, "configure --enable-targets=m68k-coff i386-linux"
5696 will search /usr/local/i386-linux/lib for linux and
5697 /usr/local/m68k-coff/lib for m68k-coff.
5698 * configure: Rebuild.
5699 * configure.tgt: Add special tdir settings for Linux.
5700 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
5701 for each eEMUL.c target.
5702 * genscripts.sh: Accept specific alias as 9th argument, and use it
5703 in LIB_PATH.
5704
5705 Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
5706
5707 * ldlang.c (lang_set_startof): Don't do anything for a
5708 relocateable link.
5709
5710 * ldgram.y (mri_script_file): Call mri_draw_tree.
5711 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
5712 create memory regions.
5713 (mri_load): Don't call mri_draw_tree.
5714 * mri.h (mri_draw_tree): Declare.
5715
5716 * configure.tgt (m68*-*-psos): New target.
5717 * emulparams/m68kpsos.sh: New file.
5718 * scripttempl/psos.sc: New file.
5719 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
5720 (em68kpsos.c): New target.
5721
5722 Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
5723
5724 * configure.tgt (*-*-ieee*): New target; use vanilla.
5725
5726 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
5727 `:foo' from ${ARCH}.
5728
5729 Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
5730
5731 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
5732 .rodata in .data.
5733
5734 Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
5735
5736 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
5737
5738 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
5739 it looks like we might be linking in two different versions of the
5740 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
5741
5742 Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
5743
5744 * ldlang.c (lang_size_sections): Increment the section size when a
5745 padding statement is encountered.
5746
5747 Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
5748
5749 * configure.in: Look for --enable-shared. Change the value of
5750 BFDLIB when linking against a shared library on SunOS.
5751 * configure: Rebuild.
5752 * configure.host: If using a shared BFD library, try to pass a
5753 reasonable -rpath option when linking.
5754 * Makefile.in (BFDLIB): Set to @BFDLIB@.
5755
5756 Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
5757
5758 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
5759 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
5760
5761 Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
5762
5763 Support for building bfd and opcodes as shared libraries, based on
5764 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
5765 * configure.in (HLDFLAGS): New substitution.
5766 * configure: Rebuild.
5767 * configure.host: Set HLDFLAGS on SunOS.
5768 * Makefile.in (HLDFLAGS): New variable.
5769 (BFDDEP): New variable.
5770 (BFDLIB): Change to -L../bfd -lbfd.
5771 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
5772 $(HLDFLAGS) in link.
5773 (check): Set LD_LIBRARY_PATH in the environment.
5774
5775 Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
5776
5777 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
5778 in the read-only section, not read/write unless we are making a
5779 shared library.
5780 (.debug*): Add dwarf debug sections.
5781 (.rela.{sdata*,sbss*}): Add sections.
5782
5783 Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
5784
5785 * configure: Regenerate.
5786
5787 Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
5788
5789 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
5790 for SVR4 compatibility.
5791
5792 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
5793
5794 Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
5795
5796 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
5797 * emultempl/pe.em (definfo init): Make the default stack reserve
5798 of a PPC larger.
5799
5800 Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
5801
5802 * configure.tgt (m68*-apple-aux*): New target.
5803 * emulparams/m68kaux.sh: New file.
5804 * scripttempl/m68kaux.sc: New file.
5805 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
5806 (em68kaux.c): New target.
5807
5808 Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
5809
5810 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
5811 -bnoentry, since the right thing tends to happen anyhow.
5812
5813 Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
5814
5815 * ld.texinfo, ld.1: Document -export-dynamic.
5816
5817 Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5818
5819 * emultempl/sunos.em: Check for native compile by comparing
5820 ${target} and ${host}.
5821
5822 Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
5823
5824 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
5825 TEXT_START_ADDR to allow use on IDT and PMON systems.
5826
5827 Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
5828
5829 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
5830 correct spelling.
5831
5832 Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
5833
5834 * configure.tgt (sparc64-*-solaris2*): New configuration.
5835 (sparc64-*-aout*): Renamed from sparc64*.
5836
5837 Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5838
5839 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
5840 * genscripts.sh: Set host, target and target_alias variables.
5841 Check for native compile by comparing ${target} and ${host}.
5842 * emultempl/elf32.em: Likewise.
5843 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
5844
5845 Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5846
5847 * scripttempl/elfppc.sc: Refine eabi support to better support
5848 .sdata, .sdata2, .sbss, etc. sections.
5849
5850 Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
5851
5852 * ldgram.y (%union): Add phdr field.
5853 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
5854 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
5855 (opt_hdrs, hdr): Remove.
5856 (phdr_val): New nonterminal.
5857 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
5858 and phdrs parameters. Add flags parameter.
5859 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
5860 to bfd_record_phdr.
5861 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
5862 phdrs fields. Add flags field.
5863 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
5864 (lang_new_phdr): Update declaration.
5865 * ld.texinfo: Document FLAGS.
5866
5867 Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
5868
5869 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
5870 Don't make a shared library because of an undefined reference to
5871 __GLOBAL_OFFSET_TABLE_.
5872
5873 Add some Irix 5 support, mostly from Kazumoto Kojima
5874 <kkojima@info.kanagawa-u.ac.jp>:
5875 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
5876 (SHLIB_TEXT_START_ADDR): Define.
5877 (OTHER_GOT_SYMBOLS): Define.
5878 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
5879 (EXECUTABLE_SYMBOLS): Don't define.
5880 (DYNAMIC_LINK): Don't define.
5881 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
5882 * scripttempl/elfmips.sc: New file.
5883 * configure.host (mips*-dec-bsd*): Change mips to mips*.
5884 (mips*-sgi-irix4*): Likewise.
5885 (mips*-sgi-irix5*): New entry.
5886 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
5887 elf.sc.
5888 (eelf32lmip.c): Likewise.
5889
5890 Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5891
5892 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
5893 .rela.got.neg section.
5894
5895 Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
5896
5897 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
5898
5899 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
5900 ANSI_PROTOTYPES is defined. Remove special handling of
5901 WINDOWS_NT. Various indendation fixes.
5902 (vfinfo): Change fmt parameter to const char *.
5903 (info_msg): Write <stdarg.h> version.
5904 (einfo, minfo, finfo): Likewise.
5905 (info_assert): Change file parameter to const char *.
5906 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
5907 defined, use a real prototype.
5908 (info_assert): Change first parameter to be const char *.
5909
5910 Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5911
5912 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
5913 in old support that 2.7.2 needs, but the current compiler does
5914 not.
5915
5916 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
5917 correct Linker script template.
5918
5919 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
5920 not 0x400000.
5921 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
5922
5923 Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
5924
5925 * scripttempl/alpha.sc: Put .rconst right after .rdata.
5926
5927 Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
5928
5929 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
5930 sort using right pointer.
5931
5932 Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5933
5934 * scripttempl/elfppc.sc: Remove support for creating special
5935 labels for eabi section begin/end here. The compiler now uses
5936 crt{i,n}.o to create these symbols.
5937
5938 Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
5939
5940 * configure.host: Change existing Linux HOSTING_CRT0 to be used
5941 for a.out only, and put in appropriate HOSTING_CRT0 and
5942 HOSTING_LIBS values for Linux ELF.
5943
5944 Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
5945
5946 * scripttempl/h8300.sc: Use all 64K for ram.
5947 * scripttempl/h8300h.sc: Define 256K ram size.
5948
5949 Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
5950
5951 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
5952 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
5953 was used, regardless of whether -bE was used.
5954
5955 Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
5956
5957 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
5958 relocateable before calling ldctor_build_sets if the output file
5959 is in an XCOFF format.
5960
5961 Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
5962
5963 * ldwrite.c (build_link_order): When handling a data statement, if
5964 the endianness of the output file is unknown, use the endianness
5965 of the input file.
5966
5967 Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
5968
5969 * mpw-config.in: Recognize mips-*-* as equivalent to
5970 mips-idt-ecoff.
5971 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
5972 * mpw-ld.r: Add version resources.
5973 (cfrg): Use symbolic instead of literal name for executable.
5974
5975 Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
5976
5977 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
5978
5979 Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
5980
5981 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
5982 (print_statement_list): Renamed from print_statement. All callers
5983 updated.
5984 (print_statement): New function to print just one statement.
5985 (print_{data,reloc,padding}_statement): Don't crash if
5986 output_section == NULL.
5987 (dprint_statement): New function.
5988
5989 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
5990 call to sort_sections.
5991
5992 Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
5993
5994 * emultempl/aix.em (unix_ld): New static variable.
5995 (gld${EMULATION_NAME}_parse_args): Handle -unix.
5996 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
5997 gc as false and export_defineds as true to size_dynamic_sections.
5998
5999 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
6000 phase if the current section is abs_output_section.
6001
6002
6003 Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
6004
6005 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
6006 to sort_sections.
6007
6008 Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
6009
6010 * ldgram.y (PHDRS): New token.
6011 (ifile_p1): Accept phdrs.
6012 (section): Accept phdr_opt at the end of the section definition.
6013 (phdr_op): New nonterminal.
6014 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
6015 * ldlex.l: Accept PHDRS.
6016 * ldlang.h (struct lang_output_section_phdr_list): Define.
6017 (lang_output_section_statement_type): Add phdrs field.
6018 (struct lang_phdr): Define.
6019 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
6020 (lang_new_phdr): Declare.
6021 * ldlang.c (lang_phdr_list): New static variable.
6022 (lang_output_section_statement_lookup): Initialize phdrs field.
6023 (lang_process): Call lang_record_phdrs.
6024 (lang_new_phdr): New function.
6025 (lang_section_in_phdr): New function.
6026 (lang_record_phdrs): New static function.
6027 * ld.texinfo: Document PHDRS.
6028
6029 Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
6030
6031 * scripttempl/ppcpe.sc: Moved .edata into its own section to
6032 expose it.
6033
6034 Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
6035
6036 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
6037 HOSTING_LIBS for testing.
6038 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
6039 testing.
6040
6041 Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
6042
6043 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
6044 and -n.
6045
6046 Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
6047
6048 * configure: Rebuild with autoconf 2.7.
6049
6050 Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
6051
6052 * scripttempl/pe.sc: Two .junk's is too much junk.
6053
6054 Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
6055
6056 * configure.in: Use BFD_NEED_DECLARATION.
6057 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
6058 * configure, config.in: Rebuild with autoconf 2.6.
6059
6060 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
6061 being unsupported if this is not a relocateable link and the input
6062 BFD supports it, since ldctor_build_sets can cope with that case.
6063
6064 Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
6065
6066 * configure.tgt (powerpc-*-macos*): New target.
6067 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
6068 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
6069 (eppcmacos.c): New target.
6070 * mpw-eppcmacos.c: Update.
6071 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
6072
6073 Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
6074
6075 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
6076 $(host_canonical) and $(target_canonical).
6077 (CXX_FOR_TARGET): Likewise.
6078
6079 Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
6080
6081 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
6082 so the malloc heap begins at a sane place.
6083
6084 Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
6085
6086 Version 2.6 released.
6087 * ldver.c (ldversion): Update to 2.6.
6088
6089 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
6090 $(GENERATED_*FILES), since they need to be retained by distclean.
6091 (maintainer-clean, realclean): Delete them here.
6092
6093 Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
6094
6095 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
6096 base file with FOPEN_WB, not "w".
6097
6098 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
6099 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
6100 were used.
6101 (gld${EMULATION_NAME}_before_allocation): Use the environment
6102 variable LD_RUN_PATH if -rpath was not used.
6103 * ld.texinfo, ld.1: Document LD_RUN_PATH.
6104
6105 Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
6106
6107 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
6108 -bl and -bloadmap options.
6109
6110 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
6111 report a better error.
6112
6113 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
6114 new local variable special_sections, and pass it to
6115 size_dynamic_sections. Look through the results, and move the
6116 sections around in the mapping so that they are defined correctly.
6117
6118 Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
6119
6120 * ldemul.c (ldemul_default_target): Cast getenv return value.
6121
6122 Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
6123
6124 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
6125 Executable support.
6126 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
6127 support.
6128
6129 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
6130 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
6131
6132 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
6133 (gld_$_before_allocation): added hooks for toc construction based
6134 on the above macro.
6135
6136 Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
6137
6138 * ld.texinfo: The linker does not use _main as an entry point.
6139
6140 Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
6141
6142 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
6143 0x2000 not 0x200.
6144
6145 Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
6146
6147 * configure.in: Add test for whether free must be declared.
6148 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
6149 * acconfig.h: Explain NEED_DECLARATION_FREE.
6150 * configure, config.in: Rebuild.
6151
6152 * lexsup.c (parse_args): Take B:: out of shortopts.
6153
6154 Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
6155
6156 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
6157 for now, as with m68k4kbsd, until shared library support gets
6158 done.
6159
6160 * configure.host: For i386 BSD variants, crt0.o lives in
6161 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
6162
6163 Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
6164
6165 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
6166 (edelta68.c): New target.
6167 * configure.tgt (m68*-motorola-sysv*): New target.
6168 * emulparams/delta68.sh: New file.
6169 * scripttempl/delta68.sc: New file.
6170
6171 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
6172 addresses.
6173
6174 Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
6175
6176 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
6177 ALIGN and ALIGNMOD statements.
6178
6179 * emultempl/aix.em: Include ldgram.h.
6180 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
6181 AIX 4.1.
6182 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
6183
6184 Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
6185
6186 * configure.host (alpha-*-linux*): New host.
6187 * configure.tgt (alpha-*-linux*): New target.
6188
6189 Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
6190
6191 * emultempl/aix.em (export_files): Remove.
6192 (import_files): Make static.
6193 (struct export_symbol_list): Define.
6194 (export_symbols): New static variable.
6195 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
6196 correctly. Call read_file for an export file.
6197 (gld${EMULATION_NAME}_before_allocation): Call
6198 bfd_xcoff_export_symbol for each export symbol, rather than
6199 calling read_file for each export file.
6200 (gld${EMULATION_NAME}_read_file): For an export file, make the
6201 exported symbols undefined, and store them on the export_symbols
6202 list.
6203
6204 Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
6205
6206 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
6207 Don't hang if last option is unrecognised.
6208 (gld_${EMULATION_NAME}_set_symbols): Insert created
6209 symbols into ABS output section.
6210
6211 Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
6212
6213 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
6214 m68k4k arch.
6215 (em68k4knbsd.c): New rule.
6216
6217 * configure.tgt: Added support for the NetBSD m68k4k arch.
6218
6219 * genscripts.sh, ldint.texinfo,
6220 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
6221 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
6222 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
6223 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
6224 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
6225 pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
6226 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
6227 PAGE_SIZE to TARGET_PAGE_SIZE.
6228
6229 * emulparams/m68knbsd.h: Ditto.
6230 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
6231 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
6232 being.
6233
6234 * emulparams/m68k4knbsd.sh: New file.
6235
6236 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
6237
6238 Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
6239
6240 * emultempl/aix.em: Include ldctor.h.
6241 (gld${EMULATION_NAME}_after_open): New static function.
6242 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
6243 (gld${EMULATION_NAME}_find_relocs): New static function.
6244 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
6245 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
6246 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
6247 * ldctor.c (struct set_info): Move definition into ldctor.h.
6248 (struct set_element): Likewise.
6249 (sets): Make non-static.
6250 (ldctor_add_set_entry): Add name parameter. Save it in the new
6251 set element.
6252 (ldctor_build_sets): Avoid being called twice. Pass set element
6253 name to lang_add_reloc.
6254 * ldctor.h (struct set_info): Move definition here from ldctor.c.
6255 (struct set_element): Likewise. Add new field name.
6256 (sets): Declare.
6257 (ldctor_add_set_entry): Declare new name parameter.
6258 * ldwrite.c (build_link_order): Don't insist that either name or
6259 section be NULL in a lang_reloc_statement.
6260 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
6261 new name parameter.
6262 (constructor_callback): Pass name to ldctor_add_new_set_entry for
6263 new name parameter.
6264
6265 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
6266
6267 Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
6268
6269 * mpw-config.in: Add PowerMac target support, generate config.h.
6270 * mac-ld.r: New file, Mac resources.
6271 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
6272 * mpw-make.in: Remove.
6273 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
6274
6275 Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
6276
6277 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
6278 -static as a synonym for -bnso.
6279
6280 * scripttempl/aix.sc: Move special symbols inside sections.
6281 Always start .data at 0.
6282
6283 Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
6284
6285 * Makefile.in (diststuff): Also make info.
6286 (maintainer-clean realclean): Also delete *.info*.
6287
6288 Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
6289
6290 * emultempl/aix.em: Add support for various AIX linker options,
6291 for AIX import and export files, and for AIX shared objects.
6292 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
6293
6294 * ldmain.c (main): Initialize new field link_info.static_link.
6295
6296 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
6297 (constructor_callback): Likewise.
6298 * ldmisc.c (vfinfo): Likewise.
6299 * ldwrite.c (build_link_order): Likewise.
6300
6301 * ld.texinfo: The MRI ALIGN directive is supported.
6302
6303 Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
6304
6305 * emulparams/elf32vr4300.sh: Deleted.
6306 * emulparams/elf32vr4300el.sh: Deleted.
6307 * emulparams/elf32b4300.sh: Added.
6308 * emulparams/elf32l4300.sh: Added.
6309 * configure.tgt, Makefile.in: Updated the build to use the
6310 new 8.3 unique names.
6311
6312 Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
6313
6314 * ldlang.c (entry_symbol): Make non-static.
6315 * ldlang.h (entry_symbol): Declare.
6316
6317 * ldlex.l: Treat PROVIDE as a keyword in expression state.
6318
6319 Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
6320
6321 * scripttempl/pe.sc (.bss): Move to be after .text
6322
6323 Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
6324
6325 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
6326 Search trinary.cond rather than searching trinary.lhs twice. From
6327 linli@ihp.PHys.ethz.CH.
6328
6329 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
6330 directory searching code into gld${EMULATION_NAME}_search_dir.
6331 (gld${EMULATION_NAME}_search_dir): New static function, extracted
6332 from gld${EMULATION_NAME}_find_so.
6333 (global_needed, global_found): New static variables.
6334 (gld${EMULATION_NAME}_after_open): New static function.
6335 (gld${EMULATION_NAME}_search_needed): New static function.
6336 (gld${EMULATION_NAME}_try_needed): New static function.
6337 (gld${EMULATION_NAME}_check_needed): New static function.
6338 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
6339 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
6340
6341 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
6342 (eelf32lppc.c): Likewise.
6343 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
6344 (GENERATE_SHLIB_SCRIPT): Define as yes.
6345
6346 Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
6347
6348 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
6349 bfd_link_needed-list; make appropriate changes.
6350
6351 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
6352 (rs6000-*-aix*): New target; use aixrs6.
6353 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
6354 * emultempl/aix.em: New file.
6355 * scripttempl/aix.sc: New file.
6356 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
6357 (eaixppc.c, eaixrs6.c): New targets.
6358
6359 Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
6360
6361 * scripttemp/pe.sc (.reloc): Move to the end.
6362
6363 Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
6364
6365 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
6366 section which was not linked into the final output.
6367
6368 Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
6369
6370 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
6371 fatal typos.
6372
6373 Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
6374
6375 * ld.h (args_type): Add rpath_link field.
6376 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
6377 required dependencies in rpath_link path. Only search
6378 LD_LIBRARY_PATH when configured native.
6379 * lexsup.c (parse_args): Recognize -rpath-link.
6380 * ld.1, ld.texinfo: Document -rpath-link.
6381
6382 Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
6383
6384 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
6385 bother searching for needed libraries unless doing a final link.
6386
6387 Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
6388
6389 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6390
6391 * ld/ld.1: Fix formatting bugs.
6392
6393 Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
6394
6395 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
6396 * ldexp.h (exp_get_abs_int): Update declaration.
6397 * ldlang.c (print_output_section_statement): Use fprintf_vma to
6398 print return value of exp_get_abs_int.
6399
6400 Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
6401
6402 * emultempl/elf32.em (global_stat): New file static variable.
6403 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
6404 that the file has not already been included under another name.
6405 (gld${EMULATION_NAME}_stat_needed): New static function.
6406
6407 Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
6408
6409 * scripttempl/armcoff.sc: Start .text at 0x8000.
6410 Start .data at 0x40000.
6411
6412 Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
6413
6414 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
6415 command_line.rpath is set, use it, rather than the -L options, to
6416 build the rules section.
6417 * ld.texinfo: Document this use of -rpath.
6418
6419 * lexsup.c (parse_args): Don't set link_info.shared for -assert
6420 pure-text. Pass true, not 1, to lang_add_entry.
6421 * emultempl/sunos.em (find_assign): New static variable.
6422 (found_assign): New static variable.
6423 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
6424 If not a relocateable link, and no start symbol was specified on
6425 the command line, and there are any undefined symbols, set
6426 link_info.shared. If link_info.shared is set, set the address of
6427 the .text section to 0x20.
6428 (gld${EMULATION_NAME}_find_assignment): Rename from
6429 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
6430 set, then just set found_assign based on whether an assignment is
6431 found to find_assign.
6432 (gld${EMULATION_NAME}_get_script): Don't use a special script when
6433 producing a shared library.
6434 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
6435 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
6436 * ldlang.c (entry_from_cmdline): New global variable.
6437 (lang_add_entry): Change cmdline parameter from int to boolean.
6438 Use global entry_from_cmdline rather than function static
6439 from_cmdline.
6440 * ldlang.h (entry_from_cmdline): Declare.
6441 (lang_add_entry): Change declaration of second parameter from int
6442 to boolean.
6443 * ldgram.y: Pass false, not 0, to lang_add_entry.
6444
6445 Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
6446
6447 * ld.h (parsing_defsym): Declare.
6448 * ldlex.h (lex_string): Declare.
6449 * ldlex.l (lex_string): Define.
6450 * lexsup.c (parsing_defsym): Define.
6451 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
6452 lex_redirect, and clear it after calling yyparse. Set
6453 parsing_defsym around call to yyparse.
6454 * ldmain.c (main): Set lex_string before calling lex_redirect, and
6455 clear it after calling yyparse.
6456 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
6457 in linker scripts correctly.
6458
6459 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
6460 COFF targets, allowing for the leading underscore used on SPARC
6461 COFF.
6462
6463 * lexsup.c (parse_args): Handle -assert.
6464 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
6465 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
6466 shared library script when appropriate.
6467 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
6468 section at SIZEOF_HEADERS.
6469
6470 Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
6471
6472 * Makefile.in (earmcoff.c): Build.
6473 * configure.tgt (arm-*-coff): New target
6474 * emulparms/armcoff.sh: New file.
6475 * scripttempl/armcoff.sc: New file.
6476
6477 Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
6478
6479 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
6480
6481 Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
6482
6483 * ldfile.c (ldfile_set_output_arch): Make arch const.
6484
6485 Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6486
6487 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
6488 beginning of the .bss area, not at the end of data. Add
6489 __sbss_{start,end} symbols.
6490
6491 Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
6492
6493 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
6494 (CXX_FOR_TARGET, install): Likewise.
6495
6496 Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
6497
6498 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
6499 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
6500 (CXX_FOR_TARGET): Likewise.
6501 (install): Likewise.
6502 (GENERATED_HFILES): Remove config.h.
6503 (.dep): Depend upon config.h.
6504
6505 Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
6506
6507 * configure.tgt (mips*-dec-netbsd*): New target.
6508
6509 Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
6510
6511 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
6512
6513 Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
6514
6515 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
6516
6517 Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
6518
6519 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
6520 Start .text section on the right boundary. Always align
6521 stabs.
6522
6523 Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
6524
6525 * Makefile.in (maintainer-clean): New target.
6526
6527 * ldmain.c (struct warning_callback_info): Define.
6528 (warning_callback): Add new parameter symbol. Call
6529 warning_find_reloc to try to find the section and VMA.
6530 (warning_find_reloc): New static function.
6531 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6532 Pass NULL as symbol parameter to warning callback.
6533
6534 * ld.texinfo: Clarify -L option.
6535
6536 * ldlang.c (lang_one_common): Add cast to avoid warning.
6537 (topower): Likewise. Also, reindent.
6538 * ldwrite.c (clone_section): Change i to unsigned int.
6539 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
6540 cast to avoid warning.
6541
6542 Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
6543
6544 * Makefile.in (config.status): Depend upon configure.tgt.
6545
6546 * ldemul.h (ldemul_set_symbols): Declare.
6547 (ldemul_parse_args): Declare.
6548 * ldemul.c (ldemul_parse_args): Fix indentation.
6549
6550 * configure.in: Call AC_HEADER_DIRENT.
6551 * configure, config.in: Rebuild.
6552 * emultempl/sunos.em: Use autoconf recommend mechanism to define
6553 DIR and struct dirent.
6554
6555 * configure.tgt (mips*-*-bsd*): New case.
6556
6557 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
6558 New case.
6559 * configure.tgt (i[345]86-*-ptx*): New case.
6560
6561 Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
6562
6563 * config.in: Rename from config.h.in.
6564 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
6565 Check for config.h:config.in when creating stamp-h.
6566 * configure: Rebuild.
6567 * Makefile.in (stamp-h): Depend upon config.in rather than
6568 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
6569 calling config.status.
6570
6571 * Makefile.in (distclean): Remove config.h and stamp-h.
6572
6573 * configure.host (sparc-*-sunos64*): Remove.
6574 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
6575
6576 * ldexp.c (exp_fold_tree): Don't warn about moving the location
6577 counter backward in the absolute section.
6578
6579 Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
6580
6581 * configure.in: Rewrite to use autoconf.
6582 * configure.host: New file.
6583 * configure.tgt: New file.
6584 * aclocal.m4: New file.
6585 * configure: New file, built by autoconf.
6586 * acconfig.h: New file.
6587 * config.h.in: New file, built by autoheader.
6588 * sysdep.h: New file.
6589 * ld.h: Incorporate old contents of config.h.
6590 * config.h: Remove.
6591 * Makefile.in: Various changes for new configure script. Also:
6592 (CC_FOR_BUILD): Remove.
6593 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
6594 (dep.sed): Use @SRCDIR@, not @srcdir@.
6595 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
6596 * genscripts.sh: Create ldscripts if it does not exist.
6597 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
6598 * mpw-esh.c, emultemp/*.em: Likewise.
6599 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
6600 HAVE_SBRK here.
6601 * config/*.mt, config/*.mh: Remove.
6602
6603 Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
6604
6605 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
6606 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
6607
6608 Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
6609
6610 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
6611
6612 Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
6613
6614 * ldmain.c (warning_callback): Add abfd, section, and address
6615 parameters.
6616 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6617 Change call to warning accordingly.
6618
6619 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
6620 relocateable and not shared, put .gnu.warning.SYMBOL sections into
6621 the .text section.
6622
6623 Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
6624
6625 * configure.in: Added mips*vr4300-idt-elf* and
6626 mips*vr4300el-idt-elf* targets.
6627 * Makefile.in: Added eelf32vr4300* targets.
6628 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
6629 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
6630
6631 Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
6632
6633 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
6634 <brendan@cygnus.com>.
6635
6636 Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
6637
6638 * ldemul.c (ldemul_parse_args): New.
6639 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
6640 * lexsup.c (all pe stuff): Moved into pe.em
6641 (parse_args): Call emulation arg parser.
6642 * emultempl/pe.em (parse_args): handle PE specfic args.
6643
6644 Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
6645
6646 * ldlang.c (lang_memory_region_lookup): Don't use the first region
6647 as the default region. Create a new region instead.
6648
6649 Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
6650
6651 * ldemul.c (ldemul_set_symbols): New function.
6652 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
6653 * ldmain.c (main): Add call to ldemul_set_symbols.
6654 * lexsup.c (set_pe_value): New args.
6655 (set_pe_name): New.
6656 (parse_args): Cope with new set_pe_value args.
6657 * emultempl/pe.em (set_symbols): New function.
6658 (ld_emulation_xfer_struct): Add set_symbols.
6659 * scripttempl/pe.sc: Use new symbols.
6660
6661 Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
6662
6663 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
6664 For -Y, ignore a leading `P,', and only call set_default_dirlist
6665 after processing all the other arguments.
6666
6667 Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
6668
6669 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
6670 * emulparams/armpe.sh: Run PE script.
6671
6672 Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
6673
6674 * ldmain.c (main): Remove PE stuff.
6675 * lexsup.c (options): Load more PE options.
6676 (set_pe_value): New function.
6677
6678 Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
6679
6680
6681 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
6682 * emultempl/pe.sc: New file performs generic PE support and sorts
6683 archive members.
6684 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
6685 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
6686 * scripttempl/pe.sc: New.
6687 * Makefile.in: Use new files.
6688
6689 Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
6690
6691 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
6692 (.strings,.ctors,.dtors): Likewise.
6693
6694 Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
6695
6696 * scripttempl/armpe.sc: Always start code at 0x401000, even
6697 if -r.
6698 * ldwrite.c (strdup): New extern declaration.
6699 * ldgram.y (atype): New rule to clarify type parsing.
6700 * ldlang.c (init_os): Remove commented out code.
6701 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
6702 unless told not to by the link script.
6703
6704 Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
6705
6706 * ldlang.c (lang_set_startof): New static function.
6707 (lang_process): Call it.
6708
6709 * ldgram.y: Tweak casesymlist to avoid bison errors.
6710
6711 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
6712 Solaris compatibility.
6713
6714 Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
6715
6716 * ldgram.y (YYDEBUG): If not defined, define as 1.
6717 (CASE, EXTERN, START): New tokens.
6718 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
6719 (casesymlist): New nonterminal.
6720 (extern_name_list): New nonterminal.
6721 * ldlex.l: Accept lower case trailing base specifiers. Don't
6722 ignore the first digit when the base is a suffix. Accept many
6723 EXPRESSION state tokens in MRI state. Support MRI continuation
6724 lines and MRI semicolon comments. Accept all MRI keywords in
6725 lower case. Add CASE, EXTERN, and START MRI keywords.
6726
6727 Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6728
6729 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
6730 instead of alloca.
6731
6732 Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6733
6734 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
6735 $r/../gcc/xgcc unless it is present.
6736
6737 Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
6738
6739 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
6740 when CONSTRUCTING.
6741 * scripttempl/m68klynx.sc: Likewise.
6742 * scripttempl/nw.sc: Likewise.
6743 * scripttempl/sa29200.sc: Likewise.
6744 * scripttempl/sparclynx.sc: Likewise.
6745
6746 Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
6747
6748 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
6749
6750 Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
6751
6752 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
6753
6754 Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
6755
6756 * scripttempl/i386pe.sc: Cope with constructors.
6757 * scripttempl/z8ksim.sc: Deleted.
6758 * scripttempl/z8000.sc: Resurrected as this, but
6759 can handle z8001 and z8002 formats.
6760 * emulparams/z8ksim.sh: Deleted.
6761 * emulparams/{z8001.sh, z8002.sh}: New files.
6762 * config/z8ksim.mt: Deleted
6763 * config/z8k-coff.mt: New, generates both emulations.
6764
6765 Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
6766
6767 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
6768 %B, in case it is in an archive.
6769
6770 Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
6771
6772 * ldlang.c (lang_process): Call reset_memory_regions for each
6773 relaxation pass.
6774
6775 Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
6776
6777 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
6778 _SDA_BASE.
6779
6780 Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
6781
6782 * ldmain.c (constructor_callback): Allocate set_name in stack
6783 frame, rather than always calling alloca with a fixed size.
6784
6785 Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
6786
6787 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
6788 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
6789
6790 Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
6791
6792 * ldwrite.c (clone_section): Set the alignment of the clone
6793 section to that of the section being cloned.
6794
6795 * ldwrite.c (split_sections): Don't split the first input section
6796 into a new output section.
6797
6798 Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
6799
6800 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
6801 (GENERATE_SHLIB_SCRIPT): Define as yes.
6802
6803 Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
6804
6805 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
6806
6807 * ldver.c (help): Update list of options to match currently
6808 supported list.
6809
6810 Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
6811
6812 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
6813 after_open field.
6814
6815 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
6816 it takes a size_t anyhow.
6817 (exp_binop): Likewise.
6818 (exp_trinop): Likewise.
6819 (exp_unop): Likewise.
6820 (exp_nameop): Likewise.
6821 (exp_assop): Likewise.
6822 * ldlang.c (lang_memory_region_lookup): Likewise.
6823 (init_os): Likewise.
6824 (ldlang_add_undef): Likewise.
6825 (insert_pad): Likewise.
6826 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
6827 bfd_size_type.
6828
6829 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
6830
6831 Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
6832
6833 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
6834 declaration.
6835 (ld_emulation_xfer_type): Add search parameter to
6836 open_dynamic_archive entry point.
6837 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
6838 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
6839 make non-static. Change all callers to use new name.
6840 (ldfile_open_file_search): Make static. If entry is dynamic, call
6841 ldemul_open_dynamic_archive.
6842 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
6843 * ldfile.h (ldfile_open_file_search): Don't declare.
6844 (ldfile_try_open_bfd): Declare.
6845 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
6846 Accept search parameter. Don't search for a library, just look in
6847 a single place.
6848 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
6849 Likewise.
6850
6851 Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
6852
6853 * ldmain.c (set_scripts_dir): Don't base script directory on
6854 current directory.
6855
6856 Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
6857
6858 * ldmisc.c (vfinfo): Don't print the line number if it isn't
6859 meaningful.
6860
6861 Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
6862
6863 * ld.h (ld_config_type): Add field warn_constructors.
6864 * ldmain.c (add_to_set): Warn if config.warn_constructors.
6865 (constructor_callback): Likewise.
6866 * lexsup.c (parse_args): Handle -warn-constructors.
6867 * ld.texinfo, ld.1: Document -warn-constructors.
6868
6869 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
6870 get confused by directory names if we searched for the file.
6871
6872 Based on patches from H.J. Lu <hjl@nynexst.com>:
6873 * ldlang.h (lang_input_statement_type): Add new field dynamic.
6874 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
6875 * ldfile.c: Include bfdlink.h.
6876 (ldfile_open_file): Check dynamic field of entry, not global
6877 dynamic_link field. Don't do a dynamic search when doing a
6878 relocateable link.
6879 * ldmain.c (main): Don't warn about dynamic_link for a
6880 relocateable link.
6881 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
6882 dynamic is false.
6883 (gld${EMULATION_NAME}_create_output_section_statements): Always
6884 loop over input files.
6885 * Makefile.in: Rebuild dependencies.
6886
6887 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
6888 -shared.
6889
6890 Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
6891
6892 * ldmain.c (main): Set link_info.symbolic to false.
6893 * lexsup.c (parse_args): Handle -Bsymbolic.
6894
6895 Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
6896
6897 * ldmain.c (HAVE_SBRK): Define for everything except
6898 specific systems that are known to not support sbrk.
6899 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
6900
6901 Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
6902
6903 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
6904 Handle etree_provide.
6905
6906 * emultempl/elf32.em (global_needed): New static variable.
6907 (global_found): Likewise.
6908 (gld${EMULATION_NAME}_after_open): New static function.
6909 (gld${EMULATION_NAME}_search_needed): Likewise.
6910 (gld${EMULATION_NAME}_try_needed): Likewise.
6911 (gld${EMULATION_NAME}_check_needed): Likewise.
6912 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
6913 gld${EMULATION_NAME}_after_open.
6914
6915 Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
6916
6917 * configure.in (i386-*-win32): New target.
6918
6919 Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
6920
6921 * lexsup.c (parse_args): Let -G either set the small data size or
6922 be equivalent to --shared, depending on the next argument. Accept
6923 and ignore -z for Solaris compatibility.
6924
6925 Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
6926
6927 * lexsup.c (parse_args): Cast fopen result to PTR before storing
6928 it in link_info.base_file. Fix indentation.
6929
6930 Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
6931
6932 * ldmain.c (main): Always initialize PE info in link_info.
6933 * lexsup.c (OPTION_BASE_FILE): New option.
6934 (parse_args): Handle new option.
6935 * emulparams/armpe.sh: Output pei.
6936 * emultempl/i386pe.em: Add newline to end.
6937 * scripttempl/armpe.sc: Change output and quote the $s.
6938 * scripttempl/i386pe.sc: Change output and quote the $s.
6939
6940 Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6941
6942 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
6943
6944 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
6945 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
6946 (i386msdos.o): New target.
6947 * config/i386-msdos.mt: Created.
6948 * emulparams/i386msdos.sh: Created.
6949 * scripttempl/i386msdos.sc: Created.
6950
6951 Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6952
6953 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
6954 that contains pointers to be relocated.
6955
6956 Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
6957
6958 * mpw-esh.c: New file, modified for MPW from esh.c.
6959 * scripttempl/sh.sc: Reformatted to simplify MPWification,
6960 use *() to concat stab sections instead of [].
6961
6962 Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
6963
6964 * scripttempl/armpe.sc: Add constructor support.
6965
6966 Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
6967
6968 * ldlang.c (lang_size_sections): Any section with a DATA
6969 statement has contents.
6970
6971 Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6972
6973 * emulparams/m68kelf.sh (NOP): Define.
6974 (DYNAMIC_LINK): Don't define.
6975 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
6976 will come from the linker script.
6977
6978 Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
6979
6980 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
6981
6982 Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6983
6984 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
6985
6986 Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6987
6988 From Andrew Cagney <cagney@highland.com.au>
6989 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
6990 elf32lppc.
6991
6992 Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
6993
6994 Add support for ARM-PE.
6995 * Makefile.in (ALL_EMULATIONS): Add armpe.o
6996 * configure.in: Recognize armpe.
6997 * config/arm-pe.mt: New file.
6998 * emulparams/armpe.sh: New file.
6999 * scripttempl/armpe.sc: New file.
7000
7001
7002 Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
7003
7004 * configure.in (h8300h-*-hms): Deleted
7005 * config/cf-h8300h.mt: Deleted.
7006
7007 Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
7008
7009 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
7010
7011 From David Taylor (dtaylor@armltd.co.uk)
7012 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
7013 * configure.in: Recognize arm{,e[lb]-*-aout.
7014 * config/arm[lb]-aout.mt: New files.
7015 * emulparams/armaout[lb].sh: New files.
7016 * scripttempl/armaout.sc: New file.
7017
7018 Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7019
7020 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
7021 be unique in 8 characters for DOS.
7022
7023 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
7024 * emulparams/elf32ppcle.sh: Deleted.
7025
7026 Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
7027 Tom Griest <griest@cs.yale.edu>
7028
7029 Initial support for PE executables (eg NT, win32)
7030
7031 * Makefile.in (configure.in, ei386pe): Add support.
7032 * ldmain.c (main): Initialize PE argument info.
7033 * ldwrite.c (print_file_stuff): Don't print out .drectve
7034 and .debug section info.
7035 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
7036 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
7037 Handle new arguments.
7038 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
7039 New files
7040
7041 Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
7042
7043 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
7044 segment. This allows ld -r to preserve unwind sections.
7045
7046 Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7047
7048 * configure.in: Add little endian PowerPC support.
7049
7050 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
7051 (eelf32ppcle.c): Support for little endian PowerPC.
7052
7053 * config/ppcle-elf32.mt: New file for little endian PowerPC.
7054 * emulparams/elf32ppcle.sh: Ditto.
7055
7056 Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
7057
7058 * ldlang.c (print_output_section_statement): Check
7059 subsection_alignment, instead of checking section_alignment twice.
7060 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
7061
7062 Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
7063
7064 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
7065
7066 Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
7067
7068 * ldwrite.c (ldwrite): Before doing anything, reset the error
7069 code. If bfd_final_link returns an error, but the error code is
7070 unset, don't issue an extra message. Assume a correct error
7071 message was already set.
7072
7073 Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
7074
7075 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
7076 (em68kelf.o): New target.
7077 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
7078 * configure.in: Use them for m68*-*-elf.
7079
7080 Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
7081
7082 Merge in support for Mac MPW as a host.
7083 (Old change descriptions retained for informational value.)
7084
7085 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
7086 (i386-unknown-coff): Remove.
7087 (sh-hitachi-hms): New target.
7088 (emulation_ofiles): Set correctly for each target.
7089 (version, TDEFINES): Add to makefile fragment.
7090 * mpw-make.in (BISON): Use byacc instead of bison.
7091 (em_*.c): Replace with e*.c everywhere.
7092 (ldgram.h): Separate action from ldgram.c generation.
7093 (LD_PROG): Depend on Version.r.
7094 (Version.r): generate from version info.
7095 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
7096
7097 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
7098 i386-unknown-aout, i386-unknown-coff): New targets.
7099 (m68k-aout, m68k-coff): Remove targets.
7100 (mk.tmp): Add definition of EMUL.
7101
7102 * mpw-config.in (emulname): Set based on target.
7103 (ldemul-list.h): Construct.
7104 * mpw-make.in (install-only): New target.
7105 (install): Depend on install-only.
7106
7107 * mpw-make.in (bindir): Fix pathname.
7108 (install): Move here from mpw-build.in.
7109
7110 * mpw-config.in: New file, MPW configuration fragment.
7111 * mpw-make.in: New file, MPW makefile fragment.
7112 (This file is semi-automatically generated from Makefile.in.)
7113 * ldfile.c (slash): If MPW, set to `:'.
7114 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
7115 prevent redefinition errors.
7116
7117 Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
7118
7119 * ldwrite.c (clone_section): Align clone sections on even
7120 boundaries.
7121
7122 Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
7123
7124 * configure.in: Change linux to default to elf. Using
7125 i[345]86-*-linuxaout will build a linker which defaults to a.out.
7126 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
7127 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
7128 * config/i386-lelf.mt: Remove.
7129
7130 Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
7131
7132 * ldmain.c (main): If opening the map file fails, call
7133 bfd_set_error before calling einfo.
7134
7135 * ld.texinfo, ld.1: Document the -no-keep-memory option.
7136
7137 Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
7138
7139 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
7140 does mark shared libraries as executable.
7141
7142 Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
7143
7144 * ldlang.c (lang_common): Change power to int. Pass larger values
7145 before smaller values.
7146 (lang_one_common): Treat info as int *. Don't bother to check for
7147 last value, since it is now zero.
7148
7149 Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
7150
7151 * ldlang.c (load_symbols): An empty archive is OK.
7152
7153 Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
7154
7155 * ldmain.c (progress.h): Include.
7156 (main): Call START_PROGRESS and END_PROGRESS.
7157
7158 Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
7159
7160 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
7161 .dtors sections, so that these pointers get relocated also.
7162 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
7163 and end of the constructors/destructors.
7164
7165 Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7166
7167 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
7168 describes an archive, call bfd_link_add_symbols on each member.
7169 * ldmain.c (whole_archive): New variable.
7170 (main): Initialize it to false.
7171 * ldmain.h: Declare whole_archive.
7172 * lexsup.c (parse_args): Grok --whole-archive switch.
7173 * ld.texinfo, ld.1: Document --whole-archive.
7174
7175 Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
7176
7177 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
7178 using the default emulation.
7179
7180 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
7181 LDEMULATION.
7182 * config/hppaelf.mh (HOSTING_EMU): Likewise.
7183
7184 Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
7185
7186 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
7187 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
7188
7189 Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
7190
7191 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
7192
7193 * ldlex.l: Return -lFILENAME as the token LNAME.
7194 * ldgram.y: Add token LNAME.
7195 (input_list): Treat LNAME like NAME, but pass it to
7196 lang_add_input_file as lang_input_file_is_l_enum.
7197 * ld.texinfo: Document using -lFILENAME in INPUT.
7198
7199 Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7200
7201 * ldlang.c (lang_check): If the architectures are compatible call
7202 bfd_merge_private_bfd_data to let the backend do additional
7203 checks.
7204
7205 Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
7206
7207 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
7208 all supported emulations.
7209
7210 Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
7211
7212 * ldemul.c (ldemul_list_emulations): New function.
7213 * ldemul.h (ldemul_list_emulations): Declare.
7214 * ldver.c (help): List supported targets and emulations.
7215
7216 Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
7217
7218 * scripttempl/elf.sc (.debug): Relocate to address 0.
7219 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
7220 .debug_sfnames, .line): Likewise.
7221
7222 Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
7223
7224 * emultempl/elf32.em (hold_rel): New static variable.
7225 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
7226 contents whose names begin with ".rel" after hold_rel. Remove the
7227 assertion which checked for unplaced .rel sections. Don't try to
7228 sort the section into place if place->bfd_section is NULL.
7229 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
7230 section beginning with ".rel".
7231
7232 Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
7233
7234 Doc note from pierre@phi.la.tce.com (Pierre Willard):
7235 * ld.texinfo: -X and -x work even if -s or -S are not specified.
7236 * ld.1: Similar change.
7237
7238 Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
7239
7240 * emulparams/gld960coff.sh (COFF_CTORS): Define.
7241 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
7242
7243 Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
7244
7245 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
7246 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
7247 * config/i386-lelf.mt: New file.
7248 * config/i386-gelf.mt: New file.
7249
7250 Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
7251
7252 * configure.in: Match on mips-ecoff, and default to the IDT
7253 configuration.
7254
7255 Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
7256
7257 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
7258 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
7259 to double the size of the table.
7260
7261 Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
7262
7263 * Makefile.in (distclean): Do recursive deletion, since ldscripts
7264 is a directory.
7265
7266 Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
7267
7268 * ldmain.c (main): If trace_file_tries is true, and we are using
7269 an internal linker script, print out the script.
7270 * ldfile.c (try_open): Reindent function. Make the messages about
7271 opening script files more informative.
7272
7273 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
7274 * ld.texinfo, ld.1: Update accordingly.
7275
7276 Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
7277
7278 * ldlang.c (lang_one_common): Adjust references to common symbol
7279 information for new structure.
7280
7281 Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
7282
7283 * ldmain.c (undefined_symbol): Handle section being NULL.
7284
7285 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
7286 * ldexp.c (fold_name): Likewise.
7287 * ldlang.c (print_one_symbol): Likewise.
7288 (lang_finish): Likewise.
7289 * ldmain.c (multiple_common): Likewise.
7290 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
7291 renamed to bfd_link_hash_undefweak.
7292
7293 * scripttempl/alpha.sc: Set address of .data section correctly
7294 when -n or -N is used. Patch from Chris G Demetriou
7295 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
7296 * scripttempl/mips.sc: Similar change.
7297
7298 Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
7299
7300 * ldlang.c (lang_size_sections): Clarify error message when user
7301 specified start addr conflicts with region. Fix resetting of
7302 region pointer.
7303
7304 Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
7305
7306 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
7307 in lang_allocating_phase_enum.
7308
7309 Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
7310
7311 * Makefile.in (distclean): Depend upon clean. Don't bother to
7312 remove files which will be removed by clean. From patch by
7313 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
7314
7315 Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
7316
7317 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
7318 a MIPS target, clobber the size of all but the first input
7319 .reginfo section to be 0, so that lang_size_sections sets the
7320 correct size for the output .reginfo section.
7321
7322 Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
7323
7324 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
7325 Remove unused variable is.
7326
7327 Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7328
7329 * configure.in: Add support for powerpc-*-eabi.
7330
7331 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
7332 support.
7333
7334 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
7335 elf.sc, which defines some new symbols PowerPC elf needs.
7336
7337 Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7338
7339 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
7340 constructor entry is in the absolute section.
7341
7342 Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7343
7344 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
7345 * config/i386-gnu.mt: New file. Include ELF support.
7346
7347 Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7348
7349 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
7350 there are any input sections named .gnu.warning, treat them as
7351 containing a warning message to be printed by the linker, and
7352 clobber the size so that the message is not copied into the output
7353 file.
7354 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
7355 section.
7356
7357 Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
7358
7359 * configure.in (w65-*-*): New target.
7360 * Makefile.in: Update.
7361 * scripttempl/w65.sc: New.
7362 * config/coff-w65.mt: New.
7363
7364 Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
7365
7366 * ldlang.c (lang_place_orphans): Don't ignore files with
7367 just_syms_flag set. Instead, put all their sections in
7368 bfd_abs_section_ptr, using the section VMA as the output_offset.
7369
7370 Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
7371
7372 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
7373 name `reloc_howto_type', since it's now defined to be const.
7374 * ldlang.c (lang_add_reloc): Ditto.
7375 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
7376
7377 Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7378
7379 * ldexp.c (fold_binary): Adding or subtracting an absolute value
7380 to a relative value does not require forcing the relative value to
7381 be absolute. Also, reindent function.
7382
7383 Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7384
7385 * ldwrite.c (clone_section): Create a symbol with the
7386 same name as the section.
7387
7388 Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7389
7390 * ld.h (split_by_reloc, split_by_file): New flags.
7391 * ldwrite.c (clone_section, split_sections): New functions.
7392 * lexsup.c (parse_args): Understand new split options.
7393
7394 Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7395
7396 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
7397 .data segment. They must be writable when creating a shared
7398 library. From H.J. Lu <hjl@nynexst.com>.
7399
7400 Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
7401
7402 * emultempl/miposecoff.em: New file.
7403 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
7404 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
7405 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
7406 provide __runtime_reloc_start and __runtime_reloc_stop if they are
7407 used. Align _fdata to a 16 byte boundary.
7408 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
7409 generic.em.
7410 (emipsidtl.c): Likewise.
7411 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
7412
7413 * ld.h (args_type): Add new field embedded_relocs.
7414 * ldemul.h (ldemul_after_open, after_open_default): Declare.
7415 (ld_emulation_xfer_struct): Add new field after_open.
7416 * ldemul.c (ldemul_after_open): New function.
7417 (after_open_default): New function.
7418 * ldlang.c (lang_process): Call ldemul_after_open.
7419 * lexsup.c (parse_args): Handle --embedded-relocs.
7420 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
7421 new after_open field to after_open_default.
7422 * emultempl/generic.em, emultempl/gld960.em: Likewise.
7423 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
7424 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
7425 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
7426 * ld.texinfo, ld.1: Mention -embedded-relocs.
7427
7428 Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7429
7430 * Makefile.in: Add eshl.o.
7431 * config/coff-sh.mt: Add shl emulation.
7432
7433 Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7434
7435 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
7436 Youngdale <eric@aib.com>.
7437
7438 Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7439
7440 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
7441 * config/i386linux.mh: New file; set HOSTING_CRT0.
7442 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
7443 /usr/lib, since that is already in LIB_PATH.
7444
7445 Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
7446
7447 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
7448 address.
7449 (.data, .bss): If "-N", then place the data/bss just after the end
7450 of the .text section rather than at the default 0x40000000.
7451
7452 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
7453 text segment.
7454
7455 Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7456
7457 Patches from Eric Youngdale <eric@aib.com>:
7458 * ldlang.c (lang_finish): Don't warn if entry symbol not found
7459 when generating a shared library.
7460 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
7461 attempting to place an orphaned relocation section when generating
7462 a dynamically linked object.
7463
7464 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
7465 _start.
7466
7467 Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7468
7469 * ld.h (args_type): Add field export_dynamic.
7470 * lexsup.c (parse_args): Recognize --export-dynamic.
7471 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
7472 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
7473
7474 Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7475
7476 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
7477 we allocate common symbols.
7478
7479 Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
7480
7481 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
7482 .rela.fini to the list of .rel* sections.
7483
7484 Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7485
7486 * ldlang.c (load_symbols): Add new argument place. Only accept
7487 linker scripts if place is not NULL. Put commands found in an
7488 assumed linker script into place.
7489 (lookup_name): Pass NULL as place argument to load_symbols.
7490 (open_input_bfds): In lang_input_statement_enum case, pass a place
7491 argument to load_symbols, and store any new statements after the
7492 current one.
7493
7494 Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7495
7496 * ldver.c (ldversion): Bump to 2.5.3.
7497
7498 Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7499
7500 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
7501
7502 Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7503
7504 * Makefile.in (check): Add missing "else true" clause.
7505
7506 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
7507
7508 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
7509 entry point to "start". Align at end of each section to 0x200.
7510 Start .text section 0x1000 later. Add _etext, _edata, _end
7511 symbols.
7512
7513 Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7514
7515 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
7516 composed of different object file formats.
7517 (ldctor_build_sets): If the output format does not support the
7518 reloc, and we are not generating a relocateable link, try getting
7519 the reloc from the input format.
7520
7521 Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
7522
7523 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
7524 (em68knbsd.c): New target.
7525
7526 * config/m68k-nbsd.mt: New file.
7527 * emulparams/m68knbsd.sh: New file.
7528 * configure.in (m68*-*-netbsd*): Use above configs.
7529
7530 Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7531
7532 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
7533 appropriately named static library, stop the search at that
7534 directory.
7535
7536 Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
7537
7538 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
7539 and esparcnbsd.o; sorted entries.
7540 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
7541
7542 * config/netbsd532.mt: Removed.
7543 * emulparams/netbsd532.sh: Removed.
7544
7545 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
7546 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
7547 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
7548 sparc*-*-netbsd*): Use above configs.
7549
7550 Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7551
7552 * ldmain.c (multiple_common): One of the types may now be
7553 bfd_link_hash_indirect. The old BFD argument may be NULL.
7554
7555 Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7556
7557 * configure.in: Add * at the end of m68k-hp-hpux.
7558
7559 Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7560
7561 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
7562 YY_CHAR *.
7563
7564 Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
7565
7566 * scripttempl/nw.sc: Gather constructors and destructors and
7567 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
7568
7569 Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
7570
7571 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
7572 (ei386nw.c, eppcnw.c): New targets.
7573
7574 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
7575 scripttempl/nw.sc: New files, for i386 and powerpc netware.
7576
7577 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
7578 instead of {i386,ppc}-elf.
7579
7580 * configure.in (sparc*-*-netware): Removed. There is no such
7581 thing anymore.
7582
7583 * ldint.texinfo: Move misplaced `@end iftex'.
7584
7585 Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
7586
7587 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
7588 .rela.dtors to the list of .rel* sections.
7589
7590 Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7591
7592 * ldver.c (ldversion): Update to version 2.5.
7593 * Version 2.5 released.
7594
7595 * configure.in (all_targets): Handle i386-linux*.
7596
7597 Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7598
7599 * scripttempl/aout.sc: Set _etext and __etext to ., not
7600 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
7601 will not break any other system. From Eric Valette
7602 <ev@chorus.fr>.
7603
7604 Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7605
7606 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
7607 --verbose to get the old -V behaviour.
7608 * ld.1, ld.texinfo: Document this change.
7609
7610 Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7611
7612 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
7613 assertion, since it could fail with a user defined linker script.
7614
7615 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
7616 name in the hash table during the first phase--the hash table does
7617 not even exist at that point, much less have the right value.
7618
7619 * Makefile.in (CC): Define.
7620 (CXX): Move definition, change from g++ to gcc.
7621 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
7622 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
7623 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
7624 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
7625 (.cc.o): Comment out.
7626 (testdir): Remove.
7627 (site.exp): Don't create testdir or set tmpdir.
7628 (check): Run checks even if not running native. Use CC_FOR_TARGET
7629 instead of RUNTEST_CC, and likewise for CXX.
7630 (cdtest targets): Comment out.
7631 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
7632 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
7633 * cdtest-main.cc, cdtest.exp: Remove.
7634
7635 Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7636
7637 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
7638 file naming problems.
7639 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
7640 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
7641 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
7642 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
7643 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
7644 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
7645 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
7646
7647 * genscripts.sh: Always search /usr/local/TARGET/lib.
7648
7649 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
7650
7651 Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7652
7653 * configure.in: Handle i386-bsdi* targets like i386-bsd.
7654
7655 Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7656
7657 * lexsup.c (parse_args): Add support for -a for HP/UX
7658 compatibility.
7659
7660 * lexsup.c (parse_args): -c takes an argument.
7661
7662 Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7663
7664 * ld.h (args_type): Add new field endian.
7665 * lexsup.c (parse_args): Handle -EB and -EL by setting
7666 command_line.endian.
7667 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
7668 * ldlang.c (lang_add_output_format): Add arguments big and little.
7669 If command_line.endian is set, use it to select big or little
7670 rather than the default. Changed all callers.
7671 * ldlang.h (lang_add_output_format): Update declaration.
7672 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
7673 LITTLE_OUTPUT_FORMAT.
7674 * emulparams/elf32mipl.sh: Likewise.
7675 * emulparams/mipsbig.sh: Likewise.
7676 * emulparams/mipsbsd.sh: Likewise.
7677 * emulparams/mipsidt.sh: Likewise.
7678 * emulparams/mipsidtl.sh: Likewise.
7679 * emulparams/mipslit.sh: Likewise.
7680 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
7681 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
7682 OUTPUT_FORMAT.
7683 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
7684 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
7685 * scripttempl/mipsbsd.sc: Likewise.
7686
7687 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
7688 depending upon ldgram.c, so that a parallel make does not try to
7689 build both at once.
7690
7691 * configure.in (mips*el-elf*): New target.
7692 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
7693 (eelf32mipl.c): New target.
7694
7695 * config/mipsl-elf32.mt: New file.
7696 * emulparams/elf32mipl.sh: New file.
7697
7698 Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7699
7700 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
7701 ld -r -S -x.
7702
7703 Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7704
7705 * ldmisc.c (vfinfo): Print BFD file name as well as file name
7706 returned by find_nearest_line, in case the file name is something
7707 unhelpful such as a .h file. Handle %u.
7708
7709 Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7710
7711 * ldlang.c (lang_do_assignments): Make sure output statement
7712 has an attached bfd_section before trying to dereference it.
7713
7714 Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7715
7716 * ld.h (ld_config_type): Add new field warn_once.
7717 * ldmain.c (undefined_symbol): Handle -warn-once.
7718 * lexsup.c (parse_args): Recognize -warn-once.
7719 * ld.texinfo (Options): Document -warn-once.
7720 * ld.1: Likewise.
7721
7722 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
7723 name. For %C, print the function name on a separate line, to keep
7724 the length of error messages under control.
7725 * ldmain.c (multiple_definition): Use %D for ``first defined
7726 here.''
7727 (undefined_symbol): Use %D for ``more undefined references
7728 follow''.
7729
7730 * ldmisc.c (multiple_warn): Remove; no longer used.
7731 * ldmisc.h (multiple_warn): Don't declare.
7732
7733 Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7734
7735 * ldlang.c (print_output_section_statement): Print all lines
7736 to the map file.
7737
7738 Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7739
7740 * ldlang.c (load_symbols): Check for archive before object. Use
7741 bfd_check_format_matches, and, if ambiguous, print a list of
7742 matching formats. If file format is not recognized, treat file as
7743 a linker script.
7744 * ldgram.y (yyerror): If assuming an object file is a script,
7745 mention that. Tweak the format of the error messages.
7746 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
7747 guess that this is not actually a script, and just report that the
7748 file format was not recognized.
7749 * ld.texinfo (Options): Admit that -( may be used more than once.
7750 Add note that unrecognized object files are now treated as linker
7751 scripts.
7752
7753 * ldfile.c (ldfile_input_filename): Make const.
7754 (ldfile_assumed_script): New variable.
7755 (try_open): Change arguments types to const.
7756 (ldfile_find_command_file): Likewise.
7757 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
7758 * ldfile.h: Update declarations for ldfile.c changes.
7759 * ldlex.l: Include <ctype.h>.
7760 (file_name_stack): Change to be const char *.
7761 (lineno_stack): New static variable.
7762 (<<EOF>>): Set lineno as well as ldfile_input_filename.
7763 (lex_push_file): Make name argument const. Initialize
7764 lineno_stack entry.
7765 (lex_redirect): Initialize lineno_stack entry.
7766 (lex_warn_invalid): Handle non printable characters nicely.
7767 * ldlex.h (lex_push_file): Declare second argument as const.
7768
7769 * ldgram.y (ifile_p1): Recognize GROUP.
7770 * ldlex.l: Recognize GROUP.
7771 * ld.texinfo (Option Commands): Document GROUP.
7772
7773 Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7774
7775 * config/m68klynx.mh: New file.
7776
7777 Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
7778
7779 * emultempl/hppaelf.em: Add newlines to the error messages.
7780
7781 Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7782
7783 * config/i386lynx.mh: New file.
7784 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
7785 unless CONSTRUCTING.
7786
7787 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7788
7789 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
7790 (GENERATE_SHLIB_SCRIPT): Define as yes.
7791 (DYNAMIC_LINK): Define as false.
7792 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
7793 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
7794 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
7795 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
7796 generic.em.
7797
7798 Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7799
7800 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
7801
7802 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7803
7804 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
7805 .got section is now explicitly handled in elf.sc.
7806
7807 Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7808
7809 * scripttempl/alpha.sc: Redo script to set . outside of sections
7810 and not bother to explicitly specify section addresses.
7811 Explicitly place .sdata section.
7812
7813 Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7814
7815 * scripttempl/m68kcoff.sc: Put .bss in data segment.
7816
7817 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
7818 0, and to only be marked as NOLOAD if relocating.
7819 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
7820 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
7821 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
7822 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
7823 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
7824 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
7825 * scripttempl/sparclynx.sc: Likewise.
7826
7827 Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
7828
7829 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
7830 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
7831 New files.
7832
7833 Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
7834
7835 * ld.h (args_type): Add field soname.
7836 * lexsup.c (parse_args): Handle -soname argument.
7837 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
7838 pass soname.
7839 * ld.texinfo: Document -soname.
7840
7841 Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7842
7843 * ldlang.c (lang_check): Don't try to set the architecture if the
7844 input and output files are incompatible. Just warn.
7845
7846 Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7847
7848 * configure.in: Change i[34]86 to i[345]86.
7849
7850 Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7851
7852 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
7853
7854 Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7855
7856 Make the ELF linker handle orphaned sections reasonably. Also,
7857 define __start_SECNAME and __stop_SECNAME around sections whose
7858 names can be represented in C, for the benefit of symbol sets in
7859 glibc.
7860 * ldemul.h (ldemul_place_orphan): Declare.
7861 (ld_emulation_xfer_type): Add place_orphan field.
7862 * ldemul.c (ldemul_place_orphan): New function.
7863 * ldlang.h (wild_doit): Declare.
7864 * ldlang.c (wild_doit): Make nonstatic.
7865 (lang_place_orphans): Call ldemul_place_orphan.
7866 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
7867 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
7868 static variables.
7869 (gld${EMULATION_NAME}_place_orphan): New static function.
7870 (gld${EMULATION_NAME}_place_section): New static function.
7871 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
7872
7873 Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
7874
7875 * scripttempl/aout.sc: Add .linux-dynamic after .data.
7876
7877 Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7878
7879 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
7880 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
7881
7882 Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7883
7884 * ldexp.h (exp_get_abs_int): Declare.
7885
7886 Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7887
7888 * ldlang.c (lang_do_assignments): Handle complex AT's better.
7889 * ldexp.c (exp_get_abs_int): New function.
7890
7891 Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
7892
7893 * configure.in: add i960-nindy-coff support.
7894
7895 Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7896
7897 * ldlex.l (yy_create_string_buffer): Handle change to internal
7898 interface in flex 2.4.7.
7899
7900 Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
7901
7902 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
7903 New function; add 0x20 to any use of -Ttext.
7904 (gld${EMULATION_NAME}_create_output_section_statements): New
7905 function.
7906 (ld_${EMULATION_NAME}_emulation): Use the new function
7907 gld${EMULATION_NAME}_create_output_section_statements.
7908
7909 Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7910
7911 * scripttempl/mips.sc: Redo script to set . outside of sections
7912 and not bother to explicitly specify section addresses.
7913
7914 Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7915
7916 * scripttempl/elf.sc: Copy several more relocation sections into
7917 the output. Put .got.plt sections into .got.
7918
7919 Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7920
7921 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
7922
7923 Add a new script operator, PROVIDE, to define a symbol only if it
7924 is needed.
7925 * ldgram.y (PROVIDE): New token.
7926 (assignment): Accept PROVIDE.
7927 * ldlex.l (PROVIDE): New token.
7928 * ldexp.h (node_type): Add etree_provide to node_class enum.
7929 (exp_provide): Declare.
7930 * ldexp.c (exp_fold_tree): Handle etree_provide.
7931 (exp_provide): New function.
7932 (exp_print_tree): Handle etree_provide.
7933 * ld.texinfo: Document PROVIDE.
7934
7935 * ldlang.c (lang_common): Pass desired alignment to
7936 lang_one_common as power of two.
7937 (lang_one_common): Get common symbol alignment from linker hash
7938 table entry. Treat desired alignment as a power of two.
7939
7940 * ldlang.c (wild_section): Attach all section with the given name,
7941 not just the first one. If there is no name, attach all sections
7942 even if the SEC_IS_COMMON flag is set.
7943
7944 Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7945
7946 * ld.h (args_type): Add field rpath.
7947 * lexsup.c (S_ISDIR): Define if not already defined.
7948 (parse_args): Add support for -rpath. If -R is used to name a
7949 directory, treat it as -rpath for Solaris compatibility.
7950 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
7951 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
7952 * ldmain.c (main): Initialize command_line.rpath to NULL.
7953 * ld.texinfo: Document -rpath option.
7954
7955 Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
7956
7957 * emulparams/pc532machaout.sh: New file. Pc532 mach script
7958 parameters.
7959
7960 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
7961
7962 * config/pc532mach.mt: New file. Pc532 mach target support.
7963
7964 * config/pc532mach.mh: New file. Pc532 mach host support.
7965
7966 * config/netbsd532.mt: New file. Netbsd 532 target support.
7967
7968 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
7969
7970 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
7971 dependency.
7972
7973 Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7974
7975 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
7976 bfd_abs_section_ptr, not &bfd_abs_section.
7977
7978 * lexsup.c (parse_args): Changed "retain-symbols-file" from
7979 no_argument to required_argument. From djm.
7980
7981 Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7982
7983 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
7984 sections to force a VMA of 0; needed for ELF backends which have
7985 not been converted to the new linker style.
7986
7987 Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
7988
7989 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
7990 it was for the HPUX dynamic loader's use and it creates problems
7991 with ELF GDB.
7992
7993 Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
7994
7995 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
7996 * ldlang.h (lang_do_assignments): Put external decl here.
7997 * emultempl/hppaelf.em: Minor cleanups throughout file.
7998 (hppa_elf_create_output_section_statements): Rewrite.
7999 (hppaelf_finish): Rewrite.
8000
8001 Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
8002
8003 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
8004
8005 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
8006 accept plain -B.
8007 * ld.texinfo: -Bstatic is not ignored.
8008
8009 Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
8010
8011 * ldlex.l: Recognize \r the same as \n.
8012
8013 Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
8014
8015 Preliminary support for generating shared libraries, from Eric
8016 Youngdale <ericy@cais.cais.com>.
8017 * genscripts.sh: If the emulation parameter file sets
8018 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
8019 CREATE_SHLIB defined.
8020 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
8021 link_info.shared is set, use the .xs script file.
8022 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
8023 .interp section, and don't include TEXT_START_ADDR in the starting
8024 address of the first section.
8025 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
8026 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
8027
8028 Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8029
8030 * configure.in: Change --with-targets to --enable-targets.
8031
8032 Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
8033
8034 * lexsup.c (parse_args): Add support for new options -( -) with
8035 synonyms --start-group --end-group.
8036 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
8037 (lang_group_statement_type): Define new struct.
8038 (lang_statement_union_type): Add group_statement field.
8039 (lang_enter_group, lang_leave_group): Declare.
8040 * ldlang.c (lang_for_each_statement_worker): Handle
8041 lang_group_statement_enum.
8042 (map_input_to_output_sections, print_statement): Likewise.
8043 (lang_size_sections, lang_do_assignments): Likewise.
8044 (open_input_bfds): Completely rewrite. Now does its own looping,
8045 rather than using lang_for_each_statement. Handle groups.
8046 (lang_process): Update call to open_input_bfds.
8047 (print_group): New static function.
8048 (lang_enter_group, lang_leave_group): New static functions.
8049 * ldfile.c (ldfile_open_file): If the file has already been
8050 opened, just return rather than taking an assertion failure.
8051 * ldver.c (help): Mention new options.
8052 * ld.texinfo: Document new options.
8053
8054 * ldlang.c (end_of_data_section_statement_list): Don't define.
8055 (lang_leave_output_section_statement): Don't set obsolete variable
8056 end_of_data_section_statement_list.
8057
8058 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
8059 ALIGN.
8060
8061 * ldlang.c (lang_size_sections): Adjust current region address
8062 even for sections with an explicit address. From
8063 ralphc@pyramid.com (Ralph Campbell).
8064
8065 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
8066 From jrs@world.std.com (Rick Sladkey).
8067
8068 * scripttempl/mipsbsd.sc: Let sections align to their natural
8069 boundaries.
8070
8071 Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
8072
8073 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
8074 &bfd_abs_section.
8075 (lang_abs_symbol_at_beginning_of): Likewise.
8076 (lang_abs_symbol_at_end_of): Likewise.
8077 (lang_size_sections): Use bfd_is_abs_section to check for the
8078 absolute section. Don't try to set the VMA or output_offset or
8079 size of the absolute section.
8080 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
8081 undefined section.
8082
8083 Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
8084
8085 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
8086 when generating relocatable objects.
8087
8088 Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
8089
8090 * emultempl/linux.em: New file providing support for linking
8091 against Linux shared libraries.
8092 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
8093 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
8094
8095 Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8096
8097 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
8098 * ldmain.c (main): Initialize link_info.shared to false. Give
8099 error if link_info.relocateable and link_info.shared are both set.
8100
8101 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
8102 it as naming an emulation to be added to EMULATION_OFILES.
8103 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
8104
8105 * Makefile.in: Rebuilt dependencies.
8106 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
8107 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
8108 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
8109 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
8110 (ei386linux.c): Remove; now in Makefile.in.
8111 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
8112 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
8113 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
8114 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
8115 (eelf64_sparc.c): Remove; now in Makefile.in.
8116 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
8117 (eelf32_sparc.c): Remove; now in Makefile.in.
8118
8119 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
8120 no owner--it might be bfd_abs_section. From Eric Youngdale
8121 <ericy@cais.cais.com>.
8122
8123 * scripttempl/aout.sc: Let sections align to their natural
8124 boundaries.
8125
8126 Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8127
8128 * ldemul.h (ldemul_open_dynamic_archive): Declare.
8129 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
8130 * ldemul.c: Include ldexp.h and ldlang.h.
8131 (ldemul_open_dynamic_archive): New function.
8132 * ldfile.h (ldfile_open_file_search): Declare.
8133 * ldfile.c: Include ldemul.h.
8134 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
8135 argument, not bfd *. Change all callers.
8136 (ldfile_open_file_search): Rename from open_a. Return boolean
8137 argument, not bfd *. Clean up. Change all callers.
8138 (ldfile_open_file): If doing a dynamic link, call
8139 ldemul_open_dynamic_archive rather than assuming the extension of
8140 a dynamic object is ".so".
8141 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
8142 New function.
8143 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
8144 field.
8145 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
8146
8147 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
8148 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
8149 Accept -static as a synonym for -non_shared.
8150
8151 Let the user change the dynamic linker used by ELF code.
8152 * ld.h (args_type): Add new field interpreter.
8153 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
8154 handle it.
8155 * ldmain.c (main): Initialize command_line.interpreter to NULL.
8156 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
8157 the ELF backend to return the .interp section. If
8158 command_line.interpreter is not NULL, set the contents of .interp
8159 to it.
8160 * ld.texinfo: Mention -dynamic-linker.
8161
8162 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
8163 generic.em.
8164
8165 * lexsup.c (parse_args): Sort out the option macros and change the
8166 definitions to make it easier to add a new option.
8167
8168 * scripttempl/aout.sc: Define __etext and __edata to go along with
8169 _etext and _edata.
8170
8171 * ld.h (ld_config_type): Add new field traditional_format.
8172 * lexsup.c (parse_args): Add traditional-format to longopts, and
8173 handle it.
8174 * ldmain.c (main): Initialize config.traditional_format to false.
8175 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
8176 flags of output_bfd according to config.traditional_format.
8177 * ldver.c (help): Mention -traditional-format.
8178 * ld.texinfo: Document -traditional-format.
8179
8180 Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8181
8182 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
8183 they are encountered.
8184
8185 Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
8186
8187 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
8188 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
8189
8190 Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8191
8192 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
8193 _FTEXT, _ETEXT and _FDATA. Dont define _END.
8194
8195 * ldfile.c (open_a): If this is not an archive, try to open it in
8196 the current directory before searching for it.
8197
8198 * lexsup.c (parse_args): Treat -i as a synonym for -r.
8199
8200 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
8201 BLOCK works in a section address as documented.
8202
8203 * ldgram.y (YYDEBUG): Don't define.
8204
8205 Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8206
8207 * emultempl/gld960.em: Pass false for new argument to
8208 ldfile_add_library_path.
8209 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
8210
8211 * emultempl/sunos.em: Only look for .so files if doing a dynamic
8212 link.
8213
8214 Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
8215
8216 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
8217
8218 Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
8219
8220 * Makefile.in (check): Delete ld.new dependency so that a regression
8221 test doesn't trigger a rebuild of the linker.
8222
8223 Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8224
8225 * ldlang.c (map_input_to_output_sections): For lang_address, call
8226 init_os if it hasn't already been called.
8227
8228 Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8229
8230 Add support for SunOS shared libraries.
8231 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
8232 shared library support code.
8233 * emultempl/sunos.em: New file.
8234 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
8235 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
8236 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
8237 (esun3.c): Likewise.
8238
8239 * ldlang.c: Minor formatting cleanups.
8240 (lang_for_each_input_file): New function.
8241 * ldlang.h (lang_for_each_input_file): Declare.
8242
8243 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
8244 field.
8245 (search_head): Declare.
8246 (ldfile_add_library_path): Add new cmdline argument in prototype.
8247 * ldfile.c (search_head): Make non-static.
8248 (search_dirs_type): Move to ldfile.h.
8249 (ldfile_add_library_path): Accept cmdline argument, and save it.
8250 * lexsup.c (parse_args): Pass true for new cmdline argument of
8251 ldfile_add_library_path.
8252 (set_default_dirlist): Likewise.
8253 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
8254 argument of ldfile_add_library_path.
8255 * ldgram.y (ifile_p1): Likewise.
8256
8257 Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8258
8259 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
8260 total_size, superfile and chain.
8261 * ldfile.c (open_a): Don't clear search_dirs_flag.
8262 (ldfile_open_file): Don't try to open superfile. Assert that file
8263 has not already been opened.
8264 * ldlang.c (new_afile): Don't initialize superfile.
8265 * ldmain.c (add_archive_element): Don't initialize subfiles or
8266 chain or superfile. Initialize search_dirs_flag to false.
8267
8268 Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8269
8270 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
8271
8272 Changes from binutils-2.4 release:
8273
8274 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
8275 variables, use whitespace, so scripts don't break.
8276
8277 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
8278
8279 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
8280
8281 * cdtest-bar.cc: Renamed from cdtest-func.cc.
8282 * Makefile.in: Noted change.
8283
8284 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
8285 don't know where that's supposed to come from, or why it's
8286 necessary.
8287
8288 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
8289
8290 * configure.bat: update to latest makefile.in
8291 * emulpara/go32.sh: set to coff-go32 not aout
8292 * emultemp/generic.em: strength-reduce the structure of
8293 this shell script, since the only available shell for
8294 DOS can't handle complex syntax.
8295 * emultemp/stringify.sed: for "sed -f" instead of inline.
8296 * makefile.in: depend on stringify.sed as well as genscripts.sh
8297 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
8298 * genscripts.sh: empty variables aren't always considered "set",
8299 so set them to "y" instead.
8300
8301 Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8302
8303 * ldlang.c (entry_symbol): Make static.
8304 (lang_add_entry): Add cmdline argument.
8305 * ldlang.h (lang_add_entry): Change prototype.
8306 * ldgram.y (statement_anywhere): Change lang_add_entry call.
8307 * lexsup.c (parse_args): Likewise.
8308
8309 Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8310
8311 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
8312 .reginfo an address.
8313 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
8314 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
8315 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
8316
8317 Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8318
8319 Add support for ELF shared libraries.
8320 * ld.h (ld_config_type): Add field dynamic_link.
8321 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
8322 on attempts to use -r with -relax, -call_shared or -s.
8323 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
8324 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
8325 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
8326 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
8327 OPTION_NON_SHARED by setting dynamic_link field accordingly.
8328 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
8329 -r and -Ur.
8330 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
8331 opening a file with a .so extension first.
8332 * emultempl/elf32.em: New file.
8333 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
8334 (NONPAGED_TEXT_START_ADDR): Likewise.
8335 (TEMPLATE_NAME): Define as elf32.
8336 (DATA_PLT): Define.
8337 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
8338 * scripttempl/elf.sc: Add placement for new dynamic sections.
8339 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
8340 outside of any section. Don't use ALIGN(8); just let one section
8341 VMA follow another. Put .dynbss in .bss. Don't mention debugging
8342 sections; they'll be handled correctly anyhow.
8343 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
8344
8345 Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
8346
8347 * Makefile.in (install): Redirect output of ln to /dev/null.
8348
8349 Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
8350
8351 * emultempl/hppaelf.em: Change all references of
8352 .hppa_linker_stubs to .PARISC.stubs.
8353 * scripttempl/hppaelf.sc: Likewise.
8354
8355 Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8356
8357 * ldlang.c (print_output_section_statement): Change ``no attached
8358 output section'' message slightly.
8359 (lang_do_assignments): Don't recurse down if there is no real
8360 section.
8361
8362 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
8363 match corresponding change in emulation templates.
8364 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
8365 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
8366
8367 Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8368
8369 * ldver.c (ldversion): Updated version number.
8370
8371 * cdtest-foo.cc: Use explicit "#pragma implementation".
8372 * cdtest-bar.cc: Renamed from cdtest-func.cc.
8373 * Makefile.in: References to cdtest-func.o changed to
8374 cdtest-bar.o.
8375
8376 Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8377
8378 Don't create unnecessary output sections.
8379 * ldlang.c (out_bfd_get_section_by_name): Remove.
8380 (wild_section): Call bfd_get_section_by_name rather than
8381 our_bfd_get_section_by_name. Don't call wild_doit if there is no
8382 section.
8383 (lang_create_output_section_statements): Remove.
8384 (map_input_to_output_sections): For several cases, call init_os if
8385 it has not already been called.
8386 (lang_size_sections): If output section was not created, skip it.
8387 (lang_process): Don't call lan_create_output_section_statements.
8388 (lang_place_orphans): Skip files with just_syms_flags set to true.
8389 * ld.texinfo: Document change.
8390
8391 Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8392
8393 * ldlang.c (wild_doit): Don't bother initializing the vma and
8394 section size. Don't special case SEC_SHARED_LIBRARY.
8395 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
8396 specially.
8397
8398 Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
8399
8400 * config/go32.mh : New file for Xgo32X.
8401
8402 Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8403
8404 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
8405 before calling einfo, since we are reporting an fopen failure.
8406 From jrs@world.std.com (Rick Sladkey).
8407
8408 * configure.in: Use "e" rather than "em_" as prefix for
8409 emulations.
8410
8411 Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
8412
8413 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
8414 filename.
8415 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
8416 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
8417 Ditto.
8418 * Makefile.in: Changed all generated file names.
8419 (ldemul-list.h): Depend on Makefile, not config.status. Changed
8420 sed patterns to handle new filenames.
8421
8422 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
8423 * configure.in: Adjusted.
8424
8425 Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8426
8427 * Makefile.in (install-info): Don't use "$<*", it doesn't always
8428 work. Instead, check build dir and $srcdir explicitly, and use
8429 `echo' to get all the filenames.
8430
8431 * configure.in (h8300h-*-hms): Changed ld_target name to
8432 cf-h8300h.
8433 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
8434 unique in 8.3.
8435
8436 * config/i960coff.mt: New file.
8437 * emulparams/gld960coff.sh: New file.
8438 * emultempl/gld960c.em: New file.
8439 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
8440 i960coff configuration.
8441 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
8442
8443 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
8444 code isn't included in FSF releases, and it can still be
8445 explicitly selected.
8446 (distclean): Remove site.bak and tmpdir.
8447 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
8448 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
8449
8450 Patches from Ralph Campbell:
8451 * config/mipsbsd.mh: New file.
8452 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
8453 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
8454 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
8455 instead of `aout'.
8456
8457 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
8458
8459 Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8460
8461 * config/m68k.mt (EMUL): Set to m68kaout.
8462 * emulparams/m68kaout.sh: New file.
8463 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
8464 (em_m68kaout.c): New target.
8465
8466 * ldlang.c (lang_size_sections): If dot moves because of an
8467 assignment, don't try to insert a pad into the absolute output
8468 section, just change the address of the default memory region
8469 instead.
8470
8471 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
8472 cdtest-ur.out, and cdtest-ur.tmp.
8473
8474 Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8475
8476 * scripttempl/sa29200.sc: Align all sections to four byte
8477 boundaries.
8478
8479 Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
8480
8481 * Makefile.in, configure.in: Support for go32 coff.
8482 * config/i386-go32.mt: New file
8483 * emulparams/i386go32.sh: New file
8484 * scripttempl/i386go32.sc: New file
8485
8486 Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
8487
8488 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
8489 Lynx-specific script templates.
8490 * configure.in (sparclite*-*-coff): Use coff-sparc.
8491 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
8492 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
8493 (ENTRY): Set to __main.
8494 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
8495 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
8496 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
8497
8498 Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8499
8500 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
8501 byte boundary, in case the global constructors do not take up an
8502 even 16 bytes.
8503
8504 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
8505 exist, get crtbegin based on gcc -print-libgcc-file-name.
8506 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
8507
8508 Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8509
8510 * ldlang.c (lang_size_sections): When no address is given for a
8511 section, align it according to its requirements.
8512
8513 Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8514
8515 * Makefile.in (clean, distclean): Remove configdoc.texi.
8516
8517 Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
8518
8519 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
8520
8521 Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8522
8523 * ldlang.c (lang_size_sections): When relaxing, adjust the
8524 position of a padding statement, and adjust dot accordingly.
8525
8526 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
8527
8528 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
8529
8530 Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8531
8532 * scripttempl/i386coff.sc: If relocating, don't put .init and
8533 .fini sections into .text; keep them separate.
8534 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
8535 exist, get crtbegin based on gcc -print-libgcc-file-name.
8536 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
8537
8538 Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
8539
8540 * Makefile.in (check): Set TCL_LIBRARY for runtest.
8541
8542 Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8543
8544 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
8545 manufacturer.
8546
8547 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
8548 if building a final executable.
8549
8550 Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8551
8552 * ldmain.c (main): Check the return value of bfd_close.
8553
8554 Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8555
8556 * scripttempl/alpha.sc: Clean up section alignment to ensure that
8557 sections never overlap when using -r.
8558
8559 Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8560
8561 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
8562 changes: get_symtab_upper_bound renamed and returns long,
8563 bfd_canonicalize_symtab returns long, check for error indications.
8564
8565 Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8566
8567 * ldlang.c (print_input_section): For section size, use
8568 _cooked_size if it is non-zero, size otherwise.
8569 (size_input_section): Likewise.
8570 (lang_do_assignments): Likewise (case lang_input_section_enum).
8571
8572 Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8573
8574 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
8575 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
8576 (lang_add_input_file): Pass true to new_afile for add_to_list.
8577 (lookup_name): Remove force_load argument. Changed all callers.
8578 Pass false to new_afile for add_to_list. Split loading of symbols
8579 out into separate function.
8580 (load_symbols): New function split out of lookup_name. Don't load
8581 the symbols if they are already loaded.
8582 (open_input_bfds): For lang_input_statement_enum call load_symbols
8583 rather than lookup_name.
8584 (lang_process): Pass abs_output_section rather than NULL to
8585 lang_size_sections.
8586 (lang_startup): Set real field of first_file to true.
8587
8588 Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8589
8590 * ldlang.c (had_relax): Removed.
8591 (relax_again): New static variable.
8592 (lang_size_sections): Change call to bfd_relax_section to
8593 correspond to BFD changes. Set relax_again appropriately.
8594 (lang_process): Remove #if 0 code. When relaxing, keep calling
8595 lang_do_assignments and lang_size_sections until relax_again
8596 becomes false.
8597
8598 * emultemp/gld960.em: Include libiberty.h
8599 (gld960_before_parse): Pass NULL as final argument to concat.
8600
8601 Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8602
8603 * scripttempl/aout.sc: Force _end and __end to be aligned to a
8604 four byte boundary.
8605
8606 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
8607 building a bfd_data_link_order, rather than by setting the section
8608 contents immediately.
8609
8610 Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8611
8612 Changes to make -Ur work again.
8613 * ldmain.c (add_to_set): Now takes reloc argument rather than
8614 bitsize. Check config.build_constructors here. If an new hash
8615 table entry is created, mark it as undefined.
8616 (constructor_callback): No longer takes bitsize argument. Pass
8617 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
8618 BFD backend supports it.
8619 (reloc_overflow): Handle a NULL abfd argument.
8620 (reloc_dangerous, unattached_reloc): Likewise.
8621 * ldctor.c: Include ldmain.h.
8622 (struct set_info): Change bitsize field to reloc.
8623 (ldctor_add_set_entry): Now takes reloc argument rather than
8624 bitsize. Don't bother to check config.build_constructors here.
8625 (ldctor_build_sets): Get the size from the reloc howto. If
8626 generating relocateable output, call lang_add_reloc rather than
8627 lang_add_data.
8628 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
8629 instead of bitsize.
8630 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
8631 (lang_reloc_statement_type): New structure.
8632 (lang_statement_union_type): Add reloc_statement field.
8633 (lang_add_reloc): Declare new function.
8634 * ldlang.c (lang_for_each_statement_worker): Handle
8635 lang_reloc_statement_enum.
8636 (map_input_to_output_sections, print_statement): Likewise.
8637 (lang_size_sections, lang_do_assignments): Likewise.
8638 (print_reloc_statement): New function.
8639 (lang_add_reloc): New function.
8640 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
8641
8642 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
8643 (cdtest-ur, cdtest-ur.out): New targets.
8644 (check-cdtest): Now also check that -Ur works correctly.
8645
8646 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
8647
8648 Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8649
8650 * ldlang.c (lang_process): Move lang_common call before
8651 map_input_to_output_sections, to ensure that any alignment
8652 constraints set by common symbols are copied over to the output
8653 sections.
8654
8655 Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8656
8657 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
8658 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
8659 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
8660 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
8661 needed for ELF.
8662
8663 Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8664
8665 * config/i386bsd.mh: New file.
8666
8667 Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8668
8669 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
8670 defined.
8671 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
8672 (DATA_START_SYMBOLS): Define _fdata.
8673
8674 Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
8675
8676 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
8677
8678 Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8679
8680 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
8681 works again. Attach some output symbols to the stub file bfd.
8682
8683 * emultempl/hppaelf.em: Include elf32-hppa.h.
8684 (file_chain): Add decl.
8685 (hppa_look_for_stubs_in_section): Delete decl.
8686 (hppaelf_finish): Reenable code. Do not pass symbols
8687 down to hppa_look_for_stubs_in_section.
8688
8689 Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
8690
8691 * ldmain.c (write_map): Don't define. Removed all references.
8692 Just use map_file or map_filename instead.
8693 (add_archive_element): Use minfo to write map information, not
8694 info_msg.
8695 (constructor_callback): Use fprintf to write map information, not
8696 info_msg.
8697 * ldmain.h (write_map): Don't declare.
8698 * ldgram.y (mri_script_command): Removed reference to write_map.
8699 * ldlang.c (lang_one_common): Likewise.
8700 * lexsup.c (parse_args): Likewise.
8701
8702 Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
8703
8704 * scripttempl/elf.sc: Force all sections to be aligned.
8705
8706 * ldgram.y (section): Reverse the order of memspec_opt and
8707 fill_opt to avoid an ambiguity when both are used.
8708 * ld.texinfo: Changed accordingly.
8709
8710 * ldgram.y: Move include of ldlex.h back with other includes.
8711 * ldlex.h (input_type): Don't initialize enum constants to
8712 particular values.
8713 * ldlex.l: Use a switch to return the right token based on
8714 input_type, rather than knowing that input_type has a value based
8715 on a token type.
8716
8717 * ldgram.y (dirlist_ptr): Removed; not used.
8718 * lexsup.c: Include ldver.h.
8719 * Makefile.in: Rebuilt dependencies.
8720
8721 Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
8722
8723 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
8724 (ldlang_add_file): call it here instead.
8725
8726 Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8727
8728 * ldgram.y: Include ldlex.h after %token decls, for byacc.
8729
8730 Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8731
8732 * emultempl/hppaelf.em: First attempt to clean this file up.
8733 Add comments in several functions as to their purpose and
8734 how they function (or my current best guess). Clean up horrible
8735 spacing and indention that never should have been accepted in the
8736 first place. Add FIXMEs for issues which need to be resolved.
8737 Disable linker-stub generation until it gets fixed. This allows
8738 the linker to at least work on simple code for testing purposes.
8739
8740 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
8741 it via hppaelf_finish). Prototype moved into ldlang.h.
8742 (lang_process): Move problematic extra call to lang_size_sections
8743 into the PA ELF specific code.
8744 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
8745 lang_size_sections moved here.
8746
8747 Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
8748
8749 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
8750 * config/ppc-elf32.mt: New file.
8751 * emulparams/elf32ppc.sh: New file.
8752 * emultempl/ppc.em: New file.
8753 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
8754 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
8755 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
8756
8757 Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8758
8759 * lexsup.c (parse_args): Use symbolic numbers for long options.
8760 Fix misunderstanding in -Y and -call_shared et al.
8761
8762 Use getopt instead of lex and yacc to parse the command line.
8763
8764 * ld.texinfo (Options): Document changes to option syntax.
8765 * Makefile.in: Update dependencies.
8766 * ldver.c (help): Tweak dashes in usage message.
8767 * ldgram.y (%union): Remove unused members.
8768 Remove %tokens for command line options; add ones for input types.
8769 (command_line): Rules removed.
8770 (file): Instead of command line, recognize an
8771 input type indicator, then use the nonterminal for that type.
8772 (defsym_expr): New nonterminal from code formerly in command_line.
8773 * ldlex.h: Declare parser input type enum and variable.
8774 Don't declare parse_line.
8775 * ldlex.l: Remove unused variables. Make some used ones static
8776 and comment them.
8777 (COMMAND): Start state and its rules removed.
8778 At start of yylex, return input state token if at start of input.
8779 (lex_redirect): Don't need to set yyout.
8780 (ldlex_command): Function removed.
8781 * ldmain.c (main): Instead of calling parse_line, set up the
8782 redirections and call yyparse directly.
8783 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
8784 "command line".
8785 * lexsup.c: Remove #if 0'd code.
8786 (parse_line): Function removed.
8787 (parse_args): Rewrite to use getopt_long_only.
8788 (set_default_dirlist): New function from code formerly in
8789 ldgram.y:command_line.
8790 (set_section_start): New function.
8791 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
8792 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
8793 compiled-in link scripts in "{" and "}", as the grammar no longer
8794 wants them to be.
8795
8796 Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
8797
8798 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
8799 require that it be in $(srcdir).
8800
8801 Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
8802
8803 * ldlang.c (lang_size_sections): Only align section to alignment
8804 required by linker script, not to maximum alignment of input
8805 sections.
8806
8807 * ldlang.h (largest_section): Don't declare.
8808 * ldlang.c (largest_section): Don't define.
8809 (size_input_section): Don't set largest_section; not used.
8810
8811 Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
8812
8813 * ldlang.c (new_afile): Pass NULL as last argument to concat.
8814
8815 Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8816
8817 * ldlang.c, ldmain.c: Include libiberty.h.
8818
8819 * ldmisc.h (concat): Don't declare.
8820 * ldmisc.c (concat): Don't define; just use the one in libiberty.
8821
8822 * ld.h (as_output_section_statement): Removed; not used.
8823
8824 Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8825
8826 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
8827 bfd_set_error and new error names.
8828
8829 Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8830
8831 * ldwrite.c (build_link_order): If the cooked size of the section
8832 has been set, use it, for determining link_order size.
8833 (ldwrite): In the error message displayed if bfd_final_link fails,
8834 indicate that it was in fact the final link step that failed.
8835
8836 * ldlang.c (lang_size_sections): Clear bfd_error before calling
8837 bfd_relax_section, in case it returns false but doesn't flag an
8838 error. If an error is returned, indicate which one it is in the
8839 error message.
8840
8841 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
8842 it'll get picked up from $(srcdir) if appropriate.
8843
8844 Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8845
8846 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
8847 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
8848
8849 Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8850
8851 * ldlex.l (comment): Increment line number when newline is read.
8852
8853 Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8854
8855 * ldlang.c (lookup_name): Take new argument, force_load. If true,
8856 reload the file even if it is already loaded.
8857 (wild): Call lookup_name with force_load argument of 0.
8858 (open_input_bfds): Call lookup_name with force_load argument of 1.
8859 (print_symbol): Remove declaration of non-existent function.
8860 (print_one_symbol): Return true rather than falling off end.
8861
8862 Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8863
8864 * ldmain.c (main): Use %ld when printing long values.
8865
8866 * scripttempl/elf.sc: Move _edata after the .sdata section.
8867 Permit OTHER_BSS_SYMBOLS to be defined.
8868 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
8869
8870 Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8871
8872 * Rename all "hppaosf" files to "hppaelf".
8873 * Change all "osf" references to "elf" in hppaelf files.
8874 * Makefile.in: Likewise.
8875 * configure.in: Likewise.
8876
8877 Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8878
8879 * ldmain.c (main): Call xatexit, not atexit.
8880 Call xmalloc_set_program_name.
8881
8882 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
8883 bfd_errno.
8884
8885 Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8886
8887 * emultempl/lnk960.em (append), emultempl/hppaosf.em
8888 (hppaosf_finish): Call xmalloc, not ldmalloc.
8889 * ldmain.c (preserve_output): Function removed.
8890 (main): Do it here instead.
8891
8892 Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8893
8894 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
8895 GNU C specific macros.
8896
8897 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
8898 call to LANG_FOR_EACH_INPUT_SECTION.
8899
8900 Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8901
8902 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
8903 deleted; will use libiberty versions instead.
8904 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
8905 mri.c Makefile.in: Change callers.
8906
8907 * ldmisc.c (vfinfo): Remove cleanup code.
8908 * ldmain.c (remove_output): Put it here (new function).
8909 (preserve_output): New function.
8910 (main): Register remove_output and preserve_output with atexit.
8911 * ldmain.c ldgram.y: Call xexit instead of exit.
8912 * ldmisc.h: Declare xexit.
8913
8914 Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
8915
8916 * Makefile.in: Lots of new H8/500 memory models.
8917
8918 Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8919
8920 * ldlex.l: Removed duplicate rules.
8921 (yywrap): Provide default definition, needed with some versions of
8922 flex.
8923
8924 Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8925
8926 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
8927 the archive filename too.
8928
8929 * ldlex.l: Add rule to catch invalid input characters instead of
8930 printing them. Include "ldmain.h" for program_name decl.
8931 (lex_warn_invalid): New function.
8932 * Makefile.in: Add dependency.
8933
8934 Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8935
8936 * Makefile.in (check): Don't bother running any tests of
8937 cross-linker until the test suite no longer assumes native mode.
8938
8939 Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
8940
8941 * ldlang.c (print_one_symbol, print_input_section): Print
8942 global symbols in symbol table again.
8943
8944 Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8945
8946 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
8947 exit successfully instead of complaining if no input files are
8948 given.
8949
8950 Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
8951
8952 * Makefile.in: Format variable definitions consistently.
8953 (LD_PROG): Remove unnecessary variables from link command,
8954 change variable LOADLIBES to EXTRALIBS.
8955
8956 * ldmain.c (main): Compute and display total execution time.
8957 * ld.texinfo (-stats): Document the option.
8958
8959 Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8960
8961 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
8962 arguments.
8963
8964 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
8965 after opening BFD.
8966
8967 * ldlang.c (relaxing): Removed global variable.
8968 (lang_size_sections): If the canonical symbols have not already
8969 been read in, read them in before relaxing.
8970 * ldlang.h (relaxing): Removed declaration.
8971
8972 Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8973
8974 * ldlang.c (new_afile): Initialize loaded field to false.
8975 (lookup_name): If file was already loaded, don't call the
8976 add_symbols entry point again.
8977
8978 Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8979
8980 * ld.texinfo: Clarify what -T option does.
8981
8982 Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
8983
8984 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
8985 for a.out.
8986
8987 Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8988
8989 * ldmain.c (add_archive_element): If trace_files or
8990 trace_file_tries, print file name.
8991 * ldlang.c (lookup_name): Likewise.
8992 (ldlang_add_file): Don't put files on input_bfds list in reverse
8993 order.
8994
8995 * scripttempl/elf.sc: Correct typo.
8996
8997 Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8998
8999 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
9000 their arguments optional, for compatibility with the old GNU ld.
9001
9002 Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9003
9004 * scripttempl/elf.c: Define __bss_start before the .sbss section.
9005
9006 Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9007
9008 * ldmain.c (add_to_set): Add bitsize argument.
9009 (constructor_callback): New function.
9010 (link_callbacks): Add constructor_callback.
9011 * ldctor.c (struct set_info): Add bitsize field.
9012 (ldctor_add_set_entry): Add bitsize argument.
9013 (ldctor_build_sets): Base the size of the elements of the set on
9014 the bitsize, rather than always using LONG.
9015 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
9016
9017 * ld.h (QUAD_SIZE): Define.
9018 * ldgram.y (QUAD): New token.
9019 (length): Handle it.
9020 * ldlex.l: Return QUAD.
9021 * lexsup.c (keywords): Add QUAD.
9022 * ldwrite.c (build_link_order): Handle QUAD.
9023 * ldlang.c (print_data_statement): Handle QUAD.
9024 (lang_size_sections): Likewise.
9025 (lang_do_assignments): Likewise.
9026 * ldexp.c (exp_print_token): Add QUAD to table.
9027 * ld.texinfo: Describe QUAD.
9028
9029 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
9030 since the Alpha doesn't use them.
9031
9032 Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
9033
9034 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
9035
9036 Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
9037
9038 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
9039 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
9040
9041 Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
9042
9043 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
9044 needed for i386mach. (Should be a no-op on other systems.)
9045
9046 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
9047 (PAGE_SIZE): Don't define; not used.
9048
9049 Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9050
9051 * ldgram.y (yyerror): Make argument const char *, and actually
9052 print it out rather than assuming it is a syntax error.
9053 * ldmisc.h: Change declaration of yyerror.
9054 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
9055
9056 Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9057
9058 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
9059 exec header offset, since the exec header isn't loaded.
9060 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
9061
9062 Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9063
9064 A major rewrite to move the bulk of the linker into BFD so that
9065 more efficient backend code can be written for specific object
9066 files.
9067 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
9068 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
9069 * ldctor.c, ldctor.h: Complete rewrite.
9070 * ldwrite.c, ldwrite.h: Complete rewrite.
9071 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
9072 link_info.strip instead. Changed all uses.
9073 (discard_locals_type, discard_locals): Removed. Use
9074 link_info.discard instead. Changed all uses.
9075 (ld_config_type): Removed relocateable_output field; use
9076 link_info.relocateable instead; changed all uses. Added stats
9077 field.
9078 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
9079 set_loader_symbol): Removed.
9080 * ldexp.h (node_class): Added etree_rel.
9081 (etree_type): Added rel field.
9082 * ldexp.c (exp_print_token): Bracketed table initialization.
9083 (exp_relop): New function.
9084 (fold_name): Use linker hash table rather than ldsym functions.
9085 (exp_fold_tree): Likewise. Also, handle etree_rel case.
9086 (exp_print_tree): Handle etree_rel.
9087 * ldgram.y (strip_symbols, discard_locals): Removed.
9088 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
9089 (REL): New token. Does not appear in grammar, but needed for
9090 expression code.
9091 (file): Don't call lang_final; it's called by main anyhow.
9092 * ldlex.l: Accept -stats and -no-keep-memory options.
9093 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
9094 * ldlang.c: Consistently use fill_type for fill argument.
9095 (lang_init_script_file, script_file): Removed.
9096 (create_object_symbols): Removed. Use
9097 link_info.create_object_symbols_section instead. Changed all
9098 uses.
9099 (lang_add_keepsyms_file): Removed.
9100 (lookup_name): Call bfd_link_add_symbols instead of
9101 ldmain_open_file_read_symbol.
9102 (wild): Don't iterate over script_file.
9103 (open_output): Create link hash table.
9104 (lang_place_undefineds): Rewrote.
9105 (lang_size_sections): Handle relaxing (doesn't work yet).
9106 (lang_relocate_globals): Removed.
9107 (lang_finish): Use link hash table rather than ldsym functions.
9108 (lang_common): Rewrote.
9109 (lang_one_common): New function.
9110 (ldlang_add_file): Add file to link_info.input_bfds list. Set
9111 usrdata.
9112 (create_symbol): Removed.
9113 (lang_process): Don't call lang_init_script_file. Call
9114 ldctor_build_sets rather than find_constructors. Don't call
9115 lang_relocate_globals.
9116 (lang_abs_symbol_at_beginning_of): Rewrote.
9117 (lang_abs_symbol_at_end_of): Rewrote.
9118 * ldmain.c (had_y): Removed.
9119 (lprefix, lprefix_len): Removed; use link_info fields instead.
9120 Changed all uses.
9121 (multiple_def_count, commons_pending, undefined_global_sym_count,
9122 total_symbols_seen, total_files_seen): Removed.
9123 (link_callbacks, link_info): New variables.
9124 (main): Initialize link_info. Don't call init_bfd_error_vector or
9125 ldsym_init. Don't set now unused variables. Handle -stats.
9126 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
9127 (add_ysym): Rewrote.
9128 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
9129 search_library, gnu960_check_format, decode_library_subfile,
9130 linear_library, symdef_library, clear_syms, subfile_wanted_p):
9131 Removed.
9132 (add_keepsyms_file, add_archive_element, multiple_definition,
9133 multiple_common, add_to_set, warning_callback, undefined_symbol,
9134 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
9135 New functions.
9136 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
9137 require symbols for %C; look them up instead.
9138 * emultempl/hppaosf.em: Pass link_info to
9139 hppa_look_for_stubs_in_section.
9140 * Makefile.in: Rebuilt dependencies.
9141 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
9142 relax.c.
9143 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
9144 relax.h.
9145 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
9146 ldlang.h and ldctor.h.
9147
9148 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
9149 declarations of free and malloc from flex output. Change malloc
9150 to ldmalloc in flex output.
9151
9152 Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
9153
9154 * ldmain.c (lprefix): Change default from a char to a string
9155 with only one character.
9156 (lprefix_len): Set default to one.
9157
9158 * ldmain.h (lprefix_len): Declare.
9159
9160 * ldsym.c (write_file_locals): Use strncmp rather than a character
9161 comparison for lprefix.
9162
9163 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
9164 correctly.
9165
9166 * emultmpl/hppaosf.em: Include ldexp.h.
9167 (before_parse): Set lprefix and lprefix_len correctly.
9168
9169 Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9170
9171 * ldlex.h: Don't declare yywrap if it is a macro.
9172 * ldlex.l: Include sysdep.h.
9173 * ldlang.c (lang_for_each_statement_worker,
9174 lang_for_each_statement): Forgot to use PARAMS.
9175
9176 Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9177
9178 * Makefile.in: Added .PHONY targets where appropriate. Added some
9179 comments. Also:
9180 (gcclibdir, version): Removed unused variables.
9181 (DEP): New variable, set to mkdep.
9182 (ALL_CFLAGS): New variable. Used in .c.o target.
9183 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
9184 variables.
9185 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
9186 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
9187 mostly obsolete variables. Adjusted remaining uses.
9188 (DEF_EMUL): Removed variable.
9189 (ldmain.o): Handle undefined EMUL error correctly.
9190 (ldemul-list.h): Depend on config.status rather than Makefile.
9191 Create via temporary file.
9192 (ver960.c, roll, make): Removed obsolete targets.
9193 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
9194 dependencies.
9195 * dep-in.sed: New file, used when rebuilding dependencies.
9196
9197 Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
9198
9199 Made many changes to eliminate gcc warnings. Made various
9200 cosmetic changes, declared various things in header files, removed
9201 various extern declarations from .c files. No substantive
9202 changes.
9203
9204 * ldlang.c (lang_process): Ifdef out final call to
9205 lang_size_sections again (reverting change of Nove 2), since it
9206 breaks the Sun4 linker.
9207
9208 Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9209
9210 * configure.in (alpha-*-netware*): New target; use alpha.
9211
9212 Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
9213
9214 * configure.in: Group targets by CPU. Merge some m68k target
9215 entries with different CPU specs that use the same ld_target
9216 values.
9217
9218 * configure.in: Add sparc*-*-coff.
9219 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
9220 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
9221 (em_coff_sparc.c): Add dependencies and build rules.
9222
9223 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
9224
9225 Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9226
9227 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
9228 New tokens.
9229 (command_line_option): Accept and ignore them (for now).
9230 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
9231 where n is a number.
9232
9233 Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9234
9235 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
9236 not in bfd_com_section, create the section in the BFD so that it
9237 can be placed in the right output section.
9238
9239 Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9240
9241 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
9242 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
9243 (OTHER_READONLY_SECTIONS): Define for .reginfo.
9244 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
9245 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
9246 Move OTHER_READONLY_SECTIONS after all the other readonly
9247 sections. Don't use DATA_ADDR twice.
9248
9249 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
9250 p is in a common section, make sure the BFD has a section of that
9251 name.
9252
9253 * ldlang.c (lang_common): Add newline to error message.
9254
9255 Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
9256
9257 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
9258 Lynx-specific script instead of m68kcoff.
9259 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
9260 (ENTRY): Define as __main.
9261 (TEXT_START_ADDR): Define as 0.
9262 (PAGE_SIZE): Define as 0x1000.
9263 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
9264 * scripttempl/m68klynx.sc: New file.
9265
9266 Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9267
9268 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
9269 arguments rather than treating them as emulation names.
9270
9271 Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
9272
9273 * configure.in: Support x86 unixware and netware plus generic netware.
9274
9275 Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9276
9277 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
9278 Correct values (?).
9279
9280 Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
9281
9282 * Makefile.in (distclean): Don't delete dvi or info files.
9283 (ld.info): Update dependency list.
9284 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
9285
9286 Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9287
9288 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
9289 Set output_filename instead of creating a new node.
9290 (open_output): Don't set output_filename.
9291 (lang_final): Create the new node here.
9292 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
9293
9294 Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
9295
9296 From Pete Hoogenboom (hoogen@cs.utah.edu):
9297
9298 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
9299 edata, _edata, end): Add definitions of these symbols.
9300 (__end): Remove definition of this symbol.
9301 (__data_start): Move definition of this symbol.
9302
9303 * emultempl/hppaosf.em: Various fixes and support for linker stub
9304 generation.
9305 (hppaosf_finish, hppaosf_search_for_padding_statements,
9306 hppaosf_create_output_section_statements): New functions in
9307 support of linker stub generation.
9308 (ld_hppaosf_emulation): Redefine to include new
9309 emulation-specific routines.
9310
9311 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
9312 Pass abs_output_section rather than NULL to avoid invalidating
9313 absolute symbols.
9314
9315 Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9316
9317 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
9318 (em_i386mach.c): New rule.
9319 * configure.in (i[34]86-*-mach*): New case.
9320 * config/i386-mach.mt: New file.
9321 * emulparams/i386mach.sh: New file.
9322
9323 Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9324
9325 * ld.h (flag_is_*): Removed macros.
9326 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
9327 Consistently check the BFD symbol flags directly, rather than
9328 using file_is_* macros.
9329
9330 Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
9331
9332 * configure.in (sparc*-*-lynxos*): New target.
9333 * Makefile.in: Add rule for em_sparclynx.c.
9334 (ALL_EMULATIONS): Add Lynx emulations.
9335 * config/sparc-lynx.mt: New file.
9336 * emulparams/sparclynx.sh: New file.
9337 * scripttempl/sparccoff.sc: New file.
9338
9339 Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9340
9341 * Makefile.in: Add dependency for $(EMULATION_OFILES).
9342
9343 Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9344
9345 * relax.c (write_relax): Check return value of bfd_seclet_link.
9346
9347 Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
9348
9349 * ldlang.c (delete_output_file_on_failure): New variable.
9350 (open_output): Set it after bfd open succeeds.
9351 * ldmisc.c (vfinfo): Test it.
9352
9353 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
9354
9355 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
9356 symbols.
9357
9358 * ldemul.c: Support was added to allow emulation-specific
9359 processing to occur. This support was added primarily for linker
9360 stub generation in the elf32-hppa gld.
9361 (ldemul_finish, ldemul_create_output_section_statements): New
9362 functions.
9363 * ldemul.h: Support was added to allow emulation-specific
9364 processing to occur. (As described above.) Added finish and
9365 create_output_section_statements fields to
9366 ld_emulation_xfer_struct structure.
9367 * ldlang.c: Add calls to emulation-specific routines.
9368 (lang_process): Add call to
9369 ldemul_create_output_section_statements function.
9370 (lang_process): Add call to a emulation-specific routine (and
9371 some processing after the call).
9372
9373 Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
9374
9375 * configure.in: mips*- instead of mips-, mips*el changes
9376
9377 Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9378
9379 * configure.in (alpha-*-osf*): New target; use alpha.mt.
9380 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
9381 (em_alpha.c): New target; use alpha.sh and alpha.sc.
9382 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
9383 * config/alpha.mt: New file.
9384 * emulparams/alpha.sh: New file.
9385 * scripttempl/alpha.sc: New file.
9386
9387 Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
9388
9389 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
9390 types of different sizes (eg: 64 and 32 bits), so coerce.
9391 * ld.h (ALIGN_N): Add warning about usage.
9392
9393 Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9394
9395 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
9396 which we already have a definition, rather than checking in
9397 several different places whether the symbol is weak.
9398
9399 Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9400
9401 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
9402 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
9403 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
9404 expanded within them.
9405 * config/mipsb-elf32.mt: New file.
9406 * emulparams/elf32mipb.sh: New file.
9407 * Makefile.in (em_elf32mipb.c): New target.
9408
9409 Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
9410
9411 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
9412 lang_input_file_is_search_file_enum so objects brought in using
9413 INPUT() do a path lookup.
9414
9415 Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
9416
9417 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
9418 instead of {i386,m68k}-coff.
9419 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
9420 * config/i386-lynx.mt: New file.
9421 * config/m68k-lynx.mt: New file.
9422 * emulparams/i386lynx.sh: New file.
9423 * emulparams/m68klynx.sh: New file.
9424
9425 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
9426 but defaulting to _start.
9427
9428 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
9429 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
9430 LynxOS libc.
9431
9432 Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
9433
9434 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
9435 HOSTING_LIBS for testing.
9436
9437 Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9438
9439 Finish up support for i386-sysv4 (without shared libraries):
9440 * ld.h (flag_is_weak): Define.
9441 * ldlang.c (print_symbol): Mention whether symbol is weak.
9442 (print_input_section): Print weak symbols as globals.
9443 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
9444 (enter_global_ref): Do not warn if a weak symbol redefines a
9445 global symbol. Do not let a weak symbol redefine a common symbol.
9446 (enter_file_symbols): Treat weak symbols as global symbols.
9447 (subfile_wanted_p): Do not pull in an object file from a archive
9448 just to resolve an undefined weak symbol.
9449 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
9450 error; the error might be that malloc has run out of space.
9451 * ldsym.c (write_file_locals): Treat weak symbols as global.
9452 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
9453 use i386-elf.
9454 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
9455 * config/i386-elf.mt: New file; set EMUL to elf_i386.
9456 * emulparams/elf_i386.sh: New file.
9457 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
9458 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
9459 (ALL_EMULATIONS): Add em_elf_i386.o.
9460 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
9461 (em_elf_i386.c): New target, like other em_*.c targets.
9462 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
9463 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
9464 nonempty, and configured for native, add it to LIB_PATH.
9465
9466 Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
9467
9468 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
9469 Added statements to pass stab and stabstr sections through and
9470 mark them as NOLOAD, which makes GDB happier.
9471
9472 Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
9473
9474 * configure.in: Accept m68k-lynx-lynxos config.
9475
9476 * Makefile.in: Use $(SHELL) to run genscripts.sh.
9477
9478 Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
9479
9480 * config/coff-h8300.mt: Add EMUL=h8300h.
9481
9482 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
9483
9484 Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
9485
9486 * Makefile.in: Changed CXX back to g++.
9487
9488 Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
9489
9490 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
9491
9492 Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9493
9494 * Makefile.in (TAGS): Use shell wildcards.
9495
9496 Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
9497
9498 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
9499
9500 Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
9501
9502 * ld.texinfo: re-enable included config file; conditionalize doc
9503 for -oformat to interact properly with SingleFormat doc config
9504 var; rename @up/@down to @raisesections/@lowersections.
9505
9506 Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
9507
9508 * configure.in: recognize m88110.
9509
9510 Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9511
9512 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
9513 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
9514 ELF emulation is "elf32-hppa" not "elf-big".
9515 (hppaosf_before_parse): Remove unneeded processing of environment
9516 variables.
9517 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
9518 .text segment of output file.
9519 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
9520
9521 Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
9522
9523 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
9524 longer in bfd.h.
9525
9526 * ldlang.c, ld.h: updated copyright.
9527
9528 Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9529
9530 * ldlang.c (open_output, lang_check): Check return value of
9531 bfd_set_arch_mach.
9532
9533 Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
9534
9535 * scripttempl/h8500.sc: Start all sections in a different segment.
9536 * scripttempl/z8ksim.sc: Handle constructors
9537
9538 Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
9539
9540 * Makefile.in: revert earlier changes back to execute runtest
9541 with make check. cdtest and bootstrap now function as they
9542 did within the Makefile.
9543
9544 Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9545
9546 * Makefile.in: Update dependencies.
9547
9548 * configure.in: Set EMULATION_OFILES in Makefile based on
9549 --with-targets option.
9550
9551 Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
9552
9553 * Makefile.in: check targets reimplemented to old way.
9554
9555 Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
9556
9557 * config/i386v.mh, config/irix4.mh: Use gcc
9558 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
9559 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
9560 bfd/configure.host change.
9561
9562 Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9563
9564 * scripttempl/elf.sc: Handle .line and .debug* sections.
9565
9566 * ldlex.l: Use bfd_scan_vma, not strtoul.
9567
9568 Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9569
9570 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
9571 Remove inital caps in some error messages, change "can't" to
9572 "cannot", add missing colons.
9573 * ldmisc.c (vfinfo): Print "%%" as a single %.
9574 For '%' followed by unrecognized character, print them both
9575 verbatim instead of expecting a char * arg.
9576 For '%C', don't put the function name in parens.
9577
9578 * ldexp.c (invalid): Pass "%%", not "% ".
9579
9580 Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9581
9582 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
9583 (BSS_VAR): Removed; now always define _fbss.
9584 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
9585 Removed.
9586
9587 Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
9588
9589 * configure.in: z8k-coff is the same as z8k-sim
9590
9591 Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
9592
9593 * testsuite/lib/ld.exp: new file
9594 * testsuite/config/unix-ld.exp: new file
9595 * testsuite/ld.bootstrap/bootstrap.exp: new file
9596 * Makefile.in: add dejagnu support for make check
9597
9598 Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9599
9600 * ldlex.l (comment): Add missing newline in message.
9601 * ldindr.c (add_indirect): Ditto.
9602 * ldexp.c (exp_fold_tree): Ditto.
9603
9604 Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9605
9606 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
9607 into externs.
9608
9609 * ldmisc.c (multiple_warn): New function.
9610 * ldmisc.h: Declare it.
9611 * ldmain.c (enter_global_ref): Call it.
9612 * ld.h (ld_config_type): Add warn_common.
9613 * ldlex.l, ldgram.y: Set it with -warn-common option.
9614 * ldver.c (help): Document it.
9615
9616 Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9617
9618 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
9619 target-specific sections, and for changing data section vma.
9620
9621 Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9622
9623 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
9624 terminals, for Solaris.
9625 (dirlist_ptr): New static variable.
9626 (command_line_option): Accept new options.
9627
9628 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
9629 "-YP,...".
9630
9631 * config/sun4sol2.mt: Pass emulation name without ".sh".
9632
9633 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
9634 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
9635
9636 Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9637
9638 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
9639 .dtors, .data1, .rodata1 sections, instead of combining them into
9640 other sections. For `-r', set all section start addresses to
9641 zero.
9642
9643 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
9644 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
9645 (MAXPAGESIZE): Renamed from PAGE_SIZE.
9646
9647 Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9648
9649 * genscripts.sh: If this is the default emulation, set
9650 COMPILE_IN.
9651 * emultempl/*.em: Use it to determine whether to compile in the
9652 scripts.
9653
9654 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
9655 genscripts.sh. Pass the current emulation name without ".sh" on
9656 the end.
9657 * genscripts.sh: Take an default emulation arg.
9658 Use the current emulation name as EMULATION_NAME.
9659 Make default lib path for cross-compiling ':', not null.
9660 * emulparams/*.sh: Don't set EMULATION_NAME.
9661 * ldemul.c (ldemul_get_script): Take isfile arg.
9662 Pass it to emulation's get_script function.
9663 * ldemul.h: Adjust get_script prototypes.
9664 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
9665 No longer static.
9666 * ldfile.h: Declare it.
9667 * ldgram.y: Accept a script on the command line again,
9668 for parsing compiled-in scripts.
9669 * ldmain.c (main): If ld script is a file, parse it as a -T
9670 option, otherwise parse it directly.
9671 * emultempl/*.em (*get_script): Return the scripts themselves if
9672 this is the default emulation; otherwise return their file names.
9673 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
9674 generic.em.
9675 * emulparams/m88kbcs.sh: Use it.
9676
9677 * ld.h (ld_config_type::unix_relocate): Remove unused element.
9678
9679 Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9680
9681 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
9682 there's no change log entry yet, tsk tsk) from the list of
9683 emulations compiled in until Mark gets around to checking in
9684 emulparams/i386linux.sh.
9685 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
9686 changed, this file gets updated.
9687
9688 Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
9689
9690 * ldgram.y (OPTION_Lfile): New token.
9691 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
9692 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
9693
9694 Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
9695
9696 * configure.in: h8/300h support needs own .mt file.
9697 config/coff-h8300h.mt: New file.
9698
9699 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9700
9701 * ldmain.c: Don't include sys/stat.h; it already got included
9702 somewhere along the way.
9703
9704 Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
9705
9706 * Makefile.in: Add h8300h support.
9707 emulparams/h8300h.sh: New file.
9708 scripttempl/h8300h.sc: New file.
9709
9710 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9711
9712 * ldfile.c (ldfile_open_file): In error message, use the name the
9713 user gave (e.g., "-lc"), rather than the base file name.
9714
9715 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
9716
9717 * ldmain.[ch]: Remove initial Q_ from function names.
9718 * ldexp.c, ldindr.c, ldlang.c: Change callers.
9719
9720 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
9721
9722 * ldlang.c (lang_process): Move loading of default script from
9723 here to main. Add a "/" to start of script name to prevent
9724 finding it in "." first.
9725
9726 * ldmain.c (set_scripts_dir): Don't look in "." first.
9727
9728 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
9729 option_longmap.
9730
9731 Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
9732
9733 * Makefile.in (em_m88kbcs.c): Correct dependency.
9734 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
9735 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
9736 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
9737
9738 Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9739
9740 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
9741 main.c (main): Print the errno string in the error message.
9742
9743 Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
9744
9745 * configure.in: Accept h8300h for target cpu.
9746
9747 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
9748 present (demangle is smart enough to know whether to do it or not).
9749
9750 Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9751
9752 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
9753 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
9754
9755 * ldlang.c (lang_process): Use sizeof instead of magic constant.
9756
9757 * ldmain.c (get_emulation, check_for_scripts_dir,
9758 set_scripts_dir): New functions.
9759 (main): Call them.
9760
9761 Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9762
9763 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
9764 Create symbol "end" instead of "__end". Comment out some parts
9765 that may not be needed (yet) for elf.
9766
9767 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
9768
9769 Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9770
9771 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
9772
9773 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
9774 when no prototype is being supplied.
9775 (ldmalloc, ldrealloc): Size argument is now size_t.
9776
9777 * ldmisc.c (finfo): New function, accepts FILE* argument.
9778 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
9779 without leading zeros.
9780 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
9781 bfd_vma value, instead of fprintf(%x) which won't hold a long long
9782 value.
9783 (concat, buystring): String lengths are size_t.
9784 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
9785
9786 * ldlang.c (new_statement): Size argument is now size_t. Added
9787 forward declaration with prototype.
9788
9789 Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9790
9791 * ldgram.y (OPTION_v): Don't turn on verbose output.
9792
9793 Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9794
9795 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
9796 bfd.h instead.
9797
9798 Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
9799
9800 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
9801 collect2 doesn't look for gld any more anyhow.
9802
9803 Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
9804
9805 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
9806 now have a non NULL srefs_chain.
9807
9808 * config/hp300hpux.mt: Use emulation hp3hpux rather than
9809 hp300hpux, since the latter does not exist.
9810
9811 Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9812
9813 * genscripts.sh: Put the scripts in the ldscripts directory, not
9814 emulations.
9815 * configure.in (ldscripts): Make, instead of emulations.
9816 * Makefile.in (scriptdir): Take off the "ld" part.
9817 (install, clean, distclean): Use ldscripts, not emulations.
9818 In tests, don't pass -Lemulations.
9819 Don't pass tooldir/lib to genscripts.sh.
9820 * genscripts.sh: Don't take tooldir/lib arg.
9821 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
9822 default script file.
9823
9824 Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
9825
9826 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
9827
9828 Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
9829
9830 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
9831
9832 Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
9833
9834 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
9835 run in parallel without colliding on yacc's static file names.
9836 Without the stub rule, make will try to start two yacc's
9837 concurrently which fails because of yacc's static file names.
9838
9839 Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
9840
9841 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
9842 symbols.
9843
9844 Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9845
9846 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
9847 different from libdir.
9848
9849 * Makefile.in (scriptdir): Base on tooldir, not datadir.
9850
9851 Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9852
9853 * ldver.c (help): New function.
9854 * ldver.h: Declare it.
9855 * ldlex.l, ldgram.y: Recognize new options --help and --version.
9856
9857 Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
9858
9859 * Makefile.in (INCLUDES): Don't need ../include any more.
9860
9861 Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9862
9863 * ldlex.l, ldgram.y: Support new -oformat option.
9864 Remove attempt at supporting script fragments on the command line.
9865 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
9866 * mri.c (mri_format), ldgram.y: Change callers.
9867 * ldlang.h: Change prototype.
9868
9869 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
9870
9871 * Makefile.in: canonicalize install.sh; for use within
9872 this directory (and subdirs)
9873
9874 Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9875
9876 * ldgram.y: Tweak grammar to make reporting of invalid options work.
9877
9878 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
9879 and .cc.o rule.
9880
9881 Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9882
9883 * ldfile.c (ldfile_open_command): Don't try .ld extension.
9884 It wasn't documented (or likely used) and wastes time.
9885 (try_open): If EXTEN is empty, don't try it.
9886
9887 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
9888 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
9889 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
9890 with normal function declarations.
9891
9892 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
9893 Move *.sc-sh to scripttempl/*.sc.
9894 * {emultempl,emulparams,scripttempl}/README: New files.
9895 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
9896 removed, replaced with generic.em.
9897 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
9898 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
9899
9900 * *.em (*_get_script): Return script name instead of script contents.
9901 * ldlang.c (lang_process): Change caller.
9902
9903 * ldlex.l, ldgram.y: Recognize -m option.
9904 Check for input files after *all* options in grammar.
9905 * ldmain.c (main): Check for -m options. Add default directory
9906 for -m.
9907
9908 * mkscript.c: File removed.
9909 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
9910 to add to the default LIB_PATH.
9911 Look for input files in the new subdirectories.
9912 Create the scripts in emulations subdirectory and don't filter
9913 them through mkscript.
9914 * configure.in: Make the emulations subdirectory.
9915
9916 * Makefile.in: Account for all of the above changes.
9917 Remove unused .SUFFIXES. Get libgcc.a path with gcc
9918 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
9919 Put CFLAGS last in the compilation rules.
9920 Add -I../bfd to INCLUDES so sysdep.h is found.
9921
9922 Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9923
9924 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
9925
9926 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
9927 dependent on RELOCATING, not RELOCATION.
9928 * hp3hpux.sh (SHLIB_PATH): Define it.
9929
9930 Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9931
9932 * ldfile.c (try_open): If opening without the extension fails,
9933 try with the extension even if -v or -V was given.
9934 had_script is imported (from ldgram.y), not exported.
9935
9936 Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
9937
9938 * Makefile.in: remove parentdir support, use INSTALL_XFORM
9939
9940 Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
9941
9942 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
9943 * ldgram.y (statement_list_opt): New nonterminal, either empty or
9944 statement_list.
9945 (section): Use statement_list_opt, not statement_list.
9946 * m68kcoff.sc-sh: Gather constructors and destructors and define
9947 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
9948 * sa29200.sc-sh: Gather constructors and destructors and define
9949 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
9950
9951 Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
9952
9953 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
9954 * configure.in: No longer need to configure to get sysdep.h.
9955
9956 Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9957
9958 * Makefile.in: remove install:all and install-info:info
9959 dependencies (these cause some spurious rebuilds at 'make install'
9960 time)
9961
9962 Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
9963
9964 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
9965 (mips-idt-ecoff*): Added trailing '*'.
9966 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
9967 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
9968 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
9969
9970 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
9971 incorrect definitions.
9972
9973 Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
9974
9975 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
9976 symbols, unless stripping.
9977
9978 Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
9979
9980 * Makefile.in: configure looks for ####, so remove lines with many
9981 '#' characters.
9982 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
9983 and HOSTING_LIBS correctly so that ``make check'' will work.
9984
9985 Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
9986
9987 * mips.sc-sh: Define _etext, _edata, and _end, in addition
9988 to etext, edata, and end. Needed for IRIX 4.0.5F.
9989 Patch from mwp@iconix.oz.au (Michael Paddon).
9990
9991 * Version 2.2.1 released.
9992
9993 Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9994
9995 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
9996 * mipsbsd.sh (EMULATION_NAME): Use new file name.
9997
9998 Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9999
10000 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
10001 properly right now.
10002
10003 * Version 2.2 released.
10004
10005 Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10006
10007 * ldver.c (ldversion): Bump version number to 2.2.
10008
10009 Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
10010
10011 * NEWS: New file.
10012
10013 Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
10014
10015 * mips.sc-sh: Don't define BSS_VAR unless relocating.
10016
10017 Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
10018
10019 * Makefile.in (mkscript.o, mkscript): Build mkscript via
10020 mkscript.o, rather than directly from mkscript.c.
10021
10022 Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
10023
10024 * configure.in: Look for ${target_makefile_frag} relative to
10025 ${srcdir}, not relative to build directory.
10026
10027 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
10028 * configure.in: Recognize hppa*-hp-osf.
10029 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
10030 (em_hppaosf.c): Build it.
10031 * config/hppaosf.mh, hppaosf.mt: New files.
10032
10033 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
10034 some system header files. All uses changed.
10035
10036 * configure.in: Recognize i386-aix configurations as i386-coff
10037 targets.
10038
10039 * configure.in: Recognize m68*-*-hpux.
10040 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
10041 the value of STACKZERO.
10042 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
10043 (em_hp3hpux.c): Build it.
10044 * hp3hpux.sh, config/hp300hpux.mt: New files.
10045
10046 Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
10047
10048 * mips.sc-sh: Put constructors in the .data section.
10049 * Makefile.in (cdtest): Added dependency on ld.new.
10050
10051 Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
10052
10053 * Makefile.in: Change definition of $(tooldir) to match FSF.
10054 * vax.sh, config/vax.mt, configure.in, Makefile.in:
10055 Support VAX Ultrix and BSD.
10056
10057 Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
10058
10059 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
10060
10061 Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
10062
10063 * ldlang.h (struct memory_region): Change `length' and
10064 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
10065 * ldlang.c, mri.c: Corresponding changes, plus lint.
10066
10067 Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
10068
10069 * configure.in: For all i386 targets, accept i486 as well.
10070
10071 Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
10072
10073 * ldlang.c (wild_doit): Preserve all flags for a
10074 SEC_SHARED_LIBRARY section.
10075 (size_input_section): Consider any SEC_HAS_CONTENTS section when
10076 computing largest_section.
10077
10078 Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
10079
10080 * ldlang.c (lang_output_section_statement_lookup): Initialize all
10081 fields of newly created structure.
10082
10083 Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
10084
10085 * ldmain.c (g_switch_value): New variable.
10086 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
10087 (command_line_option): Accept -G and set g_switch_value.
10088 * ldlex.l (COMMAND): Accept -G.
10089 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
10090
10091 Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
10092
10093 Support for linking and loading at different places:
10094
10095 * ldlex.l: Add "AT" keyword.
10096 * ldgram.y: Cleanup, and parse AT.
10097 * ldlang.c (print_output_section_statement): Print output address
10098 of section in map. (lang_size_sections): Fill sections' lma with
10099 load address.
10100 * ldlang.h (lang_output_section_statement_type): Add load_base
10101 information.
10102
10103 * ldindr.c (add_indirect): Keep more information in the alias
10104 symbol chain.
10105 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
10106 attribute from an input section.
10107 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
10108 default. (Q_enter_file_symbos): Indirect symbols now are known by
10109 their section, not a special symbol flag.
10110 * ldsym.c (write_file_locals): Indirect symbols aren't local.
10111 (write_file_globals): Write the mapping for an indirect symbol.
10112 * relax.c (build_it): When forced to write a NEVER_LOAD section,
10113 fill it with zeros.
10114
10115 Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
10116
10117 * ld.texinfo: changes for q1
10118
10119 Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10120
10121 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
10122
10123 Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10124
10125 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
10126
10127 Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
10128
10129 * mips.sc-sh: Added variables which may be overridden by a
10130 specific emulation.
10131 * mipsidt.sh: New file; emulation for IDT MIPS board.
10132 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
10133 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
10134 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
10135 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
10136
10137 Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
10138
10139 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
10140 ralphc@pyramid.com.
10141 * i386bsd.sh, config/i386bsd.mt: New files.
10142 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
10143
10144 Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
10145
10146 * mri.c: Add extern declaration of strdup.
10147 * ldsym.c (KEEP macro): Add spaces around '=' for the
10148 sake of old (e.g. PCC) compilers.
10149
10150 Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
10151
10152 * ldver.c: Bump to version 2.1.
10153
10154 Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
10155
10156 * ldgram.y: allow section types without address expressions.
10157 * ldlang.c (lang_relocate_globals): avoid possible hang with
10158 undefined but unreferenced symbols.
10159 * relax.c (relax_section): don't complain if the script file isn't
10160 relaxable but -relax is set
10161
10162 Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10163
10164 * configure.in: go32 is the 3rd part of the triple, not the 2nd
10165
10166 Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
10167
10168 * mipsbig.sh: New file. Big endian MIPS emulation.
10169 * config/mips-big.mt: New file. Use mipsbig emulation.
10170 * configure.in (mips-sgi-irix*): Use target mips-big.
10171 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
10172 (em_mipsbig.c): New target. Uses mipsbig.sh.
10173
10174 Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
10175
10176 * mips.sc-sh: Put .scommon sections into .sbss section.
10177
10178 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
10179 rather than always putting them in bfd_com_section.
10180 * ldlang.c (lang_common): If a common symbol is not in
10181 bfd_com_section, put in a section of the same name, rather than
10182 always putting it in section COMMON.
10183
10184 Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
10185
10186 * ldmain.c (subfile_wanted_p): If we already have a common
10187 definition of a symbol, don't necessarily pull in an object file
10188 that provides a non-common definition.
10189
10190 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
10191 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
10192 linker.
10193 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
10194 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
10195
10196 Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
10197
10198 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
10199 the link to it.
10200
10201 Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
10202
10203 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
10204 checking for equality to bfd_com_section.
10205
10206 Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
10207
10208 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
10209 targets, linker script.
10210 * mipslit.sh: New file. Little endian MIPS emulation.
10211 * config/mips-lit.mt: New file. Use mipslit emulation.
10212 * configure.in (mips-dec-ultrix*): Use target mips-lit.
10213 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
10214 (em_mipslit.c): New target. Uses mipslit.sh.
10215
10216 Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
10217
10218 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
10219 $(tooldir)/bin/gld, so that gcc can find it with or without
10220 collect2.
10221
10222 Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10223
10224 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
10225 write_norel. All linking is now done via write_relax. Call
10226 ldsym_write before calling write_relax.
10227 * relax.c: Added copyright.
10228 (write_relax): Renamed from write_relaxnorel. Added relocateable
10229 argument. seclet_dump renamed to bfd_seclet_link.
10230 * relax.h: Added copyright.
10231
10232 Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
10233
10234 * ldmain.c (decode_library_subfile): Patch from
10235 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
10236
10237 Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10238
10239 * config/vxworks960.mt renamed to config/i960.mt
10240
10241 * configure.in: sparc-aout emulates a sun4, as does
10242 sparc*-vxworks, i960-nindy uses gld960 emulation
10243
10244 Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
10245
10246 Fix support for NOLOAD, add INCLUDE
10247 * ldfile.c (ldfile_open_command_file): pass file name to
10248 lex_push_file.
10249 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
10250 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
10251 attribute.
10252
10253 Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10254
10255 * Makefile.in, config.h: no more default emulation. Make the lack
10256 of emulation a compile time error
10257
10258 Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10259
10260 * configure.in: recognise all sparclite variants, not just 'sparclite'
10261
10262 Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
10263
10264 * m68kcoff.sc-sh: define _end as well as end, for consistency with
10265 aout.sc-sh.
10266
10267 * configure.in: accept *-ericsson-ose for any m68k CPU.
10268
10269 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
10270 for each output section.
10271
10272 Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
10273
10274 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
10275 macro bfd_asymbol_bfd as appropriate.
10276 * Makefile.in: Un-duplicate ldlex.c dependency.
10277 * condigure.in: Replace my_host case table by sourcing
10278 ../bfd/configure.host. Allow std-host as the default.
10279 * ldmisc.c: Change logic for C++ name demangling: There is
10280 no initial '_' to remove from stab-derived function names.
10281
10282 Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10283
10284 * ldlang.c (lang_init_script_file): don't attach the output file
10285 sections to the script file.
10286
10287 Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10288 * ldlang.c (wild): run expansion loop over command line bfd too.
10289 (lang_ini_script_file): initialize more parts of the command line
10290 bfd.
10291 * ldlex.l: fix DEFINED start states.
10292
10293 Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10294 -y support
10295 * ld.texinfo: new doc.
10296 * ldgram.y, ldlex.l: understand -y<symbol>
10297 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
10298 print info. (add_ysym): new function.
10299 * ldsym.h: (ldsym_type): new define SYM_Y.
10300
10301 Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
10302
10303 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
10304 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
10305 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
10306 macros with PARAMS. Recreational cleanup. Update copyrights.
10307
10308 Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10309
10310 * Makefile.in: pass down the bfd source directory for includes
10311
10312 Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
10313
10314 * ldlang.c (lang_size_sections): don't change size and address for
10315 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
10316 sections.
10317
10318 Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10319
10320 * relax.c (build_it): re-enable the processing of data_statements
10321 in scripts, makes counted contructor lists work again.
10322
10323 Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
10324
10325 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
10326
10327 Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
10328
10329 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
10330 and end.
10331
10332 Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
10333
10334 * Support for i386-sysv.
10335 configure.in: check for i386-*-sysv* and i386-*-sco*.
10336 i386coff.sc-sh: rewrote to support SVR3 by default.
10337 ldctor.c (find_constructors): preserve stat_ptr.
10338 ldlang.c (wild_doit): initialize vma and size of new output
10339 section to corresponding input section. This is required for
10340 shared library support.
10341 (lang_size_sections): don't modify vma and size of sections which
10342 are never loaded (for shared libraries).
10343 ldwrite.c (copy_and_relocate): copy the contents of any section
10344 which has contents, not just sections which are loaded (for shared
10345 libraries).
10346
10347 Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10348
10349 * ldlang.c (size_input_section): count the sizes of all sections
10350 we allocate.
10351
10352 Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10353
10354 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
10355 to demangle symbols better
10356
10357 Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
10358
10359 * ldlang.c (lang_finish): don't warn if -e start symbol does not
10360 exist when linking with -r.
10361
10362 Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
10363
10364 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
10365 .bss segment.
10366
10367 Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10368
10369 * ldmain.c (linear_library): don't even think about processing
10370 an object file if it's already been done
10371
10372 Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10373
10374 * configure.in: the hp9000/300 config file is now hp300
10375
10376 Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10377
10378 * config/z8ksim.mt: new file
10379
10380 Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
10381
10382 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
10383 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
10384
10385 * ld.h (strip_symbols_type): Add value STRIP_SOME.
10386 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
10387 * ldlang.c (lang_add_keepsyms_file): New function.
10388 * ldlex.l: Handle "-retain-symbols-file".
10389 * ldsym.c (keepsyms_file, kept_syms): New vars.
10390 (process_keepsyms): New functihon; reads file, marks symbols for
10391 saving.
10392 (write_file_locals): File symbols should always be kept.
10393 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
10394 and "-s". Process retain-symbols file before setting symtab.
10395 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
10396 (keepsyms_file, kept_syms): Declare them.
10397
10398 * ldmain.c (main): Non-fatal errors should still cause non-zero
10399 exit status even with -r.
10400
10401 Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10402
10403 Added initial support for the z8k
10404 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
10405 * configure.in, Makefile.in: modified to reflect above
10406
10407 * ldlang.c (lang_check): when linking conflicting architectures,
10408 make the output file reflect at least one of the bad inputs.
10409
10410 Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
10411
10412 * Makefile.in (install): if $(tooldir) exists, install ld in
10413 $(tooldir)/bin.
10414
10415 Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10416
10417 * Makefile.in, configure.in: modified to support i386-coff
10418 * i386coff.sh: new file
10419
10420 Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
10421
10422 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
10423 added m68k-coff emulation mode, stolen from a29k emulation.
10424 Almost certainly wrong, but perhaps better than sun3.
10425
10426 Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
10427
10428 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
10429 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
10430 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
10431 This is one character shorter, and lets people build on
10432 SVR3 system. (ld__h8300xray.[co] was the killer there;
10433 h8300xray.sc-sh is also overlong, but seems harmless.)
10434 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
10435 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
10436 * configure.in: Add host isc.
10437
10438 * ldver.c: Call it version 2.0.
10439
10440 Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
10441
10442 * ldver.c: Bump to version 0.98.
10443 * TODO: New file.
10444
10445 * Makefile.in: Added mostlyclean, distclean, realclean rules.
10446
10447 Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
10448
10449 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
10450 * ldlex.l: Moved comment() to end, since some compilers
10451 otherwise have problems with input() used before it is defined.
10452
10453 Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10454
10455 * configure.in: added Solaris 2 and Irix 4 host support.
10456
10457 Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10458
10459 * Makefile.in: remove -S flag from the FLEX definition
10460
10461 * configure.in: rewrote, using new style case statement. use
10462 m68k.mt for m68k-aout systems
10463
10464 Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
10465
10466 * Makefile.in: map "ld" through program_transform_name when
10467 installing.
10468
10469 Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
10470
10471 * cplus-dem.c: Removed. Use the version in libiberty now.
10472 * ldmisc.c: Use new libiberty version of cplus_demangle().
10473
10474 Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
10475
10476 * gld960.em (gld960_choose_target): default to little endian, not
10477 big endian.
10478
10479 Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10480
10481 * ldlang.c (lang_process): don't pass null pointers when
10482 abs_output_section is what is required.
10483 * ldwrite.c (ldwrite): use malloc to allocate the largest space
10484 used, and pass that down.
10485 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
10486 than alloca.
10487
10488 Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
10489
10490 * configure.in, config/ose68.mt: renamed OSE to ose.
10491
10492 Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
10493
10494 * ldsym.c (write_file_locals): Reorder check for common or
10495 undefined symbols so that it works.
10496
10497 Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
10498
10499 * configure.in: accept all m68K family members.
10500
10501 * Makefile.in: always create installation directories.
10502
10503 Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10504
10505 * ldlex.l: now parses comment correctly, added ~ to acceptable
10506 chars in filenames
10507
10508 * ldexp.c (exp_unop): pass down abs_output_section - now can have
10509 unary -ve constants.
10510
10511 * ldlang.c (lang_finish): warn when an entry symbol supplied on
10512 the command line can't be found.
10513
10514 Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10515
10516 * ldlang.h: add new field "loadable" to output_section_statement.
10517 * ldlang.c (lang_output_section_statement_lookup): initilize new
10518 field. (wild_doit): if new field is not set, then stop output
10519 section from being loadable.
10520 (lang_enter_output_section_statement): set the field from the
10521 NOLOAD keyword
10522 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
10523 * h8300hms.sc-sh, h8300hms.em: get -r right.
10524
10525 Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
10526
10527 * ldint.texinfo: New internals manual (beginnings thereof).
10528 * PORTING: Removed, merged into ldint.texinfo.
10529
10530 Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
10531
10532 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
10533 cdtest.exp: A test program (copied from libg++/test-install)
10534 that tests that constructor and destructors are handled
10535 corrrectly.
10536
10537 Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10538
10539 * Makefile.in (install): install from ld.new, renaming during the
10540 copy, or else the next 'make install' needs to re-link ld.
10541
10542 Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
10543
10544 * configure.in: generalise hp recognition (from sef).
10545
10546 Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10547
10548 * configure.in: recognize bsd and hpux hppa configurations.
10549 error messages echo to stderr, not stdout
10550
10551 Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10552
10553 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
10554 ldmisc.c: removed rcsid's.
10555
10556 Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10557
10558 * ldlang.c (lang_map): print changes in sizes due to relaxing
10559 (size_input_section): maintain the delta information.
10560 * ldlang.h: add new field to struct to contain delta info.
10561 * relax.c (relax_section): complain if input not relaxable.
10562 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
10563 start of a filename
10564
10565 Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10566
10567 * ldmain.c(main): prevent -r and -relax from being on at the same
10568 time.
10569
10570 Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10571
10572 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
10573 aliasing problems
10574
10575
10576 Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10577
10578 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
10579 * ldexp.c: lint
10580 * ldlang.c(open_output): set the target arch and machine as soon
10581 as we can. (lang_size_sections): use new macros for setting vma
10582 * ldwrite.c: lint
10583
10584 Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
10585
10586 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
10587 Also deleted an unreachable path to wrs.
10588
10589 Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
10590
10591 * Makefile.in (install): use -d test for $tooldir before
10592 installing ld there so that $tooldir can be inherited from
10593 top-level Makefile.
10594
10595 Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
10596
10597 * ldlang.c: Two non-substantial changes for the sake of
10598 the old Portable C Compiler.
10599
10600 Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10601
10602 * ldgram.y, ldlex.l: parse ABSOLUTE
10603 * ldexp.c: add support for ABSOLUTE
10604
10605 Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
10606
10607 * Makefile.in: Added default definitions for HOSTING_CRT0,
10608 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
10609 * config/*.mh: Miscellaneous clean-up: Removed definitions
10610 of YACC (since it is not longer used in the Makefile).
10611 Remove HOSTING_* definitions that are subsumed by the
10612 ones added to Makefile.in. Removed most definitions of CC.
10613 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
10614 These are no longer needed.
10615
10616 Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
10617
10618 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
10619 rules, since these are used when building a distribution.
10620 * Makefile.in (ldlex.c): Don't re-direct output, since that
10621 leaves a bogus output files if it fails.
10622
10623 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
10624 * ldlex.c: Fix some unnecessary flex-specific-isms.
10625
10626 Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10627
10628 * ldgram.y: move spurious semicolon
10629 * ldexp.h: fix prototype
10630
10631 Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
10632
10633 * ld.texinfo: references to linker now say "ld" not "gld".
10634
10635 Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10636
10637 changed calling convention for Q_enter_global_ref
10638 * ldexp.c, ldlang.c, ldmain.c: reflect this
10639 * ldver.c: bump version to 1.97.1
10640 * ldindr.c (add_indirect): when an edict declaring an indirect
10641 symbol is found, make sure that any ideas about the symbol being
10642 common are changed if it now known to be defined.
10643 * ldmain.c (linear_library): complain once if archive isn't
10644 ranlibbed.
10645 * ldlang.h, ldlang.c: make room for and initialize the complain
10646 once field.
10647
10648 Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10649
10650 * Makefile.in: use flex & bison from ../ if they exist.
10651
10652 Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10653
10654 * relax.c (build_it): don't allocate space in the output file for
10655 stuff if -R flag applys to it.
10656 * ldfile.c: merge in VMS filename support
10657 * ldmain.c (main): take out ./ from library path, and close file
10658 before unlinking. Make multiple defs of a symbol create an
10659 unexecable file.
10660 * ldmisc.c: fatal errosrs delete output file
10661
10662 Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
10663
10664 * ldver.c: Increase version number to 1.97, for consistency
10665 with ../binutils.
10666
10667 Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
10668
10669 * Makefile.in: FLEX -> LEX.
10670
10671 * ld.texinfo: {} -> @{@}.
10672
10673 Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
10674
10675 * ld.texinfo: describe alternate, MRI-compatible linker scripts
10676 (and associated change in -c option, now used for these scripts)
10677
10678 Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10679
10680 * ldver.c: Bumped version to 1.96 - new release, resync with the
10681 bfd too #.
10682 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
10683 rather than with raw malloc, makes it easier to track where memory
10684 is going.
10685 * ldsym.h, ldsym.c: create obstack for all global symbols too.
10686 * ldwrite.c (ldwrite): moved malloc so only used when needed.
10687 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
10688
10689
10690 Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
10691
10692 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
10693
10694 * Makefile.in: use bootstrap for check.
10695
10696 Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10697
10698 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
10699 PUBLIC.
10700 * Makefile.in: now use flex, not lex
10701 * ldlex.l, ldlang.c, ldctor.c: lint
10702
10703 Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10704
10705 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
10706 different sorts of filenames on the command line than in a script.
10707
10708 Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10709
10710 * Makefile.in: rework CFLAGS so that they can be passed on the
10711 make command line. Remove MINUS_G. Default CFLAGS to -g.
10712
10713 Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10714
10715 * relax.c: added handling for new "padding" seclet type, used to
10716 fill out gaps between section.
10717 * ldgram.y, ldlex.l: now -defsym on the command line is done
10718 properly.
10719
10720 Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10721
10722 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
10723
10724 Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10725
10726 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
10727 scripts.
10728
10729 Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
10730
10731 * Makefile.in (install): Install second copy in $(tooldir)/bin
10732 without $(program_prefix), since that's what gcc expects.
10733
10734 Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10735
10736 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
10737 * h8300*: fix bit rot and add support for h8300xray target
10738 * go32.sh: target emulation for go32.
10739
10740 Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
10741
10742 * gld960.em, i960.sc-sh. Fix i960 bit rot
10743
10744 Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
10745
10746 * Makefile.in: install man page.
10747
10748 Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10749
10750 * config/mt-<foo> renamed to <foo>.mt
10751 * config/mh-<foo> renamed to <foo>.mt
10752 * configure.in changed to reflect this
10753 * genscripts.sh now make .xbn files rather than .xN files
10754
10755 Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
10756
10757 * ldver.h: fix decl of ldversion.
10758
10759 Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
10760
10761 * Makefile.in: added check target.
10762
10763 Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10764
10765 * ldmain.c (Q_enter_file_symbols): now aliases work again
10766
10767 Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
10768
10769 * Makefile.in: added clean-info target.
10770
10771 Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10772
10773 * ldexp.c (exp_print_tree): don't try and follow null pointers
10774 around.
10775 * ldgram.y: remove 11 shift reduce errors
10776
10777 Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10778
10779 * Makefile.in: added tooldir and program_prefix.
10780
10781 Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
10782
10783 * ldlang.c (size_input_section): don't move absolute sections
10784 around!
10785
10786
10787 Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
10788
10789 * cplus-dem.c: yet another copy of this - maybe it should go into
10790 libiberty ?
10791 * ldgram.y: now -V and -v have different actions
10792 * ldver.c: if -V, prints list of emulations compiled in
10793 * ldmisc.c: support for cplus demangling
10794
10795
10796 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
10797
10798 * Makefile.in, configure.in: removed traces of namesubdir,
10799 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
10800 copyrights to '92, changed some from Cygnus to FSF.
10801
10802 Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
10803
10804 * Makefile.in: Change mkscript rule into one for ./mkscript
10805 (for the sake of makes that don't realize they're the same).
10806 * PORTING: Add more details.
10807 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
10808
10809 Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
10810
10811 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
10812 config/mt-hp300bsd: New port to hp300 running BSD.
10813
10814 Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
10815
10816 Major rewrite of how ld is configured. The major idea
10817 is to use shell scripts to generate everything.
10818 * generic.em replaces ldtemplate.
10819 * Other *.em files replace various *.c files.
10820 A *.em file is a shell script that generates the corresponding
10821 ld__*.c file that implements an emulation. This is usually
10822 a straight 'cat' of a here-document, possibly with substitutions.
10823 * Script files (*.sc) are places by *.sc-sh scripts.
10824 Again, these are simple shell scripts that 'cat'
10825 here-documents, usually with some substitutions.
10826 The output a *.sc-sh is a script file.
10827 * Each emulation is defined by a short shell script with
10828 extension *.sh that specifies the emulation-specific
10829 parameters (such as the name of the *.sh-sc and *.em
10830 files to use).
10831 * genscript.sh is the master shell script used to generate
10832 an emulation. It is passed various argument, including
10833 the name a the emulation-speciic *.sh file that it
10834 "sources" to set variables to emulation-specifc parameters.
10835 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
10836 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
10837 * config/mh-foo: Rename LDEMULATION names as appropriate
10838 (usually 'gldfoo' -> plain 'foo').
10839 * ldwrite.c: Fixed a typo in a comment.
10840 * Makefile.in: Major changes. Removed some the sed
10841 magic to converts scripts, since that is now handled
10842 by genscripts.sh and the *.sc-sh scipt generators.
10843 * config.h: Remove a bunch of macros defining emulations
10844 and targets. This becomes one less file to edit when
10845 adding emulations or targets.
10846 * ldemul.h (struct ld_emulation_xfer_struct): Add
10847 emulation_name and target_name fields.
10848 * ldemul.c, ldemul.h: Define some default functions used
10849 by most emulations (and remove from the *.em scripts).
10850 * ldemul.c (ldemul_choose_target): Search the new
10851 ld_emulations array using a loop (instead of a hardwired
10852 nested if statement).
10853 Define the ld_emulation from the automatically-geenrated
10854 ldemul-list.h. This means you no longer have to edit ldemul.c
10855 to add a new emulation.
10856 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
10857 their expansions, since the former no longer exist.
10858 * PORTING: A very rough first draft of a porting guide.
10859
10860 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
10861 to be terminated by a new-line (instead of requiring a semicolon).
10862
10863 Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10864
10865 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
10866 tests for NULL pointers all over the place.
10867 * ldlang.c (lang_process): remember to relocate global symbols
10868 *after* relaxing has done it stuff.
10869
10870 Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10871
10872 * config/mt-coff-h8300: use EMUL like everything else
10873 * ldlang.c: (print_padding_statement): print the right address.
10874 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
10875
10876
10877 Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10878
10879 * ldlex.l: Put pack -noinhibit-exec and -sort-common
10880 * ldlang.c (print_data_statement): print the right address.
10881
10882 Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
10883
10884 * Makefile.in: The rule for testing ld by re-linking itself
10885 via an intermediate -r link was moved to the ld1 rule
10886 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
10887 which allows the bootstrap rule to work.
10888 * ldctor.c (find_constructors): Don't create a constructor
10889 list if it is already defined (as would happen if ld is
10890 invoked by collect).
10891
10892 Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10893
10894 * config/mh-sparc.h: now uses libgcc.a
10895 * ldmain.c: quit using exit
10896 * *sc: use *(COMMON) rather than [COMMON]
10897 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
10898 to allow preprocessing of .l file.
10899 * Makefile.in: New ldlex.l mangling
10900 * ldexp.c (fold_binary): perform expressions with % and / in
10901 integer.
10902 * ldfile.c (open_a): open archives on VMS in a special way
10903
10904
10905 Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10906
10907 * ldgram.y: map -M behave in the same way as -Map (sets file name
10908 to be "-".
10909 * ldsym.c, ldlang.c: remember that size of a section is dependent on
10910 whether or not relaxing has been done.
10911 * ldmain.c: don't open a map file if it doesn't have a name
10912 * relax.c: all the brains have moved into bfd.
10913 * ldwrite.c: ammend comment
10914
10915 Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10916
10917 * Makefile.in: added relax, also made three stage go through a
10918 partial link stage.
10919 * relax.c : added
10920 * config.h: if GNU960 defined, then default emulation mode is
10921 GLD960
10922 * ldexp.h, ldexp.c: map to file hooks
10923 * ldlang.c: map to file hooks
10924 * ldgram.y: added -Map -relax
10925 * ldlex.l: added -relax, -Map
10926 * ldmain.c: open map file
10927 * ldmisc.c: support for map file
10928 * ldwrite.c: new relax magic
10929
10930 Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
10931
10932 * Makefile.in, config/tm-*.h: Clean up make output, only
10933 pass DEFAULT_EMULATION to ldmain.c.
10934
10935 Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
10936
10937 * ldver.c: Bump to version 1.94.
10938
10939 Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10940
10941 * Makefile.in: infodir belongs in datadir.
10942
10943 Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
10944
10945 * Makefile.in: Pass -y to bison. (Again;
10946 accidentally deleted by Rich.)
10947 * news.sc, ldgld68k.sc: Define __end as well as _end.
10948
10949 Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
10950
10951 * ldindr.h: added to contain prototypes of ldindr.c
10952 * ldfile.c: include ctype.h
10953 * ldmain.c: include the requried prototype headers
10954 * ldwrite.c: get_reloc_upper_bound has been renamed
10955 bfd_get_reloc_upper_bound
10956
10957 Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10958
10959 * Makefile.in: punt "fundamental" mode because it breaks my emacs
10960 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
10961 spaces following hyphens, bsd make can't cope. added
10962 standards.text support and made it look like all the other
10963 makefiles.
10964
10965 * configure.in: configure now runs entirely in objdir so make file
10966 existence checks against ${srcdir}. Mark this directory as
10967 target dependent.
10968
10969 Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10970
10971 * Makefile.in: idestdir and ddestdir go away. Added copyrights
10972 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
10973 and mandir now keyed off datadir by default.
10974
10975 Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
10976
10977 * ldver.c: Bumped version to 1.93.
10978 * Makefile.in: Pass -y to bison.
10979
10980 Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
10981
10982 * config.h: h8 is now coff, not ieee
10983 * h8300hds.sc: reflect the same
10984
10985 Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
10986
10987 * ldver.c (ldversion()): Update to 1.92.
10988 * ldctor.c: There are two places constructor sets
10989 can be defined. One of them checked for an existing
10990 duplicate, the other didn't. Unfortunately, the latter
10991 was called after the former ...
10992 So, factor out code for inserting a new element into
10993 constructor_name_list (after checking for a duplicate)
10994 into a new function add_constructor_name, and call
10995 it from both aforementioned places (ldlang_add_constructor
10996 and ldlang_check_for_constructors).
10997
10998 Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
10999
11000 * Makefile.in: Rename .c files generated from ldtemplate
11001 to have names starting with ld__. This helps 'make clean'.
11002
11003 Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
11004
11005 * Makefile.in: Take out the version number for install
11006 * m88kbcs.sc: put in contructor blocks.
11007
11008 Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
11009
11010 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
11011 parameter, a format, and an arg pointer, and rename it to
11012 vfinfo(). Write info() in terms of new vfinfo().
11013 New einfo() is the same as info(), except it writes to stderr.
11014 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
11015 ldmisc.c: Replace "error" calls to info() by new einfo().
11016
11017 Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
11018
11019 * ldlex.l ldgram.y: made -V option do same as -v
11020 * Makefile.in: Added $(MINUS_G) flag so debugging can be
11021 turned off
11022
11023 Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
11024 i386 aout changes from Bob Kukura
11025 * Makefile.in, config.h: added i386aout support
11026 * configure.in: fixed /h-{myhost} typo
11027 * ldgram.y: -MM now gives more boring map.
11028 * ldlang.c: now does D_PAGED flag the right way.
11029 * ldsym.c: -MM flags does the right thing.
11030
11031 Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
11032
11033 * configure.in: Fixed typo. Also, a fix for hp300bsd.
11034 * ldlang.c (init_os): Compensate for BFD change,
11035 where bfd_make_section now returns NULL for a duplicate
11036 section request, instead of the old section.
11037
11038 Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
11039
11040 * ldver.c: Bump to version 1.91 (consistent with binutils).
11041
11042 Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
11043
11044 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
11045 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
11046 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
11047 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
11048 Add or update copyright notices.
11049
11050 Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
11051
11052 * README: New file.
11053 * Makefile.in: Changed installation directory name scheme
11054 to be consistent with gcc. Also changed 'install'.
11055
11056 Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
11057
11058 * Makefile.in: new targets ld.mm, ld.me
11059
11060 Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
11061
11062 * Makefile.in, ldtemplate: Need to use separate scripts
11063 for -n and -N options. Yet more complication.
11064
11065 Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
11066
11067 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
11068 work). Add some lines to avoid Sun Make VPATH bugs.
11069
11070 Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
11071
11072 * news.sc: Add alignment for data segment.
11073 * ldtemplate: Add (yet another) script to get for -n or -N
11074 options. (These need different alignment than ZMAGIC files.)
11075 * Makefile.in: Add stuff for new foo.xn scripts.
11076 These are generated by replacing "ALIGN(0x...00)" by ".".
11077
11078 Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
11079
11080 * Makefile.in: new targets ld.ms, ld-index.ms
11081 ld.texinfo: remove tabs, other cleanups for texi2roff
11082
11083 Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
11084
11085 * ldmain.c (main): Make config.magic_demand_paged be true
11086 by default. Don't set the WP_TEXT and D_PAGED flags of
11087 output_bfd here; it's too late, so set it when output_bfd
11088 is created (in ldlang.c). Also fix setting of EXEC_P flag
11089 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
11090 * ldlang.c: Remove some duplicate extern declarations.
11091 * ldgram.y: Fixes to -N and -n options.
11092 * Makefile.in: Recognize upper case letters in sed script
11093 to remove assignments from script files.
11094 * ldtemplate: Don't assukme that -N or -n options
11095 imply use of -r script.
11096 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
11097
11098 Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
11099
11100 * ldtemplate: include bfd.h before sysdep.h.
11101
11102 Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
11103
11104 Restructure configuration scheme for bfd, binutils, ld.
11105
11106 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
11107 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
11108 Change some config names to match other dirs.
11109 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
11110 get defined first.
11111 * config/: Rename some config files to match up h-*.h names.
11112 Remove all the HOST_SYS definitions from the config files.
11113
11114 Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
11115
11116 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
11117 * ldtemplate: Remove ldfile_add_library_path calls;
11118 just use the SEARCH_DIR commands in the script files.
11119 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
11120 the SEARCH_DIR commands in the scripts (using ugly sed magic).
11121 This is primarily intended for cross-linking, where you would
11122 place libaries in a different place than native libraries.
11123 Also, emulations made from ldtemplate now use $(srcdir).
11124 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
11125 form; people can use the Makefile's LIB_PATH to override.
11126
11127 Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
11128
11129 * Makefile.in: fix target ld.dvi, add target ld.info
11130 ld.texinfo: make info filename ld.info
11131
11132 Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
11133
11134 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
11135 Make).
11136 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
11137 few BFD types & enums.
11138
11139 \f
11140 Local Variables:
11141 mode: change-log
11142 left-margin: 8
11143 fill-column: 74
11144 version-control: never
11145 End: