]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/ChangeLog
* emulparams/d10velf.sh (TEMPLATE_NAME): Use elf32.
[thirdparty/binutils-gdb.git] / ld / ChangeLog
1 Thu Sep 3 17:30:58 1998 Richard Henderson <rth@cygnus.com>
2
3 * emulparams/d10velf.sh (TEMPLATE_NAME): Use elf32.
4
5 Mon Aug 31 01:06:00 1998 Catherine Moore <clm@cygnus.com>
6
7 * Makefile.am: Change armelf.sc to elf.sc
8 * Makefile.in: Regenerate.
9
10 Mon Aug 32 11:12:04 1998 Catherine Moore <clm@cygnus.com>
11
12 * emulparams/armelf.sh: Change SCRIPT_NAME to
13 elf. Change TEXT_START_ADDR to 0x8000. Define
14 OTHER_TEXT_SECTIONS, OTHER_BSS_SYMBOLS and
15 OTHER_BSS_END_SYMBOLS.
16 * scripttempl/elf.sc: Modify to use
17 OTHER_BSS_END_SYMBOLS.
18 * scripttempl/elfarm.sc: Remove file.
19
20 .Santizie ChangeLog Makefile.am Makefile.in configure.tgt
21 Tue Aug 18 12:05:34 1998 Catherine Moore <clm@cygnus.com>
22
23 * emultempl/armelf.em (gld_armelf_before_allocation):
24 Add bfd_ prefix to elf32_arm_process_before_allocation
25 and elf32_arm_allocate_interworking_sections.
26 (gld_armelf_after_open): Add bfd_ prefix to
27 elf32_arm_get_bfd_for_interworking.
28
29 Fri Aug 14 15:34:29 1998 Ian Lance Taylor <ian@cygnus.com>
30
31 * Makefile.am: Rebuild dependencies.
32 * Makefile.in: Rebuild.
33
34 * ldgram.y: Include "ldctor.h".
35 (statement): Accept SORT around CONSTRUCTORS.
36 * ldctor.c: Include <ctype.h>.
37 (constructors_sorted): New global variable.
38 (ctor_prio, ctor_cmp): New static functions.
39 (ldctor_build_sets): Sort constructors if requested.
40 * ldctor.h (constructors_sorted): Declare.
41 * ldlang.c (print_statement): Print sorted CONSTRUCTORS
42 correctly.
43 * scripttempl/elf.sc: Add sort around CONSTRUCTORS.
44 * ld.texinfo (Output Section Keywords): Document SORT
45 (CONSTRUCTORS).
46
47 Thu Aug 13 12:20:39 1998 Catherine Moore <clm@cygnus.com>
48
49 * emulparams/armelf.sh: Define TEMPLATE_NAME to armelf.
50 * scripttempl/elfarm.sc: Include .glue_7t and .glue7
51 sections.
52 * emultempl/armelf.em: New file.
53
54 Thu Aug 13 12:52:45 1998 H.J. Lu <hjl@gnu.org>
55
56 * Makefile.am (ld.dvi): Use " instead of ' for MAKEINFO.
57 * Makefile.in: Rebuild.
58
59 start-sanitize-sky
60 Wed Aug 12 16:30:29 1998 Doug Evans <devans@canuck.cygnus.com>
61
62 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set vma to 0
63 for .DVP.overlay.* for elf32elmip too.
64
65 end-sanitize-sky
66 Tue Aug 11 16:17:01 1998 Catherine Moore <clm@cygnus.com>
67
68 * scripttempl/elfarm.sc: Change text start address
69 back to zero.
70
71 Tue Aug 11 10:01:12 1998 Jeffrey A Law (law@cygnus.com)
72
73 * emulparms/mn10200.sh (MAX_PAGESIZE): Define to 1.
74 * emulparms/mn10300.sh (MAX_PAGESIZE): Define to 1.
75
76 Sun Aug 9 20:31:27 1998 Catherine Moore <clm@cygnus.com>
77
78 * scripttempl/elfarm.sc: Set text start address to
79 0x8000. Add __bss_end definition.
80
81 Sat Aug 1 11:47:37 1998 Catherine Moore <clm@cygnus.com>
82
83 * scripttempl/elfarm.sc: New file.
84 * emulparams/armelf.sh: Set SCRIPT_NAME to elfarm.
85
86 Fri Jul 31 15:56:16 1998 Catherine Moore <clm@cygnus.com>
87
88 * emulparams/armelf.sh: New file.
89 * configure.tgt: Recognize thumb-elf and arm-elf.
90 * Makefile.am (earmelf.o): New.
91 * Makefile.in: Rebuild.
92
93 Fri Jul 24 12:00:57 1998 Ian Lance Taylor <ian@cygnus.com>
94
95 * Makefile.am (install-exec-local): Don't remove the file before
96 checking whether $(bindir) == $(tooldir)/bin. From Maciej
97 W. Rozycki <macro@ds2.pg.gda.pl>.
98 * Makefile.in: Rebuild.
99
100 * configure.tgt: Recognize h8[35]00*-coff* as well as -hms*.
101
102 Thu Jul 23 11:15:12 1998 Ian Lance Taylor <ian@cygnus.com>
103
104 * scripttempl/aout.sc: If ALIGNMENT is defined, use it to set
105 alignment of end symbol.
106 * scripttempl/elf.sc: Likewise.
107 * emulparams/sun4.sh (ALIGNMENT): Define.
108 * emulparams/elf32_sparc.sh (ALIGNMENT): Define.
109 * ldint.texinfo (emulation parameters): Document ALIGNMENT.
110
111 * lexsup.c (parse_args): Add missing break statement.
112
113 * ldlang.c (lang_gc_sections_1): Add default case to switch to
114 avoid warnings.
115
116 start-sanitize-beos
117 Tue Jul 14 15:42:17 1998 Richard Henderson <rth@cygnus.com>
118
119 * configure.tgt (i?86-*-beos{pe,elf,}*): Recognize.
120 * Makefile.am (ei386beos.o): New.
121 * emulparams/i386beos.sh: New file.
122 * emultempl/beos.em, scripttempl/i386beos.sc: New file.
123
124 end-sanitize-beos
125 Tue Jul 14 15:35:42 1998 Richard Henderson <rth@cygnus.com>
126
127 * lexsup.c: New option --version-exports-section.
128 * ld.h (struct args_type): Add version_exports_section.
129 * ldlang.c (lang_do_version_exports_section): New function.
130 (lang_process): Call it.
131
132 Mon Jul 13 13:20:23 1998 Steve Chamberlain <sac@transmeta.com>
133
134 * ldlex.l: Accept ASSERT.
135 * ldgram.y (exp): Add ASSERT_K case.
136 * ldexp.h (node_type): Add etree_assert to node_class enum.
137 (etree_type): Add assert_s field.
138 (exp_assert): Declare.
139 * ldexp.c (exp_fold_tree): Handle etree_assert.
140 (exp_assert): New function.
141 (exp_print_tree): Handle etree_assert.
142 * ld.texinfo (Miscellaneous Commands): Document ASSERT.
143
144 Wed Jul 8 14:03:12 1998 Ian Lance Taylor <ian@cygnus.com>
145
146 * ldgram.y: Change MAX to MAX_K and MIN to MIN_K, to avoid
147 conflicts with system header files. Change all uses.
148
149 * Makefile.am (MAINTAINERCLEANFILES): Define.
150 * Makefile.in: Rebuild.
151
152 Tue Jul 7 18:03:22 1998 Ian Lance Taylor <ian@cygnus.com>
153
154 * Makefile.am (ldver.texi): New target.
155 (ld.info, ld.dvi): Depend upon ldver.texi.
156 * ld.texinfo: Include ldver.texi. Mention version number on title
157 page and in top node.
158 * Makefile.in: Rebuild.
159
160 Mon Jul 6 14:55:13 1998 Ian Lance Taylor <ian@cygnus.com>
161
162 * configure.tgt (i[3456]86-*-solaris*): New target.
163
164 Fri Jul 3 14:19:06 1998 Ian Lance Taylor <ian@cygnus.com>
165
166 * ldlang.c (wild_section): Don't get an assertion failure if the
167 section is discarded.
168
169 * scripttempl/pe.sc: Use SORT to sort sections appropriately.
170 * emultempl/pe.em (sort_by_file_name): Remove.
171 (sort_by_section_name): Remove.
172 (sort_sections_1, sort_sections): Remove.
173 (gld_${EMULATION_NAME}_before_allocation): Don't call
174 sort_sections.
175 (hold_section, hold_section_name): New static variables.
176 (hold_use, hold_text, hold_rdata, hold_data, hold_bss): Likewise.
177 (gld_${EMULATION_NAME}_place_orphan): Rewrite. Look for a good
178 place to put the section. Align the section. Sort the input
179 sections by name.
180 (gld_${EMULATION_NAME}_place_section): New static function.
181
182 * ldlang.c (wild_sort): When sorting by file name, sort by archive
183 name first.
184
185 * emultempl/pe.em (set_pe_subsystem): Don't call
186 ldlang_add_undef.
187 (gld_${EMULATION_NAME}_after_parse): New static function.
188 (ld_${EMULATION_NAME}_emulation): Use new after_parse function
189 rather than after_parse_default.
190
191 * ldgram.y (extern_name_list): Do not require symbols to be
192 separated by commas.
193 (ifile_p1): Add EXTERN.
194 * ldlex.l: Accept EXTERN in BOTH and SCRIPT mode as well as MRI
195 mode.
196 * ld.texinfo (Options): Mention that EXTERN is equivalent to -u.
197 (Miscellaneous Commands): Document EXTERN.
198
199 Wed Jul 1 19:40:34 1998 Richard Henderson <rth@cygnus.com>
200
201 * ld.h (args_type): Add gc_sections.
202 * ldgram.y (ldgram_had_keep, KEEP): New.
203 (input_section_spec_no_keep): Rename from old input_section_spec.
204 (input_section_spec): New. Recognize KEEP.
205 * ldlang.c (wild_section): Handle keep sections.
206 (lang_gc_wild_section, lang_gc_wild_file, lang_gc_wild): New.
207 (lang_gc_sections_1, lang_gc_sections): New.
208 (lang_process): Invoke lang_gc_sections.
209 (lang_add_wild): Add keep argument. Update all callers.
210 * ldlang.h (lang_wild_statement_struct): Add keep_sections.
211 * ldlex.l (KEEP): Match it.
212 * ldmain.c (main): Error on -r and --gc-sections.
213 * lexsup.c: Add --gc-sections.
214
215 * scripttempl/elf.sc: Merge .text.* etc sections appropriately.
216 Mark startup sections with KEEP.
217 * scripttempl/elfppc.sc: Likewise.
218
219 * ld.texinfo: Update for --gc-sections and KEEP.
220
221 Wed Jul 1 15:21:20 1998 Ian Lance Taylor <ian@cygnus.com>
222
223 From Peter Jordan <pjordan@chla.usc.edu>:
224 * scripttempl/i386go32.sc: Correct constructor handling for -u.
225
226 Tue Jun 23 15:17:27 1998 Ian Lance Taylor <ian@cygnus.com>
227
228 * Makefile.am (install-data-local): Make ldscripts subdirectory.
229 * Makefile.in: Rebuild.
230
231 Tue Jun 23 15:17:04 1998 Mike Stump <mrs@wrs.com>
232
233 * Makefile.am (install-exec-local): Don't let EXEEXT interfere
234 with the program transform name.
235 * Makefile.in: Rebuild.
236
237 Sun Jun 21 23:55:16 1998 Jeffrey A Law (law@cygnus.com)
238
239 * ld.texinfo: Note that -relax may make symbolic debugging
240 impossible on some platforms.
241
242 Tue Jun 16 12:51:13 1998 Geoff Keating <geoffk@ozemail.com.au>
243
244 * Makefile.am (Makefile): Remove target.
245 (config.status): New target.
246 * Makefile.in: Rebuild.
247
248 * configure.host (powerpc*-*-linux-gnu*): New host.
249
250 Fri Jun 12 17:38:07 1998 Doug Evans <devans@seba.cygnus.com>
251
252 * scripttempl/elf.sc (INPUT_FILES): Optional INPUT spec.
253
254 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Change top of
255 stack to 8MB.
256
257 Fri Jun 12 19:33:17 1998 Ian Lance Taylor <ian@cygnus.com>
258
259 * Makefile.am (HFILES): Remove config.h.
260 (EMULATION_OFILES, POTFILES): Move patch of May 14 from
261 Makefile.in to Makefile.am.
262 (earmcoff.c): Depend upon armcoff.em, not generic.em.
263 * po/Make-in (all-yes): Correct misspelling in $(PACKAGE).
264 ($(srcdir)/$(PACKAGE).pot): Pass -C to $(XGETTEXT).
265 * Makefile.in, po/POTFILES.in, po/ld.pot: Rebuild.
266
267 Fri Jun 12 13:43:17 1998 Tom Tromey <tromey@cygnus.com>
268
269 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
270 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
271
272 Tue Jun 9 09:36:48 1998 Nick Clifton <nickc@cygnus.com>
273
274 * ldlang.c (lang_finish): Add CONST type modifier to declaration
275 of 'send'.
276
277 start-sanitize-sky
278 Fri Jun 5 15:55:26 1998 Doug Evans <devans@canuck.cygnus.com>
279
280 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set vma to 0
281 for .DVP.overlay.*.
282 * configure.tgt (dvp-*-*): Set targ_emul=elf32l5900.
283
284 end-sanitize-sky
285 Fri Jun 5 18:19:59 1998 Ian Lance Taylor <ian@cygnus.com>
286
287 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
288 config.has_shared to true.
289 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
290 Likewise.
291 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse):
292 Likewise.
293
294 Tue Jun 2 12:55:03 1998 Ian Lance Taylor <ian@cygnus.com>
295
296 * ldlang.c (lang_finish): If the entry symbol is not found, try
297 parsing it as a number.
298 * ld.texinfo (Options): Document this.
299
300 Mon Jun 1 14:01:20 1998 Ian Lance Taylor <ian@cygnus.com>
301
302 * ld.texinfo (Input Section Wildcards): Document SORT keyword.
303
304 Mon May 18 12:42:53 1998 Doug Evans <devans@canuck.cygnus.com>
305
306 * ld.h (ld_config_type): New member has_shared.
307 * ldmain.c (main): Initialize it.
308 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set it.
309 * lexsup.c (parse_args): Treat -shared as error if not supported.
310
311 Mon May 18 13:14:43 1998 Ian Lance Taylor <ian@cygnus.com>
312
313 From Jason Merrill <jason@cygnus.com>:
314 * ldlang.c (wild_sort): Correct order of sort.
315 * scripttempl/elf.sc: Put *crtbegin.o before other .ctors and
316 .dtors.
317 * scripttempl/elfd10v.sc: Likewise.
318 * scripttempl/elfd30v.sc: Likewise.
319 * scripttempl/elfppc.sc: Likewise.
320
321 Fri May 15 00:22:35 1998 Ian Lance Taylor <ian@cygnus.com>
322
323 * ldlex.l: Recognize keyword SORT.
324 * ldgram.y (current_file): Change to struct wildcard_spec.
325 (%union): Add new fields cname and wildcard.
326 (wildcard_name, wildcard_spec): New nonterminals.
327 (file_NAME_list): Use wildcard_spec.
328 (input_section_spec): Change current_file usage.
329 * ld.h (struct wildcard_spec): Define.
330 * ldlang.h (lang_wild_statement_struct): Add new fields
331 sections_sorted and filenames_sorted.
332 (lang_add_wild): Update declaration.
333 * ldlang.c (wild_sort): New static function.
334 (wild_section): Use wild_sort.
335 (print_wild_statement): Print sorting information.
336 (lang_add_wild): Add new parameters sections_sorted and
337 filenames_sorted. Change all callers.
338 * mri.c (mri_draw_tree): Update calls to lang_add_wild.
339 * scripttempl/elf.sc: Sort .ctors.* and .dtors.* by section name.
340 * scripttempl/elfd10v.sc: Likewise.
341 * scripttempl/elfd30v.sc: Likewise.
342 * scripttempl/elfppc.sc: Likewise.
343
344 Thu May 14 18:39:16 1998 Richard Henderson <rth@cygnus.com>
345
346 * emulparams/m32relf.sh (TEMPLATE_NAME): Define.
347
348 Thu May 14 14:51:24 1998 Nick Clifton <nickc@cygnus.com>
349
350 * ldemul.h: Add new prototype: ldemul_list_emulation_options.
351 (ld_emulation_xfer_struct): Add new field: list_options.
352 * ldemul.c (ldemul_list_options): New function. Call the
353 list_options field of the ld_emulation_xfer_struct for each
354 supported emulation, if such a function is present.
355 * lexsup.c (help): Call ldemul_list_emulation_options.
356 * emultempl/pe.em (gld_<>_list_options): New function. Describe
357 the pe emulation specific command line options.
358 * emultempl/armcoff.em (gld<>_list_options): New function.
359 Describe the armcoff emulation specific command line options.
360
361 * emultempl/pe.em: Add a new command line option:
362 --support-old-code.
363 * emultempl/armcoff.em: Ditto.
364 * ld.texinfo: Document the --support-old-code option.
365
366 * Makefile.in: Add emulation files for POTFILES.in target.
367 * emultempl/pe.em: Internationalise suitable strings.
368 * emultempl/armcoff.em: Internationalise suitable strings.
369 * po/POTFILES.in: Rebuilt.
370
371 Sun May 10 22:36:30 1998 Jeffrey A Law (law@cygnus.com)
372
373 * po/Make-in (install-info): New target.
374
375 Tue Apr 28 19:18:30 1998 Tom Tromey <tromey@cygnus.com>
376
377 * ldmain.c (main): Conditionally call setlocale.
378 * ld.h: Include <locale.h> if HAVE_LOCALE_H.
379 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
380
381 Mon Apr 27 11:56:21 1998 Ian Lance Taylor <ian@cygnus.com>
382
383 * configure.in: Change version number to 2.9.4
384 * configure: Rebuild.
385
386 * ld.texinfo (Options) [-rpath-link]: Mention ld.so.conf.
387
388 Based on patch from H.J. Lu <hjl@gnu.org>:
389 * emultempl/elf32.em (global_vercheck_needed): New file static
390 variable.
391 (global_vercheck_failed): New file static variable.
392 (gld${EMULATION_NAME}_after_open): Check for shared libraries
393 twice, once with force set to 0 and once with it set to 1.
394 (gld${EMULATION_NAME}_check_ld_so_conf): Add force parameter.
395 Change all callers.
396 (gld${EMULATION_NAME}_search_needed): Likewise.
397 (gld${EMULATION_NAME}_try_needed): Likewise. If not force, check
398 whether the libraries needs any incompatible versions.
399 (gld${EMULATION_NAME}_vercheck): New static function.
400
401 Wed Apr 22 16:01:35 1998 Tom Tromey <tromey@cygnus.com>
402
403 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
404
405 Wed Apr 22 12:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
406
407 * Makefile.am (check-DEJAGNU): Add $(INTLLIBS) to LIBIBERTY when
408 invoking runtest.
409 * Makefile.in: Rebuild.
410
411 * lexsup.c (parse_args): Change -l options into --library options
412 to avoid confusion between -li and -library.
413
414 * ld.texinfo (MEMORY): Clarify use of >REGION.
415
416 Tue Apr 21 23:12:40 1998 Tom Tromey <tromey@scribbles.cygnus.com>
417
418 * Many files: Added gettext invocations around user-visible
419 strings.
420 * ld.h: Added gettext-related includes and defines.
421 * ldmain.c: Call setlocale, bindtextdomain, textdomain.
422 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
423 HAVE_LC_MESSAGES): Define.
424 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
425 po/Makefile. Use AM_PROG_LEX.
426 (TDIRS): AC_SUBST early on, to avoid having value split when it
427 happens to cross line 90 of the generated sed script.
428 * Makefile.am (SUBDIRS): New macro.
429 (POTFILES): Likewise.
430 (po/POTFILES.in): New target.
431 (ld_new_LDADD): Added INTLLIBS.
432 (ld_new_DEPENDENCIES): Added INTLDEPS.
433 * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
434
435 Tue Apr 21 23:07:07 1998 Ian Lance Taylor <ian@cygnus.com>
436
437 * ld.texinfo (Simple Example): Rewrite a few things as suggested
438 by Nick Clifton <nickc@cygnus.com>.
439 (PROVIDE): Likewise.
440
441 Tue Apr 21 09:55:06 1998 Nick Clifton <nickc@cygnus.com>
442
443 * emultempl/pe.em: Rename external arm interworking functions
444 to conform to BFD naming conventions. Add code to _after_open()
445 function to obtain a bfd for use by the interworking code.
446
447 * emultempl/armcoff.em: Rename external arm interworking functions
448 to conform to BFD naming conventions. Add new _after_open()
449 function to obtain a bfd for use by the interworking code.
450
451 Sun Apr 19 19:23:09 1998 Richard Henderson <rth@cygnus.com>
452
453 * ldlang.c (lang_size_sections) [case lang_assignment_statement_enum]:
454 Update dot and the default memory section even when relaxing.
455
456 Sat Apr 18 18:41:12 1998 Richard Henderson <rth@cygnus.com>
457
458 * ldlang.c (lang_one_common): Manipulate the section's cooked size
459 rather than its raw size.
460
461 Tue Apr 7 13:35:29 1998 H.J. Lu <hjl@gnu.org>
462
463 * configure.in (TESTBFDLIB): New. Defined and substituted.
464 * Makefile.am (TESTBFDLIB): Changed to @TESTBFDLIB@.
465 * configure, Makefile.in: Rebuild.
466
467 Mon Apr 6 15:33:39 1998 Ian Lance Taylor <ian@cygnus.com>
468
469 * Makefile.am (ld.info): Invoke makeinfo with -I options directly
470 rather than relying on default rule. Don't depend upon
471 bfdsumm.texi.
472 (ld.dvi): Likewise.
473 (bfdsumm.texi): Remove target.
474 (CLEANFILES): Take bfdsumm.texi out of value.
475 * Makefile.in: Rebuild.
476
477 Sun Apr 5 13:07:57 1998 Ian Lance Taylor <ian@cygnus.com>
478
479 * scripttempl/pe.sc: Use shell variables to avoid depending upon
480 how $ is handled when expanding a shell substitution.
481
482 Fri Apr 3 00:56:50 1998 Ian Lance Taylor <ian@cygnus.com>
483
484 * Makefile.am (MOSTLYCLEANFILES): Add ld.log and ld.sum.
485 (DISTCLEANFILES): Add site.exp and site.bak.
486 * Makefile.in: Rebuild.
487
488 * configure.in: Put the tdirs in a file and use AC_SUBST_FILE,
489 rather than in a shell variable and using AC_SUBST.
490 * Makefile.am (DISTCLEANFILES): Remove ldscripts. Add tdirs.
491 (distclean-local): New target.
492 * configure, Makefile.in: Rebuild.
493
494 * ld.texinfo: Completely rewrite linker script documentation.
495
496 Mon Mar 30 12:47:33 1998 Ian Lance Taylor <ian@cygnus.com>
497
498 * configure.in: Set version to 2.9.1.
499 * configure: Rebuild.
500
501 * Branched binutils 2.9.
502
503 Sat Mar 28 16:48:19 1998 Ian Lance Taylor <ian@cygnus.com>
504
505 * Makefile.am (MOSTLYCLEANFILES): Remove tmpdir.
506 (mostlyclean-local): New target to remove tmpdir.
507 * Makefile.in: Rebuild.
508
509 Fix some gcc -Wall warnings:
510 * ldcref.c (output_cref): Add casts to avoid warnings.
511 * ldfile.c (ldfile_add_arch): Likewise.
512 * ldlang.c (lang_leave_overlay_section): Likewise.
513 * lexsup.c (OPTION_COUNT): Likewise.
514 (parse_args): Likewise.
515 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan):
516 Likewise.
517 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Likewise.
518 * ldlang.c (lang_check): Initialize variables to avoid warnings.
519 * ldwrite.c (build_link_order): Likewise.
520 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Likewise.
521 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_allocation):
522 Remove unused variables.
523
524 * Makefile.am (MOSTLYCLEANFILES): Correct name (was
525 MOSTCLEANFILES).
526 * Makefile.in: Rebuild.
527
528 Fri Mar 27 16:39:25 1998 Ian Lance Taylor <ian@cygnus.com>
529
530 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Put
531 ARM code inside ifdef TARGET_IS_armpe.
532
533 Wed Mar 25 11:34:13 1998 Ian Lance Taylor <ian@cygnus.com>
534
535 Based on patch from H.J. Lu <hjl@gnu.org>:
536 * Makefile.am (LDDISTSTUFF): New variable.
537 (diststuff): New target.
538 * Makefile.in: Rebuild.
539
540 * scripttempl/pe.sc: Only include .idata\$[0-7] in .idata when
541 relocating.
542
543 Tue Mar 24 15:59:29 1998 Nick Clifton <nickc@cygnus.com>
544
545 * scripttempl/pe.sc (.text): Add .glue_7 and .glue_7t sections to
546 hold Arm/Thumb stubs.
547
548 * emultempl/pe.em (gld_pe_before_allocation): Call
549 arm_process_before_allocation (for ARM/Thumb targets) in order to
550 gather interworking stb information.
551
552 Mon Mar 23 18:54:15 1998 Joel Sherrill <joel@OARcorp.com>
553
554 * configure.tgt: (sh*-*-rtems*): Switched from ELF to COFF.
555
556 Fri Mar 20 19:17:13 1998 Ian Lance Taylor <ian@cygnus.com>
557
558 * aclocal.m4, configure: Rebuild with libtool 1.2.
559
560 Thu Mar 19 14:54:45 1998 Geoffrey Noer <noer@cygnus.com>
561
562 * scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy
563 section to avoid copying certain data on fork. The linker used to
564 include this between __data_start__ and __data_end__, but that
565 breaks building the cygwin32 dll. The fix is to rename the
566 section ".data_cygwin_nocopy" and explictly include it after
567 __data_end__.
568
569 Wed Mar 18 09:42:24 1998 Nick Clifton <nickc@cygnus.com>
570
571 * configure.tgt (targ_extra_emuls): Add thumb-pe target.
572
573 Sun Mar 8 23:34:14 1998 Stan Cox <scox@equinox.cygnus.com>
574
575 * configure.tgt (sparclite*-*-elf): Added.
576
577 start-sanitize-vr4320
578 Tue Mar 3 11:16:35 1998 Gavin Koch <gavin@cygnus.com>
579
580 * configure.tgt (mips*vr4320el-*-elf*,mips*vr4320-*-elf*): Added.
581
582 end-sanitize-vr4320
583 Mon Mar 2 19:24:08 1998 Michael Meissner <meissner@cygnus.com>
584
585 * ldlang.c (lang_size_sections): If the default memory region is
586 *default*, see if there is a memory region that could be used.
587
588 Thu Feb 26 17:09:53 1998 Michael Meissner <meissner@cygnus.com>
589
590 * scripttempl/elfd30v.sc: Add support for .eit_v section and put
591 it at 0xfffff020.
592 * emulparams/d30v{elf,_o,_e}.sh: Ditto.
593
594 Mon Feb 23 17:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
595
596 * emultempl/pe.em (sort_sections): Permit the wildcard to include
597 a trailing '*' when sorting grouped sections.
598 * scripttempl/pe.sc: Include grouped sections using NAME\$*. Only
599 include them when relocating.
600
601 Wed Feb 18 23:39:46 1998 Richard Henderson <rth@cygnus.com>
602
603 * Makefile.am (install-exec-local): Install properly when ln
604 fails or tooldir == prefix.
605
606 Fri Feb 13 15:24:06 1998 Ian Lance Taylor <ian@cygnus.com>
607
608 * Makefile.am (AUTOMAKE_OPTIONS): Define.
609 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
610
611 Thu Feb 12 14:10:44 1998 Ian Lance Taylor <ian@cygnus.com>
612
613 * scripttempl/elf.sc: Align the _end symbol according to the ELF
614 format size. From Gordon W. Ross <gwr@mc.com>.
615
616 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
617 * configure.host (alpha*-*-netbsd*): New host.
618 * configure.tgt (alpha*-*-netbsd*, powerpc-*-netbsd*): New
619 targets.
620
621 * lexsup.c (help): Update bug-gnu-utils address.
622 * ld.texinfo (Bug Reporting): Likewise.
623
624 Tue Feb 10 18:05:56 1998 Ian Lance Taylor <ian@cygnus.com>
625
626 * ldlang.c (lang_size_sections): Warn if some memory regions were
627 defined, but a loadable section is going into the default memory
628 region.
629
630 Tue Feb 10 16:17:20 1998 H.J. Lu <hjl@gnu.org>
631
632 * ldlex.l (V_IDENTIFIER): Allow '.' as symbol prefix.
633
634 Tue Feb 10 15:09:45 1998 Ian Lance Taylor <ian@cygnus.com>
635
636 * Makefile.am (Makefile): Add target, for dependencies on
637 configure.host and configure.tgt.
638 * configure.host, configure.tgt: Change -linux* to -linux-gnu*.
639 * Makefile.in: Rebuild.
640
641 start-sanitize-r5900
642 Tue Feb 10 11:52:33 1998 Jeffrey A Law (law@cygnus.com)
643
644 * Makefile.in (ALL_EMULATIONS): Add eelf32l5900.o
645 (eelf32l5900.c): Add rule for building.
646 * configure.tgt: Use r5900 specific emulation script.
647 * emulparams/elf32l5900.sh: 5900 specific emulation script.
648
649 end-sanitize-r5900
650 Mon Feb 9 13:44:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
651
652 * scripttempl/elfd10v.sc (.stack): Move stack to 0x00..7FFE.
653
654 * emulparams/d10velf.sh (READONLY_START_ADDR): Read only section
655 moved to 0x00.....4.
656
657 Sat Feb 7 15:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
658
659 * configure, aclocal.m4: Rebuild with new libtool.
660
661 Thu Feb 5 12:16:11 1998 Ian Lance Taylor <ian@cygnus.com>
662
663 * scripttempl/pe.sc: Remove ${RELOCATING-0} from all sections.
664 From Thomas de Lellis <tdel@wrs.com>.
665
666 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
667
668 Wed Feb 4 13:02:32 1998 Ian Lance Taylor <ian@cygnus.com>
669
670 * Makefile.am (ld_new_LDADD): Remove @LEXLIB@.
671 * Makefile.in: Rebuild.
672
673 Mon Feb 2 19:34:54 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
674
675 Add tms320c30 support:
676 * configure.tgt (tic30-*-*aout*, tic30-*-*coff*): New targets.
677 * emulparams/tic30aout.sh: New file.
678 * emulparams/tic30coff.sh: New file.
679 * scripttempl/tic30aout.sc: New file.
680 * scripttempl/tic30coff.sc: New file.
681 * Makefile.am (ALL_EMULATIONS): Add etic30aout.o and
682 etic30coff.o.
683 (etic30aout.c, etic30coff.c): New targets.
684 * Makefile.in: Rebuild.
685
686 Mon Feb 2 14:10:59 1998 Ian Lance Taylor <ian@cygnus.com>
687
688 * configure.host: Correct HOSTING_CRT0 in alpha*-*-linux* case to
689 accept either ld.so or ld-linux.so.
690
691 Fri Jan 30 19:16:28 1998 Doug Evans <devans@canuck.cygnus.com>
692
693 * Makefile.am ({CC,CXX}_FOR_TARGET): Change program_transform_name
694 to transform.
695 * Makefile.in: Regenerate.
696
697 Fri Jan 30 19:15:17 1998 Geoff Keating <geoffk@ozemail.com.au>
698
699 * scripttempl/elfppc.sc: Put .dynsbss in .sbss.
700
701 Fri Jan 30 11:43:49 1998 H.J. Lu <hjl@gnu.ai.mit.edu>
702
703 * Makefile.am (eelf32bsmip.c, eelf32lsmip.c): New targets.
704 * Makefile.in: Rebuild.
705
706 Thu Jan 29 16:04:21 1998 Mumit Khan <khan@xraylith.wisc.edu>
707
708 * ldfile.c (slash): Set to backslash if _WIN32 but not
709 __CYGWIN32__.
710 (ldfile_open_file_search): If __MSDOS__ or _WIN32, accept a
711 leading backslash or a leading x: as an absolute path.
712 (ldfile_find_command_file): Use slash rather than / when
713 generating name to try.
714 * lexsup.c (PATH_SEPARATOR): Define.
715 (set_default_dirlist): Use PATH_SEPARATOR rather than ':'.
716
717 Wed Jan 28 14:06:30 1998 Richard Henderson <rth@cygnus.com>
718
719 * emulparams/elf64_sparc.sh (ELFSIZE): 64
720 (TEXT_START_ADDR): Round off, since SIZEOF_HEADERS is added later.
721 (DATA_PLT): Needed by v9 abi.
722
723 Wed Jan 28 16:37:27 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
724
725 * configure.tgt (i[3456]86-*-mingw32*): New entry.
726
727 Wed Jan 28 15:51:58 1998 Ian Lance Taylor <ian@cygnus.com>
728
729 * scripttempl/elf.sc: Only include linkonce sections in final
730 sections when relocating.
731
732 start-sanitize-sky
733 Wed Jan 28 12:19:31 1998 Doug Evans <devans@canuck.cygnus.com>
734
735 * configure.tgt (dvp-*-*): Recognize.
736
737 end-sanitize-sky
738 Wed Jan 28 14:10:01 1998 Ian Lance Taylor <ian@cygnus.com>
739
740 * ld.texinfo (Options): Add a brief description of the types of
741 information included in a link map.
742
743 * ld.texinfo (Options): Mention LDEMULATION in description of -m.
744 (Environment): Mention LDEMULATION.
745
746 * ld.texinfo (Options): Clarify --export-dynamic a bit.
747
748 Thu Jan 22 16:07:23 1998 Richard Henderson <rth@cygnus.com>
749
750 * ldlex.l (<SCRIPT>{WILDCHAR}*): Take care for the comments this
751 pattern could match.
752
753 Wed Jan 21 22:26:46 1998 Ian Lance Taylor <ian@cygnus.com>
754
755 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): When doing
756 a relocateable link, set the image base to 0, and don't define the
757 various symbols.
758 * emulparams/i386pe.sh (RELOCATEABLE_OUTPUT_FORMAT): Define.
759 * scripttempl/pe.sc: Swap the .data and .bss sections so that
760 .data comes first. If doing a relocateable link, use
761 RELOCATEABLE_OUTPUT_FORMAT if it is defined, and start the
762 sections at 0, and don't define any symbols.
763
764 * ldlang.c (lang_memory_default): Correct parenthisization of
765 expression.
766
767 Wed Jan 21 21:20:32 1998 Manfred Hollstein <manfred@s-direktnet.de>
768
769 * emultempl/sunos.em: Don't include sys/types.h and sys/stat.h
770 here; they are included already via sysdep.h.
771
772 Tue Jan 6 13:40:02 1998 Richard Henderson <rth@cygnus.com>
773
774 * scripttempl/i960.sc: Don't explicitly set .data and .bss start.
775
776 Fri Jan 2 20:15:37 1998 Michael Meissner <meissner@cygnus.com>
777
778 * ldgram.y (attributes_opt): Pass region pointer to
779 lang_set_flags, not &region->flags.
780
781 * ldlang.c (lang_memory_default): New function to figure out a
782 default memory region for a section if it was not specified.
783 (lang_memory_region_lookup): Zero flags, not_flags field.
784 (lang_map{,_flags}): Print attribute flags in memory map.
785 (lang_size_sections): Call lang_memory_default to get default
786 memory region.
787 (lang_set_flags): Implement attribute flags for real. Take new
788 argument to give the flags we are to skip for this region.
789
790 * ldlang.h (memory_region_struct): Add not_flags field, make both
791 flags fields flagword type.
792 (lang_output_section_state): Make flags field flagword type.
793 (lang_set_flags): Update prototype to match new calling sequence.
794 (lang_memory_region_default): Add prototype.
795
796 * emulparams/d30v{_e,_o,elf}.sh ({TEXT,DATA,EMEM}_DEF_SECTION):
797 Define whether or not the region gets default sections, and if so,
798 what sections.
799
800 * scripttempl/elfd30v.sc (MEMORY): Set up which of the regions get
801 default sections.
802
803 Thu Jan 1 22:58:04 1998 Michael Meissner <meissner@cygnus.com>
804
805 * scripttempl/elfd30v.sc (.eh_frame): Link into the data section.
806
807 Thu Jan 1 18:04:51 1998 Jeffrey A Law (law@cygnus.com)
808
809 * scripttempl/h8300h.sc: Fix typo.
810 * scripttempl/h8300s.sc: Likewise.
811
812 Sun Dec 21 12:51:49 1997 Ian Lance Taylor <ian@cygnus.com>
813
814 * ldexp.c (fold_name): Don't crash if the symbol is defined in a
815 section with no output section, such as a shared library section.
816
817 Wed Dec 17 12:14:11 1997 Ian Lance Taylor <ian@cygnus.com>
818
819 * lexsup.c (parse_args): Keep track of where we are in the option
820 parsing before calling ldemul_parse_args, so that we don't call it
821 multiple times on the same argument and confuse the getopt
822 internals.
823
824 Thu Dec 11 09:00:15 1997 Michael Meissner <meissner@cygnus.com>
825
826 * configure.tgt (d30v-elf-*): Rename d30velf_e to d30v_e and
827 d30velf_o to d30v_o to work in DOS environments.
828 * Makefile.{am,in}: Ditto.
829
830 * emulparams/d30v_{o,e}: Rename from d30velf_{o,e}.
831 * emulparams/d30velf_{o,e}: Deleted.
832
833 Wed Dec 10 17:40:08 1997 Nick Clifton <nickc@cygnus.com>
834
835 * scripttempl/armcoff.sc: Add glue sections (code taken from Arm
836 branch).
837
838 * emulparams/armcoff.sh (TEMPLATE_NAME): Set to armcoff.
839
840 * emultempl/armcoff.em: New file, imported from Arm branch.
841
842 Wed Dec 10 14:10:44 1997 Michael Meissner <meissner@cygnus.com>
843
844 * scripttempl/elfd30v.sc: Add .rel and .rela sections for all
845 defined sections. Set up __{D,C}TOR_{LIST,END}__. Add onchip and
846 external memory sections for rodata. Delete .string, .rodata1,
847 and .data1 sections.
848
849 Tue Dec 9 15:28:17 1997 Michael Meissner <meissner@cygnus.com>
850
851 * Makefile.am: Add Oct 23 changes to Makefile.in here.
852
853 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed10velf.o.
854
855 start-sanitize-tic80
856 * Makefile.{am,in}: (ALL_EMULATIONS): Add etic80coff.o.
857 end-sanitize-tic80
858
859 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed30velf{,_e,_o}.o.
860 (ed30velf_e.c): Like d30velf, except .text/.data/etc always go in
861 external memory.
862 (ed30velf_o.c): Like d30velf, except .text/.data/etc always go in
863 onchip memory.
864
865 * emulparams/d30velf.sh (STACK_START_ADDR): Top of default
866 stack.
867 ({TEXT,DATA,EMEM}_SIZE): Sizes of the 3 memory areas.
868 ({TEXT,DATA,BSS}_MEMORY): Which memory region .text, .data, and
869 .bss should go in.
870
871 * emulparams/d30velf_{e,o}.sh: New files to be explicit whether
872 .text, .data, etc go in external memory or onchip memory.
873
874 * configure.tgt (d30v-*-*ext*): New configuration to default
875 .text, .data, etc. in external memory.
876 (d30v-*-*onchip*): New configuration to default .text, .data,
877 etc. in onchip memory.
878 (d30v-*-*): Add d30velf_{e,o} emulations.
879
880 * scripttempl/elfd30v.sc: Allow .text, .data, .bss to be put in
881 either the onchip text/data areas or the external memory area.
882 (MEMORY): Get sizes from d30velf.sh.
883 (.e{data,text,bss}): Put sections in the external memory region.
884 (.stext): Put section in the onchip text region.
885 (.s{data,bss}): Put sections in the onchip data region.
886 (__stack): Assign from ${STACK_START_ADDR}.
887 (.text): Put in ${TEXT_MEMORY} memory region.
888 (.data{,1}/.strings/.rodata{,1}): Put in ${DATA_MEMORY} memory
889 region.
890 (.bss): Put in ${BSS_MEMORY} memory region.
891
892 Tue Dec 2 10:14:47 1997 Nick Clifton <nickc@cygnus.com>
893
894 * configure.tgt (targ_extra_emuls): Add support for Thumb target.
895
896 Sat Nov 22 15:23:19 1997 Ian Lance Taylor <ian@cygnus.com>
897
898 * ldlex.l: Don't define hex_mode. Correct number regexp to not
899 accept hex digits without a leading $ or 0x. Handle leading $
900 correctly. Pass 0 rather than hex_mode to bfd_scan_vma.
901 * ldlex.h (hex_mode): Don't declare.
902
903 Sun Nov 16 20:16:45 1997 Michael Meissner <meissner@cygnus.com>
904
905 * emulparams/d30velf.sh ({DATA,EMEM}_START_ADDR): Define as start
906 of internal data area and external memory on chip.
907
908 * scripttempl/elfd30v.sc: Define a MEMORY region that describes
909 the 3 regions of memory on the chip. Put .text/.init/.fini into
910 the text memory region, put other segments into the data memory
911 region. Add more of the standard elf sections. Default __stack
912 to be 0x20008000, which is 1 byte beyond end of the internal data
913 region.
914
915 Thu Nov 13 13:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
916
917 * configure.tgt (targ_extra_emuls): Make FreeBSD a i386bsd
918 variant.
919
920 Sun Nov 2 14:51:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
921
922 * configure.host (alpha*-*-linux*): Correct HOSTING_CRT0. Set
923 HOSTING_LIBS.
924
925 Thu Oct 30 12:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
926
927 * ld.h (args_type): Add warn_mismatch field.
928 * ldmain.c (main): Initialize warn_mismatch field.
929 * lexsup.c (parse_args): Handle --no-warn-mismatch option.
930 * ldlang.c (ignore_bfd_error): New static function.
931 (lang_check): If warn_mismatch is false, don't warn about
932 mismatched input files.
933 * ld.texinfo, ld.1: Document new option.
934
935 start-sanitize-tx49
936 Wed Oct 29 17:50:26 1997 Gavin Koch <gavin@cygnus.com>
937
938 * configure.tgt: Add tx49 configury.
939
940 end-sanitize-tx49
941 Thu Oct 23 14:38:18 1997 Nick Clifton <nickc@cygnus.com>
942
943 * scripttempl/v850.sc: Rename linker symbol '_stack' to '__stack'
944 to avoid conflicts with C code which is defining a variable called
945 'stack'.
946
947 Thu Oct 23 00:57:45 1997 Richard Henderson <rth@dot.cygnus.com>
948
949 * Makefile.in (ALL_EMULATIONS): Move eelf64_sparc.o ...
950 (ALL_64_EMULATIONS): ... here.
951 (eelf64_sparc.c): Template should be elf32 not generic.
952 * emulparams/elf64_sparc.sh (TEMPLATE_NAME): New definition.
953
954 Thu Oct 23 00:44:20 1997 Richard Henderson <rth@dot.cygnus.com>
955
956 * configure.tgt: Add sparc64-*-linux*.
957 * emulparams/elf64_sparc.sh (GENERATE_SHLIB_SCRIPT, NOP): New.
958
959 Wed Oct 22 11:29:25 1997 Ian Lance Taylor <ian@cygnus.com>
960
961 * scripttempl/pe.sc: Put .eh_frame in .rdata.
962
963 Fri Oct 17 00:00:13 1997 Richard Henderson <rth@cygnus.com>
964
965 * ldlang.c (lang_register_vers_node): Only check globals<=>locals,
966 since we need to be able to export different versions of the same
967 symbol.
968
969 Wed Oct 15 14:52:36 1997 Ian Lance Taylor <ian@cygnus.com>
970
971 * scripttempl/pe.sc: Put .stab and .stabstr sections at end.
972
973 Wed Oct 8 12:37:05 1997 Richard Henderson <rth@cygnus.com>
974
975 * configure.tgt, configure.host: Change alpha-*-* to alpha*-*-*;
976 config.guess now recognizes alphaev5 etc.
977
978 Fri Oct 3 14:23:02 1997 Ian Lance Taylor <ian@cygnus.com>
979
980 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Don't treat
981 -s and -u as -static and -unix.
982
983 Thu Oct 2 18:40:28 1997 Ian Lance Taylor <ian@cygnus.com>
984
985 * ldlang.c (wild_doit): Rewrite flag handling for clarity. If we
986 are not adding the first input section, and SEC_READONLY is clear
987 on the output section, then don't copy it from the input section.
988 If SEC_READONLY is not set on the input section, then clear it on
989 the output section.
990
991 * configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
992 elf32bmip.
993 (mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
994 to elf32bsmip.
995 (mips*-*-linux*): Likewise.
996 * emulparams/elf32bsmip.sh: New file; just like elf32bmip.sh, but
997 setting ENTRY to __start.
998 * emulparams/elf32lsmip.sh: New file; just like elf32lmip.sh, but
999 setting ENTRY to __start.
1000 * scripttempl/elf.sc: Always set ENTRY to _start if it was not
1001 already set.
1002
1003 Wed Oct 1 16:41:00 1997 Nick Clifton <nickc@cygnus.com>
1004
1005 * emulparams/v850.sh (ROZDATA_START_ADDR, ROSDATA_START_ADDR): New
1006 Variables.
1007
1008 * scripttempl/v850.sc: Move read only areas out of zero and small
1009 data sections and into their own sections.
1010
1011 Wed Sep 24 16:59:15 1997 Joel Sherrill <joel@oarcorp.com>
1012
1013 * configure.tgt (sh*-*-rtems*): New target, like sh-*-elf*.
1014
1015 Wed Sep 24 11:33:14 1997 Ian Lance Taylor <ian@cygnus.com>
1016
1017 * ld.texinfo (Section Options): Improve documentation of NOLOAD
1018 directive.
1019
1020 * aclocal.m4: Rebuild with new libtool.
1021 * configure: Rebuild.
1022
1023 Mon Sep 22 17:24:06 1997 Ian Lance Taylor <ian@cygnus.com>
1024
1025 * ldlang.c (wild_doit): Revert patch of September 3.
1026
1027 Wed Sep 17 16:45:34 1997 Nick Clifton <nickc@cygnus.com>
1028
1029 * Makefile.am, Makefile.in: Add rule for ev850.c
1030 * configure.tgt (targ_extra_emuls): Add v850 target.
1031
1032 start-sanitize-v850e
1033 Wed Sep 17 16:43:39 1997 Nick Clifton <nickc@cygnus.com>
1034
1035 * emulparams/v850.sh (CALL_TABLE_START_ADDR): New entry.
1036 * scripttempl/v850.sc: Add call table data area
1037
1038 end-sanitize-v850e
1039 Mon Sep 15 11:29:13 1997 Ken Raeburn <raeburn@cygnus.com>
1040
1041 Merge change from Martin Hunt:
1042
1043 * scripttempl/elfd30v.sc: Put .rodata in the .text section.
1044
1045 Tue Sep 9 07:49:56 1997 Fred Fish <fnf@ninemoons.com>
1046
1047 * ldlang.c (lang_memory_region_lookup): Remove extraneous
1048 initialization of p.
1049
1050 Thu Sep 4 09:03:33 1997 Ian Lance Taylor <ian@cygnus.com>
1051
1052 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): In
1053 expression produced for -bpT and -bpD options, align to a 32 byte
1054 boundary rather than an 8 byte boundary.
1055 * scripttempl/aix.sc: Put .tocbss at start of .bss section.
1056
1057 * ldmisc.h, ldmisc.c, ldcref.c: Rename finfo to lfinfo, to avoid
1058 function name conflict with AIX 4.2 unistd.h header file.
1059
1060 Wed Sep 3 15:12:32 1997 Ian Lance Taylor <ian@cygnus.com>
1061
1062 * ldlang.c (wild_doit): Clear SEC_HAS_CONTENTS from a
1063 noload_section.
1064
1065 Fri Aug 29 00:32:31 1997 Ian Lance Taylor <ian@cygnus.com>
1066
1067 * Makefile.am (ld_new_DEPENDENCIES): Remove @LEXLIB@.
1068 * Makefile.in: Rebuild.
1069
1070 Thu Aug 28 10:12:10 1997 Doug Evans <dje@canuck.cygnus.com>
1071
1072 * configure.tgt (arc-*-elf*): Recognize.
1073 * Makefile.am (ALL_EMULATIONS): Add earcelf.o.
1074 * Makefile.in: Regenerate.
1075 * emulparams/arcelf.sh: New file.
1076
1077 Wed Aug 20 11:14:13 1997 Ian Lance Taylor <ian@cygnus.com>
1078
1079 * ldlang.c (wildcardp): Don't let a backslash by itself cause a
1080 pattern to be treated as a wildcard pattern.
1081
1082 * ldgram.y (atype): Accept parentheses with no type.
1083
1084 * ld.texinfo (Section Definition): Clarify use of whitespace.
1085 (Section Placement): Likewise.
1086
1087 start-sanitize-v850e
1088 Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
1089
1090 * configure.tgt (targ_extra_emuls): Add support for v850e target.
1091
1092 Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
1093
1094 * configure.tgt (targ_extra_emuls): Add support for v850e target.
1095 end-sanitize-v850e
1096
1097 Sat Aug 9 00:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
1098
1099 * Makefile.am (ld.info): Change dependency from
1100 $(BFDDIR)/doc/bfdsumm.texi to bfdsumm.texi.
1101 (ld.dvi): Likewise.
1102 (bfdsumm.texi): New target.
1103 (CLEANFILES): Add bfdsumm.texi.
1104 * Makefile.in: Rebuild.
1105
1106 * Makefile.am: New file, based on old Makefile.in.
1107 * acinclude.m4: New file, from old aclocal.m4.
1108 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
1109 shared library handling; now handled by libtool. Replace
1110 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
1111 AC_PROG_LEX, and AC_DECL_YYTEXT. Call AM_MAINTAINER_MODE,
1112 AM_CYGWIN32, and AM_EXEEXT. Don't call CY_CYGWIN32 or CY_EXEEXT.
1113 * configure.host: Don't set HLDFLAGS, HLDENV, or RPATH_ENVVAR.
1114 * acconfig.h: Mention PACKAGE and VERSION.
1115 * stamp-h.in: New file.
1116 * ldver.c (ld_program_version): Set ld_program_version from
1117 VERSION.
1118 * ldgram.y, ldlex.l: Replace VERSION with VERSIONK.
1119 * Makefile.in: Now built with automake.
1120 * aclocal.m4: Now built with aclocal.
1121 * configure, config.in: Rebuild.
1122
1123 Mon Jul 28 19:04:50 1997 Rob Savoye <rob@chinadoll.cygnus.com>
1124
1125 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
1126 win32 dependencies.
1127 * configure: Regenerated with autoconf 2.12.
1128 * Makefile.in: Add $(EXEEXT) to executable.
1129
1130 Tue Jul 22 18:50:38 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
1131
1132 * emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".
1133 (SEGMENT_SIZE): Set to 0x200.
1134 * scripttempl/i386go32.sc: Rewrite.
1135 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
1136
1137 start-sanitize-r5900
1138 Tue Jul 15 10:18:09 1997 Jeffrey A Law (law@cygnus.com)
1139
1140 * configure.tgt: Default the r5900 to little endian.
1141
1142 end-sanitize-r5900
1143 Mon Jul 7 12:39:42 1997 Ian Lance Taylor <ian@cygnus.com>
1144
1145 From Manfred Hollstein <manfred@s-direktnet.de>:
1146 * configure.host (i[3456]86-*-linux*libc1*): Renamed from
1147 i[3456]86-*-linux*.
1148 (i[3456]86-*-linux*): New host.
1149
1150 Thu Jun 26 13:54:03 1997 Ian Lance Taylor <ian@cygnus.com>
1151
1152 * scripttempl/pe.sc: Put .rsrc after .reloc. Put input .rsrc
1153 sections in the output .rsrc section.
1154
1155 Wed Jun 25 12:48:41 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1156
1157 * configure.host (m68*-*-linux*libc1*): Renamed from
1158 `m68*-*-linux*'.
1159 (m68*-*-linux*): New configuration for use with GNU libc 2.
1160
1161 Mon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>
1162
1163 * scripttempl/elfppc.sc: Correct .rela.sdata entries.
1164
1165 * scripttempl/elfppc.sc: Put the PLT between the small and large
1166 BSS segments.
1167 * emulparams/elf32ppc.sh (TEXT_START_ADDR): The ABI says `A
1168 program base of 0x02000000 is recommended...' because otherwise
1169 shared libraries are less efficient. We use 0x01800000 because
1170 otherwise it's impossible to branch to location 0, for instance if
1171 you have an undefined weak symbol.
1172
1173 Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
1174
1175 * ldlang.c (lang_place_undefineds): Add \n in einfo call.
1176 (lang_size_sections): Likewise.
1177 * ldlex.l: Likewise.
1178 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
1179 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open):
1180 Likewise.
1181 (check_sections): Likewise.
1182 (gld${EMULATION_NAME}_after_allocation): Likewise.
1183 * emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
1184 Likewise.
1185 * mpw-eppcmac.c (gldppcmacos_read_file): Likewise.
1186 * mpw-idtmips.c (gldmipsidt_after_open): Likewise.
1187 (check_sections): Likewise.
1188 (gldmipsidt_after_allocation): Likewise.
1189
1190 * ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
1191
1192 Fri Jun 6 23:47:42 1997 Ian Lance Taylor <ian@cygnus.com>
1193
1194 * scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
1195 the import list.
1196
1197 Thu May 29 13:13:22 1997 Ian Lance Taylor <ian@cygnus.com>
1198
1199 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Don't
1200 crash if an output section has no BFD section.
1201
1202 Fri May 23 15:23:25 1997 Fred Fish <fnf@cygnus.com>
1203
1204 * lexsup.c (ld_options): Add entry for the new "task-link" option.
1205 (parse_args): Handle the "task-link" option.
1206 (OPTION_TASK_LINK): Add define.
1207
1208 Wed May 21 17:44:15 1997 Ian Lance Taylor <ian@cygnus.com>
1209
1210 * ldmain.c (main): Correct check of fclose return value when
1211 handling --force-exe-suffix.
1212
1213 Thu May 15 11:35:29 1997 Nick Clifton <nickc@cygnus.com>
1214
1215 * ldlang.c (lang_check): Add test of the return value from the
1216 call to bfd_merge_private_bfd_data().
1217
1218 Mon May 12 23:22:58 1997 Ian Lance Taylor <ian@cygnus.com>
1219
1220 * scripttempl/elfmips.sc: Remove.
1221 * scripttempl/elf.sc: Set ENTRY based on target. Permit
1222 TEXT_DYNAMIC to control .dynamic segment. Permit
1223 SHLIB_TEXT_START_ADDR to set start of shared object. Support
1224 INITIAL_READONLY_SECTIONS. Put .stub in .text. Only put
1225 .gnu.linkonce.t* in .text when relocating. Support
1226 OTHER_TEXT_SECTIONS. Support SHLIB_DATA_ADDR as well as
1227 DATA_ADDR. Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS.
1228 * emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf.
1229 (DATA_ADDR): Don't set.
1230 (INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS.
1231 (OTHER_TEXT_SECTIONS): Set.
1232 (OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS.
1233 (MACHINE): Set to empty string.
1234 * emulparams/elf32l4300.sh: Likewise.
1235 * emulparams/elf32ebmip.sh: Likewise.
1236 * emulparams/elf32elmip.sh: Likewise.
1237 * emulparams/elf32bmip.sh: Likewise. Also:
1238 (TEXT_DYNAMIC): Set.
1239 * emulparams/elf32lmips.sh: Likewise.
1240 * Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than
1241 elfmips.sc.
1242 (eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
1243
1244 Mon May 12 11:11:06 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1245
1246 * scripttempl/elf.sc: Don't align the data segment on the next 8
1247 byte boundary, instead let the linker use whatever the individual
1248 sections require.
1249
1250 Fri May 9 17:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
1251
1252 * configure.tgt (i[3456]86-*-gnu*): Don't include Mach support.
1253
1254 Tue May 6 13:21:19 1997 Ian Lance Taylor <ian@cygnus.com>
1255
1256 From Sean McNeil <sean@mcneil.com>:
1257 * emultempl/pe.em (sort_by_file_name): Sort by archive name
1258 first.
1259 (sort_sections): Sort all sections, not just sections in the same
1260 archive.
1261
1262 Mon May 5 18:19:55 1997 Philip Blundell <pjb27@cam.ac.uk>
1263
1264 * configure.tgt, configure.host: cope with '*-*-linux-gnuaout'
1265 targets.
1266
1267 start-sanitize-tic80
1268 Fri May 2 15:54:28 1997 Mike Meissner <meissner@cygnus.com>
1269
1270 * scripttempl/tic80coff.sc (.text): Add a leading underscore to
1271 __{D,C}TOR_{LIST,END}__ definations. Rearrange the order of items
1272 in the .text section. Move .const, .ctors, .dtors into separate
1273 sections.
1274
1275 end-sanitize-tic80
1276 Wed Apr 30 12:23:21 1997 Manfred Hollstein <manfred@s-direktnet.de>
1277
1278 * scripttempl/m88kbcs.sc (__.initp.end, _etext): Added whitespace
1279 around assignment of current location pointer.
1280
1281 Thu Apr 17 13:07:18 1997 Ian Lance Taylor <ian@cygnus.com>
1282
1283 * ldctor.c (ldctor_build_sets): Make sure the set is aligned
1284 appropriately.
1285
1286 Tue Apr 15 13:19:26 1997 Ian Lance Taylor <ian@cygnus.com>
1287
1288 * Makefile.in (INSTALL): Set to @INSTALL@.
1289 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
1290 (install): Depend upon ld.new and installdirs. Use
1291 $(program_transform_name) directly, rather than using
1292 $(INSTALL_XFORM) and $(INSTALL_XFORM1).
1293 (installdirs): New target.
1294 (install-info): Run mkinstalldirs.
1295
1296 Mon Apr 14 12:06:15 1997 Ian Lance Taylor <ian@cygnus.com>
1297
1298 * Makefile.in (INSTALL): Change install.sh to install-sh.
1299
1300 From Thomas Graichen <graichen@rzpd.de>:
1301 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
1302 * configure: Rebuild.
1303
1304 Fri Apr 4 11:42:41 1997 Ian Lance Taylor <ian@cygnus.com>
1305
1306 * emultempl/pe.em: Include "libiberty.h".
1307 (sort_sections_1): Use xmalloc rather than alloca.
1308
1309 * ldlex.l: Recognize SQUAD.
1310 * ldgram.y (length): Add SQUAD.
1311 * ldctor.c (ldctor_build_sets): Use SQUAD for a signed 8 byte
1312 reloc.
1313 * ldlang.c (print_data_statement): Handle SQUAD.
1314 (lang_size_sections, lang_do_assignments): Likewise.
1315 * ldexp.c (exp_print_token): Add SQUAD to table.
1316 * ldwrite.c (build_link_order): Handle SQUAD.
1317 * ld.texinfo (Section Data Expressions): Document SQUAD.
1318
1319 Thu Apr 3 13:19:40 1997 Ian Lance Taylor <ian@cygnus.com>
1320
1321 * ldver.c (ld_program_version): Set to 2.8.1.
1322
1323 * Branched binutils 2.8.
1324
1325 Wed Apr 2 11:55:27 1997 Ian Lance Taylor <ian@cygnus.com>
1326
1327 * mpw-idtmips.c: Rename from mpw-emipsidt.c.
1328 * mpw-elfmips.c: Rename from mpw-emipself.c.
1329 * mpw-config.in: Update accordingly.
1330
1331 * ldlang.c (lang_process): Call lang_check immediately after
1332 opening the input files, rather than at the end of the link.
1333
1334 Mon Mar 31 23:44:00 1997 Ian Lance Taylor <ian@cygnus.com>
1335
1336 * emultempl/pe.em (init): Fully bracket initializer.
1337 (set_pe_stack_heap): Remove locals begin_commit and end.
1338 (gld_${EMULATION_NAME}_after_open): Remove unused local i.
1339 (gld${EMULATION_NAME}_place_orphan): Remove unused local ptr.
1340
1341 Mon Mar 31 16:35:51 1997 Joel Sherrill <joel@oarcorp.com>
1342
1343 * configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
1344
1345 Fri Mar 28 15:29:23 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
1346
1347 Contributed by David S. Miller <davem@caip.rutgers.edu>:
1348 * configure.tgt (sparc*-*-linuxaout*): New target.
1349 (sparc*-*-linux*): New target.
1350 * emulparams/sparclinux.sh: New file.
1351 * Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
1352 (esparclinux.c): New target.
1353
1354 Fri Mar 28 14:30:12 1997 Ian Lance Taylor <ian@cygnus.com>
1355
1356 From Ralf Baechle <ralf@gnu.ai.mit.edu>:
1357 * configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
1358 mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
1359 elf32elmip.
1360
1361 Thu Mar 27 17:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
1362
1363 * lexsup.c (parse_args): Update copyright date in version
1364 message.
1365
1366 Fri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
1367
1368 * emulparams/delta68.sh (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
1369
1370 Tue Mar 18 11:16:23 1997 Ian Lance Taylor <ian@cygnus.com>
1371
1372 * Makefile.in: Rebuild dependencies.
1373
1374 * emultempl/aix.em: Include "obstack.h".
1375
1376 Mon Mar 17 19:26:06 1997 Ian Lance Taylor <ian@cygnus.com>
1377
1378 * ldlang.c: Include "obstack.h".
1379
1380 Sat Mar 15 23:23:46 1997 Fred Fish <fnf@cygnus.com>
1381
1382 * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
1383
1384 Sat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
1385
1386 * ldemul.h (ldemul_list_emulations): Use full prototype.
1387 * ldlang.c (print_one_symbol): Add declaration.
1388 * ldlang.h (dprint_statements): Declare.
1389 * ldmain.c (remove_output): Declare.
1390 * ldmisc.c (vfinfo): Declare.
1391 * ldwrite.c (clone_section): Declare.
1392 (split_sections): Make static. Declare.
1393 * mri.c: Include libiberty.h.
1394 (strdup): Don't declare.
1395 (mri_alias): Use xstrdup rather than strdup.
1396
1397 Fri Mar 14 21:30:06 1997 Ian Lance Taylor <ian@cygnus.com>
1398
1399 * scripttempl/elfmips.sc: Change handling of data area when
1400 generating a shared library to not skip a large block of memory.
1401 From Per Fogelstrom <pefo@cvs.openbsd.org>.
1402
1403 Wed Mar 12 21:33:09 1997 Ian Lance Taylor <ian@cygnus.com>
1404
1405 * ldmain.c (multiple_definition): Only skip the warning if the
1406 output section is absolute when the input section is not
1407 absolute.
1408
1409 * ldlex.l: Accept whitespace in VERS_START state. Warn about
1410 invalid characters in VERS_* states.
1411
1412 Tue Mar 11 13:51:31 1997 Ian Lance Taylor <ian@cygnus.com>
1413
1414 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Don't let a
1415 trailing space lead us to think that there is a zero address.
1416
1417 Sun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
1418
1419 * ldgram.y (vers_node): Correct typo of '(' for '{'.
1420
1421 start-sanitize-tic80
1422 Fri Mar 7 18:40:12 1997 Fred Fish <fnf@cygnus.com>
1423
1424 * scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
1425 rather than _start.
1426 (__edata): Define this rather than "edata".
1427 (__end): Define this rather than "end".
1428
1429 Tue Mar 4 17:18:35 1997 Michael Meissner <meissner@cygnus.com>
1430
1431 * configure.tgt (tic80-*-*): Allow dropping of -coff.
1432
1433 end-sanitize-tic80
1434 Sun Mar 2 22:59:49 1997 Fred Fish <fnf@cygnus.com>
1435
1436 * Makefile.in (ld.dvi): Set MAKEINFO environment variable as well
1437 as TEXINPUTS. Needed for building in separate build dir.
1438 * ldint.texinfo (SCRIPT_NAME): Fix typo.
1439 start-sanitize-tic80
1440 * emulparams/tic80coff.sh: Rewrite to include internal documentation
1441 about each shell variable that is set (or not set).
1442 * scripttempl/tic80coff.sc: Complete rewrite.
1443 end-sanitize-tic80
1444
1445 Fri Feb 28 17:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
1446
1447 * ldmain.c (main): Call bfd_set_default_target.
1448 * Makefile.in (ldmain.o): Define TARGET when compiling.
1449
1450 Thu Feb 27 11:41:03 1997 Ian Lance Taylor <ian@cygnus.com>
1451
1452 * ldmain.c (main): Don't initialize link_info.lprefix or
1453 link_info.lprefix_len.
1454 * emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
1455
1456 * emultempl/m88kbcs.em: Remove.
1457 * emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set.
1458 * Makefile.in (em88kbcs.c): Depend upon generic.em rather than
1459 m88kbcs.em.
1460
1461 * mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
1462 to lang_enter_output_section_statement. From Mark Rasin
1463 <mark.rasin@telrad.co.il>.
1464
1465 Wed Feb 26 11:51:44 1997 Ian Lance Taylor <ian@cygnus.com>
1466
1467 * ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
1468 section.
1469
1470 Tue Feb 25 20:38:11 1997 Stan Shebs <shebs@andros.cygnus.com>
1471
1472 * configure.tgt (mips*-*-lnews*): New target.
1473 * Makefile.in (emipslnews.c): New target.
1474 * emulparams/mipslnews.sh: New file.
1475
1476 Tue Feb 25 16:04:09 1997 Ian Lance Taylor <ian@cygnus.com>
1477
1478 * emultempl/elf32.em (hold_interp): New static variable.
1479 (gld${EMULATION_NAME}_place_orphan): Put loadable .note sections
1480 after hold_interp. Choose a unique output section name.
1481 (gld${EMULATION_NAME}_place_section): Don't set hold_use if the
1482 SEC_LOAD or SEC_ALLOC flags differ. Set hold_interp.
1483
1484 Mon Feb 24 18:16:09 1997 Ian Lance Taylor <ian@cygnus.com>
1485
1486 From Eric Youngdale <eric@andante.jic.com>:
1487 * ldlex.l (V_TAG, V_IDENTIFIER): New macros.
1488 (VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
1489 information.
1490 (ldlex_version_script, ldlex_version_file): New functions.
1491 * ldlex.h (enum input_enum): Add input_version_script.
1492 (ldlex_version_script): Declare.
1493 (ldlex_version_file): Declare.
1494 * ldgram.y (%union): Add deflist, versyms, and versnode.
1495 (VERS_TAG, VERS_IDENTIFIER): New terminals.
1496 (GLOBAL, LOCAL, VERSION, INPUT_VERSION_SCRIPT): New terminals.
1497 (file): Accept INPUT_VERSION_SCRIPT.
1498 (ifile_p1): Accept version.
1499 (version_script_file): New nonterminal.
1500 (version, vers_nodes, vers_node): Likewise.
1501 (verdep, vers_tag, ver_defns): Likewise.
1502 * ldlang.c (lang_elf_version_info): New global variable.
1503 (lang_new_vers_regex): New function.
1504 (lang_new_vers_node): New function.
1505 (version_index): New static variable.
1506 (lang_register_vers_node): New function.
1507 (lang_add_vers_depend): New function.
1508 * ldlang.h (lang_elf_version_info): Declare.
1509 (lang_new_vers_regex, lang_new_vers_node): Declare.
1510 (lang_add_vers_depend, lang_register_vers_node): Declare.
1511 * lexsup.c (OPTION_VERSION_SCRIPT): Define.
1512 (ld_options): Add "version-script".
1513 (parse_args): Handle OPTION_VERSION_SCRIPT.
1514 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1515 Pass lang_elf_version_info to size_dynamic_sections.
1516 * scripttempl/elf.sc: Add .gnu.version sections.
1517 * ld.texinfo: Document symbol versioning.
1518
1519 Fri Feb 21 17:37:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
1520
1521 * Makefile.in (ed30velf.c): New target.
1522 * configure.tgt (d30v-*-*): New target.
1523 * emulparams/d30velf.sh: New file.
1524 * scripttempl/elfd30v.sc: New file.
1525
1526 Fri Feb 14 18:28:31 1997 Ian Lance Taylor <ian@cygnus.com>
1527
1528 * ld.texinfo (Option Commands): Document the INCLUDE command.
1529
1530 Thu Feb 13 20:31:37 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
1531
1532 * configure.in: Call BFD_NEED_DECLARATION on getenv.
1533 * acconfig.h (NEED_DECLARATION_GETENV): New macro.
1534 * sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
1535 * ldemul.c (ld_emul_default_target): Do not cast getenv return
1536 value.
1537 * ldmain.c (get_emulation): Likewise.
1538 * configure, config.in: Rebuild.
1539
1540 Tue Feb 11 15:34:26 1997 Ian Lance Taylor <ian@cygnus.com>
1541
1542 * scripttempl/elfmips.sc: When relocating, put .mips16.fn.* and
1543 .mips16.call.* in .text.
1544
1545 start-sanitize-r5900
1546 Fri Feb 7 13:16:53 1997 Gavin Koch <gavin@cygnus.com>
1547
1548 * configure.tgt: add r5900.
1549
1550 end-sanitize-r5900
1551 start-sanitize-tic80
1552 Sun Feb 9 18:09:13 1997 Fred Fish <fnf@cygnus.com>
1553
1554 * emulparams/tic80coff.sh: New (dummy) file for TIc80.
1555 * scripttempl/tic80coff.sc: New (dummy) file for TIc80.
1556 * Makefile.in (etic80coff.c): Add target and rule to build it.
1557 * configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
1558
1559 end-sanitize-tic80
1560 Fri Jan 31 13:16:53 1997 Ian Lance Taylor <ian@cygnus.com>
1561
1562 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
1563 ".so" in the name, not ".so.".
1564 (gld${EMULATION_NAME}_search_dir): Accept a plain .so file.
1565
1566 * Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
1567 <alan@spri.levels.unisa.edu.au>.
1568
1569 Thu Jan 30 11:31:52 1997 Ian Lance Taylor <ian@cygnus.com>
1570
1571 * emultempl/sunos.em: Include <ctype.h>.
1572 (gld${EMULATION_NAME}_find_so): Skip the directory name when
1573 searching for ".so.".
1574 (gld${EMULATION_NAME}_search_dir): Make sure that the library name
1575 has a version number, and that only version numbers follow .so.
1576
1577 Wed Jan 29 18:15:00 1997 Geoffrey Noer <noer@cygnus.com>
1578
1579 * scripttempl/pe.sc:
1580 * scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
1581 section so Win32 executables are valid.
1582
1583 Mon Jan 27 12:28:43 1997 Ian Lance Taylor <ian@cygnus.com>
1584
1585 * scripttempl/elf.sc: Put linkonce reloc section in other
1586 appropriate reloc sections.
1587 * scripttempl/elfmips.sc: Add linkonce support.
1588 * scripttempl/elfppc.sc: Likewise.
1589
1590 Fri Jan 24 10:44:09 1997 Jeffrey A Law (law@cygnus.com)
1591
1592 * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
1593 stack up to 0x80000.
1594 * emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
1595
1596 Tue Jan 21 12:11:10 1997 Doug Evans <dje@seba.cygnus.com>
1597
1598 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
1599 to define `_stack'.
1600
1601 Thu Jan 16 17:07:52 1997 Ian Lance Taylor <ian@cygnus.com>
1602
1603 * ld.h (args_type): Rename auxiliary_filter_shlib to
1604 auxiliary_filters, and make it char **.
1605 * lexsup.c (parse_args): Handle -f by setting up an array.
1606 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1607 new name of auxiliary_filters.
1608
1609 * ld.texinfo (Options): Improve documentation of --filter and
1610 --auxiliary.
1611
1612 Tue Jan 14 15:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
1613
1614 * ld.texinfo (Options): Clarify that the normal usage is -T.
1615 (Commands): Likewise.
1616
1617 Thu Jan 9 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
1618
1619 * scripttempl/armcoff.sc: Correct mask used for .data address.
1620
1621 Wed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
1622
1623 * emultempl/pe.em: make default executable a.exe instead of
1624 a.out
1625
1626 Fri Jan 3 17:33:34 1997 Richard Henderson <rth@tamu.edu>
1627
1628 * scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
1629 shifting .plt back. Rumour has it that the NetBSD ld.so depends
1630 on .dynamic being after .got, so we leave that.
1631
1632 Fri Jan 3 14:04:40 1997 Ian Lance Taylor <ian@cygnus.com>
1633
1634 * Makefile.in (clean): Don't remove configdoc.texi.
1635 (maintainer-clean): Do remove configdoc.texi.
1636
1637 * ld.texinfo (Operators): Remove '@' from @smallexmple in comment
1638 to avoid confusing texi2roff.
1639
1640 Fri Jan 3 11:27:02 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1641
1642 * scripttempl/v850.sc (.zdata): Add .zcommon section.
1643 (.tdata): Add .tcommon and .tcommon_byte sections.
1644
1645 Thu Jan 2 18:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
1646
1647 * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
1648 * scripttempl/elfmips.sc: Use __start as the entry address for
1649 mips*-*-linux*.
1650
1651 Tue Dec 31 14:48:30 1996 Ian Lance Taylor <ian@cygnus.com>
1652
1653 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
1654
1655 * ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
1656 fields.
1657 * lexsup.c (parse_args): Recognize --auxiliary/-f and
1658 --filter/-F.
1659 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1660 Pass filter_shlib and auxiliary_filter_shlib to
1661 size_dynamic_sections.
1662 * ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
1663
1664 Mon Dec 30 13:55:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1665
1666 * scripttempl/v850.sc (.tdata) Add .tbss and .tbyte sections.
1667
1668 Wed Dec 18 22:57:35 1996 Stan Shebs <shebs@andros.cygnus.com>
1669
1670 * mpw-make.sed: Use NewFolderRecursive for installation.
1671
1672 Fri Dec 13 14:08:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1673
1674 * scripttempl/v850.sc: Make sure __{e,g}p start relative to the
1675 {s,t}data sections. Do not emit any linker generated symbols if
1676 -r. Use {TEXT,{Z,S,T}DATA}_START_ADDR variables to initialize
1677 where the different sections go. Change some whitespace.
1678
1679 * emulparams/v850.sh ({TEXT,{Z,S,T}DATA}_START_ADDR): Define
1680 appropriately. Remove crud not used anymore.
1681
1682 Fri Dec 13 10:19:57 1996 Jeffrey A Law (law@cygnus.com)
1683
1684 * Makefile.in (emn10200.c): Add dependencies.
1685 * configure.tgt: Handle mn10200.
1686 * emulparms/mn10200.sh: New file.
1687
1688 Thu Dec 12 17:04:55 1996 Ian Lance Taylor <ian@cygnus.com>
1689
1690 * emultempl/gld960c.em: Include <ctype.h>.
1691 (gld960_set_output_arch): Get the machine type from the -A option
1692 if there is one, rather than always using core.
1693
1694 Sat Dec 7 10:07:51 1996 Jeffrey A Law (law@cygnus.com)
1695
1696 * emulparms/mn10300.sh: Handle leading underscores.
1697
1698 Thu Dec 5 13:45:58 1996 Ian Lance Taylor <ian@cygnus.com>
1699
1700 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Only
1701 set hold_rel if SEC_ALLOC is set.
1702
1703 Tue Dec 3 11:29:20 1996 Ian Lance Taylor <ian@cygnus.com>
1704
1705 * ldlang.c (section_already_linked): Set the output_offset as well
1706 as the output_section when only reading symbols from a file.
1707
1708 Mon Dec 2 11:43:50 1996 Ian Lance Taylor <ian@cygnus.com>
1709
1710 * emulparams/*.sh: Make sure that each set of parameters which
1711 uses the elf.sc script sets MACHINE.
1712
1713 Wed Nov 27 03:22:05 1996 Jason Merrill <jason@yorick.cygnus.com>
1714
1715 * scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
1716 * scripttempl/elfd10v.sc: Likewise.
1717 * scripttempl/v850.sc: Likewise.
1718
1719 Tue Nov 26 16:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
1720
1721 * configure: Rebuild with autoconf 2.12.
1722
1723 Mon Nov 25 12:17:55 1996 Jim Wilson <wilson@cygnus.com>
1724
1725 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Add case
1726 for bfd_vma to init loop.
1727
1728 Mon Nov 25 09:55:07 1996 Jeffrey A Law (law@cygnus.com)
1729
1730 * emulparms/mn10300.sh: Remove bogus '_' prefix for
1731 entry symbol and ctor/dtor stuff.
1732
1733 Fri Nov 15 13:00:18 1996 Jeffrey A Law (law@cygnus.com)
1734
1735 * Makefile.in (emn10300.c): Add dependencies.
1736 * configure.tgt: Handle mn10300.
1737 * emulparms/mn10300.sh: New file.
1738
1739 Tue Nov 5 10:57:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1740
1741 * emulparams/d10velf.sh (READONLY_START_ADDR): Changed to 0x2000004.
1742 (EMBEDDED): Define.
1743
1744 Fri Nov 1 10:01:27 1996 Ian Lance Taylor <ian@cygnus.com>
1745
1746 * ld.texinfo: Add section on reporting bugs.
1747
1748 * scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
1749 symbols are correctly aligned.
1750
1751 Thu Oct 31 09:28:59 1996 Jeffrey A Law (law@cygnus.com)
1752
1753 * scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
1754 romzbss too.
1755
1756 Tue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1757
1758 * emulparams/d10velf.sh: Changes needed for D10V-EVA board.
1759 Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
1760 0x2000000.
1761
1762 * scripttempl/elfd10v.sc: Fix calculation of .text. Change
1763 .stack to start at 0x2007ffe.
1764
1765 Mon Oct 28 15:37:00 1996 Doug Evans <dje@canuck.cygnus.com>
1766
1767 * configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
1768
1769 Wed Oct 23 16:17:22 1996 Jeffrey A Law (law@cygnus.com)
1770
1771 * scriptempl/v850.sc (zdata): Fix typo "zrodata" -> "rozdata".
1772
1773 * scriptempl/v850.sc (zdata): Make sure this stays
1774 in lo-memory.
1775
1776 Tue Oct 22 11:36:47 1996 Jeffrey A Law (law@cygnus.com)
1777
1778 * scripttempl/v850.sc (__ep): Put it at the start
1779 of the tda section.
1780
1781 * scriptempl/v850.sc: Move all "normal" sections into
1782 the external memory region (0x100000 - 0x200000).
1783
1784 Mon Oct 21 17:16:59 1996 Michael Meissner <meissner@wogglebug.tiac.net>
1785
1786 * scripttempl/elfd10v.sc: Clone from elf.sc, move .text to
1787 0x10000, so that is more room for data.
1788
1789 * emulparams/d10velf.sh (TEXT_START_ADDR): Now 0x100000.
1790 (READONLY_START_ADDR): Now 0x0.
1791 (SCRIPT_NAME): Now elfd10v.
1792
1793 * Makefile.in (ed10velf.c): Depend on elfd10v.sc, not elf.sc.
1794
1795 Fri Oct 18 22:12:49 1996 Doug Evans <dje@canuck.cygnus.com>
1796
1797 * emulparams/m32relf.sh (TEXT_START_ADDR): Change from 0 to 0x100.
1798
1799 Fri Oct 18 15:43:38 1996 Ian Lance Taylor <ian@cygnus.com>
1800
1801 * Makefile.in (ALL_EMULATIONS): Remove eelf64alpha.o.
1802 (ALL_64_EMULATIONS): New variable.
1803 * configure.in: Accept --enable-64-bit-bfd option. If it is set
1804 with --enable-targets=all, include ALL_64_EMULATIONS in
1805 EMULATION_OFILES.
1806 * configure: Rebuild.
1807
1808 Fri Oct 18 12:58:35 1996 Jeffrey A Law (law@cygnus.com)
1809
1810 * scripttempl/v850.sc (__gp, __ep): Define.
1811
1812 Thu Oct 17 18:14:07 1996 Ian Lance Taylor <ian@cygnus.com>
1813
1814 * ld.texinfo: Try to consistently use a single or a double dash
1815 for each option.
1816
1817 Thu Oct 17 10:17:20 1996 Doug Evans <dje@canuck.cygnus.com>
1818
1819 * emulparams/m32relf.sh (EMBEDDED): Define.
1820
1821 Thu Oct 17 10:56:49 1996 Jeffrey A Law (law@cygnus.com)
1822
1823 * scripttempl/v850.sc (.zdata): Add this before .text.
1824 (.sdata): Also include .rosdata as part of the .sdata.
1825 (.tdata): Include this just before .sdata.
1826
1827 * emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
1828 * scripttempl/v850.sc: Wrap script with a "cat << EOF".
1829
1830 Wed Oct 16 23:10:01 1996 Jeffrey A Law (law@cygnus.com)
1831
1832 * scripttempl/v850.sc: New linker script for the V850.
1833 * Makefile.in: Use it.
1834
1835 Thu Oct 10 17:57:00 1996 Ian Lance Taylor <ian@cygnus.com>
1836
1837 * emulparams/elf32b4300.sh: Define _gp in OTHER_GOT_SYMBOLS, not
1838 OTHER_READWRITE_SECTIONS.
1839 * emulparams/elf32l4300.sh: Likewise.
1840
1841 Wed Oct 9 14:36:18 1996 Ian Lance Taylor <ian@cygnus.com>
1842
1843 * ld.h (ld_config_type): Add warn_section_align field.
1844 * lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
1845 (ld_options): Add --warn-section-align.
1846 (parse_args): Handle --warn-section-align.
1847 * ldlang.c (lang_size_sections): If warn_section_align, warn if
1848 the start of a section changes due to alignment.
1849 * ld.texinfo, ld.1: Document --warn-section-align.
1850 * ld.texinfo: Change some single dashes to double dashes.
1851
1852 * emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
1853 subsystem type. Ifdef out os2 type. Recognize a version number.
1854
1855 Tue Oct 8 12:07:13 1996 Ian Lance Taylor <ian@cygnus.com>
1856
1857 * emultempl/pe.em (set_pe_subsystem): When setting the subsystem
1858 to windows, set the entry point.
1859
1860 * Makefile.in (ldlex.c): Don't pass any options to $(LEX).
1861
1862 Mon Oct 7 17:29:05 1996 Ian Lance Taylor <ian@cygnus.com>
1863
1864 * ld.texinfo (Options): Mention .so extensions for shared
1865 libraries.
1866
1867 Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
1868
1869 * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
1870
1871 Fri Oct 4 18:49:31 1996 Ian Lance Taylor <ian@cygnus.com>
1872
1873 * scripttempl/m68kcoff.sc: Only set the address of .text if
1874 RELOCATING.
1875
1876 Fri Oct 4 10:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
1877
1878 * emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
1879 * scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
1880 (OUTPUT_FORMAT): Support bi-endian targets.
1881
1882 Thu Oct 3 13:52:03 1996 Ian Lance Taylor <ian@cygnus.com>
1883
1884 * fnmatch.h, fnmatch.c: Remove (now in libiberty).
1885 * Makefile.in: Rebuild dependencies.
1886 (CFILES): Remove fnmatch.c.
1887 (HFILES): Remove fnmatch.h.
1888 (OFILES): Remove fnmatch.o.
1889
1890 Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1891
1892 * Makefile.in (mostlyclean): Move config.log to distclean.
1893
1894 Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
1895
1896 * emultmpl/pe.em: increase size of stack reserve to 0x2000000
1897 (necessary in order to compile parse.c in gcc sources under NT)
1898
1899 Wed Oct 2 14:49:10 1996 Ian Lance Taylor <ian@cygnus.com>
1900
1901 * lexsup.c (ld_options): Fix typo in --rpath-link description.
1902 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
1903 --rpath if a needed library is not found.
1904
1905 Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com>
1906
1907 * configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
1908
1909 Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com>
1910
1911 * ld.texinfo (Options): Give more detail on -l option.
1912
1913 * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
1914 elf.sc does, so that glibc works better.
1915
1916 * ldver.c (ld_program_version): New variable.
1917 (ldversion): Use it.
1918 * ldver.h (ld_program_version): Declare.
1919 * lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
1920 --version. Change --version handling to match current GNU
1921 standards.
1922 (help): Print bug report address.
1923
1924 Mon Sep 30 12:14:43 1996 Doug Evans <dje@canuck.cygnus.com>
1925
1926 * Makefile.in (em32relf.c): Add rule for.
1927 * configure.tgt (m32r-*-*): Recognize.
1928 * emulparams/m32relf.sh: New file.
1929
1930 Thu Sep 26 13:58:47 1996 Stan Shebs <shebs@andros.cygnus.com>
1931
1932 * mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
1933 * mpw-config.in: Add mips-*-* case as mips-elf, and use more
1934 wildcards in matching.
1935 * mpw-emipself.c: New file, pregenerated mips elf emulation.
1936
1937 Tue Sep 17 12:18:21 1996 Ian Lance Taylor <ian@cygnus.com>
1938
1939 * ldint.texinfo: Rewrote.
1940
1941 * configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
1942
1943 Mon Sep 16 17:55:21 1996 Ian Lance Taylor <ian@cygnus.com>
1944
1945 * scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
1946 syntax error on __end__ line.
1947
1948 * scripttempl/armcoff.sc: For -N or -n, don't align .data. From
1949 Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
1950
1951 Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com)
1952
1953 * emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
1954
1955 Sun Sep 15 10:38:16 1996 Mark Alexander <marka@cygnus.com>
1956
1957 * emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
1958 stack at top of simulator memory.
1959
1960 Fri Sep 13 15:49:45 1996 Ian Lance Taylor <ian@cygnus.com>
1961
1962 * ldlex.l (SYMBOLCHARN): Add $, _, and ~.
1963
1964 Wed Sep 11 23:30:42 1996 Ian Lance Taylor <ian@cygnus.com>
1965
1966 * ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
1967
1968 Thu Sep 5 15:24:12 1996 Ian Lance Taylor <ian@cygnus.com>
1969
1970 * ldlang.c (section_already_linked): Accept a lang_input_statement
1971 as the PTR argument. If the file is symbols only, discard all
1972 input sections.
1973 (ldlang_add_file): Pass entry to bfd_map_over_sections.
1974
1975 Wed Sep 4 15:53:43 1996 Ian Lance Taylor <ian@cygnus.com>
1976
1977 * configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
1978 <fila@ibi.com>.
1979
1980 Tue Sep 3 00:52:54 1996 Jeffrey A Law (law@cygnus.com)
1981
1982 * emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
1983
1984 Sun Sep 1 21:48:58 1996 Jeffrey A Law (law@cygnus.com)
1985
1986 * emulparms/v850.sh: Set EMBEDDED.
1987
1988 Fri Aug 30 22:30:30 1996 Jeffrey A Law (law@cygnus.com)
1989
1990 * emulparms/v850.sh: Entry symbol is "_start", tweak
1991 ctor/dtor support.
1992
1993 Fri Aug 30 18:32:31 1996 Ian Lance Taylor <ian@cygnus.com>
1994
1995 * configure.tgt (sh-*-elf*): New target.
1996 * emulparams/shelf.sh: New file.
1997 * emulparams/shlelf.sh: New file.
1998 * Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
1999 (eshelf.c, eshlelf.c): New targets.
2000 * scripttempl/elf.sc: If EMBEDDED is defined, then don't add
2001 SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END
2002 around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
2003 OTHER_RELOCATING_SECTIONS if RELOCATING.
2004
2005 Thu Aug 29 16:57:46 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2006
2007 * configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
2008 pro.
2009
2010 Mon Aug 26 12:58:11 1996 Ian Lance Taylor <ian@cygnus.com>
2011
2012 * ldgram.y (section): Add opt_nocrossrefs; pass value to
2013 lang_enter_overlay.
2014 (opt_nocrossrefs): New nonterminal.
2015 * ldlex.l: Recognize NOCROSSREFS keyword in EXPRESSION mode.
2016 * ldlang.c (overlay_nocrossrefs): New static variable.
2017 (lang_enter_overlay): Add nocrossrefs parameter.
2018 (lang_leave_overlay): Only add nocrossrefs if overlay_nocrossrefs
2019 is set. Initialize overlay_nocrossrefs.
2020 * ldlang.h (lang_enter_overlay): Update declaration.
2021 * ld.texinfo (Overlays): Update documentation.
2022
2023 * ldver.c (ldversion): Print GNU ld in the version message.
2024
2025 Thu Aug 22 17:10:40 1996 Ian Lance Taylor <ian@cygnus.com>
2026
2027 * configure.host: Set HLDENV.
2028 * configure.in: Substitute HLDENV.
2029 * configure: Rebuild.
2030 * Makefile.in (HLDENV): New variable.
2031 ($(LD_PROG)): Use $(HLDENV).
2032
2033 Thu Aug 22 16:29:28 1996 Jeffrey A Law (law@cygnus.com)
2034
2035 * Makefile.in (ev850.c): New target.
2036 * configure.tgt (v850-*-*): New target.
2037 * emulparams/v850.sh: New file.
2038
2039 Thu Aug 22 11:16:02 1996 Stan Shebs <shebs@andros.cygnus.com>
2040
2041 * mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
2042
2043 Wed Aug 21 11:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
2044
2045 * scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
2046 containing sections.
2047
2048 Mon Aug 19 13:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
2049
2050 * fnmatch.c: Include sysdep.h.
2051
2052 Mon Aug 19 11:28:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2053
2054 * genscripts.sh: Undo 8/16 change.
2055
2056 * emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
2057
2058 Fri Aug 16 19:18:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2059
2060 * genscripts.sh: Explicitly reset any shell variables set or used
2061 by the various .sc scripts to allow inadvertant use of these
2062 names as normal environment variables by the person running
2063 configure.
2064
2065 * Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
2066
2067 Fri Aug 16 14:15:41 1996 James G. Smith <jsmith@cygnus.co.uk>
2068
2069 * scripttempl/armcoff.sc (__bss_start__, __bss_end__,
2070 __data_start__, __data_end__): Added to keep in sync. with the
2071 default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
2072
2073 Thu Aug 8 14:24:56 1996 Ian Lance Taylor <ian@cygnus.com>
2074
2075 * ldcref.c (check_reloc_refs): If info->same, look for any symbol
2076 defined in info->defsec, not just the section symbol.
2077
2078 Wed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
2079
2080 * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
2081 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
2082 (NEED_DECLARATION_SBRK): New macro.
2083 * configure, config.in: Rebuild.
2084 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
2085 * ldmain.c (sbrk): Declare if HAVE_SBRK and
2086 NEED_DECLARATION_SBRK.
2087
2088 * ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
2089
2090 Mon Aug 5 16:26:14 1996 Ian Lance Taylor <ian@cygnus.com>
2091
2092 * ldlex.l: Recognize OVERLAY.
2093 * ldgram.y: Add section_phdr field to %union.
2094 (section): Handle phdr_opt result. Add OVERLAY case.
2095 (opt_exp_without_type): New nonterminal.
2096 (phdr_opt): Return list of phdrs.
2097 (overlay_section): New nonterminal.
2098 * ldlang.c: Include <ctype.h>.
2099 (lang_leave_output_section_statement): Add phdrs parameter.
2100 Change all callers.
2101 (lang_section_in_phdr): Remove.
2102 (overlay_vma, overlay_lmn, overlay_max): New static variables.
2103 (struct overlay_list): Define.
2104 (overlay_list): New static variable.
2105 (lang_enter_overlay, lang_enter_overlay_section): New functions.
2106 (lang_leave_overlay_section, lang_leave_overlay): New functions.
2107 * ldlang.h (lang_leave_output_section_statement): Update
2108 declaration for new parameter.
2109 (lang_section_in_phdr): Don't declare.
2110 (lang_enter_overlay, lang_enter_overlay_section): Declare.
2111 (lang_leave_overlay_section, lang_leave_overlay): Declare.
2112 * ld.texinfo (Overlays): New node under SECTIONS, documenting
2113 overlays.
2114
2115 * ldlex.l: Recognize MAX and MIN.
2116 * ldgram.y (MAX, MIN): New terminals.
2117 (exp): Recognize MAX and MIN.
2118 * ldexp.c (fold_binary): Handle MAX and MIN.
2119 * ld.texinfo (Arithmetic Functions): Document MAX and MIN.
2120
2121 * ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
2122 index entries.
2123
2124 * ldgram.y (SIZEOF, ADDR): Do not specify type.
2125
2126 * ldcref.c (check_nocrossref): Skip symbols with no output
2127 sections.
2128
2129 Fri Aug 2 14:57:49 1996 Ian Lance Taylor <ian@cygnus.com>
2130
2131 * ldgram.y (LOADADDR): New terminal.
2132 (exp): Handle LOADADDR.
2133 * ldlex.l: Recognize LOADADDR.
2134 * ldexp.c (exp_print_token): Add LOADADDR.
2135 (fold_name): Implement LOADADDR.
2136 * ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
2137 * ld.texinfo (Arithmetic Functions): Document LOADADDR.
2138
2139 Thu Aug 1 12:52:19 1996 Ian Lance Taylor <ian@cygnus.com>
2140
2141 * ld.h (check_nocrossrefs): Declare.
2142 * ldlang.h (struct lang_nocrossref): Define.
2143 (struct lang_nocrossrefs): Define.
2144 (nocrossref_list): Declare.
2145 (lang_add_nocrossref): Declare.
2146 * ldlex.l: Recognize NOCROSSREFS keyword.
2147 * ldgram.y (%union): Add nocrossref field.
2148 (NOCROSSREFS): New terminal.
2149 (ifile_p1): Recognize NOCROSSREFS.
2150 (nocrossref_list): New nonterminal.
2151 * ldlang.c (nocrossref_list): Define.
2152 (lang_add_nocrossref): New function.
2153 * ldmain.c (main): If nocrossref_list is not NULL, call
2154 check_nocrossrefs.
2155 (warning_callback): Free symbols if there is no place to store
2156 them.
2157 (notice): Call add_cref if nocrossref_list is not NULL.
2158 * ldcref.c: Include "ldexp.h" and "ldlang.h".
2159 (check_nocrossrefs): New function.
2160 (check_nocrossref): New static function.
2161 (struct check_refs_info): Define.
2162 (check_refs, check_reloc_refs): New static functions.
2163 * Makefile.in: Rebuild dependencies.
2164 * ld.texinfo (Option Commands): Document NOCROSSREFS.
2165
2166 * ld.texinfo (Section Placement): Improve the wording of the
2167 wildcard documentation. Mention that wildcards are only searched
2168 for on the command line, not in the file system.
2169
2170 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
2171 definition of lib_path inside condition where it is used.
2172
2173 Wed Jul 31 13:17:10 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2174
2175 * emulparams/d10velf.sh: Now works with elf.sc.
2176
2177 Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2178
2179 * emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
2180
2181 Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
2182
2183 * ldlang.c (lang_size_sections): Add the section VMA to the result
2184 value when computing the address of a section.
2185
2186 * ld.h (args_type): Add cref field.
2187 * lexsup.c (parse_args): Set command_line.cref.
2188 * ldmain.c (main): Check command_line.cref rather than
2189 link_info.notice_all.
2190 (notice): Likewise.
2191
2192 * ldcref.c (output_one_cref): Don't crash if a symbol is defined
2193 in a section without an owner.
2194
2195 Mon Jul 29 17:23:33 1996 Ian Lance Taylor <ian@cygnus.com>
2196
2197 * fnmatch.h, fnmatch.c: New files.
2198 * ldlex.l: Remove unused definition of FILENAME. Add definition
2199 of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a
2200 NAME.
2201 * ldgram.y (file_NAME_list): Accept '*' and '?' specially.
2202 (input_section_spec): Accept '?' specially.
2203 (statement): Change exp to mustbe_exp in length and FILL cases.
2204 (section): Call ldlex_script before section statements, and call
2205 ldlex_popstate after them.
2206 * ldlang.c: Include "fnmatch.h".
2207 (wildcardp): New static function.
2208 (wild_section): Permit the section name to be a wildcard.
2209 (wild_file): New static function, broken out of wild.
2210 (wild): Call wild_file. Permit the file name to be a wildcard.
2211 (open_input_bfds): Don't call lookup_name for a wildcard pattern.
2212 * Makefile.in: Rebuild dependencies.
2213 (CFILES): Add fnmatch.c.
2214 (HFILES): Add fnmatch.h.
2215 (OFILES): Add fnmatch.o.
2216 * ld.texinfo: Document that file and section names can now be
2217 wildcard patterns.
2218
2219 * ldlang.c (lang_place_orphans): Correct condition: place a common
2220 section if not relocateable or if common definitions are forced.
2221
2222 Wed Jul 24 12:16:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2223
2224 * emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
2225
2226 Wed Jul 24 13:38:22 1996 Michael Meissner <meissner@wogglebug.tiac.net>
2227
2228 * configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
2229
2230 Tue Jul 23 10:36:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2231
2232 * Makefile.in (ed10velf.c): New target.
2233 * configure.tgt (d10v-*-elf*): New target.
2234 * emulparams/d10velf.sh: New file.
2235
2236 Thu Jul 18 16:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
2237
2238 * configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
2239 <ANDREWG@microlise.co.uk>.
2240
2241 * configure.host: Change irix5 to irix[56]*.
2242 * configure.tgt: Likewise.
2243
2244 Wed Jul 17 10:52:46 1996 Kim Knuttila <krk@cygnus.com>
2245
2246 * emultempl/pe.em (sort_sections): Pay attention to return code.
2247
2248 * ldmisc.c (demangle): Remove all prefix '.'s from a name.
2249
2250 Mon Jul 15 11:49:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2251
2252 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round
2253 the value of __start_SECNAME to the alignment required by the
2254 section to be placed.
2255
2256 Tue Jul 9 12:09:02 1996 Ian Lance Taylor <ian@cygnus.com>
2257
2258 * configure.tgt (mips*el-*-elf*): Use elf32elmip.
2259 (mips*-*-elf*): Use elf32ebmip.
2260 * emulparams/elf32bmip.sh (EMBEDDED): Don't define.
2261 * emulparams/elf32lmip.sh (EMBEDDED): Don't define.
2262 * emulparams/elf32elmip.sh: New file; copy of elf32lmip.sh with
2263 EMBEDDED defined.
2264 * emulparams/elf32ebmip.sh: New file; copy of elf32bmip.sh with
2265 EMBEDDED defined.
2266 * emulparams/elf32b4300.sh (EMBEDDED): Define.
2267 * emulparams/elf32l4300.sh (EMBEDDED): Define.
2268 * Makefile.in (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
2269 (eelf32ebmip.c, eelf32elmip.c): New targets.
2270
2271 Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
2272
2273 * ldver.c (ldversion): Set version to cygnus-2.7.1.
2274
2275 * Released binutils 2.7.
2276
2277 * emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
2278 System V file name limitations.
2279 * configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
2280 pc532macha rather than pc532machaout.
2281 * Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
2282 epc532macha.o.
2283 (epc532macha.c): Rename target from epc532machaout.c.
2284
2285 Wed Jul 3 11:40:10 1996 Ian Lance Taylor <ian@cygnus.com>
2286
2287 * ldlang.c (print_padding_statement): Use %u, not %x, to print
2288 fill value.
2289
2290 Sun Jun 30 11:16:43 1996 Stan Shebs <shebs@andros.cygnus.com>
2291
2292 * mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
2293
2294 Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
2295
2296 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
2297 file just before the .so file, rather than just after.
2298
2299 * configure.host: Use -print-file-name=FILE rather than piping
2300 -print-libgcc-file-name through sed.
2301 (i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
2302 crtend.o files, in case gcc doesn't use them.
2303 * Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
2304
2305 Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
2306
2307 * configure.tgt (mips*-dec-osf*): New target.
2308
2309 Tue Jun 25 22:15:29 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2310
2311 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2312 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2313 (docdir): Removed.
2314 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2315 (AC_PROG_INSTALL): Added.
2316 * configure: Rebuilt.
2317
2318 Mon Jun 24 18:48:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2319
2320 * scripttempl/elfppc.sc (_GLOBAL_OFFSET_TABLE_): Don't do a
2321 PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
2322 non-fixed location.
2323
2324 Mon Jun 24 17:55:31 1996 Jouke Numan <jnuman@bazis.nl>
2325
2326 * ldlang.h (enum section_type): Define.
2327 (lang_output_section_statement_type): Remove loadable field. Add
2328 sectype field.
2329 (lang_enter_output_section_statement): Change flags parameter in
2330 prototype to sectype.
2331 * ldgram.y (typebits): Remove.
2332 (sectype): New static variable.
2333 (opt_at): Use sectype rather than typebits.
2334 (type): Set sectype rather than typebits.
2335 (atype): Likewise.
2336 * ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
2337 EXPRESSION mode.
2338 * ldlang.c (lang_output_section_statement_lookup): Set sectype
2339 field rather than loadable field.
2340 (wild_doit): Check sectype rather than loadable.
2341 (lang_record_phdrs): Likewise.
2342 (lang_enter_output_section_statement): Rename flags parameter to
2343 sectype. Set sectype field rather than loadable field. Set flags
2344 field based on sectype.
2345
2346 Mon Jun 24 12:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
2347
2348 * scripttempl/elf.sc: Force .stab* and .comment sections to start
2349 at 0.
2350
2351 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
2352 using shared libraries.
2353 * configure: Rebuild with autoconf 2.10.
2354
2355 Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
2356
2357 * configure.tgt: Add support for *-*-rtems* configurations.
2358
2359 Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
2360
2361 * configure.tgt (alpha-*-linuxecoff*): New target.
2362 (alpha-*-linux*): Use elf64alpha.
2363 * emulparams/elf64alpha.sh: New file.
2364 * emultempl/elf32.em: If ELFSIZE is not set, set it to 32. Use
2365 ${ELFSIZE} rather than 32 when calling BFD routines.
2366 (hold_rodata): New static variable.
2367 (gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
2368 readonly section that is not code.
2369 (gld${EMULATION_NAME}_place_section): Set hold_rodata. Don't use
2370 a .rel section unless its bfd_section field is not NULL.
2371 * Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
2372 (eelf64alpha.c): New target.
2373
2374 Fri Jun 21 12:45:46 1996 Ian Lance Taylor <ian@cygnus.com>
2375
2376 * ldmisc.c (vfinfo): Correct handling of 0 in %W case.
2377
2378 Thu Jun 20 13:55:28 1996 Ian Lance Taylor <ian@cygnus.com>
2379
2380 Add enough support to understand the gcc svr3.ifile script:
2381 * ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context. Add
2382 BIND keyword.
2383 * ldgram.y: Add BIND token.
2384 (section): Recognize GROUP.
2385 (opt_ext_with_type): Recognize a couple of cases of BIND.
2386 * ldlang.c (init_os): Don't do anything if section is already
2387 initialized. Call exp_init_os on addr_tree field.
2388 (exp_init_os): New static function.
2389 (map_input_to_output_sections): Call exp_init_os on assignment
2390 expression.
2391 (lang_place_orphans): Check for common sections by name COMMON
2392 rather than by common_section field. Don't warn about absence of
2393 [COMMON] command.
2394
2395 * ldlang.h (lang_input_statement_type): Remove useless fields
2396 common_section, common_output_section, and complained, as well as
2397 all references to them.
2398
2399 * ldexp.c: Reindent a lot of code.
2400 (exp_fold_tree): Call FAIL rather than einfo in default case.
2401
2402 Wed Jun 19 11:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
2403
2404 * configure.host (m88*-*-dgux*): Quote HOSTING_CRT0. From
2405 <randall.hron@medaphis.com>.
2406
2407 Tue Jun 18 15:53:09 1996 Jeffrey A. Law <law@rtl.cygnus.com>
2408
2409 * scripttempl/h8300s.sc: New file for H8/S.
2410 * emulpararms/h8300s.sh: New file for H8/S.
2411 * Makefile.in (ALL_EMULATIONS): Add H8/S.
2412 (e_h8300s.c): Add dependencies.
2413 * configure.tgt: Add H8/S to targ_extra_emuls.
2414
2415 Tue Jun 18 17:55:39 1996 Ian Lance Taylor <ian@cygnus.com>
2416
2417 * configure.tgt (i[345]86*-*-isc*): New target. From
2418 <uddeborg@carmen.se>.
2419
2420 Wed Jun 12 12:46:21 1996 Ian Lance Taylor <ian@cygnus.com>
2421
2422 * lexsup.c: Include "libiberty.h".
2423 (parse_args): Copy the -Y argument into memory.
2424 (set_default_dirlist): Don't put the ':' back into the directory
2425 list.
2426
2427 Fri Jun 7 11:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
2428
2429 * emultempl/sunos.em: Include libiberty.h.
2430 (gld${EMULATION_NAME}_set_symbols): New static function to add
2431 LD_LIBRARY_PATH to the list of search directories.
2432 (ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
2433
2434 Thu Jun 6 11:50:31 1996 Ian Lance Taylor <ian@cygnus.com>
2435
2436 * emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
2437 rather than . when computing _gp value. From Per Fogelstrom.
2438 * emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
2439
2440 * ldmain.c (main): Don't close and unlink the file on error, since
2441 remove_output will do it anyhow.
2442 * ldlang.c (open_output): Set boolean variable to true, not 1.
2443
2444 Wed Jun 5 18:34:14 1996 James G. Smith <jsmith@cygnus.co.uk>
2445
2446 * emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
2447 elfmips instead of elf.
2448
2449 Tue Jun 4 18:43:07 1996 Ian Lance Taylor <ian@cygnus.com>
2450
2451 * ldcref.c: New file.
2452 * ld.h (add_cref, output_cref): Declare.
2453 * ldmain.c (main): Initialize notice_all field. If it is set at
2454 end of link, call output_cref.
2455 (notice): Rename from notice_ysym. Check notice_all.
2456 * ldmisc.c (finfo): Make globally visible.
2457 * ldmisc.h (finfo): Declare.
2458 * lexsup.c (OPTION_CREF): Define.
2459 (ld_options): Add "cref".
2460 (parse_args): Handle OPTION_CREF.
2461 * Makefile.in: Rebuild dependencies.
2462 (CFILES): Add ldcref.c.
2463 (OFILES): Add ldcref.o.
2464 * ld.texinfo, ld.1: Document --cref.
2465
2466 Tue Jun 4 12:12:25 1996 Tom Tromey <tromey@csk3.cygnus.com>
2467
2468 * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
2469
2470 Fri May 31 12:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
2471
2472 * emultempl/pe.em (sort_sections): Don't assume that a
2473 wild_statement has a section name.
2474
2475 Wed May 29 13:13:35 1996 Ian Lance Taylor <ian@cygnus.com>
2476
2477 * scripttempl/elfmips.sc: Quote test -z argument.
2478
2479 * ld.texinfo: Clarify the CONSTRUCTORS command.
2480
2481 Thu May 23 16:07:44 1996 Ian Lance Taylor <ian@cygnus.com>
2482
2483 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
2484 file, not impfile.
2485
2486 Wed May 22 11:31:30 1996 Doug Evans <dje@seba.cygnus.com>
2487
2488 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
2489 if final link.
2490 * emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
2491 (sort_by_section_name, sort_sections_1): New functions.
2492 (sort_sections): Only sort by file name sections in .idata.
2493 Add "Grouped Sections" support.
2494 (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
2495 Sections.
2496 (gld${EMULATION_NAME}_place_section): Delete.
2497 * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
2498 (.CRT,.rsrc): Rewrite to use Grouped Section support.
2499
2500 Tue May 21 14:31:48 1996 Stan Shebs <shebs@andros.cygnus.com>
2501
2502 * mpw-eppcmac.c: Update to reflect changes to aix.em.
2503
2504 Sun May 19 16:59:44 1996 Doug Evans <dje@seba.cygnus.com>
2505
2506 * ldlang.c (dprint_statement): Stop printing at end of list.
2507
2508 Sat May 18 13:12:05 1996 Steve Chamberlain <sac@slash.cygnus.com>
2509
2510 Support for --force-exe-suffix
2511 * ld.h (args_type): Add force_exe_suffix.
2512 * ld.texinfo: Add documentation.
2513 * ldmain.c (main): Add support for option.
2514 * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
2515 (ld_options, parse_args): Add support for option.
2516
2517 Wed May 15 12:50:25 1996 Jim Wilson <wilson@chestnut.cygnus.com>
2518
2519 * emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
2520
2521 Fri May 10 16:28:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2522
2523 * scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
2524 referenced but not defined.
2525
2526 Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
2527
2528 * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
2529 Set a new variable to signify if the final target is an embedded
2530 system.
2531 * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
2532 .text for an embedded system.
2533
2534 Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
2535
2536 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
2537 (gld${EMULATION_NAME}_place_section): New function.
2538 (hold_{section,use,text,rdata,data}): New static locals.
2539 (ld_${EMULATION_NAME}_emulation): Update orphan field.
2540 * scripttempl/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
2541 (INIT,FINI): Delete, unused.
2542 (.text): Document orphan .text.foo sections.
2543 (.rdata): Document orphan .rdata.foo sections.
2544 (.data): Document orphan .data.foo sections.
2545
2546 Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
2547
2548 * scripttempl/h8300.sc: Place ".tiny" sections right
2549 after ".data" sections.
2550 * scripttempl/h8300h.sc: Place ".tiny" sections into
2551 the "tiny" memory region, 0xff8000 through 0xffff00.
2552
2553 * scripttempl/h8300.sc: Set the entry point to the value of
2554 "_start" rather than the start of the text segment.
2555 * scripttempl/h8300h.sc: Likewise.
2556
2557 * scripttempl/h8300.sc: Place .rodata sections before .text
2558 sections in main ram.
2559 * scripttempl/h8300h.sc: Likewise.
2560
2561 Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
2562
2563 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
2564 8-bit region and 8-bit sections.
2565
2566 Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
2567
2568 * ldlang.c (section_already_linked): Fix typos.
2569
2570 Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
2571
2572 * scripttempl/pe.sc (.endjunk): Define __end__.
2573
2574 Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
2575
2576 * ldlang.c (longest_section_name): Remove.
2577 (SECTION_NAME_MAP_LENGTH): Define.
2578 (print_size, print_alignment, print_fill, print_section): Remove.
2579 (print_flags): Remove.
2580 (lang_map): Rewrite.
2581 (print_output_section_statement): Rewrite.
2582 (print_assignment): Rewrite.
2583 (print_one_symbol): Rewrite.
2584 (print_input_section): Rewrite.
2585 (print_fill_statement): Rewrite.
2586 (print_data_statement): Rewrite.
2587 (print_address_statement): New static function.
2588 (print_reloc_statement): Rewrite.
2589 (print_padding_statement): Rewrite.
2590 (print_wild_statement): Rewrite.
2591 (print_statement_list): Clean up.
2592 (print_statement): Clean up. Some minor output changes.
2593 (print_statements): Clean up.
2594 (load_symbols): Put another - before -whole-archive.
2595 * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
2596 print 0x and to omit leading zeroes. For etree_rel, use %B to
2597 print the BFD. For etree_assign, remove the space after the
2598 destination name.
2599 * ldwrite.c: Include "libiberty.h".
2600 (clone_section): Call xstrdup, not strdup.
2601 (ldwrite): Don't print any map information.
2602 (print_symbol_table, print_file_stuff, print_symbol): Remove.
2603 * ldmain.c (main): Call lang_map when appropriate.
2604 * ldmisc.c (vfinfo): Add support for %W.
2605 (print_address): Remove.
2606 * ldmisc.h (print_address): Don't declare.
2607 * Makefile.in: Rebuild dependencies.
2608
2609 Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2610
2611 * configure.host (m68*-*-linux*): Add -dynamic-linker to
2612 HOSTING_CRT0. Search -lgcc both before and after -lc in
2613 HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
2614 at first.
2615 (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
2616 directory at first.
2617
2618 Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
2619
2620 * ldmisc.h (demangle): Declare.
2621 * ldmisc.c: Include "libiberty.h". Include demangle.h with "",
2622 not <>.
2623 (demangle): Make non-static. Remove remove_underscore paramter.
2624 Always return an allocated string.
2625 (vfinfo): Free result of demangle. Add case 'G'. Use %T to print
2626 functionname, rather than calling demangle. Print a colon between
2627 the BFD(section+offset) and the line number.
2628 * ldmain.c (add_archive_element): Improve format of archive
2629 information in map file.
2630 (constructor_callback): Don't print anything to the map file.
2631 * ldlang.c (lang_one_common): Improve format of common symbol
2632 information in map file.
2633 * ldctor.c (ldctor_build_sets): If producing a map file, print set
2634 information.
2635 * ldwrite.c (print_symbol_table): Print a newline before the
2636 header in the map file.
2637 * Makefile.in: Rebuild dependencies.
2638
2639 * ldmisc.c (vfinfo): Reindent.
2640
2641 Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
2642
2643 * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
2644 don't clobber it when not relaxing.
2645
2646 * ld.h (ld_config_type): Remove traditional_format field.
2647 * ldmain.c (main): Use link_info.traditional_format rather than
2648 config.traditional_format.
2649 * ldlang.c (ldlang_open_output): Likewise.
2650 * lexsup.c (parse_args): Likewise.
2651 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
2652 * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
2653
2654 * ldlang.c (wild_doit): Discard debugging sections if we are
2655 stripping debugging information.
2656
2657 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
2658
2659 Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
2660
2661 * ldexp.c (fold_binary): Correct handling of subtraction with
2662 absolute values.
2663 (fold_name): Permit symbols in lang_allocating_phase_enum.
2664
2665 * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
2666 accidental changes in last patch.
2667
2668 Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2669
2670 * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
2671 (powerpcle*-*-{sysv,solaris}): Ditto.
2672
2673 Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
2674
2675 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
2676 in m68k/crt0.S without things blowing up.
2677
2678 Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
2679
2680 * scripttempl/m68kcoff.sc: Remove default address for .data so
2681 .text, .data, and .bss are all sequential.
2682
2683 Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
2684
2685 * scripttempl/m68kcoff.sc: Remove regions and simplify.
2686
2687 Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
2688
2689 * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
2690 bytes of the address space. Put data from the ".eight" sections
2691 into the 8-bit area.
2692 * scripttempl/h8300h.sc: Likewise.
2693
2694 Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
2695
2696 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
2697 Pass $ARCH to ldfile_set_output_arch instead of setting
2698 ldfile_output_architecture directly.
2699
2700 Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2701
2702 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
2703 next to .text. Put _etext after .text, .init, .fini, and
2704 .rodata{,2} sections.
2705
2706 Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
2707
2708 * ld.texinfo: Rearrange option documentation.
2709
2710 * lexsup.c (ld_options): New static array.
2711 (parse_args): Build shortopts and longopts from ld_options array.
2712 (help): New static function.
2713 * ldver.h (help): Don't declare.
2714 * ldver.c (ldversion): Reindent.
2715 (help): Remove.
2716
2717 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
2718
2719 Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
2720
2721 * emultempl/elf32.em: When checking for a native emulation, check
2722 that the current emulation is the default emulation.
2723 * emultempl/sunos.em: Likewise.
2724
2725 * configure.in: Permit --enable-shared to specify a list of
2726 directories.
2727 * configure: Rebuild.
2728
2729 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
2730 for HP/UX compatibility.
2731
2732 Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
2733
2734 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
2735 static function, if ${host} = ${target}.
2736 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
2737 needed shared library if ${host} = $[target}.
2738
2739 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
2740 HOSTING_CRT0. Search -lgcc both before and after -lc in
2741 HOSTING_LIBS.
2742
2743 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
2744 Polstra <jdp@polstra.com>.
2745
2746 Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
2747
2748 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
2749 architecture number.
2750 * scripttempl/elf.sc: Use $MACHINE definition if present.
2751 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
2752 template as 4300.
2753
2754 Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
2755
2756 * ldlang.c (lang_size_sections): Change region check to handle
2757 regions which end at the highest possible address correctly.
2758 From Roland Weber <roweber@ira.uka.de>.
2759
2760 * ldlang.c (section_already_linked): New static function.
2761 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
2762 relocateable link. Don't worry about section being NULL, since it
2763 never should be. Don't call init_os unless the section is going
2764 to be added.
2765 (ldlang_add_file): Call section_already_linked for each section.
2766 * ldmain.c (multiple_definition): Don't warn about multiple
2767 definitions in sections which are being discarded.
2768
2769 Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
2770
2771 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
2772 * emultempl/pe.em (init): Remove special case PPC code.
2773
2774 Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
2775
2776 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
2777 so as not to overwrite the magic syscall entry at 0xc4.
2778 * scripttempl/h8300h.sc: Likewise.
2779
2780 Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
2781
2782 * configure.tgt (sparc64-*-solaris2*): Delete.
2783 Stick with sparc-*-solaris2*.
2784
2785 Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
2786
2787 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
2788 * ldlang.c (init_os): Fail on an attempt to initialize any section
2789 named DISCARD_SECTION_NAME.
2790 (wild_doit): Discard input sections assigned to an output section
2791 named DISCARD_SECTION_NAME.
2792 * ld.texinfo: Document use of /DISCARD/.
2793
2794 * ldlang.c: Fix some indentation and comments.
2795
2796 Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
2797
2798 * ldmain.c (main): Call bfd_set_error_program_name.
2799
2800 Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
2801
2802 * ld.texinfo: Fix a couple of indexing entries. Mention that
2803 --verbose displays builtin linker scripts.
2804
2805 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
2806 and the local symbol name does not match the filename, print the
2807 filename as well.
2808
2809 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
2810 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
2811 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
2812 as TEXT_START_ADDR.
2813
2814 Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2815
2816 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
2817
2818 Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
2819
2820 * ldmain.c (add_wrap): New function.
2821 * ldmain.h (add_wrap): Declare.
2822 * lexsup.c (parse_args): Call add_wrap.
2823
2824 Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
2825
2826 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
2827
2828 Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
2829
2830 * scripttempl/h8300.sc: Change name of page zero memory
2831 from "null" to "vectors". Create an output section for
2832 vectors. Add comments on how to explicitly place items
2833 in the vector table.
2834 * scripttempl/h8300h.sc: Likewise.
2835
2836 Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
2837
2838 * emultempl/lnk960.em (machine_table): Add jx and hx.
2839
2840 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
2841 support it.
2842
2843 Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
2844
2845 * ld.h (ld_config_type): Add warn_multiple_gp field.
2846 * lexsup.c (parse_args): Handle --warn-multiple-gp.
2847 * ldmain.c (warning_callback): Suppress multiple gp values warning
2848 if --warn_multiple_gp was not used.
2849 * ld.texinfo, ld.1: Document --warn-multiple-gp.
2850
2851 Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
2852
2853 * lexsup.c (parse_args): Handle --wrap.
2854 * ldmain.c (main): Initialize link_info.wrap_hash.
2855 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
2856 and NAME cases.
2857 * ld.texinfo, ld.1: Document --wrap.
2858
2859 * configure: Rebuild with autoconf 2.8.
2860
2861 Don't do SunOS style dynamic linking for sparc-aout:
2862 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
2863 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
2864 (sparc*-wrs-vxworks*): Likewise.
2865 * emulparams/sparcaout.sh: New file.
2866 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
2867 (esparcaout.c): New target.
2868
2869 Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2870
2871 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
2872 in a different manner to work around differences in shell variable
2873 expansion.
2874
2875 Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
2876
2877 * ldemul.h (ldemul_unrecognized_file): Declare.
2878 (ldemulation_xfer_type): Add unrecognized_file field.
2879 * ldemul.c (ldemul_unrecognized_file): New function.
2880 * ldlang.c (load_symbols): If a file can not be recognized, call
2881 ldemul_unrecognized_file before trying it as a linker script.
2882 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
2883 function.
2884 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
2885 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
2886
2887 Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
2888
2889 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
2890 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
2891
2892 Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2893
2894 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
2895 Search trinary.cond rather than searching trinary.lhs twice.
2896
2897 Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
2898
2899 * mpw-make.sed: Edit out shared library support.
2900 (@TDIRS@): Edit out, can't use genscripts.
2901
2902 Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2903
2904 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
2905 * emulparams/m68klinux.sh: New file.
2906 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
2907 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
2908 bfd_linux_size_dynamic_sections.
2909 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
2910 (em68klinux.c): New target.
2911 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
2912
2913 Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
2914
2915 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
2916 Fill in missing entries.
2917
2918 * lexsup.c (parse_args): Recognize --no-whole-archive.
2919 * ldlang.h (lang_input_statement_type): Add whole_archive field.
2920 * ldlang.c (new_afile): Set whole_archive field.
2921 (load_symbols): Check input file specific whole_archive field
2922 rather than global variable.
2923 * ld.texinfo, ld.1: Document --no-whole-archive.
2924
2925 Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
2926
2927 * configure.tgt: Correct gldi960 to gld960.
2928
2929 Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
2930
2931 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
2932 the SONAME if it is available.
2933 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
2934 filename, when checking for conflicting library versions. Don't
2935 assume that the suffix is only numbers and dots.
2936
2937 * ld.texinfo: Mention that -R can be used for -rpath.
2938
2939 Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
2940
2941 * configure.host: Check for 'do not mix' from native linker before
2942 trying to use -rpath.
2943
2944 Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
2945
2946 * configure.in: Remove explicit substitution of CFLAGS; autoconf
2947 does it anyhow.
2948 * configure: Rebuild.
2949 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
2950
2951 * configure.in: Call AC_PROG_CC before configure.host.
2952 * configure: Rebuild.
2953 * configure.host: Remove go32 host, since it should no longer be
2954 necessary. Don't set CC for romp host.
2955
2956 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
2957 the text segment ends exactly on a page boundary.
2958
2959 * configure.in: Substitute RPATH_ENVVAR.
2960 * configure: Rebuild.
2961 * configure.host: Set RPATH_ENVVAR.
2962 * Makefile.in (RPATH_ENVVAR): New variable.
2963 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
2964
2965 Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
2966
2967 * configure.in: Redo emulation handling so that each emulation
2968 searches the correct tool directory, based on the target alias.
2969 For example, "configure --enable-targets=m68k-coff i386-linux"
2970 will search /usr/local/i386-linux/lib for linux and
2971 /usr/local/m68k-coff/lib for m68k-coff.
2972 * configure: Rebuild.
2973 * configure.tgt: Add special tdir settings for Linux.
2974 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
2975 for each eEMUL.c target.
2976 * genscripts.sh: Accept specific alias as 9th argument, and use it
2977 in LIB_PATH.
2978
2979 Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
2980
2981 * ldlang.c (lang_set_startof): Don't do anything for a
2982 relocateable link.
2983
2984 * ldgram.y (mri_script_file): Call mri_draw_tree.
2985 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
2986 create memory regions.
2987 (mri_load): Don't call mri_draw_tree.
2988 * mri.h (mri_draw_tree): Declare.
2989
2990 * configure.tgt (m68*-*-psos): New target.
2991 * emulparams/m68kpsos.sh: New file.
2992 * scripttempl/psos.sc: New file.
2993 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
2994 (em68kpsos.c): New target.
2995
2996 Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
2997
2998 * configure.tgt (*-*-ieee*): New target; use vanilla.
2999
3000 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
3001 `:foo' from ${ARCH}.
3002
3003 Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
3004
3005 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
3006 .rodata in .data.
3007
3008 Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
3009
3010 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
3011
3012 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
3013 it looks like we might be linking in two different versions of the
3014 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
3015
3016 Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
3017
3018 * ldlang.c (lang_size_sections): Increment the section size when a
3019 padding statement is encountered.
3020
3021 Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
3022
3023 * configure.in: Look for --enable-shared. Change the value of
3024 BFDLIB when linking against a shared library on SunOS.
3025 * configure: Rebuild.
3026 * configure.host: If using a shared BFD library, try to pass a
3027 reasonable -rpath option when linking.
3028 * Makefile.in (BFDLIB): Set to @BFDLIB@.
3029
3030 Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
3031
3032 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
3033 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
3034
3035 Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
3036
3037 Support for building bfd and opcodes as shared libraries, based on
3038 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
3039 * configure.in (HLDFLAGS): New substitution.
3040 * configure: Rebuild.
3041 * configure.host: Set HLDFLAGS on SunOS.
3042 * Makefile.in (HLDFLAGS): New variable.
3043 (BFDDEP): New variable.
3044 (BFDLIB): Change to -L../bfd -lbfd.
3045 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
3046 $(HLDFLAGS) in link.
3047 (check): Set LD_LIBRARY_PATH in the environment.
3048
3049 Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
3050
3051 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
3052 in the read-only section, not read/write unless we are making a
3053 shared library.
3054 (.debug*): Add dwarf debug sections.
3055 (.rela.{sdata*,sbss*}): Add sections.
3056
3057 Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
3058
3059 * configure: Regenerate.
3060
3061 Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
3062
3063 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
3064 for SVR4 compatibility.
3065
3066 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
3067
3068 Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
3069
3070 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
3071 * emultempl/pe.em (definfo init): Make the default stack reserve
3072 of a PPC larger.
3073
3074 Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
3075
3076 * configure.tgt (m68*-apple-aux*): New target.
3077 * emulparams/m68kaux.sh: New file.
3078 * scripttempl/m68kaux.sc: New file.
3079 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
3080 (em68kaux.c): New target.
3081
3082 Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
3083
3084 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
3085 -bnoentry, since the right thing tends to happen anyhow.
3086
3087 Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
3088
3089 * ld.texinfo, ld.1: Document -export-dynamic.
3090
3091 Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3092
3093 * emultempl/sunos.em: Check for native compile by comparing
3094 ${target} and ${host}.
3095
3096 Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
3097
3098 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
3099 TEXT_START_ADDR to allow use on IDT and PMON systems.
3100
3101 Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
3102
3103 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
3104 correct spelling.
3105
3106 Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
3107
3108 * configure.tgt (sparc64-*-solaris2*): New configuration.
3109 (sparc64-*-aout*): Renamed from sparc64*.
3110
3111 Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3112
3113 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
3114 * genscripts.sh: Set host, target and target_alias variables.
3115 Check for native compile by comparing ${target} and ${host}.
3116 * emultempl/elf32.em: Likewise.
3117 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
3118
3119 Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3120
3121 * scripttempl/elfppc.sc: Refine eabi support to better support
3122 .sdata, .sdata2, .sbss, etc. sections.
3123
3124 Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
3125
3126 * ldgram.y (%union): Add phdr field.
3127 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
3128 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
3129 (opt_hdrs, hdr): Remove.
3130 (phdr_val): New nonterminal.
3131 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
3132 and phdrs parameters. Add flags parameter.
3133 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
3134 to bfd_record_phdr.
3135 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
3136 phdrs fields. Add flags field.
3137 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
3138 (lang_new_phdr): Update declaration.
3139 * ld.texinfo: Document FLAGS.
3140
3141 Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
3142
3143 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
3144 Don't make a shared library because of an undefined reference to
3145 __GLOBAL_OFFSET_TABLE_.
3146
3147 Add some Irix 5 support, mostly from Kazumoto Kojima
3148 <kkojima@info.kanagawa-u.ac.jp>:
3149 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
3150 (SHLIB_TEXT_START_ADDR): Define.
3151 (OTHER_GOT_SYMBOLS): Define.
3152 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
3153 (EXECUTABLE_SYMBOLS): Don't define.
3154 (DYNAMIC_LINK): Don't define.
3155 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
3156 * scripttempl/elfmips.sc: New file.
3157 * configure.host (mips*-dec-bsd*): Change mips to mips*.
3158 (mips*-sgi-irix4*): Likewise.
3159 (mips*-sgi-irix5*): New entry.
3160 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
3161 elf.sc.
3162 (eelf32lmip.c): Likewise.
3163
3164 Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3165
3166 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
3167 .rela.got.neg section.
3168
3169 Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
3170
3171 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
3172
3173 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
3174 ANSI_PROTOTYPES is defined. Remove special handling of
3175 WINDOWS_NT. Various indendation fixes.
3176 (vfinfo): Change fmt parameter to const char *.
3177 (info_msg): Write <stdarg.h> version.
3178 (einfo, minfo, finfo): Likewise.
3179 (info_assert): Change file parameter to const char *.
3180 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
3181 defined, use a real prototype.
3182 (info_assert): Change first parameter to be const char *.
3183
3184 Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3185
3186 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
3187 in old support that 2.7.2 needs, but the current compiler does
3188 not.
3189
3190 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
3191 correct Linker script template.
3192
3193 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
3194 not 0x400000.
3195 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
3196
3197 Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
3198
3199 * scripttempl/alpha.sc: Put .rconst right after .rdata.
3200
3201 Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
3202
3203 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
3204 sort using right pointer.
3205
3206 Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3207
3208 * scripttempl/elfppc.sc: Remove support for creating special
3209 labels for eabi section begin/end here. The compiler now uses
3210 crt{i,n}.o to create these symbols.
3211
3212 Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
3213
3214 * configure.host: Change existing Linux HOSTING_CRT0 to be used
3215 for a.out only, and put in appropriate HOSTING_CRT0 and
3216 HOSTING_LIBS values for Linux ELF.
3217
3218 Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
3219
3220 * scripttempl/h8300.sc: Use all 64K for ram.
3221 * scripttempl/h8300h.sc: Define 256K ram size.
3222
3223 Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
3224
3225 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
3226 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
3227 was used, regardless of whether -bE was used.
3228
3229 Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
3230
3231 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
3232 relocateable before calling ldctor_build_sets if the output file
3233 is in an XCOFF format.
3234
3235 Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
3236
3237 * ldwrite.c (build_link_order): When handling a data statement, if
3238 the endianness of the output file is unknown, use the endianness
3239 of the input file.
3240
3241 Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
3242
3243 * mpw-config.in: Recognize mips-*-* as equivalent to
3244 mips-idt-ecoff.
3245 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
3246 * mpw-ld.r: Add version resources.
3247 (cfrg): Use symbolic instead of literal name for executable.
3248
3249 Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
3250
3251 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
3252
3253 Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
3254
3255 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
3256 (print_statement_list): Renamed from print_statement. All callers
3257 updated.
3258 (print_statement): New function to print just one statement.
3259 (print_{data,reloc,padding}_statement): Don't crash if
3260 output_section == NULL.
3261 (dprint_statement): New function.
3262
3263 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
3264 call to sort_sections.
3265
3266 Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
3267
3268 * emultempl/aix.em (unix_ld): New static variable.
3269 (gld${EMULATION_NAME}_parse_args): Handle -unix.
3270 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
3271 gc as false and export_defineds as true to size_dynamic_sections.
3272
3273 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
3274 phase if the current section is abs_output_section.
3275
3276
3277 Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
3278
3279 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
3280 to sort_sections.
3281
3282 Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
3283
3284 * ldgram.y (PHDRS): New token.
3285 (ifile_p1): Accept phdrs.
3286 (section): Accept phdr_opt at the end of the section definition.
3287 (phdr_op): New nonterminal.
3288 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
3289 * ldlex.l: Accept PHDRS.
3290 * ldlang.h (struct lang_output_section_phdr_list): Define.
3291 (lang_output_section_statement_type): Add phdrs field.
3292 (struct lang_phdr): Define.
3293 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
3294 (lang_new_phdr): Declare.
3295 * ldlang.c (lang_phdr_list): New static variable.
3296 (lang_output_section_statement_lookup): Initialize phdrs field.
3297 (lang_process): Call lang_record_phdrs.
3298 (lang_new_phdr): New function.
3299 (lang_section_in_phdr): New function.
3300 (lang_record_phdrs): New static function.
3301 * ld.texinfo: Document PHDRS.
3302
3303 Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
3304
3305 * scripttempl/ppcpe.sc: Moved .edata into its own section to
3306 expose it.
3307
3308 Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
3309
3310 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
3311 HOSTING_LIBS for testing.
3312 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
3313 testing.
3314
3315 Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
3316
3317 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
3318 and -n.
3319
3320 Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
3321
3322 * configure: Rebuild with autoconf 2.7.
3323
3324 Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
3325
3326 * scripttempl/pe.sc: Two .junk's is too much junk.
3327
3328 Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
3329
3330 * configure.in: Use BFD_NEED_DECLARATION.
3331 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
3332 * configure, config.in: Rebuild with autoconf 2.6.
3333
3334 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
3335 being unsupported if this is not a relocateable link and the input
3336 BFD supports it, since ldctor_build_sets can cope with that case.
3337
3338 Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
3339
3340 * configure.tgt (powerpc-*-macos*): New target.
3341 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
3342 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
3343 (eppcmacos.c): New target.
3344 * mpw-eppcmacos.c: Update.
3345 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
3346
3347 Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
3348
3349 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
3350 $(host_canonical) and $(target_canonical).
3351 (CXX_FOR_TARGET): Likewise.
3352
3353 Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
3354
3355 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
3356 so the malloc heap begins at a sane place.
3357
3358 Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
3359
3360 Version 2.6 released.
3361 * ldver.c (ldversion): Update to 2.6.
3362
3363 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
3364 $(GENERATED_*FILES), since they need to be retained by distclean.
3365 (maintainer-clean, realclean): Delete them here.
3366
3367 Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
3368
3369 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
3370 base file with FOPEN_WB, not "w".
3371
3372 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
3373 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
3374 were used.
3375 (gld${EMULATION_NAME}_before_allocation): Use the environment
3376 variable LD_RUN_PATH if -rpath was not used.
3377 * ld.texinfo, ld.1: Document LD_RUN_PATH.
3378
3379 Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
3380
3381 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
3382 -bl and -bloadmap options.
3383
3384 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
3385 report a better error.
3386
3387 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
3388 new local variable special_sections, and pass it to
3389 size_dynamic_sections. Look through the results, and move the
3390 sections around in the mapping so that they are defined correctly.
3391
3392 Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
3393
3394 * ldemul.c (ldemul_default_target): Cast getenv return value.
3395
3396 Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
3397
3398 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
3399 Executable support.
3400 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
3401 support.
3402
3403 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
3404 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
3405
3406 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
3407 (gld_$_before_allocation): added hooks for toc construction based
3408 on the above macro.
3409
3410 Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
3411
3412 * ld.texinfo: The linker does not use _main as an entry point.
3413
3414 Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
3415
3416 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
3417 0x2000 not 0x200.
3418
3419 Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
3420
3421 * configure.in: Add test for whether free must be declared.
3422 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
3423 * acconfig.h: Explain NEED_DECLARATION_FREE.
3424 * configure, config.in: Rebuild.
3425
3426 * lexsup.c (parse_args): Take B:: out of shortopts.
3427
3428 Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
3429
3430 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
3431 for now, as with m68k4kbsd, until shared library support gets
3432 done.
3433
3434 * configure.host: For i386 BSD variants, crt0.o lives in
3435 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
3436
3437 Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
3438
3439 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
3440 (edelta68.c): New target.
3441 * configure.tgt (m68*-motorola-sysv*): New target.
3442 * emulparams/delta68.sh: New file.
3443 * scripttempl/delta68.sc: New file.
3444
3445 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
3446 addresses.
3447
3448 Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
3449
3450 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
3451 ALIGN and ALIGNMOD statements.
3452
3453 * emultempl/aix.em: Include ldgram.h.
3454 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
3455 AIX 4.1.
3456 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
3457
3458 Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
3459
3460 * configure.host (alpha-*-linux*): New host.
3461 * configure.tgt (alpha-*-linux*): New target.
3462
3463 Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
3464
3465 * emultempl/aix.em (export_files): Remove.
3466 (import_files): Make static.
3467 (struct export_symbol_list): Define.
3468 (export_symbols): New static variable.
3469 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
3470 correctly. Call read_file for an export file.
3471 (gld${EMULATION_NAME}_before_allocation): Call
3472 bfd_xcoff_export_symbol for each export symbol, rather than
3473 calling read_file for each export file.
3474 (gld${EMULATION_NAME}_read_file): For an export file, make the
3475 exported symbols undefined, and store them on the export_symbols
3476 list.
3477
3478 Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
3479
3480 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
3481 Don't hang if last option is unrecognised.
3482 (gld_${EMULATION_NAME}_set_symbols): Insert created
3483 symbols into ABS output section.
3484
3485 Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
3486
3487 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
3488 m68k4k arch.
3489 (em68k4knbsd.c): New rule.
3490
3491 * configure.tgt: Added support for the NetBSD m68k4k arch.
3492
3493 * genscripts.sh, ldint.texinfo,
3494 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
3495 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
3496 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
3497 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
3498 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
3499 pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
3500 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
3501 PAGE_SIZE to TARGET_PAGE_SIZE.
3502
3503 * emulparams/m68knbsd.h: Ditto.
3504 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
3505 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
3506 being.
3507
3508 * emulparams/m68k4knbsd.sh: New file.
3509
3510 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
3511
3512 Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
3513
3514 * emultempl/aix.em: Include ldctor.h.
3515 (gld${EMULATION_NAME}_after_open): New static function.
3516 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
3517 (gld${EMULATION_NAME}_find_relocs): New static function.
3518 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
3519 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
3520 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
3521 * ldctor.c (struct set_info): Move definition into ldctor.h.
3522 (struct set_element): Likewise.
3523 (sets): Make non-static.
3524 (ldctor_add_set_entry): Add name parameter. Save it in the new
3525 set element.
3526 (ldctor_build_sets): Avoid being called twice. Pass set element
3527 name to lang_add_reloc.
3528 * ldctor.h (struct set_info): Move definition here from ldctor.c.
3529 (struct set_element): Likewise. Add new field name.
3530 (sets): Declare.
3531 (ldctor_add_set_entry): Declare new name parameter.
3532 * ldwrite.c (build_link_order): Don't insist that either name or
3533 section be NULL in a lang_reloc_statement.
3534 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
3535 new name parameter.
3536 (constructor_callback): Pass name to ldctor_add_new_set_entry for
3537 new name parameter.
3538
3539 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
3540
3541 Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
3542
3543 * mpw-config.in: Add PowerMac target support, generate config.h.
3544 * mac-ld.r: New file, Mac resources.
3545 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
3546 * mpw-make.in: Remove.
3547 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
3548
3549 Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
3550
3551 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
3552 -static as a synonym for -bnso.
3553
3554 * scripttempl/aix.sc: Move special symbols inside sections.
3555 Always start .data at 0.
3556
3557 Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
3558
3559 * Makefile.in (diststuff): Also make info.
3560 (maintainer-clean realclean): Also delete *.info*.
3561
3562 Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
3563
3564 * emultempl/aix.em: Add support for various AIX linker options,
3565 for AIX import and export files, and for AIX shared objects.
3566 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
3567
3568 * ldmain.c (main): Initialize new field link_info.static_link.
3569
3570 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
3571 (constructor_callback): Likewise.
3572 * ldmisc.c (vfinfo): Likewise.
3573 * ldwrite.c (build_link_order): Likewise.
3574
3575 * ld.texinfo: The MRI ALIGN directive is supported.
3576
3577 Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
3578
3579 * emulparams/elf32vr4300.sh: Deleted.
3580 * emulparams/elf32vr4300el.sh: Deleted.
3581 * emulparams/elf32b4300.sh: Added.
3582 * emulparams/elf32l4300.sh: Added.
3583 * configure.tgt, Makefile.in: Updated the build to use the
3584 new 8.3 unique names.
3585
3586 Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
3587
3588 * ldlang.c (entry_symbol): Make non-static.
3589 * ldlang.h (entry_symbol): Declare.
3590
3591 * ldlex.l: Treat PROVIDE as a keyword in expression state.
3592
3593 Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
3594
3595 * scripttempl/pe.sc (.bss): Move to be after .text
3596
3597 Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
3598
3599 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
3600 Search trinary.cond rather than searching trinary.lhs twice. From
3601 linli@ihp.PHys.ethz.CH.
3602
3603 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
3604 directory searching code into gld${EMULATION_NAME}_search_dir.
3605 (gld${EMULATION_NAME}_search_dir): New static function, extracted
3606 from gld${EMULATION_NAME}_find_so.
3607 (global_needed, global_found): New static variables.
3608 (gld${EMULATION_NAME}_after_open): New static function.
3609 (gld${EMULATION_NAME}_search_needed): New static function.
3610 (gld${EMULATION_NAME}_try_needed): New static function.
3611 (gld${EMULATION_NAME}_check_needed): New static function.
3612 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
3613 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
3614
3615 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
3616 (eelf32lppc.c): Likewise.
3617 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
3618 (GENERATE_SHLIB_SCRIPT): Define as yes.
3619
3620 Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
3621
3622 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
3623 bfd_link_needed-list; make appropriate changes.
3624
3625 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
3626 (rs6000-*-aix*): New target; use aixrs6.
3627 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
3628 * emultempl/aix.em: New file.
3629 * scripttempl/aix.sc: New file.
3630 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
3631 (eaixppc.c, eaixrs6.c): New targets.
3632
3633 Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
3634
3635 * scripttemp/pe.sc (.reloc): Move to the end.
3636
3637 Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
3638
3639 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
3640 section which was not linked into the final output.
3641
3642 Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
3643
3644 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
3645 fatal typos.
3646
3647 Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
3648
3649 * ld.h (args_type): Add rpath_link field.
3650 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
3651 required dependencies in rpath_link path. Only search
3652 LD_LIBRARY_PATH when configured native.
3653 * lexsup.c (parse_args): Recognize -rpath-link.
3654 * ld.1, ld.texinfo: Document -rpath-link.
3655
3656 Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
3657
3658 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3659 bother searching for needed libraries unless doing a final link.
3660
3661 Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
3662
3663 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3664
3665 * ld/ld.1: Fix formatting bugs.
3666
3667 Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
3668
3669 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
3670 * ldexp.h (exp_get_abs_int): Update declaration.
3671 * ldlang.c (print_output_section_statement): Use fprintf_vma to
3672 print return value of exp_get_abs_int.
3673
3674 Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
3675
3676 * emultempl/elf32.em (global_stat): New file static variable.
3677 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
3678 that the file has not already been included under another name.
3679 (gld${EMULATION_NAME}_stat_needed): New static function.
3680
3681 Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
3682
3683 * scripttempl/armcoff.sc: Start .text at 0x8000.
3684 Start .data at 0x40000.
3685
3686 Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
3687
3688 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
3689 command_line.rpath is set, use it, rather than the -L options, to
3690 build the rules section.
3691 * ld.texinfo: Document this use of -rpath.
3692
3693 * lexsup.c (parse_args): Don't set link_info.shared for -assert
3694 pure-text. Pass true, not 1, to lang_add_entry.
3695 * emultempl/sunos.em (find_assign): New static variable.
3696 (found_assign): New static variable.
3697 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
3698 If not a relocateable link, and no start symbol was specified on
3699 the command line, and there are any undefined symbols, set
3700 link_info.shared. If link_info.shared is set, set the address of
3701 the .text section to 0x20.
3702 (gld${EMULATION_NAME}_find_assignment): Rename from
3703 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
3704 set, then just set found_assign based on whether an assignment is
3705 found to find_assign.
3706 (gld${EMULATION_NAME}_get_script): Don't use a special script when
3707 producing a shared library.
3708 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
3709 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
3710 * ldlang.c (entry_from_cmdline): New global variable.
3711 (lang_add_entry): Change cmdline parameter from int to boolean.
3712 Use global entry_from_cmdline rather than function static
3713 from_cmdline.
3714 * ldlang.h (entry_from_cmdline): Declare.
3715 (lang_add_entry): Change declaration of second parameter from int
3716 to boolean.
3717 * ldgram.y: Pass false, not 0, to lang_add_entry.
3718
3719 Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
3720
3721 * ld.h (parsing_defsym): Declare.
3722 * ldlex.h (lex_string): Declare.
3723 * ldlex.l (lex_string): Define.
3724 * lexsup.c (parsing_defsym): Define.
3725 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
3726 lex_redirect, and clear it after calling yyparse. Set
3727 parsing_defsym around call to yyparse.
3728 * ldmain.c (main): Set lex_string before calling lex_redirect, and
3729 clear it after calling yyparse.
3730 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
3731 in linker scripts correctly.
3732
3733 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
3734 COFF targets, allowing for the leading underscore used on SPARC
3735 COFF.
3736
3737 * lexsup.c (parse_args): Handle -assert.
3738 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
3739 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
3740 shared library script when appropriate.
3741 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
3742 section at SIZEOF_HEADERS.
3743
3744 Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
3745
3746 * Makefile.in (earmcoff.c): Build.
3747 * configure.tgt (arm-*-coff): New target
3748 * emulparms/armcoff.sh: New file.
3749 * scripttempl/armcoff.sc: New file.
3750
3751 Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
3752
3753 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
3754
3755 Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
3756
3757 * ldfile.c (ldfile_set_output_arch): Make arch const.
3758
3759 Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3760
3761 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
3762 beginning of the .bss area, not at the end of data. Add
3763 __sbss_{start,end} symbols.
3764
3765 Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
3766
3767 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
3768 (CXX_FOR_TARGET, install): Likewise.
3769
3770 Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
3771
3772 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
3773 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
3774 (CXX_FOR_TARGET): Likewise.
3775 (install): Likewise.
3776 (GENERATED_HFILES): Remove config.h.
3777 (.dep): Depend upon config.h.
3778
3779 Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
3780
3781 * configure.tgt (mips*-dec-netbsd*): New target.
3782
3783 Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
3784
3785 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
3786
3787 Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
3788
3789 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
3790
3791 Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
3792
3793 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
3794 Start .text section on the right boundary. Always align
3795 stabs.
3796
3797 Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
3798
3799 * Makefile.in (maintainer-clean): New target.
3800
3801 * ldmain.c (struct warning_callback_info): Define.
3802 (warning_callback): Add new parameter symbol. Call
3803 warning_find_reloc to try to find the section and VMA.
3804 (warning_find_reloc): New static function.
3805 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3806 Pass NULL as symbol parameter to warning callback.
3807
3808 * ld.texinfo: Clarify -L option.
3809
3810 * ldlang.c (lang_one_common): Add cast to avoid warning.
3811 (topower): Likewise. Also, reindent.
3812 * ldwrite.c (clone_section): Change i to unsigned int.
3813 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
3814 cast to avoid warning.
3815
3816 Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
3817
3818 * Makefile.in (config.status): Depend upon configure.tgt.
3819
3820 * ldemul.h (ldemul_set_symbols): Declare.
3821 (ldemul_parse_args): Declare.
3822 * ldemul.c (ldemul_parse_args): Fix indentation.
3823
3824 * configure.in: Call AC_HEADER_DIRENT.
3825 * configure, config.in: Rebuild.
3826 * emultempl/sunos.em: Use autoconf recommend mechanism to define
3827 DIR and struct dirent.
3828
3829 * configure.tgt (mips*-*-bsd*): New case.
3830
3831 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
3832 New case.
3833 * configure.tgt (i[345]86-*-ptx*): New case.
3834
3835 Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
3836
3837 * config.in: Rename from config.h.in.
3838 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
3839 Check for config.h:config.in when creating stamp-h.
3840 * configure: Rebuild.
3841 * Makefile.in (stamp-h): Depend upon config.in rather than
3842 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
3843 calling config.status.
3844
3845 * Makefile.in (distclean): Remove config.h and stamp-h.
3846
3847 * configure.host (sparc-*-sunos64*): Remove.
3848 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
3849
3850 * ldexp.c (exp_fold_tree): Don't warn about moving the location
3851 counter backward in the absolute section.
3852
3853 Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
3854
3855 * configure.in: Rewrite to use autoconf.
3856 * configure.host: New file.
3857 * configure.tgt: New file.
3858 * aclocal.m4: New file.
3859 * configure: New file, built by autoconf.
3860 * acconfig.h: New file.
3861 * config.h.in: New file, built by autoheader.
3862 * sysdep.h: New file.
3863 * ld.h: Incorporate old contents of config.h.
3864 * config.h: Remove.
3865 * Makefile.in: Various changes for new configure script. Also:
3866 (CC_FOR_BUILD): Remove.
3867 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
3868 (dep.sed): Use @SRCDIR@, not @srcdir@.
3869 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
3870 * genscripts.sh: Create ldscripts if it does not exist.
3871 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
3872 * mpw-esh.c, emultemp/*.em: Likewise.
3873 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
3874 HAVE_SBRK here.
3875 * config/*.mt, config/*.mh: Remove.
3876
3877 Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
3878
3879 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
3880 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
3881
3882 Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
3883
3884 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
3885
3886 Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
3887
3888 * ldmain.c (warning_callback): Add abfd, section, and address
3889 parameters.
3890 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3891 Change call to warning accordingly.
3892
3893 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
3894 relocateable and not shared, put .gnu.warning.SYMBOL sections into
3895 the .text section.
3896
3897 Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
3898
3899 * configure.in: Added mips*vr4300-idt-elf* and
3900 mips*vr4300el-idt-elf* targets.
3901 * Makefile.in: Added eelf32vr4300* targets.
3902 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
3903 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
3904
3905 Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
3906
3907 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
3908 <brendan@cygnus.com>.
3909
3910 Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
3911
3912 * ldemul.c (ldemul_parse_args): New.
3913 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
3914 * lexsup.c (all pe stuff): Moved into pe.em
3915 (parse_args): Call emulation arg parser.
3916 * emultempl/pe.em (parse_args): handle PE specfic args.
3917
3918 Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
3919
3920 * ldlang.c (lang_memory_region_lookup): Don't use the first region
3921 as the default region. Create a new region instead.
3922
3923 Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
3924
3925 * ldemul.c (ldemul_set_symbols): New function.
3926 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
3927 * ldmain.c (main): Add call to ldemul_set_symbols.
3928 * lexsup.c (set_pe_value): New args.
3929 (set_pe_name): New.
3930 (parse_args): Cope with new set_pe_value args.
3931 * emultempl/pe.em (set_symbols): New function.
3932 (ld_emulation_xfer_struct): Add set_symbols.
3933 * scripttempl/pe.sc: Use new symbols.
3934
3935 Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
3936
3937 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
3938 For -Y, ignore a leading `P,', and only call set_default_dirlist
3939 after processing all the other arguments.
3940
3941 Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
3942
3943 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
3944 * emulparams/armpe.sh: Run PE script.
3945
3946 Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
3947
3948 * ldmain.c (main): Remove PE stuff.
3949 * lexsup.c (options): Load more PE options.
3950 (set_pe_value): New function.
3951
3952 Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
3953
3954
3955 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
3956 * emultempl/pe.sc: New file performs generic PE support and sorts
3957 archive members.
3958 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
3959 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
3960 * scripttempl/pe.sc: New.
3961 * Makefile.in: Use new files.
3962
3963 Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
3964
3965 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
3966 (.strings,.ctors,.dtors): Likewise.
3967
3968 Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
3969
3970 * scripttempl/armpe.sc: Always start code at 0x401000, even
3971 if -r.
3972 * ldwrite.c (strdup): New extern declaration.
3973 * ldgram.y (atype): New rule to clarify type parsing.
3974 * ldlang.c (init_os): Remove commented out code.
3975 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
3976 unless told not to by the link script.
3977
3978 Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
3979
3980 * ldlang.c (lang_set_startof): New static function.
3981 (lang_process): Call it.
3982
3983 * ldgram.y: Tweak casesymlist to avoid bison errors.
3984
3985 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
3986 Solaris compatibility.
3987
3988 Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
3989
3990 * ldgram.y (YYDEBUG): If not defined, define as 1.
3991 (CASE, EXTERN, START): New tokens.
3992 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
3993 (casesymlist): New nonterminal.
3994 (extern_name_list): New nonterminal.
3995 * ldlex.l: Accept lower case trailing base specifiers. Don't
3996 ignore the first digit when the base is a suffix. Accept many
3997 EXPRESSION state tokens in MRI state. Support MRI continuation
3998 lines and MRI semicolon comments. Accept all MRI keywords in
3999 lower case. Add CASE, EXTERN, and START MRI keywords.
4000
4001 Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
4002
4003 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
4004 instead of alloca.
4005
4006 Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4007
4008 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
4009 $r/../gcc/xgcc unless it is present.
4010
4011 Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
4012
4013 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
4014 when CONSTRUCTING.
4015 * scripttempl/m68klynx.sc: Likewise.
4016 * scripttempl/nw.sc: Likewise.
4017 * scripttempl/sa29200.sc: Likewise.
4018 * scripttempl/sparclynx.sc: Likewise.
4019
4020 Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
4021
4022 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
4023
4024 Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
4025
4026 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
4027
4028 Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
4029
4030 * scripttempl/i386pe.sc: Cope with constructors.
4031 * scripttempl/z8ksim.sc: Deleted.
4032 * scripttempl/z8000.sc: Resurrected as this, but
4033 can handle z8001 and z8002 formats.
4034 * emulparams/z8ksim.sh: Deleted.
4035 * emulparams/{z8001.sh, z8002.sh}: New files.
4036 * config/z8ksim.mt: Deleted
4037 * config/z8k-coff.mt: New, generates both emulations.
4038
4039 Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
4040
4041 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
4042 %B, in case it is in an archive.
4043
4044 Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
4045
4046 * ldlang.c (lang_process): Call reset_memory_regions for each
4047 relaxation pass.
4048
4049 Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
4050
4051 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
4052 _SDA_BASE.
4053
4054 Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
4055
4056 * ldmain.c (constructor_callback): Allocate set_name in stack
4057 frame, rather than always calling alloca with a fixed size.
4058
4059 Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
4060
4061 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
4062 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
4063
4064 Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
4065
4066 * ldwrite.c (clone_section): Set the alignment of the clone
4067 section to that of the section being cloned.
4068
4069 * ldwrite.c (split_sections): Don't split the first input section
4070 into a new output section.
4071
4072 Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
4073
4074 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
4075 (GENERATE_SHLIB_SCRIPT): Define as yes.
4076
4077 Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
4078
4079 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
4080
4081 * ldver.c (help): Update list of options to match currently
4082 supported list.
4083
4084 Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
4085
4086 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
4087 after_open field.
4088
4089 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
4090 it takes a size_t anyhow.
4091 (exp_binop): Likewise.
4092 (exp_trinop): Likewise.
4093 (exp_unop): Likewise.
4094 (exp_nameop): Likewise.
4095 (exp_assop): Likewise.
4096 * ldlang.c (lang_memory_region_lookup): Likewise.
4097 (init_os): Likewise.
4098 (ldlang_add_undef): Likewise.
4099 (insert_pad): Likewise.
4100 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
4101 bfd_size_type.
4102
4103 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
4104
4105 Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
4106
4107 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
4108 declaration.
4109 (ld_emulation_xfer_type): Add search parameter to
4110 open_dynamic_archive entry point.
4111 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
4112 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
4113 make non-static. Change all callers to use new name.
4114 (ldfile_open_file_search): Make static. If entry is dynamic, call
4115 ldemul_open_dynamic_archive.
4116 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
4117 * ldfile.h (ldfile_open_file_search): Don't declare.
4118 (ldfile_try_open_bfd): Declare.
4119 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
4120 Accept search parameter. Don't search for a library, just look in
4121 a single place.
4122 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
4123 Likewise.
4124
4125 Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
4126
4127 * ldmain.c (set_scripts_dir): Don't base script directory on
4128 current directory.
4129
4130 Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
4131
4132 * ldmisc.c (vfinfo): Don't print the line number if it isn't
4133 meaningful.
4134
4135 Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
4136
4137 * ld.h (ld_config_type): Add field warn_constructors.
4138 * ldmain.c (add_to_set): Warn if config.warn_constructors.
4139 (constructor_callback): Likewise.
4140 * lexsup.c (parse_args): Handle -warn-constructors.
4141 * ld.texinfo, ld.1: Document -warn-constructors.
4142
4143 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
4144 get confused by directory names if we searched for the file.
4145
4146 Based on patches from H.J. Lu <hjl@nynexst.com>:
4147 * ldlang.h (lang_input_statement_type): Add new field dynamic.
4148 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
4149 * ldfile.c: Include bfdlink.h.
4150 (ldfile_open_file): Check dynamic field of entry, not global
4151 dynamic_link field. Don't do a dynamic search when doing a
4152 relocateable link.
4153 * ldmain.c (main): Don't warn about dynamic_link for a
4154 relocateable link.
4155 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
4156 dynamic is false.
4157 (gld${EMULATION_NAME}_create_output_section_statements): Always
4158 loop over input files.
4159 * Makefile.in: Rebuild dependencies.
4160
4161 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
4162 -shared.
4163
4164 Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
4165
4166 * ldmain.c (main): Set link_info.symbolic to false.
4167 * lexsup.c (parse_args): Handle -Bsymbolic.
4168
4169 Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
4170
4171 * ldmain.c (HAVE_SBRK): Define for everything except
4172 specific systems that are known to not support sbrk.
4173 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
4174
4175 Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
4176
4177 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
4178 Handle etree_provide.
4179
4180 * emultempl/elf32.em (global_needed): New static variable.
4181 (global_found): Likewise.
4182 (gld${EMULATION_NAME}_after_open): New static function.
4183 (gld${EMULATION_NAME}_search_needed): Likewise.
4184 (gld${EMULATION_NAME}_try_needed): Likewise.
4185 (gld${EMULATION_NAME}_check_needed): Likewise.
4186 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
4187 gld${EMULATION_NAME}_after_open.
4188
4189 Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
4190
4191 * configure.in (i386-*-win32): New target.
4192
4193 Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
4194
4195 * lexsup.c (parse_args): Let -G either set the small data size or
4196 be equivalent to --shared, depending on the next argument. Accept
4197 and ignore -z for Solaris compatibility.
4198
4199 Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
4200
4201 * lexsup.c (parse_args): Cast fopen result to PTR before storing
4202 it in link_info.base_file. Fix indentation.
4203
4204 Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
4205
4206 * ldmain.c (main): Always initialize PE info in link_info.
4207 * lexsup.c (OPTION_BASE_FILE): New option.
4208 (parse_args): Handle new option.
4209 * emulparams/armpe.sh: Output pei.
4210 * emultempl/i386pe.em: Add newline to end.
4211 * scripttempl/armpe.sc: Change output and quote the $s.
4212 * scripttempl/i386pe.sc: Change output and quote the $s.
4213
4214 Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
4215
4216 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
4217
4218 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
4219 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
4220 (i386msdos.o): New target.
4221 * config/i386-msdos.mt: Created.
4222 * emulparams/i386msdos.sh: Created.
4223 * scripttempl/i386msdos.sc: Created.
4224
4225 Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4226
4227 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
4228 that contains pointers to be relocated.
4229
4230 Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
4231
4232 * mpw-esh.c: New file, modified for MPW from esh.c.
4233 * scripttempl/sh.sc: Reformatted to simplify MPWification,
4234 use *() to concat stab sections instead of [].
4235
4236 Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
4237
4238 * scripttempl/armpe.sc: Add constructor support.
4239
4240 Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
4241
4242 * ldlang.c (lang_size_sections): Any section with a DATA
4243 statement has contents.
4244
4245 Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
4246
4247 * emulparams/m68kelf.sh (NOP): Define.
4248 (DYNAMIC_LINK): Don't define.
4249 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
4250 will come from the linker script.
4251
4252 Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
4253
4254 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
4255
4256 Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
4257
4258 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
4259
4260 Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4261
4262 From Andrew Cagney <cagney@highland.com.au>
4263 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
4264 elf32lppc.
4265
4266 Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
4267
4268 Add support for ARM-PE.
4269 * Makefile.in (ALL_EMULATIONS): Add armpe.o
4270 * configure.in: Recognize armpe.
4271 * config/arm-pe.mt: New file.
4272 * emulparams/armpe.sh: New file.
4273 * scripttempl/armpe.sc: New file.
4274
4275
4276 Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
4277
4278 * configure.in (h8300h-*-hms): Deleted
4279 * config/cf-h8300h.mt: Deleted.
4280
4281 Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
4282
4283 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
4284
4285 From David Taylor (dtaylor@armltd.co.uk)
4286 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
4287 * configure.in: Recognize arm{,e[lb]-*-aout.
4288 * config/arm[lb]-aout.mt: New files.
4289 * emulparams/armaout[lb].sh: New files.
4290 * scripttempl/armaout.sc: New file.
4291
4292 Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4293
4294 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
4295 be unique in 8 characters for DOS.
4296
4297 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
4298 * emulparams/elf32ppcle.sh: Deleted.
4299
4300 Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
4301 Tom Griest <griest@cs.yale.edu>
4302
4303 Initial support for PE executables (eg NT, win32)
4304
4305 * Makefile.in (configure.in, ei386pe): Add support.
4306 * ldmain.c (main): Initialize PE argument info.
4307 * ldwrite.c (print_file_stuff): Don't print out .drectve
4308 and .debug section info.
4309 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
4310 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
4311 Handle new arguments.
4312 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
4313 New files
4314
4315 Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
4316
4317 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
4318 segment. This allows ld -r to preserve unwind sections.
4319
4320 Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4321
4322 * configure.in: Add little endian PowerPC support.
4323
4324 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
4325 (eelf32ppcle.c): Support for little endian PowerPC.
4326
4327 * config/ppcle-elf32.mt: New file for little endian PowerPC.
4328 * emulparams/elf32ppcle.sh: Ditto.
4329
4330 Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
4331
4332 * ldlang.c (print_output_section_statement): Check
4333 subsection_alignment, instead of checking section_alignment twice.
4334 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
4335
4336 Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
4337
4338 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
4339
4340 Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
4341
4342 * ldwrite.c (ldwrite): Before doing anything, reset the error
4343 code. If bfd_final_link returns an error, but the error code is
4344 unset, don't issue an extra message. Assume a correct error
4345 message was already set.
4346
4347 Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
4348
4349 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
4350 (em68kelf.o): New target.
4351 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
4352 * configure.in: Use them for m68*-*-elf.
4353
4354 Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
4355
4356 Merge in support for Mac MPW as a host.
4357 (Old change descriptions retained for informational value.)
4358
4359 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
4360 (i386-unknown-coff): Remove.
4361 (sh-hitachi-hms): New target.
4362 (emulation_ofiles): Set correctly for each target.
4363 (version, TDEFINES): Add to makefile fragment.
4364 * mpw-make.in (BISON): Use byacc instead of bison.
4365 (em_*.c): Replace with e*.c everywhere.
4366 (ldgram.h): Separate action from ldgram.c generation.
4367 (LD_PROG): Depend on Version.r.
4368 (Version.r): generate from version info.
4369 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
4370
4371 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
4372 i386-unknown-aout, i386-unknown-coff): New targets.
4373 (m68k-aout, m68k-coff): Remove targets.
4374 (mk.tmp): Add definition of EMUL.
4375
4376 * mpw-config.in (emulname): Set based on target.
4377 (ldemul-list.h): Construct.
4378 * mpw-make.in (install-only): New target.
4379 (install): Depend on install-only.
4380
4381 * mpw-make.in (bindir): Fix pathname.
4382 (install): Move here from mpw-build.in.
4383
4384 * mpw-config.in: New file, MPW configuration fragment.
4385 * mpw-make.in: New file, MPW makefile fragment.
4386 (This file is semi-automatically generated from Makefile.in.)
4387 * ldfile.c (slash): If MPW, set to `:'.
4388 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
4389 prevent redefinition errors.
4390
4391 Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
4392
4393 * ldwrite.c (clone_section): Align clone sections on even
4394 boundaries.
4395
4396 Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
4397
4398 * configure.in: Change linux to default to elf. Using
4399 i[345]86-*-linuxaout will build a linker which defaults to a.out.
4400 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
4401 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
4402 * config/i386-lelf.mt: Remove.
4403
4404 Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
4405
4406 * ldmain.c (main): If opening the map file fails, call
4407 bfd_set_error before calling einfo.
4408
4409 * ld.texinfo, ld.1: Document the -no-keep-memory option.
4410
4411 Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
4412
4413 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
4414 does mark shared libraries as executable.
4415
4416 Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
4417
4418 * ldlang.c (lang_common): Change power to int. Pass larger values
4419 before smaller values.
4420 (lang_one_common): Treat info as int *. Don't bother to check for
4421 last value, since it is now zero.
4422
4423 Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
4424
4425 * ldlang.c (load_symbols): An empty archive is OK.
4426
4427 Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
4428
4429 * ldmain.c (progress.h): Include.
4430 (main): Call START_PROGRESS and END_PROGRESS.
4431
4432 Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
4433
4434 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
4435 .dtors sections, so that these pointers get relocated also.
4436 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
4437 and end of the constructors/destructors.
4438
4439 Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4440
4441 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
4442 describes an archive, call bfd_link_add_symbols on each member.
4443 * ldmain.c (whole_archive): New variable.
4444 (main): Initialize it to false.
4445 * ldmain.h: Declare whole_archive.
4446 * lexsup.c (parse_args): Grok --whole-archive switch.
4447 * ld.texinfo, ld.1: Document --whole-archive.
4448
4449 Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
4450
4451 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
4452 using the default emulation.
4453
4454 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
4455 LDEMULATION.
4456 * config/hppaelf.mh (HOSTING_EMU): Likewise.
4457
4458 Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
4459
4460 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
4461 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
4462
4463 Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
4464
4465 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
4466
4467 * ldlex.l: Return -lFILENAME as the token LNAME.
4468 * ldgram.y: Add token LNAME.
4469 (input_list): Treat LNAME like NAME, but pass it to
4470 lang_add_input_file as lang_input_file_is_l_enum.
4471 * ld.texinfo: Document using -lFILENAME in INPUT.
4472
4473 Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4474
4475 * ldlang.c (lang_check): If the architectures are compatible call
4476 bfd_merge_private_bfd_data to let the backend do additional
4477 checks.
4478
4479 Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
4480
4481 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
4482 all supported emulations.
4483
4484 Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
4485
4486 * ldemul.c (ldemul_list_emulations): New function.
4487 * ldemul.h (ldemul_list_emulations): Declare.
4488 * ldver.c (help): List supported targets and emulations.
4489
4490 Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
4491
4492 * scripttempl/elf.sc (.debug): Relocate to address 0.
4493 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
4494 .debug_sfnames, .line): Likewise.
4495
4496 Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
4497
4498 * emultempl/elf32.em (hold_rel): New static variable.
4499 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
4500 contents whose names begin with ".rel" after hold_rel. Remove the
4501 assertion which checked for unplaced .rel sections. Don't try to
4502 sort the section into place if place->bfd_section is NULL.
4503 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
4504 section beginning with ".rel".
4505
4506 Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
4507
4508 Doc note from pierre@phi.la.tce.com (Pierre Willard):
4509 * ld.texinfo: -X and -x work even if -s or -S are not specified.
4510 * ld.1: Similar change.
4511
4512 Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
4513
4514 * emulparams/gld960coff.sh (COFF_CTORS): Define.
4515 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
4516
4517 Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
4518
4519 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
4520 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
4521 * config/i386-lelf.mt: New file.
4522 * config/i386-gelf.mt: New file.
4523
4524 Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
4525
4526 * configure.in: Match on mips-ecoff, and default to the IDT
4527 configuration.
4528
4529 Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
4530
4531 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
4532 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
4533 to double the size of the table.
4534
4535 Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
4536
4537 * Makefile.in (distclean): Do recursive deletion, since ldscripts
4538 is a directory.
4539
4540 Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
4541
4542 * ldmain.c (main): If trace_file_tries is true, and we are using
4543 an internal linker script, print out the script.
4544 * ldfile.c (try_open): Reindent function. Make the messages about
4545 opening script files more informative.
4546
4547 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
4548 * ld.texinfo, ld.1: Update accordingly.
4549
4550 Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
4551
4552 * ldlang.c (lang_one_common): Adjust references to common symbol
4553 information for new structure.
4554
4555 Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
4556
4557 * ldmain.c (undefined_symbol): Handle section being NULL.
4558
4559 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
4560 * ldexp.c (fold_name): Likewise.
4561 * ldlang.c (print_one_symbol): Likewise.
4562 (lang_finish): Likewise.
4563 * ldmain.c (multiple_common): Likewise.
4564 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
4565 renamed to bfd_link_hash_undefweak.
4566
4567 * scripttempl/alpha.sc: Set address of .data section correctly
4568 when -n or -N is used. Patch from Chris G Demetriou
4569 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
4570 * scripttempl/mips.sc: Similar change.
4571
4572 Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
4573
4574 * ldlang.c (lang_size_sections): Clarify error message when user
4575 specified start addr conflicts with region. Fix resetting of
4576 region pointer.
4577
4578 Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
4579
4580 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
4581 in lang_allocating_phase_enum.
4582
4583 Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
4584
4585 * Makefile.in (distclean): Depend upon clean. Don't bother to
4586 remove files which will be removed by clean. From patch by
4587 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
4588
4589 Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
4590
4591 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
4592 a MIPS target, clobber the size of all but the first input
4593 .reginfo section to be 0, so that lang_size_sections sets the
4594 correct size for the output .reginfo section.
4595
4596 Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
4597
4598 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4599 Remove unused variable is.
4600
4601 Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4602
4603 * configure.in: Add support for powerpc-*-eabi.
4604
4605 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
4606 support.
4607
4608 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
4609 elf.sc, which defines some new symbols PowerPC elf needs.
4610
4611 Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
4612
4613 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
4614 constructor entry is in the absolute section.
4615
4616 Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
4617
4618 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
4619 * config/i386-gnu.mt: New file. Include ELF support.
4620
4621 Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
4622
4623 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
4624 there are any input sections named .gnu.warning, treat them as
4625 containing a warning message to be printed by the linker, and
4626 clobber the size so that the message is not copied into the output
4627 file.
4628 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
4629 section.
4630
4631 Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
4632
4633 * configure.in (w65-*-*): New target.
4634 * Makefile.in: Update.
4635 * scripttempl/w65.sc: New.
4636 * config/coff-w65.mt: New.
4637
4638 Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
4639
4640 * ldlang.c (lang_place_orphans): Don't ignore files with
4641 just_syms_flag set. Instead, put all their sections in
4642 bfd_abs_section_ptr, using the section VMA as the output_offset.
4643
4644 Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
4645
4646 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
4647 name `reloc_howto_type', since it's now defined to be const.
4648 * ldlang.c (lang_add_reloc): Ditto.
4649 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
4650
4651 Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
4652
4653 * ldexp.c (fold_binary): Adding or subtracting an absolute value
4654 to a relative value does not require forcing the relative value to
4655 be absolute. Also, reindent function.
4656
4657 Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4658
4659 * ldwrite.c (clone_section): Create a symbol with the
4660 same name as the section.
4661
4662 Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4663
4664 * ld.h (split_by_reloc, split_by_file): New flags.
4665 * ldwrite.c (clone_section, split_sections): New functions.
4666 * lexsup.c (parse_args): Understand new split options.
4667
4668 Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4669
4670 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
4671 .data segment. They must be writable when creating a shared
4672 library. From H.J. Lu <hjl@nynexst.com>.
4673
4674 Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
4675
4676 * emultempl/miposecoff.em: New file.
4677 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
4678 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
4679 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
4680 provide __runtime_reloc_start and __runtime_reloc_stop if they are
4681 used. Align _fdata to a 16 byte boundary.
4682 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
4683 generic.em.
4684 (emipsidtl.c): Likewise.
4685 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
4686
4687 * ld.h (args_type): Add new field embedded_relocs.
4688 * ldemul.h (ldemul_after_open, after_open_default): Declare.
4689 (ld_emulation_xfer_struct): Add new field after_open.
4690 * ldemul.c (ldemul_after_open): New function.
4691 (after_open_default): New function.
4692 * ldlang.c (lang_process): Call ldemul_after_open.
4693 * lexsup.c (parse_args): Handle --embedded-relocs.
4694 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
4695 new after_open field to after_open_default.
4696 * emultempl/generic.em, emultempl/gld960.em: Likewise.
4697 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
4698 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
4699 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
4700 * ld.texinfo, ld.1: Mention -embedded-relocs.
4701
4702 Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4703
4704 * Makefile.in: Add eshl.o.
4705 * config/coff-sh.mt: Add shl emulation.
4706
4707 Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4708
4709 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
4710 Youngdale <eric@aib.com>.
4711
4712 Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4713
4714 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
4715 * config/i386linux.mh: New file; set HOSTING_CRT0.
4716 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
4717 /usr/lib, since that is already in LIB_PATH.
4718
4719 Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
4720
4721 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
4722 address.
4723 (.data, .bss): If "-N", then place the data/bss just after the end
4724 of the .text section rather than at the default 0x40000000.
4725
4726 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
4727 text segment.
4728
4729 Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4730
4731 Patches from Eric Youngdale <eric@aib.com>:
4732 * ldlang.c (lang_finish): Don't warn if entry symbol not found
4733 when generating a shared library.
4734 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
4735 attempting to place an orphaned relocation section when generating
4736 a dynamically linked object.
4737
4738 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
4739 _start.
4740
4741 Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4742
4743 * ld.h (args_type): Add field export_dynamic.
4744 * lexsup.c (parse_args): Recognize --export-dynamic.
4745 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4746 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
4747
4748 Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4749
4750 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
4751 we allocate common symbols.
4752
4753 Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
4754
4755 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
4756 .rela.fini to the list of .rel* sections.
4757
4758 Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4759
4760 * ldlang.c (load_symbols): Add new argument place. Only accept
4761 linker scripts if place is not NULL. Put commands found in an
4762 assumed linker script into place.
4763 (lookup_name): Pass NULL as place argument to load_symbols.
4764 (open_input_bfds): In lang_input_statement_enum case, pass a place
4765 argument to load_symbols, and store any new statements after the
4766 current one.
4767
4768 Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
4769
4770 * ldver.c (ldversion): Bump to 2.5.3.
4771
4772 Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
4773
4774 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
4775
4776 Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
4777
4778 * Makefile.in (check): Add missing "else true" clause.
4779
4780 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
4781
4782 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
4783 entry point to "start". Align at end of each section to 0x200.
4784 Start .text section 0x1000 later. Add _etext, _edata, _end
4785 symbols.
4786
4787 Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4788
4789 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
4790 composed of different object file formats.
4791 (ldctor_build_sets): If the output format does not support the
4792 reloc, and we are not generating a relocateable link, try getting
4793 the reloc from the input format.
4794
4795 Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
4796
4797 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
4798 (em68knbsd.c): New target.
4799
4800 * config/m68k-nbsd.mt: New file.
4801 * emulparams/m68knbsd.sh: New file.
4802 * configure.in (m68*-*-netbsd*): Use above configs.
4803
4804 Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4805
4806 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
4807 appropriately named static library, stop the search at that
4808 directory.
4809
4810 Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
4811
4812 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
4813 and esparcnbsd.o; sorted entries.
4814 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
4815
4816 * config/netbsd532.mt: Removed.
4817 * emulparams/netbsd532.sh: Removed.
4818
4819 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
4820 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
4821 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
4822 sparc*-*-netbsd*): Use above configs.
4823
4824 Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4825
4826 * ldmain.c (multiple_common): One of the types may now be
4827 bfd_link_hash_indirect. The old BFD argument may be NULL.
4828
4829 Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4830
4831 * configure.in: Add * at the end of m68k-hp-hpux.
4832
4833 Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4834
4835 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
4836 YY_CHAR *.
4837
4838 Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
4839
4840 * scripttempl/nw.sc: Gather constructors and destructors and
4841 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
4842
4843 Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
4844
4845 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
4846 (ei386nw.c, eppcnw.c): New targets.
4847
4848 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
4849 scripttempl/nw.sc: New files, for i386 and powerpc netware.
4850
4851 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
4852 instead of {i386,ppc}-elf.
4853
4854 * configure.in (sparc*-*-netware): Removed. There is no such
4855 thing anymore.
4856
4857 * ldint.texinfo: Move misplaced `@end iftex'.
4858
4859 Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
4860
4861 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
4862 .rela.dtors to the list of .rel* sections.
4863
4864 Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
4865
4866 * ldver.c (ldversion): Update to version 2.5.
4867 * Version 2.5 released.
4868
4869 * configure.in (all_targets): Handle i386-linux*.
4870
4871 Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4872
4873 * scripttempl/aout.sc: Set _etext and __etext to ., not
4874 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
4875 will not break any other system. From Eric Valette
4876 <ev@chorus.fr>.
4877
4878 Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4879
4880 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
4881 --verbose to get the old -V behaviour.
4882 * ld.1, ld.texinfo: Document this change.
4883
4884 Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4885
4886 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
4887 assertion, since it could fail with a user defined linker script.
4888
4889 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
4890 name in the hash table during the first phase--the hash table does
4891 not even exist at that point, much less have the right value.
4892
4893 * Makefile.in (CC): Define.
4894 (CXX): Move definition, change from g++ to gcc.
4895 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
4896 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
4897 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
4898 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
4899 (.cc.o): Comment out.
4900 (testdir): Remove.
4901 (site.exp): Don't create testdir or set tmpdir.
4902 (check): Run checks even if not running native. Use CC_FOR_TARGET
4903 instead of RUNTEST_CC, and likewise for CXX.
4904 (cdtest targets): Comment out.
4905 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
4906 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
4907 * cdtest-main.cc, cdtest.exp: Remove.
4908
4909 Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4910
4911 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
4912 file naming problems.
4913 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
4914 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
4915 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
4916 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
4917 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
4918 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
4919 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
4920
4921 * genscripts.sh: Always search /usr/local/TARGET/lib.
4922
4923 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
4924
4925 Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
4926
4927 * configure.in: Handle i386-bsdi* targets like i386-bsd.
4928
4929 Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4930
4931 * lexsup.c (parse_args): Add support for -a for HP/UX
4932 compatibility.
4933
4934 * lexsup.c (parse_args): -c takes an argument.
4935
4936 Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4937
4938 * ld.h (args_type): Add new field endian.
4939 * lexsup.c (parse_args): Handle -EB and -EL by setting
4940 command_line.endian.
4941 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
4942 * ldlang.c (lang_add_output_format): Add arguments big and little.
4943 If command_line.endian is set, use it to select big or little
4944 rather than the default. Changed all callers.
4945 * ldlang.h (lang_add_output_format): Update declaration.
4946 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
4947 LITTLE_OUTPUT_FORMAT.
4948 * emulparams/elf32mipl.sh: Likewise.
4949 * emulparams/mipsbig.sh: Likewise.
4950 * emulparams/mipsbsd.sh: Likewise.
4951 * emulparams/mipsidt.sh: Likewise.
4952 * emulparams/mipsidtl.sh: Likewise.
4953 * emulparams/mipslit.sh: Likewise.
4954 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
4955 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
4956 OUTPUT_FORMAT.
4957 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
4958 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
4959 * scripttempl/mipsbsd.sc: Likewise.
4960
4961 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
4962 depending upon ldgram.c, so that a parallel make does not try to
4963 build both at once.
4964
4965 * configure.in (mips*el-elf*): New target.
4966 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
4967 (eelf32mipl.c): New target.
4968
4969 * config/mipsl-elf32.mt: New file.
4970 * emulparams/elf32mipl.sh: New file.
4971
4972 Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4973
4974 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
4975 ld -r -S -x.
4976
4977 Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4978
4979 * ldmisc.c (vfinfo): Print BFD file name as well as file name
4980 returned by find_nearest_line, in case the file name is something
4981 unhelpful such as a .h file. Handle %u.
4982
4983 Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4984
4985 * ldlang.c (lang_do_assignments): Make sure output statement
4986 has an attached bfd_section before trying to dereference it.
4987
4988 Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4989
4990 * ld.h (ld_config_type): Add new field warn_once.
4991 * ldmain.c (undefined_symbol): Handle -warn-once.
4992 * lexsup.c (parse_args): Recognize -warn-once.
4993 * ld.texinfo (Options): Document -warn-once.
4994 * ld.1: Likewise.
4995
4996 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
4997 name. For %C, print the function name on a separate line, to keep
4998 the length of error messages under control.
4999 * ldmain.c (multiple_definition): Use %D for ``first defined
5000 here.''
5001 (undefined_symbol): Use %D for ``more undefined references
5002 follow''.
5003
5004 * ldmisc.c (multiple_warn): Remove; no longer used.
5005 * ldmisc.h (multiple_warn): Don't declare.
5006
5007 Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5008
5009 * ldlang.c (print_output_section_statement): Print all lines
5010 to the map file.
5011
5012 Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5013
5014 * ldlang.c (load_symbols): Check for archive before object. Use
5015 bfd_check_format_matches, and, if ambiguous, print a list of
5016 matching formats. If file format is not recognized, treat file as
5017 a linker script.
5018 * ldgram.y (yyerror): If assuming an object file is a script,
5019 mention that. Tweak the format of the error messages.
5020 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
5021 guess that this is not actually a script, and just report that the
5022 file format was not recognized.
5023 * ld.texinfo (Options): Admit that -( may be used more than once.
5024 Add note that unrecognized object files are now treated as linker
5025 scripts.
5026
5027 * ldfile.c (ldfile_input_filename): Make const.
5028 (ldfile_assumed_script): New variable.
5029 (try_open): Change arguments types to const.
5030 (ldfile_find_command_file): Likewise.
5031 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
5032 * ldfile.h: Update declarations for ldfile.c changes.
5033 * ldlex.l: Include <ctype.h>.
5034 (file_name_stack): Change to be const char *.
5035 (lineno_stack): New static variable.
5036 (<<EOF>>): Set lineno as well as ldfile_input_filename.
5037 (lex_push_file): Make name argument const. Initialize
5038 lineno_stack entry.
5039 (lex_redirect): Initialize lineno_stack entry.
5040 (lex_warn_invalid): Handle non printable characters nicely.
5041 * ldlex.h (lex_push_file): Declare second argument as const.
5042
5043 * ldgram.y (ifile_p1): Recognize GROUP.
5044 * ldlex.l: Recognize GROUP.
5045 * ld.texinfo (Option Commands): Document GROUP.
5046
5047 Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5048
5049 * config/m68klynx.mh: New file.
5050
5051 Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
5052
5053 * emultempl/hppaelf.em: Add newlines to the error messages.
5054
5055 Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5056
5057 * config/i386lynx.mh: New file.
5058 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
5059 unless CONSTRUCTING.
5060
5061 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5062
5063 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
5064 (GENERATE_SHLIB_SCRIPT): Define as yes.
5065 (DYNAMIC_LINK): Define as false.
5066 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
5067 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
5068 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
5069 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
5070 generic.em.
5071
5072 Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5073
5074 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
5075
5076 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5077
5078 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
5079 .got section is now explicitly handled in elf.sc.
5080
5081 Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5082
5083 * scripttempl/alpha.sc: Redo script to set . outside of sections
5084 and not bother to explicitly specify section addresses.
5085 Explicitly place .sdata section.
5086
5087 Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5088
5089 * scripttempl/m68kcoff.sc: Put .bss in data segment.
5090
5091 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
5092 0, and to only be marked as NOLOAD if relocating.
5093 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
5094 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
5095 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
5096 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
5097 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
5098 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
5099 * scripttempl/sparclynx.sc: Likewise.
5100
5101 Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
5102
5103 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
5104 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
5105 New files.
5106
5107 Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
5108
5109 * ld.h (args_type): Add field soname.
5110 * lexsup.c (parse_args): Handle -soname argument.
5111 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
5112 pass soname.
5113 * ld.texinfo: Document -soname.
5114
5115 Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5116
5117 * ldlang.c (lang_check): Don't try to set the architecture if the
5118 input and output files are incompatible. Just warn.
5119
5120 Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5121
5122 * configure.in: Change i[34]86 to i[345]86.
5123
5124 Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5125
5126 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
5127
5128 Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5129
5130 Make the ELF linker handle orphaned sections reasonably. Also,
5131 define __start_SECNAME and __stop_SECNAME around sections whose
5132 names can be represented in C, for the benefit of symbol sets in
5133 glibc.
5134 * ldemul.h (ldemul_place_orphan): Declare.
5135 (ld_emulation_xfer_type): Add place_orphan field.
5136 * ldemul.c (ldemul_place_orphan): New function.
5137 * ldlang.h (wild_doit): Declare.
5138 * ldlang.c (wild_doit): Make nonstatic.
5139 (lang_place_orphans): Call ldemul_place_orphan.
5140 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
5141 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
5142 static variables.
5143 (gld${EMULATION_NAME}_place_orphan): New static function.
5144 (gld${EMULATION_NAME}_place_section): New static function.
5145 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
5146
5147 Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
5148
5149 * scripttempl/aout.sc: Add .linux-dynamic after .data.
5150
5151 Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5152
5153 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
5154 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
5155
5156 Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5157
5158 * ldexp.h (exp_get_abs_int): Declare.
5159
5160 Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5161
5162 * ldlang.c (lang_do_assignments): Handle complex AT's better.
5163 * ldexp.c (exp_get_abs_int): New function.
5164
5165 Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
5166
5167 * configure.in: add i960-nindy-coff support.
5168
5169 Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5170
5171 * ldlex.l (yy_create_string_buffer): Handle change to internal
5172 interface in flex 2.4.7.
5173
5174 Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
5175
5176 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
5177 New function; add 0x20 to any use of -Ttext.
5178 (gld${EMULATION_NAME}_create_output_section_statements): New
5179 function.
5180 (ld_${EMULATION_NAME}_emulation): Use the new function
5181 gld${EMULATION_NAME}_create_output_section_statements.
5182
5183 Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5184
5185 * scripttempl/mips.sc: Redo script to set . outside of sections
5186 and not bother to explicitly specify section addresses.
5187
5188 Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5189
5190 * scripttempl/elf.sc: Copy several more relocation sections into
5191 the output. Put .got.plt sections into .got.
5192
5193 Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5194
5195 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
5196
5197 Add a new script operator, PROVIDE, to define a symbol only if it
5198 is needed.
5199 * ldgram.y (PROVIDE): New token.
5200 (assignment): Accept PROVIDE.
5201 * ldlex.l (PROVIDE): New token.
5202 * ldexp.h (node_type): Add etree_provide to node_class enum.
5203 (exp_provide): Declare.
5204 * ldexp.c (exp_fold_tree): Handle etree_provide.
5205 (exp_provide): New function.
5206 (exp_print_tree): Handle etree_provide.
5207 * ld.texinfo: Document PROVIDE.
5208
5209 * ldlang.c (lang_common): Pass desired alignment to
5210 lang_one_common as power of two.
5211 (lang_one_common): Get common symbol alignment from linker hash
5212 table entry. Treat desired alignment as a power of two.
5213
5214 * ldlang.c (wild_section): Attach all section with the given name,
5215 not just the first one. If there is no name, attach all sections
5216 even if the SEC_IS_COMMON flag is set.
5217
5218 Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5219
5220 * ld.h (args_type): Add field rpath.
5221 * lexsup.c (S_ISDIR): Define if not already defined.
5222 (parse_args): Add support for -rpath. If -R is used to name a
5223 directory, treat it as -rpath for Solaris compatibility.
5224 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
5225 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
5226 * ldmain.c (main): Initialize command_line.rpath to NULL.
5227 * ld.texinfo: Document -rpath option.
5228
5229 Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
5230
5231 * emulparams/pc532machaout.sh: New file. Pc532 mach script
5232 parameters.
5233
5234 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
5235
5236 * config/pc532mach.mt: New file. Pc532 mach target support.
5237
5238 * config/pc532mach.mh: New file. Pc532 mach host support.
5239
5240 * config/netbsd532.mt: New file. Netbsd 532 target support.
5241
5242 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
5243
5244 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
5245 dependency.
5246
5247 Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5248
5249 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
5250 bfd_abs_section_ptr, not &bfd_abs_section.
5251
5252 * lexsup.c (parse_args): Changed "retain-symbols-file" from
5253 no_argument to required_argument. From djm.
5254
5255 Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5256
5257 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
5258 sections to force a VMA of 0; needed for ELF backends which have
5259 not been converted to the new linker style.
5260
5261 Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
5262
5263 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
5264 it was for the HPUX dynamic loader's use and it creates problems
5265 with ELF GDB.
5266
5267 Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
5268
5269 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
5270 * ldlang.h (lang_do_assignments): Put external decl here.
5271 * emultempl/hppaelf.em: Minor cleanups throughout file.
5272 (hppa_elf_create_output_section_statements): Rewrite.
5273 (hppaelf_finish): Rewrite.
5274
5275 Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5276
5277 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
5278
5279 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
5280 accept plain -B.
5281 * ld.texinfo: -Bstatic is not ignored.
5282
5283 Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
5284
5285 * ldlex.l: Recognize \r the same as \n.
5286
5287 Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5288
5289 Preliminary support for generating shared libraries, from Eric
5290 Youngdale <ericy@cais.cais.com>.
5291 * genscripts.sh: If the emulation parameter file sets
5292 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
5293 CREATE_SHLIB defined.
5294 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
5295 link_info.shared is set, use the .xs script file.
5296 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
5297 .interp section, and don't include TEXT_START_ADDR in the starting
5298 address of the first section.
5299 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
5300 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
5301
5302 Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
5303
5304 * configure.in: Change --with-targets to --enable-targets.
5305
5306 Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5307
5308 * lexsup.c (parse_args): Add support for new options -( -) with
5309 synonyms --start-group --end-group.
5310 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
5311 (lang_group_statement_type): Define new struct.
5312 (lang_statement_union_type): Add group_statement field.
5313 (lang_enter_group, lang_leave_group): Declare.
5314 * ldlang.c (lang_for_each_statement_worker): Handle
5315 lang_group_statement_enum.
5316 (map_input_to_output_sections, print_statement): Likewise.
5317 (lang_size_sections, lang_do_assignments): Likewise.
5318 (open_input_bfds): Completely rewrite. Now does its own looping,
5319 rather than using lang_for_each_statement. Handle groups.
5320 (lang_process): Update call to open_input_bfds.
5321 (print_group): New static function.
5322 (lang_enter_group, lang_leave_group): New static functions.
5323 * ldfile.c (ldfile_open_file): If the file has already been
5324 opened, just return rather than taking an assertion failure.
5325 * ldver.c (help): Mention new options.
5326 * ld.texinfo: Document new options.
5327
5328 * ldlang.c (end_of_data_section_statement_list): Don't define.
5329 (lang_leave_output_section_statement): Don't set obsolete variable
5330 end_of_data_section_statement_list.
5331
5332 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
5333 ALIGN.
5334
5335 * ldlang.c (lang_size_sections): Adjust current region address
5336 even for sections with an explicit address. From
5337 ralphc@pyramid.com (Ralph Campbell).
5338
5339 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
5340 From jrs@world.std.com (Rick Sladkey).
5341
5342 * scripttempl/mipsbsd.sc: Let sections align to their natural
5343 boundaries.
5344
5345 Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5346
5347 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
5348 &bfd_abs_section.
5349 (lang_abs_symbol_at_beginning_of): Likewise.
5350 (lang_abs_symbol_at_end_of): Likewise.
5351 (lang_size_sections): Use bfd_is_abs_section to check for the
5352 absolute section. Don't try to set the VMA or output_offset or
5353 size of the absolute section.
5354 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
5355 undefined section.
5356
5357 Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
5358
5359 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
5360 when generating relocatable objects.
5361
5362 Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
5363
5364 * emultempl/linux.em: New file providing support for linking
5365 against Linux shared libraries.
5366 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
5367 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
5368
5369 Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5370
5371 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
5372 * ldmain.c (main): Initialize link_info.shared to false. Give
5373 error if link_info.relocateable and link_info.shared are both set.
5374
5375 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
5376 it as naming an emulation to be added to EMULATION_OFILES.
5377 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
5378
5379 * Makefile.in: Rebuilt dependencies.
5380 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
5381 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
5382 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
5383 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
5384 (ei386linux.c): Remove; now in Makefile.in.
5385 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
5386 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
5387 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
5388 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
5389 (eelf64_sparc.c): Remove; now in Makefile.in.
5390 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
5391 (eelf32_sparc.c): Remove; now in Makefile.in.
5392
5393 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
5394 no owner--it might be bfd_abs_section. From Eric Youngdale
5395 <ericy@cais.cais.com>.
5396
5397 * scripttempl/aout.sc: Let sections align to their natural
5398 boundaries.
5399
5400 Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5401
5402 * ldemul.h (ldemul_open_dynamic_archive): Declare.
5403 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
5404 * ldemul.c: Include ldexp.h and ldlang.h.
5405 (ldemul_open_dynamic_archive): New function.
5406 * ldfile.h (ldfile_open_file_search): Declare.
5407 * ldfile.c: Include ldemul.h.
5408 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
5409 argument, not bfd *. Change all callers.
5410 (ldfile_open_file_search): Rename from open_a. Return boolean
5411 argument, not bfd *. Clean up. Change all callers.
5412 (ldfile_open_file): If doing a dynamic link, call
5413 ldemul_open_dynamic_archive rather than assuming the extension of
5414 a dynamic object is ".so".
5415 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
5416 New function.
5417 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
5418 field.
5419 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
5420
5421 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
5422 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
5423 Accept -static as a synonym for -non_shared.
5424
5425 Let the user change the dynamic linker used by ELF code.
5426 * ld.h (args_type): Add new field interpreter.
5427 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
5428 handle it.
5429 * ldmain.c (main): Initialize command_line.interpreter to NULL.
5430 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
5431 the ELF backend to return the .interp section. If
5432 command_line.interpreter is not NULL, set the contents of .interp
5433 to it.
5434 * ld.texinfo: Mention -dynamic-linker.
5435
5436 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
5437 generic.em.
5438
5439 * lexsup.c (parse_args): Sort out the option macros and change the
5440 definitions to make it easier to add a new option.
5441
5442 * scripttempl/aout.sc: Define __etext and __edata to go along with
5443 _etext and _edata.
5444
5445 * ld.h (ld_config_type): Add new field traditional_format.
5446 * lexsup.c (parse_args): Add traditional-format to longopts, and
5447 handle it.
5448 * ldmain.c (main): Initialize config.traditional_format to false.
5449 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
5450 flags of output_bfd according to config.traditional_format.
5451 * ldver.c (help): Mention -traditional-format.
5452 * ld.texinfo: Document -traditional-format.
5453
5454 Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5455
5456 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
5457 they are encountered.
5458
5459 Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
5460
5461 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
5462 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
5463
5464 Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5465
5466 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
5467 _FTEXT, _ETEXT and _FDATA. Dont define _END.
5468
5469 * ldfile.c (open_a): If this is not an archive, try to open it in
5470 the current directory before searching for it.
5471
5472 * lexsup.c (parse_args): Treat -i as a synonym for -r.
5473
5474 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
5475 BLOCK works in a section address as documented.
5476
5477 * ldgram.y (YYDEBUG): Don't define.
5478
5479 Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5480
5481 * emultempl/gld960.em: Pass false for new argument to
5482 ldfile_add_library_path.
5483 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
5484
5485 * emultempl/sunos.em: Only look for .so files if doing a dynamic
5486 link.
5487
5488 Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
5489
5490 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
5491
5492 Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
5493
5494 * Makefile.in (check): Delete ld.new dependency so that a regression
5495 test doesn't trigger a rebuild of the linker.
5496
5497 Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5498
5499 * ldlang.c (map_input_to_output_sections): For lang_address, call
5500 init_os if it hasn't already been called.
5501
5502 Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5503
5504 Add support for SunOS shared libraries.
5505 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
5506 shared library support code.
5507 * emultempl/sunos.em: New file.
5508 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
5509 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
5510 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
5511 (esun3.c): Likewise.
5512
5513 * ldlang.c: Minor formatting cleanups.
5514 (lang_for_each_input_file): New function.
5515 * ldlang.h (lang_for_each_input_file): Declare.
5516
5517 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
5518 field.
5519 (search_head): Declare.
5520 (ldfile_add_library_path): Add new cmdline argument in prototype.
5521 * ldfile.c (search_head): Make non-static.
5522 (search_dirs_type): Move to ldfile.h.
5523 (ldfile_add_library_path): Accept cmdline argument, and save it.
5524 * lexsup.c (parse_args): Pass true for new cmdline argument of
5525 ldfile_add_library_path.
5526 (set_default_dirlist): Likewise.
5527 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
5528 argument of ldfile_add_library_path.
5529 * ldgram.y (ifile_p1): Likewise.
5530
5531 Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5532
5533 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
5534 total_size, superfile and chain.
5535 * ldfile.c (open_a): Don't clear search_dirs_flag.
5536 (ldfile_open_file): Don't try to open superfile. Assert that file
5537 has not already been opened.
5538 * ldlang.c (new_afile): Don't initialize superfile.
5539 * ldmain.c (add_archive_element): Don't initialize subfiles or
5540 chain or superfile. Initialize search_dirs_flag to false.
5541
5542 Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5543
5544 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
5545
5546 Changes from binutils-2.4 release:
5547
5548 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
5549 variables, use whitespace, so scripts don't break.
5550
5551 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
5552
5553 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
5554
5555 * cdtest-bar.cc: Renamed from cdtest-func.cc.
5556 * Makefile.in: Noted change.
5557
5558 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
5559 don't know where that's supposed to come from, or why it's
5560 necessary.
5561
5562 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
5563
5564 * configure.bat: update to latest makefile.in
5565 * emulpara/go32.sh: set to coff-go32 not aout
5566 * emultemp/generic.em: strength-reduce the structure of
5567 this shell script, since the only available shell for
5568 DOS can't handle complex syntax.
5569 * emultemp/stringify.sed: for "sed -f" instead of inline.
5570 * makefile.in: depend on stringify.sed as well as genscripts.sh
5571 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
5572 * genscripts.sh: empty variables aren't always considered "set",
5573 so set them to "y" instead.
5574
5575 Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5576
5577 * ldlang.c (entry_symbol): Make static.
5578 (lang_add_entry): Add cmdline argument.
5579 * ldlang.h (lang_add_entry): Change prototype.
5580 * ldgram.y (statement_anywhere): Change lang_add_entry call.
5581 * lexsup.c (parse_args): Likewise.
5582
5583 Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5584
5585 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
5586 .reginfo an address.
5587 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
5588 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
5589 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
5590
5591 Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5592
5593 Add support for ELF shared libraries.
5594 * ld.h (ld_config_type): Add field dynamic_link.
5595 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
5596 on attempts to use -r with -relax, -call_shared or -s.
5597 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
5598 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
5599 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
5600 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
5601 OPTION_NON_SHARED by setting dynamic_link field accordingly.
5602 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
5603 -r and -Ur.
5604 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
5605 opening a file with a .so extension first.
5606 * emultempl/elf32.em: New file.
5607 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
5608 (NONPAGED_TEXT_START_ADDR): Likewise.
5609 (TEMPLATE_NAME): Define as elf32.
5610 (DATA_PLT): Define.
5611 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
5612 * scripttempl/elf.sc: Add placement for new dynamic sections.
5613 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
5614 outside of any section. Don't use ALIGN(8); just let one section
5615 VMA follow another. Put .dynbss in .bss. Don't mention debugging
5616 sections; they'll be handled correctly anyhow.
5617 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
5618
5619 Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
5620
5621 * Makefile.in (install): Redirect output of ln to /dev/null.
5622
5623 Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
5624
5625 * emultempl/hppaelf.em: Change all references of
5626 .hppa_linker_stubs to .PARISC.stubs.
5627 * scripttempl/hppaelf.sc: Likewise.
5628
5629 Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5630
5631 * ldlang.c (print_output_section_statement): Change ``no attached
5632 output section'' message slightly.
5633 (lang_do_assignments): Don't recurse down if there is no real
5634 section.
5635
5636 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
5637 match corresponding change in emulation templates.
5638 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
5639 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
5640
5641 Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5642
5643 * ldver.c (ldversion): Updated version number.
5644
5645 * cdtest-foo.cc: Use explicit "#pragma implementation".
5646 * cdtest-bar.cc: Renamed from cdtest-func.cc.
5647 * Makefile.in: References to cdtest-func.o changed to
5648 cdtest-bar.o.
5649
5650 Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5651
5652 Don't create unnecessary output sections.
5653 * ldlang.c (out_bfd_get_section_by_name): Remove.
5654 (wild_section): Call bfd_get_section_by_name rather than
5655 our_bfd_get_section_by_name. Don't call wild_doit if there is no
5656 section.
5657 (lang_create_output_section_statements): Remove.
5658 (map_input_to_output_sections): For several cases, call init_os if
5659 it has not already been called.
5660 (lang_size_sections): If output section was not created, skip it.
5661 (lang_process): Don't call lan_create_output_section_statements.
5662 (lang_place_orphans): Skip files with just_syms_flags set to true.
5663 * ld.texinfo: Document change.
5664
5665 Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5666
5667 * ldlang.c (wild_doit): Don't bother initializing the vma and
5668 section size. Don't special case SEC_SHARED_LIBRARY.
5669 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
5670 specially.
5671
5672 Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
5673
5674 * config/go32.mh : New file for Xgo32X.
5675
5676 Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5677
5678 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
5679 before calling einfo, since we are reporting an fopen failure.
5680 From jrs@world.std.com (Rick Sladkey).
5681
5682 * configure.in: Use "e" rather than "em_" as prefix for
5683 emulations.
5684
5685 Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
5686
5687 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
5688 filename.
5689 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
5690 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
5691 Ditto.
5692 * Makefile.in: Changed all generated file names.
5693 (ldemul-list.h): Depend on Makefile, not config.status. Changed
5694 sed patterns to handle new filenames.
5695
5696 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
5697 * configure.in: Adjusted.
5698
5699 Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5700
5701 * Makefile.in (install-info): Don't use "$<*", it doesn't always
5702 work. Instead, check build dir and $srcdir explicitly, and use
5703 `echo' to get all the filenames.
5704
5705 * configure.in (h8300h-*-hms): Changed ld_target name to
5706 cf-h8300h.
5707 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
5708 unique in 8.3.
5709
5710 * config/i960coff.mt: New file.
5711 * emulparams/gld960coff.sh: New file.
5712 * emultempl/gld960c.em: New file.
5713 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
5714 i960coff configuration.
5715 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
5716
5717 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
5718 code isn't included in FSF releases, and it can still be
5719 explicitly selected.
5720 (distclean): Remove site.bak and tmpdir.
5721 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
5722 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
5723
5724 Patches from Ralph Campbell:
5725 * config/mipsbsd.mh: New file.
5726 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
5727 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
5728 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
5729 instead of `aout'.
5730
5731 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
5732
5733 Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5734
5735 * config/m68k.mt (EMUL): Set to m68kaout.
5736 * emulparams/m68kaout.sh: New file.
5737 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
5738 (em_m68kaout.c): New target.
5739
5740 * ldlang.c (lang_size_sections): If dot moves because of an
5741 assignment, don't try to insert a pad into the absolute output
5742 section, just change the address of the default memory region
5743 instead.
5744
5745 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
5746 cdtest-ur.out, and cdtest-ur.tmp.
5747
5748 Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5749
5750 * scripttempl/sa29200.sc: Align all sections to four byte
5751 boundaries.
5752
5753 Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
5754
5755 * Makefile.in, configure.in: Support for go32 coff.
5756 * config/i386-go32.mt: New file
5757 * emulparams/i386go32.sh: New file
5758 * scripttempl/i386go32.sc: New file
5759
5760 Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
5761
5762 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
5763 Lynx-specific script templates.
5764 * configure.in (sparclite*-*-coff): Use coff-sparc.
5765 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
5766 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
5767 (ENTRY): Set to __main.
5768 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
5769 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
5770 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
5771
5772 Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5773
5774 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
5775 byte boundary, in case the global constructors do not take up an
5776 even 16 bytes.
5777
5778 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
5779 exist, get crtbegin based on gcc -print-libgcc-file-name.
5780 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
5781
5782 Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5783
5784 * ldlang.c (lang_size_sections): When no address is given for a
5785 section, align it according to its requirements.
5786
5787 Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5788
5789 * Makefile.in (clean, distclean): Remove configdoc.texi.
5790
5791 Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
5792
5793 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
5794
5795 Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5796
5797 * ldlang.c (lang_size_sections): When relaxing, adjust the
5798 position of a padding statement, and adjust dot accordingly.
5799
5800 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
5801
5802 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
5803
5804 Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5805
5806 * scripttempl/i386coff.sc: If relocating, don't put .init and
5807 .fini sections into .text; keep them separate.
5808 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
5809 exist, get crtbegin based on gcc -print-libgcc-file-name.
5810 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
5811
5812 Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
5813
5814 * Makefile.in (check): Set TCL_LIBRARY for runtest.
5815
5816 Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5817
5818 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
5819 manufacturer.
5820
5821 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
5822 if building a final executable.
5823
5824 Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5825
5826 * ldmain.c (main): Check the return value of bfd_close.
5827
5828 Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5829
5830 * scripttempl/alpha.sc: Clean up section alignment to ensure that
5831 sections never overlap when using -r.
5832
5833 Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5834
5835 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
5836 changes: get_symtab_upper_bound renamed and returns long,
5837 bfd_canonicalize_symtab returns long, check for error indications.
5838
5839 Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5840
5841 * ldlang.c (print_input_section): For section size, use
5842 _cooked_size if it is non-zero, size otherwise.
5843 (size_input_section): Likewise.
5844 (lang_do_assignments): Likewise (case lang_input_section_enum).
5845
5846 Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5847
5848 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
5849 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
5850 (lang_add_input_file): Pass true to new_afile for add_to_list.
5851 (lookup_name): Remove force_load argument. Changed all callers.
5852 Pass false to new_afile for add_to_list. Split loading of symbols
5853 out into separate function.
5854 (load_symbols): New function split out of lookup_name. Don't load
5855 the symbols if they are already loaded.
5856 (open_input_bfds): For lang_input_statement_enum call load_symbols
5857 rather than lookup_name.
5858 (lang_process): Pass abs_output_section rather than NULL to
5859 lang_size_sections.
5860 (lang_startup): Set real field of first_file to true.
5861
5862 Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5863
5864 * ldlang.c (had_relax): Removed.
5865 (relax_again): New static variable.
5866 (lang_size_sections): Change call to bfd_relax_section to
5867 correspond to BFD changes. Set relax_again appropriately.
5868 (lang_process): Remove #if 0 code. When relaxing, keep calling
5869 lang_do_assignments and lang_size_sections until relax_again
5870 becomes false.
5871
5872 * emultemp/gld960.em: Include libiberty.h
5873 (gld960_before_parse): Pass NULL as final argument to concat.
5874
5875 Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5876
5877 * scripttempl/aout.sc: Force _end and __end to be aligned to a
5878 four byte boundary.
5879
5880 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
5881 building a bfd_data_link_order, rather than by setting the section
5882 contents immediately.
5883
5884 Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5885
5886 Changes to make -Ur work again.
5887 * ldmain.c (add_to_set): Now takes reloc argument rather than
5888 bitsize. Check config.build_constructors here. If an new hash
5889 table entry is created, mark it as undefined.
5890 (constructor_callback): No longer takes bitsize argument. Pass
5891 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
5892 BFD backend supports it.
5893 (reloc_overflow): Handle a NULL abfd argument.
5894 (reloc_dangerous, unattached_reloc): Likewise.
5895 * ldctor.c: Include ldmain.h.
5896 (struct set_info): Change bitsize field to reloc.
5897 (ldctor_add_set_entry): Now takes reloc argument rather than
5898 bitsize. Don't bother to check config.build_constructors here.
5899 (ldctor_build_sets): Get the size from the reloc howto. If
5900 generating relocateable output, call lang_add_reloc rather than
5901 lang_add_data.
5902 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
5903 instead of bitsize.
5904 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
5905 (lang_reloc_statement_type): New structure.
5906 (lang_statement_union_type): Add reloc_statement field.
5907 (lang_add_reloc): Declare new function.
5908 * ldlang.c (lang_for_each_statement_worker): Handle
5909 lang_reloc_statement_enum.
5910 (map_input_to_output_sections, print_statement): Likewise.
5911 (lang_size_sections, lang_do_assignments): Likewise.
5912 (print_reloc_statement): New function.
5913 (lang_add_reloc): New function.
5914 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
5915
5916 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
5917 (cdtest-ur, cdtest-ur.out): New targets.
5918 (check-cdtest): Now also check that -Ur works correctly.
5919
5920 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
5921
5922 Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5923
5924 * ldlang.c (lang_process): Move lang_common call before
5925 map_input_to_output_sections, to ensure that any alignment
5926 constraints set by common symbols are copied over to the output
5927 sections.
5928
5929 Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5930
5931 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
5932 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
5933 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
5934 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
5935 needed for ELF.
5936
5937 Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
5938
5939 * config/i386bsd.mh: New file.
5940
5941 Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5942
5943 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
5944 defined.
5945 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
5946 (DATA_START_SYMBOLS): Define _fdata.
5947
5948 Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
5949
5950 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
5951
5952 Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5953
5954 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
5955 works again. Attach some output symbols to the stub file bfd.
5956
5957 * emultempl/hppaelf.em: Include elf32-hppa.h.
5958 (file_chain): Add decl.
5959 (hppa_look_for_stubs_in_section): Delete decl.
5960 (hppaelf_finish): Reenable code. Do not pass symbols
5961 down to hppa_look_for_stubs_in_section.
5962
5963 Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
5964
5965 * ldmain.c (write_map): Don't define. Removed all references.
5966 Just use map_file or map_filename instead.
5967 (add_archive_element): Use minfo to write map information, not
5968 info_msg.
5969 (constructor_callback): Use fprintf to write map information, not
5970 info_msg.
5971 * ldmain.h (write_map): Don't declare.
5972 * ldgram.y (mri_script_command): Removed reference to write_map.
5973 * ldlang.c (lang_one_common): Likewise.
5974 * lexsup.c (parse_args): Likewise.
5975
5976 Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
5977
5978 * scripttempl/elf.sc: Force all sections to be aligned.
5979
5980 * ldgram.y (section): Reverse the order of memspec_opt and
5981 fill_opt to avoid an ambiguity when both are used.
5982 * ld.texinfo: Changed accordingly.
5983
5984 * ldgram.y: Move include of ldlex.h back with other includes.
5985 * ldlex.h (input_type): Don't initialize enum constants to
5986 particular values.
5987 * ldlex.l: Use a switch to return the right token based on
5988 input_type, rather than knowing that input_type has a value based
5989 on a token type.
5990
5991 * ldgram.y (dirlist_ptr): Removed; not used.
5992 * lexsup.c: Include ldver.h.
5993 * Makefile.in: Rebuilt dependencies.
5994
5995 Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
5996
5997 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
5998 (ldlang_add_file): call it here instead.
5999
6000 Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
6001
6002 * ldgram.y: Include ldlex.h after %token decls, for byacc.
6003
6004 Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
6005
6006 * emultempl/hppaelf.em: First attempt to clean this file up.
6007 Add comments in several functions as to their purpose and
6008 how they function (or my current best guess). Clean up horrible
6009 spacing and indention that never should have been accepted in the
6010 first place. Add FIXMEs for issues which need to be resolved.
6011 Disable linker-stub generation until it gets fixed. This allows
6012 the linker to at least work on simple code for testing purposes.
6013
6014 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
6015 it via hppaelf_finish). Prototype moved into ldlang.h.
6016 (lang_process): Move problematic extra call to lang_size_sections
6017 into the PA ELF specific code.
6018 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
6019 lang_size_sections moved here.
6020
6021 Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
6022
6023 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
6024 * config/ppc-elf32.mt: New file.
6025 * emulparams/elf32ppc.sh: New file.
6026 * emultempl/ppc.em: New file.
6027 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
6028 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
6029 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
6030
6031 Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
6032
6033 * lexsup.c (parse_args): Use symbolic numbers for long options.
6034 Fix misunderstanding in -Y and -call_shared et al.
6035
6036 Use getopt instead of lex and yacc to parse the command line.
6037
6038 * ld.texinfo (Options): Document changes to option syntax.
6039 * Makefile.in: Update dependencies.
6040 * ldver.c (help): Tweak dashes in usage message.
6041 * ldgram.y (%union): Remove unused members.
6042 Remove %tokens for command line options; add ones for input types.
6043 (command_line): Rules removed.
6044 (file): Instead of command line, recognize an
6045 input type indicator, then use the nonterminal for that type.
6046 (defsym_expr): New nonterminal from code formerly in command_line.
6047 * ldlex.h: Declare parser input type enum and variable.
6048 Don't declare parse_line.
6049 * ldlex.l: Remove unused variables. Make some used ones static
6050 and comment them.
6051 (COMMAND): Start state and its rules removed.
6052 At start of yylex, return input state token if at start of input.
6053 (lex_redirect): Don't need to set yyout.
6054 (ldlex_command): Function removed.
6055 * ldmain.c (main): Instead of calling parse_line, set up the
6056 redirections and call yyparse directly.
6057 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
6058 "command line".
6059 * lexsup.c: Remove #if 0'd code.
6060 (parse_line): Function removed.
6061 (parse_args): Rewrite to use getopt_long_only.
6062 (set_default_dirlist): New function from code formerly in
6063 ldgram.y:command_line.
6064 (set_section_start): New function.
6065 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
6066 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
6067 compiled-in link scripts in "{" and "}", as the grammar no longer
6068 wants them to be.
6069
6070 Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
6071
6072 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
6073 require that it be in $(srcdir).
6074
6075 Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
6076
6077 * ldlang.c (lang_size_sections): Only align section to alignment
6078 required by linker script, not to maximum alignment of input
6079 sections.
6080
6081 * ldlang.h (largest_section): Don't declare.
6082 * ldlang.c (largest_section): Don't define.
6083 (size_input_section): Don't set largest_section; not used.
6084
6085 Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
6086
6087 * ldlang.c (new_afile): Pass NULL as last argument to concat.
6088
6089 Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6090
6091 * ldlang.c, ldmain.c: Include libiberty.h.
6092
6093 * ldmisc.h (concat): Don't declare.
6094 * ldmisc.c (concat): Don't define; just use the one in libiberty.
6095
6096 * ld.h (as_output_section_statement): Removed; not used.
6097
6098 Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6099
6100 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
6101 bfd_set_error and new error names.
6102
6103 Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
6104
6105 * ldwrite.c (build_link_order): If the cooked size of the section
6106 has been set, use it, for determining link_order size.
6107 (ldwrite): In the error message displayed if bfd_final_link fails,
6108 indicate that it was in fact the final link step that failed.
6109
6110 * ldlang.c (lang_size_sections): Clear bfd_error before calling
6111 bfd_relax_section, in case it returns false but doesn't flag an
6112 error. If an error is returned, indicate which one it is in the
6113 error message.
6114
6115 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
6116 it'll get picked up from $(srcdir) if appropriate.
6117
6118 Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
6119
6120 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
6121 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
6122
6123 Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6124
6125 * ldlex.l (comment): Increment line number when newline is read.
6126
6127 Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6128
6129 * ldlang.c (lookup_name): Take new argument, force_load. If true,
6130 reload the file even if it is already loaded.
6131 (wild): Call lookup_name with force_load argument of 0.
6132 (open_input_bfds): Call lookup_name with force_load argument of 1.
6133 (print_symbol): Remove declaration of non-existent function.
6134 (print_one_symbol): Return true rather than falling off end.
6135
6136 Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6137
6138 * ldmain.c (main): Use %ld when printing long values.
6139
6140 * scripttempl/elf.sc: Move _edata after the .sdata section.
6141 Permit OTHER_BSS_SYMBOLS to be defined.
6142 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
6143
6144 Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
6145
6146 * Rename all "hppaosf" files to "hppaelf".
6147 * Change all "osf" references to "elf" in hppaelf files.
6148 * Makefile.in: Likewise.
6149 * configure.in: Likewise.
6150
6151 Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6152
6153 * ldmain.c (main): Call xatexit, not atexit.
6154 Call xmalloc_set_program_name.
6155
6156 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
6157 bfd_errno.
6158
6159 Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6160
6161 * emultempl/lnk960.em (append), emultempl/hppaosf.em
6162 (hppaosf_finish): Call xmalloc, not ldmalloc.
6163 * ldmain.c (preserve_output): Function removed.
6164 (main): Do it here instead.
6165
6166 Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
6167
6168 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
6169 GNU C specific macros.
6170
6171 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
6172 call to LANG_FOR_EACH_INPUT_SECTION.
6173
6174 Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6175
6176 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
6177 deleted; will use libiberty versions instead.
6178 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
6179 mri.c Makefile.in: Change callers.
6180
6181 * ldmisc.c (vfinfo): Remove cleanup code.
6182 * ldmain.c (remove_output): Put it here (new function).
6183 (preserve_output): New function.
6184 (main): Register remove_output and preserve_output with atexit.
6185 * ldmain.c ldgram.y: Call xexit instead of exit.
6186 * ldmisc.h: Declare xexit.
6187
6188 Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
6189
6190 * Makefile.in: Lots of new H8/500 memory models.
6191
6192 Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
6193
6194 * ldlex.l: Removed duplicate rules.
6195 (yywrap): Provide default definition, needed with some versions of
6196 flex.
6197
6198 Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6199
6200 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
6201 the archive filename too.
6202
6203 * ldlex.l: Add rule to catch invalid input characters instead of
6204 printing them. Include "ldmain.h" for program_name decl.
6205 (lex_warn_invalid): New function.
6206 * Makefile.in: Add dependency.
6207
6208 Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
6209
6210 * Makefile.in (check): Don't bother running any tests of
6211 cross-linker until the test suite no longer assumes native mode.
6212
6213 Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6214
6215 * ldlang.c (print_one_symbol, print_input_section): Print
6216 global symbols in symbol table again.
6217
6218 Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6219
6220 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
6221 exit successfully instead of complaining if no input files are
6222 given.
6223
6224 Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
6225
6226 * Makefile.in: Format variable definitions consistently.
6227 (LD_PROG): Remove unnecessary variables from link command,
6228 change variable LOADLIBES to EXTRALIBS.
6229
6230 * ldmain.c (main): Compute and display total execution time.
6231 * ld.texinfo (-stats): Document the option.
6232
6233 Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6234
6235 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
6236 arguments.
6237
6238 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
6239 after opening BFD.
6240
6241 * ldlang.c (relaxing): Removed global variable.
6242 (lang_size_sections): If the canonical symbols have not already
6243 been read in, read them in before relaxing.
6244 * ldlang.h (relaxing): Removed declaration.
6245
6246 Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6247
6248 * ldlang.c (new_afile): Initialize loaded field to false.
6249 (lookup_name): If file was already loaded, don't call the
6250 add_symbols entry point again.
6251
6252 Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6253
6254 * ld.texinfo: Clarify what -T option does.
6255
6256 Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6257
6258 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
6259 for a.out.
6260
6261 Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6262
6263 * ldmain.c (add_archive_element): If trace_files or
6264 trace_file_tries, print file name.
6265 * ldlang.c (lookup_name): Likewise.
6266 (ldlang_add_file): Don't put files on input_bfds list in reverse
6267 order.
6268
6269 * scripttempl/elf.sc: Correct typo.
6270
6271 Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6272
6273 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
6274 their arguments optional, for compatibility with the old GNU ld.
6275
6276 Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6277
6278 * scripttempl/elf.c: Define __bss_start before the .sbss section.
6279
6280 Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6281
6282 * ldmain.c (add_to_set): Add bitsize argument.
6283 (constructor_callback): New function.
6284 (link_callbacks): Add constructor_callback.
6285 * ldctor.c (struct set_info): Add bitsize field.
6286 (ldctor_add_set_entry): Add bitsize argument.
6287 (ldctor_build_sets): Base the size of the elements of the set on
6288 the bitsize, rather than always using LONG.
6289 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
6290
6291 * ld.h (QUAD_SIZE): Define.
6292 * ldgram.y (QUAD): New token.
6293 (length): Handle it.
6294 * ldlex.l: Return QUAD.
6295 * lexsup.c (keywords): Add QUAD.
6296 * ldwrite.c (build_link_order): Handle QUAD.
6297 * ldlang.c (print_data_statement): Handle QUAD.
6298 (lang_size_sections): Likewise.
6299 (lang_do_assignments): Likewise.
6300 * ldexp.c (exp_print_token): Add QUAD to table.
6301 * ld.texinfo: Describe QUAD.
6302
6303 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
6304 since the Alpha doesn't use them.
6305
6306 Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6307
6308 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
6309
6310 Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
6311
6312 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
6313 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
6314
6315 Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6316
6317 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
6318 needed for i386mach. (Should be a no-op on other systems.)
6319
6320 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
6321 (PAGE_SIZE): Don't define; not used.
6322
6323 Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6324
6325 * ldgram.y (yyerror): Make argument const char *, and actually
6326 print it out rather than assuming it is a syntax error.
6327 * ldmisc.h: Change declaration of yyerror.
6328 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
6329
6330 Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6331
6332 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
6333 exec header offset, since the exec header isn't loaded.
6334 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
6335
6336 Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6337
6338 A major rewrite to move the bulk of the linker into BFD so that
6339 more efficient backend code can be written for specific object
6340 files.
6341 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
6342 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
6343 * ldctor.c, ldctor.h: Complete rewrite.
6344 * ldwrite.c, ldwrite.h: Complete rewrite.
6345 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
6346 link_info.strip instead. Changed all uses.
6347 (discard_locals_type, discard_locals): Removed. Use
6348 link_info.discard instead. Changed all uses.
6349 (ld_config_type): Removed relocateable_output field; use
6350 link_info.relocateable instead; changed all uses. Added stats
6351 field.
6352 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
6353 set_loader_symbol): Removed.
6354 * ldexp.h (node_class): Added etree_rel.
6355 (etree_type): Added rel field.
6356 * ldexp.c (exp_print_token): Bracketed table initialization.
6357 (exp_relop): New function.
6358 (fold_name): Use linker hash table rather than ldsym functions.
6359 (exp_fold_tree): Likewise. Also, handle etree_rel case.
6360 (exp_print_tree): Handle etree_rel.
6361 * ldgram.y (strip_symbols, discard_locals): Removed.
6362 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
6363 (REL): New token. Does not appear in grammar, but needed for
6364 expression code.
6365 (file): Don't call lang_final; it's called by main anyhow.
6366 * ldlex.l: Accept -stats and -no-keep-memory options.
6367 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
6368 * ldlang.c: Consistently use fill_type for fill argument.
6369 (lang_init_script_file, script_file): Removed.
6370 (create_object_symbols): Removed. Use
6371 link_info.create_object_symbols_section instead. Changed all
6372 uses.
6373 (lang_add_keepsyms_file): Removed.
6374 (lookup_name): Call bfd_link_add_symbols instead of
6375 ldmain_open_file_read_symbol.
6376 (wild): Don't iterate over script_file.
6377 (open_output): Create link hash table.
6378 (lang_place_undefineds): Rewrote.
6379 (lang_size_sections): Handle relaxing (doesn't work yet).
6380 (lang_relocate_globals): Removed.
6381 (lang_finish): Use link hash table rather than ldsym functions.
6382 (lang_common): Rewrote.
6383 (lang_one_common): New function.
6384 (ldlang_add_file): Add file to link_info.input_bfds list. Set
6385 usrdata.
6386 (create_symbol): Removed.
6387 (lang_process): Don't call lang_init_script_file. Call
6388 ldctor_build_sets rather than find_constructors. Don't call
6389 lang_relocate_globals.
6390 (lang_abs_symbol_at_beginning_of): Rewrote.
6391 (lang_abs_symbol_at_end_of): Rewrote.
6392 * ldmain.c (had_y): Removed.
6393 (lprefix, lprefix_len): Removed; use link_info fields instead.
6394 Changed all uses.
6395 (multiple_def_count, commons_pending, undefined_global_sym_count,
6396 total_symbols_seen, total_files_seen): Removed.
6397 (link_callbacks, link_info): New variables.
6398 (main): Initialize link_info. Don't call init_bfd_error_vector or
6399 ldsym_init. Don't set now unused variables. Handle -stats.
6400 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
6401 (add_ysym): Rewrote.
6402 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
6403 search_library, gnu960_check_format, decode_library_subfile,
6404 linear_library, symdef_library, clear_syms, subfile_wanted_p):
6405 Removed.
6406 (add_keepsyms_file, add_archive_element, multiple_definition,
6407 multiple_common, add_to_set, warning_callback, undefined_symbol,
6408 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
6409 New functions.
6410 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
6411 require symbols for %C; look them up instead.
6412 * emultempl/hppaosf.em: Pass link_info to
6413 hppa_look_for_stubs_in_section.
6414 * Makefile.in: Rebuilt dependencies.
6415 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
6416 relax.c.
6417 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
6418 relax.h.
6419 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
6420 ldlang.h and ldctor.h.
6421
6422 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
6423 declarations of free and malloc from flex output. Change malloc
6424 to ldmalloc in flex output.
6425
6426 Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6427
6428 * ldmain.c (lprefix): Change default from a char to a string
6429 with only one character.
6430 (lprefix_len): Set default to one.
6431
6432 * ldmain.h (lprefix_len): Declare.
6433
6434 * ldsym.c (write_file_locals): Use strncmp rather than a character
6435 comparison for lprefix.
6436
6437 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
6438 correctly.
6439
6440 * emultmpl/hppaosf.em: Include ldexp.h.
6441 (before_parse): Set lprefix and lprefix_len correctly.
6442
6443 Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6444
6445 * ldlex.h: Don't declare yywrap if it is a macro.
6446 * ldlex.l: Include sysdep.h.
6447 * ldlang.c (lang_for_each_statement_worker,
6448 lang_for_each_statement): Forgot to use PARAMS.
6449
6450 Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6451
6452 * Makefile.in: Added .PHONY targets where appropriate. Added some
6453 comments. Also:
6454 (gcclibdir, version): Removed unused variables.
6455 (DEP): New variable, set to mkdep.
6456 (ALL_CFLAGS): New variable. Used in .c.o target.
6457 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
6458 variables.
6459 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
6460 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
6461 mostly obsolete variables. Adjusted remaining uses.
6462 (DEF_EMUL): Removed variable.
6463 (ldmain.o): Handle undefined EMUL error correctly.
6464 (ldemul-list.h): Depend on config.status rather than Makefile.
6465 Create via temporary file.
6466 (ver960.c, roll, make): Removed obsolete targets.
6467 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
6468 dependencies.
6469 * dep-in.sed: New file, used when rebuilding dependencies.
6470
6471 Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
6472
6473 Made many changes to eliminate gcc warnings. Made various
6474 cosmetic changes, declared various things in header files, removed
6475 various extern declarations from .c files. No substantive
6476 changes.
6477
6478 * ldlang.c (lang_process): Ifdef out final call to
6479 lang_size_sections again (reverting change of Nove 2), since it
6480 breaks the Sun4 linker.
6481
6482 Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6483
6484 * configure.in (alpha-*-netware*): New target; use alpha.
6485
6486 Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
6487
6488 * configure.in: Group targets by CPU. Merge some m68k target
6489 entries with different CPU specs that use the same ld_target
6490 values.
6491
6492 * configure.in: Add sparc*-*-coff.
6493 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
6494 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
6495 (em_coff_sparc.c): Add dependencies and build rules.
6496
6497 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
6498
6499 Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6500
6501 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
6502 New tokens.
6503 (command_line_option): Accept and ignore them (for now).
6504 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
6505 where n is a number.
6506
6507 Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6508
6509 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
6510 not in bfd_com_section, create the section in the BFD so that it
6511 can be placed in the right output section.
6512
6513 Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6514
6515 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
6516 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
6517 (OTHER_READONLY_SECTIONS): Define for .reginfo.
6518 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
6519 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
6520 Move OTHER_READONLY_SECTIONS after all the other readonly
6521 sections. Don't use DATA_ADDR twice.
6522
6523 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
6524 p is in a common section, make sure the BFD has a section of that
6525 name.
6526
6527 * ldlang.c (lang_common): Add newline to error message.
6528
6529 Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
6530
6531 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
6532 Lynx-specific script instead of m68kcoff.
6533 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
6534 (ENTRY): Define as __main.
6535 (TEXT_START_ADDR): Define as 0.
6536 (PAGE_SIZE): Define as 0x1000.
6537 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
6538 * scripttempl/m68klynx.sc: New file.
6539
6540 Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6541
6542 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
6543 arguments rather than treating them as emulation names.
6544
6545 Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
6546
6547 * configure.in: Support x86 unixware and netware plus generic netware.
6548
6549 Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6550
6551 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
6552 Correct values (?).
6553
6554 Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6555
6556 * Makefile.in (distclean): Don't delete dvi or info files.
6557 (ld.info): Update dependency list.
6558 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
6559
6560 Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6561
6562 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
6563 Set output_filename instead of creating a new node.
6564 (open_output): Don't set output_filename.
6565 (lang_final): Create the new node here.
6566 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
6567
6568 Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6569
6570 From Pete Hoogenboom (hoogen@cs.utah.edu):
6571
6572 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
6573 edata, _edata, end): Add definitions of these symbols.
6574 (__end): Remove definition of this symbol.
6575 (__data_start): Move definition of this symbol.
6576
6577 * emultempl/hppaosf.em: Various fixes and support for linker stub
6578 generation.
6579 (hppaosf_finish, hppaosf_search_for_padding_statements,
6580 hppaosf_create_output_section_statements): New functions in
6581 support of linker stub generation.
6582 (ld_hppaosf_emulation): Redefine to include new
6583 emulation-specific routines.
6584
6585 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
6586 Pass abs_output_section rather than NULL to avoid invalidating
6587 absolute symbols.
6588
6589 Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6590
6591 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
6592 (em_i386mach.c): New rule.
6593 * configure.in (i[34]86-*-mach*): New case.
6594 * config/i386-mach.mt: New file.
6595 * emulparams/i386mach.sh: New file.
6596
6597 Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6598
6599 * ld.h (flag_is_*): Removed macros.
6600 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
6601 Consistently check the BFD symbol flags directly, rather than
6602 using file_is_* macros.
6603
6604 Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
6605
6606 * configure.in (sparc*-*-lynxos*): New target.
6607 * Makefile.in: Add rule for em_sparclynx.c.
6608 (ALL_EMULATIONS): Add Lynx emulations.
6609 * config/sparc-lynx.mt: New file.
6610 * emulparams/sparclynx.sh: New file.
6611 * scripttempl/sparccoff.sc: New file.
6612
6613 Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6614
6615 * Makefile.in: Add dependency for $(EMULATION_OFILES).
6616
6617 Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6618
6619 * relax.c (write_relax): Check return value of bfd_seclet_link.
6620
6621 Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
6622
6623 * ldlang.c (delete_output_file_on_failure): New variable.
6624 (open_output): Set it after bfd open succeeds.
6625 * ldmisc.c (vfinfo): Test it.
6626
6627 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
6628
6629 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
6630 symbols.
6631
6632 * ldemul.c: Support was added to allow emulation-specific
6633 processing to occur. This support was added primarily for linker
6634 stub generation in the elf32-hppa gld.
6635 (ldemul_finish, ldemul_create_output_section_statements): New
6636 functions.
6637 * ldemul.h: Support was added to allow emulation-specific
6638 processing to occur. (As described above.) Added finish and
6639 create_output_section_statements fields to
6640 ld_emulation_xfer_struct structure.
6641 * ldlang.c: Add calls to emulation-specific routines.
6642 (lang_process): Add call to
6643 ldemul_create_output_section_statements function.
6644 (lang_process): Add call to a emulation-specific routine (and
6645 some processing after the call).
6646
6647 Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6648
6649 * configure.in: mips*- instead of mips-, mips*el changes
6650
6651 Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6652
6653 * configure.in (alpha-*-osf*): New target; use alpha.mt.
6654 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
6655 (em_alpha.c): New target; use alpha.sh and alpha.sc.
6656 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
6657 * config/alpha.mt: New file.
6658 * emulparams/alpha.sh: New file.
6659 * scripttempl/alpha.sc: New file.
6660
6661 Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
6662
6663 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
6664 types of different sizes (eg: 64 and 32 bits), so coerce.
6665 * ld.h (ALIGN_N): Add warning about usage.
6666
6667 Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6668
6669 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
6670 which we already have a definition, rather than checking in
6671 several different places whether the symbol is weak.
6672
6673 Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6674
6675 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
6676 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
6677 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
6678 expanded within them.
6679 * config/mipsb-elf32.mt: New file.
6680 * emulparams/elf32mipb.sh: New file.
6681 * Makefile.in (em_elf32mipb.c): New target.
6682
6683 Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
6684
6685 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
6686 lang_input_file_is_search_file_enum so objects brought in using
6687 INPUT() do a path lookup.
6688
6689 Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
6690
6691 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
6692 instead of {i386,m68k}-coff.
6693 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
6694 * config/i386-lynx.mt: New file.
6695 * config/m68k-lynx.mt: New file.
6696 * emulparams/i386lynx.sh: New file.
6697 * emulparams/m68klynx.sh: New file.
6698
6699 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
6700 but defaulting to _start.
6701
6702 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
6703 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
6704 LynxOS libc.
6705
6706 Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
6707
6708 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
6709 HOSTING_LIBS for testing.
6710
6711 Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6712
6713 Finish up support for i386-sysv4 (without shared libraries):
6714 * ld.h (flag_is_weak): Define.
6715 * ldlang.c (print_symbol): Mention whether symbol is weak.
6716 (print_input_section): Print weak symbols as globals.
6717 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
6718 (enter_global_ref): Do not warn if a weak symbol redefines a
6719 global symbol. Do not let a weak symbol redefine a common symbol.
6720 (enter_file_symbols): Treat weak symbols as global symbols.
6721 (subfile_wanted_p): Do not pull in an object file from a archive
6722 just to resolve an undefined weak symbol.
6723 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
6724 error; the error might be that malloc has run out of space.
6725 * ldsym.c (write_file_locals): Treat weak symbols as global.
6726 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
6727 use i386-elf.
6728 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
6729 * config/i386-elf.mt: New file; set EMUL to elf_i386.
6730 * emulparams/elf_i386.sh: New file.
6731 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
6732 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
6733 (ALL_EMULATIONS): Add em_elf_i386.o.
6734 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
6735 (em_elf_i386.c): New target, like other em_*.c targets.
6736 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
6737 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
6738 nonempty, and configured for native, add it to LIB_PATH.
6739
6740 Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
6741
6742 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
6743 Added statements to pass stab and stabstr sections through and
6744 mark them as NOLOAD, which makes GDB happier.
6745
6746 Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
6747
6748 * configure.in: Accept m68k-lynx-lynxos config.
6749
6750 * Makefile.in: Use $(SHELL) to run genscripts.sh.
6751
6752 Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
6753
6754 * config/coff-h8300.mt: Add EMUL=h8300h.
6755
6756 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
6757
6758 Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
6759
6760 * Makefile.in: Changed CXX back to g++.
6761
6762 Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
6763
6764 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
6765
6766 Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6767
6768 * Makefile.in (TAGS): Use shell wildcards.
6769
6770 Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
6771
6772 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
6773
6774 Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
6775
6776 * ld.texinfo: re-enable included config file; conditionalize doc
6777 for -oformat to interact properly with SingleFormat doc config
6778 var; rename @up/@down to @raisesections/@lowersections.
6779
6780 Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
6781
6782 * configure.in: recognize m88110.
6783
6784 Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6785
6786 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
6787 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
6788 ELF emulation is "elf32-hppa" not "elf-big".
6789 (hppaosf_before_parse): Remove unneeded processing of environment
6790 variables.
6791 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
6792 .text segment of output file.
6793 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
6794
6795 Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
6796
6797 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
6798 longer in bfd.h.
6799
6800 * ldlang.c, ld.h: updated copyright.
6801
6802 Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6803
6804 * ldlang.c (open_output, lang_check): Check return value of
6805 bfd_set_arch_mach.
6806
6807 Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
6808
6809 * scripttempl/h8500.sc: Start all sections in a different segment.
6810 * scripttempl/z8ksim.sc: Handle constructors
6811
6812 Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
6813
6814 * Makefile.in: revert earlier changes back to execute runtest
6815 with make check. cdtest and bootstrap now function as they
6816 did within the Makefile.
6817
6818 Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6819
6820 * Makefile.in: Update dependencies.
6821
6822 * configure.in: Set EMULATION_OFILES in Makefile based on
6823 --with-targets option.
6824
6825 Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
6826
6827 * Makefile.in: check targets reimplemented to old way.
6828
6829 Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
6830
6831 * config/i386v.mh, config/irix4.mh: Use gcc
6832 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
6833 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
6834 bfd/configure.host change.
6835
6836 Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6837
6838 * scripttempl/elf.sc: Handle .line and .debug* sections.
6839
6840 * ldlex.l: Use bfd_scan_vma, not strtoul.
6841
6842 Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6843
6844 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
6845 Remove inital caps in some error messages, change "can't" to
6846 "cannot", add missing colons.
6847 * ldmisc.c (vfinfo): Print "%%" as a single %.
6848 For '%' followed by unrecognized character, print them both
6849 verbatim instead of expecting a char * arg.
6850 For '%C', don't put the function name in parens.
6851
6852 * ldexp.c (invalid): Pass "%%", not "% ".
6853
6854 Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6855
6856 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
6857 (BSS_VAR): Removed; now always define _fbss.
6858 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
6859 Removed.
6860
6861 Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6862
6863 * configure.in: z8k-coff is the same as z8k-sim
6864
6865 Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
6866
6867 * testsuite/lib/ld.exp: new file
6868 * testsuite/config/unix-ld.exp: new file
6869 * testsuite/ld.bootstrap/bootstrap.exp: new file
6870 * Makefile.in: add dejagnu support for make check
6871
6872 Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6873
6874 * ldlex.l (comment): Add missing newline in message.
6875 * ldindr.c (add_indirect): Ditto.
6876 * ldexp.c (exp_fold_tree): Ditto.
6877
6878 Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6879
6880 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
6881 into externs.
6882
6883 * ldmisc.c (multiple_warn): New function.
6884 * ldmisc.h: Declare it.
6885 * ldmain.c (enter_global_ref): Call it.
6886 * ld.h (ld_config_type): Add warn_common.
6887 * ldlex.l, ldgram.y: Set it with -warn-common option.
6888 * ldver.c (help): Document it.
6889
6890 Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6891
6892 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
6893 target-specific sections, and for changing data section vma.
6894
6895 Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
6896
6897 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
6898 terminals, for Solaris.
6899 (dirlist_ptr): New static variable.
6900 (command_line_option): Accept new options.
6901
6902 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
6903 "-YP,...".
6904
6905 * config/sun4sol2.mt: Pass emulation name without ".sh".
6906
6907 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
6908 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
6909
6910 Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6911
6912 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
6913 .dtors, .data1, .rodata1 sections, instead of combining them into
6914 other sections. For `-r', set all section start addresses to
6915 zero.
6916
6917 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
6918 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
6919 (MAXPAGESIZE): Renamed from PAGE_SIZE.
6920
6921 Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6922
6923 * genscripts.sh: If this is the default emulation, set
6924 COMPILE_IN.
6925 * emultempl/*.em: Use it to determine whether to compile in the
6926 scripts.
6927
6928 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
6929 genscripts.sh. Pass the current emulation name without ".sh" on
6930 the end.
6931 * genscripts.sh: Take an default emulation arg.
6932 Use the current emulation name as EMULATION_NAME.
6933 Make default lib path for cross-compiling ':', not null.
6934 * emulparams/*.sh: Don't set EMULATION_NAME.
6935 * ldemul.c (ldemul_get_script): Take isfile arg.
6936 Pass it to emulation's get_script function.
6937 * ldemul.h: Adjust get_script prototypes.
6938 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
6939 No longer static.
6940 * ldfile.h: Declare it.
6941 * ldgram.y: Accept a script on the command line again,
6942 for parsing compiled-in scripts.
6943 * ldmain.c (main): If ld script is a file, parse it as a -T
6944 option, otherwise parse it directly.
6945 * emultempl/*.em (*get_script): Return the scripts themselves if
6946 this is the default emulation; otherwise return their file names.
6947 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
6948 generic.em.
6949 * emulparams/m88kbcs.sh: Use it.
6950
6951 * ld.h (ld_config_type::unix_relocate): Remove unused element.
6952
6953 Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6954
6955 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
6956 there's no change log entry yet, tsk tsk) from the list of
6957 emulations compiled in until Mark gets around to checking in
6958 emulparams/i386linux.sh.
6959 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
6960 changed, this file gets updated.
6961
6962 Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
6963
6964 * ldgram.y (OPTION_Lfile): New token.
6965 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
6966 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
6967
6968 Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
6969
6970 * configure.in: h8/300h support needs own .mt file.
6971 config/coff-h8300h.mt: New file.
6972
6973 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6974
6975 * ldmain.c: Don't include sys/stat.h; it already got included
6976 somewhere along the way.
6977
6978 Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
6979
6980 * Makefile.in: Add h8300h support.
6981 emulparams/h8300h.sh: New file.
6982 scripttempl/h8300h.sc: New file.
6983
6984 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6985
6986 * ldfile.c (ldfile_open_file): In error message, use the name the
6987 user gave (e.g., "-lc"), rather than the base file name.
6988
6989 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
6990
6991 * ldmain.[ch]: Remove initial Q_ from function names.
6992 * ldexp.c, ldindr.c, ldlang.c: Change callers.
6993
6994 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
6995
6996 * ldlang.c (lang_process): Move loading of default script from
6997 here to main. Add a "/" to start of script name to prevent
6998 finding it in "." first.
6999
7000 * ldmain.c (set_scripts_dir): Don't look in "." first.
7001
7002 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
7003 option_longmap.
7004
7005 Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
7006
7007 * Makefile.in (em_m88kbcs.c): Correct dependency.
7008 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
7009 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
7010 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
7011
7012 Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7013
7014 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
7015 main.c (main): Print the errno string in the error message.
7016
7017 Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
7018
7019 * configure.in: Accept h8300h for target cpu.
7020
7021 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
7022 present (demangle is smart enough to know whether to do it or not).
7023
7024 Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7025
7026 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
7027 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
7028
7029 * ldlang.c (lang_process): Use sizeof instead of magic constant.
7030
7031 * ldmain.c (get_emulation, check_for_scripts_dir,
7032 set_scripts_dir): New functions.
7033 (main): Call them.
7034
7035 Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
7036
7037 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
7038 Create symbol "end" instead of "__end". Comment out some parts
7039 that may not be needed (yet) for elf.
7040
7041 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
7042
7043 Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7044
7045 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
7046
7047 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
7048 when no prototype is being supplied.
7049 (ldmalloc, ldrealloc): Size argument is now size_t.
7050
7051 * ldmisc.c (finfo): New function, accepts FILE* argument.
7052 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
7053 without leading zeros.
7054 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
7055 bfd_vma value, instead of fprintf(%x) which won't hold a long long
7056 value.
7057 (concat, buystring): String lengths are size_t.
7058 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
7059
7060 * ldlang.c (new_statement): Size argument is now size_t. Added
7061 forward declaration with prototype.
7062
7063 Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7064
7065 * ldgram.y (OPTION_v): Don't turn on verbose output.
7066
7067 Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7068
7069 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
7070 bfd.h instead.
7071
7072 Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
7073
7074 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
7075 collect2 doesn't look for gld any more anyhow.
7076
7077 Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
7078
7079 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
7080 now have a non NULL srefs_chain.
7081
7082 * config/hp300hpux.mt: Use emulation hp3hpux rather than
7083 hp300hpux, since the latter does not exist.
7084
7085 Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7086
7087 * genscripts.sh: Put the scripts in the ldscripts directory, not
7088 emulations.
7089 * configure.in (ldscripts): Make, instead of emulations.
7090 * Makefile.in (scriptdir): Take off the "ld" part.
7091 (install, clean, distclean): Use ldscripts, not emulations.
7092 In tests, don't pass -Lemulations.
7093 Don't pass tooldir/lib to genscripts.sh.
7094 * genscripts.sh: Don't take tooldir/lib arg.
7095 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
7096 default script file.
7097
7098 Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
7099
7100 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
7101
7102 Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
7103
7104 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
7105
7106 Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
7107
7108 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
7109 run in parallel without colliding on yacc's static file names.
7110 Without the stub rule, make will try to start two yacc's
7111 concurrently which fails because of yacc's static file names.
7112
7113 Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
7114
7115 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
7116 symbols.
7117
7118 Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7119
7120 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
7121 different from libdir.
7122
7123 * Makefile.in (scriptdir): Base on tooldir, not datadir.
7124
7125 Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7126
7127 * ldver.c (help): New function.
7128 * ldver.h: Declare it.
7129 * ldlex.l, ldgram.y: Recognize new options --help and --version.
7130
7131 Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
7132
7133 * Makefile.in (INCLUDES): Don't need ../include any more.
7134
7135 Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7136
7137 * ldlex.l, ldgram.y: Support new -oformat option.
7138 Remove attempt at supporting script fragments on the command line.
7139 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
7140 * mri.c (mri_format), ldgram.y: Change callers.
7141 * ldlang.h: Change prototype.
7142
7143 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
7144
7145 * Makefile.in: canonicalize install.sh; for use within
7146 this directory (and subdirs)
7147
7148 Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7149
7150 * ldgram.y: Tweak grammar to make reporting of invalid options work.
7151
7152 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
7153 and .cc.o rule.
7154
7155 Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7156
7157 * ldfile.c (ldfile_open_command): Don't try .ld extension.
7158 It wasn't documented (or likely used) and wastes time.
7159 (try_open): If EXTEN is empty, don't try it.
7160
7161 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
7162 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
7163 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
7164 with normal function declarations.
7165
7166 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
7167 Move *.sc-sh to scripttempl/*.sc.
7168 * {emultempl,emulparams,scripttempl}/README: New files.
7169 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
7170 removed, replaced with generic.em.
7171 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
7172 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
7173
7174 * *.em (*_get_script): Return script name instead of script contents.
7175 * ldlang.c (lang_process): Change caller.
7176
7177 * ldlex.l, ldgram.y: Recognize -m option.
7178 Check for input files after *all* options in grammar.
7179 * ldmain.c (main): Check for -m options. Add default directory
7180 for -m.
7181
7182 * mkscript.c: File removed.
7183 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
7184 to add to the default LIB_PATH.
7185 Look for input files in the new subdirectories.
7186 Create the scripts in emulations subdirectory and don't filter
7187 them through mkscript.
7188 * configure.in: Make the emulations subdirectory.
7189
7190 * Makefile.in: Account for all of the above changes.
7191 Remove unused .SUFFIXES. Get libgcc.a path with gcc
7192 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
7193 Put CFLAGS last in the compilation rules.
7194 Add -I../bfd to INCLUDES so sysdep.h is found.
7195
7196 Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7197
7198 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
7199
7200 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
7201 dependent on RELOCATING, not RELOCATION.
7202 * hp3hpux.sh (SHLIB_PATH): Define it.
7203
7204 Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7205
7206 * ldfile.c (try_open): If opening without the extension fails,
7207 try with the extension even if -v or -V was given.
7208 had_script is imported (from ldgram.y), not exported.
7209
7210 Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
7211
7212 * Makefile.in: remove parentdir support, use INSTALL_XFORM
7213
7214 Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
7215
7216 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
7217 * ldgram.y (statement_list_opt): New nonterminal, either empty or
7218 statement_list.
7219 (section): Use statement_list_opt, not statement_list.
7220 * m68kcoff.sc-sh: Gather constructors and destructors and define
7221 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
7222 * sa29200.sc-sh: Gather constructors and destructors and define
7223 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
7224
7225 Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
7226
7227 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
7228 * configure.in: No longer need to configure to get sysdep.h.
7229
7230 Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7231
7232 * Makefile.in: remove install:all and install-info:info
7233 dependencies (these cause some spurious rebuilds at 'make install'
7234 time)
7235
7236 Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
7237
7238 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
7239 (mips-idt-ecoff*): Added trailing '*'.
7240 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
7241 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
7242 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
7243
7244 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
7245 incorrect definitions.
7246
7247 Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
7248
7249 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
7250 symbols, unless stripping.
7251
7252 Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
7253
7254 * Makefile.in: configure looks for ####, so remove lines with many
7255 '#' characters.
7256 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
7257 and HOSTING_LIBS correctly so that ``make check'' will work.
7258
7259 Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
7260
7261 * mips.sc-sh: Define _etext, _edata, and _end, in addition
7262 to etext, edata, and end. Needed for IRIX 4.0.5F.
7263 Patch from mwp@iconix.oz.au (Michael Paddon).
7264
7265 * Version 2.2.1 released.
7266
7267 Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7268
7269 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
7270 * mipsbsd.sh (EMULATION_NAME): Use new file name.
7271
7272 Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7273
7274 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
7275 properly right now.
7276
7277 * Version 2.2 released.
7278
7279 Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
7280
7281 * ldver.c (ldversion): Bump version number to 2.2.
7282
7283 Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
7284
7285 * NEWS: New file.
7286
7287 Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
7288
7289 * mips.sc-sh: Don't define BSS_VAR unless relocating.
7290
7291 Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
7292
7293 * Makefile.in (mkscript.o, mkscript): Build mkscript via
7294 mkscript.o, rather than directly from mkscript.c.
7295
7296 Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7297
7298 * configure.in: Look for ${target_makefile_frag} relative to
7299 ${srcdir}, not relative to build directory.
7300
7301 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
7302 * configure.in: Recognize hppa*-hp-osf.
7303 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
7304 (em_hppaosf.c): Build it.
7305 * config/hppaosf.mh, hppaosf.mt: New files.
7306
7307 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
7308 some system header files. All uses changed.
7309
7310 * configure.in: Recognize i386-aix configurations as i386-coff
7311 targets.
7312
7313 * configure.in: Recognize m68*-*-hpux.
7314 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
7315 the value of STACKZERO.
7316 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
7317 (em_hp3hpux.c): Build it.
7318 * hp3hpux.sh, config/hp300hpux.mt: New files.
7319
7320 Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
7321
7322 * mips.sc-sh: Put constructors in the .data section.
7323 * Makefile.in (cdtest): Added dependency on ld.new.
7324
7325 Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
7326
7327 * Makefile.in: Change definition of $(tooldir) to match FSF.
7328 * vax.sh, config/vax.mt, configure.in, Makefile.in:
7329 Support VAX Ultrix and BSD.
7330
7331 Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7332
7333 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
7334
7335 Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
7336
7337 * ldlang.h (struct memory_region): Change `length' and
7338 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
7339 * ldlang.c, mri.c: Corresponding changes, plus lint.
7340
7341 Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
7342
7343 * configure.in: For all i386 targets, accept i486 as well.
7344
7345 Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
7346
7347 * ldlang.c (wild_doit): Preserve all flags for a
7348 SEC_SHARED_LIBRARY section.
7349 (size_input_section): Consider any SEC_HAS_CONTENTS section when
7350 computing largest_section.
7351
7352 Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
7353
7354 * ldlang.c (lang_output_section_statement_lookup): Initialize all
7355 fields of newly created structure.
7356
7357 Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
7358
7359 * ldmain.c (g_switch_value): New variable.
7360 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
7361 (command_line_option): Accept -G and set g_switch_value.
7362 * ldlex.l (COMMAND): Accept -G.
7363 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
7364
7365 Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7366
7367 Support for linking and loading at different places:
7368
7369 * ldlex.l: Add "AT" keyword.
7370 * ldgram.y: Cleanup, and parse AT.
7371 * ldlang.c (print_output_section_statement): Print output address
7372 of section in map. (lang_size_sections): Fill sections' lma with
7373 load address.
7374 * ldlang.h (lang_output_section_statement_type): Add load_base
7375 information.
7376
7377 * ldindr.c (add_indirect): Keep more information in the alias
7378 symbol chain.
7379 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
7380 attribute from an input section.
7381 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
7382 default. (Q_enter_file_symbos): Indirect symbols now are known by
7383 their section, not a special symbol flag.
7384 * ldsym.c (write_file_locals): Indirect symbols aren't local.
7385 (write_file_globals): Write the mapping for an indirect symbol.
7386 * relax.c (build_it): When forced to write a NEVER_LOAD section,
7387 fill it with zeros.
7388
7389 Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
7390
7391 * ld.texinfo: changes for q1
7392
7393 Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7394
7395 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
7396
7397 Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7398
7399 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
7400
7401 Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
7402
7403 * mips.sc-sh: Added variables which may be overridden by a
7404 specific emulation.
7405 * mipsidt.sh: New file; emulation for IDT MIPS board.
7406 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
7407 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
7408 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
7409 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
7410
7411 Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7412
7413 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
7414 ralphc@pyramid.com.
7415 * i386bsd.sh, config/i386bsd.mt: New files.
7416 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
7417
7418 Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
7419
7420 * mri.c: Add extern declaration of strdup.
7421 * ldsym.c (KEEP macro): Add spaces around '=' for the
7422 sake of old (e.g. PCC) compilers.
7423
7424 Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
7425
7426 * ldver.c: Bump to version 2.1.
7427
7428 Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7429
7430 * ldgram.y: allow section types without address expressions.
7431 * ldlang.c (lang_relocate_globals): avoid possible hang with
7432 undefined but unreferenced symbols.
7433 * relax.c (relax_section): don't complain if the script file isn't
7434 relaxable but -relax is set
7435
7436 Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7437
7438 * configure.in: go32 is the 3rd part of the triple, not the 2nd
7439
7440 Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
7441
7442 * mipsbig.sh: New file. Big endian MIPS emulation.
7443 * config/mips-big.mt: New file. Use mipsbig emulation.
7444 * configure.in (mips-sgi-irix*): Use target mips-big.
7445 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
7446 (em_mipsbig.c): New target. Uses mipsbig.sh.
7447
7448 Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
7449
7450 * mips.sc-sh: Put .scommon sections into .sbss section.
7451
7452 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
7453 rather than always putting them in bfd_com_section.
7454 * ldlang.c (lang_common): If a common symbol is not in
7455 bfd_com_section, put in a section of the same name, rather than
7456 always putting it in section COMMON.
7457
7458 Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
7459
7460 * ldmain.c (subfile_wanted_p): If we already have a common
7461 definition of a symbol, don't necessarily pull in an object file
7462 that provides a non-common definition.
7463
7464 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
7465 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
7466 linker.
7467 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
7468 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
7469
7470 Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
7471
7472 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
7473 the link to it.
7474
7475 Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
7476
7477 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
7478 checking for equality to bfd_com_section.
7479
7480 Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
7481
7482 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
7483 targets, linker script.
7484 * mipslit.sh: New file. Little endian MIPS emulation.
7485 * config/mips-lit.mt: New file. Use mipslit emulation.
7486 * configure.in (mips-dec-ultrix*): Use target mips-lit.
7487 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
7488 (em_mipslit.c): New target. Uses mipslit.sh.
7489
7490 Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
7491
7492 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
7493 $(tooldir)/bin/gld, so that gcc can find it with or without
7494 collect2.
7495
7496 Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7497
7498 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
7499 write_norel. All linking is now done via write_relax. Call
7500 ldsym_write before calling write_relax.
7501 * relax.c: Added copyright.
7502 (write_relax): Renamed from write_relaxnorel. Added relocateable
7503 argument. seclet_dump renamed to bfd_seclet_link.
7504 * relax.h: Added copyright.
7505
7506 Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7507
7508 * ldmain.c (decode_library_subfile): Patch from
7509 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
7510
7511 Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7512
7513 * config/vxworks960.mt renamed to config/i960.mt
7514
7515 * configure.in: sparc-aout emulates a sun4, as does
7516 sparc*-vxworks, i960-nindy uses gld960 emulation
7517
7518 Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7519
7520 Fix support for NOLOAD, add INCLUDE
7521 * ldfile.c (ldfile_open_command_file): pass file name to
7522 lex_push_file.
7523 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
7524 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
7525 attribute.
7526
7527 Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7528
7529 * Makefile.in, config.h: no more default emulation. Make the lack
7530 of emulation a compile time error
7531
7532 Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7533
7534 * configure.in: recognise all sparclite variants, not just 'sparclite'
7535
7536 Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
7537
7538 * m68kcoff.sc-sh: define _end as well as end, for consistency with
7539 aout.sc-sh.
7540
7541 * configure.in: accept *-ericsson-ose for any m68k CPU.
7542
7543 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
7544 for each output section.
7545
7546 Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
7547
7548 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
7549 macro bfd_asymbol_bfd as appropriate.
7550 * Makefile.in: Un-duplicate ldlex.c dependency.
7551 * condigure.in: Replace my_host case table by sourcing
7552 ../bfd/configure.host. Allow std-host as the default.
7553 * ldmisc.c: Change logic for C++ name demangling: There is
7554 no initial '_' to remove from stab-derived function names.
7555
7556 Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7557
7558 * ldlang.c (lang_init_script_file): don't attach the output file
7559 sections to the script file.
7560
7561 Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7562 * ldlang.c (wild): run expansion loop over command line bfd too.
7563 (lang_ini_script_file): initialize more parts of the command line
7564 bfd.
7565 * ldlex.l: fix DEFINED start states.
7566
7567 Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7568 -y support
7569 * ld.texinfo: new doc.
7570 * ldgram.y, ldlex.l: understand -y<symbol>
7571 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
7572 print info. (add_ysym): new function.
7573 * ldsym.h: (ldsym_type): new define SYM_Y.
7574
7575 Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
7576
7577 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
7578 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
7579 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
7580 macros with PARAMS. Recreational cleanup. Update copyrights.
7581
7582 Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7583
7584 * Makefile.in: pass down the bfd source directory for includes
7585
7586 Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
7587
7588 * ldlang.c (lang_size_sections): don't change size and address for
7589 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
7590 sections.
7591
7592 Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7593
7594 * relax.c (build_it): re-enable the processing of data_statements
7595 in scripts, makes counted contructor lists work again.
7596
7597 Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
7598
7599 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
7600
7601 Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
7602
7603 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
7604 and end.
7605
7606 Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
7607
7608 * Support for i386-sysv.
7609 configure.in: check for i386-*-sysv* and i386-*-sco*.
7610 i386coff.sc-sh: rewrote to support SVR3 by default.
7611 ldctor.c (find_constructors): preserve stat_ptr.
7612 ldlang.c (wild_doit): initialize vma and size of new output
7613 section to corresponding input section. This is required for
7614 shared library support.
7615 (lang_size_sections): don't modify vma and size of sections which
7616 are never loaded (for shared libraries).
7617 ldwrite.c (copy_and_relocate): copy the contents of any section
7618 which has contents, not just sections which are loaded (for shared
7619 libraries).
7620
7621 Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7622
7623 * ldlang.c (size_input_section): count the sizes of all sections
7624 we allocate.
7625
7626 Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7627
7628 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
7629 to demangle symbols better
7630
7631 Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
7632
7633 * ldlang.c (lang_finish): don't warn if -e start symbol does not
7634 exist when linking with -r.
7635
7636 Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
7637
7638 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
7639 .bss segment.
7640
7641 Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7642
7643 * ldmain.c (linear_library): don't even think about processing
7644 an object file if it's already been done
7645
7646 Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7647
7648 * configure.in: the hp9000/300 config file is now hp300
7649
7650 Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7651
7652 * config/z8ksim.mt: new file
7653
7654 Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
7655
7656 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
7657 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
7658
7659 * ld.h (strip_symbols_type): Add value STRIP_SOME.
7660 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
7661 * ldlang.c (lang_add_keepsyms_file): New function.
7662 * ldlex.l: Handle "-retain-symbols-file".
7663 * ldsym.c (keepsyms_file, kept_syms): New vars.
7664 (process_keepsyms): New functihon; reads file, marks symbols for
7665 saving.
7666 (write_file_locals): File symbols should always be kept.
7667 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
7668 and "-s". Process retain-symbols file before setting symtab.
7669 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
7670 (keepsyms_file, kept_syms): Declare them.
7671
7672 * ldmain.c (main): Non-fatal errors should still cause non-zero
7673 exit status even with -r.
7674
7675 Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7676
7677 Added initial support for the z8k
7678 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
7679 * configure.in, Makefile.in: modified to reflect above
7680
7681 * ldlang.c (lang_check): when linking conflicting architectures,
7682 make the output file reflect at least one of the bad inputs.
7683
7684 Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
7685
7686 * Makefile.in (install): if $(tooldir) exists, install ld in
7687 $(tooldir)/bin.
7688
7689 Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7690
7691 * Makefile.in, configure.in: modified to support i386-coff
7692 * i386coff.sh: new file
7693
7694 Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
7695
7696 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
7697 added m68k-coff emulation mode, stolen from a29k emulation.
7698 Almost certainly wrong, but perhaps better than sun3.
7699
7700 Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
7701
7702 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
7703 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
7704 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
7705 This is one character shorter, and lets people build on
7706 SVR3 system. (ld__h8300xray.[co] was the killer there;
7707 h8300xray.sc-sh is also overlong, but seems harmless.)
7708 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
7709 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
7710 * configure.in: Add host isc.
7711
7712 * ldver.c: Call it version 2.0.
7713
7714 Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
7715
7716 * ldver.c: Bump to version 0.98.
7717 * TODO: New file.
7718
7719 * Makefile.in: Added mostlyclean, distclean, realclean rules.
7720
7721 Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
7722
7723 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
7724 * ldlex.l: Moved comment() to end, since some compilers
7725 otherwise have problems with input() used before it is defined.
7726
7727 Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7728
7729 * configure.in: added Solaris 2 and Irix 4 host support.
7730
7731 Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7732
7733 * Makefile.in: remove -S flag from the FLEX definition
7734
7735 * configure.in: rewrote, using new style case statement. use
7736 m68k.mt for m68k-aout systems
7737
7738 Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
7739
7740 * Makefile.in: map "ld" through program_transform_name when
7741 installing.
7742
7743 Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
7744
7745 * cplus-dem.c: Removed. Use the version in libiberty now.
7746 * ldmisc.c: Use new libiberty version of cplus_demangle().
7747
7748 Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
7749
7750 * gld960.em (gld960_choose_target): default to little endian, not
7751 big endian.
7752
7753 Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7754
7755 * ldlang.c (lang_process): don't pass null pointers when
7756 abs_output_section is what is required.
7757 * ldwrite.c (ldwrite): use malloc to allocate the largest space
7758 used, and pass that down.
7759 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
7760 than alloca.
7761
7762 Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
7763
7764 * configure.in, config/ose68.mt: renamed OSE to ose.
7765
7766 Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
7767
7768 * ldsym.c (write_file_locals): Reorder check for common or
7769 undefined symbols so that it works.
7770
7771 Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
7772
7773 * configure.in: accept all m68K family members.
7774
7775 * Makefile.in: always create installation directories.
7776
7777 Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7778
7779 * ldlex.l: now parses comment correctly, added ~ to acceptable
7780 chars in filenames
7781
7782 * ldexp.c (exp_unop): pass down abs_output_section - now can have
7783 unary -ve constants.
7784
7785 * ldlang.c (lang_finish): warn when an entry symbol supplied on
7786 the command line can't be found.
7787
7788 Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7789
7790 * ldlang.h: add new field "loadable" to output_section_statement.
7791 * ldlang.c (lang_output_section_statement_lookup): initilize new
7792 field. (wild_doit): if new field is not set, then stop output
7793 section from being loadable.
7794 (lang_enter_output_section_statement): set the field from the
7795 NOLOAD keyword
7796 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
7797 * h8300hms.sc-sh, h8300hms.em: get -r right.
7798
7799 Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
7800
7801 * ldint.texinfo: New internals manual (beginnings thereof).
7802 * PORTING: Removed, merged into ldint.texinfo.
7803
7804 Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
7805
7806 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
7807 cdtest.exp: A test program (copied from libg++/test-install)
7808 that tests that constructor and destructors are handled
7809 corrrectly.
7810
7811 Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7812
7813 * Makefile.in (install): install from ld.new, renaming during the
7814 copy, or else the next 'make install' needs to re-link ld.
7815
7816 Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
7817
7818 * configure.in: generalise hp recognition (from sef).
7819
7820 Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7821
7822 * configure.in: recognize bsd and hpux hppa configurations.
7823 error messages echo to stderr, not stdout
7824
7825 Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7826
7827 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
7828 ldmisc.c: removed rcsid's.
7829
7830 Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7831
7832 * ldlang.c (lang_map): print changes in sizes due to relaxing
7833 (size_input_section): maintain the delta information.
7834 * ldlang.h: add new field to struct to contain delta info.
7835 * relax.c (relax_section): complain if input not relaxable.
7836 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
7837 start of a filename
7838
7839 Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7840
7841 * ldmain.c(main): prevent -r and -relax from being on at the same
7842 time.
7843
7844 Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7845
7846 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
7847 aliasing problems
7848
7849
7850 Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7851
7852 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
7853 * ldexp.c: lint
7854 * ldlang.c(open_output): set the target arch and machine as soon
7855 as we can. (lang_size_sections): use new macros for setting vma
7856 * ldwrite.c: lint
7857
7858 Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
7859
7860 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
7861 Also deleted an unreachable path to wrs.
7862
7863 Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
7864
7865 * Makefile.in (install): use -d test for $tooldir before
7866 installing ld there so that $tooldir can be inherited from
7867 top-level Makefile.
7868
7869 Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
7870
7871 * ldlang.c: Two non-substantial changes for the sake of
7872 the old Portable C Compiler.
7873
7874 Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7875
7876 * ldgram.y, ldlex.l: parse ABSOLUTE
7877 * ldexp.c: add support for ABSOLUTE
7878
7879 Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
7880
7881 * Makefile.in: Added default definitions for HOSTING_CRT0,
7882 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
7883 * config/*.mh: Miscellaneous clean-up: Removed definitions
7884 of YACC (since it is not longer used in the Makefile).
7885 Remove HOSTING_* definitions that are subsumed by the
7886 ones added to Makefile.in. Removed most definitions of CC.
7887 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
7888 These are no longer needed.
7889
7890 Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
7891
7892 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
7893 rules, since these are used when building a distribution.
7894 * Makefile.in (ldlex.c): Don't re-direct output, since that
7895 leaves a bogus output files if it fails.
7896
7897 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
7898 * ldlex.c: Fix some unnecessary flex-specific-isms.
7899
7900 Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7901
7902 * ldgram.y: move spurious semicolon
7903 * ldexp.h: fix prototype
7904
7905 Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
7906
7907 * ld.texinfo: references to linker now say "ld" not "gld".
7908
7909 Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7910
7911 changed calling convention for Q_enter_global_ref
7912 * ldexp.c, ldlang.c, ldmain.c: reflect this
7913 * ldver.c: bump version to 1.97.1
7914 * ldindr.c (add_indirect): when an edict declaring an indirect
7915 symbol is found, make sure that any ideas about the symbol being
7916 common are changed if it now known to be defined.
7917 * ldmain.c (linear_library): complain once if archive isn't
7918 ranlibbed.
7919 * ldlang.h, ldlang.c: make room for and initialize the complain
7920 once field.
7921
7922 Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7923
7924 * Makefile.in: use flex & bison from ../ if they exist.
7925
7926 Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7927
7928 * relax.c (build_it): don't allocate space in the output file for
7929 stuff if -R flag applys to it.
7930 * ldfile.c: merge in VMS filename support
7931 * ldmain.c (main): take out ./ from library path, and close file
7932 before unlinking. Make multiple defs of a symbol create an
7933 unexecable file.
7934 * ldmisc.c: fatal errosrs delete output file
7935
7936 Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
7937
7938 * ldver.c: Increase version number to 1.97, for consistency
7939 with ../binutils.
7940
7941 Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
7942
7943 * Makefile.in: FLEX -> LEX.
7944
7945 * ld.texinfo: {} -> @{@}.
7946
7947 Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
7948
7949 * ld.texinfo: describe alternate, MRI-compatible linker scripts
7950 (and associated change in -c option, now used for these scripts)
7951
7952 Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7953
7954 * ldver.c: Bumped version to 1.96 - new release, resync with the
7955 bfd too #.
7956 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
7957 rather than with raw malloc, makes it easier to track where memory
7958 is going.
7959 * ldsym.h, ldsym.c: create obstack for all global symbols too.
7960 * ldwrite.c (ldwrite): moved malloc so only used when needed.
7961 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
7962
7963
7964 Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
7965
7966 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
7967
7968 * Makefile.in: use bootstrap for check.
7969
7970 Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7971
7972 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
7973 PUBLIC.
7974 * Makefile.in: now use flex, not lex
7975 * ldlex.l, ldlang.c, ldctor.c: lint
7976
7977 Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7978
7979 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
7980 different sorts of filenames on the command line than in a script.
7981
7982 Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7983
7984 * Makefile.in: rework CFLAGS so that they can be passed on the
7985 make command line. Remove MINUS_G. Default CFLAGS to -g.
7986
7987 Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7988
7989 * relax.c: added handling for new "padding" seclet type, used to
7990 fill out gaps between section.
7991 * ldgram.y, ldlex.l: now -defsym on the command line is done
7992 properly.
7993
7994 Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7995
7996 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
7997
7998 Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7999
8000 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
8001 scripts.
8002
8003 Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
8004
8005 * Makefile.in (install): Install second copy in $(tooldir)/bin
8006 without $(program_prefix), since that's what gcc expects.
8007
8008 Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8009
8010 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
8011 * h8300*: fix bit rot and add support for h8300xray target
8012 * go32.sh: target emulation for go32.
8013
8014 Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
8015
8016 * gld960.em, i960.sc-sh. Fix i960 bit rot
8017
8018 Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
8019
8020 * Makefile.in: install man page.
8021
8022 Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8023
8024 * config/mt-<foo> renamed to <foo>.mt
8025 * config/mh-<foo> renamed to <foo>.mt
8026 * configure.in changed to reflect this
8027 * genscripts.sh now make .xbn files rather than .xN files
8028
8029 Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
8030
8031 * ldver.h: fix decl of ldversion.
8032
8033 Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
8034
8035 * Makefile.in: added check target.
8036
8037 Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8038
8039 * ldmain.c (Q_enter_file_symbols): now aliases work again
8040
8041 Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
8042
8043 * Makefile.in: added clean-info target.
8044
8045 Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8046
8047 * ldexp.c (exp_print_tree): don't try and follow null pointers
8048 around.
8049 * ldgram.y: remove 11 shift reduce errors
8050
8051 Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
8052
8053 * Makefile.in: added tooldir and program_prefix.
8054
8055 Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
8056
8057 * ldlang.c (size_input_section): don't move absolute sections
8058 around!
8059
8060
8061 Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
8062
8063 * cplus-dem.c: yet another copy of this - maybe it should go into
8064 libiberty ?
8065 * ldgram.y: now -V and -v have different actions
8066 * ldver.c: if -V, prints list of emulations compiled in
8067 * ldmisc.c: support for cplus demangling
8068
8069
8070 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
8071
8072 * Makefile.in, configure.in: removed traces of namesubdir,
8073 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
8074 copyrights to '92, changed some from Cygnus to FSF.
8075
8076 Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
8077
8078 * Makefile.in: Change mkscript rule into one for ./mkscript
8079 (for the sake of makes that don't realize they're the same).
8080 * PORTING: Add more details.
8081 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
8082
8083 Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
8084
8085 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
8086 config/mt-hp300bsd: New port to hp300 running BSD.
8087
8088 Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
8089
8090 Major rewrite of how ld is configured. The major idea
8091 is to use shell scripts to generate everything.
8092 * generic.em replaces ldtemplate.
8093 * Other *.em files replace various *.c files.
8094 A *.em file is a shell script that generates the corresponding
8095 ld__*.c file that implements an emulation. This is usually
8096 a straight 'cat' of a here-document, possibly with substitutions.
8097 * Script files (*.sc) are places by *.sc-sh scripts.
8098 Again, these are simple shell scripts that 'cat'
8099 here-documents, usually with some substitutions.
8100 The output a *.sc-sh is a script file.
8101 * Each emulation is defined by a short shell script with
8102 extension *.sh that specifies the emulation-specific
8103 parameters (such as the name of the *.sh-sc and *.em
8104 files to use).
8105 * genscript.sh is the master shell script used to generate
8106 an emulation. It is passed various argument, including
8107 the name a the emulation-speciic *.sh file that it
8108 "sources" to set variables to emulation-specifc parameters.
8109 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
8110 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
8111 * config/mh-foo: Rename LDEMULATION names as appropriate
8112 (usually 'gldfoo' -> plain 'foo').
8113 * ldwrite.c: Fixed a typo in a comment.
8114 * Makefile.in: Major changes. Removed some the sed
8115 magic to converts scripts, since that is now handled
8116 by genscripts.sh and the *.sc-sh scipt generators.
8117 * config.h: Remove a bunch of macros defining emulations
8118 and targets. This becomes one less file to edit when
8119 adding emulations or targets.
8120 * ldemul.h (struct ld_emulation_xfer_struct): Add
8121 emulation_name and target_name fields.
8122 * ldemul.c, ldemul.h: Define some default functions used
8123 by most emulations (and remove from the *.em scripts).
8124 * ldemul.c (ldemul_choose_target): Search the new
8125 ld_emulations array using a loop (instead of a hardwired
8126 nested if statement).
8127 Define the ld_emulation from the automatically-geenrated
8128 ldemul-list.h. This means you no longer have to edit ldemul.c
8129 to add a new emulation.
8130 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
8131 their expansions, since the former no longer exist.
8132 * PORTING: A very rough first draft of a porting guide.
8133
8134 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
8135 to be terminated by a new-line (instead of requiring a semicolon).
8136
8137 Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
8138
8139 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
8140 tests for NULL pointers all over the place.
8141 * ldlang.c (lang_process): remember to relocate global symbols
8142 *after* relaxing has done it stuff.
8143
8144 Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
8145
8146 * config/mt-coff-h8300: use EMUL like everything else
8147 * ldlang.c: (print_padding_statement): print the right address.
8148 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
8149
8150
8151 Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
8152
8153 * ldlex.l: Put pack -noinhibit-exec and -sort-common
8154 * ldlang.c (print_data_statement): print the right address.
8155
8156 Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
8157
8158 * Makefile.in: The rule for testing ld by re-linking itself
8159 via an intermediate -r link was moved to the ld1 rule
8160 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
8161 which allows the bootstrap rule to work.
8162 * ldctor.c (find_constructors): Don't create a constructor
8163 list if it is already defined (as would happen if ld is
8164 invoked by collect).
8165
8166 Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
8167
8168 * config/mh-sparc.h: now uses libgcc.a
8169 * ldmain.c: quit using exit
8170 * *sc: use *(COMMON) rather than [COMMON]
8171 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
8172 to allow preprocessing of .l file.
8173 * Makefile.in: New ldlex.l mangling
8174 * ldexp.c (fold_binary): perform expressions with % and / in
8175 integer.
8176 * ldfile.c (open_a): open archives on VMS in a special way
8177
8178
8179 Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
8180
8181 * ldgram.y: map -M behave in the same way as -Map (sets file name
8182 to be "-".
8183 * ldsym.c, ldlang.c: remember that size of a section is dependent on
8184 whether or not relaxing has been done.
8185 * ldmain.c: don't open a map file if it doesn't have a name
8186 * relax.c: all the brains have moved into bfd.
8187 * ldwrite.c: ammend comment
8188
8189 Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
8190
8191 * Makefile.in: added relax, also made three stage go through a
8192 partial link stage.
8193 * relax.c : added
8194 * config.h: if GNU960 defined, then default emulation mode is
8195 GLD960
8196 * ldexp.h, ldexp.c: map to file hooks
8197 * ldlang.c: map to file hooks
8198 * ldgram.y: added -Map -relax
8199 * ldlex.l: added -relax, -Map
8200 * ldmain.c: open map file
8201 * ldmisc.c: support for map file
8202 * ldwrite.c: new relax magic
8203
8204 Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
8205
8206 * Makefile.in, config/tm-*.h: Clean up make output, only
8207 pass DEFAULT_EMULATION to ldmain.c.
8208
8209 Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
8210
8211 * ldver.c: Bump to version 1.94.
8212
8213 Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
8214
8215 * Makefile.in: infodir belongs in datadir.
8216
8217 Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
8218
8219 * Makefile.in: Pass -y to bison. (Again;
8220 accidentally deleted by Rich.)
8221 * news.sc, ldgld68k.sc: Define __end as well as _end.
8222
8223 Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
8224
8225 * ldindr.h: added to contain prototypes of ldindr.c
8226 * ldfile.c: include ctype.h
8227 * ldmain.c: include the requried prototype headers
8228 * ldwrite.c: get_reloc_upper_bound has been renamed
8229 bfd_get_reloc_upper_bound
8230
8231 Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
8232
8233 * Makefile.in: punt "fundamental" mode because it breaks my emacs
8234 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
8235 spaces following hyphens, bsd make can't cope. added
8236 standards.text support and made it look like all the other
8237 makefiles.
8238
8239 * configure.in: configure now runs entirely in objdir so make file
8240 existence checks against ${srcdir}. Mark this directory as
8241 target dependent.
8242
8243 Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
8244
8245 * Makefile.in: idestdir and ddestdir go away. Added copyrights
8246 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
8247 and mandir now keyed off datadir by default.
8248
8249 Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
8250
8251 * ldver.c: Bumped version to 1.93.
8252 * Makefile.in: Pass -y to bison.
8253
8254 Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
8255
8256 * config.h: h8 is now coff, not ieee
8257 * h8300hds.sc: reflect the same
8258
8259 Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
8260
8261 * ldver.c (ldversion()): Update to 1.92.
8262 * ldctor.c: There are two places constructor sets
8263 can be defined. One of them checked for an existing
8264 duplicate, the other didn't. Unfortunately, the latter
8265 was called after the former ...
8266 So, factor out code for inserting a new element into
8267 constructor_name_list (after checking for a duplicate)
8268 into a new function add_constructor_name, and call
8269 it from both aforementioned places (ldlang_add_constructor
8270 and ldlang_check_for_constructors).
8271
8272 Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
8273
8274 * Makefile.in: Rename .c files generated from ldtemplate
8275 to have names starting with ld__. This helps 'make clean'.
8276
8277 Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
8278
8279 * Makefile.in: Take out the version number for install
8280 * m88kbcs.sc: put in contructor blocks.
8281
8282 Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
8283
8284 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
8285 parameter, a format, and an arg pointer, and rename it to
8286 vfinfo(). Write info() in terms of new vfinfo().
8287 New einfo() is the same as info(), except it writes to stderr.
8288 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
8289 ldmisc.c: Replace "error" calls to info() by new einfo().
8290
8291 Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
8292
8293 * ldlex.l ldgram.y: made -V option do same as -v
8294 * Makefile.in: Added $(MINUS_G) flag so debugging can be
8295 turned off
8296
8297 Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
8298 i386 aout changes from Bob Kukura
8299 * Makefile.in, config.h: added i386aout support
8300 * configure.in: fixed /h-{myhost} typo
8301 * ldgram.y: -MM now gives more boring map.
8302 * ldlang.c: now does D_PAGED flag the right way.
8303 * ldsym.c: -MM flags does the right thing.
8304
8305 Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
8306
8307 * configure.in: Fixed typo. Also, a fix for hp300bsd.
8308 * ldlang.c (init_os): Compensate for BFD change,
8309 where bfd_make_section now returns NULL for a duplicate
8310 section request, instead of the old section.
8311
8312 Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
8313
8314 * ldver.c: Bump to version 1.91 (consistent with binutils).
8315
8316 Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
8317
8318 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
8319 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
8320 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
8321 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
8322 Add or update copyright notices.
8323
8324 Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
8325
8326 * README: New file.
8327 * Makefile.in: Changed installation directory name scheme
8328 to be consistent with gcc. Also changed 'install'.
8329
8330 Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
8331
8332 * Makefile.in: new targets ld.mm, ld.me
8333
8334 Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
8335
8336 * Makefile.in, ldtemplate: Need to use separate scripts
8337 for -n and -N options. Yet more complication.
8338
8339 Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
8340
8341 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
8342 work). Add some lines to avoid Sun Make VPATH bugs.
8343
8344 Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
8345
8346 * news.sc: Add alignment for data segment.
8347 * ldtemplate: Add (yet another) script to get for -n or -N
8348 options. (These need different alignment than ZMAGIC files.)
8349 * Makefile.in: Add stuff for new foo.xn scripts.
8350 These are generated by replacing "ALIGN(0x...00)" by ".".
8351
8352 Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
8353
8354 * Makefile.in: new targets ld.ms, ld-index.ms
8355 ld.texinfo: remove tabs, other cleanups for texi2roff
8356
8357 Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
8358
8359 * ldmain.c (main): Make config.magic_demand_paged be true
8360 by default. Don't the WP_TEXT and D_PAGED flags of
8361 output_bfd here; it's too late, so set it when output_bfd
8362 is created (in ldlang.c). Also fix setting of EXEC_P flag
8363 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
8364 * ldlang.c: Remove some duplicate extern declarations.
8365 * ldgram.y: Fixes to -N and -n options.
8366 * Makefile.in: Recognize upper case letters in sed script
8367 to remove assignments from script files.
8368 * ldtemplate: Don't assukme that -N or -n options
8369 imply use of -r script.
8370 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
8371
8372 Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
8373
8374 * ldtemplate: include bfd.h before sysdep.h.
8375
8376 Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
8377
8378 Restructure configuration scheme for bfd, binutils, ld.
8379
8380 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
8381 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
8382 Change some config names to match other dirs.
8383 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
8384 get defined first.
8385 * config/: Rename some config files to match up h-*.h names.
8386 Remove all the HOST_SYS definitions from the config files.
8387
8388 Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
8389
8390 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
8391 * ldtemplate: Remove ldfile_add_library_path calls;
8392 just use the SEARCH_DIR commands in the script files.
8393 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
8394 the SEARCH_DIR commands in the scripts (using ugly sed magic).
8395 This is primarily intended for cross-linking, where you would
8396 place libaries in a different place than native libraries.
8397 Also, emulations made from ldtemplate now use $(srcdir).
8398 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
8399 form; people can use the Makefile's LIB_PATH to override.
8400
8401 Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
8402
8403 * Makefile.in: fix target ld.dvi, add target ld.info
8404 ld.texinfo: make info filename ld.info
8405
8406 Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
8407
8408 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
8409 Make).
8410 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
8411 few BFD types & enums.
8412
8413 \f
8414 Local Variables:
8415 mode: change-log
8416 left-margin: 8
8417 fill-column: 74
8418 version-control: never
8419 End: