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