* config/tc-arc.c (byte_order): Provide explicit initial value.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
8a0683c1
ILT
1Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
2
3 * ldver.c (help): Update list of options to match currently
4 supported list.
5
047e0fcd
ILT
6Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
7
8 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
9 after_open field.
10
11 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
12 it takes a size_t anyhow.
13 (exp_binop): Likewise.
14 (exp_trinop): Likewise.
15 (exp_unop): Likewise.
16 (exp_nameop): Likewise.
17 (exp_assop): Likewise.
18 * ldlang.c (lang_memory_region_lookup): Likewise.
19 (init_os): Likewise.
20 (ldlang_add_undef): Likewise.
21 (insert_pad): Likewise.
22 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
23 bfd_size_type.
24
25 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
26
395ccfce
ILT
27Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
28
29 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
30 declaration.
31 (ld_emulation_xfer_type): Add search parameter to
32 open_dynamic_archive entry point.
33 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
34 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
35 make non-static. Change all callers to use new name.
36 (ldfile_open_file_search): Make static. If entry is dynamic, call
37 ldemul_open_dynamic_archive.
38 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
39 * ldfile.h (ldfile_open_file_search): Don't declare.
40 (ldfile_try_open_bfd): Declare.
41 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
42 Accept search parameter. Don't search for a library, just look in
43 a single place.
44 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
45 Likewise.
46
47Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
48
49 * ldmain.c (set_scripts_dir): Don't base script directory on
50 current directory.
51
917199fe
ILT
52Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
53
54 * ldmisc.c (vfinfo): Don't print the line number if it isn't
55 meaningful.
56
4551e108
ILT
57Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
58
917199fe
ILT
59 * ld.h (ld_config_type): Add field warn_constructors.
60 * ldmain.c (add_to_set): Warn if config.warn_constructors.
61 (constructor_callback): Likewise.
62 * lexsup.c (parse_args): Handle -warn-constructors.
63 * ld.texinfo, ld.1: Document -warn-constructors.
64
c16b92d2
ILT
65 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
66 get confused by directory names if we searched for the file.
67
7213def7
ILT
68 Based on patches from H.J. Lu <hjl@nynexst.com>:
69 * ldlang.h (lang_input_statement_type): Add new field dynamic.
70 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
71 * ldfile.c: Include bfdlink.h.
72 (ldfile_open_file): Check dynamic field of entry, not global
73 dynamic_link field. Don't do a dynamic search when doing a
74 relocateable link.
75 * ldmain.c (main): Don't warn about dynamic_link for a
76 relocateable link.
77 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
78 dynamic is false.
79 (gld${EMULATION_NAME}_create_output_section_statements): Always
80 loop over input files.
81 * Makefile.in: Rebuild dependencies.
82
4551e108
ILT
83 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
84 -shared.
85
86Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
87
88 * ldmain.c (main): Set link_info.symbolic to false.
89 * lexsup.c (parse_args): Handle -Bsymbolic.
90
eac6290c
FF
91Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
92
93 * ldmain.c (HAVE_SBRK): Define for everything except
94 specific systems that are known to not support sbrk.
95 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
96
7523be35
ILT
97Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
98
7158d2b1
ILT
99 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
100 Handle etree_provide.
101
7523be35
ILT
102 * emultempl/elf32.em (global_needed): New static variable.
103 (global_found): Likewise.
104 (gld${EMULATION_NAME}_after_open): New static function.
105 (gld${EMULATION_NAME}_search_needed): Likewise.
106 (gld${EMULATION_NAME}_try_needed): Likewise.
107 (gld${EMULATION_NAME}_check_needed): Likewise.
108 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
109 gld${EMULATION_NAME}_after_open.
110
cb848d61
SC
111Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
112
113 * configure.in (i386-*-win32): New target.
cb848d61 114
22d3533c
ILT
115Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
116
117 * lexsup.c (parse_args): Let -G either set the small data size or
118 be equivalent to --shared, depending on the next argument. Accept
119 and ignore -z for Solaris compatibility.
120
243e7698
ILT
121Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
122
123 * lexsup.c (parse_args): Cast fopen result to PTR before storing
124 it in link_info.base_file. Fix indentation.
125
de71eb77
SC
126Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
127
128 * ldmain.c (main): Always initialize PE info in link_info.
129 * lexsup.c (OPTION_BASE_FILE): New option.
130 (parse_args): Handle new option.
131 * emulparams/armpe.sh: Output pei.
132 * emultempl/i386pe.em: Add newline to end.
133 * scripttempl/armpe.sc: Change output and quote the $s.
134 * scripttempl/i386pe.sc: Change output and quote the $s.
135
136Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
137
138 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
139
140 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
141 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
142 (i386msdos.o): New target.
143 * config/i386-msdos.mt: Created.
144 * emulparams/i386msdos.sh: Created.
145 * scripttempl/i386msdos.sc: Created.
146
d5131191
MM
147Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
148
149 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
150 that contains pointers to be relocated.
151
0283d893
SS
152Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
153
154 * mpw-esh.c: New file, modified for MPW from esh.c.
155 * scripttempl/sh.sc: Reformatted to simplify MPWification,
156 use *() to concat stab sections instead of [].
157
158Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
159
160 * scripttempl/armpe.sc: Add constructor support.
161
935cd0dd
SC
162Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
163
164 * ldlang.c (lang_size_sections): Any section with a DATA
165 statement has contents.
166
74b3ead3
KR
167Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
168
169 * emulparams/m68kelf.sh (NOP): Define.
170 (DYNAMIC_LINK): Don't define.
171 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
172 will come from the linker script.
173
ba0784fe
SC
174Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
175
176 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
177
178Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
179
180 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
181
182Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
183
184 From Andrew Cagney <cagney@highland.com.au>
185 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
186 elf32lppc.
187
28d0c3ce
SC
188Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
189
190 Add support for ARM-PE.
191 * Makefile.in (ALL_EMULATIONS): Add armpe.o
192 * configure.in: Recognize armpe.
193 * config/arm-pe.mt: New file.
194 * emulparams/armpe.sh: New file.
195 * scripttempl/armpe.sc: New file.
196
197
198Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
199
200 * configure.in (h8300h-*-hms): Deleted
201 * config/cf-h8300h.mt: Deleted.
202
203Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
204
205 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
206
207 From David Taylor (dtaylor@armltd.co.uk)
208 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
209 * configure.in: Recognize arm{,e[lb]-*-aout.
210 * config/arm[lb]-aout.mt: New files.
211 * emulparams/armaout[lb].sh: New files.
212 * scripttempl/armaout.sc: New file.
213
214Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
215
216 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
217 be unique in 8 characters for DOS.
218
219 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
220 * emulparams/elf32ppcle.sh: Deleted.
221
222Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
223 Tom Griest <griest@cs.yale.edu>
224
225 Initial support for PE executables (eg NT, win32)
226
227 * Makefile.in (configure.in, ei386pe): Add support.
228 * ldmain.c (main): Initialize PE argument info.
229 * ldwrite.c (print_file_stuff): Don't print out .drectve
230 and .debug section info.
231 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
232 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
233 Handle new arguments.
234 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
235 New files
236
dea16e4d
SG
237Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
238
239 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
240 segment. This allows ld -r to preserve unwind sections.
241
417ced0d
MM
242Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
243
244 * configure.in: Add little endian PowerPC support.
245
246 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
247 (eelf32ppcle.c): Support for little endian PowerPC.
248
249 * config/ppcle-elf32.mt: New file for little endian PowerPC.
250 * emulparams/elf32ppcle.sh: Ditto.
251
fa9dea80
KR
252Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
253
254 * ldlang.c (print_output_section_statement): Check
255 subsection_alignment, instead of checking section_alignment twice.
256 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
257
55ac59da
JL
258Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
259
260 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
261
262Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
263
264 * ldwrite.c (ldwrite): Before doing anything, reset the error
265 code. If bfd_final_link returns an error, but the error code is
266 unset, don't issue an extra message. Assume a correct error
267 message was already set.
268
269Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
270
271 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
272 (em68kelf.o): New target.
273 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
274 * configure.in: Use them for m68*-*-elf.
275
276Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
277
278 Merge in support for Mac MPW as a host.
279 (Old change descriptions retained for informational value.)
280
281 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
282 (i386-unknown-coff): Remove.
283 (sh-hitachi-hms): New target.
284 (emulation_ofiles): Set correctly for each target.
285 (version, TDEFINES): Add to makefile fragment.
286 * mpw-make.in (BISON): Use byacc instead of bison.
287 (em_*.c): Replace with e*.c everywhere.
288 (ldgram.h): Separate action from ldgram.c generation.
289 (LD_PROG): Depend on Version.r.
290 (Version.r): generate from version info.
291 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
292
293 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
294 i386-unknown-aout, i386-unknown-coff): New targets.
295 (m68k-aout, m68k-coff): Remove targets.
296 (mk.tmp): Add definition of EMUL.
297
298 * mpw-config.in (emulname): Set based on target.
299 (ldemul-list.h): Construct.
300 * mpw-make.in (install-only): New target.
301 (install): Depend on install-only.
302
303 * mpw-make.in (bindir): Fix pathname.
304 (install): Move here from mpw-build.in.
305
306 * mpw-config.in: New file, MPW configuration fragment.
307 * mpw-make.in: New file, MPW makefile fragment.
308 (This file is semi-automatically generated from Makefile.in.)
309 * ldfile.c (slash): If MPW, set to `:'.
310 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
311 prevent redefinition errors.
312
7e87eb13
DE
313start-sanitize-arc
314Thu Apr 6 20:38:36 1995 Doug Evans <dje@chestnut.cygnus.com>
315
316 * emulparams/arcelf.sh (ENTRY): Define.
317end-sanitize-arc
318
319Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
320
321 * ldwrite.c (clone_section): Align clone sections on even
322 boundaries.
323
59b4c199
ILT
324Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
325
326 * configure.in: Change linux to default to elf. Using
327 i[345]86-*-linuxaout will build a linker which defaults to a.out.
328 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
329 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
330 * config/i386-lelf.mt: Remove.
331
e920526d
ILT
332Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
333
7e87eb13
DE
334 * ldmain.c (main): If opening the map file fails, call
335 bfd_set_error before calling einfo.
336
e920526d
ILT
337 * ld.texinfo, ld.1: Document the -no-keep-memory option.
338
a735edad
ILT
339Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
340
341 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
342 does mark shared libraries as executable.
343
68233e44
ILT
344Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
345
346 * ldlang.c (lang_common): Change power to int. Pass larger values
347 before smaller values.
348 (lang_one_common): Treat info as int *. Don't bother to check for
349 last value, since it is now zero.
350
f400bbbb
ILT
351Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
352
4da1dcea 353 * ldlang.c (load_symbols): An empty archive is OK.
f400bbbb
ILT
354
355Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
356
357 * ldmain.c (progress.h): Include.
358 (main): Call START_PROGRESS and END_PROGRESS.
359
86d0248d
MM
360Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
361
362 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
363 .dtors sections, so that these pointers get relocated also.
364 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
365 and end of the constructors/destructors.
366
f2f55b16
ILT
367Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
368
369 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
370 describes an archive, call bfd_link_add_symbols on each member.
371 * ldmain.c (whole_archive): New variable.
372 (main): Initialize it to false.
373 * ldmain.h: Declare whole_archive.
374 * lexsup.c (parse_args): Grok --whole-archive switch.
ee499d81 375 * ld.texinfo, ld.1: Document --whole-archive.
f2f55b16 376
cb5362c5
ILT
377Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
378
171eb2f2
ILT
379 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
380 using the default emulation.
381
cb5362c5
ILT
382 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
383 LDEMULATION.
384 * config/hppaelf.mh (HOSTING_EMU): Likewise.
385
e66fa842
ILT
386Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
387
388 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
389 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
390
01bc8f35
ILT
391Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
392
22c41f00
ILT
393 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
394
01bc8f35
ILT
395 * ldlex.l: Return -lFILENAME as the token LNAME.
396 * ldgram.y: Add token LNAME.
397 (input_list): Treat LNAME like NAME, but pass it to
398 lang_add_input_file as lang_input_file_is_l_enum.
399 * ld.texinfo: Document using -lFILENAME in INPUT.
400
401Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
402
403 * ldlang.c (lang_check): If the architectures are compatible call
404 bfd_merge_private_bfd_data to let the backend do additional
405 checks.
406
17948aa1
DE
407start-sanitize-arc
408Tue Mar 7 21:10:28 1995 Doug Evans <dje@chestnut.cygnus.com>
409
410 * emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
411 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
412end-sanitize-arc
413
b939d1f4
ILT
414Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
415
416 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
417 all supported emulations.
418
b73b4131
ILT
419Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
420
421 * ldemul.c (ldemul_list_emulations): New function.
422 * ldemul.h (ldemul_list_emulations): Declare.
423 * ldver.c (help): List supported targets and emulations.
424
425Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
426
427 * scripttempl/elf.sc (.debug): Relocate to address 0.
428 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
429 .debug_sfnames, .line): Likewise.
430
30e12576
ILT
431Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
432
433 * emultempl/elf32.em (hold_rel): New static variable.
434 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
435 contents whose names begin with ".rel" after hold_rel. Remove the
436 assertion which checked for unplaced .rel sections. Don't try to
437 sort the section into place if place->bfd_section is NULL.
438 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
439 section beginning with ".rel".
440
441Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
442
443 Doc note from pierre@phi.la.tce.com (Pierre Willard):
444 * ld.texinfo: -X and -x work even if -s or -S are not specified.
445 * ld.1: Similar change.
446
0b153077
ILT
447Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
448
449 * emulparams/gld960coff.sh (COFF_CTORS): Define.
450 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
451
882c80a7
ILT
452Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
453
454 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
455 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
456 * config/i386-lelf.mt: New file.
457 * config/i386-gelf.mt: New file.
458
decc32b7
RS
459Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
460
461 * configure.in: Match on mips-ecoff, and default to the IDT
462 configuration.
463
464Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
465
466 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
467 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
468 to double the size of the table.
469
470start-sanitize-arc
471Thu Feb 9 19:03:25 1995 Doug Evans <dje@canuck.cygnus.com>
472
473 * emulparms/arcelf.sh (TEMPLATE_NAME): Comment out.
474end-sanitize-arc
475
4ad2d640
KR
476Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
477
478 * Makefile.in (distclean): Do recursive deletion, since ldscripts
479 is a directory.
480
1f59c7a7
ILT
481Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
482
be2213eb
ILT
483 * ldmain.c (main): If trace_file_tries is true, and we are using
484 an internal linker script, print out the script.
485 * ldfile.c (try_open): Reindent function. Make the messages about
486 opening script files more informative.
487
1f59c7a7
ILT
488 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
489 * ld.texinfo, ld.1: Update accordingly.
490
3565dee4
ILT
491Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
492
493 * ldlang.c (lang_one_common): Adjust references to common symbol
494 information for new structure.
495
5039302a
ILT
496Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
497
23244cd6
ILT
498 * ldmain.c (undefined_symbol): Handle section being NULL.
499
484a0896 500 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
8ed88239
ILT
501 * ldexp.c (fold_name): Likewise.
502 * ldlang.c (print_one_symbol): Likewise.
503 (lang_finish): Likewise.
504 * ldmain.c (multiple_common): Likewise.
505 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
506 renamed to bfd_link_hash_undefweak.
507
5039302a
ILT
508 * scripttempl/alpha.sc: Set address of .data section correctly
509 when -n or -N is used. Patch from Chris G Demetriou
510 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
511 * scripttempl/mips.sc: Similar change.
512
e802f0be
DE
513Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
514
515 * ldlang.c (lang_size_sections): Clarify error message when user
516 specified start addr conflicts with region. Fix resetting of
517 region pointer.
518
1abb243d
ILT
519Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
520
521 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
522 in lang_allocating_phase_enum.
523
524Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
525
526 * Makefile.in (distclean): Depend upon clean. Don't bother to
527 remove files which will be removed by clean. From patch by
528 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
529
50708d56
ILT
530Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
531
532 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
533 a MIPS target, clobber the size of all but the first input
534 .reginfo section to be 0, so that lang_size_sections sets the
535 correct size for the output .reginfo section.
536
ae02b41c
ILT
537Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
538
539 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
540 Remove unused variable is.
541
5f16938d
MM
542Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
543
544 * configure.in: Add support for powerpc-*-eabi.
545
546 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
547 support.
548
549 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
550 elf.sc, which defines some new symbols PowerPC elf needs.
551
6ade1673
ILT
552Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
553
554 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
555 constructor entry is in the absolute section.
556
c1e128e5
ILT
557Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
558
559 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
560 * config/i386-gnu.mt: New file. Include ELF support.
561
562Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
563
564 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
565 there are any input sections named .gnu.warning, treat them as
566 containing a warning message to be printed by the linker, and
567 clobber the size so that the message is not copied into the output
568 file.
569 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
570 section.
571
506f4ede
SC
572Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
573
574 * configure.in (w65-*-*): New target.
575 * Makefile.in: Update.
576 * scripttempl/w65.sc: New.
577 * config/coff-w65.mt: New.
578
cc37d01d
ILT
579Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
580
581 * ldlang.c (lang_place_orphans): Don't ignore files with
582 just_syms_flag set. Instead, put all their sections in
583 bfd_abs_section_ptr, using the section VMA as the output_offset.
584
cc38364d
KR
585Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
586
587 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
588 name `reloc_howto_type', since it's now defined to be const.
589 * ldlang.c (lang_add_reloc): Ditto.
590 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
591
93a0630f
ILT
592Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
593
594 * ldexp.c (fold_binary): Adding or subtracting an absolute value
595 to a relative value does not require forcing the relative value to
596 be absolute. Also, reindent function.
597
fa440b5a
SC
598Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
599
600 * ldwrite.c (clone_section): Create a symbol with the
601 same name as the section.
602
885ae6b9
SC
603Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
604
605 * ld.h (split_by_reloc, split_by_file): New flags.
606 * ldwrite.c (clone_section, split_sections): New functions.
607 * lexsup.c (parse_args): Understand new split options.
608
609start-sanitize-arc
610Tue Dec 13 16:45:18 1994 Doug Evans <dje@canuck.cygnus.com>
611
612 * configure.in (arc-elf): New target.
613 * Makefile.in (earcelf.c): New target.
614 * config/arc-elf.mt: New file.
615 * emulparms/arcelf.sh: New file.
616end-sanitize-arc
617
4e59f36d
ILT
618Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
619
620 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
621 .data segment. They must be writable when creating a shared
622 library. From H.J. Lu <hjl@nynexst.com>.
623
624Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
625
626 * emultempl/miposecoff.em: New file.
627 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
628 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
629 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
630 provide __runtime_reloc_start and __runtime_reloc_stop if they are
631 used. Align _fdata to a 16 byte boundary.
632 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
633 generic.em.
634 (emipsidtl.c): Likewise.
635 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
636
637 * ld.h (args_type): Add new field embedded_relocs.
638 * ldemul.h (ldemul_after_open, after_open_default): Declare.
639 (ld_emulation_xfer_struct): Add new field after_open.
640 * ldemul.c (ldemul_after_open): New function.
641 (after_open_default): New function.
642 * ldlang.c (lang_process): Call ldemul_after_open.
643 * lexsup.c (parse_args): Handle --embedded-relocs.
644 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
645 new after_open field to after_open_default.
646 * emultempl/generic.em, emultempl/gld960.em: Likewise.
647 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
648 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
649 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
650 * ld.texinfo, ld.1: Mention -embedded-relocs.
651
e93e87cb
SC
652Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
653
654 * Makefile.in: Add eshl.o.
655 * config/coff-sh.mt: Add shl emulation.
656
18368f46
ILT
657Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
658
659 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
660 Youngdale <eric@aib.com>.
661
60822a36
ILT
662Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
663
664 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
665 * config/i386linux.mh: New file; set HOSTING_CRT0.
666 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
667 /usr/lib, since that is already in LIB_PATH.
668
831d7ac4
JL
669Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
670
15ec1d5c
JL
671 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
672 address.
673 (.data, .bss): If "-N", then place the data/bss just after the end
674 of the .text section rather than at the default 0x40000000.
675
831d7ac4
JL
676 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
677 text segment.
678
fd41732a
ILT
679Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
680
831d7ac4
JL
681 Patches from Eric Youngdale <eric@aib.com>:
682 * ldlang.c (lang_finish): Don't warn if entry symbol not found
683 when generating a shared library.
684 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
685 attempting to place an orphaned relocation section when generating
686 a dynamically linked object.
687
fd41732a
ILT
688 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
689 _start.
690
5efddb2e
ILT
691Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
692
693 * ld.h (args_type): Add field export_dynamic.
694 * lexsup.c (parse_args): Recognize --export-dynamic.
695 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
696 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
697
809391bd
ILT
698Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
699
700 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
701 we allocate common symbols.
702
cd1d4f83
ILT
703Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
704
705 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
706 .rela.fini to the list of .rel* sections.
707
6a02a973
ILT
708Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
709
710 * ldlang.c (load_symbols): Add new argument place. Only accept
711 linker scripts if place is not NULL. Put commands found in an
712 assumed linker script into place.
713 (lookup_name): Pass NULL as place argument to load_symbols.
714 (open_input_bfds): In lang_input_statement_enum case, pass a place
715 argument to load_symbols, and store any new statements after the
716 current one.
717
718Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
719
720 * ldver.c (ldversion): Bump to 2.5.3.
721
ca8f2f0d
KR
722Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
723
724 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
725
0128cbae
KR
726Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
727
728 * Makefile.in (check): Add missing "else true" clause.
729
730 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
731
732 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
733 entry point to "start". Align at end of each section to 0x200.
734 Start .text section 0x1000 later. Add _etext, _edata, _end
735 symbols.
736
52329a29
ILT
737Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
738
739 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
740 composed of different object file formats.
741 (ldctor_build_sets): If the output format does not support the
742 reloc, and we are not generating a relocateable link, try getting
743 the reloc from the input format.
744
e574ddd4
C
745Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
746
747 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
748 (em68knbsd.c): New target.
749
750 * config/m68k-nbsd.mt: New file.
751 * emulparams/m68knbsd.sh: New file.
752 * configure.in (m68*-*-netbsd*): Use above configs.
753
fbf967b0
ILT
754Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
755
756 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
757 appropriately named static library, stop the search at that
758 directory.
759
32286e08
C
760Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
761
762 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
763 and esparcnbsd.o; sorted entries.
764 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
765
766 * config/netbsd532.mt: Removed.
767 * emulparams/netbsd532.sh: Removed.
768
769 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
770 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
771 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
772 sparc*-*-netbsd*): Use above configs.
773
fdfe873a
ILT
774Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
775
776 * ldmain.c (multiple_common): One of the types may now be
777 bfd_link_hash_indirect. The old BFD argument may be NULL.
778
3286598f
ILT
779Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
780
781 * configure.in: Add * at the end of m68k-hp-hpux.
782
81100e78
ILT
783Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
784
785 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
786 YY_CHAR *.
787
51bdfd9b
C
788Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
789
790 * scripttempl/nw.sc: Gather constructors and destructors and
791 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
792
54d64846
C
793Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
794
0a1e63c4
KR
795 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
796 (ei386nw.c, eppcnw.c): New targets.
797
798 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
51bdfd9b 799 scripttempl/nw.sc: New files, for i386 and powerpc netware.
0a1e63c4
KR
800
801 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
802 instead of {i386,ppc}-elf.
803
804 * configure.in (sparc*-*-netware): Removed. There is no such
805 thing anymore.
806
54d64846
C
807 * ldint.texinfo: Move misplaced `@end iftex'.
808
81d191be
ILT
809Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
810
811 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
812 .rela.dtors to the list of .rel* sections.
813
f608f62e
KR
814Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
815
0a1e63c4
KR
816 * ldver.c (ldversion): Update to version 2.5.
817 * Version 2.5 released.
818
f608f62e
KR
819 * configure.in (all_targets): Handle i386-linux*.
820
243f6d0d
ILT
821Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
822
823 * scripttempl/aout.sc: Set _etext and __etext to ., not
824 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
825 will not break any other system. From Eric Valette
826 <ev@chorus.fr>.
827
a82ae15d
ILT
828Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
829
830 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
831 --verbose to get the old -V behaviour.
832 * ld.1, ld.texinfo: Document this change.
833
262c8763
ILT
834Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
835
a82ae15d
ILT
836 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
837 assertion, since it could fail with a user defined linker script.
838
aa61b923
ILT
839 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
840 name in the hash table during the first phase--the hash table does
841 not even exist at that point, much less have the right value.
842
262c8763
ILT
843 * Makefile.in (CC): Define.
844 (CXX): Move definition, change from g++ to gcc.
845 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
846 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
847 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
848 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
849 (.cc.o): Comment out.
850 (testdir): Remove.
851 (site.exp): Don't create testdir or set tmpdir.
852 (check): Run checks even if not running native. Use CC_FOR_TARGET
853 instead of RUNTEST_CC, and likewise for CXX.
854 (cdtest targets): Comment out.
855 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
856 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
857 * cdtest-main.cc, cdtest.exp: Remove.
858
2150c3ee
ILT
859Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
860
262c8763
ILT
861 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
862 file naming problems.
863 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
864 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
865 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
866 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
867 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
868 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
869 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
870
38189778
ILT
871 * genscripts.sh: Always search /usr/local/TARGET/lib.
872
2150c3ee
ILT
873 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
874
875Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
876
877 * configure.in: Handle i386-bsdi* targets like i386-bsd.
878
a2eea823
ILT
879Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
880
881 * lexsup.c (parse_args): Add support for -a for HP/UX
882 compatibility.
883
884 * lexsup.c (parse_args): -c takes an argument.
885
f1781adc
ILT
886Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
887
86037281
ILT
888 * ld.h (args_type): Add new field endian.
889 * lexsup.c (parse_args): Handle -EB and -EL by setting
890 command_line.endian.
891 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
892 * ldlang.c (lang_add_output_format): Add arguments big and little.
893 If command_line.endian is set, use it to select big or little
894 rather than the default. Changed all callers.
895 * ldlang.h (lang_add_output_format): Update declaration.
896 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
897 LITTLE_OUTPUT_FORMAT.
898 * emulparams/elf32mipl.sh: Likewise.
899 * emulparams/mipsbig.sh: Likewise.
900 * emulparams/mipsbsd.sh: Likewise.
901 * emulparams/mipsidt.sh: Likewise.
902 * emulparams/mipsidtl.sh: Likewise.
903 * emulparams/mipslit.sh: Likewise.
904 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
905 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
906 OUTPUT_FORMAT.
907 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
908 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
909 * scripttempl/mipsbsd.sc: Likewise.
910
911 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
912 depending upon ldgram.c, so that a parallel make does not try to
913 build both at once.
914
f1781adc 915 * configure.in (mips*el-elf*): New target.
5ccef180
ILT
916 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
917 (eelf32mipl.c): New target.
86037281 918
f1781adc
ILT
919 * config/mipsl-elf32.mt: New file.
920 * emulparams/elf32mipl.sh: New file.
921
006ae0e4
ILT
922Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
923
924 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
925 ld -r -S -x.
926
7aa8f496
ILT
927Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
928
929 * ldmisc.c (vfinfo): Print BFD file name as well as file name
930 returned by find_nearest_line, in case the file name is something
931 unhelpful such as a .h file. Handle %u.
932
467a0380
SC
933Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
934
935 * ldlang.c (lang_do_assignments): Make sure output statement
936 has an attached bfd_section before trying to dereference it.
937
8bff41c1
ILT
938Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
939
809ee7e0
ILT
940 * ld.h (ld_config_type): Add new field warn_once.
941 * ldmain.c (undefined_symbol): Handle -warn-once.
942 * lexsup.c (parse_args): Recognize -warn-once.
943 * ld.texinfo (Options): Document -warn-once.
944 * ld.1: Likewise.
945
cc23cc69
ILT
946 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
947 name. For %C, print the function name on a separate line, to keep
948 the length of error messages under control.
949 * ldmain.c (multiple_definition): Use %D for ``first defined
950 here.''
951 (undefined_symbol): Use %D for ``more undefined references
952 follow''.
953
8bff41c1
ILT
954 * ldmisc.c (multiple_warn): Remove; no longer used.
955 * ldmisc.h (multiple_warn): Don't declare.
956
3deb20fb
SC
957Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
958
959 * ldlang.c (print_output_section_statement): Print all lines
960 to the map file.
961
0b3499f6
ILT
962Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
963
964 * ldlang.c (load_symbols): Check for archive before object. Use
965 bfd_check_format_matches, and, if ambiguous, print a list of
966 matching formats. If file format is not recognized, treat file as
967 a linker script.
968 * ldgram.y (yyerror): If assuming an object file is a script,
969 mention that. Tweak the format of the error messages.
970 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
971 guess that this is not actually a script, and just report that the
972 file format was not recognized.
973 * ld.texinfo (Options): Admit that -( may be used more than once.
974 Add note that unrecognized object files are now treated as linker
975 scripts.
976
977 * ldfile.c (ldfile_input_filename): Make const.
978 (ldfile_assumed_script): New variable.
979 (try_open): Change arguments types to const.
980 (ldfile_find_command_file): Likewise.
981 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
982 * ldfile.h: Update declarations for ldfile.c changes.
983 * ldlex.l: Include <ctype.h>.
984 (file_name_stack): Change to be const char *.
985 (lineno_stack): New static variable.
986 (<<EOF>>): Set lineno as well as ldfile_input_filename.
987 (lex_push_file): Make name argument const. Initialize
988 lineno_stack entry.
989 (lex_redirect): Initialize lineno_stack entry.
990 (lex_warn_invalid): Handle non printable characters nicely.
991 * ldlex.h (lex_push_file): Declare second argument as const.
992
993 * ldgram.y (ifile_p1): Recognize GROUP.
994 * ldlex.l: Recognize GROUP.
995 * ld.texinfo (Option Commands): Document GROUP.
996
2fd87dbc
ILT
997Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
998
999 * config/m68klynx.mh: New file.
1000
cb2af5cf
JL
1001Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
1002
1003 * emultempl/hppaelf.em: Add newlines to the error messages.
1004
7b63ff76
ILT
1005Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1006
1007 * config/i386lynx.mh: New file.
1008 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
1009 unless CONSTRUCTING.
1010
dd37f215
ILT
1011Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1012
1013 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
1014 (GENERATE_SHLIB_SCRIPT): Define as yes.
1015 (DYNAMIC_LINK): Define as false.
1016 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
1017 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
1018 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
1019 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
1020 generic.em.
1021
fa3539fe
SC
1022Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1023
1024 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
1025
a864a26e
ILT
1026Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1027
1028 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
1029 .got section is now explicitly handled in elf.sc.
1030
1031Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1032
1033 * scripttempl/alpha.sc: Redo script to set . outside of sections
1034 and not bother to explicitly specify section addresses.
1035 Explicitly place .sdata section.
1036
82950a80
ILT
1037Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1038
1039 * scripttempl/m68kcoff.sc: Put .bss in data segment.
1040
1041 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
1042 0, and to only be marked as NOLOAD if relocating.
1043 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
1044 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
1045 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
1046 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
1047 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
1048 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
1049 * scripttempl/sparclynx.sc: Likewise.
1050
1051Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
318b02b6
KR
1052
1053 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
1054 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
1055 New files.
1056
3b21918a
ILT
1057Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
1058
1059 * ld.h (args_type): Add field soname.
1060 * lexsup.c (parse_args): Handle -soname argument.
1061 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
1062 pass soname.
1063 * ld.texinfo: Document -soname.
1064
69927008
ILT
1065Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1066
1067 * ldlang.c (lang_check): Don't try to set the architecture if the
1068 input and output files are incompatible. Just warn.
1069
6d445436
ILT
1070Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1071
1072 * configure.in: Change i[34]86 to i[345]86.
1073
1074Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1075
1076 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
1077
b400f56d
ILT
1078Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1079
1080 Make the ELF linker handle orphaned sections reasonably. Also,
1081 define __start_SECNAME and __stop_SECNAME around sections whose
1082 names can be represented in C, for the benefit of symbol sets in
1083 glibc.
1084 * ldemul.h (ldemul_place_orphan): Declare.
1085 (ld_emulation_xfer_type): Add place_orphan field.
1086 * ldemul.c (ldemul_place_orphan): New function.
1087 * ldlang.h (wild_doit): Declare.
1088 * ldlang.c (wild_doit): Make nonstatic.
1089 (lang_place_orphans): Call ldemul_place_orphan.
1090 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
1091 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
1092 static variables.
1093 (gld${EMULATION_NAME}_place_orphan): New static function.
1094 (gld${EMULATION_NAME}_place_section): New static function.
1095 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
1096
9e5a036f
ILT
1097Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
1098
1099 * scripttempl/aout.sc: Add .linux-dynamic after .data.
1100
c1a9aaa3
ILT
1101Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1102
9e5a036f
ILT
1103 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
1104 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
c1a9aaa3 1105
1fee94ec
ILT
1106Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1107
1108 * ldexp.h (exp_get_abs_int): Declare.
1109
1110Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1111
1112 * ldlang.c (lang_do_assignments): Handle complex AT's better.
1113 * ldexp.c (exp_get_abs_int): New function.
1114
28d1c6ec
JM
1115Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
1116
1117 * configure.in: add i960-nindy-coff support.
1118
63936abc
JMD
1119Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1120
1121 * ldlex.l (yy_create_string_buffer): Handle change to internal
1122 interface in flex 2.4.7.
1123
bb329c20
JMD
1124Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
1125
1126 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
1127 New function; add 0x20 to any use of -Ttext.
1128 (gld${EMULATION_NAME}_create_output_section_statements): New
1129 function.
1130 (ld_${EMULATION_NAME}_emulation): Use the new function
1131 gld${EMULATION_NAME}_create_output_section_statements.
1132
a1ed2435
ILT
1133Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1134
1135 * scripttempl/mips.sc: Redo script to set . outside of sections
1136 and not bother to explicitly specify section addresses.
1137
b019d460
ILT
1138Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1139
1140 * scripttempl/elf.sc: Copy several more relocation sections into
1141 the output. Put .got.plt sections into .got.
1142
309c8153
ILT
1143Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1144
31ddb156
ILT
1145 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
1146
1147 Add a new script operator, PROVIDE, to define a symbol only if it
1148 is needed.
1149 * ldgram.y (PROVIDE): New token.
1150 (assignment): Accept PROVIDE.
1151 * ldlex.l (PROVIDE): New token.
1152 * ldexp.h (node_type): Add etree_provide to node_class enum.
1153 (exp_provide): Declare.
1154 * ldexp.c (exp_fold_tree): Handle etree_provide.
1155 (exp_provide): New function.
1156 (exp_print_tree): Handle etree_provide.
1157 * ld.texinfo: Document PROVIDE.
1158
36c6e8c3
ILT
1159 * ldlang.c (lang_common): Pass desired alignment to
1160 lang_one_common as power of two.
1161 (lang_one_common): Get common symbol alignment from linker hash
1162 table entry. Treat desired alignment as a power of two.
1163
309c8153
ILT
1164 * ldlang.c (wild_section): Attach all section with the given name,
1165 not just the first one. If there is no name, attach all sections
1166 even if the SEC_IS_COMMON flag is set.
1167
a1ad915d
ILT
1168Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1169
1170 * ld.h (args_type): Add field rpath.
1171 * lexsup.c (S_ISDIR): Define if not already defined.
1172 (parse_args): Add support for -rpath. If -R is used to name a
1173 directory, treat it as -rpath for Solaris compatibility.
1174 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1175 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
1176 * ldmain.c (main): Initialize command_line.rpath to NULL.
1177 * ld.texinfo: Document -rpath option.
1178
cdf71377
KR
1179Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
1180
1181 * emulparams/pc532machaout.sh: New file. Pc532 mach script
1182 parameters.
1183
1184 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
1185
1186 * config/pc532mach.mt: New file. Pc532 mach target support.
1187
1188 * config/pc532mach.mh: New file. Pc532 mach host support.
1189
1190 * config/netbsd532.mt: New file. Netbsd 532 target support.
1191
1192 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
1193
1194 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
1195 dependency.
1196
db770dfa
ILT
1197Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1198
1199 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
1200 bfd_abs_section_ptr, not &bfd_abs_section.
1201
1202 * lexsup.c (parse_args): Changed "retain-symbols-file" from
1203 no_argument to required_argument. From djm.
1204
1205Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1206
1207 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
1208 sections to force a VMA of 0; needed for ELF backends which have
1209 not been converted to the new linker style.
1210
aee611f5
JL
1211Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
1212
1213 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
1214 it was for the HPUX dynamic loader's use and it creates problems
1215 with ELF GDB.
1216
1217Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
1218
1219 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
1220 * ldlang.h (lang_do_assignments): Put external decl here.
1221 * emultempl/hppaelf.em: Minor cleanups throughout file.
1222 (hppa_elf_create_output_section_statements): Rewrite.
1223 (hppaelf_finish): Rewrite.
1224
111b24d5
JMD
1225Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1226
03730624
JMD
1227 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
1228
111b24d5
JMD
1229 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
1230 accept plain -B.
1231 * ld.texinfo: -Bstatic is not ignored.
1232
1c883f34
SS
1233Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
1234
1235 * ldlex.l: Recognize \r the same as \n.
1236
1237Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1238
1239 Preliminary support for generating shared libraries, from Eric
1240 Youngdale <ericy@cais.cais.com>.
1241 * genscripts.sh: If the emulation parameter file sets
1242 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
1243 CREATE_SHLIB defined.
1244 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
1245 link_info.shared is set, use the .xs script file.
1246 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
1247 .interp section, and don't include TEXT_START_ADDR in the starting
1248 address of the first section.
1249 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
1250 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
1251
1f8b3b57
DM
1252Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
1253
1254 * configure.in: Change --with-targets to --enable-targets.
1255
3b7553e7
ILT
1256Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1257
cf4245af
ILT
1258 * lexsup.c (parse_args): Add support for new options -( -) with
1259 synonyms --start-group --end-group.
1260 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
1261 (lang_group_statement_type): Define new struct.
1262 (lang_statement_union_type): Add group_statement field.
1263 (lang_enter_group, lang_leave_group): Declare.
1264 * ldlang.c (lang_for_each_statement_worker): Handle
1265 lang_group_statement_enum.
1266 (map_input_to_output_sections, print_statement): Likewise.
1267 (lang_size_sections, lang_do_assignments): Likewise.
1268 (open_input_bfds): Completely rewrite. Now does its own looping,
1269 rather than using lang_for_each_statement. Handle groups.
1270 (lang_process): Update call to open_input_bfds.
1271 (print_group): New static function.
1272 (lang_enter_group, lang_leave_group): New static functions.
1273 * ldfile.c (ldfile_open_file): If the file has already been
1274 opened, just return rather than taking an assertion failure.
1275 * ldver.c (help): Mention new options.
1276 * ld.texinfo: Document new options.
1277
02b57980
ILT
1278 * ldlang.c (end_of_data_section_statement_list): Don't define.
1279 (lang_leave_output_section_statement): Don't set obsolete variable
1280 end_of_data_section_statement_list.
1281
62a4b36c
ILT
1282 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
1283 ALIGN.
1284
686739e2
ILT
1285 * ldlang.c (lang_size_sections): Adjust current region address
1286 even for sections with an explicit address. From
1287 ralphc@pyramid.com (Ralph Campbell).
1288
7d56d4f1
ILT
1289 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
1290 From jrs@world.std.com (Rick Sladkey).
1291
3b7553e7
ILT
1292 * scripttempl/mipsbsd.sc: Let sections align to their natural
1293 boundaries.
1294
1295Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1296
1297 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
1298 &bfd_abs_section.
1299 (lang_abs_symbol_at_beginning_of): Likewise.
1300 (lang_abs_symbol_at_end_of): Likewise.
1301 (lang_size_sections): Use bfd_is_abs_section to check for the
1302 absolute section. Don't try to set the VMA or output_offset or
1303 size of the absolute section.
1304 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
1305 undefined section.
1306
c4aa82c1
JL
1307Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
1308
1309 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
1310 when generating relocatable objects.
1311
08f20f66
ILT
1312Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
1313
1314 * emultempl/linux.em: New file providing support for linking
1315 against Linux shared libraries.
1316 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
1317 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
1318
952b6c2c
ILT
1319Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1320
64887de2
ILT
1321 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
1322 * ldmain.c (main): Initialize link_info.shared to false. Give
1323 error if link_info.relocateable and link_info.shared are both set.
1324
5d1ffb2f
ILT
1325 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
1326 it as naming an emulation to be added to EMULATION_OFILES.
1327 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
1328
bf82ab68
ILT
1329 * Makefile.in: Rebuilt dependencies.
1330 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
1331 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
1332 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
1333 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
1334 (ei386linux.c): Remove; now in Makefile.in.
1335 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
1336 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
1337 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
1338 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
1339 (eelf64_sparc.c): Remove; now in Makefile.in.
1340 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
1341 (eelf32_sparc.c): Remove; now in Makefile.in.
1342
641fe79b
ILT
1343 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
1344 no owner--it might be bfd_abs_section. From Eric Youngdale
1345 <ericy@cais.cais.com>.
1346
952b6c2c
ILT
1347 * scripttempl/aout.sc: Let sections align to their natural
1348 boundaries.
1349
c96386c4
ILT
1350Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1351
33b90e52
ILT
1352 * ldemul.h (ldemul_open_dynamic_archive): Declare.
1353 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
1354 * ldemul.c: Include ldexp.h and ldlang.h.
1355 (ldemul_open_dynamic_archive): New function.
1356 * ldfile.h (ldfile_open_file_search): Declare.
1357 * ldfile.c: Include ldemul.h.
1358 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
1359 argument, not bfd *. Change all callers.
1360 (ldfile_open_file_search): Rename from open_a. Return boolean
1361 argument, not bfd *. Clean up. Change all callers.
1362 (ldfile_open_file): If doing a dynamic link, call
1363 ldemul_open_dynamic_archive rather than assuming the extension of
1364 a dynamic object is ".so".
1365 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1366 New function.
1367 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
1368 field.
1369 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
1370
cbbf9608
ILT
1371 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
1372 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
42792411 1373 Accept -static as a synonym for -non_shared.
cbbf9608 1374
7fb9ca5f
ILT
1375 Let the user change the dynamic linker used by ELF code.
1376 * ld.h (args_type): Add new field interpreter.
1377 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
1378 handle it.
1379 * ldmain.c (main): Initialize command_line.interpreter to NULL.
1380 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
1381 the ELF backend to return the .interp section. If
1382 command_line.interpreter is not NULL, set the contents of .interp
1383 to it.
1384 * ld.texinfo: Mention -dynamic-linker.
1385
1386 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
1387 generic.em.
1388
bec7a138
ILT
1389 * lexsup.c (parse_args): Sort out the option macros and change the
1390 definitions to make it easier to add a new option.
1391
66da6c84
ILT
1392 * scripttempl/aout.sc: Define __etext and __edata to go along with
1393 _etext and _edata.
1394
c96386c4 1395 * ld.h (ld_config_type): Add new field traditional_format.
605da7e2 1396 * lexsup.c (parse_args): Add traditional-format to longopts, and
c96386c4
ILT
1397 handle it.
1398 * ldmain.c (main): Initialize config.traditional_format to false.
1399 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
1400 flags of output_bfd according to config.traditional_format.
605da7e2 1401 * ldver.c (help): Mention -traditional-format.
c96386c4
ILT
1402 * ld.texinfo: Document -traditional-format.
1403
7fe331f1
ILT
1404Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1405
1406 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
1407 they are encountered.
1408
39a00f7d
ILT
1409Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
1410
1411 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
1412 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
1413
eb7edfa1
ILT
1414Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1415
23677217
ILT
1416 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
1417 _FTEXT, _ETEXT and _FDATA. Dont define _END.
1418
e845d289
ILT
1419 * ldfile.c (open_a): If this is not an archive, try to open it in
1420 the current directory before searching for it.
1421
3e1fd33d
ILT
1422 * lexsup.c (parse_args): Treat -i as a synonym for -r.
1423
f24078fd
ILT
1424 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
1425 BLOCK works in a section address as documented.
1426
eb7edfa1
ILT
1427 * ldgram.y (YYDEBUG): Don't define.
1428
f8015b85
ILT
1429Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1430
1431 * emultempl/gld960.em: Pass false for new argument to
1432 ldfile_add_library_path.
1433 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
1434
1435 * emultempl/sunos.em: Only look for .so files if doing a dynamic
1436 link.
1437
9beeb5d9
ILT
1438Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
1439
1440 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
1441
64bb143c
BC
1442Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
1443
1444 * Makefile.in (check): Delete ld.new dependency so that a regression
1445 test doesn't trigger a rebuild of the linker.
1446
ef01a8a8
ILT
1447Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1448
1449 * ldlang.c (map_input_to_output_sections): For lang_address, call
1450 init_os if it hasn't already been called.
1451
ed601bea
ILT
1452Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1453
1454 Add support for SunOS shared libraries.
1455 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
1456 shared library support code.
1457 * emultempl/sunos.em: New file.
1458 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
f7e66391 1459 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
ed601bea 1460 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
f7e66391 1461 (esun3.c): Likewise.
ed601bea
ILT
1462
1463 * ldlang.c: Minor formatting cleanups.
1464 (lang_for_each_input_file): New function.
1465 * ldlang.h (lang_for_each_input_file): Declare.
1466
1467 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
1468 field.
1469 (search_head): Declare.
1470 (ldfile_add_library_path): Add new cmdline argument in prototype.
1471 * ldfile.c (search_head): Make non-static.
1472 (search_dirs_type): Move to ldfile.h.
1473 (ldfile_add_library_path): Accept cmdline argument, and save it.
1474 * lexsup.c (parse_args): Pass true for new cmdline argument of
1475 ldfile_add_library_path.
1476 (set_default_dirlist): Likewise.
1477 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
1478 argument of ldfile_add_library_path.
1479 * ldgram.y (ifile_p1): Likewise.
1480
210c52ac
ILT
1481Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1482
1483 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
1484 total_size, superfile and chain.
1485 * ldfile.c (open_a): Don't clear search_dirs_flag.
1486 (ldfile_open_file): Don't try to open superfile. Assert that file
1487 has not already been opened.
1488 * ldlang.c (new_afile): Don't initialize superfile.
1489 * ldmain.c (add_archive_element): Don't initialize subfiles or
1490 chain or superfile. Initialize search_dirs_flag to false.
1491
c06e55d9
KR
1492Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1493
1494 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
1495
1496 Changes from binutils-2.4 release:
1497
1498 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
1499 variables, use whitespace, so scripts don't break.
1500
1501 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
1502
1503 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
1504
1505 * cdtest-bar.cc: Renamed from cdtest-func.cc.
1506 * Makefile.in: Noted change.
1507
1508 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
1509 don't know where that's supposed to come from, or why it's
1510 necessary.
1511
1512 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
1513
1514 * configure.bat: update to latest makefile.in
1515 * emulpara/go32.sh: set to coff-go32 not aout
1516 * emultemp/generic.em: strength-reduce the structure of
1517 this shell script, since the only available shell for
1518 DOS can't handle complex syntax.
1519 * emultemp/stringify.sed: for "sed -f" instead of inline.
1520 * makefile.in: depend on stringify.sed as well as genscripts.sh
1521 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
1522 * genscripts.sh: empty variables aren't always considered "set",
1523 so set them to "y" instead.
1524
29371b1f
ILT
1525Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1526
60e8a534
ILT
1527 * ldlang.c (entry_symbol): Make static.
1528 (lang_add_entry): Add cmdline argument.
1529 * ldlang.h (lang_add_entry): Change prototype.
1530 * ldgram.y (statement_anywhere): Change lang_add_entry call.
1531 * lexsup.c (parse_args): Likewise.
29371b1f 1532
f49f58c6
ILT
1533Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1534
1535 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
1536 .reginfo an address.
1537 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
1538 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
1539 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
1540
2a9fa50c
ILT
1541Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1542
1543 Add support for ELF shared libraries.
1544 * ld.h (ld_config_type): Add field dynamic_link.
1545 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
1546 on attempts to use -r with -relax, -call_shared or -s.
1547 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
1548 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
1549 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
1550 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
1551 OPTION_NON_SHARED by setting dynamic_link field accordingly.
1552 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
1553 -r and -Ur.
1554 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
1555 opening a file with a .so extension first.
1556 * emultempl/elf32.em: New file.
1557 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
1558 (NONPAGED_TEXT_START_ADDR): Likewise.
1559 (TEMPLATE_NAME): Define as elf32.
1560 (DATA_PLT): Define.
1561 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
1562 * scripttempl/elf.sc: Add placement for new dynamic sections.
1563 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
1564 outside of any section. Don't use ALIGN(8); just let one section
1565 VMA follow another. Put .dynbss in .bss. Don't mention debugging
1566 sections; they'll be handled correctly anyhow.
1567 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
1568
188ce705
ILT
1569Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
1570
1571 * Makefile.in (install): Redirect output of ln to /dev/null.
1572
4bd5c39f
JL
1573Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
1574
1575 * emultempl/hppaelf.em: Change all references of
1576 .hppa_linker_stubs to .PARISC.stubs.
1577 * scripttempl/hppaelf.sc: Likewise.
1578
439a3604
ILT
1579Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1580
269773c1
ILT
1581 * ldlang.c (print_output_section_statement): Change ``no attached
1582 output section'' message slightly.
1583 (lang_do_assignments): Don't recurse down if there is no real
1584 section.
1585
439a3604
ILT
1586 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
1587 match corresponding change in emulation templates.
1588 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
1589 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
1590
82ebe9a2
KR
1591Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1592
1593 * ldver.c (ldversion): Updated version number.
1594
1595 * cdtest-foo.cc: Use explicit "#pragma implementation".
1596 * cdtest-bar.cc: Renamed from cdtest-func.cc.
1597 * Makefile.in: References to cdtest-func.o changed to
1598 cdtest-bar.o.
1599
f9d3d71a
ILT
1600Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1601
1602 Don't create unnecessary output sections.
1603 * ldlang.c (out_bfd_get_section_by_name): Remove.
1604 (wild_section): Call bfd_get_section_by_name rather than
1605 our_bfd_get_section_by_name. Don't call wild_doit if there is no
1606 section.
1607 (lang_create_output_section_statements): Remove.
1608 (map_input_to_output_sections): For several cases, call init_os if
1609 it has not already been called.
1610 (lang_size_sections): If output section was not created, skip it.
1611 (lang_process): Don't call lan_create_output_section_statements.
1612 (lang_place_orphans): Skip files with just_syms_flags set to true.
1613 * ld.texinfo: Document change.
1614
27f7237e
ILT
1615Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1616
1617 * ldlang.c (wild_doit): Don't bother initializing the vma and
1618 section size. Don't special case SEC_SHARED_LIBRARY.
1619 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
1620 specially.
1621
c1124600
ILT
1622Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
1623
1624 * config/go32.mh : New file for Xgo32X.
1625
f6671f28
ILT
1626Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1627
5acce559
ILT
1628 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
1629 before calling einfo, since we are reporting an fopen failure.
1630 From jrs@world.std.com (Rick Sladkey).
1631
f6671f28
ILT
1632 * configure.in: Use "e" rather than "em_" as prefix for
1633 emulations.
1634
6e1e82a0
KR
1635Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
1636
1637 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
1638 filename.
1639 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
1640 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
1641 Ditto.
1642 * Makefile.in: Changed all generated file names.
1643 (ldemul-list.h): Depend on Makefile, not config.status. Changed
1644 sed patterns to handle new filenames.
1645
1646 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
1647 * configure.in: Adjusted.
1648
1649Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1650
1651 * Makefile.in (install-info): Don't use "$<*", it doesn't always
1652 work. Instead, check build dir and $srcdir explicitly, and use
1653 `echo' to get all the filenames.
1654
1655 * configure.in (h8300h-*-hms): Changed ld_target name to
1656 cf-h8300h.
1657 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
1658 unique in 8.3.
1659
1660 * config/i960coff.mt: New file.
1661 * emulparams/gld960coff.sh: New file.
1662 * emultempl/gld960c.em: New file.
1663 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
1664 i960coff configuration.
1665 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
1666
1667 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
1668 code isn't included in FSF releases, and it can still be
1669 explicitly selected.
1670 (distclean): Remove site.bak and tmpdir.
1671 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
1672 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
1673
1674 Patches from Ralph Campbell:
1675 * config/mipsbsd.mh: New file.
1676 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
1677 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
1678 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
1679 instead of `aout'.
1680
1681 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
1682
269ec825
ILT
1683Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1684
6e1e82a0
KR
1685 * config/m68k.mt (EMUL): Set to m68kaout.
1686 * emulparams/m68kaout.sh: New file.
1687 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
1688 (em_m68kaout.c): New target.
1689
269ec825
ILT
1690 * ldlang.c (lang_size_sections): If dot moves because of an
1691 assignment, don't try to insert a pad into the absolute output
1692 section, just change the address of the default memory region
1693 instead.
1694
1695 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
1696 cdtest-ur.out, and cdtest-ur.tmp.
1697
e6d84626
ILT
1698Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1699
1700 * scripttempl/sa29200.sc: Align all sections to four byte
1701 boundaries.
1702
6c86b9ff
SC
1703Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
1704
1705 * Makefile.in, configure.in: Support for go32 coff.
1706 * config/i386-go32.mt: New file
1707 * emulparams/i386go32.sh: New file
1708 * scripttempl/i386go32.sc: New file
1709
028f8872
SS
1710Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
1711
1712 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
1713 Lynx-specific script templates.
1714 * configure.in (sparclite*-*-coff): Use coff-sparc.
1715 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
1716 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
1717 (ENTRY): Set to __main.
1718 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
1719 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
1720 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
1721
cde73501
ILT
1722Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1723
c435aba8
ILT
1724 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
1725 byte boundary, in case the global constructors do not take up an
1726 even 16 bytes.
1727
cde73501
ILT
1728 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
1729 exist, get crtbegin based on gcc -print-libgcc-file-name.
1730 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
1731
feaa9c4b
ILT
1732Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1733
1734 * ldlang.c (lang_size_sections): When no address is given for a
1735 section, align it according to its requirements.
1736
1e45c4c3
ILT
1737Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1738
1739 * Makefile.in (clean, distclean): Remove configdoc.texi.
1740
9ad75873
BC
1741Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
1742
1743 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
1744
9d87af56
ILT
1745Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1746
1747 * ldlang.c (lang_size_sections): When relaxing, adjust the
1748 position of a padding statement, and adjust dot accordingly.
1749
ea68d58d
BC
1750Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
1751
1752 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
1753
4f2ee958
ILT
1754Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1755
1756 * scripttempl/i386coff.sc: If relocating, don't put .init and
1757 .fini sections into .text; keep them separate.
1758 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
1759 exist, get crtbegin based on gcc -print-libgcc-file-name.
1760 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
1761
099c286e
BC
1762Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
1763
1764 * Makefile.in (check): Set TCL_LIBRARY for runtest.
1765
79f7de91
JL
1766Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1767
f39a73b1
JL
1768 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
1769 manufacturer.
1770
79f7de91
JL
1771 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
1772 if building a final executable.
1773
67d0e7ff
ILT
1774Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1775
1776 * ldmain.c (main): Check the return value of bfd_close.
1777
be9ffc1f
ILT
1778Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1779
1780 * scripttempl/alpha.sc: Clean up section alignment to ensure that
1781 sections never overlap when using -r.
1782
6c00b04f
ILT
1783Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1784
1785 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
1786 changes: get_symtab_upper_bound renamed and returns long,
1787 bfd_canonicalize_symtab returns long, check for error indications.
1788
f078dc7c
ILT
1789Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1790
1791 * ldlang.c (print_input_section): For section size, use
1792 _cooked_size if it is non-zero, size otherwise.
1793 (size_input_section): Likewise.
1794 (lang_do_assignments): Likewise (case lang_input_section_enum).
1795
193c5f93
ILT
1796Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1797
1798 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
1799 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
1800 (lang_add_input_file): Pass true to new_afile for add_to_list.
1801 (lookup_name): Remove force_load argument. Changed all callers.
1802 Pass false to new_afile for add_to_list. Split loading of symbols
1803 out into separate function.
1804 (load_symbols): New function split out of lookup_name. Don't load
1805 the symbols if they are already loaded.
1806 (open_input_bfds): For lang_input_statement_enum call load_symbols
1807 rather than lookup_name.
1808 (lang_process): Pass abs_output_section rather than NULL to
1809 lang_size_sections.
1810 (lang_startup): Set real field of first_file to true.
1811
a2670c2f
ILT
1812Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1813
193c5f93
ILT
1814 * ldlang.c (had_relax): Removed.
1815 (relax_again): New static variable.
1816 (lang_size_sections): Change call to bfd_relax_section to
1817 correspond to BFD changes. Set relax_again appropriately.
1818 (lang_process): Remove #if 0 code. When relaxing, keep calling
1819 lang_do_assignments and lang_size_sections until relax_again
1820 becomes false.
1821
a2670c2f
ILT
1822 * emultemp/gld960.em: Include libiberty.h
1823 (gld960_before_parse): Pass NULL as final argument to concat.
1824
f3bc3ac3
ILT
1825Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1826
f7a26f1b
ILT
1827 * scripttempl/aout.sc: Force _end and __end to be aligned to a
1828 four byte boundary.
1829
f3bc3ac3
ILT
1830 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
1831 building a bfd_data_link_order, rather than by setting the section
1832 contents immediately.
1833
4fdbafb2
ILT
1834Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1835
1836 Changes to make -Ur work again.
1837 * ldmain.c (add_to_set): Now takes reloc argument rather than
1838 bitsize. Check config.build_constructors here. If an new hash
1839 table entry is created, mark it as undefined.
1840 (constructor_callback): No longer takes bitsize argument. Pass
1841 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
1842 BFD backend supports it.
1843 (reloc_overflow): Handle a NULL abfd argument.
1844 (reloc_dangerous, unattached_reloc): Likewise.
1845 * ldctor.c: Include ldmain.h.
1846 (struct set_info): Change bitsize field to reloc.
1847 (ldctor_add_set_entry): Now takes reloc argument rather than
1848 bitsize. Don't bother to check config.build_constructors here.
1849 (ldctor_build_sets): Get the size from the reloc howto. If
1850 generating relocateable output, call lang_add_reloc rather than
1851 lang_add_data.
1852 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
1853 instead of bitsize.
1854 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
1855 (lang_reloc_statement_type): New structure.
1856 (lang_statement_union_type): Add reloc_statement field.
1857 (lang_add_reloc): Declare new function.
1858 * ldlang.c (lang_for_each_statement_worker): Handle
1859 lang_reloc_statement_enum.
1860 (map_input_to_output_sections, print_statement): Likewise.
1861 (lang_size_sections, lang_do_assignments): Likewise.
1862 (print_reloc_statement): New function.
1863 (lang_add_reloc): New function.
1864 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
1865
1866 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
1867 (cdtest-ur, cdtest-ur.out): New targets.
1868 (check-cdtest): Now also check that -Ur works correctly.
1869
1870 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
1871
1872Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1873
1874 * ldlang.c (lang_process): Move lang_common call before
1875 map_input_to_output_sections, to ensure that any alignment
1876 constraints set by common symbols are copied over to the output
1877 sections.
1878
1879Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1880
1881 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
1882 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
1883 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
1884 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
1885 needed for ELF.
1886
0071a731
DM
1887Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
1888
1889 * config/i386bsd.mh: New file.
1890
7f0638d5
ILT
1891Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1892
1893 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
1894 defined.
1895 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
1896 (DATA_START_SYMBOLS): Define _fdata.
1897
b897ed67
SS
1898Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
1899
1900 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
1901
2e39abdb
JL
1902Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1903
ff68559e
JL
1904 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
1905 works again. Attach some output symbols to the stub file bfd.
1906
2e39abdb
JL
1907 * emultempl/hppaelf.em: Include elf32-hppa.h.
1908 (file_chain): Add decl.
1909 (hppa_look_for_stubs_in_section): Delete decl.
1910 (hppaelf_finish): Reenable code. Do not pass symbols
1911 down to hppa_look_for_stubs_in_section.
1912
b495c314
ILT
1913Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
1914
1915 * ldmain.c (write_map): Don't define. Removed all references.
1916 Just use map_file or map_filename instead.
1917 (add_archive_element): Use minfo to write map information, not
1918 info_msg.
1919 (constructor_callback): Use fprintf to write map information, not
1920 info_msg.
1921 * ldmain.h (write_map): Don't declare.
1922 * ldgram.y (mri_script_command): Removed reference to write_map.
1923 * ldlang.c (lang_one_common): Likewise.
1924 * lexsup.c (parse_args): Likewise.
1925
4725fb48
ILT
1926Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
1927
bff600cf
ILT
1928 * scripttempl/elf.sc: Force all sections to be aligned.
1929
27baca71
ILT
1930 * ldgram.y (section): Reverse the order of memspec_opt and
1931 fill_opt to avoid an ambiguity when both are used.
1932 * ld.texinfo: Changed accordingly.
1933
6232b6c4
ILT
1934 * ldgram.y: Move include of ldlex.h back with other includes.
1935 * ldlex.h (input_type): Don't initialize enum constants to
1936 particular values.
1937 * ldlex.l: Use a switch to return the right token based on
1938 input_type, rather than knowing that input_type has a value based
1939 on a token type.
1940
4725fb48
ILT
1941 * ldgram.y (dirlist_ptr): Removed; not used.
1942 * lexsup.c: Include ldver.h.
1943 * Makefile.in: Rebuilt dependencies.
1944
fc1dfb71
ILT
1945Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
1946
1947 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
1948 (ldlang_add_file): call it here instead.
1949
ff33a8c1
DM
1950Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
1951
1952 * ldgram.y: Include ldlex.h after %token decls, for byacc.
1953
a62494c4
JL
1954Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1955
531a5bd1
JL
1956 * emultempl/hppaelf.em: First attempt to clean this file up.
1957 Add comments in several functions as to their purpose and
1958 how they function (or my current best guess). Clean up horrible
1959 spacing and indention that never should have been accepted in the
1960 first place. Add FIXMEs for issues which need to be resolved.
1961 Disable linker-stub generation until it gets fixed. This allows
1962 the linker to at least work on simple code for testing purposes.
1963
a62494c4
JL
1964 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
1965 it via hppaelf_finish). Prototype moved into ldlang.h.
1966 (lang_process): Move problematic extra call to lang_size_sections
1967 into the PA ELF specific code.
1968 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
1969 lang_size_sections moved here.
1970
c361ce46
ILT
1971Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
1972
1973 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
1974 * config/ppc-elf32.mt: New file.
1975 * emulparams/elf32ppc.sh: New file.
1976 * emultempl/ppc.em: New file.
1977 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
1978 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
1979 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
1980
d4e5e3c3
DM
1981Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
1982
d5b79a89
DM
1983 * lexsup.c (parse_args): Use symbolic numbers for long options.
1984 Fix misunderstanding in -Y and -call_shared et al.
1985
d4e5e3c3
DM
1986 Use getopt instead of lex and yacc to parse the command line.
1987
1988 * ld.texinfo (Options): Document changes to option syntax.
1989 * Makefile.in: Update dependencies.
1990 * ldver.c (help): Tweak dashes in usage message.
1991 * ldgram.y (%union): Remove unused members.
1992 Remove %tokens for command line options; add ones for input types.
1993 (command_line): Rules removed.
1994 (file): Instead of command line, recognize an
1995 input type indicator, then use the nonterminal for that type.
1996 (defsym_expr): New nonterminal from code formerly in command_line.
1997 * ldlex.h: Declare parser input type enum and variable.
1998 Don't declare parse_line.
1999 * ldlex.l: Remove unused variables. Make some used ones static
2000 and comment them.
2001 (COMMAND): Start state and its rules removed.
2002 At start of yylex, return input state token if at start of input.
2003 (lex_redirect): Don't need to set yyout.
2004 (ldlex_command): Function removed.
2005 * ldmain.c (main): Instead of calling parse_line, set up the
2006 redirections and call yyparse directly.
2007 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
2008 "command line".
2009 * lexsup.c: Remove #if 0'd code.
2010 (parse_line): Function removed.
2011 (parse_args): Rewrite to use getopt_long_only.
2012 (set_default_dirlist): New function from code formerly in
2013 ldgram.y:command_line.
2014 (set_section_start): New function.
2015 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
2016 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
2017 compiled-in link scripts in "{" and "}", as the grammar no longer
2018 wants them to be.
2019
2020Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
2021
2022 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
2023 require that it be in $(srcdir).
2024
6b8929a1
ILT
2025Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
2026
a733e1d7
ILT
2027 * ldlang.c (lang_size_sections): Only align section to alignment
2028 required by linker script, not to maximum alignment of input
2029 sections.
2030
6b8929a1
ILT
2031 * ldlang.h (largest_section): Don't declare.
2032 * ldlang.c (largest_section): Don't define.
2033 (size_input_section): Don't set largest_section; not used.
2034
ef76742f
ILT
2035Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
2036
2037 * ldlang.c (new_afile): Pass NULL as last argument to concat.
2038
42f62ead
ILT
2039Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2040
2041 * ldlang.c, ldmain.c: Include libiberty.h.
2042
2043 * ldmisc.h (concat): Don't declare.
2044 * ldmisc.c (concat): Don't define; just use the one in libiberty.
2045
2046 * ld.h (as_output_section_statement): Removed; not used.
2047
5bcb7f28
DM
2048Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2049
2050 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
2051 bfd_set_error and new error names.
2052
7ff6f2da
KR
2053Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2054
2055 * ldwrite.c (build_link_order): If the cooked size of the section
2056 has been set, use it, for determining link_order size.
2057 (ldwrite): In the error message displayed if bfd_final_link fails,
2058 indicate that it was in fact the final link step that failed.
2059
2060 * ldlang.c (lang_size_sections): Clear bfd_error before calling
2061 bfd_relax_section, in case it returns false but doesn't flag an
2062 error. If an error is returned, indicate which one it is in the
2063 error message.
2064
2065 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
2066 it'll get picked up from $(srcdir) if appropriate.
2067
2068Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
2069
2070 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
2071 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
2072
09aaf97a
DM
2073Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2074
2075 * ldlex.l (comment): Increment line number when newline is read.
2076
c4e48be3
ILT
2077Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2078
2079 * ldlang.c (lookup_name): Take new argument, force_load. If true,
2080 reload the file even if it is already loaded.
2081 (wild): Call lookup_name with force_load argument of 0.
2082 (open_input_bfds): Call lookup_name with force_load argument of 1.
2083 (print_symbol): Remove declaration of non-existent function.
2084 (print_one_symbol): Return true rather than falling off end.
2085
410945f1
ILT
2086Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2087
2088 * ldmain.c (main): Use %ld when printing long values.
2089
2090 * scripttempl/elf.sc: Move _edata after the .sdata section.
2091 Permit OTHER_BSS_SYMBOLS to be defined.
2092 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
2093
f7d4f6f6
JL
2094Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2095
2096 * Rename all "hppaosf" files to "hppaelf".
410945f1
ILT
2097 * Change all "osf" references to "elf" in hppaelf files.
2098 * Makefile.in: Likewise.
2099 * configure.in: Likewise.
f7d4f6f6 2100
f4972135
DM
2101Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2102
6f671266
DM
2103 * ldmain.c (main): Call xatexit, not atexit.
2104 Call xmalloc_set_program_name.
2105
f4972135
DM
2106 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
2107 bfd_errno.
2108
52a8ebfe
DM
2109Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2110
2111 * emultempl/lnk960.em (append), emultempl/hppaosf.em
2112 (hppaosf_finish): Call xmalloc, not ldmalloc.
2113 * ldmain.c (preserve_output): Function removed.
2114 (main): Do it here instead.
2115
9dd7d585
JL
2116Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2117
2118 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
2119 GNU C specific macros.
2120
2121 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
2122 call to LANG_FOR_EACH_INPUT_SECTION.
2123
0b2f8d2e
DM
2124Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2125
2126 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
2127 deleted; will use libiberty versions instead.
2128 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
2129 mri.c Makefile.in: Change callers.
2130
2131 * ldmisc.c (vfinfo): Remove cleanup code.
2132 * ldmain.c (remove_output): Put it here (new function).
2133 (preserve_output): New function.
2134 (main): Register remove_output and preserve_output with atexit.
2135 * ldmain.c ldgram.y: Call xexit instead of exit.
2136 * ldmisc.h: Declare xexit.
2137
9e0f78c8
SC
2138Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
2139
2140 * Makefile.in: Lots of new H8/500 memory models.
2141
836dcbcf
KR
2142Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2143
2144 * ldlex.l: Removed duplicate rules.
2145 (yywrap): Provide default definition, needed with some versions of
2146 flex.
2147
fb55f9b8
DM
2148Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2149
288897f4
DM
2150 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
2151 the archive filename too.
2152
fb55f9b8
DM
2153 * ldlex.l: Add rule to catch invalid input characters instead of
2154 printing them. Include "ldmain.h" for program_name decl.
2155 (lex_warn_invalid): New function.
2156 * Makefile.in: Add dependency.
2157
f3c6455f
KR
2158Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2159
2160 * Makefile.in (check): Don't bother running any tests of
2161 cross-linker until the test suite no longer assumes native mode.
2162
804c8601
SC
2163Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2164
2165 * ldlang.c (print_one_symbol, print_input_section): Print
2166 global symbols in symbol table again.
2167
7b40f2b1
DM
2168Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2169
2170 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
2171 exit successfully instead of complaining if no input files are
2172 given.
2173
8594f568
SS
2174Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
2175
74e6b793
SS
2176 * Makefile.in: Format variable definitions consistently.
2177 (LD_PROG): Remove unnecessary variables from link command,
2178 change variable LOADLIBES to EXTRALIBS.
2179
8594f568
SS
2180 * ldmain.c (main): Compute and display total execution time.
2181 * ld.texinfo (-stats): Document the option.
2182
755f42fe
ILT
2183Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2184
5dad4c97
ILT
2185 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
2186 arguments.
2187
de08b0b1
ILT
2188 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
2189 after opening BFD.
2190
755f42fe
ILT
2191 * ldlang.c (relaxing): Removed global variable.
2192 (lang_size_sections): If the canonical symbols have not already
2193 been read in, read them in before relaxing.
2194 * ldlang.h (relaxing): Removed declaration.
2195
5e6cd559
ILT
2196Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2197
2198 * ldlang.c (new_afile): Initialize loaded field to false.
2199 (lookup_name): If file was already loaded, don't call the
2200 add_symbols entry point again.
2201
8de26d62
DM
2202Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2203
2204 * ld.texinfo: Clarify what -T option does.
2205
a843c817
SC
2206Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2207
2208 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
2209 for a.out.
2210
901f3538
ILT
2211Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2212
8a432746
ILT
2213 * ldmain.c (add_archive_element): If trace_files or
2214 trace_file_tries, print file name.
2215 * ldlang.c (lookup_name): Likewise.
2216 (ldlang_add_file): Don't put files on input_bfds list in reverse
2217 order.
2218
901f3538
ILT
2219 * scripttempl/elf.sc: Correct typo.
2220
c344d884
DM
2221Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2222
2223 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
2224 their arguments optional, for compatibility with the old GNU ld.
2225
267a3ab3
ILT
2226Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2227
2228 * scripttempl/elf.c: Define __bss_start before the .sbss section.
2229
3107eb5b
ILT
2230Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2231
2f84ec0d
ILT
2232 * ldmain.c (add_to_set): Add bitsize argument.
2233 (constructor_callback): New function.
2234 (link_callbacks): Add constructor_callback.
2235 * ldctor.c (struct set_info): Add bitsize field.
2236 (ldctor_add_set_entry): Add bitsize argument.
2237 (ldctor_build_sets): Base the size of the elements of the set on
2238 the bitsize, rather than always using LONG.
2239 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
2240
2241 * ld.h (QUAD_SIZE): Define.
2242 * ldgram.y (QUAD): New token.
2243 (length): Handle it.
2244 * ldlex.l: Return QUAD.
2245 * lexsup.c (keywords): Add QUAD.
2246 * ldwrite.c (build_link_order): Handle QUAD.
2247 * ldlang.c (print_data_statement): Handle QUAD.
2248 (lang_size_sections): Likewise.
2249 (lang_do_assignments): Likewise.
2250 * ldexp.c (exp_print_token): Add QUAD to table.
2251 * ld.texinfo: Describe QUAD.
2252
3107eb5b
ILT
2253 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
2254 since the Alpha doesn't use them.
2255
080d8af0
DM
2256Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2257
2258 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
2259
2260Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
2261
2262 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
2263 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
2264
34f9bf4b
DM
2265Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2266
2267 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
23fdc6be 2268 needed for i386mach. (Should be a no-op on other systems.)
34f9bf4b
DM
2269
2270 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
2271 (PAGE_SIZE): Don't define; not used.
2272
1d166443
ILT
2273Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2274
2275 * ldgram.y (yyerror): Make argument const char *, and actually
2276 print it out rather than assuming it is a syntax error.
2277 * ldmisc.h: Change declaration of yyerror.
2278 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
2279
ae9c8007
DM
2280Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2281
2282 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
2283 exec header offset, since the exec header isn't loaded.
2284 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
2285
4a6afc88
ILT
2286Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2287
2288 A major rewrite to move the bulk of the linker into BFD so that
2289 more efficient backend code can be written for specific object
2290 files.
2291 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
2292 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
2293 * ldctor.c, ldctor.h: Complete rewrite.
2294 * ldwrite.c, ldwrite.h: Complete rewrite.
2295 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
2296 link_info.strip instead. Changed all uses.
2297 (discard_locals_type, discard_locals): Removed. Use
2298 link_info.discard instead. Changed all uses.
2299 (ld_config_type): Removed relocateable_output field; use
2300 link_info.relocateable instead; changed all uses. Added stats
2301 field.
2302 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
2303 set_loader_symbol): Removed.
2304 * ldexp.h (node_class): Added etree_rel.
2305 (etree_type): Added rel field.
2306 * ldexp.c (exp_print_token): Bracketed table initialization.
2307 (exp_relop): New function.
2308 (fold_name): Use linker hash table rather than ldsym functions.
2309 (exp_fold_tree): Likewise. Also, handle etree_rel case.
2310 (exp_print_tree): Handle etree_rel.
2311 * ldgram.y (strip_symbols, discard_locals): Removed.
2312 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
2313 (REL): New token. Does not appear in grammar, but needed for
2314 expression code.
2315 (file): Don't call lang_final; it's called by main anyhow.
2316 * ldlex.l: Accept -stats and -no-keep-memory options.
2317 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
2318 * ldlang.c: Consistently use fill_type for fill argument.
2319 (lang_init_script_file, script_file): Removed.
2320 (create_object_symbols): Removed. Use
2321 link_info.create_object_symbols_section instead. Changed all
2322 uses.
2323 (lang_add_keepsyms_file): Removed.
2324 (lookup_name): Call bfd_link_add_symbols instead of
2325 ldmain_open_file_read_symbol.
2326 (wild): Don't iterate over script_file.
2327 (open_output): Create link hash table.
2328 (lang_place_undefineds): Rewrote.
2329 (lang_size_sections): Handle relaxing (doesn't work yet).
2330 (lang_relocate_globals): Removed.
2331 (lang_finish): Use link hash table rather than ldsym functions.
2332 (lang_common): Rewrote.
2333 (lang_one_common): New function.
2334 (ldlang_add_file): Add file to link_info.input_bfds list. Set
2335 usrdata.
2336 (create_symbol): Removed.
2337 (lang_process): Don't call lang_init_script_file. Call
2338 ldctor_build_sets rather than find_constructors. Don't call
2339 lang_relocate_globals.
2340 (lang_abs_symbol_at_beginning_of): Rewrote.
2341 (lang_abs_symbol_at_end_of): Rewrote.
2342 * ldmain.c (had_y): Removed.
2343 (lprefix, lprefix_len): Removed; use link_info fields instead.
2344 Changed all uses.
2345 (multiple_def_count, commons_pending, undefined_global_sym_count,
2346 total_symbols_seen, total_files_seen): Removed.
2347 (link_callbacks, link_info): New variables.
2348 (main): Initialize link_info. Don't call init_bfd_error_vector or
2349 ldsym_init. Don't set now unused variables. Handle -stats.
2350 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
2351 (add_ysym): Rewrote.
2352 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
2353 search_library, gnu960_check_format, decode_library_subfile,
2354 linear_library, symdef_library, clear_syms, subfile_wanted_p):
2355 Removed.
2356 (add_keepsyms_file, add_archive_element, multiple_definition,
2357 multiple_common, add_to_set, warning_callback, undefined_symbol,
2358 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
2359 New functions.
2360 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
2361 require symbols for %C; look them up instead.
2362 * emultempl/hppaosf.em: Pass link_info to
2363 hppa_look_for_stubs_in_section.
2364 * Makefile.in: Rebuilt dependencies.
2365 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
2366 relax.c.
2367 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
2368 relax.h.
2369 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
2370 ldlang.h and ldctor.h.
2371
2372 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
2373 declarations of free and malloc from flex output. Change malloc
2374 to ldmalloc in flex output.
2375
2376Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2377
2378 * ldmain.c (lprefix): Change default from a char to a string
2379 with only one character.
2380 (lprefix_len): Set default to one.
2381
2382 * ldmain.h (lprefix_len): Declare.
2383
2384 * ldsym.c (write_file_locals): Use strncmp rather than a character
2385 comparison for lprefix.
2386
2387 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
2388 correctly.
2389
2390 * emultmpl/hppaosf.em: Include ldexp.h.
2391 (before_parse): Set lprefix and lprefix_len correctly.
2392
498fbd3c
ILT
2393Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2394
553b0021
ILT
2395 * ldlex.h: Don't declare yywrap if it is a macro.
2396 * ldlex.l: Include sysdep.h.
498fbd3c
ILT
2397 * ldlang.c (lang_for_each_statement_worker,
2398 lang_for_each_statement): Forgot to use PARAMS.
2399
1400cdc5
ILT
2400Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2401
2402 * Makefile.in: Added .PHONY targets where appropriate. Added some
2403 comments. Also:
2404 (gcclibdir, version): Removed unused variables.
2405 (DEP): New variable, set to mkdep.
2406 (ALL_CFLAGS): New variable. Used in .c.o target.
2407 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
2408 variables.
2409 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
2410 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
2411 mostly obsolete variables. Adjusted remaining uses.
2412 (DEF_EMUL): Removed variable.
2413 (ldmain.o): Handle undefined EMUL error correctly.
2414 (ldemul-list.h): Depend on config.status rather than Makefile.
2415 Create via temporary file.
2416 (ver960.c, roll, make): Removed obsolete targets.
2417 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
2418 dependencies.
2419 * dep-in.sed: New file, used when rebuilding dependencies.
2420
2c6635a4
ILT
2421Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
2422
fcf276c4
ILT
2423 Made many changes to eliminate gcc warnings. Made various
2424 cosmetic changes, declared various things in header files, removed
2425 various extern declarations from .c files. No substantive
2426 changes.
2427
2c6635a4
ILT
2428 * ldlang.c (lang_process): Ifdef out final call to
2429 lang_size_sections again (reverting change of Nove 2), since it
2430 breaks the Sun4 linker.
2431
2432Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2433
2434 * configure.in (alpha-*-netware*): New target; use alpha.
2435
d05ac46b
KR
2436Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
2437
2438 * configure.in: Group targets by CPU. Merge some m68k target
2439 entries with different CPU specs that use the same ld_target
2440 values.
2441
2442 * configure.in: Add sparc*-*-coff.
2443 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
2444 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
2445 (em_coff_sparc.c): Add dependencies and build rules.
2446
2447 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
2448
f651733a
ILT
2449Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2450
8e964b07
ILT
2451 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
2452 New tokens.
f651733a 2453 (command_line_option): Accept and ignore them (for now).
8e964b07
ILT
2454 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
2455 where n is a number.
f651733a
ILT
2456
2457Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2458
2459 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
2460 not in bfd_com_section, create the section in the BFD so that it
2461 can be placed in the right output section.
2462
2332114c
ILT
2463Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2464
2465 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
2466 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
2467 (OTHER_READONLY_SECTIONS): Define for .reginfo.
2468 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
2469 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
2470 Move OTHER_READONLY_SECTIONS after all the other readonly
2471 sections. Don't use DATA_ADDR twice.
2472
2473 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
2474 p is in a common section, make sure the BFD has a section of that
2475 name.
2476
2477 * ldlang.c (lang_common): Add newline to error message.
2478
2479Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
2480
2481 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
2482 Lynx-specific script instead of m68kcoff.
2483 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
2484 (ENTRY): Define as __main.
2485 (TEXT_START_ADDR): Define as 0.
2486 (PAGE_SIZE): Define as 0x1000.
2487 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
2488 * scripttempl/m68klynx.sc: New file.
2489
2490Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2491
2492 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
2493 arguments rather than treating them as emulation names.
2494
b11b3ace
DHW
2495Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
2496
2497 * configure.in: Support x86 unixware and netware plus generic netware.
2498
2ccb88c0
DM
2499Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2500
2501 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
2502 Correct values (?).
2503
3c1af24d
KR
2504Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
2505
2506 * Makefile.in (distclean): Don't delete dvi or info files.
4ecfad79 2507 (ld.info): Update dependency list.
2ccb88c0 2508 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
3c1af24d 2509
3c292c5a
DM
2510Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2511
2512 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
2513 Set output_filename instead of creating a new node.
2514 (open_output): Don't set output_filename.
2515 (lang_final): Create the new node here.
2516 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
2517
97fbbaca
JL
2518Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2519
f1f6b5e9
JL
2520 From Pete Hoogenboom (hoogen@cs.utah.edu):
2521
2522 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
2523 edata, _edata, end): Add definitions of these symbols.
2524 (__end): Remove definition of this symbol.
2525 (__data_start): Move definition of this symbol.
2526
5f62613e
JL
2527 * emultempl/hppaosf.em: Various fixes and support for linker stub
2528 generation.
2529 (hppaosf_finish, hppaosf_search_for_padding_statements,
2530 hppaosf_create_output_section_statements): New functions in
2531 support of linker stub generation.
2532 (ld_hppaosf_emulation): Redefine to include new
2533 emulation-specific routines.
2534
97fbbaca
JL
2535 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
2536 Pass abs_output_section rather than NULL to avoid invalidating
2537 absolute symbols.
2538
2539Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2540
2541 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
2542 (em_i386mach.c): New rule.
2543 * configure.in (i[34]86-*-mach*): New case.
2544 * config/i386-mach.mt: New file.
2545 * emulparams/i386mach.sh: New file.
2546
c3b34cfd
ILT
2547Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2548
2549 * ld.h (flag_is_*): Removed macros.
2550 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
2551 Consistently check the BFD symbol flags directly, rather than
2552 using file_is_* macros.
2553
7b95fe96
SS
2554Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
2555
2556 * configure.in (sparc*-*-lynxos*): New target.
2557 * Makefile.in: Add rule for em_sparclynx.c.
2558 (ALL_EMULATIONS): Add Lynx emulations.
2559 * config/sparc-lynx.mt: New file.
2560 * emulparams/sparclynx.sh: New file.
2561 * scripttempl/sparccoff.sc: New file.
2562
d17eb3db
ILT
2563Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2564
2565 * Makefile.in: Add dependency for $(EMULATION_OFILES).
2566
db4b5ad0
ILT
2567Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2568
2569 * relax.c (write_relax): Check return value of bfd_seclet_link.
2570
2fe6619e
KR
2571Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
2572
2573 * ldlang.c (delete_output_file_on_failure): New variable.
2574 (open_output): Set it after bfd open succeeds.
2575 * ldmisc.c (vfinfo): Test it.
2576
2577 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
2578
2579 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
2580 symbols.
2581
2582 * ldemul.c: Support was added to allow emulation-specific
2583 processing to occur. This support was added primarily for linker
2584 stub generation in the elf32-hppa gld.
2585 (ldemul_finish, ldemul_create_output_section_statements): New
2586 functions.
2587 * ldemul.h: Support was added to allow emulation-specific
2588 processing to occur. (As described above.) Added finish and
2589 create_output_section_statements fields to
2590 ld_emulation_xfer_struct structure.
2591 * ldlang.c: Add calls to emulation-specific routines.
2592 (lang_process): Add call to
2593 ldemul_create_output_section_statements function.
2594 (lang_process): Add call to a emulation-specific routine (and
2595 some processing after the call).
2596
2597Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2598
2599 * configure.in: mips*- instead of mips-, mips*el changes
2600
1c4b3cda
ILT
2601Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2602
2603 * configure.in (alpha-*-osf*): New target; use alpha.mt.
2604 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
2605 (em_alpha.c): New target; use alpha.sh and alpha.sc.
2606 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
2607 * config/alpha.mt: New file.
2608 * emulparams/alpha.sh: New file.
2609 * scripttempl/alpha.sc: New file.
2610
2611Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
2612
2613 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
2614 types of different sizes (eg: 64 and 32 bits), so coerce.
2615 * ld.h (ALIGN_N): Add warning about usage.
2616
98b5caad
ILT
2617Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2618
2619 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
2620 which we already have a definition, rather than checking in
2621 several different places whether the symbol is weak.
2622
a71da760
ILT
2623Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2624
2625 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
2626 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
2627 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
2628 expanded within them.
2629 * config/mipsb-elf32.mt: New file.
2630 * emulparams/elf32mipb.sh: New file.
2631 * Makefile.in (em_elf32mipb.c): New target.
2632
a4aeaacf
RS
2633Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
2634
a4aeaacf
RS
2635 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
2636 lang_input_file_is_search_file_enum so objects brought in using
2637 INPUT() do a path lookup.
2638
2639Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
2640
2641 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
2642 instead of {i386,m68k}-coff.
2643 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
2644 * config/i386-lynx.mt: New file.
2645 * config/m68k-lynx.mt: New file.
2646 * emulparams/i386lynx.sh: New file.
2647 * emulparams/m68klynx.sh: New file.
2648
2649 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
2650 but defaulting to _start.
2651
2652 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
2653 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
2654 LynxOS libc.
2655
2656Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
2657
2658 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
2659 HOSTING_LIBS for testing.
2660
9a467cb2
ILT
2661Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2662
2663 Finish up support for i386-sysv4 (without shared libraries):
2664 * ld.h (flag_is_weak): Define.
2665 * ldlang.c (print_symbol): Mention whether symbol is weak.
2666 (print_input_section): Print weak symbols as globals.
2667 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
2668 (enter_global_ref): Do not warn if a weak symbol redefines a
2669 global symbol. Do not let a weak symbol redefine a common symbol.
2670 (enter_file_symbols): Treat weak symbols as global symbols.
2671 (subfile_wanted_p): Do not pull in an object file from a archive
2672 just to resolve an undefined weak symbol.
2673 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
2674 error; the error might be that malloc has run out of space.
2675 * ldsym.c (write_file_locals): Treat weak symbols as global.
2676 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
2677 use i386-elf.
2678 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
2679 * config/i386-elf.mt: New file; set EMUL to elf_i386.
2680 * emulparams/elf_i386.sh: New file.
2681 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
2682 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
2683 (ALL_EMULATIONS): Add em_elf_i386.o.
2684 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
2685 (em_elf_i386.c): New target, like other em_*.c targets.
2686 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
2687 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
2688 nonempty, and configured for native, add it to LIB_PATH.
2689
4f6d6db9
SS
2690Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
2691
2692 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
2693 Added statements to pass stab and stabstr sections through and
2694 mark them as NOLOAD, which makes GDB happier.
2695
2696Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
2697
2698 * configure.in: Accept m68k-lynx-lynxos config.
2699
2700 * Makefile.in: Use $(SHELL) to run genscripts.sh.
2701
1bff7c38
DE
2702Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
2703
4f6d6db9
SS
2704 * config/coff-h8300.mt: Add EMUL=h8300h.
2705
1bff7c38
DE
2706 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
2707
8a6665ae
JW
2708Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
2709
2710 * Makefile.in: Changed CXX back to g++.
2711
3a9149a7
JW
2712Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
2713
2714 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
2715
cbb5c2d1
DM
2716Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2717
2718 * Makefile.in (TAGS): Use shell wildcards.
2719
959eba20
JO
2720Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
2721
2722 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
2723
a0a55af6 2724Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
c1074477 2725
a0a55af6
RP
2726 * ld.texinfo: re-enable included config file; conditionalize doc
2727 for -oformat to interact properly with SingleFormat doc config
2728 var; rename @up/@down to @raisesections/@lowersections.
c1074477
DE
2729
2730Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2731
2732 * configure.in: recognize m88110.
2733
4346166b
KR
2734Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2735
2736 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
2737 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
2738 ELF emulation is "elf32-hppa" not "elf-big".
2739 (hppaosf_before_parse): Remove unneeded processing of environment
2740 variables.
2741 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
2742 .text segment of output file.
2743 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
2744
b98bd3db
RP
2745Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2746
95a2b9d2
RP
2747 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
2748 longer in bfd.h.
2749
2750 * ldlang.c, ld.h: updated copyright.
b98bd3db 2751
ddddcdf0
ILT
2752Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2753
2754 * ldlang.c (open_output, lang_check): Check return value of
2755 bfd_set_arch_mach.
2756
ea1c0ad2
SC
2757Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
2758
2759 * scripttempl/h8500.sc: Start all sections in a different segment.
2760 * scripttempl/z8ksim.sc: Handle constructors
2761
ea1c0ad2
SC
2762Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
2763
2764 * Makefile.in: revert earlier changes back to execute runtest
2765 with make check. cdtest and bootstrap now function as they
2766 did within the Makefile.
2767
2768Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2769
2770 * Makefile.in: Update dependencies.
2771
2772 * configure.in: Set EMULATION_OFILES in Makefile based on
2773 --with-targets option.
2774
d301e438
JW
2775Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
2776
2777 * Makefile.in: check targets reimplemented to old way.
2778
75fe5471
ILT
2779Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
2780
d62026ad
ILT
2781 * config/i386v.mh, config/irix4.mh: Use gcc
2782 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
75fe5471
ILT
2783 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
2784 bfd/configure.host change.
2785
2786Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2787
2788 * scripttempl/elf.sc: Handle .line and .debug* sections.
2789
2790 * ldlex.l: Use bfd_scan_vma, not strtoul.
2791
31f55aa5
DM
2792Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2793
2794 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
2795 Remove inital caps in some error messages, change "can't" to
2796 "cannot", add missing colons.
2797 * ldmisc.c (vfinfo): Print "%%" as a single %.
2798 For '%' followed by unrecognized character, print them both
2799 verbatim instead of expecting a char * arg.
2800 For '%C', don't put the function name in parens.
2801
2802 * ldexp.c (invalid): Pass "%%", not "% ".
2803
33536304
ILT
2804Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2805
2806 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
2807 (BSS_VAR): Removed; now always define _fbss.
2808 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
2809 Removed.
2810
2811Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2812
2813 * configure.in: z8k-coff is the same as z8k-sim
2814
7c6a9e79
JW
2815Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
2816
2817 * testsuite/lib/ld.exp: new file
2818 * testsuite/config/unix-ld.exp: new file
2819 * testsuite/ld.bootstrap/bootstrap.exp: new file
2820 * Makefile.in: add dejagnu support for make check
2821
8bf66be8
DM
2822Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2823
2824 * ldlex.l (comment): Add missing newline in message.
2825 * ldindr.c (add_indirect): Ditto.
2826 * ldexp.c (exp_fold_tree): Ditto.
2827
2a28d8b0
DM
2828Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2829
2830 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
2831 into externs.
2832
2833 * ldmisc.c (multiple_warn): New function.
2834 * ldmisc.h: Declare it.
2835 * ldmain.c (enter_global_ref): Call it.
2836 * ld.h (ld_config_type): Add warn_common.
2837 * ldlex.l, ldgram.y: Set it with -warn-common option.
2838 * ldver.c (help): Document it.
2839
94f9d427
KR
2840Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2841
2842 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
2843 target-specific sections, and for changing data section vma.
2844
6b93d764
KR
2845Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
2846
2847 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
2848 terminals, for Solaris.
2849 (dirlist_ptr): New static variable.
2850 (command_line_option): Accept new options.
2851
2852 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
2853 "-YP,...".
2854
2855 * config/sun4sol2.mt: Pass emulation name without ".sh".
2856
94f9d427
KR
2857 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
2858 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
2859
6b93d764
KR
2860Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2861
2862 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
2863 .dtors, .data1, .rodata1 sections, instead of combining them into
2864 other sections. For `-r', set all section start addresses to
2865 zero.
2866
2867 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
2868 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
2869 (MAXPAGESIZE): Renamed from PAGE_SIZE.
2870
a6152e39
DM
2871Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2872
d59e5a47
DM
2873 * genscripts.sh: If this is the default emulation, set
2874 COMPILE_IN.
2875 * emultempl/*.em: Use it to determine whether to compile in the
2876 scripts.
2877
a6152e39
DM
2878 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
2879 genscripts.sh. Pass the current emulation name without ".sh" on
2880 the end.
2881 * genscripts.sh: Take an default emulation arg.
d59e5a47 2882 Use the current emulation name as EMULATION_NAME.
a6152e39
DM
2883 Make default lib path for cross-compiling ':', not null.
2884 * emulparams/*.sh: Don't set EMULATION_NAME.
2885 * ldemul.c (ldemul_get_script): Take isfile arg.
2886 Pass it to emulation's get_script function.
2887 * ldemul.h: Adjust get_script prototypes.
2888 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
2889 No longer static.
2890 * ldfile.h: Declare it.
2891 * ldgram.y: Accept a script on the command line again,
2892 for parsing compiled-in scripts.
2893 * ldmain.c (main): If ld script is a file, parse it as a -T
2894 option, otherwise parse it directly.
2895 * emultempl/*.em (*get_script): Return the scripts themselves if
2896 this is the default emulation; otherwise return their file names.
18d9a9c5 2897 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
a6152e39
DM
2898 generic.em.
2899 * emulparams/m88kbcs.sh: Use it.
2900
18d9a9c5 2901 * ld.h (ld_config_type::unix_relocate): Remove unused element.
a6152e39 2902
0750b974
KR
2903Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2904
2905 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
2906 there's no change log entry yet, tsk tsk) from the list of
2907 emulations compiled in until Mark gets around to checking in
2908 emulparams/i386linux.sh.
820c446c
KR
2909 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
2910 changed, this file gets updated.
0750b974 2911
fe619ced
ILT
2912Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
2913
2914 * ldgram.y (OPTION_Lfile): New token.
2915 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
2916 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
2917
dd8ca662
DE
2918Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
2919
2920 * configure.in: h8/300h support needs own .mt file.
2921 config/coff-h8300h.mt: New file.
2922
922018a1
DM
2923Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2924
2925 * ldmain.c: Don't include sys/stat.h; it already got included
2926 somewhere along the way.
2927
4ab3a31f
DE
2928Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
2929
2930 * Makefile.in: Add h8300h support.
dd8ca662
DE
2931 emulparams/h8300h.sh: New file.
2932 scripttempl/h8300h.sc: New file.
4ab3a31f 2933
bbd2521f
DM
2934Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2935
2936 * ldfile.c (ldfile_open_file): In error message, use the name the
2937 user gave (e.g., "-lc"), rather than the base file name.
2938
2939 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
2940
2941 * ldmain.[ch]: Remove initial Q_ from function names.
2942 * ldexp.c, ldindr.c, ldlang.c: Change callers.
2943
2944 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
2945
2946 * ldlang.c (lang_process): Move loading of default script from
2947 here to main. Add a "/" to start of script name to prevent
2948 finding it in "." first.
2949
2950 * ldmain.c (set_scripts_dir): Don't look in "." first.
2951
2952 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
2953 option_longmap.
2954
9edc5b2e
ILT
2955Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
2956
2957 * Makefile.in (em_m88kbcs.c): Correct dependency.
b0955bc9
ILT
2958 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
2959 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
2960 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
9edc5b2e 2961
cffdcde9
DM
2962Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2963
2964 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
2965 main.c (main): Print the errno string in the error message.
2966
ac2c0ee7
DE
2967Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
2968
2969 * configure.in: Accept h8300h for target cpu.
2970
2971 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
2972 present (demangle is smart enough to know whether to do it or not).
2973
d723cd17
DM
2974Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2975
f4208462
DM
2976 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
2977 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
2978
d723cd17
DM
2979 * ldlang.c (lang_process): Use sizeof instead of magic constant.
2980
2981 * ldmain.c (get_emulation, check_for_scripts_dir,
2982 set_scripts_dir): New functions.
2983 (main): Call them.
2984
e7affb09
KR
2985Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
2986
2987 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
2988 Create symbol "end" instead of "__end". Comment out some parts
2989 that may not be needed (yet) for elf.
2990
2991 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
2992
3cb61417
KR
2993Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2994
2995 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
2996
2997 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
2998 when no prototype is being supplied.
2999 (ldmalloc, ldrealloc): Size argument is now size_t.
3000
3001 * ldmisc.c (finfo): New function, accepts FILE* argument.
3002 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
3003 without leading zeros.
3004 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
3005 bfd_vma value, instead of fprintf(%x) which won't hold a long long
3006 value.
3007 (concat, buystring): String lengths are size_t.
3008 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
3009
3010 * ldlang.c (new_statement): Size argument is now size_t. Added
3011 forward declaration with prototype.
3012
de87cdb4
DM
3013Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3014
3015 * ldgram.y (OPTION_v): Don't turn on verbose output.
3016
49bfda2c
KR
3017Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3018
3cb61417
KR
3019 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
3020 bfd.h instead.
49bfda2c 3021
e357065c
ILT
3022Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
3023
3024 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
3025 collect2 doesn't look for gld any more anyhow.
3026
55636aa7
ILT
3027Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
3028
3029 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
3030 now have a non NULL srefs_chain.
3031
3032 * config/hp300hpux.mt: Use emulation hp3hpux rather than
3033 hp300hpux, since the latter does not exist.
3034
ff76a7db
DM
3035Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3036
3037 * genscripts.sh: Put the scripts in the ldscripts directory, not
3038 emulations.
3039 * configure.in (ldscripts): Make, instead of emulations.
3040 * Makefile.in (scriptdir): Take off the "ld" part.
3041 (install, clean, distclean): Use ldscripts, not emulations.
a04f1d00 3042 In tests, don't pass -Lemulations.
ff76a7db
DM
3043 Don't pass tooldir/lib to genscripts.sh.
3044 * genscripts.sh: Don't take tooldir/lib arg.
3045 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
3046 default script file.
3047
7434d4e5
DE
3048Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
3049
3050 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
3051
3052Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
3053
3054 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
3055
559d7baf
RP
3056Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
3057
1e787898
RP
3058 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
3059 run in parallel without colliding on yacc's static file names.
3060 Without the stub rule, make will try to start two yacc's
3061 concurrently which fails because of yacc's static file names.
559d7baf
RP
3062
3063Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
3064
3065 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
3066 symbols.
3067
59fb874e
DM
3068Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3069
559d7baf
RP
3070 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
3071 different from libdir.
3072
59fb874e
DM
3073 * Makefile.in (scriptdir): Base on tooldir, not datadir.
3074
bf065bfd
DM
3075Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3076
3077 * ldver.c (help): New function.
3078 * ldver.h: Declare it.
3079 * ldlex.l, ldgram.y: Recognize new options --help and --version.
3080
304b747a
KR
3081Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
3082
3083 * Makefile.in (INCLUDES): Don't need ../include any more.
3084
2b63dbfe
DM
3085Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3086
bf065bfd
DM
3087 * ldlex.l, ldgram.y: Support new -oformat option.
3088 Remove attempt at supporting script fragments on the command line.
3089 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
3090 * mri.c (mri_format), ldgram.y: Change callers.
3091 * ldlang.h: Change prototype.
2b63dbfe 3092
e9b991c6
DZ
3093Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
3094
3095 * Makefile.in: canonicalize install.sh; for use within
3096 this directory (and subdirs)
3097
565c93e9
DM
3098Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3099
2de8edce
DM
3100 * ldgram.y: Tweak grammar to make reporting of invalid options work.
3101
565c93e9
DM
3102 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
3103 and .cc.o rule.
3104
8ddef552
DM
3105Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3106
3107 * ldfile.c (ldfile_open_command): Don't try .ld extension.
3108 It wasn't documented (or likely used) and wastes time.
3109 (try_open): If EXTEN is empty, don't try it.
3110
3111 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
3112 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
3113 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
3114 with normal function declarations.
3115
3116 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
3117 Move *.sc-sh to scripttempl/*.sc.
3118 * {emultempl,emulparams,scripttempl}/README: New files.
3119 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
3120 removed, replaced with generic.em.
3121 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
3122 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
3123
3124 * *.em (*_get_script): Return script name instead of script contents.
3125 * ldlang.c (lang_process): Change caller.
3126
3127 * ldlex.l, ldgram.y: Recognize -m option.
3128 Check for input files after *all* options in grammar.
3129 * ldmain.c (main): Check for -m options. Add default directory
3130 for -m.
3131
3132 * mkscript.c: File removed.
3133 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
3134 to add to the default LIB_PATH.
3135 Look for input files in the new subdirectories.
3136 Create the scripts in emulations subdirectory and don't filter
3137 them through mkscript.
3138 * configure.in: Make the emulations subdirectory.
3139
3140 * Makefile.in: Account for all of the above changes.
3141 Remove unused .SUFFIXES. Get libgcc.a path with gcc
3142 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
3143 Put CFLAGS last in the compilation rules.
3144 Add -I../bfd to INCLUDES so sysdep.h is found.
3145
2a963f1a
KR
3146Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3147
3148 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
3149
3150 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
3151 dependent on RELOCATING, not RELOCATION.
3152 * hp3hpux.sh (SHLIB_PATH): Define it.
3153
8ddef552
DM
3154Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3155
3156 * ldfile.c (try_open): If opening without the extension fails,
3157 try with the extension even if -v or -V was given.
3158 had_script is imported (from ldgram.y), not exported.
3159
c97b9003
DZ
3160Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
3161
3162 * Makefile.in: remove parentdir support, use INSTALL_XFORM
3163
3164Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
3165
3166 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
3167 * ldgram.y (statement_list_opt): New nonterminal, either empty or
3168 statement_list.
3169 (section): Use statement_list_opt, not statement_list.
3170 * m68kcoff.sc-sh: Gather constructors and destructors and define
3171 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
3172 * sa29200.sc-sh: Gather constructors and destructors and define
3173 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
3174
7f2649bb
PB
3175Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
3176
3177 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
3178 * configure.in: No longer need to configure to get sysdep.h.
3179
91b3a2b6
DZ
3180Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3181
7f2649bb
PB
3182 * Makefile.in: remove install:all and install-info:info
3183 dependencies (these cause some spurious rebuilds at 'make install'
3184 time)
91b3a2b6 3185
559d1cff
ILT
3186Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
3187
98f3d1af
ILT
3188 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
3189 (mips-idt-ecoff*): Added trailing '*'.
3190 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
3191 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
3192 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
3193
559d1cff
ILT
3194 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
3195 incorrect definitions.
3196
1cf91c69
PB
3197Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
3198
3199 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
3200 symbols, unless stripping.
3201
63545898
ILT
3202Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
3203
3204 * Makefile.in: configure looks for ####, so remove lines with many
3205 '#' characters.
3206 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
3207 and HOSTING_LIBS correctly so that ``make check'' will work.
3208
3209Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
3210
3211 * mips.sc-sh: Define _etext, _edata, and _end, in addition
3212 to etext, edata, and end. Needed for IRIX 4.0.5F.
3213 Patch from mwp@iconix.oz.au (Michael Paddon).
3214
2a963f1a
KR
3215 * Version 2.2.1 released.
3216
5266c5ec
KR
3217Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3218
3219 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
3220 * mipsbsd.sh (EMULATION_NAME): Use new file name.
3221
3222Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3223
3224 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
3225 properly right now.
3226
3227 * Version 2.2 released.
3228
3229Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
3230
3231 * ldver.c (ldversion): Bump version number to 2.2.
3232
bc3b479c
PB
3233Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
3234
3235 * NEWS: New file.
3236
3237Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
3238
3239 * mips.sc-sh: Don't define BSS_VAR unless relocating.
3240
3241Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
3242
3243 * Makefile.in (mkscript.o, mkscript): Build mkscript via
3244 mkscript.o, rather than directly from mkscript.c.
3245
b8fc168d
KR
3246Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3247
3248 * configure.in: Look for ${target_makefile_frag} relative to
3249 ${srcdir}, not relative to build directory.
3250
3251 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
3252 * configure.in: Recognize hppa*-hp-osf.
3253 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
3254 (em_hppaosf.c): Build it.
bc3b479c 3255 * config/hppaosf.mh, hppaosf.mt: New files.
b8fc168d
KR
3256
3257 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
3258 some system header files. All uses changed.
3259
3260 * configure.in: Recognize i386-aix configurations as i386-coff
3261 targets.
3262
3263 * configure.in: Recognize m68*-*-hpux.
3264 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
3265 the value of STACKZERO.
3266 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
3267 (em_hp3hpux.c): Build it.
3268 * hp3hpux.sh, config/hp300hpux.mt: New files.
3269
ef868186
ILT
3270Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
3271
3272 * mips.sc-sh: Put constructors in the .data section.
3273 * Makefile.in (cdtest): Added dependency on ld.new.
3274
034351e3
PB
3275Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
3276
3277 * Makefile.in: Change definition of $(tooldir) to match FSF.
3278 * vax.sh, config/vax.mt, configure.in, Makefile.in:
3279 Support VAX Ultrix and BSD.
3280
3281Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3282
3283 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
3284
3285Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
3286
3287 * ldlang.h (struct memory_region): Change `length' and
3288 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
3289 * ldlang.c, mri.c: Corresponding changes, plus lint.
3290
3291Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
3292
3293 * configure.in: For all i386 targets, accept i486 as well.
3294
3295Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
3296
3297 * ldlang.c (wild_doit): Preserve all flags for a
3298 SEC_SHARED_LIBRARY section.
3299 (size_input_section): Consider any SEC_HAS_CONTENTS section when
3300 computing largest_section.
3301
1b8a42f3
ILT
3302Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
3303
3304 * ldlang.c (lang_output_section_statement_lookup): Initialize all
3305 fields of newly created structure.
3306
3307Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
3308
3309 * ldmain.c (g_switch_value): New variable.
3310 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
3311 (command_line_option): Accept -G and set g_switch_value.
3312 * ldlex.l (COMMAND): Accept -G.
3313 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
3314
29f33467
SC
3315Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3316
9fce28ed
SC
3317 Support for linking and loading at different places:
3318
3319 * ldlex.l: Add "AT" keyword.
3320 * ldgram.y: Cleanup, and parse AT.
3321 * ldlang.c (print_output_section_statement): Print output address
3322 of section in map. (lang_size_sections): Fill sections' lma with
3323 load address.
3324 * ldlang.h (lang_output_section_statement_type): Add load_base
3325 information.
3326
29f33467
SC
3327 * ldindr.c (add_indirect): Keep more information in the alias
3328 symbol chain.
3329 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
3330 attribute from an input section.
3331 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
3332 default. (Q_enter_file_symbos): Indirect symbols now are known by
3333 their section, not a special symbol flag.
3334 * ldsym.c (write_file_locals): Indirect symbols aren't local.
3335 (write_file_globals): Write the mapping for an indirect symbol.
3336 * relax.c (build_it): When forced to write a NEVER_LOAD section,
3337 fill it with zeros.
3338
3339Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
3340
3341 * ld.texinfo: changes for q1
3342
f20e9842
DZ
3343Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3344
3345 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
3346
3347Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3348
3349 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
3350
3351Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
3352
3353 * mips.sc-sh: Added variables which may be overridden by a
3354 specific emulation.
3355 * mipsidt.sh: New file; emulation for IDT MIPS board.
3356 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
3357 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
3358 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
3359 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
3360
e637dcf0
KR
3361Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3362
3363 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
3364 ralphc@pyramid.com.
3365 * i386bsd.sh, config/i386bsd.mt: New files.
3366 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
3367
26483cc6
PB
3368Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
3369
e637dcf0 3370 * mri.c: Add extern declaration of strdup.
26483cc6
PB
3371 * ldsym.c (KEEP macro): Add spaces around '=' for the
3372 sake of old (e.g. PCC) compilers.
3373
05985c77
PB
3374Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
3375
3376 * ldver.c: Bump to version 2.1.
3377
067e2baa
SC
3378Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3379
3380 * ldgram.y: allow section types without address expressions.
3381 * ldlang.c (lang_relocate_globals): avoid possible hang with
3382 undefined but unreferenced symbols.
3383 * relax.c (relax_section): don't complain if the script file isn't
3384 relaxable but -relax is set
3385
fb8ecc3d
DZ
3386Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3387
3388 * configure.in: go32 is the 3rd part of the triple, not the 2nd
3389
067e2baa
SC
3390Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
3391
3392 * mipsbig.sh: New file. Big endian MIPS emulation.
3393 * config/mips-big.mt: New file. Use mipsbig emulation.
3394 * configure.in (mips-sgi-irix*): Use target mips-big.
3395 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
3396 (em_mipsbig.c): New target. Uses mipsbig.sh.
3397
e193c31b
ILT
3398Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
3399
3400 * mips.sc-sh: Put .scommon sections into .sbss section.
3401
3402 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
3403 rather than always putting them in bfd_com_section.
3404 * ldlang.c (lang_common): If a common symbol is not in
3405 bfd_com_section, put in a section of the same name, rather than
3406 always putting it in section COMMON.
3407
8a3efe67
ILT
3408Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
3409
f31cb329
ILT
3410 * ldmain.c (subfile_wanted_p): If we already have a common
3411 definition of a symbol, don't necessarily pull in an object file
3412 that provides a non-common definition.
3413
8a3efe67
ILT
3414 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
3415 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
3416 linker.
3417 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
3418 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
3419
af6237a4
ILT
3420Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
3421
3422 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
3423 the link to it.
3424
8a045e50
ILT
3425Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
3426
3427 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
3428 checking for equality to bfd_com_section.
3429
42b5c739
ILT
3430Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
3431
3432 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
3433 targets, linker script.
3434 * mipslit.sh: New file. Little endian MIPS emulation.
3435 * config/mips-lit.mt: New file. Use mipslit emulation.
3436 * configure.in (mips-dec-ultrix*): Use target mips-lit.
3437 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
3438 (em_mipslit.c): New target. Uses mipslit.sh.
3439
3440Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
3441
3442 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
3443 $(tooldir)/bin/gld, so that gcc can find it with or without
3444 collect2.
3445
ac496d4f
ILT
3446Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3447
3448 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
3449 write_norel. All linking is now done via write_relax. Call
3450 ldsym_write before calling write_relax.
3451 * relax.c: Added copyright.
3452 (write_relax): Renamed from write_relaxnorel. Added relocateable
3453 argument. seclet_dump renamed to bfd_seclet_link.
3454 * relax.h: Added copyright.
3455
0550e9f4
SC
3456Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3457
3458 * ldmain.c (decode_library_subfile): Patch from
3459 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
3460
3461Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3462
3463 * config/vxworks960.mt renamed to config/i960.mt
3464
3465 * configure.in: sparc-aout emulates a sun4, as does
3466 sparc*-vxworks, i960-nindy uses gld960 emulation
3467
dadd414a
SC
3468Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3469
3470 Fix support for NOLOAD, add INCLUDE
3471 * ldfile.c (ldfile_open_command_file): pass file name to
3472 lex_push_file.
3473 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
3474 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
3475 attribute.
3476
3477Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3478
3479 * Makefile.in, config.h: no more default emulation. Make the lack
3480 of emulation a compile time error
3481
3482Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3483
3484 * configure.in: recognise all sparclite variants, not just 'sparclite'
3485
a70947c1
ILT
3486Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
3487
3488 * m68kcoff.sc-sh: define _end as well as end, for consistency with
3489 aout.sc-sh.
3490
3491 * configure.in: accept *-ericsson-ose for any m68k CPU.
3492
3493 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
3494 for each output section.
3495
086c5e37
PB
3496Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
3497
3498 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
3499 macro bfd_asymbol_bfd as appropriate.
3500 * Makefile.in: Un-duplicate ldlex.c dependency.
3501 * condigure.in: Replace my_host case table by sourcing
3502 ../bfd/configure.host. Allow std-host as the default.
3503 * ldmisc.c: Change logic for C++ name demangling: There is
3504 no initial '_' to remove from stab-derived function names.
3505
3506Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3507
3508 * ldlang.c (lang_init_script_file): don't attach the output file
3509 sections to the script file.
3510
3511Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3512 * ldlang.c (wild): run expansion loop over command line bfd too.
3513 (lang_ini_script_file): initialize more parts of the command line
3514 bfd.
3515 * ldlex.l: fix DEFINED start states.
8ddef552 3516
85e38cfa
SC
3517Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3518 -y support
3519 * ld.texinfo: new doc.
3520 * ldgram.y, ldlex.l: understand -y<symbol>
3521 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
3522 print info. (add_ysym): new function.
3523 * ldsym.h: (ldsym_type): new define SYM_Y.
3524
e20873a7
JG
3525Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
3526
3527 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
3528 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
3529 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
3530 macros with PARAMS. Recreational cleanup. Update copyrights.
3531
3532Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3533
3534 * Makefile.in: pass down the bfd source directory for includes
3535
22292613
ILT
3536Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
3537
3538 * ldlang.c (lang_size_sections): don't change size and address for
3539 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
3540 sections.
3541
85c838d6
SC
3542Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3543
3544 * relax.c (build_it): re-enable the processing of data_statements
3545 in scripts, makes counted contructor lists work again.
3546
6e94236a
JG
3547Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
3548
3549 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
3550
3551Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
3552
3553 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
3554 and end.
3555
e9b63852
ILT
3556Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
3557
3558 * Support for i386-sysv.
3559 configure.in: check for i386-*-sysv* and i386-*-sco*.
3560 i386coff.sc-sh: rewrote to support SVR3 by default.
3561 ldctor.c (find_constructors): preserve stat_ptr.
3562 ldlang.c (wild_doit): initialize vma and size of new output
3563 section to corresponding input section. This is required for
3564 shared library support.
3565 (lang_size_sections): don't modify vma and size of sections which
3566 are never loaded (for shared libraries).
3567 ldwrite.c (copy_and_relocate): copy the contents of any section
3568 which has contents, not just sections which are loaded (for shared
3569 libraries).
3570
ba2c2b1c
SC
3571Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3572
3573 * ldlang.c (size_input_section): count the sizes of all sections
3574 we allocate.
3575
a385b38f
SC
3576Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3577
3578 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
3579 to demangle symbols better
3580
81150d34
ILT
3581Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
3582
3583 * ldlang.c (lang_finish): don't warn if -e start symbol does not
3584 exist when linking with -r.
3585
b5ddf942
ILT
3586Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
3587
3588 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
3589 .bss segment.
3590
f3739bc3
SC
3591Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3592
3593 * ldmain.c (linear_library): don't even think about processing
3594 an object file if it's already been done
3595
3596Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3597
3598 * configure.in: the hp9000/300 config file is now hp300
3599
ac0832f3
SC
3600Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3601
3602 * config/z8ksim.mt: new file
3603
f3b36ecb
KR
3604Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
3605
3606 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
3607 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
3608
3609 * ld.h (strip_symbols_type): Add value STRIP_SOME.
3610 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
ac0832f3 3611 * ldlang.c (lang_add_keepsyms_file): New function.
f3b36ecb
KR
3612 * ldlex.l: Handle "-retain-symbols-file".
3613 * ldsym.c (keepsyms_file, kept_syms): New vars.
3614 (process_keepsyms): New functihon; reads file, marks symbols for
3615 saving.
3616 (write_file_locals): File symbols should always be kept.
3617 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
3618 and "-s". Process retain-symbols file before setting symtab.
3619 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
3620 (keepsyms_file, kept_syms): Declare them.
3621
3622 * ldmain.c (main): Non-fatal errors should still cause non-zero
3623 exit status even with -r.
3624
22a78f0d
SC
3625Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3626
3627 Added initial support for the z8k
3628 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
3629 * configure.in, Makefile.in: modified to reflect above
3630
3631 * ldlang.c (lang_check): when linking conflicting architectures,
3632 make the output file reflect at least one of the bad inputs.
3633
56409445
ILT
3634Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
3635
3636 * Makefile.in (install): if $(tooldir) exists, install ld in
3637 $(tooldir)/bin.
3638
99e6298a
SC
3639Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3640
3641 * Makefile.in, configure.in: modified to support i386-coff
3642 * i386coff.sh: new file
3643
ab57b174
ILT
3644Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
3645
3646 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
3647 added m68k-coff emulation mode, stolen from a29k emulation.
3648 Almost certainly wrong, but perhaps better than sun3.
3649
8e71a984
PB
3650Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
3651
ab57b174
ILT
3652 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
3653 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
3654 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
3655 This is one character shorter, and lets people build on
3656 SVR3 system. (ld__h8300xray.[co] was the killer there;
3657 h8300xray.sc-sh is also overlong, but seems harmless.)
3658 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
3659 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
3660 * configure.in: Add host isc.
3661
8e71a984
PB
3662 * ldver.c: Call it version 2.0.
3663
3664Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
3665
3666 * ldver.c: Bump to version 0.98.
3667 * TODO: New file.
3668
3669 * Makefile.in: Added mostlyclean, distclean, realclean rules.
3670
c52bdfec
PB
3671Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
3672
3673 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
3674 * ldlex.l: Moved comment() to end, since some compilers
3675 otherwise have problems with input() used before it is defined.
3676
2df68136
DZ
3677Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3678
3679 * configure.in: added Solaris 2 and Irix 4 host support.
3680
3681Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3682
3683 * Makefile.in: remove -S flag from the FLEX definition
3684
3685 * configure.in: rewrote, using new style case statement. use
3686 m68k.mt for m68k-aout systems
3687
0bb95ac8
ILT
3688Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
3689
3690 * Makefile.in: map "ld" through program_transform_name when
3691 installing.
3692
fe2b6209
PB
3693Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
3694
3695 * cplus-dem.c: Removed. Use the version in libiberty now.
3696 * ldmisc.c: Use new libiberty version of cplus_demangle().
3697
94cc1ee7
ILT
3698Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
3699
5f2d9799
ILT
3700 * gld960.em (gld960_choose_target): default to little endian, not
3701 big endian.
94cc1ee7 3702
cd1d8c6d
SC
3703Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3704
3705 * ldlang.c (lang_process): don't pass null pointers when
3706 abs_output_section is what is required.
3707 * ldwrite.c (ldwrite): use malloc to allocate the largest space
3708 used, and pass that down.
3709 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
3710 than alloca.
3711
afba2b22
ILT
3712Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
3713
3714 * configure.in, config/ose68.mt: renamed OSE to ose.
3715
571c4c26
KR
3716Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
3717
3718 * ldsym.c (write_file_locals): Reorder check for common or
3719 undefined symbols so that it works.
3720
b189e892
ILT
3721Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
3722
3723 * configure.in: accept all m68K family members.
3724
3725 * Makefile.in: always create installation directories.
3726
6bf2e3a7
SC
3727Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3728
3729 * ldlex.l: now parses comment correctly, added ~ to acceptable
3730 chars in filenames
3731
3732 * ldexp.c (exp_unop): pass down abs_output_section - now can have
3733 unary -ve constants.
3734
3735 * ldlang.c (lang_finish): warn when an entry symbol supplied on
3736 the command line can't be found.
3737
ae475b39
SC
3738Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3739
3740 * ldlang.h: add new field "loadable" to output_section_statement.
3741 * ldlang.c (lang_output_section_statement_lookup): initilize new
3742 field. (wild_doit): if new field is not set, then stop output
3743 section from being loadable.
3744 (lang_enter_output_section_statement): set the field from the
3745 NOLOAD keyword
3746 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
3747 * h8300hms.sc-sh, h8300hms.em: get -r right.
3748
4b91c519
PB
3749Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
3750
3751 * ldint.texinfo: New internals manual (beginnings thereof).
3752 * PORTING: Removed, merged into ldint.texinfo.
3753
917bffa7
PB
3754Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
3755
3756 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
3757 cdtest.exp: A test program (copied from libg++/test-install)
3758 that tests that constructor and destructors are handled
3759 corrrectly.
3760
b40f9c73
DZ
3761Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3762
3763 * Makefile.in (install): install from ld.new, renaming during the
3764 copy, or else the next 'make install' needs to re-link ld.
3765
3766Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
3767
3768 * configure.in: generalise hp recognition (from sef).
3769
3770Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3771
3772 * configure.in: recognize bsd and hpux hppa configurations.
3773 error messages echo to stderr, not stdout
3774
ec467c83
RP
3775Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
3776
3777 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
3778 ldmisc.c: removed rcsid's.
3779
67cddd9f
SC
3780Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3781
3782 * ldlang.c (lang_map): print changes in sizes due to relaxing
3783 (size_input_section): maintain the delta information.
3784 * ldlang.h: add new field to struct to contain delta info.
3785 * relax.c (relax_section): complain if input not relaxable.
3786 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
3787 start of a filename
3788
f7c76897
SC
3789Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3790
3791 * ldmain.c(main): prevent -r and -relax from being on at the same
3792 time.
3793
28b6b1ab
SC
3794Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3795
3796 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
3797 aliasing problems
3798
3799
30d1a390
SC
3800Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3801
3802 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
3803 * ldexp.c: lint
3804 * ldlang.c(open_output): set the target arch and machine as soon
3805 as we can. (lang_size_sections): use new macros for setting vma
3806 * ldwrite.c: lint
3807
5bdf878e
MT
3808Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
3809
3810 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
3811 Also deleted an unreachable path to wrs.
3812
3813Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
3814
3815 * Makefile.in (install): use -d test for $tooldir before
3816 installing ld there so that $tooldir can be inherited from
3817 top-level Makefile.
3818
3819Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
3820
3821 * ldlang.c: Two non-substantial changes for the sake of
3822 the old Portable C Compiler.
3823
5e81edb2
SC
3824Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3825
3826 * ldgram.y, ldlex.l: parse ABSOLUTE
3827 * ldexp.c: add support for ABSOLUTE
3828
7aacc9cc
PB
3829Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
3830
3831 * Makefile.in: Added default definitions for HOSTING_CRT0,
3832 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
3833 * config/*.mh: Miscellaneous clean-up: Removed definitions
3834 of YACC (since it is not longer used in the Makefile).
3835 Remove HOSTING_* definitions that are subsumed by the
3836 ones added to Makefile.in. Removed most definitions of CC.
3837 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
3838 These are no longer needed.
3839
91e25b4f
PB
3840Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
3841
5ff21fa5
PB
3842 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
3843 rules, since these are used when building a distribution.
3844 * Makefile.in (ldlex.c): Don't re-direct output, since that
3845 leaves a bogus output files if it fails.
3846
91e25b4f
PB
3847 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
3848 * ldlex.c: Fix some unnecessary flex-specific-isms.
3849
3850Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3851
3852 * ldgram.y: move spurious semicolon
3853 * ldexp.h: fix prototype
3854
82d1666a
RP
3855Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
3856
3857 * ld.texinfo: references to linker now say "ld" not "gld".
3858
32846f9c
SC
3859Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3860
3861 changed calling convention for Q_enter_global_ref
3862 * ldexp.c, ldlang.c, ldmain.c: reflect this
3863 * ldver.c: bump version to 1.97.1
3864 * ldindr.c (add_indirect): when an edict declaring an indirect
3865 symbol is found, make sure that any ideas about the symbol being
3866 common are changed if it now known to be defined.
3867 * ldmain.c (linear_library): complain once if archive isn't
3868 ranlibbed.
3869 * ldlang.h, ldlang.c: make room for and initialize the complain
3870 once field.
3871
bf3acf44
RP
3872Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
3873
3874 * Makefile.in: use flex & bison from ../ if they exist.
3875
9c99a57e
SC
3876Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3877
3878 * relax.c (build_it): don't allocate space in the output file for
3879 stuff if -R flag applys to it.
7153b2ff
SC
3880 * ldfile.c: merge in VMS filename support
3881 * ldmain.c (main): take out ./ from library path, and close file
3882 before unlinking. Make multiple defs of a symbol create an
3883 unexecable file.
3884 * ldmisc.c: fatal errosrs delete output file
9c99a57e 3885
98377f31
PB
3886Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
3887
3888 * ldver.c: Increase version number to 1.97, for consistency
3889 with ../binutils.
3890
3f350eda
RP
3891Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
3892
813da1a5
RP
3893 * Makefile.in: FLEX -> LEX.
3894
3f350eda
RP
3895 * ld.texinfo: {} -> @{@}.
3896
e0047d49
RP
3897Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
3898
3899 * ld.texinfo: describe alternate, MRI-compatible linker scripts
3900 (and associated change in -c option, now used for these scripts)
3901
bfbdc80f
SC
3902Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3903
3904 * ldver.c: Bumped version to 1.96 - new release, resync with the
3905 bfd too #.
3906 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
3907 rather than with raw malloc, makes it easier to track where memory
3908 is going.
3909 * ldsym.h, ldsym.c: create obstack for all global symbols too.
3910 * ldwrite.c (ldwrite): moved malloc so only used when needed.
3911 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
3912
3913
d3451fe8
RP
3914Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
3915
3916 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
3917
3918 * Makefile.in: use bootstrap for check.
3919
dc4726c2
SC
3920Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3921
e14a43bf
SC
3922 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
3923 PUBLIC.
3924 * Makefile.in: now use flex, not lex
dc4726c2
SC
3925 * ldlex.l, ldlang.c, ldctor.c: lint
3926
ee0c4cf7
SC
3927Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3928
3929 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
3930 different sorts of filenames on the command line than in a script.
3931
77b19d3d
RP
3932Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
3933
3934 * Makefile.in: rework CFLAGS so that they can be passed on the
3935 make command line. Remove MINUS_G. Default CFLAGS to -g.
3936
119afd7b
RP
3937Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3938
3939 * relax.c: added handling for new "padding" seclet type, used to
3940 fill out gaps between section.
3941 * ldgram.y, ldlex.l: now -defsym on the command line is done
3942 properly.
3943
3944Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
3945
3946 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
3947
2e38b71d
SC
3948Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3949
3950 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
3951 scripts.
3952
1900f884
KR
3953Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
3954
3955 * Makefile.in (install): Install second copy in $(tooldir)/bin
3956 without $(program_prefix), since that's what gcc expects.
3957
9d1fe8a4
SC
3958Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3959
3960 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
3961 * h8300*: fix bit rot and add support for h8300xray target
3962 * go32.sh: target emulation for go32.
3963
9d1fe8a4
SC
3964Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
3965
3966 * gld960.em, i960.sc-sh. Fix i960 bit rot
3967
f0280cd2
RP
3968Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
3969
3970 * Makefile.in: install man page.
3971
12fa72d4
SC
3972Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3973
3974 * config/mt-<foo> renamed to <foo>.mt
3975 * config/mh-<foo> renamed to <foo>.mt
3976 * configure.in changed to reflect this
3977 * genscripts.sh now make .xbn files rather than .xN files
3978
3979Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
3980
3981 * ldver.h: fix decl of ldversion.
3982
3983Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
3984
3985 * Makefile.in: added check target.
3986
fe563ffe
SC
3987Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3988
3989 * ldmain.c (Q_enter_file_symbols): now aliases work again
3990
12fa72d4
SC
3991Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
3992
3993 * Makefile.in: added clean-info target.
3994
fe563ffe
SC
3995Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3996
3997 * ldexp.c (exp_print_tree): don't try and follow null pointers
3998 around.
3999 * ldgram.y: remove 11 shift reduce errors
d2861901 4000
12fa72d4
SC
4001Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
4002
4003 * Makefile.in: added tooldir and program_prefix.
4004
fe563ffe
SC
4005Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
4006
4007 * ldlang.c (size_input_section): don't move absolute sections
4008 around!
4009
4010
4011Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
4012
d2861901
SC
4013 * cplus-dem.c: yet another copy of this - maybe it should go into
4014 libiberty ?
4015 * ldgram.y: now -V and -v have different actions
4016 * ldver.c: if -V, prints list of emulations compiled in
4017 * ldmisc.c: support for cplus demangling
4018
4019
12fa72d4
SC
4020Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
4021
4022 * Makefile.in, configure.in: removed traces of namesubdir,
4023 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
4024 copyrights to '92, changed some from Cygnus to FSF.
4025
d2861901
SC
4026Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
4027
4028 * Makefile.in: Change mkscript rule into one for ./mkscript
4029 (for the sake of makes that don't realize they're the same).
4030 * PORTING: Add more details.
4031 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
4032
1584d069
PB
4033Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
4034
4035 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
4036 config/mt-hp300bsd: New port to hp300 running BSD.
4037
7e5c1057
PB
4038Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
4039
4040 Major rewrite of how ld is configured. The major idea
4041 is to use shell scripts to generate everything.
4042 * generic.em replaces ldtemplate.
4043 * Other *.em files replace various *.c files.
4044 A *.em file is a shell script that generates the corresponding
4045 ld__*.c file that implements an emulation. This is usually
4046 a straight 'cat' of a here-document, possibly with substitutions.
4047 * Script files (*.sc) are places by *.sc-sh scripts.
4048 Again, these are simple shell scripts that 'cat'
4049 here-documents, usually with some substitutions.
4050 The output a *.sc-sh is a script file.
4051 * Each emulation is defined by a short shell script with
4052 extension *.sh that specifies the emulation-specific
4053 parameters (such as the name of the *.sh-sc and *.em
4054 files to use).
4055 * genscript.sh is the master shell script used to generate
4056 an emulation. It is passed various argument, including
4057 the name a the emulation-speciic *.sh file that it
4058 "sources" to set variables to emulation-specifc parameters.
4059 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
4060 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
4061 * config/mh-foo: Rename LDEMULATION names as appropriate
4062 (usually 'gldfoo' -> plain 'foo').
4063 * ldwrite.c: Fixed a typo in a comment.
4064 * Makefile.in: Major changes. Removed some the sed
4065 magic to converts scripts, since that is now handled
4066 by genscripts.sh and the *.sc-sh scipt generators.
4067 * config.h: Remove a bunch of macros defining emulations
4068 and targets. This becomes one less file to edit when
4069 adding emulations or targets.
4070 * ldemul.h (struct ld_emulation_xfer_struct): Add
4071 emulation_name and target_name fields.
4072 * ldemul.c, ldemul.h: Define some default functions used
4073 by most emulations (and remove from the *.em scripts).
4074 * ldemul.c (ldemul_choose_target): Search the new
4075 ld_emulations array using a loop (instead of a hardwired
4076 nested if statement).
4077 Define the ld_emulation from the automatically-geenrated
4078 ldemul-list.h. This means you no longer have to edit ldemul.c
4079 to add a new emulation.
4080 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
4081 their expansions, since the former no longer exist.
4082 * PORTING: A very rough first draft of a porting guide.
4083
4084 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
4085 to be terminated by a new-line (instead of requiring a semicolon).
4086
4087Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
4088
4089 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
4090 tests for NULL pointers all over the place.
4091 * ldlang.c (lang_process): remember to relocate global symbols
4092 *after* relaxing has done it stuff.
4093
4094Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
4095
4096 * config/mt-coff-h8300: use EMUL like everything else
4097 * ldlang.c: (print_padding_statement): print the right address.
4098 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
4099
4100
aa34a7c3
SC
4101Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
4102
4103 * ldlex.l: Put pack -noinhibit-exec and -sort-common
4104 * ldlang.c (print_data_statement): print the right address.
4105
4106Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
4107
4108 * Makefile.in: The rule for testing ld by re-linking itself
4109 via an intermediate -r link was moved to the ld1 rule
4110 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
4111 which allows the bootstrap rule to work.
4112 * ldctor.c (find_constructors): Don't create a constructor
4113 list if it is already defined (as would happen if ld is
4114 invoked by collect).
4115
cbbdbb9f
SC
4116Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
4117
4118 * config/mh-sparc.h: now uses libgcc.a
4119 * ldmain.c: quit using exit
4120 * *sc: use *(COMMON) rather than [COMMON]
4121 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
4122 to allow preprocessing of .l file.
4123 * Makefile.in: New ldlex.l mangling
4124 * ldexp.c (fold_binary): perform expressions with % and / in
4125 integer.
4126 * ldfile.c (open_a): open archives on VMS in a special way
4127
4128
870f54b2
SC
4129Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
4130
4131 * ldgram.y: map -M behave in the same way as -Map (sets file name
4132 to be "-".
4133 * ldsym.c, ldlang.c: remember that size of a section is dependent on
4134 whether or not relaxing has been done.
4135 * ldmain.c: don't open a map file if it doesn't have a name
4136 * relax.c: all the brains have moved into bfd.
4137 * ldwrite.c: ammend comment
4138
2e2bf962
SC
4139Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
4140
4141 * Makefile.in: added relax, also made three stage go through a
4142 partial link stage.
4143 * relax.c : added
4144 * config.h: if GNU960 defined, then default emulation mode is
4145 GLD960
4146 * ldexp.h, ldexp.c: map to file hooks
4147 * ldlang.c: map to file hooks
4148 * ldgram.y: added -Map -relax
4149 * ldlex.l: added -relax, -Map
4150 * ldmain.c: open map file
4151 * ldmisc.c: support for map file
4152 * ldwrite.c: new relax magic
4153
4154Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
4155
4156 * Makefile.in, config/tm-*.h: Clean up make output, only
4157 pass DEFAULT_EMULATION to ldmain.c.
4158
4159Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
4160
4161 * ldver.c: Bump to version 1.94.
4162
4163Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
4164
4165 * Makefile.in: infodir belongs in datadir.
4166
e06ba18d
PB
4167Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
4168
4169 * Makefile.in: Pass -y to bison. (Again;
4170 accidentally deleted by Rich.)
4171 * news.sc, ldgld68k.sc: Define __end as well as _end.
4172
4173Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
4174
4175 * ldindr.h: added to contain prototypes of ldindr.c
4176 * ldfile.c: include ctype.h
4177 * ldmain.c: include the requried prototype headers
4178 * ldwrite.c: get_reloc_upper_bound has been renamed
4179 bfd_get_reloc_upper_bound
4180
818a192a
RP
4181Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
4182
4183 * Makefile.in: punt "fundamental" mode because it breaks my emacs
4184 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
4185 spaces following hyphens, bsd make can't cope. added
4186 standards.text support and made it look like all the other
4187 makefiles.
4188
4189 * configure.in: configure now runs entirely in objdir so make file
4190 existence checks against ${srcdir}. Mark this directory as
4191 target dependent.
4192
4193Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
4194
4195 * Makefile.in: idestdir and ddestdir go away. Added copyrights
4196 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
4197 and mandir now keyed off datadir by default.
4198
4199Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
4200
4201 * ldver.c: Bumped version to 1.93.
4202 * Makefile.in: Pass -y to bison.
4203
4204Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
4205
4206 * config.h: h8 is now coff, not ieee
4207 * h8300hds.sc: reflect the same
4208
4209Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
4210
4211 * ldver.c (ldversion()): Update to 1.92.
4212 * ldctor.c: There are two places constructor sets
4213 can be defined. One of them checked for an existing
4214 duplicate, the other didn't. Unfortunately, the latter
4215 was called after the former ...
4216 So, factor out code for inserting a new element into
4217 constructor_name_list (after checking for a duplicate)
4218 into a new function add_constructor_name, and call
4219 it from both aforementioned places (ldlang_add_constructor
4220 and ldlang_check_for_constructors).
4221
4222Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
4223
4224 * Makefile.in: Rename .c files generated from ldtemplate
4225 to have names starting with ld__. This helps 'make clean'.
4226
092df318
SC
4227Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
4228
4229 * Makefile.in: Take out the version number for install
4230 * m88kbcs.sc: put in contructor blocks.
4231
1c9e4b15
PB
4232Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
4233
4234 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
4235 parameter, a format, and an arg pointer, and rename it to
4236 vfinfo(). Write info() in terms of new vfinfo().
4237 New einfo() is the same as info(), except it writes to stderr.
4238 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
4239 ldmisc.c: Replace "error" calls to info() by new einfo().
4240
550e87b5
SC
4241Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
4242
4243 * ldlex.l ldgram.y: made -V option do same as -v
4244 * Makefile.in: Added $(MINUS_G) flag so debugging can be
4245 turned off
4246
4247Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
4248 i386 aout changes from Bob Kukura
4249 * Makefile.in, config.h: added i386aout support
4250 * configure.in: fixed /h-{myhost} typo
4251 * ldgram.y: -MM now gives more boring map.
4252 * ldlang.c: now does D_PAGED flag the right way.
4253 * ldsym.c: -MM flags does the right thing.
4254
aeedc30e
PB
4255Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
4256
4257 * configure.in: Fixed typo. Also, a fix for hp300bsd.
4258 * ldlang.c (init_os): Compensate for BFD change,
4259 where bfd_make_section now returns NULL for a duplicate
4260 section request, instead of the old section.
4261
4262Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
4263
4264 * ldver.c: Bump to version 1.91 (consistent with binutils).
4265
2d1a2445
PB
4266Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
4267
4268 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
4269 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
4270 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
3410447c 4271 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
2d1a2445
PB
4272 Add or update copyright notices.
4273
4274Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
4275
4276 * README: New file.
4277 * Makefile.in: Changed installation directory name scheme
4278 to be consistent with gcc. Also changed 'install'.
4279
954ac2ea
RP
4280Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
4281
4282 * Makefile.in: new targets ld.mm, ld.me
4283
972e7b4b
PB
4284Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
4285
4286 * Makefile.in, ldtemplate: Need to use separate scripts
4287 for -n and -N options. Yet more complication.
4288
33ce0085
JG
4289Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
4290
4291 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
4292 work). Add some lines to avoid Sun Make VPATH bugs.
4293
b7e24eef
PB
4294Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
4295
4296 * news.sc: Add alignment for data segment.
4297 * ldtemplate: Add (yet another) script to get for -n or -N
4298 options. (These need different alignment than ZMAGIC files.)
4299 * Makefile.in: Add stuff for new foo.xn scripts.
4300 These are generated by replacing "ALIGN(0x...00)" by ".".
4301
b55e0948
RP
4302Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
4303
4304 * Makefile.in: new targets ld.ms, ld-index.ms
4305 ld.texinfo: remove tabs, other cleanups for texi2roff
4306
6719c75b
PB
4307Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
4308
4309 * ldmain.c (main): Make config.magic_demand_paged be true
4310 by default. Don't the WP_TEXT and D_PAGED flags of
4311 output_bfd here; it's too late, so set it when output_bfd
4312 is created (in ldlang.c). Also fix setting of EXEC_P flag
4313 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
4314 * ldlang.c: Remove some duplicate extern declarations.
4315 * ldgram.y: Fixes to -N and -n options.
4316 * Makefile.in: Recognize upper case letters in sed script
4317 to remove assignments from script files.
4318 * ldtemplate: Don't assukme that -N or -n options
4319 imply use of -r script.
4320 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
4321
8e10cea1
SC
4322Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
4323
4324 * ldtemplate: include bfd.h before sysdep.h.
4325
1f8fc34f
JG
4326Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
4327
4328 Restructure configuration scheme for bfd, binutils, ld.
4329
4330 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
4331 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
4332 Change some config names to match other dirs.
4333 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
4334 get defined first.
4335 * config/: Rename some config files to match up h-*.h names.
4336 Remove all the HOST_SYS definitions from the config files.
4337
4338Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
4339
4340 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
4341 * ldtemplate: Remove ldfile_add_library_path calls;
4342 just use the SEARCH_DIR commands in the script files.
4343 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
4344 the SEARCH_DIR commands in the scripts (using ugly sed magic).
4345 This is primarily intended for cross-linking, where you would
4346 place libaries in a different place than native libraries.
4347 Also, emulations made from ldtemplate now use $(srcdir).
4348 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
4349 form; people can use the Makefile's LIB_PATH to override.
4350
8d317d2a
RP
4351Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
4352
4353 * Makefile.in: fix target ld.dvi, add target ld.info
4354 ld.texinfo: make info filename ld.info
4355
558175fb
JG
4356Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
4357
4358 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
4359 Make).
4360 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
4361 few BFD types & enums.
4362
de0abbfc
ILT
4363\f
4364Local Variables:
bf82ab68
ILT
4365mode: indented-text
4366left-margin: 8
4367fill-column: 74
de0abbfc
ILT
4368version-control: never
4369End:
This page took 0.341097 seconds and 4 git commands to generate.