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