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