* emultempl/hppaelf.em: Change all references of
[binutils-gdb.git] / ld / ChangeLog
1 Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
2
3 * emultempl/hppaelf.em: Change all references of
4 .hppa_linker_stubs to .PARISC.stubs.
5 * scripttempl/hppaelf.sc: Likewise.
6
7 Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8
9 * ldlang.c (print_output_section_statement): Change ``no attached
10 output section'' message slightly.
11 (lang_do_assignments): Don't recurse down if there is no real
12 section.
13
14 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
15 match corresponding change in emulation templates.
16 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
17 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
18
19 Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
20
21 * ldver.c (ldversion): Updated version number.
22
23 * cdtest-foo.cc: Use explicit "#pragma implementation".
24 * cdtest-bar.cc: Renamed from cdtest-func.cc.
25 * Makefile.in: References to cdtest-func.o changed to
26 cdtest-bar.o.
27
28 Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
29
30 Don't create unnecessary output sections.
31 * ldlang.c (out_bfd_get_section_by_name): Remove.
32 (wild_section): Call bfd_get_section_by_name rather than
33 our_bfd_get_section_by_name. Don't call wild_doit if there is no
34 section.
35 (lang_create_output_section_statements): Remove.
36 (map_input_to_output_sections): For several cases, call init_os if
37 it has not already been called.
38 (lang_size_sections): If output section was not created, skip it.
39 (lang_process): Don't call lan_create_output_section_statements.
40 (lang_place_orphans): Skip files with just_syms_flags set to true.
41 * ld.texinfo: Document change.
42
43 Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
44
45 * ldlang.c (wild_doit): Don't bother initializing the vma and
46 section size. Don't special case SEC_SHARED_LIBRARY.
47 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
48 specially.
49
50 Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
51
52 * config/go32.mh : New file for Xgo32X.
53
54 Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
55
56 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
57 before calling einfo, since we are reporting an fopen failure.
58 From jrs@world.std.com (Rick Sladkey).
59
60 * configure.in: Use "e" rather than "em_" as prefix for
61 emulations.
62
63 Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
64
65 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
66 filename.
67 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
68 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
69 Ditto.
70 * Makefile.in: Changed all generated file names.
71 (ldemul-list.h): Depend on Makefile, not config.status. Changed
72 sed patterns to handle new filenames.
73
74 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
75 * configure.in: Adjusted.
76
77 Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
78
79 * Makefile.in (install-info): Don't use "$<*", it doesn't always
80 work. Instead, check build dir and $srcdir explicitly, and use
81 `echo' to get all the filenames.
82
83 * configure.in (h8300h-*-hms): Changed ld_target name to
84 cf-h8300h.
85 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
86 unique in 8.3.
87
88 * config/i960coff.mt: New file.
89 * emulparams/gld960coff.sh: New file.
90 * emultempl/gld960c.em: New file.
91 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
92 i960coff configuration.
93 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
94
95 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
96 code isn't included in FSF releases, and it can still be
97 explicitly selected.
98 (distclean): Remove site.bak and tmpdir.
99 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
100 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
101
102 Patches from Ralph Campbell:
103 * config/mipsbsd.mh: New file.
104 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
105 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
106 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
107 instead of `aout'.
108
109 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
110
111 Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
112
113 * config/m68k.mt (EMUL): Set to m68kaout.
114 * emulparams/m68kaout.sh: New file.
115 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
116 (em_m68kaout.c): New target.
117
118 * ldlang.c (lang_size_sections): If dot moves because of an
119 assignment, don't try to insert a pad into the absolute output
120 section, just change the address of the default memory region
121 instead.
122
123 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
124 cdtest-ur.out, and cdtest-ur.tmp.
125
126 Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
127
128 * scripttempl/sa29200.sc: Align all sections to four byte
129 boundaries.
130
131 Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
132
133 * Makefile.in, configure.in: Support for go32 coff.
134 * config/i386-go32.mt: New file
135 * emulparams/i386go32.sh: New file
136 * scripttempl/i386go32.sc: New file
137
138 Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
139
140 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
141 Lynx-specific script templates.
142 * configure.in (sparclite*-*-coff): Use coff-sparc.
143 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
144 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
145 (ENTRY): Set to __main.
146 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
147 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
148 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
149
150 Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
151
152 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
153 byte boundary, in case the global constructors do not take up an
154 even 16 bytes.
155
156 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
157 exist, get crtbegin based on gcc -print-libgcc-file-name.
158 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
159
160 Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
161
162 * ldlang.c (lang_size_sections): When no address is given for a
163 section, align it according to its requirements.
164
165 Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
166
167 * Makefile.in (clean, distclean): Remove configdoc.texi.
168
169 Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
170
171 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
172
173 Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
174
175 * ldlang.c (lang_size_sections): When relaxing, adjust the
176 position of a padding statement, and adjust dot accordingly.
177
178 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
179
180 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
181
182 Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
183
184 * scripttempl/i386coff.sc: If relocating, don't put .init and
185 .fini sections into .text; keep them separate.
186 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
187 exist, get crtbegin based on gcc -print-libgcc-file-name.
188 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
189
190 Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
191
192 * Makefile.in (check): Set TCL_LIBRARY for runtest.
193
194 Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
195
196 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
197 manufacturer.
198
199 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
200 if building a final executable.
201
202 Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
203
204 * ldmain.c (main): Check the return value of bfd_close.
205
206 Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
207
208 * scripttempl/alpha.sc: Clean up section alignment to ensure that
209 sections never overlap when using -r.
210
211 Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
212
213 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
214 changes: get_symtab_upper_bound renamed and returns long,
215 bfd_canonicalize_symtab returns long, check for error indications.
216
217 Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
218
219 * ldlang.c (print_input_section): For section size, use
220 _cooked_size if it is non-zero, size otherwise.
221 (size_input_section): Likewise.
222 (lang_do_assignments): Likewise (case lang_input_section_enum).
223
224 Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
225
226 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
227 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
228 (lang_add_input_file): Pass true to new_afile for add_to_list.
229 (lookup_name): Remove force_load argument. Changed all callers.
230 Pass false to new_afile for add_to_list. Split loading of symbols
231 out into separate function.
232 (load_symbols): New function split out of lookup_name. Don't load
233 the symbols if they are already loaded.
234 (open_input_bfds): For lang_input_statement_enum call load_symbols
235 rather than lookup_name.
236 (lang_process): Pass abs_output_section rather than NULL to
237 lang_size_sections.
238 (lang_startup): Set real field of first_file to true.
239
240 Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
241
242 * ldlang.c (had_relax): Removed.
243 (relax_again): New static variable.
244 (lang_size_sections): Change call to bfd_relax_section to
245 correspond to BFD changes. Set relax_again appropriately.
246 (lang_process): Remove #if 0 code. When relaxing, keep calling
247 lang_do_assignments and lang_size_sections until relax_again
248 becomes false.
249
250 * emultemp/gld960.em: Include libiberty.h
251 (gld960_before_parse): Pass NULL as final argument to concat.
252
253 Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
254
255 * scripttempl/aout.sc: Force _end and __end to be aligned to a
256 four byte boundary.
257
258 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
259 building a bfd_data_link_order, rather than by setting the section
260 contents immediately.
261
262 Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
263
264 Changes to make -Ur work again.
265 * ldmain.c (add_to_set): Now takes reloc argument rather than
266 bitsize. Check config.build_constructors here. If an new hash
267 table entry is created, mark it as undefined.
268 (constructor_callback): No longer takes bitsize argument. Pass
269 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
270 BFD backend supports it.
271 (reloc_overflow): Handle a NULL abfd argument.
272 (reloc_dangerous, unattached_reloc): Likewise.
273 * ldctor.c: Include ldmain.h.
274 (struct set_info): Change bitsize field to reloc.
275 (ldctor_add_set_entry): Now takes reloc argument rather than
276 bitsize. Don't bother to check config.build_constructors here.
277 (ldctor_build_sets): Get the size from the reloc howto. If
278 generating relocateable output, call lang_add_reloc rather than
279 lang_add_data.
280 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
281 instead of bitsize.
282 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
283 (lang_reloc_statement_type): New structure.
284 (lang_statement_union_type): Add reloc_statement field.
285 (lang_add_reloc): Declare new function.
286 * ldlang.c (lang_for_each_statement_worker): Handle
287 lang_reloc_statement_enum.
288 (map_input_to_output_sections, print_statement): Likewise.
289 (lang_size_sections, lang_do_assignments): Likewise.
290 (print_reloc_statement): New function.
291 (lang_add_reloc): New function.
292 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
293
294 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
295 (cdtest-ur, cdtest-ur.out): New targets.
296 (check-cdtest): Now also check that -Ur works correctly.
297
298 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
299
300 Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
301
302 * ldlang.c (lang_process): Move lang_common call before
303 map_input_to_output_sections, to ensure that any alignment
304 constraints set by common symbols are copied over to the output
305 sections.
306
307 Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
308
309 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
310 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
311 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
312 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
313 needed for ELF.
314
315 Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
316
317 * config/i386bsd.mh: New file.
318
319 Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
320
321 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
322 defined.
323 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
324 (DATA_START_SYMBOLS): Define _fdata.
325
326 Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
327
328 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
329
330 Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
331
332 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
333 works again. Attach some output symbols to the stub file bfd.
334
335 * emultempl/hppaelf.em: Include elf32-hppa.h.
336 (file_chain): Add decl.
337 (hppa_look_for_stubs_in_section): Delete decl.
338 (hppaelf_finish): Reenable code. Do not pass symbols
339 down to hppa_look_for_stubs_in_section.
340
341 Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
342
343 * ldmain.c (write_map): Don't define. Removed all references.
344 Just use map_file or map_filename instead.
345 (add_archive_element): Use minfo to write map information, not
346 info_msg.
347 (constructor_callback): Use fprintf to write map information, not
348 info_msg.
349 * ldmain.h (write_map): Don't declare.
350 * ldgram.y (mri_script_command): Removed reference to write_map.
351 * ldlang.c (lang_one_common): Likewise.
352 * lexsup.c (parse_args): Likewise.
353
354 Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
355
356 * scripttempl/elf.sc: Force all sections to be aligned.
357
358 * ldgram.y (section): Reverse the order of memspec_opt and
359 fill_opt to avoid an ambiguity when both are used.
360 * ld.texinfo: Changed accordingly.
361
362 * ldgram.y: Move include of ldlex.h back with other includes.
363 * ldlex.h (input_type): Don't initialize enum constants to
364 particular values.
365 * ldlex.l: Use a switch to return the right token based on
366 input_type, rather than knowing that input_type has a value based
367 on a token type.
368
369 * ldgram.y (dirlist_ptr): Removed; not used.
370 * lexsup.c: Include ldver.h.
371 * Makefile.in: Rebuilt dependencies.
372
373 Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
374
375 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
376 (ldlang_add_file): call it here instead.
377
378 Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
379
380 * ldgram.y: Include ldlex.h after %token decls, for byacc.
381
382 Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
383
384 * emultempl/hppaelf.em: First attempt to clean this file up.
385 Add comments in several functions as to their purpose and
386 how they function (or my current best guess). Clean up horrible
387 spacing and indention that never should have been accepted in the
388 first place. Add FIXMEs for issues which need to be resolved.
389 Disable linker-stub generation until it gets fixed. This allows
390 the linker to at least work on simple code for testing purposes.
391
392 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
393 it via hppaelf_finish). Prototype moved into ldlang.h.
394 (lang_process): Move problematic extra call to lang_size_sections
395 into the PA ELF specific code.
396 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
397 lang_size_sections moved here.
398
399 Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
400
401 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
402 * config/ppc-elf32.mt: New file.
403 * emulparams/elf32ppc.sh: New file.
404 * emultempl/ppc.em: New file.
405 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
406 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
407 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
408
409 Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
410
411 * lexsup.c (parse_args): Use symbolic numbers for long options.
412 Fix misunderstanding in -Y and -call_shared et al.
413
414 Use getopt instead of lex and yacc to parse the command line.
415
416 * ld.texinfo (Options): Document changes to option syntax.
417 * Makefile.in: Update dependencies.
418 * ldver.c (help): Tweak dashes in usage message.
419 * ldgram.y (%union): Remove unused members.
420 Remove %tokens for command line options; add ones for input types.
421 (command_line): Rules removed.
422 (file): Instead of command line, recognize an
423 input type indicator, then use the nonterminal for that type.
424 (defsym_expr): New nonterminal from code formerly in command_line.
425 * ldlex.h: Declare parser input type enum and variable.
426 Don't declare parse_line.
427 * ldlex.l: Remove unused variables. Make some used ones static
428 and comment them.
429 (COMMAND): Start state and its rules removed.
430 At start of yylex, return input state token if at start of input.
431 (lex_redirect): Don't need to set yyout.
432 (ldlex_command): Function removed.
433 * ldmain.c (main): Instead of calling parse_line, set up the
434 redirections and call yyparse directly.
435 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
436 "command line".
437 * lexsup.c: Remove #if 0'd code.
438 (parse_line): Function removed.
439 (parse_args): Rewrite to use getopt_long_only.
440 (set_default_dirlist): New function from code formerly in
441 ldgram.y:command_line.
442 (set_section_start): New function.
443 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
444 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
445 compiled-in link scripts in "{" and "}", as the grammar no longer
446 wants them to be.
447
448 Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
449
450 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
451 require that it be in $(srcdir).
452
453 Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
454
455 * ldlang.c (lang_size_sections): Only align section to alignment
456 required by linker script, not to maximum alignment of input
457 sections.
458
459 * ldlang.h (largest_section): Don't declare.
460 * ldlang.c (largest_section): Don't define.
461 (size_input_section): Don't set largest_section; not used.
462
463 Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
464
465 * ldlang.c (new_afile): Pass NULL as last argument to concat.
466
467 Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
468
469 * ldlang.c, ldmain.c: Include libiberty.h.
470
471 * ldmisc.h (concat): Don't declare.
472 * ldmisc.c (concat): Don't define; just use the one in libiberty.
473
474 * ld.h (as_output_section_statement): Removed; not used.
475
476 Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
477
478 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
479 bfd_set_error and new error names.
480
481 Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
482
483 * ldwrite.c (build_link_order): If the cooked size of the section
484 has been set, use it, for determining link_order size.
485 (ldwrite): In the error message displayed if bfd_final_link fails,
486 indicate that it was in fact the final link step that failed.
487
488 * ldlang.c (lang_size_sections): Clear bfd_error before calling
489 bfd_relax_section, in case it returns false but doesn't flag an
490 error. If an error is returned, indicate which one it is in the
491 error message.
492
493 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
494 it'll get picked up from $(srcdir) if appropriate.
495
496 Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
497
498 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
499 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
500
501 Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
502
503 * ldlex.l (comment): Increment line number when newline is read.
504
505 Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
506
507 * ldlang.c (lookup_name): Take new argument, force_load. If true,
508 reload the file even if it is already loaded.
509 (wild): Call lookup_name with force_load argument of 0.
510 (open_input_bfds): Call lookup_name with force_load argument of 1.
511 (print_symbol): Remove declaration of non-existent function.
512 (print_one_symbol): Return true rather than falling off end.
513
514 Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
515
516 * ldmain.c (main): Use %ld when printing long values.
517
518 * scripttempl/elf.sc: Move _edata after the .sdata section.
519 Permit OTHER_BSS_SYMBOLS to be defined.
520 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
521
522 Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
523
524 * Rename all "hppaosf" files to "hppaelf".
525 * Change all "osf" references to "elf" in hppaelf files.
526 * Makefile.in: Likewise.
527 * configure.in: Likewise.
528
529 Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
530
531 * ldmain.c (main): Call xatexit, not atexit.
532 Call xmalloc_set_program_name.
533
534 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
535 bfd_errno.
536
537 Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
538
539 * emultempl/lnk960.em (append), emultempl/hppaosf.em
540 (hppaosf_finish): Call xmalloc, not ldmalloc.
541 * ldmain.c (preserve_output): Function removed.
542 (main): Do it here instead.
543
544 Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
545
546 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
547 GNU C specific macros.
548
549 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
550 call to LANG_FOR_EACH_INPUT_SECTION.
551
552 Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
553
554 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
555 deleted; will use libiberty versions instead.
556 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
557 mri.c Makefile.in: Change callers.
558
559 * ldmisc.c (vfinfo): Remove cleanup code.
560 * ldmain.c (remove_output): Put it here (new function).
561 (preserve_output): New function.
562 (main): Register remove_output and preserve_output with atexit.
563 * ldmain.c ldgram.y: Call xexit instead of exit.
564 * ldmisc.h: Declare xexit.
565
566 Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
567
568 * Makefile.in: Lots of new H8/500 memory models.
569
570 Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
571
572 * ldlex.l: Removed duplicate rules.
573 (yywrap): Provide default definition, needed with some versions of
574 flex.
575
576 Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
577
578 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
579 the archive filename too.
580
581 * ldlex.l: Add rule to catch invalid input characters instead of
582 printing them. Include "ldmain.h" for program_name decl.
583 (lex_warn_invalid): New function.
584 * Makefile.in: Add dependency.
585
586 Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
587
588 * Makefile.in (check): Don't bother running any tests of
589 cross-linker until the test suite no longer assumes native mode.
590
591 Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
592
593 * ldlang.c (print_one_symbol, print_input_section): Print
594 global symbols in symbol table again.
595
596 Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
597
598 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
599 exit successfully instead of complaining if no input files are
600 given.
601
602 Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
603
604 * Makefile.in: Format variable definitions consistently.
605 (LD_PROG): Remove unnecessary variables from link command,
606 change variable LOADLIBES to EXTRALIBS.
607
608 * ldmain.c (main): Compute and display total execution time.
609 * ld.texinfo (-stats): Document the option.
610
611 Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
612
613 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
614 arguments.
615
616 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
617 after opening BFD.
618
619 * ldlang.c (relaxing): Removed global variable.
620 (lang_size_sections): If the canonical symbols have not already
621 been read in, read them in before relaxing.
622 * ldlang.h (relaxing): Removed declaration.
623
624 Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
625
626 * ldlang.c (new_afile): Initialize loaded field to false.
627 (lookup_name): If file was already loaded, don't call the
628 add_symbols entry point again.
629
630 Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
631
632 * ld.texinfo: Clarify what -T option does.
633
634 Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
635
636 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
637 for a.out.
638
639 Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
640
641 * ldmain.c (add_archive_element): If trace_files or
642 trace_file_tries, print file name.
643 * ldlang.c (lookup_name): Likewise.
644 (ldlang_add_file): Don't put files on input_bfds list in reverse
645 order.
646
647 * scripttempl/elf.sc: Correct typo.
648
649 Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
650
651 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
652 their arguments optional, for compatibility with the old GNU ld.
653
654 Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
655
656 * scripttempl/elf.c: Define __bss_start before the .sbss section.
657
658 Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
659
660 * ldmain.c (add_to_set): Add bitsize argument.
661 (constructor_callback): New function.
662 (link_callbacks): Add constructor_callback.
663 * ldctor.c (struct set_info): Add bitsize field.
664 (ldctor_add_set_entry): Add bitsize argument.
665 (ldctor_build_sets): Base the size of the elements of the set on
666 the bitsize, rather than always using LONG.
667 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
668
669 * ld.h (QUAD_SIZE): Define.
670 * ldgram.y (QUAD): New token.
671 (length): Handle it.
672 * ldlex.l: Return QUAD.
673 * lexsup.c (keywords): Add QUAD.
674 * ldwrite.c (build_link_order): Handle QUAD.
675 * ldlang.c (print_data_statement): Handle QUAD.
676 (lang_size_sections): Likewise.
677 (lang_do_assignments): Likewise.
678 * ldexp.c (exp_print_token): Add QUAD to table.
679 * ld.texinfo: Describe QUAD.
680
681 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
682 since the Alpha doesn't use them.
683
684 Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
685
686 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
687
688 Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
689
690 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
691 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
692
693 Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
694
695 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
696 needed for i386mach. (Should be a no-op on other systems.)
697
698 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
699 (PAGE_SIZE): Don't define; not used.
700
701 Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
702
703 * ldgram.y (yyerror): Make argument const char *, and actually
704 print it out rather than assuming it is a syntax error.
705 * ldmisc.h: Change declaration of yyerror.
706 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
707
708 Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
709
710 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
711 exec header offset, since the exec header isn't loaded.
712 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
713
714 Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
715
716 A major rewrite to move the bulk of the linker into BFD so that
717 more efficient backend code can be written for specific object
718 files.
719 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
720 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
721 * ldctor.c, ldctor.h: Complete rewrite.
722 * ldwrite.c, ldwrite.h: Complete rewrite.
723 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
724 link_info.strip instead. Changed all uses.
725 (discard_locals_type, discard_locals): Removed. Use
726 link_info.discard instead. Changed all uses.
727 (ld_config_type): Removed relocateable_output field; use
728 link_info.relocateable instead; changed all uses. Added stats
729 field.
730 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
731 set_loader_symbol): Removed.
732 * ldexp.h (node_class): Added etree_rel.
733 (etree_type): Added rel field.
734 * ldexp.c (exp_print_token): Bracketed table initialization.
735 (exp_relop): New function.
736 (fold_name): Use linker hash table rather than ldsym functions.
737 (exp_fold_tree): Likewise. Also, handle etree_rel case.
738 (exp_print_tree): Handle etree_rel.
739 * ldgram.y (strip_symbols, discard_locals): Removed.
740 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
741 (REL): New token. Does not appear in grammar, but needed for
742 expression code.
743 (file): Don't call lang_final; it's called by main anyhow.
744 * ldlex.l: Accept -stats and -no-keep-memory options.
745 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
746 * ldlang.c: Consistently use fill_type for fill argument.
747 (lang_init_script_file, script_file): Removed.
748 (create_object_symbols): Removed. Use
749 link_info.create_object_symbols_section instead. Changed all
750 uses.
751 (lang_add_keepsyms_file): Removed.
752 (lookup_name): Call bfd_link_add_symbols instead of
753 ldmain_open_file_read_symbol.
754 (wild): Don't iterate over script_file.
755 (open_output): Create link hash table.
756 (lang_place_undefineds): Rewrote.
757 (lang_size_sections): Handle relaxing (doesn't work yet).
758 (lang_relocate_globals): Removed.
759 (lang_finish): Use link hash table rather than ldsym functions.
760 (lang_common): Rewrote.
761 (lang_one_common): New function.
762 (ldlang_add_file): Add file to link_info.input_bfds list. Set
763 usrdata.
764 (create_symbol): Removed.
765 (lang_process): Don't call lang_init_script_file. Call
766 ldctor_build_sets rather than find_constructors. Don't call
767 lang_relocate_globals.
768 (lang_abs_symbol_at_beginning_of): Rewrote.
769 (lang_abs_symbol_at_end_of): Rewrote.
770 * ldmain.c (had_y): Removed.
771 (lprefix, lprefix_len): Removed; use link_info fields instead.
772 Changed all uses.
773 (multiple_def_count, commons_pending, undefined_global_sym_count,
774 total_symbols_seen, total_files_seen): Removed.
775 (link_callbacks, link_info): New variables.
776 (main): Initialize link_info. Don't call init_bfd_error_vector or
777 ldsym_init. Don't set now unused variables. Handle -stats.
778 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
779 (add_ysym): Rewrote.
780 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
781 search_library, gnu960_check_format, decode_library_subfile,
782 linear_library, symdef_library, clear_syms, subfile_wanted_p):
783 Removed.
784 (add_keepsyms_file, add_archive_element, multiple_definition,
785 multiple_common, add_to_set, warning_callback, undefined_symbol,
786 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
787 New functions.
788 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
789 require symbols for %C; look them up instead.
790 * emultempl/hppaosf.em: Pass link_info to
791 hppa_look_for_stubs_in_section.
792 * Makefile.in: Rebuilt dependencies.
793 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
794 relax.c.
795 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
796 relax.h.
797 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
798 ldlang.h and ldctor.h.
799
800 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
801 declarations of free and malloc from flex output. Change malloc
802 to ldmalloc in flex output.
803
804 Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
805
806 * ldmain.c (lprefix): Change default from a char to a string
807 with only one character.
808 (lprefix_len): Set default to one.
809
810 * ldmain.h (lprefix_len): Declare.
811
812 * ldsym.c (write_file_locals): Use strncmp rather than a character
813 comparison for lprefix.
814
815 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
816 correctly.
817
818 * emultmpl/hppaosf.em: Include ldexp.h.
819 (before_parse): Set lprefix and lprefix_len correctly.
820
821 Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
822
823 * ldlex.h: Don't declare yywrap if it is a macro.
824 * ldlex.l: Include sysdep.h.
825 * ldlang.c (lang_for_each_statement_worker,
826 lang_for_each_statement): Forgot to use PARAMS.
827
828 Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
829
830 * Makefile.in: Added .PHONY targets where appropriate. Added some
831 comments. Also:
832 (gcclibdir, version): Removed unused variables.
833 (DEP): New variable, set to mkdep.
834 (ALL_CFLAGS): New variable. Used in .c.o target.
835 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
836 variables.
837 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
838 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
839 mostly obsolete variables. Adjusted remaining uses.
840 (DEF_EMUL): Removed variable.
841 (ldmain.o): Handle undefined EMUL error correctly.
842 (ldemul-list.h): Depend on config.status rather than Makefile.
843 Create via temporary file.
844 (ver960.c, roll, make): Removed obsolete targets.
845 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
846 dependencies.
847 * dep-in.sed: New file, used when rebuilding dependencies.
848
849 Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
850
851 Made many changes to eliminate gcc warnings. Made various
852 cosmetic changes, declared various things in header files, removed
853 various extern declarations from .c files. No substantive
854 changes.
855
856 * ldlang.c (lang_process): Ifdef out final call to
857 lang_size_sections again (reverting change of Nove 2), since it
858 breaks the Sun4 linker.
859
860 Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
861
862 * configure.in (alpha-*-netware*): New target; use alpha.
863
864 Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
865
866 * configure.in: Group targets by CPU. Merge some m68k target
867 entries with different CPU specs that use the same ld_target
868 values.
869
870 * configure.in: Add sparc*-*-coff.
871 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
872 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
873 (em_coff_sparc.c): Add dependencies and build rules.
874
875 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
876
877 Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
878
879 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
880 New tokens.
881 (command_line_option): Accept and ignore them (for now).
882 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
883 where n is a number.
884
885 Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
886
887 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
888 not in bfd_com_section, create the section in the BFD so that it
889 can be placed in the right output section.
890
891 Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
892
893 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
894 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
895 (OTHER_READONLY_SECTIONS): Define for .reginfo.
896 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
897 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
898 Move OTHER_READONLY_SECTIONS after all the other readonly
899 sections. Don't use DATA_ADDR twice.
900
901 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
902 p is in a common section, make sure the BFD has a section of that
903 name.
904
905 * ldlang.c (lang_common): Add newline to error message.
906
907 Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
908
909 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
910 Lynx-specific script instead of m68kcoff.
911 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
912 (ENTRY): Define as __main.
913 (TEXT_START_ADDR): Define as 0.
914 (PAGE_SIZE): Define as 0x1000.
915 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
916 * scripttempl/m68klynx.sc: New file.
917
918 Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
919
920 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
921 arguments rather than treating them as emulation names.
922
923 Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
924
925 * configure.in: Support x86 unixware and netware plus generic netware.
926
927 Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
928
929 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
930 Correct values (?).
931
932 Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
933
934 * Makefile.in (distclean): Don't delete dvi or info files.
935 (ld.info): Update dependency list.
936 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
937
938 Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
939
940 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
941 Set output_filename instead of creating a new node.
942 (open_output): Don't set output_filename.
943 (lang_final): Create the new node here.
944 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
945
946 Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
947
948 From Pete Hoogenboom (hoogen@cs.utah.edu):
949
950 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
951 edata, _edata, end): Add definitions of these symbols.
952 (__end): Remove definition of this symbol.
953 (__data_start): Move definition of this symbol.
954
955 * emultempl/hppaosf.em: Various fixes and support for linker stub
956 generation.
957 (hppaosf_finish, hppaosf_search_for_padding_statements,
958 hppaosf_create_output_section_statements): New functions in
959 support of linker stub generation.
960 (ld_hppaosf_emulation): Redefine to include new
961 emulation-specific routines.
962
963 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
964 Pass abs_output_section rather than NULL to avoid invalidating
965 absolute symbols.
966
967 Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
968
969 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
970 (em_i386mach.c): New rule.
971 * configure.in (i[34]86-*-mach*): New case.
972 * config/i386-mach.mt: New file.
973 * emulparams/i386mach.sh: New file.
974
975 Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
976
977 * ld.h (flag_is_*): Removed macros.
978 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
979 Consistently check the BFD symbol flags directly, rather than
980 using file_is_* macros.
981
982 Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
983
984 * configure.in (sparc*-*-lynxos*): New target.
985 * Makefile.in: Add rule for em_sparclynx.c.
986 (ALL_EMULATIONS): Add Lynx emulations.
987 * config/sparc-lynx.mt: New file.
988 * emulparams/sparclynx.sh: New file.
989 * scripttempl/sparccoff.sc: New file.
990
991 Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
992
993 * Makefile.in: Add dependency for $(EMULATION_OFILES).
994
995 Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
996
997 * relax.c (write_relax): Check return value of bfd_seclet_link.
998
999 Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
1000
1001 * ldlang.c (delete_output_file_on_failure): New variable.
1002 (open_output): Set it after bfd open succeeds.
1003 * ldmisc.c (vfinfo): Test it.
1004
1005 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
1006
1007 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
1008 symbols.
1009
1010 * ldemul.c: Support was added to allow emulation-specific
1011 processing to occur. This support was added primarily for linker
1012 stub generation in the elf32-hppa gld.
1013 (ldemul_finish, ldemul_create_output_section_statements): New
1014 functions.
1015 * ldemul.h: Support was added to allow emulation-specific
1016 processing to occur. (As described above.) Added finish and
1017 create_output_section_statements fields to
1018 ld_emulation_xfer_struct structure.
1019 * ldlang.c: Add calls to emulation-specific routines.
1020 (lang_process): Add call to
1021 ldemul_create_output_section_statements function.
1022 (lang_process): Add call to a emulation-specific routine (and
1023 some processing after the call).
1024
1025 Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1026
1027 * configure.in: mips*- instead of mips-, mips*el changes
1028
1029 Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1030
1031 * configure.in (alpha-*-osf*): New target; use alpha.mt.
1032 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
1033 (em_alpha.c): New target; use alpha.sh and alpha.sc.
1034 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
1035 * config/alpha.mt: New file.
1036 * emulparams/alpha.sh: New file.
1037 * scripttempl/alpha.sc: New file.
1038
1039 Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
1040
1041 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
1042 types of different sizes (eg: 64 and 32 bits), so coerce.
1043 * ld.h (ALIGN_N): Add warning about usage.
1044
1045 Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1046
1047 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
1048 which we already have a definition, rather than checking in
1049 several different places whether the symbol is weak.
1050
1051 Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1052
1053 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
1054 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
1055 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
1056 expanded within them.
1057 * config/mipsb-elf32.mt: New file.
1058 * emulparams/elf32mipb.sh: New file.
1059 * Makefile.in (em_elf32mipb.c): New target.
1060
1061 Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
1062
1063 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
1064 lang_input_file_is_search_file_enum so objects brought in using
1065 INPUT() do a path lookup.
1066
1067 Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
1068
1069 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
1070 instead of {i386,m68k}-coff.
1071 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
1072 * config/i386-lynx.mt: New file.
1073 * config/m68k-lynx.mt: New file.
1074 * emulparams/i386lynx.sh: New file.
1075 * emulparams/m68klynx.sh: New file.
1076
1077 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
1078 but defaulting to _start.
1079
1080 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
1081 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
1082 LynxOS libc.
1083
1084 Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
1085
1086 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
1087 HOSTING_LIBS for testing.
1088
1089 Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1090
1091 Finish up support for i386-sysv4 (without shared libraries):
1092 * ld.h (flag_is_weak): Define.
1093 * ldlang.c (print_symbol): Mention whether symbol is weak.
1094 (print_input_section): Print weak symbols as globals.
1095 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
1096 (enter_global_ref): Do not warn if a weak symbol redefines a
1097 global symbol. Do not let a weak symbol redefine a common symbol.
1098 (enter_file_symbols): Treat weak symbols as global symbols.
1099 (subfile_wanted_p): Do not pull in an object file from a archive
1100 just to resolve an undefined weak symbol.
1101 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
1102 error; the error might be that malloc has run out of space.
1103 * ldsym.c (write_file_locals): Treat weak symbols as global.
1104 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
1105 use i386-elf.
1106 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
1107 * config/i386-elf.mt: New file; set EMUL to elf_i386.
1108 * emulparams/elf_i386.sh: New file.
1109 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
1110 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
1111 (ALL_EMULATIONS): Add em_elf_i386.o.
1112 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
1113 (em_elf_i386.c): New target, like other em_*.c targets.
1114 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
1115 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
1116 nonempty, and configured for native, add it to LIB_PATH.
1117
1118 Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
1119
1120 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
1121 Added statements to pass stab and stabstr sections through and
1122 mark them as NOLOAD, which makes GDB happier.
1123
1124 Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
1125
1126 * configure.in: Accept m68k-lynx-lynxos config.
1127
1128 * Makefile.in: Use $(SHELL) to run genscripts.sh.
1129
1130 Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
1131
1132 * config/coff-h8300.mt: Add EMUL=h8300h.
1133
1134 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
1135
1136 Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
1137
1138 * Makefile.in: Changed CXX back to g++.
1139
1140 Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
1141
1142 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
1143
1144 Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1145
1146 * Makefile.in (TAGS): Use shell wildcards.
1147
1148 Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
1149
1150 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
1151
1152 Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
1153
1154 * ld.texinfo: re-enable included config file; conditionalize doc
1155 for -oformat to interact properly with SingleFormat doc config
1156 var; rename @up/@down to @raisesections/@lowersections.
1157
1158 Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1159
1160 * configure.in: recognize m88110.
1161
1162 Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1163
1164 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
1165 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
1166 ELF emulation is "elf32-hppa" not "elf-big".
1167 (hppaosf_before_parse): Remove unneeded processing of environment
1168 variables.
1169 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
1170 .text segment of output file.
1171 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
1172
1173 Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1174
1175 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
1176 longer in bfd.h.
1177
1178 * ldlang.c, ld.h: updated copyright.
1179
1180 Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1181
1182 * ldlang.c (open_output, lang_check): Check return value of
1183 bfd_set_arch_mach.
1184
1185 Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1186
1187 * scripttempl/h8500.sc: Start all sections in a different segment.
1188 * scripttempl/z8ksim.sc: Handle constructors
1189
1190 Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
1191
1192 * Makefile.in: revert earlier changes back to execute runtest
1193 with make check. cdtest and bootstrap now function as they
1194 did within the Makefile.
1195
1196 Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1197
1198 * Makefile.in: Update dependencies.
1199
1200 * configure.in: Set EMULATION_OFILES in Makefile based on
1201 --with-targets option.
1202
1203 Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
1204
1205 * Makefile.in: check targets reimplemented to old way.
1206
1207 Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
1208
1209 * config/i386v.mh, config/irix4.mh: Use gcc
1210 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
1211 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
1212 bfd/configure.host change.
1213
1214 Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1215
1216 * scripttempl/elf.sc: Handle .line and .debug* sections.
1217
1218 * ldlex.l: Use bfd_scan_vma, not strtoul.
1219
1220 Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1221
1222 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
1223 Remove inital caps in some error messages, change "can't" to
1224 "cannot", add missing colons.
1225 * ldmisc.c (vfinfo): Print "%%" as a single %.
1226 For '%' followed by unrecognized character, print them both
1227 verbatim instead of expecting a char * arg.
1228 For '%C', don't put the function name in parens.
1229
1230 * ldexp.c (invalid): Pass "%%", not "% ".
1231
1232 Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1233
1234 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
1235 (BSS_VAR): Removed; now always define _fbss.
1236 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
1237 Removed.
1238
1239 Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1240
1241 * configure.in: z8k-coff is the same as z8k-sim
1242
1243 Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
1244
1245 * testsuite/lib/ld.exp: new file
1246 * testsuite/config/unix-ld.exp: new file
1247 * testsuite/ld.bootstrap/bootstrap.exp: new file
1248 * Makefile.in: add dejagnu support for make check
1249
1250 Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1251
1252 * ldlex.l (comment): Add missing newline in message.
1253 * ldindr.c (add_indirect): Ditto.
1254 * ldexp.c (exp_fold_tree): Ditto.
1255
1256 Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1257
1258 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
1259 into externs.
1260
1261 * ldmisc.c (multiple_warn): New function.
1262 * ldmisc.h: Declare it.
1263 * ldmain.c (enter_global_ref): Call it.
1264 * ld.h (ld_config_type): Add warn_common.
1265 * ldlex.l, ldgram.y: Set it with -warn-common option.
1266 * ldver.c (help): Document it.
1267
1268 Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1269
1270 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
1271 target-specific sections, and for changing data section vma.
1272
1273 Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
1274
1275 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
1276 terminals, for Solaris.
1277 (dirlist_ptr): New static variable.
1278 (command_line_option): Accept new options.
1279
1280 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
1281 "-YP,...".
1282
1283 * config/sun4sol2.mt: Pass emulation name without ".sh".
1284
1285 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
1286 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
1287
1288 Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1289
1290 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
1291 .dtors, .data1, .rodata1 sections, instead of combining them into
1292 other sections. For `-r', set all section start addresses to
1293 zero.
1294
1295 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
1296 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
1297 (MAXPAGESIZE): Renamed from PAGE_SIZE.
1298
1299 Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1300
1301 * genscripts.sh: If this is the default emulation, set
1302 COMPILE_IN.
1303 * emultempl/*.em: Use it to determine whether to compile in the
1304 scripts.
1305
1306 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
1307 genscripts.sh. Pass the current emulation name without ".sh" on
1308 the end.
1309 * genscripts.sh: Take an default emulation arg.
1310 Use the current emulation name as EMULATION_NAME.
1311 Make default lib path for cross-compiling ':', not null.
1312 * emulparams/*.sh: Don't set EMULATION_NAME.
1313 * ldemul.c (ldemul_get_script): Take isfile arg.
1314 Pass it to emulation's get_script function.
1315 * ldemul.h: Adjust get_script prototypes.
1316 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
1317 No longer static.
1318 * ldfile.h: Declare it.
1319 * ldgram.y: Accept a script on the command line again,
1320 for parsing compiled-in scripts.
1321 * ldmain.c (main): If ld script is a file, parse it as a -T
1322 option, otherwise parse it directly.
1323 * emultempl/*.em (*get_script): Return the scripts themselves if
1324 this is the default emulation; otherwise return their file names.
1325 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
1326 generic.em.
1327 * emulparams/m88kbcs.sh: Use it.
1328
1329 * ld.h (ld_config_type::unix_relocate): Remove unused element.
1330
1331 Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1332
1333 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
1334 there's no change log entry yet, tsk tsk) from the list of
1335 emulations compiled in until Mark gets around to checking in
1336 emulparams/i386linux.sh.
1337 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
1338 changed, this file gets updated.
1339
1340 Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
1341
1342 * ldgram.y (OPTION_Lfile): New token.
1343 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
1344 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
1345
1346 Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
1347
1348 * configure.in: h8/300h support needs own .mt file.
1349 config/coff-h8300h.mt: New file.
1350
1351 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1352
1353 * ldmain.c: Don't include sys/stat.h; it already got included
1354 somewhere along the way.
1355
1356 Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
1357
1358 * Makefile.in: Add h8300h support.
1359 emulparams/h8300h.sh: New file.
1360 scripttempl/h8300h.sc: New file.
1361
1362 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1363
1364 * ldfile.c (ldfile_open_file): In error message, use the name the
1365 user gave (e.g., "-lc"), rather than the base file name.
1366
1367 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
1368
1369 * ldmain.[ch]: Remove initial Q_ from function names.
1370 * ldexp.c, ldindr.c, ldlang.c: Change callers.
1371
1372 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
1373
1374 * ldlang.c (lang_process): Move loading of default script from
1375 here to main. Add a "/" to start of script name to prevent
1376 finding it in "." first.
1377
1378 * ldmain.c (set_scripts_dir): Don't look in "." first.
1379
1380 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
1381 option_longmap.
1382
1383 Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
1384
1385 * Makefile.in (em_m88kbcs.c): Correct dependency.
1386 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
1387 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
1388 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
1389
1390 Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1391
1392 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
1393 main.c (main): Print the errno string in the error message.
1394
1395 Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
1396
1397 * configure.in: Accept h8300h for target cpu.
1398
1399 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
1400 present (demangle is smart enough to know whether to do it or not).
1401
1402 Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1403
1404 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
1405 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
1406
1407 * ldlang.c (lang_process): Use sizeof instead of magic constant.
1408
1409 * ldmain.c (get_emulation, check_for_scripts_dir,
1410 set_scripts_dir): New functions.
1411 (main): Call them.
1412
1413 Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
1414
1415 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
1416 Create symbol "end" instead of "__end". Comment out some parts
1417 that may not be needed (yet) for elf.
1418
1419 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
1420
1421 Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1422
1423 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
1424
1425 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
1426 when no prototype is being supplied.
1427 (ldmalloc, ldrealloc): Size argument is now size_t.
1428
1429 * ldmisc.c (finfo): New function, accepts FILE* argument.
1430 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
1431 without leading zeros.
1432 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
1433 bfd_vma value, instead of fprintf(%x) which won't hold a long long
1434 value.
1435 (concat, buystring): String lengths are size_t.
1436 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
1437
1438 * ldlang.c (new_statement): Size argument is now size_t. Added
1439 forward declaration with prototype.
1440
1441 Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1442
1443 * ldgram.y (OPTION_v): Don't turn on verbose output.
1444
1445 Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1446
1447 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
1448 bfd.h instead.
1449
1450 Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
1451
1452 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
1453 collect2 doesn't look for gld any more anyhow.
1454
1455 Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
1456
1457 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
1458 now have a non NULL srefs_chain.
1459
1460 * config/hp300hpux.mt: Use emulation hp3hpux rather than
1461 hp300hpux, since the latter does not exist.
1462
1463 Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1464
1465 * genscripts.sh: Put the scripts in the ldscripts directory, not
1466 emulations.
1467 * configure.in (ldscripts): Make, instead of emulations.
1468 * Makefile.in (scriptdir): Take off the "ld" part.
1469 (install, clean, distclean): Use ldscripts, not emulations.
1470 In tests, don't pass -Lemulations.
1471 Don't pass tooldir/lib to genscripts.sh.
1472 * genscripts.sh: Don't take tooldir/lib arg.
1473 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
1474 default script file.
1475
1476 Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
1477
1478 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
1479
1480 Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
1481
1482 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
1483
1484 Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1485
1486 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
1487 run in parallel without colliding on yacc's static file names.
1488 Without the stub rule, make will try to start two yacc's
1489 concurrently which fails because of yacc's static file names.
1490
1491 Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
1492
1493 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
1494 symbols.
1495
1496 Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1497
1498 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
1499 different from libdir.
1500
1501 * Makefile.in (scriptdir): Base on tooldir, not datadir.
1502
1503 Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1504
1505 * ldver.c (help): New function.
1506 * ldver.h: Declare it.
1507 * ldlex.l, ldgram.y: Recognize new options --help and --version.
1508
1509 Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
1510
1511 * Makefile.in (INCLUDES): Don't need ../include any more.
1512
1513 Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1514
1515 * ldlex.l, ldgram.y: Support new -oformat option.
1516 Remove attempt at supporting script fragments on the command line.
1517 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
1518 * mri.c (mri_format), ldgram.y: Change callers.
1519 * ldlang.h: Change prototype.
1520
1521 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
1522
1523 * Makefile.in: canonicalize install.sh; for use within
1524 this directory (and subdirs)
1525
1526 Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1527
1528 * ldgram.y: Tweak grammar to make reporting of invalid options work.
1529
1530 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
1531 and .cc.o rule.
1532
1533 Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1534
1535 * ldfile.c (ldfile_open_command): Don't try .ld extension.
1536 It wasn't documented (or likely used) and wastes time.
1537 (try_open): If EXTEN is empty, don't try it.
1538
1539 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
1540 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
1541 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
1542 with normal function declarations.
1543
1544 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
1545 Move *.sc-sh to scripttempl/*.sc.
1546 * {emultempl,emulparams,scripttempl}/README: New files.
1547 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
1548 removed, replaced with generic.em.
1549 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
1550 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
1551
1552 * *.em (*_get_script): Return script name instead of script contents.
1553 * ldlang.c (lang_process): Change caller.
1554
1555 * ldlex.l, ldgram.y: Recognize -m option.
1556 Check for input files after *all* options in grammar.
1557 * ldmain.c (main): Check for -m options. Add default directory
1558 for -m.
1559
1560 * mkscript.c: File removed.
1561 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
1562 to add to the default LIB_PATH.
1563 Look for input files in the new subdirectories.
1564 Create the scripts in emulations subdirectory and don't filter
1565 them through mkscript.
1566 * configure.in: Make the emulations subdirectory.
1567
1568 * Makefile.in: Account for all of the above changes.
1569 Remove unused .SUFFIXES. Get libgcc.a path with gcc
1570 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
1571 Put CFLAGS last in the compilation rules.
1572 Add -I../bfd to INCLUDES so sysdep.h is found.
1573
1574 Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1575
1576 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
1577
1578 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
1579 dependent on RELOCATING, not RELOCATION.
1580 * hp3hpux.sh (SHLIB_PATH): Define it.
1581
1582 Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1583
1584 * ldfile.c (try_open): If opening without the extension fails,
1585 try with the extension even if -v or -V was given.
1586 had_script is imported (from ldgram.y), not exported.
1587
1588 Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
1589
1590 * Makefile.in: remove parentdir support, use INSTALL_XFORM
1591
1592 Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
1593
1594 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
1595 * ldgram.y (statement_list_opt): New nonterminal, either empty or
1596 statement_list.
1597 (section): Use statement_list_opt, not statement_list.
1598 * m68kcoff.sc-sh: Gather constructors and destructors and define
1599 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
1600 * sa29200.sc-sh: Gather constructors and destructors and define
1601 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
1602
1603 Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
1604
1605 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
1606 * configure.in: No longer need to configure to get sysdep.h.
1607
1608 Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1609
1610 * Makefile.in: remove install:all and install-info:info
1611 dependencies (these cause some spurious rebuilds at 'make install'
1612 time)
1613
1614 Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
1615
1616 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
1617 (mips-idt-ecoff*): Added trailing '*'.
1618 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
1619 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
1620 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
1621
1622 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
1623 incorrect definitions.
1624
1625 Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
1626
1627 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
1628 symbols, unless stripping.
1629
1630 Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
1631
1632 * Makefile.in: configure looks for ####, so remove lines with many
1633 '#' characters.
1634 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
1635 and HOSTING_LIBS correctly so that ``make check'' will work.
1636
1637 Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
1638
1639 * mips.sc-sh: Define _etext, _edata, and _end, in addition
1640 to etext, edata, and end. Needed for IRIX 4.0.5F.
1641 Patch from mwp@iconix.oz.au (Michael Paddon).
1642
1643 * Version 2.2.1 released.
1644
1645 Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1646
1647 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
1648 * mipsbsd.sh (EMULATION_NAME): Use new file name.
1649
1650 Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1651
1652 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
1653 properly right now.
1654
1655 * Version 2.2 released.
1656
1657 Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
1658
1659 * ldver.c (ldversion): Bump version number to 2.2.
1660
1661 Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
1662
1663 * NEWS: New file.
1664
1665 Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
1666
1667 * mips.sc-sh: Don't define BSS_VAR unless relocating.
1668
1669 Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
1670
1671 * Makefile.in (mkscript.o, mkscript): Build mkscript via
1672 mkscript.o, rather than directly from mkscript.c.
1673
1674 Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1675
1676 * configure.in: Look for ${target_makefile_frag} relative to
1677 ${srcdir}, not relative to build directory.
1678
1679 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
1680 * configure.in: Recognize hppa*-hp-osf.
1681 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
1682 (em_hppaosf.c): Build it.
1683 * config/hppaosf.mh, hppaosf.mt: New files.
1684
1685 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
1686 some system header files. All uses changed.
1687
1688 * configure.in: Recognize i386-aix configurations as i386-coff
1689 targets.
1690
1691 * configure.in: Recognize m68*-*-hpux.
1692 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
1693 the value of STACKZERO.
1694 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
1695 (em_hp3hpux.c): Build it.
1696 * hp3hpux.sh, config/hp300hpux.mt: New files.
1697
1698 Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
1699
1700 * mips.sc-sh: Put constructors in the .data section.
1701 * Makefile.in (cdtest): Added dependency on ld.new.
1702
1703 Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
1704
1705 * Makefile.in: Change definition of $(tooldir) to match FSF.
1706 * vax.sh, config/vax.mt, configure.in, Makefile.in:
1707 Support VAX Ultrix and BSD.
1708
1709 Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1710
1711 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
1712
1713 Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
1714
1715 * ldlang.h (struct memory_region): Change `length' and
1716 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
1717 * ldlang.c, mri.c: Corresponding changes, plus lint.
1718
1719 Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
1720
1721 * configure.in: For all i386 targets, accept i486 as well.
1722
1723 Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
1724
1725 * ldlang.c (wild_doit): Preserve all flags for a
1726 SEC_SHARED_LIBRARY section.
1727 (size_input_section): Consider any SEC_HAS_CONTENTS section when
1728 computing largest_section.
1729
1730 Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
1731
1732 * ldlang.c (lang_output_section_statement_lookup): Initialize all
1733 fields of newly created structure.
1734
1735 Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
1736
1737 * ldmain.c (g_switch_value): New variable.
1738 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
1739 (command_line_option): Accept -G and set g_switch_value.
1740 * ldlex.l (COMMAND): Accept -G.
1741 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
1742
1743 Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1744
1745 Support for linking and loading at different places:
1746
1747 * ldlex.l: Add "AT" keyword.
1748 * ldgram.y: Cleanup, and parse AT.
1749 * ldlang.c (print_output_section_statement): Print output address
1750 of section in map. (lang_size_sections): Fill sections' lma with
1751 load address.
1752 * ldlang.h (lang_output_section_statement_type): Add load_base
1753 information.
1754
1755 * ldindr.c (add_indirect): Keep more information in the alias
1756 symbol chain.
1757 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
1758 attribute from an input section.
1759 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
1760 default. (Q_enter_file_symbos): Indirect symbols now are known by
1761 their section, not a special symbol flag.
1762 * ldsym.c (write_file_locals): Indirect symbols aren't local.
1763 (write_file_globals): Write the mapping for an indirect symbol.
1764 * relax.c (build_it): When forced to write a NEVER_LOAD section,
1765 fill it with zeros.
1766
1767 Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
1768
1769 * ld.texinfo: changes for q1
1770
1771 Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1772
1773 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
1774
1775 Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1776
1777 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
1778
1779 Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
1780
1781 * mips.sc-sh: Added variables which may be overridden by a
1782 specific emulation.
1783 * mipsidt.sh: New file; emulation for IDT MIPS board.
1784 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
1785 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
1786 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
1787 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
1788
1789 Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1790
1791 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
1792 ralphc@pyramid.com.
1793 * i386bsd.sh, config/i386bsd.mt: New files.
1794 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
1795
1796 Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
1797
1798 * mri.c: Add extern declaration of strdup.
1799 * ldsym.c (KEEP macro): Add spaces around '=' for the
1800 sake of old (e.g. PCC) compilers.
1801
1802 Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
1803
1804 * ldver.c: Bump to version 2.1.
1805
1806 Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1807
1808 * ldgram.y: allow section types without address expressions.
1809 * ldlang.c (lang_relocate_globals): avoid possible hang with
1810 undefined but unreferenced symbols.
1811 * relax.c (relax_section): don't complain if the script file isn't
1812 relaxable but -relax is set
1813
1814 Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1815
1816 * configure.in: go32 is the 3rd part of the triple, not the 2nd
1817
1818 Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
1819
1820 * mipsbig.sh: New file. Big endian MIPS emulation.
1821 * config/mips-big.mt: New file. Use mipsbig emulation.
1822 * configure.in (mips-sgi-irix*): Use target mips-big.
1823 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
1824 (em_mipsbig.c): New target. Uses mipsbig.sh.
1825
1826 Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
1827
1828 * mips.sc-sh: Put .scommon sections into .sbss section.
1829
1830 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
1831 rather than always putting them in bfd_com_section.
1832 * ldlang.c (lang_common): If a common symbol is not in
1833 bfd_com_section, put in a section of the same name, rather than
1834 always putting it in section COMMON.
1835
1836 Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
1837
1838 * ldmain.c (subfile_wanted_p): If we already have a common
1839 definition of a symbol, don't necessarily pull in an object file
1840 that provides a non-common definition.
1841
1842 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
1843 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
1844 linker.
1845 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
1846 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
1847
1848 Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
1849
1850 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
1851 the link to it.
1852
1853 Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
1854
1855 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
1856 checking for equality to bfd_com_section.
1857
1858 Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
1859
1860 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
1861 targets, linker script.
1862 * mipslit.sh: New file. Little endian MIPS emulation.
1863 * config/mips-lit.mt: New file. Use mipslit emulation.
1864 * configure.in (mips-dec-ultrix*): Use target mips-lit.
1865 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
1866 (em_mipslit.c): New target. Uses mipslit.sh.
1867
1868 Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
1869
1870 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
1871 $(tooldir)/bin/gld, so that gcc can find it with or without
1872 collect2.
1873
1874 Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1875
1876 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
1877 write_norel. All linking is now done via write_relax. Call
1878 ldsym_write before calling write_relax.
1879 * relax.c: Added copyright.
1880 (write_relax): Renamed from write_relaxnorel. Added relocateable
1881 argument. seclet_dump renamed to bfd_seclet_link.
1882 * relax.h: Added copyright.
1883
1884 Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1885
1886 * ldmain.c (decode_library_subfile): Patch from
1887 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
1888
1889 Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1890
1891 * config/vxworks960.mt renamed to config/i960.mt
1892
1893 * configure.in: sparc-aout emulates a sun4, as does
1894 sparc*-vxworks, i960-nindy uses gld960 emulation
1895
1896 Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1897
1898 Fix support for NOLOAD, add INCLUDE
1899 * ldfile.c (ldfile_open_command_file): pass file name to
1900 lex_push_file.
1901 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
1902 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
1903 attribute.
1904
1905 Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1906
1907 * Makefile.in, config.h: no more default emulation. Make the lack
1908 of emulation a compile time error
1909
1910 Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1911
1912 * configure.in: recognise all sparclite variants, not just 'sparclite'
1913
1914 Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
1915
1916 * m68kcoff.sc-sh: define _end as well as end, for consistency with
1917 aout.sc-sh.
1918
1919 * configure.in: accept *-ericsson-ose for any m68k CPU.
1920
1921 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
1922 for each output section.
1923
1924 Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
1925
1926 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
1927 macro bfd_asymbol_bfd as appropriate.
1928 * Makefile.in: Un-duplicate ldlex.c dependency.
1929 * condigure.in: Replace my_host case table by sourcing
1930 ../bfd/configure.host. Allow std-host as the default.
1931 * ldmisc.c: Change logic for C++ name demangling: There is
1932 no initial '_' to remove from stab-derived function names.
1933
1934 Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
1935
1936 * ldlang.c (lang_init_script_file): don't attach the output file
1937 sections to the script file.
1938
1939 Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
1940 * ldlang.c (wild): run expansion loop over command line bfd too.
1941 (lang_ini_script_file): initialize more parts of the command line
1942 bfd.
1943 * ldlex.l: fix DEFINED start states.
1944
1945 Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
1946 -y support
1947 * ld.texinfo: new doc.
1948 * ldgram.y, ldlex.l: understand -y<symbol>
1949 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
1950 print info. (add_ysym): new function.
1951 * ldsym.h: (ldsym_type): new define SYM_Y.
1952
1953 Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
1954
1955 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
1956 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
1957 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
1958 macros with PARAMS. Recreational cleanup. Update copyrights.
1959
1960 Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1961
1962 * Makefile.in: pass down the bfd source directory for includes
1963
1964 Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
1965
1966 * ldlang.c (lang_size_sections): don't change size and address for
1967 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
1968 sections.
1969
1970 Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
1971
1972 * relax.c (build_it): re-enable the processing of data_statements
1973 in scripts, makes counted contructor lists work again.
1974
1975 Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
1976
1977 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
1978
1979 Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
1980
1981 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
1982 and end.
1983
1984 Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
1985
1986 * Support for i386-sysv.
1987 configure.in: check for i386-*-sysv* and i386-*-sco*.
1988 i386coff.sc-sh: rewrote to support SVR3 by default.
1989 ldctor.c (find_constructors): preserve stat_ptr.
1990 ldlang.c (wild_doit): initialize vma and size of new output
1991 section to corresponding input section. This is required for
1992 shared library support.
1993 (lang_size_sections): don't modify vma and size of sections which
1994 are never loaded (for shared libraries).
1995 ldwrite.c (copy_and_relocate): copy the contents of any section
1996 which has contents, not just sections which are loaded (for shared
1997 libraries).
1998
1999 Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2000
2001 * ldlang.c (size_input_section): count the sizes of all sections
2002 we allocate.
2003
2004 Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2005
2006 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
2007 to demangle symbols better
2008
2009 Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
2010
2011 * ldlang.c (lang_finish): don't warn if -e start symbol does not
2012 exist when linking with -r.
2013
2014 Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
2015
2016 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
2017 .bss segment.
2018
2019 Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2020
2021 * ldmain.c (linear_library): don't even think about processing
2022 an object file if it's already been done
2023
2024 Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2025
2026 * configure.in: the hp9000/300 config file is now hp300
2027
2028 Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2029
2030 * config/z8ksim.mt: new file
2031
2032 Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
2033
2034 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
2035 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
2036
2037 * ld.h (strip_symbols_type): Add value STRIP_SOME.
2038 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
2039 * ldlang.c (lang_add_keepsyms_file): New function.
2040 * ldlex.l: Handle "-retain-symbols-file".
2041 * ldsym.c (keepsyms_file, kept_syms): New vars.
2042 (process_keepsyms): New functihon; reads file, marks symbols for
2043 saving.
2044 (write_file_locals): File symbols should always be kept.
2045 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
2046 and "-s". Process retain-symbols file before setting symtab.
2047 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
2048 (keepsyms_file, kept_syms): Declare them.
2049
2050 * ldmain.c (main): Non-fatal errors should still cause non-zero
2051 exit status even with -r.
2052
2053 Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2054
2055 Added initial support for the z8k
2056 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
2057 * configure.in, Makefile.in: modified to reflect above
2058
2059 * ldlang.c (lang_check): when linking conflicting architectures,
2060 make the output file reflect at least one of the bad inputs.
2061
2062 Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
2063
2064 * Makefile.in (install): if $(tooldir) exists, install ld in
2065 $(tooldir)/bin.
2066
2067 Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2068
2069 * Makefile.in, configure.in: modified to support i386-coff
2070 * i386coff.sh: new file
2071
2072 Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
2073
2074 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
2075 added m68k-coff emulation mode, stolen from a29k emulation.
2076 Almost certainly wrong, but perhaps better than sun3.
2077
2078 Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
2079
2080 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
2081 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
2082 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
2083 This is one character shorter, and lets people build on
2084 SVR3 system. (ld__h8300xray.[co] was the killer there;
2085 h8300xray.sc-sh is also overlong, but seems harmless.)
2086 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
2087 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
2088 * configure.in: Add host isc.
2089
2090 * ldver.c: Call it version 2.0.
2091
2092 Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
2093
2094 * ldver.c: Bump to version 0.98.
2095 * TODO: New file.
2096
2097 * Makefile.in: Added mostlyclean, distclean, realclean rules.
2098
2099 Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
2100
2101 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
2102 * ldlex.l: Moved comment() to end, since some compilers
2103 otherwise have problems with input() used before it is defined.
2104
2105 Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2106
2107 * configure.in: added Solaris 2 and Irix 4 host support.
2108
2109 Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2110
2111 * Makefile.in: remove -S flag from the FLEX definition
2112
2113 * configure.in: rewrote, using new style case statement. use
2114 m68k.mt for m68k-aout systems
2115
2116 Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
2117
2118 * Makefile.in: map "ld" through program_transform_name when
2119 installing.
2120
2121 Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
2122
2123 * cplus-dem.c: Removed. Use the version in libiberty now.
2124 * ldmisc.c: Use new libiberty version of cplus_demangle().
2125
2126 Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
2127
2128 * gld960.em (gld960_choose_target): default to little endian, not
2129 big endian.
2130
2131 Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2132
2133 * ldlang.c (lang_process): don't pass null pointers when
2134 abs_output_section is what is required.
2135 * ldwrite.c (ldwrite): use malloc to allocate the largest space
2136 used, and pass that down.
2137 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
2138 than alloca.
2139
2140 Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
2141
2142 * configure.in, config/ose68.mt: renamed OSE to ose.
2143
2144 Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
2145
2146 * ldsym.c (write_file_locals): Reorder check for common or
2147 undefined symbols so that it works.
2148
2149 Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
2150
2151 * configure.in: accept all m68K family members.
2152
2153 * Makefile.in: always create installation directories.
2154
2155 Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2156
2157 * ldlex.l: now parses comment correctly, added ~ to acceptable
2158 chars in filenames
2159
2160 * ldexp.c (exp_unop): pass down abs_output_section - now can have
2161 unary -ve constants.
2162
2163 * ldlang.c (lang_finish): warn when an entry symbol supplied on
2164 the command line can't be found.
2165
2166 Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2167
2168 * ldlang.h: add new field "loadable" to output_section_statement.
2169 * ldlang.c (lang_output_section_statement_lookup): initilize new
2170 field. (wild_doit): if new field is not set, then stop output
2171 section from being loadable.
2172 (lang_enter_output_section_statement): set the field from the
2173 NOLOAD keyword
2174 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
2175 * h8300hms.sc-sh, h8300hms.em: get -r right.
2176
2177 Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
2178
2179 * ldint.texinfo: New internals manual (beginnings thereof).
2180 * PORTING: Removed, merged into ldint.texinfo.
2181
2182 Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
2183
2184 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
2185 cdtest.exp: A test program (copied from libg++/test-install)
2186 that tests that constructor and destructors are handled
2187 corrrectly.
2188
2189 Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2190
2191 * Makefile.in (install): install from ld.new, renaming during the
2192 copy, or else the next 'make install' needs to re-link ld.
2193
2194 Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
2195
2196 * configure.in: generalise hp recognition (from sef).
2197
2198 Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2199
2200 * configure.in: recognize bsd and hpux hppa configurations.
2201 error messages echo to stderr, not stdout
2202
2203 Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2204
2205 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
2206 ldmisc.c: removed rcsid's.
2207
2208 Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2209
2210 * ldlang.c (lang_map): print changes in sizes due to relaxing
2211 (size_input_section): maintain the delta information.
2212 * ldlang.h: add new field to struct to contain delta info.
2213 * relax.c (relax_section): complain if input not relaxable.
2214 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
2215 start of a filename
2216
2217 Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2218
2219 * ldmain.c(main): prevent -r and -relax from being on at the same
2220 time.
2221
2222 Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2223
2224 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
2225 aliasing problems
2226
2227
2228 Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2229
2230 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
2231 * ldexp.c: lint
2232 * ldlang.c(open_output): set the target arch and machine as soon
2233 as we can. (lang_size_sections): use new macros for setting vma
2234 * ldwrite.c: lint
2235
2236 Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
2237
2238 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
2239 Also deleted an unreachable path to wrs.
2240
2241 Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
2242
2243 * Makefile.in (install): use -d test for $tooldir before
2244 installing ld there so that $tooldir can be inherited from
2245 top-level Makefile.
2246
2247 Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
2248
2249 * ldlang.c: Two non-substantial changes for the sake of
2250 the old Portable C Compiler.
2251
2252 Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2253
2254 * ldgram.y, ldlex.l: parse ABSOLUTE
2255 * ldexp.c: add support for ABSOLUTE
2256
2257 Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
2258
2259 * Makefile.in: Added default definitions for HOSTING_CRT0,
2260 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
2261 * config/*.mh: Miscellaneous clean-up: Removed definitions
2262 of YACC (since it is not longer used in the Makefile).
2263 Remove HOSTING_* definitions that are subsumed by the
2264 ones added to Makefile.in. Removed most definitions of CC.
2265 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
2266 These are no longer needed.
2267
2268 Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
2269
2270 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
2271 rules, since these are used when building a distribution.
2272 * Makefile.in (ldlex.c): Don't re-direct output, since that
2273 leaves a bogus output files if it fails.
2274
2275 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
2276 * ldlex.c: Fix some unnecessary flex-specific-isms.
2277
2278 Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2279
2280 * ldgram.y: move spurious semicolon
2281 * ldexp.h: fix prototype
2282
2283 Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
2284
2285 * ld.texinfo: references to linker now say "ld" not "gld".
2286
2287 Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2288
2289 changed calling convention for Q_enter_global_ref
2290 * ldexp.c, ldlang.c, ldmain.c: reflect this
2291 * ldver.c: bump version to 1.97.1
2292 * ldindr.c (add_indirect): when an edict declaring an indirect
2293 symbol is found, make sure that any ideas about the symbol being
2294 common are changed if it now known to be defined.
2295 * ldmain.c (linear_library): complain once if archive isn't
2296 ranlibbed.
2297 * ldlang.h, ldlang.c: make room for and initialize the complain
2298 once field.
2299
2300 Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2301
2302 * Makefile.in: use flex & bison from ../ if they exist.
2303
2304 Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2305
2306 * relax.c (build_it): don't allocate space in the output file for
2307 stuff if -R flag applys to it.
2308 * ldfile.c: merge in VMS filename support
2309 * ldmain.c (main): take out ./ from library path, and close file
2310 before unlinking. Make multiple defs of a symbol create an
2311 unexecable file.
2312 * ldmisc.c: fatal errosrs delete output file
2313
2314 Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
2315
2316 * ldver.c: Increase version number to 1.97, for consistency
2317 with ../binutils.
2318
2319 Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
2320
2321 * Makefile.in: FLEX -> LEX.
2322
2323 * ld.texinfo: {} -> @{@}.
2324
2325 Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
2326
2327 * ld.texinfo: describe alternate, MRI-compatible linker scripts
2328 (and associated change in -c option, now used for these scripts)
2329
2330 Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2331
2332 * ldver.c: Bumped version to 1.96 - new release, resync with the
2333 bfd too #.
2334 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
2335 rather than with raw malloc, makes it easier to track where memory
2336 is going.
2337 * ldsym.h, ldsym.c: create obstack for all global symbols too.
2338 * ldwrite.c (ldwrite): moved malloc so only used when needed.
2339 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
2340
2341
2342 Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
2343
2344 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
2345
2346 * Makefile.in: use bootstrap for check.
2347
2348 Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2349
2350 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
2351 PUBLIC.
2352 * Makefile.in: now use flex, not lex
2353 * ldlex.l, ldlang.c, ldctor.c: lint
2354
2355 Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2356
2357 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
2358 different sorts of filenames on the command line than in a script.
2359
2360 Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2361
2362 * Makefile.in: rework CFLAGS so that they can be passed on the
2363 make command line. Remove MINUS_G. Default CFLAGS to -g.
2364
2365 Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2366
2367 * relax.c: added handling for new "padding" seclet type, used to
2368 fill out gaps between section.
2369 * ldgram.y, ldlex.l: now -defsym on the command line is done
2370 properly.
2371
2372 Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2373
2374 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
2375
2376 Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2377
2378 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
2379 scripts.
2380
2381 Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
2382
2383 * Makefile.in (install): Install second copy in $(tooldir)/bin
2384 without $(program_prefix), since that's what gcc expects.
2385
2386 Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2387
2388 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
2389 * h8300*: fix bit rot and add support for h8300xray target
2390 * go32.sh: target emulation for go32.
2391
2392 Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
2393
2394 * gld960.em, i960.sc-sh. Fix i960 bit rot
2395
2396 Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
2397
2398 * Makefile.in: install man page.
2399
2400 Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2401
2402 * config/mt-<foo> renamed to <foo>.mt
2403 * config/mh-<foo> renamed to <foo>.mt
2404 * configure.in changed to reflect this
2405 * genscripts.sh now make .xbn files rather than .xN files
2406
2407 Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
2408
2409 * ldver.h: fix decl of ldversion.
2410
2411 Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
2412
2413 * Makefile.in: added check target.
2414
2415 Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2416
2417 * ldmain.c (Q_enter_file_symbols): now aliases work again
2418
2419 Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
2420
2421 * Makefile.in: added clean-info target.
2422
2423 Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2424
2425 * ldexp.c (exp_print_tree): don't try and follow null pointers
2426 around.
2427 * ldgram.y: remove 11 shift reduce errors
2428
2429 Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2430
2431 * Makefile.in: added tooldir and program_prefix.
2432
2433 Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
2434
2435 * ldlang.c (size_input_section): don't move absolute sections
2436 around!
2437
2438
2439 Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
2440
2441 * cplus-dem.c: yet another copy of this - maybe it should go into
2442 libiberty ?
2443 * ldgram.y: now -V and -v have different actions
2444 * ldver.c: if -V, prints list of emulations compiled in
2445 * ldmisc.c: support for cplus demangling
2446
2447
2448 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
2449
2450 * Makefile.in, configure.in: removed traces of namesubdir,
2451 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
2452 copyrights to '92, changed some from Cygnus to FSF.
2453
2454 Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
2455
2456 * Makefile.in: Change mkscript rule into one for ./mkscript
2457 (for the sake of makes that don't realize they're the same).
2458 * PORTING: Add more details.
2459 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
2460
2461 Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
2462
2463 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
2464 config/mt-hp300bsd: New port to hp300 running BSD.
2465
2466 Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
2467
2468 Major rewrite of how ld is configured. The major idea
2469 is to use shell scripts to generate everything.
2470 * generic.em replaces ldtemplate.
2471 * Other *.em files replace various *.c files.
2472 A *.em file is a shell script that generates the corresponding
2473 ld__*.c file that implements an emulation. This is usually
2474 a straight 'cat' of a here-document, possibly with substitutions.
2475 * Script files (*.sc) are places by *.sc-sh scripts.
2476 Again, these are simple shell scripts that 'cat'
2477 here-documents, usually with some substitutions.
2478 The output a *.sc-sh is a script file.
2479 * Each emulation is defined by a short shell script with
2480 extension *.sh that specifies the emulation-specific
2481 parameters (such as the name of the *.sh-sc and *.em
2482 files to use).
2483 * genscript.sh is the master shell script used to generate
2484 an emulation. It is passed various argument, including
2485 the name a the emulation-speciic *.sh file that it
2486 "sources" to set variables to emulation-specifc parameters.
2487 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
2488 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
2489 * config/mh-foo: Rename LDEMULATION names as appropriate
2490 (usually 'gldfoo' -> plain 'foo').
2491 * ldwrite.c: Fixed a typo in a comment.
2492 * Makefile.in: Major changes. Removed some the sed
2493 magic to converts scripts, since that is now handled
2494 by genscripts.sh and the *.sc-sh scipt generators.
2495 * config.h: Remove a bunch of macros defining emulations
2496 and targets. This becomes one less file to edit when
2497 adding emulations or targets.
2498 * ldemul.h (struct ld_emulation_xfer_struct): Add
2499 emulation_name and target_name fields.
2500 * ldemul.c, ldemul.h: Define some default functions used
2501 by most emulations (and remove from the *.em scripts).
2502 * ldemul.c (ldemul_choose_target): Search the new
2503 ld_emulations array using a loop (instead of a hardwired
2504 nested if statement).
2505 Define the ld_emulation from the automatically-geenrated
2506 ldemul-list.h. This means you no longer have to edit ldemul.c
2507 to add a new emulation.
2508 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
2509 their expansions, since the former no longer exist.
2510 * PORTING: A very rough first draft of a porting guide.
2511
2512 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
2513 to be terminated by a new-line (instead of requiring a semicolon).
2514
2515 Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2516
2517 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
2518 tests for NULL pointers all over the place.
2519 * ldlang.c (lang_process): remember to relocate global symbols
2520 *after* relaxing has done it stuff.
2521
2522 Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2523
2524 * config/mt-coff-h8300: use EMUL like everything else
2525 * ldlang.c: (print_padding_statement): print the right address.
2526 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
2527
2528
2529 Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2530
2531 * ldlex.l: Put pack -noinhibit-exec and -sort-common
2532 * ldlang.c (print_data_statement): print the right address.
2533
2534 Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
2535
2536 * Makefile.in: The rule for testing ld by re-linking itself
2537 via an intermediate -r link was moved to the ld1 rule
2538 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
2539 which allows the bootstrap rule to work.
2540 * ldctor.c (find_constructors): Don't create a constructor
2541 list if it is already defined (as would happen if ld is
2542 invoked by collect).
2543
2544 Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2545
2546 * config/mh-sparc.h: now uses libgcc.a
2547 * ldmain.c: quit using exit
2548 * *sc: use *(COMMON) rather than [COMMON]
2549 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
2550 to allow preprocessing of .l file.
2551 * Makefile.in: New ldlex.l mangling
2552 * ldexp.c (fold_binary): perform expressions with % and / in
2553 integer.
2554 * ldfile.c (open_a): open archives on VMS in a special way
2555
2556
2557 Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2558
2559 * ldgram.y: map -M behave in the same way as -Map (sets file name
2560 to be "-".
2561 * ldsym.c, ldlang.c: remember that size of a section is dependent on
2562 whether or not relaxing has been done.
2563 * ldmain.c: don't open a map file if it doesn't have a name
2564 * relax.c: all the brains have moved into bfd.
2565 * ldwrite.c: ammend comment
2566
2567 Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2568
2569 * Makefile.in: added relax, also made three stage go through a
2570 partial link stage.
2571 * relax.c : added
2572 * config.h: if GNU960 defined, then default emulation mode is
2573 GLD960
2574 * ldexp.h, ldexp.c: map to file hooks
2575 * ldlang.c: map to file hooks
2576 * ldgram.y: added -Map -relax
2577 * ldlex.l: added -relax, -Map
2578 * ldmain.c: open map file
2579 * ldmisc.c: support for map file
2580 * ldwrite.c: new relax magic
2581
2582 Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
2583
2584 * Makefile.in, config/tm-*.h: Clean up make output, only
2585 pass DEFAULT_EMULATION to ldmain.c.
2586
2587 Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
2588
2589 * ldver.c: Bump to version 1.94.
2590
2591 Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
2592
2593 * Makefile.in: infodir belongs in datadir.
2594
2595 Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
2596
2597 * Makefile.in: Pass -y to bison. (Again;
2598 accidentally deleted by Rich.)
2599 * news.sc, ldgld68k.sc: Define __end as well as _end.
2600
2601 Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
2602
2603 * ldindr.h: added to contain prototypes of ldindr.c
2604 * ldfile.c: include ctype.h
2605 * ldmain.c: include the requried prototype headers
2606 * ldwrite.c: get_reloc_upper_bound has been renamed
2607 bfd_get_reloc_upper_bound
2608
2609 Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
2610
2611 * Makefile.in: punt "fundamental" mode because it breaks my emacs
2612 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
2613 spaces following hyphens, bsd make can't cope. added
2614 standards.text support and made it look like all the other
2615 makefiles.
2616
2617 * configure.in: configure now runs entirely in objdir so make file
2618 existence checks against ${srcdir}. Mark this directory as
2619 target dependent.
2620
2621 Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
2622
2623 * Makefile.in: idestdir and ddestdir go away. Added copyrights
2624 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
2625 and mandir now keyed off datadir by default.
2626
2627 Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
2628
2629 * ldver.c: Bumped version to 1.93.
2630 * Makefile.in: Pass -y to bison.
2631
2632 Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
2633
2634 * config.h: h8 is now coff, not ieee
2635 * h8300hds.sc: reflect the same
2636
2637 Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
2638
2639 * ldver.c (ldversion()): Update to 1.92.
2640 * ldctor.c: There are two places constructor sets
2641 can be defined. One of them checked for an existing
2642 duplicate, the other didn't. Unfortunately, the latter
2643 was called after the former ...
2644 So, factor out code for inserting a new element into
2645 constructor_name_list (after checking for a duplicate)
2646 into a new function add_constructor_name, and call
2647 it from both aforementioned places (ldlang_add_constructor
2648 and ldlang_check_for_constructors).
2649
2650 Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
2651
2652 * Makefile.in: Rename .c files generated from ldtemplate
2653 to have names starting with ld__. This helps 'make clean'.
2654
2655 Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
2656
2657 * Makefile.in: Take out the version number for install
2658 * m88kbcs.sc: put in contructor blocks.
2659
2660 Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
2661
2662 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
2663 parameter, a format, and an arg pointer, and rename it to
2664 vfinfo(). Write info() in terms of new vfinfo().
2665 New einfo() is the same as info(), except it writes to stderr.
2666 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
2667 ldmisc.c: Replace "error" calls to info() by new einfo().
2668
2669 Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
2670
2671 * ldlex.l ldgram.y: made -V option do same as -v
2672 * Makefile.in: Added $(MINUS_G) flag so debugging can be
2673 turned off
2674
2675 Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
2676 i386 aout changes from Bob Kukura
2677 * Makefile.in, config.h: added i386aout support
2678 * configure.in: fixed /h-{myhost} typo
2679 * ldgram.y: -MM now gives more boring map.
2680 * ldlang.c: now does D_PAGED flag the right way.
2681 * ldsym.c: -MM flags does the right thing.
2682
2683 Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
2684
2685 * configure.in: Fixed typo. Also, a fix for hp300bsd.
2686 * ldlang.c (init_os): Compensate for BFD change,
2687 where bfd_make_section now returns NULL for a duplicate
2688 section request, instead of the old section.
2689
2690 Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
2691
2692 * ldver.c: Bump to version 1.91 (consistent with binutils).
2693
2694 Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
2695
2696 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
2697 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
2698 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
2699 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
2700 Add or update copyright notices.
2701
2702 Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
2703
2704 * README: New file.
2705 * Makefile.in: Changed installation directory name scheme
2706 to be consistent with gcc. Also changed 'install'.
2707
2708 Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
2709
2710 * Makefile.in: new targets ld.mm, ld.me
2711
2712 Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
2713
2714 * Makefile.in, ldtemplate: Need to use separate scripts
2715 for -n and -N options. Yet more complication.
2716
2717 Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
2718
2719 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
2720 work). Add some lines to avoid Sun Make VPATH bugs.
2721
2722 Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
2723
2724 * news.sc: Add alignment for data segment.
2725 * ldtemplate: Add (yet another) script to get for -n or -N
2726 options. (These need different alignment than ZMAGIC files.)
2727 * Makefile.in: Add stuff for new foo.xn scripts.
2728 These are generated by replacing "ALIGN(0x...00)" by ".".
2729
2730 Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
2731
2732 * Makefile.in: new targets ld.ms, ld-index.ms
2733 ld.texinfo: remove tabs, other cleanups for texi2roff
2734
2735 Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
2736
2737 * ldmain.c (main): Make config.magic_demand_paged be true
2738 by default. Don't the WP_TEXT and D_PAGED flags of
2739 output_bfd here; it's too late, so set it when output_bfd
2740 is created (in ldlang.c). Also fix setting of EXEC_P flag
2741 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
2742 * ldlang.c: Remove some duplicate extern declarations.
2743 * ldgram.y: Fixes to -N and -n options.
2744 * Makefile.in: Recognize upper case letters in sed script
2745 to remove assignments from script files.
2746 * ldtemplate: Don't assukme that -N or -n options
2747 imply use of -r script.
2748 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
2749
2750 Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
2751
2752 * ldtemplate: include bfd.h before sysdep.h.
2753
2754 Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
2755
2756 Restructure configuration scheme for bfd, binutils, ld.
2757
2758 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
2759 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
2760 Change some config names to match other dirs.
2761 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
2762 get defined first.
2763 * config/: Rename some config files to match up h-*.h names.
2764 Remove all the HOST_SYS definitions from the config files.
2765
2766 Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
2767
2768 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
2769 * ldtemplate: Remove ldfile_add_library_path calls;
2770 just use the SEARCH_DIR commands in the script files.
2771 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
2772 the SEARCH_DIR commands in the scripts (using ugly sed magic).
2773 This is primarily intended for cross-linking, where you would
2774 place libaries in a different place than native libraries.
2775 Also, emulations made from ldtemplate now use $(srcdir).
2776 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
2777 form; people can use the Makefile's LIB_PATH to override.
2778
2779 Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
2780
2781 * Makefile.in: fix target ld.dvi, add target ld.info
2782 ld.texinfo: make info filename ld.info
2783
2784 Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
2785
2786 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
2787 Make).
2788 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
2789 few BFD types & enums.
2790
2791 \f
2792 Local Variables:
2793 version-control: never
2794 End: