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