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