* config/tc-h8300.c (do_a_fix_imm): Don't cut off high bits
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
b279f82e
DE
1Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
2
3 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
4 Pass $ARCH to ldfile_set_output_arch instead of setting
5 ldfile_output_architecture directly.
6
28ad0357
MM
7Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
8
9 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
10 next to .text. Put _etext after .text, .init, .fini, and
11 .rodata{,2} sections.
12
7ec9d825
ILT
13Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
14
517a7caf
ILT
15 * ld.texinfo: Rearrange option documentation.
16
1ffec9e6
ILT
17 * lexsup.c (ld_options): New static array.
18 (parse_args): Build shortopts and longopts from ld_options array.
19 (help): New static function.
20 * ldver.h (help): Don't declare.
21 * ldver.c (ldversion): Reindent.
22 (help): Remove.
23
7ec9d825
ILT
24 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
25
90ba7e65
ILT
26Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
27
0c4d3f6f
ILT
28 * emultempl/elf32.em: When checking for a native emulation, check
29 that the current emulation is the default emulation.
30 * emultempl/sunos.em: Likewise.
31
b4cb4ea2
ILT
32 * configure.in: Permit --enable-shared to specify a list of
33 directories.
34 * configure: Rebuild.
35
90ba7e65
ILT
36 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
37 for HP/UX compatibility.
38
8a42aa54
ILT
39Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
40
6cc7365e
ILT
41 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
42 static function, if ${host} = ${target}.
43 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
44 needed shared library if ${host} = $[target}.
45
46 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
47 HOSTING_CRT0. Search -lgcc both before and after -lc in
48 HOSTING_LIBS.
49
8a42aa54
ILT
50 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
51 Polstra <jdp@polstra.com>.
52
4864a04f
JSC
53Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
54
55 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
56 architecture number.
57 * scripttempl/elf.sc: Use $MACHINE definition if present.
58 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
59 template as 4300.
60
09328690
ILT
61Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
62
63 * ldlang.c (lang_size_sections): Change region check to handle
64 regions which end at the highest possible address correctly.
65 From Roland Weber <roweber@ira.uka.de>.
23595ba5
ILT
66
67 * ldlang.c (section_already_linked): New static function.
68 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
69 relocateable link. Don't worry about section being NULL, since it
70 never should be. Don't call init_os unless the section is going
71 to be added.
72 (ldlang_add_file): Call section_already_linked for each section.
73 * ldmain.c (multiple_definition): Don't warn about multiple
74 definitions in sections which are being discarded.
75
ea461c67
SC
76Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
77
78 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
79 * emultempl/pe.em (init): Remove special case PPC code.
80
0e88ffa2
JL
81Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
82
83 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
84 so as not to overwrite the magic syscall entry at 0xc4.
85 * scripttempl/h8300h.sc: Likewise.
86
bacc1703
DE
87Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
88
89 * configure.tgt (sparc64-*-solaris2*): Delete.
90 Stick with sparc-*-solaris2*.
91
64664e69
ILT
92Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
93
cf2e4f5f
ILT
94 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
95 * ldlang.c (init_os): Fail on an attempt to initialize any section
96 named DISCARD_SECTION_NAME.
97 (wild_doit): Discard input sections assigned to an output section
98 named DISCARD_SECTION_NAME.
99 * ld.texinfo: Document use of /DISCARD/.
100
64664e69
ILT
101 * ldlang.c: Fix some indentation and comments.
102
28113e82
ILT
103Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
104
105 * ldmain.c (main): Call bfd_set_error_program_name.
106
8ef401e2
ILT
107Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
108
28113e82
ILT
109 * ld.texinfo: Fix a couple of indexing entries. Mention that
110 --verbose displays builtin linker scripts.
111
4bcc5d32
ILT
112 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
113 and the local symbol name does not match the filename, print the
114 filename as well.
115
8ef401e2
ILT
116 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
117 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
118 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
119 as TEXT_START_ADDR.
120
baaaf6f2
ILT
121Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
122
123 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
124
0f5898cc
ILT
125Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
126
127 * ldmain.c (add_wrap): New function.
128 * ldmain.h (add_wrap): Declare.
129 * lexsup.c (parse_args): Call add_wrap.
130
60e42680
DE
131Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
132
133 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
134
deddae66
JL
135Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
136
137 * scripttempl/h8300.sc: Change name of page zero memory
138 from "null" to "vectors". Create an output section for
139 vectors. Add comments on how to explicitly place items
140 in the vector table.
141 * scripttempl/h8300h.sc: Likewise.
142
5cb57c2c
ILT
143Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
144
96704ebc
ILT
145 * emultempl/lnk960.em (machine_table): Add jx and hx.
146
5cb57c2c
ILT
147 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
148 support it.
149
4b7d2399
ILT
150Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
151
152 * ld.h (ld_config_type): Add warn_multiple_gp field.
153 * lexsup.c (parse_args): Handle --warn-multiple-gp.
154 * ldmain.c (warning_callback): Suppress multiple gp values warning
155 if --warn_multiple_gp was not used.
156 * ld.texinfo, ld.1: Document --warn-multiple-gp.
157
02df835b
ILT
158Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
159
e3d73386
ILT
160 * lexsup.c (parse_args): Handle --wrap.
161 * ldmain.c (main): Initialize link_info.wrap_hash.
162 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
163 and NAME cases.
164 * ld.texinfo, ld.1: Document --wrap.
165
ea2488ad
ILT
166 * configure: Rebuild with autoconf 2.8.
167
02df835b
ILT
168 Don't do SunOS style dynamic linking for sparc-aout:
169 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
170 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
171 (sparc*-wrs-vxworks*): Likewise.
172 * emulparams/sparcaout.sh: New file.
173 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
174 (esparcaout.c): New target.
175
176Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
177
178 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
179 in a different manner to work around differences in shell variable
180 expansion.
181
6771b6e2
ILT
182Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
183
184 * ldemul.h (ldemul_unrecognized_file): Declare.
185 (ldemulation_xfer_type): Add unrecognized_file field.
186 * ldemul.c (ldemul_unrecognized_file): New function.
187 * ldlang.c (load_symbols): If a file can not be recognized, call
188 ldemul_unrecognized_file before trying it as a linker script.
189 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
190 function.
191 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
192 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
193
3d0c8fa1
ILT
194Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
195
196 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
197 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
198
16385918
ILT
199Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
200
201 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
202 Search trinary.cond rather than searching trinary.lhs twice.
203
e24b45a8
SS
204Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
205
206 * mpw-make.sed: Edit out shared library support.
207 (@TDIRS@): Edit out, can't use genscripts.
208
228b04d2
ILT
209Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
210
211 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
212 * emulparams/m68klinux.sh: New file.
213 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
214 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
215 bfd_linux_size_dynamic_sections.
216 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
217 (em68klinux.c): New target.
218 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
219
3c8deccc
ILT
220Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
221
228b04d2
ILT
222 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
223 Fill in missing entries.
224
3c8deccc
ILT
225 * lexsup.c (parse_args): Recognize --no-whole-archive.
226 * ldlang.h (lang_input_statement_type): Add whole_archive field.
227 * ldlang.c (new_afile): Set whole_archive field.
228 (load_symbols): Check input file specific whole_archive field
229 rather than global variable.
230 * ld.texinfo, ld.1: Document --no-whole-archive.
231
fc7b6582
ILT
232Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
233
234 * configure.tgt: Correct gldi960 to gld960.
235
c653b370
ILT
236Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
237
169df8d5
ILT
238 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
239 the SONAME if it is available.
240 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
241 filename, when checking for conflicting library versions. Don't
242 assume that the suffix is only numbers and dots.
243
c653b370
ILT
244 * ld.texinfo: Mention that -R can be used for -rpath.
245
9e2ef098
ILT
246Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
247
248 * configure.host: Check for 'do not mix' from native linker before
249 trying to use -rpath.
250
ad43e45b
ILT
251Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
252
c99fbc42
ILT
253 * configure.in: Remove explicit substitution of CFLAGS; autoconf
254 does it anyhow.
255 * configure: Rebuild.
256 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
257
7e19f60e
ILT
258 * configure.in: Call AC_PROG_CC before configure.host.
259 * configure: Rebuild.
260 * configure.host: Remove go32 host, since it should no longer be
261 necessary. Don't set CC for romp host.
262
22aa1302
ILT
263 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
264 the text segment ends exactly on a page boundary.
265
ad43e45b
ILT
266 * configure.in: Substitute RPATH_ENVVAR.
267 * configure: Rebuild.
268 * configure.host: Set RPATH_ENVVAR.
269 * Makefile.in (RPATH_ENVVAR): New variable.
270 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
271
95d31c3c
ILT
272Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
273
274 * configure.in: Redo emulation handling so that each emulation
275 searches the correct tool directory, based on the target alias.
276 For example, "configure --enable-targets=m68k-coff i386-linux"
277 will search /usr/local/i386-linux/lib for linux and
278 /usr/local/m68k-coff/lib for m68k-coff.
279 * configure: Rebuild.
280 * configure.tgt: Add special tdir settings for Linux.
281 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
282 for each eEMUL.c target.
283 * genscripts.sh: Accept specific alias as 9th argument, and use it
284 in LIB_PATH.
285
307585f1
ILT
286Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
287
288 * ldlang.c (lang_set_startof): Don't do anything for a
289 relocateable link.
290
291 * ldgram.y (mri_script_file): Call mri_draw_tree.
292 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
293 create memory regions.
294 (mri_load): Don't call mri_draw_tree.
295 * mri.h (mri_draw_tree): Declare.
296
297 * configure.tgt (m68*-*-psos): New target.
298 * emulparams/m68kpsos.sh: New file.
299 * scripttempl/psos.sc: New file.
300 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
301 (em68kpsos.c): New target.
302
db3bfcd6
ILT
303Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
304
95d31c3c
ILT
305 * configure.tgt (*-*-ieee*): New target; use vanilla.
306
db3bfcd6
ILT
307 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
308 `:foo' from ${ARCH}.
309
9cb8a981
ILT
310Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
311
312 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
313 .rodata in .data.
314
62548927
ILT
315Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
316
b6acf084
ILT
317 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
318
62548927
ILT
319 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
320 it looks like we might be linking in two different versions of the
321 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
322
708f7fbc
ILT
323Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
324
325 * ldlang.c (lang_size_sections): Increment the section size when a
326 padding statement is encountered.
327
2e598345
ILT
328Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
329
330 * configure.in: Look for --enable-shared. Change the value of
331 BFDLIB when linking against a shared library on SunOS.
332 * configure: Rebuild.
333 * configure.host: If using a shared BFD library, try to pass a
334 reasonable -rpath option when linking.
335 * Makefile.in (BFDLIB): Set to @BFDLIB@.
336
337Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
338
339 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
340 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
341
f8d48971
ILT
342Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
343
344 Support for building bfd and opcodes as shared libraries, based on
345 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
346 * configure.in (HLDFLAGS): New substitution.
347 * configure: Rebuild.
348 * configure.host: Set HLDFLAGS on SunOS.
349 * Makefile.in (HLDFLAGS): New variable.
350 (BFDDEP): New variable.
351 (BFDLIB): Change to -L../bfd -lbfd.
352 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
353 $(HLDFLAGS) in link.
354 (check): Set LD_LIBRARY_PATH in the environment.
355
356Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
357
358 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
359 in the read-only section, not read/write unless we are making a
360 shared library.
361 (.debug*): Add dwarf debug sections.
362 (.rela.{sdata*,sbss*}): Add sections.
363
ae9120f9
ILT
364Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
365
366 * configure: Regenerate.
367
48766668
ILT
368Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
369
be54c2b6
ILT
370 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
371 for SVR4 compatibility.
372
48766668
ILT
373 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
374
923b8e0c
SC
375Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
376
377 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
378 * emultempl/pe.em (definfo init): Make the default stack reserve
379 of a PPC larger.
380
40ab9bb9
ILT
381Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
382
383 * configure.tgt (m68*-apple-aux*): New target.
384 * emulparams/m68kaux.sh: New file.
385 * scripttempl/m68kaux.sc: New file.
386 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
387 (em68kaux.c): New target.
388
bc60f924
ILT
389Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
390
391 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
392 -bnoentry, since the right thing tends to happen anyhow.
393
4bdd9722
ILT
394Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
395
396 * ld.texinfo, ld.1: Document -export-dynamic.
397
398Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
399
400 * emultempl/sunos.em: Check for native compile by comparing
401 ${target} and ${host}.
402
de8d1609
JSC
403Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
404
405 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
406 TEXT_START_ADDR to allow use on IDT and PMON systems.
407
1759ad4d
SC
408Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
409
410 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
411 correct spelling.
412
b0cc94a1
DE
413Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
414
415 * configure.tgt (sparc64-*-solaris2*): New configuration.
416 (sparc64-*-aout*): Renamed from sparc64*.
417
7df4ba26
ILT
418Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
419
420 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
421 * genscripts.sh: Set host, target and target_alias variables.
422 Check for native compile by comparing ${target} and ${host}.
423 * emultempl/elf32.em: Likewise.
424 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
425
4d99a950
MM
426Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
427
428 * scripttempl/elfppc.sc: Refine eabi support to better support
429 .sdata, .sdata2, .sbss, etc. sections.
430
a411bea0
ILT
431Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
432
433 * ldgram.y (%union): Add phdr field.
434 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
435 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
436 (opt_hdrs, hdr): Remove.
437 (phdr_val): New nonterminal.
438 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
439 and phdrs parameters. Add flags parameter.
440 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
441 to bfd_record_phdr.
442 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
443 phdrs fields. Add flags field.
444 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
445 (lang_new_phdr): Update declaration.
446 * ld.texinfo: Document FLAGS.
447
fe1379d4
ILT
448Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
449
0bc9a7d2
ILT
450 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
451 Don't make a shared library because of an undefined reference to
452 __GLOBAL_OFFSET_TABLE_.
453
fe1379d4
ILT
454 Add some Irix 5 support, mostly from Kazumoto Kojima
455 <kkojima@info.kanagawa-u.ac.jp>:
456 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
457 (SHLIB_TEXT_START_ADDR): Define.
458 (OTHER_GOT_SYMBOLS): Define.
459 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
460 (EXECUTABLE_SYMBOLS): Don't define.
461 (DYNAMIC_LINK): Don't define.
462 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
463 * scripttempl/elfmips.sc: New file.
464 * configure.host (mips*-dec-bsd*): Change mips to mips*.
465 (mips*-sgi-irix4*): Likewise.
466 (mips*-sgi-irix5*): New entry.
467 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
468 elf.sc.
469 (eelf32lmip.c): Likewise.
470
be03dc3e
MM
471Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
472
473 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
474 .rela.got.neg section.
475
23cb3b65
ILT
476Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
477
2afa4f21
ILT
478 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
479
23cb3b65
ILT
480 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
481 ANSI_PROTOTYPES is defined. Remove special handling of
482 WINDOWS_NT. Various indendation fixes.
483 (vfinfo): Change fmt parameter to const char *.
484 (info_msg): Write <stdarg.h> version.
485 (einfo, minfo, finfo): Likewise.
486 (info_assert): Change file parameter to const char *.
487 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
488 defined, use a real prototype.
489 (info_assert): Change first parameter to be const char *.
490
4fe13b2b
MM
491Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
492
493 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
494 in old support that 2.7.2 needs, but the current compiler does
495 not.
496
497 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
498 correct Linker script template.
499
500 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
501 not 0x400000.
502 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
503
37e46b8b
ILT
504Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
505
506 * scripttempl/alpha.sc: Put .rconst right after .rdata.
507
d4279937
SC
508Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
509
510 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
511 sort using right pointer.
512
9dee2948
MM
513Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
514
515 * scripttempl/elfppc.sc: Remove support for creating special
516 labels for eabi section begin/end here. The compiler now uses
517 crt{i,n}.o to create these symbols.
518
ed1f99e7
ILT
519Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
520
521 * configure.host: Change existing Linux HOSTING_CRT0 to be used
522 for a.out only, and put in appropriate HOSTING_CRT0 and
523 HOSTING_LIBS values for Linux ELF.
524
5c5e420c
DE
525Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
526
527 * scripttempl/h8300.sc: Use all 64K for ram.
528 * scripttempl/h8300h.sc: Define 256K ram size.
529
530Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
531
532 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
533 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
534 was used, regardless of whether -bE was used.
535
67cf6778
ILT
536Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
537
538 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
539 relocateable before calling ldctor_build_sets if the output file
540 is in an XCOFF format.
541
4fc151e9
ILT
542Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
543
544 * ldwrite.c (build_link_order): When handling a data statement, if
545 the endianness of the output file is unknown, use the endianness
546 of the input file.
547
d8d4a450
SS
548Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
549
550 * mpw-config.in: Recognize mips-*-* as equivalent to
551 mips-idt-ecoff.
552 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
553 * mpw-ld.r: Add version resources.
554 (cfrg): Use symbolic instead of literal name for executable.
555
9499591f
KK
556Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
557
558 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
559
e8bb9a12
DE
560Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
561
562 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
563 (print_statement_list): Renamed from print_statement. All callers
564 updated.
565 (print_statement): New function to print just one statement.
566 (print_{data,reloc,padding}_statement): Don't crash if
567 output_section == NULL.
568 (dprint_statement): New function.
569
95b3cb6b
DE
570 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
571 call to sort_sections.
572
04215033
ILT
573Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
574
9430b933
ILT
575 * emultempl/aix.em (unix_ld): New static variable.
576 (gld${EMULATION_NAME}_parse_args): Handle -unix.
577 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
578 gc as false and export_defineds as true to size_dynamic_sections.
579
04215033
ILT
580 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
581 phase if the current section is abs_output_section.
582
d4279937
SC
583
584Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
585
586 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
587 to sort_sections.
588
061e65f8
ILT
589Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
590
591 * ldgram.y (PHDRS): New token.
592 (ifile_p1): Accept phdrs.
593 (section): Accept phdr_opt at the end of the section definition.
594 (phdr_op): New nonterminal.
595 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
596 * ldlex.l: Accept PHDRS.
597 * ldlang.h (struct lang_output_section_phdr_list): Define.
598 (lang_output_section_statement_type): Add phdrs field.
599 (struct lang_phdr): Define.
600 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
601 (lang_new_phdr): Declare.
602 * ldlang.c (lang_phdr_list): New static variable.
603 (lang_output_section_statement_lookup): Initialize phdrs field.
604 (lang_process): Call lang_record_phdrs.
605 (lang_new_phdr): New function.
606 (lang_section_in_phdr): New function.
607 (lang_record_phdrs): New static function.
608 * ld.texinfo: Document PHDRS.
609
d611a82e
KK
610Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
611
612 * scripttempl/ppcpe.sc: Moved .edata into its own section to
613 expose it.
614
e7f2e923
ILT
615Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
616
617 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
618 HOSTING_LIBS for testing.
619 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
620 testing.
621
5aca4058
ILT
622Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
623
624 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
625 and -n.
626
6a4667f4
ILT
627Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
628
629 * configure: Rebuild with autoconf 2.7.
630
d87e370b
DE
631Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
632
633 * scripttempl/pe.sc: Two .junk's is too much junk.
634
13eb3290
ILT
635Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
636
caf2a913
ILT
637 * configure.in: Use BFD_NEED_DECLARATION.
638 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
639 * configure, config.in: Rebuild with autoconf 2.6.
640
13eb3290 641 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
6a4667f4 642 being unsupported if this is not a relocateable link and the input
13eb3290
ILT
643 BFD supports it, since ldctor_build_sets can cope with that case.
644
645Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
646
647 * configure.tgt (powerpc-*-macos*): New target.
648 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
649 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
650 (eppcmacos.c): New target.
651 * mpw-eppcmacos.c: Update.
652 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
653
dfc84b08
ILT
654Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
655
656 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
657 $(host_canonical) and $(target_canonical).
658 (CXX_FOR_TARGET): Likewise.
659
c4a14eef
DE
660Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
661
662 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
663 so the malloc heap begins at a sane place.
664
b218076e
KR
665Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
666
667 Version 2.6 released.
668 * ldver.c (ldversion): Update to 2.6.
669
670 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
671 $(GENERATED_*FILES), since they need to be retained by distclean.
672 (maintainer-clean, realclean): Delete them here.
673
20406675
ILT
674Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
675
b218076e
KR
676 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
677 base file with FOPEN_WB, not "w".
678
20406675
ILT
679 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
680 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
681 were used.
682 (gld${EMULATION_NAME}_before_allocation): Use the environment
683 variable LD_RUN_PATH if -rpath was not used.
684 * ld.texinfo, ld.1: Document LD_RUN_PATH.
685
97121c41
ILT
686Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
687
20406675
ILT
688 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
689 -bl and -bloadmap options.
690
7eb5ccf5
ILT
691 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
692 report a better error.
693
97121c41
ILT
694 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
695 new local variable special_sections, and pass it to
696 size_dynamic_sections. Look through the results, and move the
697 sections around in the mapping so that they are defined correctly.
698
9d3d323a
ILT
699Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
700
701 * ldemul.c (ldemul_default_target): Cast getenv return value.
702
b2306582
KK
703Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
704
9d3d323a
ILT
705 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
706 Executable support.
707 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
708 support.
b2306582
KK
709
710 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
711 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
712
713 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
9d3d323a
ILT
714 (gld_$_before_allocation): added hooks for toc construction based
715 on the above macro.
b2306582 716
e2ce2da8
ILT
717Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
718
719 * ld.texinfo: The linker does not use _main as an entry point.
720
36b72df3
ILT
721Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
722
723 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
724 0x2000 not 0x200.
725
7ae3065c
ILT
726Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
727
92c71a0b
ILT
728 * configure.in: Add test for whether free must be declared.
729 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
730 * acconfig.h: Explain NEED_DECLARATION_FREE.
731 * configure, config.in: Rebuild.
732
7ae3065c
ILT
733 * lexsup.c (parse_args): Take B:: out of shortopts.
734
bd329d41
KR
735Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
736
737 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
738 for now, as with m68k4kbsd, until shared library support gets
739 done.
740
741 * configure.host: For i386 BSD variants, crt0.o lives in
742 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
743
63982998
ILT
744Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
745
746 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
747 (edelta68.c): New target.
92188bd2 748 * configure.tgt (m68*-motorola-sysv*): New target.
63982998
ILT
749 * emulparams/delta68.sh: New file.
750 * scripttempl/delta68.sc: New file.
751
752 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
753 addresses.
754
2a80ec10
ILT
755Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
756
ef51e36a
ILT
757 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
758 ALIGN and ALIGNMOD statements.
759
2a80ec10
ILT
760 * emultempl/aix.em: Include ldgram.h.
761 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
762 AIX 4.1.
763 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
764
02a5d235
ILT
765Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
766
767 * configure.host (alpha-*-linux*): New host.
768 * configure.tgt (alpha-*-linux*): New target.
769
5666490b
ILT
770Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
771
772 * emultempl/aix.em (export_files): Remove.
773 (import_files): Make static.
774 (struct export_symbol_list): Define.
775 (export_symbols): New static variable.
776 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
777 correctly. Call read_file for an export file.
778 (gld${EMULATION_NAME}_before_allocation): Call
779 bfd_xcoff_export_symbol for each export symbol, rather than
780 calling read_file for each export file.
781 (gld${EMULATION_NAME}_read_file): For an export file, make the
782 exported symbols undefined, and store them on the export_symbols
783 list.
784
2543860d
SC
785Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
786
787 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
788 Don't hang if last option is unrecognised.
789 (gld_${EMULATION_NAME}_set_symbols): Insert created
790 symbols into ABS output section.
791
d0ae7d95
NH
792Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
793
794 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
795 m68k4k arch.
796 (em68k4knbsd.c): New rule.
797
798 * configure.tgt: Added support for the NetBSD m68k4k arch.
799
800 * genscripts.sh, ldint.texinfo,
801 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
802 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
803 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
804 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
805 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
806 pc532machaout,rce,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
807 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
808 PAGE_SIZE to TARGET_PAGE_SIZE.
809
810 * emulparams/m68knbsd.h: Ditto.
811 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
812 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
813 being.
814
815 * emulparams/m68k4knbsd.sh: New file.
816
817 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
818
cf79773c
ILT
819Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
820
821 * emultempl/aix.em: Include ldctor.h.
822 (gld${EMULATION_NAME}_after_open): New static function.
823 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
824 (gld${EMULATION_NAME}_find_relocs): New static function.
825 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
826 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
827 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
828 * ldctor.c (struct set_info): Move definition into ldctor.h.
829 (struct set_element): Likewise.
830 (sets): Make non-static.
831 (ldctor_add_set_entry): Add name parameter. Save it in the new
832 set element.
833 (ldctor_build_sets): Avoid being called twice. Pass set element
834 name to lang_add_reloc.
835 * ldctor.h (struct set_info): Move definition here from ldctor.c.
836 (struct set_element): Likewise. Add new field name.
837 (sets): Declare.
838 (ldctor_add_set_entry): Declare new name parameter.
839 * ldwrite.c (build_link_order): Don't insist that either name or
840 section be NULL in a lang_reloc_statement.
841 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
842 new name parameter.
843 (constructor_callback): Pass name to ldctor_add_new_set_entry for
844 new name parameter.
845
846 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
847
49af8a4e
SS
848Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
849
850 * mpw-config.in: Add PowerMac target support, generate config.h.
851 * mac-ld.r: New file, Mac resources.
852 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
853 * mpw-make.in: Remove.
854 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
855
328e5a48
ILT
856Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
857
c7c8b500
ILT
858 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
859 -static as a synonym for -bnso.
860
328e5a48
ILT
861 * scripttempl/aix.sc: Move special symbols inside sections.
862 Always start .data at 0.
863
8a8965f1
PB
864Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
865
866 * Makefile.in (diststuff): Also make info.
867 (maintainer-clean realclean): Also delete *.info*.
868
e54bf1c1
ILT
869Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
870
7d6439d9
ILT
871 * emultempl/aix.em: Add support for various AIX linker options,
872 for AIX import and export files, and for AIX shared objects.
873 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
874
875 * ldmain.c (main): Initialize new field link_info.static_link.
876
877 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
878 (constructor_callback): Likewise.
879 * ldmisc.c (vfinfo): Likewise.
880 * ldwrite.c (build_link_order): Likewise.
881
e54bf1c1
ILT
882 * ld.texinfo: The MRI ALIGN directive is supported.
883
884Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
885
886 * emulparams/elf32vr4300.sh: Deleted.
887 * emulparams/elf32vr4300el.sh: Deleted.
888 * emulparams/elf32b4300.sh: Added.
889 * emulparams/elf32l4300.sh: Added.
890 * configure.tgt, Makefile.in: Updated the build to use the
891 new 8.3 unique names.
892
5e8e7e66
ILT
893Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
894
e54bf1c1
ILT
895 * ldlang.c (entry_symbol): Make non-static.
896 * ldlang.h (entry_symbol): Declare.
897
5e8e7e66
ILT
898 * ldlex.l: Treat PROVIDE as a keyword in expression state.
899
9c284f3f
SC
900Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
901
902 * scripttempl/pe.sc (.bss): Move to be after .text
903
03165292
ILT
904Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
905
5df68a88
ILT
906 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
907 Search trinary.cond rather than searching trinary.lhs twice. From
908 linli@ihp.PHys.ethz.CH.
909
235c6a67
ILT
910 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
911 directory searching code into gld${EMULATION_NAME}_search_dir.
912 (gld${EMULATION_NAME}_search_dir): New static function, extracted
913 from gld${EMULATION_NAME}_find_so.
914 (global_needed, global_found): New static variables.
915 (gld${EMULATION_NAME}_after_open): New static function.
916 (gld${EMULATION_NAME}_search_needed): New static function.
917 (gld${EMULATION_NAME}_try_needed): New static function.
918 (gld${EMULATION_NAME}_check_needed): New static function.
919 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
920 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
921
03165292
ILT
922 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
923 (eelf32lppc.c): Likewise.
924 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
925 (GENERATE_SHLIB_SCRIPT): Define as yes.
926
b5f076d4
ILT
927Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
928
929 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
930 bfd_link_needed-list; make appropriate changes.
931
932 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
933 (rs6000-*-aix*): New target; use aixrs6.
934 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
935 * emultempl/aix.em: New file.
936 * scripttempl/aix.sc: New file.
937 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
938 (eaixppc.c, eaixrs6.c): New targets.
939
940Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
941
942 * scripttemp/pe.sc (.reloc): Move to the end.
943
091824eb
ILT
944Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
945
946 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
947 section which was not linked into the final output.
948
ef1d2d2e
SC
949Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
950
951 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
952 fatal typos.
953
5caef232
ILT
954Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
955
956 * ld.h (args_type): Add rpath_link field.
957 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
958 required dependencies in rpath_link path. Only search
959 LD_LIBRARY_PATH when configured native.
960 * lexsup.c (parse_args): Recognize -rpath-link.
961 * ld.1, ld.texinfo: Document -rpath-link.
962
776f2590
ILT
963Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
964
965 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
966 bother searching for needed libraries unless doing a final link.
967
80165535
KR
968Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
969
970 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
971
972 * ld/ld.1: Fix formatting bugs.
973
f054ce20
ILT
974Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
975
976 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
977 * ldexp.h (exp_get_abs_int): Update declaration.
978 * ldlang.c (print_output_section_statement): Use fprintf_vma to
979 print return value of exp_get_abs_int.
980
8055e7a8
ILT
981Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
982
983 * emultempl/elf32.em (global_stat): New file static variable.
984 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
985 that the file has not already been included under another name.
986 (gld${EMULATION_NAME}_stat_needed): New static function.
987
0b0642d6
ILT
988Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
989
990 * scripttempl/armcoff.sc: Start .text at 0x8000.
991 Start .data at 0x40000.
992
dd16b655
ILT
993Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
994
0b0642d6
ILT
995 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
996 command_line.rpath is set, use it, rather than the -L options, to
997 build the rules section.
998 * ld.texinfo: Document this use of -rpath.
999
dd16b655
ILT
1000 * lexsup.c (parse_args): Don't set link_info.shared for -assert
1001 pure-text. Pass true, not 1, to lang_add_entry.
1002 * emultempl/sunos.em (find_assign): New static variable.
1003 (found_assign): New static variable.
1004 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
1005 If not a relocateable link, and no start symbol was specified on
1006 the command line, and there are any undefined symbols, set
1007 link_info.shared. If link_info.shared is set, set the address of
1008 the .text section to 0x20.
1009 (gld${EMULATION_NAME}_find_assignment): Rename from
1010 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
1011 set, then just set found_assign based on whether an assignment is
1012 found to find_assign.
1013 (gld${EMULATION_NAME}_get_script): Don't use a special script when
1014 producing a shared library.
1015 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
1016 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
1017 * ldlang.c (entry_from_cmdline): New global variable.
1018 (lang_add_entry): Change cmdline parameter from int to boolean.
1019 Use global entry_from_cmdline rather than function static
1020 from_cmdline.
1021 * ldlang.h (entry_from_cmdline): Declare.
1022 (lang_add_entry): Change declaration of second parameter from int
1023 to boolean.
1024 * ldgram.y: Pass false, not 0, to lang_add_entry.
1025
5753006b
ILT
1026Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
1027
630f4ac9
ILT
1028 * ld.h (parsing_defsym): Declare.
1029 * ldlex.h (lex_string): Declare.
1030 * ldlex.l (lex_string): Define.
1031 * lexsup.c (parsing_defsym): Define.
1032 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
1033 lex_redirect, and clear it after calling yyparse. Set
1034 parsing_defsym around call to yyparse.
1035 * ldmain.c (main): Set lex_string before calling lex_redirect, and
1036 clear it after calling yyparse.
1037 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
1038 in linker scripts correctly.
1039
a69bb1fa
ILT
1040 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
1041 COFF targets, allowing for the leading underscore used on SPARC
1042 COFF.
1043
5753006b
ILT
1044 * lexsup.c (parse_args): Handle -assert.
1045 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
1046 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
1047 shared library script when appropriate.
1048 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
1049 section at SIZEOF_HEADERS.
1050
132dd910
DE
1051Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
1052
1053 * Makefile.in (earmcoff.c): Build.
1054 * configure.tgt (arm-*-coff): New target
1055 * emulparms/armcoff.sh: New file.
1056 * scripttempl/armcoff.sc: New file.
1057
ef898239
ILT
1058Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
1059
1060 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
1061
8dd03673
ILT
1062Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
1063
1064 * ldfile.c (ldfile_set_output_arch): Make arch const.
1065
7453a753
MM
1066Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1067
1068 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
1069 beginning of the .bss area, not at the end of data. Add
1070 __sbss_{start,end} symbols.
1071
1072Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
1073
1074 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
1075 (CXX_FOR_TARGET, install): Likewise.
1076
208bc89e
ILT
1077Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
1078
1079 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
1080 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
1081 (CXX_FOR_TARGET): Likewise.
1082 (install): Likewise.
1083 (GENERATED_HFILES): Remove config.h.
1084 (.dep): Depend upon config.h.
1085
08879cde
ILT
1086Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
1087
1088 * configure.tgt (mips*-dec-netbsd*): New target.
1089
db8beef4
KR
1090Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
1091
1092 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
1093
1094Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
1095
208bc89e 1096 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
db8beef4 1097
cf7f2f71 1098Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
20a753df
SC
1099
1100 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
1101 Start .text section on the right boundary. Always align
1102 stabs.
1103
b75d0928
ILT
1104Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
1105
4977f3b4
ILT
1106 * Makefile.in (maintainer-clean): New target.
1107
cf7f2f71
ILT
1108 * ldmain.c (struct warning_callback_info): Define.
1109 (warning_callback): Add new parameter symbol. Call
1110 warning_find_reloc to try to find the section and VMA.
1111 (warning_find_reloc): New static function.
1112 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1113 Pass NULL as symbol parameter to warning callback.
1114
cca520b5
ILT
1115 * ld.texinfo: Clarify -L option.
1116
b75d0928
ILT
1117 * ldlang.c (lang_one_common): Add cast to avoid warning.
1118 (topower): Likewise. Also, reindent.
1119 * ldwrite.c (clone_section): Change i to unsigned int.
1120 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
1121 cast to avoid warning.
1122
673f5b9f
ILT
1123Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
1124
ed753c20
ILT
1125 * Makefile.in (config.status): Depend upon configure.tgt.
1126
62b4ac8b
ILT
1127 * ldemul.h (ldemul_set_symbols): Declare.
1128 (ldemul_parse_args): Declare.
1129 * ldemul.c (ldemul_parse_args): Fix indentation.
1130
b8345a37
ILT
1131 * configure.in: Call AC_HEADER_DIRENT.
1132 * configure, config.in: Rebuild.
1133 * emultempl/sunos.em: Use autoconf recommend mechanism to define
1134 DIR and struct dirent.
1135
d62ef165
ILT
1136 * configure.tgt (mips*-*-bsd*): New case.
1137
673f5b9f
ILT
1138 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
1139 New case.
1140 * configure.tgt (i[345]86-*-ptx*): New case.
1141
9d325543
ILT
1142Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
1143
ef346f1a
ILT
1144 * config.in: Rename from config.h.in.
1145 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
1146 Check for config.h:config.in when creating stamp-h.
1147 * configure: Rebuild.
1148 * Makefile.in (stamp-h): Depend upon config.in rather than
1149 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
1150 calling config.status.
1151
f40d9bc2
ILT
1152 * Makefile.in (distclean): Remove config.h and stamp-h.
1153
36ea6198
ILT
1154 * configure.host (sparc-*-sunos64*): Remove.
1155 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
1156
9d325543
ILT
1157 * ldexp.c (exp_fold_tree): Don't warn about moving the location
1158 counter backward in the absolute section.
1159
1160Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
1161
1162 * configure.in: Rewrite to use autoconf.
1163 * configure.host: New file.
1164 * configure.tgt: New file.
1165 * aclocal.m4: New file.
1166 * configure: New file, built by autoconf.
1167 * acconfig.h: New file.
1168 * config.h.in: New file, built by autoheader.
1169 * sysdep.h: New file.
1170 * ld.h: Incorporate old contents of config.h.
1171 * config.h: Remove.
1172 * Makefile.in: Various changes for new configure script. Also:
1173 (CC_FOR_BUILD): Remove.
1174 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
1175 (dep.sed): Use @SRCDIR@, not @srcdir@.
1176 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
1177 * genscripts.sh: Create ldscripts if it does not exist.
1178 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
1179 * mpw-esh.c, emultemp/*.em: Likewise.
1180 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
1181 HAVE_SBRK here.
1182 * config/*.mt, config/*.mh: Remove.
1183
af0786b4
KR
1184Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
1185
1186 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
1187 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
1188
1189Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
1190
1191 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
1192
f6feefe4
ILT
1193Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
1194
1195 * ldmain.c (warning_callback): Add abfd, section, and address
1196 parameters.
1197 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1198 Change call to warning accordingly.
1199
1200 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
1201 relocateable and not shared, put .gnu.warning.SYMBOL sections into
1202 the .text section.
1203
751b7dcc
JSC
1204Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
1205
1206 * configure.in: Added mips*vr4300-idt-elf* and
1207 mips*vr4300el-idt-elf* targets.
1208 * Makefile.in: Added eelf32vr4300* targets.
1209 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
1210 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
1211
4dd284fa
ILT
1212Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
1213
1214 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
1215 <brendan@cygnus.com>.
1216
5f8ac7e7
SC
1217Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
1218
1219 * ldemul.c (ldemul_parse_args): New.
1220 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
1221 * lexsup.c (all pe stuff): Moved into pe.em
1222 (parse_args): Call emulation arg parser.
1223 * emultempl/pe.em (parse_args): handle PE specfic args.
1224
0b4fc03b
ILT
1225Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
1226
1227 * ldlang.c (lang_memory_region_lookup): Don't use the first region
1228 as the default region. Create a new region instead.
1229
1230Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
1231
1232 * ldemul.c (ldemul_set_symbols): New function.
1233 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
1234 * ldmain.c (main): Add call to ldemul_set_symbols.
1235 * lexsup.c (set_pe_value): New args.
1236 (set_pe_name): New.
1237 (parse_args): Cope with new set_pe_value args.
1238 * emultempl/pe.em (set_symbols): New function.
1239 (ld_emulation_xfer_struct): Add set_symbols.
1240 * scripttempl/pe.sc: Use new symbols.
1241
1242Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
1243
1244 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
1245 For -Y, ignore a leading `P,', and only call set_default_dirlist
1246 after processing all the other arguments.
1247
6fd48357
SC
1248Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
1249
1250 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
1251 * emulparams/armpe.sh: Run PE script.
1252
011d93b3
SC
1253Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
1254
1255 * ldmain.c (main): Remove PE stuff.
1256 * lexsup.c (options): Load more PE options.
6fd48357 1257 (set_pe_value): New function.
011d93b3 1258
eb7f87c5
SC
1259Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
1260
1261
1262 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
1263 * emultempl/pe.sc: New file performs generic PE support and sorts
1264 archive members.
1265 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
1266 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
1267 * scripttempl/pe.sc: New.
1268 * Makefile.in: Use new files.
1269
ed67cfa2
DE
1270Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
1271
1272 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
1273 (.strings,.ctors,.dtors): Likewise.
1274
22cd79c5
SC
1275Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
1276
1277 * scripttempl/armpe.sc: Always start code at 0x401000, even
1278 if -r.
1279 * ldwrite.c (strdup): New extern declaration.
1280 * ldgram.y (atype): New rule to clarify type parsing.
1281 * ldlang.c (init_os): Remove commented out code.
1282 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
1283 unless told not to by the link script.
1284
80fd1f45
ILT
1285Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
1286
1d169acc
ILT
1287 * ldlang.c (lang_set_startof): New static function.
1288 (lang_process): Call it.
1289
9b222190
ILT
1290 * ldgram.y: Tweak casesymlist to avoid bison errors.
1291
80fd1f45
ILT
1292 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
1293 Solaris compatibility.
1294
3a473096
ILT
1295Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
1296
1297 * ldgram.y (YYDEBUG): If not defined, define as 1.
1298 (CASE, EXTERN, START): New tokens.
1299 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
1300 (casesymlist): New nonterminal.
1301 (extern_name_list): New nonterminal.
1302 * ldlex.l: Accept lower case trailing base specifiers. Don't
1303 ignore the first digit when the base is a suffix. Accept many
1304 EXPRESSION state tokens in MRI state. Support MRI continuation
1305 lines and MRI semicolon comments. Accept all MRI keywords in
1306 lower case. Add CASE, EXTERN, and START MRI keywords.
1307
52a55937
KR
1308Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
1309
1310 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
1311 instead of alloca.
1312
65d22248
C
1313Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1314
1315 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
1316 $r/../gcc/xgcc unless it is present.
1317
1318Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
1319
1320 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
1321 when CONSTRUCTING.
1322 * scripttempl/m68klynx.sc: Likewise.
1323 * scripttempl/nw.sc: Likewise.
1324 * scripttempl/sa29200.sc: Likewise.
1325 * scripttempl/sparclynx.sc: Likewise.
1326
1327Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
1328
1329 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
1330
cc298fb9
KR
1331Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
1332
1333 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
1334
1335Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
1336
1337 * scripttempl/i386pe.sc: Cope with constructors.
1338 * scripttempl/z8ksim.sc: Deleted.
1339 * scripttempl/z8000.sc: Resurrected as this, but
1340 can handle z8001 and z8002 formats.
1341 * emulparams/z8ksim.sh: Deleted.
1342 * emulparams/{z8001.sh, z8002.sh}: New files.
1343 * config/z8ksim.mt: Deleted
1344 * config/z8k-coff.mt: New, generates both emulations.
1345
1346Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
1347
1348 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
1349 %B, in case it is in an archive.
1350
59a0866d
ILT
1351Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
1352
1353 * ldlang.c (lang_process): Call reset_memory_regions for each
1354 relaxation pass.
1355
1356Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
1357
1358 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
1359 _SDA_BASE.
1360
d2c66084
KR
1361Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
1362
1363 * ldmain.c (constructor_callback): Allocate set_name in stack
1364 frame, rather than always calling alloca with a fixed size.
1365
45bc7188
DE
1366Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
1367
1368 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
1369 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
1370
242eee7a
ILT
1371Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
1372
45bc7188
DE
1373 * ldwrite.c (clone_section): Set the alignment of the clone
1374 section to that of the section being cloned.
1375
242eee7a
ILT
1376 * ldwrite.c (split_sections): Don't split the first input section
1377 into a new output section.
1378
c7950dcc
MM
1379Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
1380
1381 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
1382 (GENERATE_SHLIB_SCRIPT): Define as yes.
1383
8a0683c1
ILT
1384Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
1385
63e1380d
ILT
1386 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
1387
8a0683c1
ILT
1388 * ldver.c (help): Update list of options to match currently
1389 supported list.
1390
047e0fcd
ILT
1391Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
1392
1393 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
1394 after_open field.
1395
1396 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
1397 it takes a size_t anyhow.
1398 (exp_binop): Likewise.
1399 (exp_trinop): Likewise.
1400 (exp_unop): Likewise.
1401 (exp_nameop): Likewise.
1402 (exp_assop): Likewise.
1403 * ldlang.c (lang_memory_region_lookup): Likewise.
1404 (init_os): Likewise.
1405 (ldlang_add_undef): Likewise.
1406 (insert_pad): Likewise.
1407 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
1408 bfd_size_type.
1409
1410 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
1411
395ccfce
ILT
1412Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
1413
1414 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
1415 declaration.
1416 (ld_emulation_xfer_type): Add search parameter to
1417 open_dynamic_archive entry point.
1418 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
1419 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
1420 make non-static. Change all callers to use new name.
1421 (ldfile_open_file_search): Make static. If entry is dynamic, call
1422 ldemul_open_dynamic_archive.
1423 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
1424 * ldfile.h (ldfile_open_file_search): Don't declare.
1425 (ldfile_try_open_bfd): Declare.
1426 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1427 Accept search parameter. Don't search for a library, just look in
1428 a single place.
1429 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
1430 Likewise.
1431
1432Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
1433
1434 * ldmain.c (set_scripts_dir): Don't base script directory on
1435 current directory.
1436
917199fe
ILT
1437Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
1438
1439 * ldmisc.c (vfinfo): Don't print the line number if it isn't
1440 meaningful.
1441
4551e108
ILT
1442Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
1443
917199fe
ILT
1444 * ld.h (ld_config_type): Add field warn_constructors.
1445 * ldmain.c (add_to_set): Warn if config.warn_constructors.
1446 (constructor_callback): Likewise.
1447 * lexsup.c (parse_args): Handle -warn-constructors.
1448 * ld.texinfo, ld.1: Document -warn-constructors.
1449
c16b92d2
ILT
1450 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
1451 get confused by directory names if we searched for the file.
1452
7213def7
ILT
1453 Based on patches from H.J. Lu <hjl@nynexst.com>:
1454 * ldlang.h (lang_input_statement_type): Add new field dynamic.
1455 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
1456 * ldfile.c: Include bfdlink.h.
1457 (ldfile_open_file): Check dynamic field of entry, not global
1458 dynamic_link field. Don't do a dynamic search when doing a
1459 relocateable link.
1460 * ldmain.c (main): Don't warn about dynamic_link for a
1461 relocateable link.
1462 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
1463 dynamic is false.
1464 (gld${EMULATION_NAME}_create_output_section_statements): Always
1465 loop over input files.
1466 * Makefile.in: Rebuild dependencies.
1467
4551e108
ILT
1468 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
1469 -shared.
1470
1471Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
1472
1473 * ldmain.c (main): Set link_info.symbolic to false.
1474 * lexsup.c (parse_args): Handle -Bsymbolic.
1475
eac6290c
FF
1476Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
1477
1478 * ldmain.c (HAVE_SBRK): Define for everything except
1479 specific systems that are known to not support sbrk.
1480 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
1481
7523be35
ILT
1482Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
1483
7158d2b1
ILT
1484 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
1485 Handle etree_provide.
1486
7523be35
ILT
1487 * emultempl/elf32.em (global_needed): New static variable.
1488 (global_found): Likewise.
1489 (gld${EMULATION_NAME}_after_open): New static function.
1490 (gld${EMULATION_NAME}_search_needed): Likewise.
1491 (gld${EMULATION_NAME}_try_needed): Likewise.
1492 (gld${EMULATION_NAME}_check_needed): Likewise.
1493 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
1494 gld${EMULATION_NAME}_after_open.
1495
cb848d61
SC
1496Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
1497
1498 * configure.in (i386-*-win32): New target.
cb848d61 1499
22d3533c
ILT
1500Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
1501
1502 * lexsup.c (parse_args): Let -G either set the small data size or
1503 be equivalent to --shared, depending on the next argument. Accept
1504 and ignore -z for Solaris compatibility.
1505
243e7698
ILT
1506Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
1507
1508 * lexsup.c (parse_args): Cast fopen result to PTR before storing
1509 it in link_info.base_file. Fix indentation.
1510
de71eb77
SC
1511Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
1512
1513 * ldmain.c (main): Always initialize PE info in link_info.
1514 * lexsup.c (OPTION_BASE_FILE): New option.
1515 (parse_args): Handle new option.
1516 * emulparams/armpe.sh: Output pei.
1517 * emultempl/i386pe.em: Add newline to end.
1518 * scripttempl/armpe.sc: Change output and quote the $s.
1519 * scripttempl/i386pe.sc: Change output and quote the $s.
1520
1521Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1522
1523 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
1524
1525 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
1526 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
1527 (i386msdos.o): New target.
1528 * config/i386-msdos.mt: Created.
1529 * emulparams/i386msdos.sh: Created.
1530 * scripttempl/i386msdos.sc: Created.
1531
d5131191
MM
1532Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1533
1534 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
1535 that contains pointers to be relocated.
1536
0283d893
SS
1537Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
1538
1539 * mpw-esh.c: New file, modified for MPW from esh.c.
1540 * scripttempl/sh.sc: Reformatted to simplify MPWification,
1541 use *() to concat stab sections instead of [].
1542
1543Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
1544
1545 * scripttempl/armpe.sc: Add constructor support.
1546
935cd0dd
SC
1547Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
1548
1549 * ldlang.c (lang_size_sections): Any section with a DATA
1550 statement has contents.
1551
74b3ead3
KR
1552Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1553
1554 * emulparams/m68kelf.sh (NOP): Define.
1555 (DYNAMIC_LINK): Don't define.
1556 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
1557 will come from the linker script.
1558
ba0784fe
SC
1559Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
1560
1561 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
1562
1563Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
1564
1565 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
1566
1567Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1568
1569 From Andrew Cagney <cagney@highland.com.au>
1570 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
1571 elf32lppc.
1572
28d0c3ce
SC
1573Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
1574
1575 Add support for ARM-PE.
1576 * Makefile.in (ALL_EMULATIONS): Add armpe.o
1577 * configure.in: Recognize armpe.
1578 * config/arm-pe.mt: New file.
1579 * emulparams/armpe.sh: New file.
1580 * scripttempl/armpe.sc: New file.
1581
1582
1583Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
1584
1585 * configure.in (h8300h-*-hms): Deleted
1586 * config/cf-h8300h.mt: Deleted.
1587
1588Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
1589
1590 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
1591
1592 From David Taylor (dtaylor@armltd.co.uk)
1593 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
1594 * configure.in: Recognize arm{,e[lb]-*-aout.
1595 * config/arm[lb]-aout.mt: New files.
1596 * emulparams/armaout[lb].sh: New files.
1597 * scripttempl/armaout.sc: New file.
1598
1599Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1600
1601 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
1602 be unique in 8 characters for DOS.
1603
1604 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
1605 * emulparams/elf32ppcle.sh: Deleted.
1606
1607Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
1608 Tom Griest <griest@cs.yale.edu>
1609
1610 Initial support for PE executables (eg NT, win32)
1611
1612 * Makefile.in (configure.in, ei386pe): Add support.
1613 * ldmain.c (main): Initialize PE argument info.
1614 * ldwrite.c (print_file_stuff): Don't print out .drectve
1615 and .debug section info.
1616 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
1617 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
1618 Handle new arguments.
1619 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
1620 New files
1621
dea16e4d
SG
1622Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
1623
1624 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
1625 segment. This allows ld -r to preserve unwind sections.
1626
417ced0d
MM
1627Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1628
1629 * configure.in: Add little endian PowerPC support.
1630
1631 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
1632 (eelf32ppcle.c): Support for little endian PowerPC.
1633
1634 * config/ppcle-elf32.mt: New file for little endian PowerPC.
1635 * emulparams/elf32ppcle.sh: Ditto.
1636
fa9dea80
KR
1637Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1638
1639 * ldlang.c (print_output_section_statement): Check
1640 subsection_alignment, instead of checking section_alignment twice.
1641 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
1642
55ac59da
JL
1643Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
1644
1645 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
1646
1647Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
1648
1649 * ldwrite.c (ldwrite): Before doing anything, reset the error
1650 code. If bfd_final_link returns an error, but the error code is
1651 unset, don't issue an extra message. Assume a correct error
1652 message was already set.
1653
1654Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1655
1656 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
1657 (em68kelf.o): New target.
1658 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
1659 * configure.in: Use them for m68*-*-elf.
1660
1661Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
1662
1663 Merge in support for Mac MPW as a host.
1664 (Old change descriptions retained for informational value.)
1665
1666 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
1667 (i386-unknown-coff): Remove.
1668 (sh-hitachi-hms): New target.
1669 (emulation_ofiles): Set correctly for each target.
1670 (version, TDEFINES): Add to makefile fragment.
1671 * mpw-make.in (BISON): Use byacc instead of bison.
1672 (em_*.c): Replace with e*.c everywhere.
1673 (ldgram.h): Separate action from ldgram.c generation.
1674 (LD_PROG): Depend on Version.r.
1675 (Version.r): generate from version info.
1676 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
1677
1678 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
1679 i386-unknown-aout, i386-unknown-coff): New targets.
1680 (m68k-aout, m68k-coff): Remove targets.
1681 (mk.tmp): Add definition of EMUL.
1682
1683 * mpw-config.in (emulname): Set based on target.
1684 (ldemul-list.h): Construct.
1685 * mpw-make.in (install-only): New target.
1686 (install): Depend on install-only.
1687
1688 * mpw-make.in (bindir): Fix pathname.
1689 (install): Move here from mpw-build.in.
1690
1691 * mpw-config.in: New file, MPW configuration fragment.
1692 * mpw-make.in: New file, MPW makefile fragment.
1693 (This file is semi-automatically generated from Makefile.in.)
1694 * ldfile.c (slash): If MPW, set to `:'.
1695 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
1696 prevent redefinition errors.
1697
7e87eb13
DE
1698start-sanitize-arc
1699Thu Apr 6 20:38:36 1995 Doug Evans <dje@chestnut.cygnus.com>
1700
1701 * emulparams/arcelf.sh (ENTRY): Define.
1702end-sanitize-arc
1703
1704Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
1705
1706 * ldwrite.c (clone_section): Align clone sections on even
1707 boundaries.
1708
59b4c199
ILT
1709Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
1710
1711 * configure.in: Change linux to default to elf. Using
1712 i[345]86-*-linuxaout will build a linker which defaults to a.out.
1713 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
1714 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
1715 * config/i386-lelf.mt: Remove.
1716
e920526d
ILT
1717Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
1718
7e87eb13
DE
1719 * ldmain.c (main): If opening the map file fails, call
1720 bfd_set_error before calling einfo.
1721
e920526d
ILT
1722 * ld.texinfo, ld.1: Document the -no-keep-memory option.
1723
a735edad
ILT
1724Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
1725
1726 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
1727 does mark shared libraries as executable.
1728
68233e44
ILT
1729Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
1730
1731 * ldlang.c (lang_common): Change power to int. Pass larger values
1732 before smaller values.
1733 (lang_one_common): Treat info as int *. Don't bother to check for
1734 last value, since it is now zero.
1735
f400bbbb
ILT
1736Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
1737
4da1dcea 1738 * ldlang.c (load_symbols): An empty archive is OK.
f400bbbb
ILT
1739
1740Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
1741
1742 * ldmain.c (progress.h): Include.
1743 (main): Call START_PROGRESS and END_PROGRESS.
1744
86d0248d
MM
1745Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
1746
1747 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
1748 .dtors sections, so that these pointers get relocated also.
1749 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
1750 and end of the constructors/destructors.
1751
f2f55b16
ILT
1752Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1753
1754 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
1755 describes an archive, call bfd_link_add_symbols on each member.
1756 * ldmain.c (whole_archive): New variable.
1757 (main): Initialize it to false.
1758 * ldmain.h: Declare whole_archive.
1759 * lexsup.c (parse_args): Grok --whole-archive switch.
ee499d81 1760 * ld.texinfo, ld.1: Document --whole-archive.
f2f55b16 1761
cb5362c5
ILT
1762Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
1763
171eb2f2
ILT
1764 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
1765 using the default emulation.
1766
cb5362c5
ILT
1767 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
1768 LDEMULATION.
1769 * config/hppaelf.mh (HOSTING_EMU): Likewise.
1770
e66fa842
ILT
1771Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
1772
1773 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
1774 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
1775
01bc8f35
ILT
1776Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
1777
22c41f00
ILT
1778 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
1779
01bc8f35
ILT
1780 * ldlex.l: Return -lFILENAME as the token LNAME.
1781 * ldgram.y: Add token LNAME.
1782 (input_list): Treat LNAME like NAME, but pass it to
1783 lang_add_input_file as lang_input_file_is_l_enum.
1784 * ld.texinfo: Document using -lFILENAME in INPUT.
1785
1786Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1787
1788 * ldlang.c (lang_check): If the architectures are compatible call
1789 bfd_merge_private_bfd_data to let the backend do additional
1790 checks.
1791
17948aa1
DE
1792start-sanitize-arc
1793Tue Mar 7 21:10:28 1995 Doug Evans <dje@chestnut.cygnus.com>
1794
1795 * emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
1796 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
1797end-sanitize-arc
1798
b939d1f4
ILT
1799Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
1800
1801 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
1802 all supported emulations.
1803
b73b4131
ILT
1804Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
1805
1806 * ldemul.c (ldemul_list_emulations): New function.
1807 * ldemul.h (ldemul_list_emulations): Declare.
1808 * ldver.c (help): List supported targets and emulations.
1809
1810Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
1811
1812 * scripttempl/elf.sc (.debug): Relocate to address 0.
1813 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
1814 .debug_sfnames, .line): Likewise.
1815
30e12576
ILT
1816Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
1817
1818 * emultempl/elf32.em (hold_rel): New static variable.
1819 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
1820 contents whose names begin with ".rel" after hold_rel. Remove the
1821 assertion which checked for unplaced .rel sections. Don't try to
1822 sort the section into place if place->bfd_section is NULL.
1823 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
1824 section beginning with ".rel".
1825
1826Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
1827
1828 Doc note from pierre@phi.la.tce.com (Pierre Willard):
1829 * ld.texinfo: -X and -x work even if -s or -S are not specified.
1830 * ld.1: Similar change.
1831
0b153077
ILT
1832Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
1833
1834 * emulparams/gld960coff.sh (COFF_CTORS): Define.
1835 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
1836
882c80a7
ILT
1837Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
1838
1839 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
1840 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
1841 * config/i386-lelf.mt: New file.
1842 * config/i386-gelf.mt: New file.
1843
decc32b7
RS
1844Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
1845
1846 * configure.in: Match on mips-ecoff, and default to the IDT
1847 configuration.
1848
1849Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
1850
1851 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
1852 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
1853 to double the size of the table.
1854
1855start-sanitize-arc
1856Thu Feb 9 19:03:25 1995 Doug Evans <dje@canuck.cygnus.com>
1857
1858 * emulparms/arcelf.sh (TEMPLATE_NAME): Comment out.
1859end-sanitize-arc
1860
4ad2d640
KR
1861Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1862
1863 * Makefile.in (distclean): Do recursive deletion, since ldscripts
1864 is a directory.
1865
1f59c7a7
ILT
1866Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
1867
be2213eb
ILT
1868 * ldmain.c (main): If trace_file_tries is true, and we are using
1869 an internal linker script, print out the script.
1870 * ldfile.c (try_open): Reindent function. Make the messages about
1871 opening script files more informative.
1872
1f59c7a7
ILT
1873 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
1874 * ld.texinfo, ld.1: Update accordingly.
1875
3565dee4
ILT
1876Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
1877
1878 * ldlang.c (lang_one_common): Adjust references to common symbol
1879 information for new structure.
1880
5039302a
ILT
1881Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
1882
23244cd6
ILT
1883 * ldmain.c (undefined_symbol): Handle section being NULL.
1884
484a0896 1885 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
8ed88239
ILT
1886 * ldexp.c (fold_name): Likewise.
1887 * ldlang.c (print_one_symbol): Likewise.
1888 (lang_finish): Likewise.
1889 * ldmain.c (multiple_common): Likewise.
1890 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
1891 renamed to bfd_link_hash_undefweak.
1892
5039302a
ILT
1893 * scripttempl/alpha.sc: Set address of .data section correctly
1894 when -n or -N is used. Patch from Chris G Demetriou
1895 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
1896 * scripttempl/mips.sc: Similar change.
1897
e802f0be
DE
1898Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
1899
1900 * ldlang.c (lang_size_sections): Clarify error message when user
1901 specified start addr conflicts with region. Fix resetting of
1902 region pointer.
1903
1abb243d
ILT
1904Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
1905
1906 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
1907 in lang_allocating_phase_enum.
1908
1909Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
1910
1911 * Makefile.in (distclean): Depend upon clean. Don't bother to
1912 remove files which will be removed by clean. From patch by
1913 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
1914
50708d56
ILT
1915Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
1916
1917 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
1918 a MIPS target, clobber the size of all but the first input
1919 .reginfo section to be 0, so that lang_size_sections sets the
1920 correct size for the output .reginfo section.
1921
ae02b41c
ILT
1922Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
1923
1924 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1925 Remove unused variable is.
1926
5f16938d
MM
1927Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1928
1929 * configure.in: Add support for powerpc-*-eabi.
1930
1931 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
1932 support.
1933
1934 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
1935 elf.sc, which defines some new symbols PowerPC elf needs.
1936
6ade1673
ILT
1937Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1938
1939 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
1940 constructor entry is in the absolute section.
1941
c1e128e5
ILT
1942Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1943
1944 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
1945 * config/i386-gnu.mt: New file. Include ELF support.
1946
1947Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1948
1949 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
1950 there are any input sections named .gnu.warning, treat them as
1951 containing a warning message to be printed by the linker, and
1952 clobber the size so that the message is not copied into the output
1953 file.
1954 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
1955 section.
1956
506f4ede
SC
1957Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
1958
1959 * configure.in (w65-*-*): New target.
1960 * Makefile.in: Update.
1961 * scripttempl/w65.sc: New.
1962 * config/coff-w65.mt: New.
1963
cc37d01d
ILT
1964Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
1965
1966 * ldlang.c (lang_place_orphans): Don't ignore files with
1967 just_syms_flag set. Instead, put all their sections in
1968 bfd_abs_section_ptr, using the section VMA as the output_offset.
1969
cc38364d
KR
1970Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1971
1972 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
1973 name `reloc_howto_type', since it's now defined to be const.
1974 * ldlang.c (lang_add_reloc): Ditto.
1975 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
1976
93a0630f
ILT
1977Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1978
1979 * ldexp.c (fold_binary): Adding or subtracting an absolute value
1980 to a relative value does not require forcing the relative value to
1981 be absolute. Also, reindent function.
1982
fa440b5a
SC
1983Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1984
1985 * ldwrite.c (clone_section): Create a symbol with the
1986 same name as the section.
1987
885ae6b9
SC
1988Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1989
1990 * ld.h (split_by_reloc, split_by_file): New flags.
1991 * ldwrite.c (clone_section, split_sections): New functions.
1992 * lexsup.c (parse_args): Understand new split options.
1993
1994start-sanitize-arc
1995Tue Dec 13 16:45:18 1994 Doug Evans <dje@canuck.cygnus.com>
1996
1997 * configure.in (arc-elf): New target.
1998 * Makefile.in (earcelf.c): New target.
1999 * config/arc-elf.mt: New file.
2000 * emulparms/arcelf.sh: New file.
2001end-sanitize-arc
2002
4e59f36d
ILT
2003Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2004
2005 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
2006 .data segment. They must be writable when creating a shared
2007 library. From H.J. Lu <hjl@nynexst.com>.
2008
2009Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
2010
2011 * emultempl/miposecoff.em: New file.
2012 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
2013 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
2014 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
2015 provide __runtime_reloc_start and __runtime_reloc_stop if they are
2016 used. Align _fdata to a 16 byte boundary.
2017 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
2018 generic.em.
2019 (emipsidtl.c): Likewise.
2020 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
2021
2022 * ld.h (args_type): Add new field embedded_relocs.
2023 * ldemul.h (ldemul_after_open, after_open_default): Declare.
2024 (ld_emulation_xfer_struct): Add new field after_open.
2025 * ldemul.c (ldemul_after_open): New function.
2026 (after_open_default): New function.
2027 * ldlang.c (lang_process): Call ldemul_after_open.
2028 * lexsup.c (parse_args): Handle --embedded-relocs.
2029 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
2030 new after_open field to after_open_default.
2031 * emultempl/generic.em, emultempl/gld960.em: Likewise.
2032 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
2033 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
2034 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
2035 * ld.texinfo, ld.1: Mention -embedded-relocs.
2036
e93e87cb
SC
2037Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2038
2039 * Makefile.in: Add eshl.o.
2040 * config/coff-sh.mt: Add shl emulation.
2041
18368f46
ILT
2042Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2043
2044 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
2045 Youngdale <eric@aib.com>.
2046
60822a36
ILT
2047Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2048
2049 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
2050 * config/i386linux.mh: New file; set HOSTING_CRT0.
2051 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
2052 /usr/lib, since that is already in LIB_PATH.
2053
831d7ac4
JL
2054Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
2055
15ec1d5c
JL
2056 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
2057 address.
2058 (.data, .bss): If "-N", then place the data/bss just after the end
2059 of the .text section rather than at the default 0x40000000.
2060
831d7ac4
JL
2061 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
2062 text segment.
2063
fd41732a
ILT
2064Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2065
831d7ac4
JL
2066 Patches from Eric Youngdale <eric@aib.com>:
2067 * ldlang.c (lang_finish): Don't warn if entry symbol not found
2068 when generating a shared library.
2069 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
2070 attempting to place an orphaned relocation section when generating
2071 a dynamically linked object.
2072
fd41732a
ILT
2073 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
2074 _start.
2075
5efddb2e
ILT
2076Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2077
2078 * ld.h (args_type): Add field export_dynamic.
2079 * lexsup.c (parse_args): Recognize --export-dynamic.
2080 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2081 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
2082
809391bd
ILT
2083Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2084
2085 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
2086 we allocate common symbols.
2087
cd1d4f83
ILT
2088Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
2089
2090 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
2091 .rela.fini to the list of .rel* sections.
2092
6a02a973
ILT
2093Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2094
2095 * ldlang.c (load_symbols): Add new argument place. Only accept
2096 linker scripts if place is not NULL. Put commands found in an
2097 assumed linker script into place.
2098 (lookup_name): Pass NULL as place argument to load_symbols.
2099 (open_input_bfds): In lang_input_statement_enum case, pass a place
2100 argument to load_symbols, and store any new statements after the
2101 current one.
2102
2103Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2104
2105 * ldver.c (ldversion): Bump to 2.5.3.
2106
ca8f2f0d
KR
2107Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2108
2109 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
2110
0128cbae
KR
2111Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2112
2113 * Makefile.in (check): Add missing "else true" clause.
2114
2115 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
2116
2117 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
2118 entry point to "start". Align at end of each section to 0x200.
2119 Start .text section 0x1000 later. Add _etext, _edata, _end
2120 symbols.
2121
52329a29
ILT
2122Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2123
2124 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
2125 composed of different object file formats.
2126 (ldctor_build_sets): If the output format does not support the
2127 reloc, and we are not generating a relocateable link, try getting
2128 the reloc from the input format.
2129
e574ddd4
C
2130Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
2131
2132 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
2133 (em68knbsd.c): New target.
2134
2135 * config/m68k-nbsd.mt: New file.
2136 * emulparams/m68knbsd.sh: New file.
2137 * configure.in (m68*-*-netbsd*): Use above configs.
2138
fbf967b0
ILT
2139Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2140
2141 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
2142 appropriately named static library, stop the search at that
2143 directory.
2144
32286e08
C
2145Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2146
2147 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
2148 and esparcnbsd.o; sorted entries.
2149 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
2150
2151 * config/netbsd532.mt: Removed.
2152 * emulparams/netbsd532.sh: Removed.
2153
2154 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
2155 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
2156 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
2157 sparc*-*-netbsd*): Use above configs.
2158
fdfe873a
ILT
2159Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2160
2161 * ldmain.c (multiple_common): One of the types may now be
2162 bfd_link_hash_indirect. The old BFD argument may be NULL.
2163
3286598f
ILT
2164Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2165
2166 * configure.in: Add * at the end of m68k-hp-hpux.
2167
81100e78
ILT
2168Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2169
2170 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
2171 YY_CHAR *.
2172
51bdfd9b
C
2173Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2174
2175 * scripttempl/nw.sc: Gather constructors and destructors and
2176 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
2177
54d64846
C
2178Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
2179
0a1e63c4
KR
2180 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
2181 (ei386nw.c, eppcnw.c): New targets.
2182
2183 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
51bdfd9b 2184 scripttempl/nw.sc: New files, for i386 and powerpc netware.
0a1e63c4
KR
2185
2186 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
2187 instead of {i386,ppc}-elf.
2188
2189 * configure.in (sparc*-*-netware): Removed. There is no such
2190 thing anymore.
2191
54d64846
C
2192 * ldint.texinfo: Move misplaced `@end iftex'.
2193
81d191be
ILT
2194Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
2195
2196 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
2197 .rela.dtors to the list of .rel* sections.
2198
f608f62e
KR
2199Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2200
0a1e63c4
KR
2201 * ldver.c (ldversion): Update to version 2.5.
2202 * Version 2.5 released.
2203
f608f62e
KR
2204 * configure.in (all_targets): Handle i386-linux*.
2205
243f6d0d
ILT
2206Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2207
2208 * scripttempl/aout.sc: Set _etext and __etext to ., not
2209 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
2210 will not break any other system. From Eric Valette
2211 <ev@chorus.fr>.
2212
a82ae15d
ILT
2213Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2214
2215 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
2216 --verbose to get the old -V behaviour.
2217 * ld.1, ld.texinfo: Document this change.
2218
262c8763
ILT
2219Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2220
a82ae15d
ILT
2221 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2222 assertion, since it could fail with a user defined linker script.
2223
aa61b923
ILT
2224 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
2225 name in the hash table during the first phase--the hash table does
2226 not even exist at that point, much less have the right value.
2227
262c8763
ILT
2228 * Makefile.in (CC): Define.
2229 (CXX): Move definition, change from g++ to gcc.
2230 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
2231 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
2232 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
2233 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
2234 (.cc.o): Comment out.
2235 (testdir): Remove.
2236 (site.exp): Don't create testdir or set tmpdir.
2237 (check): Run checks even if not running native. Use CC_FOR_TARGET
2238 instead of RUNTEST_CC, and likewise for CXX.
2239 (cdtest targets): Comment out.
2240 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
2241 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
2242 * cdtest-main.cc, cdtest.exp: Remove.
2243
2150c3ee
ILT
2244Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2245
262c8763
ILT
2246 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
2247 file naming problems.
2248 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
2249 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
2250 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
2251 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
2252 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
2253 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
2254 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
2255
38189778
ILT
2256 * genscripts.sh: Always search /usr/local/TARGET/lib.
2257
2150c3ee
ILT
2258 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
2259
2260Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2261
2262 * configure.in: Handle i386-bsdi* targets like i386-bsd.
2263
a2eea823
ILT
2264Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2265
2266 * lexsup.c (parse_args): Add support for -a for HP/UX
2267 compatibility.
2268
2269 * lexsup.c (parse_args): -c takes an argument.
2270
f1781adc
ILT
2271Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2272
86037281
ILT
2273 * ld.h (args_type): Add new field endian.
2274 * lexsup.c (parse_args): Handle -EB and -EL by setting
2275 command_line.endian.
2276 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
2277 * ldlang.c (lang_add_output_format): Add arguments big and little.
2278 If command_line.endian is set, use it to select big or little
2279 rather than the default. Changed all callers.
2280 * ldlang.h (lang_add_output_format): Update declaration.
2281 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
2282 LITTLE_OUTPUT_FORMAT.
2283 * emulparams/elf32mipl.sh: Likewise.
2284 * emulparams/mipsbig.sh: Likewise.
2285 * emulparams/mipsbsd.sh: Likewise.
2286 * emulparams/mipsidt.sh: Likewise.
2287 * emulparams/mipsidtl.sh: Likewise.
2288 * emulparams/mipslit.sh: Likewise.
2289 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
2290 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
2291 OUTPUT_FORMAT.
2292 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
2293 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
2294 * scripttempl/mipsbsd.sc: Likewise.
2295
2296 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
2297 depending upon ldgram.c, so that a parallel make does not try to
2298 build both at once.
2299
f1781adc 2300 * configure.in (mips*el-elf*): New target.
5ccef180
ILT
2301 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
2302 (eelf32mipl.c): New target.
86037281 2303
f1781adc
ILT
2304 * config/mipsl-elf32.mt: New file.
2305 * emulparams/elf32mipl.sh: New file.
2306
006ae0e4
ILT
2307Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2308
2309 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
2310 ld -r -S -x.
2311
7aa8f496
ILT
2312Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2313
2314 * ldmisc.c (vfinfo): Print BFD file name as well as file name
2315 returned by find_nearest_line, in case the file name is something
2316 unhelpful such as a .h file. Handle %u.
2317
467a0380
SC
2318Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2319
2320 * ldlang.c (lang_do_assignments): Make sure output statement
2321 has an attached bfd_section before trying to dereference it.
2322
8bff41c1
ILT
2323Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2324
809ee7e0
ILT
2325 * ld.h (ld_config_type): Add new field warn_once.
2326 * ldmain.c (undefined_symbol): Handle -warn-once.
2327 * lexsup.c (parse_args): Recognize -warn-once.
2328 * ld.texinfo (Options): Document -warn-once.
2329 * ld.1: Likewise.
2330
cc23cc69
ILT
2331 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
2332 name. For %C, print the function name on a separate line, to keep
2333 the length of error messages under control.
2334 * ldmain.c (multiple_definition): Use %D for ``first defined
2335 here.''
2336 (undefined_symbol): Use %D for ``more undefined references
2337 follow''.
2338
8bff41c1
ILT
2339 * ldmisc.c (multiple_warn): Remove; no longer used.
2340 * ldmisc.h (multiple_warn): Don't declare.
2341
3deb20fb
SC
2342Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2343
2344 * ldlang.c (print_output_section_statement): Print all lines
2345 to the map file.
2346
0b3499f6
ILT
2347Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2348
2349 * ldlang.c (load_symbols): Check for archive before object. Use
2350 bfd_check_format_matches, and, if ambiguous, print a list of
2351 matching formats. If file format is not recognized, treat file as
2352 a linker script.
2353 * ldgram.y (yyerror): If assuming an object file is a script,
2354 mention that. Tweak the format of the error messages.
2355 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
2356 guess that this is not actually a script, and just report that the
2357 file format was not recognized.
2358 * ld.texinfo (Options): Admit that -( may be used more than once.
2359 Add note that unrecognized object files are now treated as linker
2360 scripts.
2361
2362 * ldfile.c (ldfile_input_filename): Make const.
2363 (ldfile_assumed_script): New variable.
2364 (try_open): Change arguments types to const.
2365 (ldfile_find_command_file): Likewise.
2366 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
2367 * ldfile.h: Update declarations for ldfile.c changes.
2368 * ldlex.l: Include <ctype.h>.
2369 (file_name_stack): Change to be const char *.
2370 (lineno_stack): New static variable.
2371 (<<EOF>>): Set lineno as well as ldfile_input_filename.
2372 (lex_push_file): Make name argument const. Initialize
2373 lineno_stack entry.
2374 (lex_redirect): Initialize lineno_stack entry.
2375 (lex_warn_invalid): Handle non printable characters nicely.
2376 * ldlex.h (lex_push_file): Declare second argument as const.
2377
2378 * ldgram.y (ifile_p1): Recognize GROUP.
2379 * ldlex.l: Recognize GROUP.
2380 * ld.texinfo (Option Commands): Document GROUP.
2381
2fd87dbc
ILT
2382Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2383
2384 * config/m68klynx.mh: New file.
2385
cb2af5cf
JL
2386Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
2387
2388 * emultempl/hppaelf.em: Add newlines to the error messages.
2389
7b63ff76
ILT
2390Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2391
2392 * config/i386lynx.mh: New file.
2393 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
2394 unless CONSTRUCTING.
2395
dd37f215
ILT
2396Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2397
2398 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
2399 (GENERATE_SHLIB_SCRIPT): Define as yes.
2400 (DYNAMIC_LINK): Define as false.
2401 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
2402 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
2403 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
2404 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
2405 generic.em.
2406
fa3539fe
SC
2407Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2408
2409 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
2410
a864a26e
ILT
2411Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2412
2413 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
2414 .got section is now explicitly handled in elf.sc.
2415
2416Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2417
2418 * scripttempl/alpha.sc: Redo script to set . outside of sections
2419 and not bother to explicitly specify section addresses.
2420 Explicitly place .sdata section.
2421
82950a80
ILT
2422Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2423
2424 * scripttempl/m68kcoff.sc: Put .bss in data segment.
2425
2426 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
2427 0, and to only be marked as NOLOAD if relocating.
2428 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
2429 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
2430 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
2431 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
2432 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
2433 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
2434 * scripttempl/sparclynx.sc: Likewise.
2435
2436Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
318b02b6
KR
2437
2438 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
2439 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
2440 New files.
2441
3b21918a
ILT
2442Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
2443
2444 * ld.h (args_type): Add field soname.
2445 * lexsup.c (parse_args): Handle -soname argument.
2446 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
2447 pass soname.
2448 * ld.texinfo: Document -soname.
2449
69927008
ILT
2450Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2451
2452 * ldlang.c (lang_check): Don't try to set the architecture if the
2453 input and output files are incompatible. Just warn.
2454
6d445436
ILT
2455Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2456
2457 * configure.in: Change i[34]86 to i[345]86.
2458
2459Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2460
2461 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
2462
b400f56d
ILT
2463Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2464
2465 Make the ELF linker handle orphaned sections reasonably. Also,
2466 define __start_SECNAME and __stop_SECNAME around sections whose
2467 names can be represented in C, for the benefit of symbol sets in
2468 glibc.
2469 * ldemul.h (ldemul_place_orphan): Declare.
2470 (ld_emulation_xfer_type): Add place_orphan field.
2471 * ldemul.c (ldemul_place_orphan): New function.
2472 * ldlang.h (wild_doit): Declare.
2473 * ldlang.c (wild_doit): Make nonstatic.
2474 (lang_place_orphans): Call ldemul_place_orphan.
2475 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
2476 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
2477 static variables.
2478 (gld${EMULATION_NAME}_place_orphan): New static function.
2479 (gld${EMULATION_NAME}_place_section): New static function.
2480 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
2481
9e5a036f
ILT
2482Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
2483
2484 * scripttempl/aout.sc: Add .linux-dynamic after .data.
2485
c1a9aaa3
ILT
2486Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2487
9e5a036f
ILT
2488 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
2489 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
c1a9aaa3 2490
1fee94ec
ILT
2491Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2492
2493 * ldexp.h (exp_get_abs_int): Declare.
2494
2495Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2496
2497 * ldlang.c (lang_do_assignments): Handle complex AT's better.
2498 * ldexp.c (exp_get_abs_int): New function.
2499
28d1c6ec
JM
2500Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
2501
2502 * configure.in: add i960-nindy-coff support.
2503
63936abc
JMD
2504Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2505
2506 * ldlex.l (yy_create_string_buffer): Handle change to internal
2507 interface in flex 2.4.7.
2508
bb329c20
JMD
2509Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
2510
2511 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
2512 New function; add 0x20 to any use of -Ttext.
2513 (gld${EMULATION_NAME}_create_output_section_statements): New
2514 function.
2515 (ld_${EMULATION_NAME}_emulation): Use the new function
2516 gld${EMULATION_NAME}_create_output_section_statements.
2517
a1ed2435
ILT
2518Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2519
2520 * scripttempl/mips.sc: Redo script to set . outside of sections
2521 and not bother to explicitly specify section addresses.
2522
b019d460
ILT
2523Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2524
2525 * scripttempl/elf.sc: Copy several more relocation sections into
2526 the output. Put .got.plt sections into .got.
2527
309c8153
ILT
2528Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2529
31ddb156
ILT
2530 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
2531
2532 Add a new script operator, PROVIDE, to define a symbol only if it
2533 is needed.
2534 * ldgram.y (PROVIDE): New token.
2535 (assignment): Accept PROVIDE.
2536 * ldlex.l (PROVIDE): New token.
2537 * ldexp.h (node_type): Add etree_provide to node_class enum.
2538 (exp_provide): Declare.
2539 * ldexp.c (exp_fold_tree): Handle etree_provide.
2540 (exp_provide): New function.
2541 (exp_print_tree): Handle etree_provide.
2542 * ld.texinfo: Document PROVIDE.
2543
36c6e8c3
ILT
2544 * ldlang.c (lang_common): Pass desired alignment to
2545 lang_one_common as power of two.
2546 (lang_one_common): Get common symbol alignment from linker hash
2547 table entry. Treat desired alignment as a power of two.
2548
309c8153
ILT
2549 * ldlang.c (wild_section): Attach all section with the given name,
2550 not just the first one. If there is no name, attach all sections
2551 even if the SEC_IS_COMMON flag is set.
2552
a1ad915d
ILT
2553Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2554
2555 * ld.h (args_type): Add field rpath.
2556 * lexsup.c (S_ISDIR): Define if not already defined.
2557 (parse_args): Add support for -rpath. If -R is used to name a
2558 directory, treat it as -rpath for Solaris compatibility.
2559 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2560 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
2561 * ldmain.c (main): Initialize command_line.rpath to NULL.
2562 * ld.texinfo: Document -rpath option.
2563
cdf71377
KR
2564Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
2565
2566 * emulparams/pc532machaout.sh: New file. Pc532 mach script
2567 parameters.
2568
2569 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
2570
2571 * config/pc532mach.mt: New file. Pc532 mach target support.
2572
2573 * config/pc532mach.mh: New file. Pc532 mach host support.
2574
2575 * config/netbsd532.mt: New file. Netbsd 532 target support.
2576
2577 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
2578
2579 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
2580 dependency.
2581
db770dfa
ILT
2582Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2583
2584 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
2585 bfd_abs_section_ptr, not &bfd_abs_section.
2586
2587 * lexsup.c (parse_args): Changed "retain-symbols-file" from
2588 no_argument to required_argument. From djm.
2589
2590Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2591
2592 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
2593 sections to force a VMA of 0; needed for ELF backends which have
2594 not been converted to the new linker style.
2595
aee611f5
JL
2596Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
2597
2598 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
2599 it was for the HPUX dynamic loader's use and it creates problems
2600 with ELF GDB.
2601
2602Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
2603
2604 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
2605 * ldlang.h (lang_do_assignments): Put external decl here.
2606 * emultempl/hppaelf.em: Minor cleanups throughout file.
2607 (hppa_elf_create_output_section_statements): Rewrite.
2608 (hppaelf_finish): Rewrite.
2609
111b24d5
JMD
2610Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2611
03730624
JMD
2612 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
2613
111b24d5
JMD
2614 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
2615 accept plain -B.
2616 * ld.texinfo: -Bstatic is not ignored.
2617
1c883f34
SS
2618Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
2619
2620 * ldlex.l: Recognize \r the same as \n.
2621
2622Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2623
2624 Preliminary support for generating shared libraries, from Eric
2625 Youngdale <ericy@cais.cais.com>.
2626 * genscripts.sh: If the emulation parameter file sets
2627 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
2628 CREATE_SHLIB defined.
2629 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
2630 link_info.shared is set, use the .xs script file.
2631 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
2632 .interp section, and don't include TEXT_START_ADDR in the starting
2633 address of the first section.
2634 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
2635 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
2636
1f8b3b57
DM
2637Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
2638
2639 * configure.in: Change --with-targets to --enable-targets.
2640
3b7553e7
ILT
2641Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2642
cf4245af
ILT
2643 * lexsup.c (parse_args): Add support for new options -( -) with
2644 synonyms --start-group --end-group.
2645 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
2646 (lang_group_statement_type): Define new struct.
2647 (lang_statement_union_type): Add group_statement field.
2648 (lang_enter_group, lang_leave_group): Declare.
2649 * ldlang.c (lang_for_each_statement_worker): Handle
2650 lang_group_statement_enum.
2651 (map_input_to_output_sections, print_statement): Likewise.
2652 (lang_size_sections, lang_do_assignments): Likewise.
2653 (open_input_bfds): Completely rewrite. Now does its own looping,
2654 rather than using lang_for_each_statement. Handle groups.
2655 (lang_process): Update call to open_input_bfds.
2656 (print_group): New static function.
2657 (lang_enter_group, lang_leave_group): New static functions.
2658 * ldfile.c (ldfile_open_file): If the file has already been
2659 opened, just return rather than taking an assertion failure.
2660 * ldver.c (help): Mention new options.
2661 * ld.texinfo: Document new options.
2662
02b57980
ILT
2663 * ldlang.c (end_of_data_section_statement_list): Don't define.
2664 (lang_leave_output_section_statement): Don't set obsolete variable
2665 end_of_data_section_statement_list.
2666
62a4b36c
ILT
2667 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
2668 ALIGN.
2669
686739e2
ILT
2670 * ldlang.c (lang_size_sections): Adjust current region address
2671 even for sections with an explicit address. From
2672 ralphc@pyramid.com (Ralph Campbell).
2673
7d56d4f1
ILT
2674 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
2675 From jrs@world.std.com (Rick Sladkey).
2676
3b7553e7
ILT
2677 * scripttempl/mipsbsd.sc: Let sections align to their natural
2678 boundaries.
2679
2680Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2681
2682 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
2683 &bfd_abs_section.
2684 (lang_abs_symbol_at_beginning_of): Likewise.
2685 (lang_abs_symbol_at_end_of): Likewise.
2686 (lang_size_sections): Use bfd_is_abs_section to check for the
2687 absolute section. Don't try to set the VMA or output_offset or
2688 size of the absolute section.
2689 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
2690 undefined section.
2691
c4aa82c1
JL
2692Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
2693
2694 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
2695 when generating relocatable objects.
2696
08f20f66
ILT
2697Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
2698
2699 * emultempl/linux.em: New file providing support for linking
2700 against Linux shared libraries.
2701 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
2702 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
2703
952b6c2c
ILT
2704Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2705
64887de2
ILT
2706 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
2707 * ldmain.c (main): Initialize link_info.shared to false. Give
2708 error if link_info.relocateable and link_info.shared are both set.
2709
5d1ffb2f
ILT
2710 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
2711 it as naming an emulation to be added to EMULATION_OFILES.
2712 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
2713
bf82ab68
ILT
2714 * Makefile.in: Rebuilt dependencies.
2715 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
2716 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
2717 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
2718 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
2719 (ei386linux.c): Remove; now in Makefile.in.
2720 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
2721 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
2722 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
2723 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
2724 (eelf64_sparc.c): Remove; now in Makefile.in.
2725 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
2726 (eelf32_sparc.c): Remove; now in Makefile.in.
2727
641fe79b
ILT
2728 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
2729 no owner--it might be bfd_abs_section. From Eric Youngdale
2730 <ericy@cais.cais.com>.
2731
952b6c2c
ILT
2732 * scripttempl/aout.sc: Let sections align to their natural
2733 boundaries.
2734
c96386c4
ILT
2735Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2736
33b90e52
ILT
2737 * ldemul.h (ldemul_open_dynamic_archive): Declare.
2738 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
2739 * ldemul.c: Include ldexp.h and ldlang.h.
2740 (ldemul_open_dynamic_archive): New function.
2741 * ldfile.h (ldfile_open_file_search): Declare.
2742 * ldfile.c: Include ldemul.h.
2743 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
2744 argument, not bfd *. Change all callers.
2745 (ldfile_open_file_search): Rename from open_a. Return boolean
2746 argument, not bfd *. Clean up. Change all callers.
2747 (ldfile_open_file): If doing a dynamic link, call
2748 ldemul_open_dynamic_archive rather than assuming the extension of
2749 a dynamic object is ".so".
2750 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
2751 New function.
2752 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
2753 field.
2754 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
2755
cbbf9608
ILT
2756 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
2757 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
42792411 2758 Accept -static as a synonym for -non_shared.
cbbf9608 2759
7fb9ca5f
ILT
2760 Let the user change the dynamic linker used by ELF code.
2761 * ld.h (args_type): Add new field interpreter.
2762 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
2763 handle it.
2764 * ldmain.c (main): Initialize command_line.interpreter to NULL.
2765 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
2766 the ELF backend to return the .interp section. If
2767 command_line.interpreter is not NULL, set the contents of .interp
2768 to it.
2769 * ld.texinfo: Mention -dynamic-linker.
2770
2771 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
2772 generic.em.
2773
bec7a138
ILT
2774 * lexsup.c (parse_args): Sort out the option macros and change the
2775 definitions to make it easier to add a new option.
2776
66da6c84
ILT
2777 * scripttempl/aout.sc: Define __etext and __edata to go along with
2778 _etext and _edata.
2779
c96386c4 2780 * ld.h (ld_config_type): Add new field traditional_format.
605da7e2 2781 * lexsup.c (parse_args): Add traditional-format to longopts, and
c96386c4
ILT
2782 handle it.
2783 * ldmain.c (main): Initialize config.traditional_format to false.
2784 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
2785 flags of output_bfd according to config.traditional_format.
605da7e2 2786 * ldver.c (help): Mention -traditional-format.
c96386c4
ILT
2787 * ld.texinfo: Document -traditional-format.
2788
7fe331f1
ILT
2789Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2790
2791 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
2792 they are encountered.
2793
39a00f7d
ILT
2794Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
2795
2796 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
2797 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
2798
eb7edfa1
ILT
2799Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2800
23677217
ILT
2801 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
2802 _FTEXT, _ETEXT and _FDATA. Dont define _END.
2803
e845d289
ILT
2804 * ldfile.c (open_a): If this is not an archive, try to open it in
2805 the current directory before searching for it.
2806
3e1fd33d
ILT
2807 * lexsup.c (parse_args): Treat -i as a synonym for -r.
2808
f24078fd
ILT
2809 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
2810 BLOCK works in a section address as documented.
2811
eb7edfa1
ILT
2812 * ldgram.y (YYDEBUG): Don't define.
2813
f8015b85
ILT
2814Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2815
2816 * emultempl/gld960.em: Pass false for new argument to
2817 ldfile_add_library_path.
2818 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
2819
2820 * emultempl/sunos.em: Only look for .so files if doing a dynamic
2821 link.
2822
9beeb5d9
ILT
2823Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
2824
2825 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
2826
64bb143c
BC
2827Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
2828
2829 * Makefile.in (check): Delete ld.new dependency so that a regression
2830 test doesn't trigger a rebuild of the linker.
2831
ef01a8a8
ILT
2832Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2833
2834 * ldlang.c (map_input_to_output_sections): For lang_address, call
2835 init_os if it hasn't already been called.
2836
ed601bea
ILT
2837Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2838
2839 Add support for SunOS shared libraries.
2840 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
2841 shared library support code.
2842 * emultempl/sunos.em: New file.
2843 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
f7e66391 2844 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
ed601bea 2845 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
f7e66391 2846 (esun3.c): Likewise.
ed601bea
ILT
2847
2848 * ldlang.c: Minor formatting cleanups.
2849 (lang_for_each_input_file): New function.
2850 * ldlang.h (lang_for_each_input_file): Declare.
2851
2852 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
2853 field.
2854 (search_head): Declare.
2855 (ldfile_add_library_path): Add new cmdline argument in prototype.
2856 * ldfile.c (search_head): Make non-static.
2857 (search_dirs_type): Move to ldfile.h.
2858 (ldfile_add_library_path): Accept cmdline argument, and save it.
2859 * lexsup.c (parse_args): Pass true for new cmdline argument of
2860 ldfile_add_library_path.
2861 (set_default_dirlist): Likewise.
2862 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
2863 argument of ldfile_add_library_path.
2864 * ldgram.y (ifile_p1): Likewise.
2865
210c52ac
ILT
2866Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2867
2868 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
2869 total_size, superfile and chain.
2870 * ldfile.c (open_a): Don't clear search_dirs_flag.
2871 (ldfile_open_file): Don't try to open superfile. Assert that file
2872 has not already been opened.
2873 * ldlang.c (new_afile): Don't initialize superfile.
2874 * ldmain.c (add_archive_element): Don't initialize subfiles or
2875 chain or superfile. Initialize search_dirs_flag to false.
2876
c06e55d9
KR
2877Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2878
2879 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
2880
2881 Changes from binutils-2.4 release:
2882
2883 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
2884 variables, use whitespace, so scripts don't break.
2885
2886 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
2887
2888 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
2889
2890 * cdtest-bar.cc: Renamed from cdtest-func.cc.
2891 * Makefile.in: Noted change.
2892
2893 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
2894 don't know where that's supposed to come from, or why it's
2895 necessary.
2896
2897 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
2898
2899 * configure.bat: update to latest makefile.in
2900 * emulpara/go32.sh: set to coff-go32 not aout
2901 * emultemp/generic.em: strength-reduce the structure of
2902 this shell script, since the only available shell for
2903 DOS can't handle complex syntax.
2904 * emultemp/stringify.sed: for "sed -f" instead of inline.
2905 * makefile.in: depend on stringify.sed as well as genscripts.sh
2906 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
2907 * genscripts.sh: empty variables aren't always considered "set",
2908 so set them to "y" instead.
2909
29371b1f
ILT
2910Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2911
60e8a534
ILT
2912 * ldlang.c (entry_symbol): Make static.
2913 (lang_add_entry): Add cmdline argument.
2914 * ldlang.h (lang_add_entry): Change prototype.
2915 * ldgram.y (statement_anywhere): Change lang_add_entry call.
2916 * lexsup.c (parse_args): Likewise.
29371b1f 2917
f49f58c6
ILT
2918Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2919
2920 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
2921 .reginfo an address.
2922 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
2923 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
2924 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
2925
2a9fa50c
ILT
2926Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2927
2928 Add support for ELF shared libraries.
2929 * ld.h (ld_config_type): Add field dynamic_link.
2930 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
2931 on attempts to use -r with -relax, -call_shared or -s.
2932 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
2933 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
2934 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
2935 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
2936 OPTION_NON_SHARED by setting dynamic_link field accordingly.
2937 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
2938 -r and -Ur.
2939 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
2940 opening a file with a .so extension first.
2941 * emultempl/elf32.em: New file.
2942 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
2943 (NONPAGED_TEXT_START_ADDR): Likewise.
2944 (TEMPLATE_NAME): Define as elf32.
2945 (DATA_PLT): Define.
2946 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
2947 * scripttempl/elf.sc: Add placement for new dynamic sections.
2948 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
2949 outside of any section. Don't use ALIGN(8); just let one section
2950 VMA follow another. Put .dynbss in .bss. Don't mention debugging
2951 sections; they'll be handled correctly anyhow.
2952 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
2953
188ce705
ILT
2954Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
2955
2956 * Makefile.in (install): Redirect output of ln to /dev/null.
2957
4bd5c39f
JL
2958Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
2959
2960 * emultempl/hppaelf.em: Change all references of
2961 .hppa_linker_stubs to .PARISC.stubs.
2962 * scripttempl/hppaelf.sc: Likewise.
2963
439a3604
ILT
2964Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2965
269773c1
ILT
2966 * ldlang.c (print_output_section_statement): Change ``no attached
2967 output section'' message slightly.
2968 (lang_do_assignments): Don't recurse down if there is no real
2969 section.
2970
439a3604
ILT
2971 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
2972 match corresponding change in emulation templates.
2973 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
2974 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
2975
82ebe9a2
KR
2976Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2977
2978 * ldver.c (ldversion): Updated version number.
2979
2980 * cdtest-foo.cc: Use explicit "#pragma implementation".
2981 * cdtest-bar.cc: Renamed from cdtest-func.cc.
2982 * Makefile.in: References to cdtest-func.o changed to
2983 cdtest-bar.o.
2984
f9d3d71a
ILT
2985Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2986
2987 Don't create unnecessary output sections.
2988 * ldlang.c (out_bfd_get_section_by_name): Remove.
2989 (wild_section): Call bfd_get_section_by_name rather than
2990 our_bfd_get_section_by_name. Don't call wild_doit if there is no
2991 section.
2992 (lang_create_output_section_statements): Remove.
2993 (map_input_to_output_sections): For several cases, call init_os if
2994 it has not already been called.
2995 (lang_size_sections): If output section was not created, skip it.
2996 (lang_process): Don't call lan_create_output_section_statements.
2997 (lang_place_orphans): Skip files with just_syms_flags set to true.
2998 * ld.texinfo: Document change.
2999
27f7237e
ILT
3000Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3001
3002 * ldlang.c (wild_doit): Don't bother initializing the vma and
3003 section size. Don't special case SEC_SHARED_LIBRARY.
3004 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
3005 specially.
3006
c1124600
ILT
3007Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
3008
3009 * config/go32.mh : New file for Xgo32X.
3010
f6671f28
ILT
3011Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3012
5acce559
ILT
3013 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
3014 before calling einfo, since we are reporting an fopen failure.
3015 From jrs@world.std.com (Rick Sladkey).
3016
f6671f28
ILT
3017 * configure.in: Use "e" rather than "em_" as prefix for
3018 emulations.
3019
6e1e82a0
KR
3020Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
3021
3022 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
3023 filename.
3024 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
3025 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
3026 Ditto.
3027 * Makefile.in: Changed all generated file names.
3028 (ldemul-list.h): Depend on Makefile, not config.status. Changed
3029 sed patterns to handle new filenames.
3030
3031 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
3032 * configure.in: Adjusted.
3033
3034Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3035
3036 * Makefile.in (install-info): Don't use "$<*", it doesn't always
3037 work. Instead, check build dir and $srcdir explicitly, and use
3038 `echo' to get all the filenames.
3039
3040 * configure.in (h8300h-*-hms): Changed ld_target name to
3041 cf-h8300h.
3042 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
3043 unique in 8.3.
3044
3045 * config/i960coff.mt: New file.
3046 * emulparams/gld960coff.sh: New file.
3047 * emultempl/gld960c.em: New file.
3048 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
3049 i960coff configuration.
3050 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
3051
3052 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
3053 code isn't included in FSF releases, and it can still be
3054 explicitly selected.
3055 (distclean): Remove site.bak and tmpdir.
3056 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
3057 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
3058
3059 Patches from Ralph Campbell:
3060 * config/mipsbsd.mh: New file.
3061 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
3062 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
3063 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
3064 instead of `aout'.
3065
3066 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
3067
269ec825
ILT
3068Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3069
6e1e82a0
KR
3070 * config/m68k.mt (EMUL): Set to m68kaout.
3071 * emulparams/m68kaout.sh: New file.
3072 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
3073 (em_m68kaout.c): New target.
3074
269ec825
ILT
3075 * ldlang.c (lang_size_sections): If dot moves because of an
3076 assignment, don't try to insert a pad into the absolute output
3077 section, just change the address of the default memory region
3078 instead.
3079
3080 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
3081 cdtest-ur.out, and cdtest-ur.tmp.
3082
e6d84626
ILT
3083Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3084
3085 * scripttempl/sa29200.sc: Align all sections to four byte
3086 boundaries.
3087
6c86b9ff
SC
3088Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
3089
3090 * Makefile.in, configure.in: Support for go32 coff.
3091 * config/i386-go32.mt: New file
3092 * emulparams/i386go32.sh: New file
3093 * scripttempl/i386go32.sc: New file
3094
028f8872
SS
3095Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
3096
3097 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
3098 Lynx-specific script templates.
3099 * configure.in (sparclite*-*-coff): Use coff-sparc.
3100 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
3101 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
3102 (ENTRY): Set to __main.
3103 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
3104 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
3105 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
3106
cde73501
ILT
3107Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3108
c435aba8
ILT
3109 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
3110 byte boundary, in case the global constructors do not take up an
3111 even 16 bytes.
3112
cde73501
ILT
3113 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
3114 exist, get crtbegin based on gcc -print-libgcc-file-name.
3115 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
3116
feaa9c4b
ILT
3117Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3118
3119 * ldlang.c (lang_size_sections): When no address is given for a
3120 section, align it according to its requirements.
3121
1e45c4c3
ILT
3122Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3123
3124 * Makefile.in (clean, distclean): Remove configdoc.texi.
3125
9ad75873
BC
3126Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
3127
3128 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
3129
9d87af56
ILT
3130Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3131
3132 * ldlang.c (lang_size_sections): When relaxing, adjust the
3133 position of a padding statement, and adjust dot accordingly.
3134
ea68d58d
BC
3135Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
3136
3137 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
3138
4f2ee958
ILT
3139Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3140
3141 * scripttempl/i386coff.sc: If relocating, don't put .init and
3142 .fini sections into .text; keep them separate.
3143 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
3144 exist, get crtbegin based on gcc -print-libgcc-file-name.
3145 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
3146
099c286e
BC
3147Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
3148
3149 * Makefile.in (check): Set TCL_LIBRARY for runtest.
3150
79f7de91
JL
3151Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3152
f39a73b1
JL
3153 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
3154 manufacturer.
3155
79f7de91
JL
3156 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
3157 if building a final executable.
3158
67d0e7ff
ILT
3159Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3160
3161 * ldmain.c (main): Check the return value of bfd_close.
3162
be9ffc1f
ILT
3163Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3164
3165 * scripttempl/alpha.sc: Clean up section alignment to ensure that
3166 sections never overlap when using -r.
3167
6c00b04f
ILT
3168Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3169
3170 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
3171 changes: get_symtab_upper_bound renamed and returns long,
3172 bfd_canonicalize_symtab returns long, check for error indications.
3173
f078dc7c
ILT
3174Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3175
3176 * ldlang.c (print_input_section): For section size, use
3177 _cooked_size if it is non-zero, size otherwise.
3178 (size_input_section): Likewise.
3179 (lang_do_assignments): Likewise (case lang_input_section_enum).
3180
193c5f93
ILT
3181Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3182
3183 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
3184 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
3185 (lang_add_input_file): Pass true to new_afile for add_to_list.
3186 (lookup_name): Remove force_load argument. Changed all callers.
3187 Pass false to new_afile for add_to_list. Split loading of symbols
3188 out into separate function.
3189 (load_symbols): New function split out of lookup_name. Don't load
3190 the symbols if they are already loaded.
3191 (open_input_bfds): For lang_input_statement_enum call load_symbols
3192 rather than lookup_name.
3193 (lang_process): Pass abs_output_section rather than NULL to
3194 lang_size_sections.
3195 (lang_startup): Set real field of first_file to true.
3196
a2670c2f
ILT
3197Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3198
193c5f93
ILT
3199 * ldlang.c (had_relax): Removed.
3200 (relax_again): New static variable.
3201 (lang_size_sections): Change call to bfd_relax_section to
3202 correspond to BFD changes. Set relax_again appropriately.
3203 (lang_process): Remove #if 0 code. When relaxing, keep calling
3204 lang_do_assignments and lang_size_sections until relax_again
3205 becomes false.
3206
a2670c2f
ILT
3207 * emultemp/gld960.em: Include libiberty.h
3208 (gld960_before_parse): Pass NULL as final argument to concat.
3209
f3bc3ac3
ILT
3210Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3211
f7a26f1b
ILT
3212 * scripttempl/aout.sc: Force _end and __end to be aligned to a
3213 four byte boundary.
3214
f3bc3ac3
ILT
3215 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
3216 building a bfd_data_link_order, rather than by setting the section
3217 contents immediately.
3218
4fdbafb2
ILT
3219Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3220
3221 Changes to make -Ur work again.
3222 * ldmain.c (add_to_set): Now takes reloc argument rather than
3223 bitsize. Check config.build_constructors here. If an new hash
3224 table entry is created, mark it as undefined.
3225 (constructor_callback): No longer takes bitsize argument. Pass
3226 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
3227 BFD backend supports it.
3228 (reloc_overflow): Handle a NULL abfd argument.
3229 (reloc_dangerous, unattached_reloc): Likewise.
3230 * ldctor.c: Include ldmain.h.
3231 (struct set_info): Change bitsize field to reloc.
3232 (ldctor_add_set_entry): Now takes reloc argument rather than
3233 bitsize. Don't bother to check config.build_constructors here.
3234 (ldctor_build_sets): Get the size from the reloc howto. If
3235 generating relocateable output, call lang_add_reloc rather than
3236 lang_add_data.
3237 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
3238 instead of bitsize.
3239 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
3240 (lang_reloc_statement_type): New structure.
3241 (lang_statement_union_type): Add reloc_statement field.
3242 (lang_add_reloc): Declare new function.
3243 * ldlang.c (lang_for_each_statement_worker): Handle
3244 lang_reloc_statement_enum.
3245 (map_input_to_output_sections, print_statement): Likewise.
3246 (lang_size_sections, lang_do_assignments): Likewise.
3247 (print_reloc_statement): New function.
3248 (lang_add_reloc): New function.
3249 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
3250
3251 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
3252 (cdtest-ur, cdtest-ur.out): New targets.
3253 (check-cdtest): Now also check that -Ur works correctly.
3254
3255 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
3256
3257Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3258
3259 * ldlang.c (lang_process): Move lang_common call before
3260 map_input_to_output_sections, to ensure that any alignment
3261 constraints set by common symbols are copied over to the output
3262 sections.
3263
3264Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3265
3266 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
3267 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
3268 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
3269 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
3270 needed for ELF.
3271
0071a731
DM
3272Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3273
3274 * config/i386bsd.mh: New file.
3275
7f0638d5
ILT
3276Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3277
3278 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
3279 defined.
3280 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
3281 (DATA_START_SYMBOLS): Define _fdata.
3282
b897ed67
SS
3283Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
3284
3285 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
3286
2e39abdb
JL
3287Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3288
ff68559e
JL
3289 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
3290 works again. Attach some output symbols to the stub file bfd.
3291
2e39abdb
JL
3292 * emultempl/hppaelf.em: Include elf32-hppa.h.
3293 (file_chain): Add decl.
3294 (hppa_look_for_stubs_in_section): Delete decl.
3295 (hppaelf_finish): Reenable code. Do not pass symbols
3296 down to hppa_look_for_stubs_in_section.
3297
b495c314
ILT
3298Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
3299
3300 * ldmain.c (write_map): Don't define. Removed all references.
3301 Just use map_file or map_filename instead.
3302 (add_archive_element): Use minfo to write map information, not
3303 info_msg.
3304 (constructor_callback): Use fprintf to write map information, not
3305 info_msg.
3306 * ldmain.h (write_map): Don't declare.
3307 * ldgram.y (mri_script_command): Removed reference to write_map.
3308 * ldlang.c (lang_one_common): Likewise.
3309 * lexsup.c (parse_args): Likewise.
3310
4725fb48
ILT
3311Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
3312
bff600cf
ILT
3313 * scripttempl/elf.sc: Force all sections to be aligned.
3314
27baca71
ILT
3315 * ldgram.y (section): Reverse the order of memspec_opt and
3316 fill_opt to avoid an ambiguity when both are used.
3317 * ld.texinfo: Changed accordingly.
3318
6232b6c4
ILT
3319 * ldgram.y: Move include of ldlex.h back with other includes.
3320 * ldlex.h (input_type): Don't initialize enum constants to
3321 particular values.
3322 * ldlex.l: Use a switch to return the right token based on
3323 input_type, rather than knowing that input_type has a value based
3324 on a token type.
3325
4725fb48
ILT
3326 * ldgram.y (dirlist_ptr): Removed; not used.
3327 * lexsup.c: Include ldver.h.
3328 * Makefile.in: Rebuilt dependencies.
3329
fc1dfb71
ILT
3330Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
3331
3332 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
3333 (ldlang_add_file): call it here instead.
3334
ff33a8c1
DM
3335Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3336
3337 * ldgram.y: Include ldlex.h after %token decls, for byacc.
3338
a62494c4
JL
3339Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3340
531a5bd1
JL
3341 * emultempl/hppaelf.em: First attempt to clean this file up.
3342 Add comments in several functions as to their purpose and
3343 how they function (or my current best guess). Clean up horrible
3344 spacing and indention that never should have been accepted in the
3345 first place. Add FIXMEs for issues which need to be resolved.
3346 Disable linker-stub generation until it gets fixed. This allows
3347 the linker to at least work on simple code for testing purposes.
3348
a62494c4
JL
3349 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
3350 it via hppaelf_finish). Prototype moved into ldlang.h.
3351 (lang_process): Move problematic extra call to lang_size_sections
3352 into the PA ELF specific code.
3353 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
3354 lang_size_sections moved here.
3355
c361ce46
ILT
3356Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
3357
3358 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
3359 * config/ppc-elf32.mt: New file.
3360 * emulparams/elf32ppc.sh: New file.
3361 * emultempl/ppc.em: New file.
3362 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
3363 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
3364 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
3365
d4e5e3c3
DM
3366Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3367
d5b79a89
DM
3368 * lexsup.c (parse_args): Use symbolic numbers for long options.
3369 Fix misunderstanding in -Y and -call_shared et al.
3370
d4e5e3c3
DM
3371 Use getopt instead of lex and yacc to parse the command line.
3372
3373 * ld.texinfo (Options): Document changes to option syntax.
3374 * Makefile.in: Update dependencies.
3375 * ldver.c (help): Tweak dashes in usage message.
3376 * ldgram.y (%union): Remove unused members.
3377 Remove %tokens for command line options; add ones for input types.
3378 (command_line): Rules removed.
3379 (file): Instead of command line, recognize an
3380 input type indicator, then use the nonterminal for that type.
3381 (defsym_expr): New nonterminal from code formerly in command_line.
3382 * ldlex.h: Declare parser input type enum and variable.
3383 Don't declare parse_line.
3384 * ldlex.l: Remove unused variables. Make some used ones static
3385 and comment them.
3386 (COMMAND): Start state and its rules removed.
3387 At start of yylex, return input state token if at start of input.
3388 (lex_redirect): Don't need to set yyout.
3389 (ldlex_command): Function removed.
3390 * ldmain.c (main): Instead of calling parse_line, set up the
3391 redirections and call yyparse directly.
3392 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
3393 "command line".
3394 * lexsup.c: Remove #if 0'd code.
3395 (parse_line): Function removed.
3396 (parse_args): Rewrite to use getopt_long_only.
3397 (set_default_dirlist): New function from code formerly in
3398 ldgram.y:command_line.
3399 (set_section_start): New function.
3400 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
3401 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
3402 compiled-in link scripts in "{" and "}", as the grammar no longer
3403 wants them to be.
3404
3405Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
3406
3407 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
3408 require that it be in $(srcdir).
3409
6b8929a1
ILT
3410Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
3411
a733e1d7
ILT
3412 * ldlang.c (lang_size_sections): Only align section to alignment
3413 required by linker script, not to maximum alignment of input
3414 sections.
3415
6b8929a1
ILT
3416 * ldlang.h (largest_section): Don't declare.
3417 * ldlang.c (largest_section): Don't define.
3418 (size_input_section): Don't set largest_section; not used.
3419
ef76742f
ILT
3420Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
3421
3422 * ldlang.c (new_afile): Pass NULL as last argument to concat.
3423
42f62ead
ILT
3424Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3425
3426 * ldlang.c, ldmain.c: Include libiberty.h.
3427
3428 * ldmisc.h (concat): Don't declare.
3429 * ldmisc.c (concat): Don't define; just use the one in libiberty.
3430
3431 * ld.h (as_output_section_statement): Removed; not used.
3432
5bcb7f28
DM
3433Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3434
3435 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
3436 bfd_set_error and new error names.
3437
7ff6f2da
KR
3438Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3439
3440 * ldwrite.c (build_link_order): If the cooked size of the section
3441 has been set, use it, for determining link_order size.
3442 (ldwrite): In the error message displayed if bfd_final_link fails,
3443 indicate that it was in fact the final link step that failed.
3444
3445 * ldlang.c (lang_size_sections): Clear bfd_error before calling
3446 bfd_relax_section, in case it returns false but doesn't flag an
3447 error. If an error is returned, indicate which one it is in the
3448 error message.
3449
3450 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
3451 it'll get picked up from $(srcdir) if appropriate.
3452
3453Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3454
3455 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
3456 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
3457
09aaf97a
DM
3458Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3459
3460 * ldlex.l (comment): Increment line number when newline is read.
3461
c4e48be3
ILT
3462Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3463
3464 * ldlang.c (lookup_name): Take new argument, force_load. If true,
3465 reload the file even if it is already loaded.
3466 (wild): Call lookup_name with force_load argument of 0.
3467 (open_input_bfds): Call lookup_name with force_load argument of 1.
3468 (print_symbol): Remove declaration of non-existent function.
3469 (print_one_symbol): Return true rather than falling off end.
3470
410945f1
ILT
3471Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3472
3473 * ldmain.c (main): Use %ld when printing long values.
3474
3475 * scripttempl/elf.sc: Move _edata after the .sdata section.
3476 Permit OTHER_BSS_SYMBOLS to be defined.
3477 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
3478
f7d4f6f6
JL
3479Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3480
3481 * Rename all "hppaosf" files to "hppaelf".
410945f1
ILT
3482 * Change all "osf" references to "elf" in hppaelf files.
3483 * Makefile.in: Likewise.
3484 * configure.in: Likewise.
f7d4f6f6 3485
f4972135
DM
3486Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3487
6f671266
DM
3488 * ldmain.c (main): Call xatexit, not atexit.
3489 Call xmalloc_set_program_name.
3490
f4972135
DM
3491 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
3492 bfd_errno.
3493
52a8ebfe
DM
3494Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3495
3496 * emultempl/lnk960.em (append), emultempl/hppaosf.em
3497 (hppaosf_finish): Call xmalloc, not ldmalloc.
3498 * ldmain.c (preserve_output): Function removed.
3499 (main): Do it here instead.
3500
9dd7d585
JL
3501Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3502
3503 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
3504 GNU C specific macros.
3505
3506 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
3507 call to LANG_FOR_EACH_INPUT_SECTION.
3508
0b2f8d2e
DM
3509Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3510
3511 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
3512 deleted; will use libiberty versions instead.
3513 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
3514 mri.c Makefile.in: Change callers.
3515
3516 * ldmisc.c (vfinfo): Remove cleanup code.
3517 * ldmain.c (remove_output): Put it here (new function).
3518 (preserve_output): New function.
3519 (main): Register remove_output and preserve_output with atexit.
3520 * ldmain.c ldgram.y: Call xexit instead of exit.
3521 * ldmisc.h: Declare xexit.
3522
9e0f78c8
SC
3523Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
3524
3525 * Makefile.in: Lots of new H8/500 memory models.
3526
836dcbcf
KR
3527Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3528
3529 * ldlex.l: Removed duplicate rules.
3530 (yywrap): Provide default definition, needed with some versions of
3531 flex.
3532
fb55f9b8
DM
3533Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3534
288897f4
DM
3535 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
3536 the archive filename too.
3537
fb55f9b8
DM
3538 * ldlex.l: Add rule to catch invalid input characters instead of
3539 printing them. Include "ldmain.h" for program_name decl.
3540 (lex_warn_invalid): New function.
3541 * Makefile.in: Add dependency.
3542
f3c6455f
KR
3543Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3544
3545 * Makefile.in (check): Don't bother running any tests of
3546 cross-linker until the test suite no longer assumes native mode.
3547
804c8601
SC
3548Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3549
3550 * ldlang.c (print_one_symbol, print_input_section): Print
3551 global symbols in symbol table again.
3552
7b40f2b1
DM
3553Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3554
3555 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
3556 exit successfully instead of complaining if no input files are
3557 given.
3558
8594f568
SS
3559Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
3560
74e6b793
SS
3561 * Makefile.in: Format variable definitions consistently.
3562 (LD_PROG): Remove unnecessary variables from link command,
3563 change variable LOADLIBES to EXTRALIBS.
3564
8594f568
SS
3565 * ldmain.c (main): Compute and display total execution time.
3566 * ld.texinfo (-stats): Document the option.
3567
755f42fe
ILT
3568Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3569
5dad4c97
ILT
3570 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
3571 arguments.
3572
de08b0b1
ILT
3573 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
3574 after opening BFD.
3575
755f42fe
ILT
3576 * ldlang.c (relaxing): Removed global variable.
3577 (lang_size_sections): If the canonical symbols have not already
3578 been read in, read them in before relaxing.
3579 * ldlang.h (relaxing): Removed declaration.
3580
5e6cd559
ILT
3581Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3582
3583 * ldlang.c (new_afile): Initialize loaded field to false.
3584 (lookup_name): If file was already loaded, don't call the
3585 add_symbols entry point again.
3586
8de26d62
DM
3587Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3588
3589 * ld.texinfo: Clarify what -T option does.
3590
a843c817
SC
3591Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3592
3593 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
3594 for a.out.
3595
901f3538
ILT
3596Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3597
8a432746
ILT
3598 * ldmain.c (add_archive_element): If trace_files or
3599 trace_file_tries, print file name.
3600 * ldlang.c (lookup_name): Likewise.
3601 (ldlang_add_file): Don't put files on input_bfds list in reverse
3602 order.
3603
901f3538
ILT
3604 * scripttempl/elf.sc: Correct typo.
3605
c344d884
DM
3606Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3607
3608 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
3609 their arguments optional, for compatibility with the old GNU ld.
3610
267a3ab3
ILT
3611Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3612
3613 * scripttempl/elf.c: Define __bss_start before the .sbss section.
3614
3107eb5b
ILT
3615Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3616
2f84ec0d
ILT
3617 * ldmain.c (add_to_set): Add bitsize argument.
3618 (constructor_callback): New function.
3619 (link_callbacks): Add constructor_callback.
3620 * ldctor.c (struct set_info): Add bitsize field.
3621 (ldctor_add_set_entry): Add bitsize argument.
3622 (ldctor_build_sets): Base the size of the elements of the set on
3623 the bitsize, rather than always using LONG.
3624 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
3625
3626 * ld.h (QUAD_SIZE): Define.
3627 * ldgram.y (QUAD): New token.
3628 (length): Handle it.
3629 * ldlex.l: Return QUAD.
3630 * lexsup.c (keywords): Add QUAD.
3631 * ldwrite.c (build_link_order): Handle QUAD.
3632 * ldlang.c (print_data_statement): Handle QUAD.
3633 (lang_size_sections): Likewise.
3634 (lang_do_assignments): Likewise.
3635 * ldexp.c (exp_print_token): Add QUAD to table.
3636 * ld.texinfo: Describe QUAD.
3637
3107eb5b
ILT
3638 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
3639 since the Alpha doesn't use them.
3640
080d8af0
DM
3641Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3642
3643 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
3644
3645Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
3646
3647 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
3648 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
3649
34f9bf4b
DM
3650Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3651
3652 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
23fdc6be 3653 needed for i386mach. (Should be a no-op on other systems.)
34f9bf4b
DM
3654
3655 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
3656 (PAGE_SIZE): Don't define; not used.
3657
1d166443
ILT
3658Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3659
3660 * ldgram.y (yyerror): Make argument const char *, and actually
3661 print it out rather than assuming it is a syntax error.
3662 * ldmisc.h: Change declaration of yyerror.
3663 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
3664
ae9c8007
DM
3665Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3666
3667 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
3668 exec header offset, since the exec header isn't loaded.
3669 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
3670
4a6afc88
ILT
3671Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3672
3673 A major rewrite to move the bulk of the linker into BFD so that
3674 more efficient backend code can be written for specific object
3675 files.
3676 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
3677 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
3678 * ldctor.c, ldctor.h: Complete rewrite.
3679 * ldwrite.c, ldwrite.h: Complete rewrite.
3680 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
3681 link_info.strip instead. Changed all uses.
3682 (discard_locals_type, discard_locals): Removed. Use
3683 link_info.discard instead. Changed all uses.
3684 (ld_config_type): Removed relocateable_output field; use
3685 link_info.relocateable instead; changed all uses. Added stats
3686 field.
3687 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
3688 set_loader_symbol): Removed.
3689 * ldexp.h (node_class): Added etree_rel.
3690 (etree_type): Added rel field.
3691 * ldexp.c (exp_print_token): Bracketed table initialization.
3692 (exp_relop): New function.
3693 (fold_name): Use linker hash table rather than ldsym functions.
3694 (exp_fold_tree): Likewise. Also, handle etree_rel case.
3695 (exp_print_tree): Handle etree_rel.
3696 * ldgram.y (strip_symbols, discard_locals): Removed.
3697 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
3698 (REL): New token. Does not appear in grammar, but needed for
3699 expression code.
3700 (file): Don't call lang_final; it's called by main anyhow.
3701 * ldlex.l: Accept -stats and -no-keep-memory options.
3702 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
3703 * ldlang.c: Consistently use fill_type for fill argument.
3704 (lang_init_script_file, script_file): Removed.
3705 (create_object_symbols): Removed. Use
3706 link_info.create_object_symbols_section instead. Changed all
3707 uses.
3708 (lang_add_keepsyms_file): Removed.
3709 (lookup_name): Call bfd_link_add_symbols instead of
3710 ldmain_open_file_read_symbol.
3711 (wild): Don't iterate over script_file.
3712 (open_output): Create link hash table.
3713 (lang_place_undefineds): Rewrote.
3714 (lang_size_sections): Handle relaxing (doesn't work yet).
3715 (lang_relocate_globals): Removed.
3716 (lang_finish): Use link hash table rather than ldsym functions.
3717 (lang_common): Rewrote.
3718 (lang_one_common): New function.
3719 (ldlang_add_file): Add file to link_info.input_bfds list. Set
3720 usrdata.
3721 (create_symbol): Removed.
3722 (lang_process): Don't call lang_init_script_file. Call
3723 ldctor_build_sets rather than find_constructors. Don't call
3724 lang_relocate_globals.
3725 (lang_abs_symbol_at_beginning_of): Rewrote.
3726 (lang_abs_symbol_at_end_of): Rewrote.
3727 * ldmain.c (had_y): Removed.
3728 (lprefix, lprefix_len): Removed; use link_info fields instead.
3729 Changed all uses.
3730 (multiple_def_count, commons_pending, undefined_global_sym_count,
3731 total_symbols_seen, total_files_seen): Removed.
3732 (link_callbacks, link_info): New variables.
3733 (main): Initialize link_info. Don't call init_bfd_error_vector or
3734 ldsym_init. Don't set now unused variables. Handle -stats.
3735 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
3736 (add_ysym): Rewrote.
3737 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
3738 search_library, gnu960_check_format, decode_library_subfile,
3739 linear_library, symdef_library, clear_syms, subfile_wanted_p):
3740 Removed.
3741 (add_keepsyms_file, add_archive_element, multiple_definition,
3742 multiple_common, add_to_set, warning_callback, undefined_symbol,
3743 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
3744 New functions.
3745 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
3746 require symbols for %C; look them up instead.
3747 * emultempl/hppaosf.em: Pass link_info to
3748 hppa_look_for_stubs_in_section.
3749 * Makefile.in: Rebuilt dependencies.
3750 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
3751 relax.c.
3752 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
3753 relax.h.
3754 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
3755 ldlang.h and ldctor.h.
3756
3757 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
3758 declarations of free and malloc from flex output. Change malloc
3759 to ldmalloc in flex output.
3760
3761Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
3762
3763 * ldmain.c (lprefix): Change default from a char to a string
3764 with only one character.
3765 (lprefix_len): Set default to one.
3766
3767 * ldmain.h (lprefix_len): Declare.
3768
3769 * ldsym.c (write_file_locals): Use strncmp rather than a character
3770 comparison for lprefix.
3771
3772 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
3773 correctly.
3774
3775 * emultmpl/hppaosf.em: Include ldexp.h.
3776 (before_parse): Set lprefix and lprefix_len correctly.
3777
498fbd3c
ILT
3778Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3779
553b0021
ILT
3780 * ldlex.h: Don't declare yywrap if it is a macro.
3781 * ldlex.l: Include sysdep.h.
498fbd3c
ILT
3782 * ldlang.c (lang_for_each_statement_worker,
3783 lang_for_each_statement): Forgot to use PARAMS.
3784
1400cdc5
ILT
3785Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3786
3787 * Makefile.in: Added .PHONY targets where appropriate. Added some
3788 comments. Also:
3789 (gcclibdir, version): Removed unused variables.
3790 (DEP): New variable, set to mkdep.
3791 (ALL_CFLAGS): New variable. Used in .c.o target.
3792 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
3793 variables.
3794 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
3795 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
3796 mostly obsolete variables. Adjusted remaining uses.
3797 (DEF_EMUL): Removed variable.
3798 (ldmain.o): Handle undefined EMUL error correctly.
3799 (ldemul-list.h): Depend on config.status rather than Makefile.
3800 Create via temporary file.
3801 (ver960.c, roll, make): Removed obsolete targets.
3802 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
3803 dependencies.
3804 * dep-in.sed: New file, used when rebuilding dependencies.
3805
2c6635a4
ILT
3806Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
3807
fcf276c4
ILT
3808 Made many changes to eliminate gcc warnings. Made various
3809 cosmetic changes, declared various things in header files, removed
3810 various extern declarations from .c files. No substantive
3811 changes.
3812
2c6635a4
ILT
3813 * ldlang.c (lang_process): Ifdef out final call to
3814 lang_size_sections again (reverting change of Nove 2), since it
3815 breaks the Sun4 linker.
3816
3817Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3818
3819 * configure.in (alpha-*-netware*): New target; use alpha.
3820
d05ac46b
KR
3821Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
3822
3823 * configure.in: Group targets by CPU. Merge some m68k target
3824 entries with different CPU specs that use the same ld_target
3825 values.
3826
3827 * configure.in: Add sparc*-*-coff.
3828 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
3829 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
3830 (em_coff_sparc.c): Add dependencies and build rules.
3831
3832 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
3833
f651733a
ILT
3834Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3835
8e964b07
ILT
3836 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
3837 New tokens.
f651733a 3838 (command_line_option): Accept and ignore them (for now).
8e964b07
ILT
3839 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
3840 where n is a number.
f651733a
ILT
3841
3842Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3843
3844 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
3845 not in bfd_com_section, create the section in the BFD so that it
3846 can be placed in the right output section.
3847
2332114c
ILT
3848Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3849
3850 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
3851 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
3852 (OTHER_READONLY_SECTIONS): Define for .reginfo.
3853 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
3854 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
3855 Move OTHER_READONLY_SECTIONS after all the other readonly
3856 sections. Don't use DATA_ADDR twice.
3857
3858 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
3859 p is in a common section, make sure the BFD has a section of that
3860 name.
3861
3862 * ldlang.c (lang_common): Add newline to error message.
3863
3864Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
3865
3866 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
3867 Lynx-specific script instead of m68kcoff.
3868 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
3869 (ENTRY): Define as __main.
3870 (TEXT_START_ADDR): Define as 0.
3871 (PAGE_SIZE): Define as 0x1000.
3872 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
3873 * scripttempl/m68klynx.sc: New file.
3874
3875Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3876
3877 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
3878 arguments rather than treating them as emulation names.
3879
b11b3ace
DHW
3880Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
3881
3882 * configure.in: Support x86 unixware and netware plus generic netware.
3883
2ccb88c0
DM
3884Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3885
3886 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
3887 Correct values (?).
3888
3c1af24d
KR
3889Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
3890
3891 * Makefile.in (distclean): Don't delete dvi or info files.
4ecfad79 3892 (ld.info): Update dependency list.
2ccb88c0 3893 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
3c1af24d 3894
3c292c5a
DM
3895Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3896
3897 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
3898 Set output_filename instead of creating a new node.
3899 (open_output): Don't set output_filename.
3900 (lang_final): Create the new node here.
3901 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
3902
97fbbaca
JL
3903Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
3904
f1f6b5e9
JL
3905 From Pete Hoogenboom (hoogen@cs.utah.edu):
3906
3907 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
3908 edata, _edata, end): Add definitions of these symbols.
3909 (__end): Remove definition of this symbol.
3910 (__data_start): Move definition of this symbol.
3911
5f62613e
JL
3912 * emultempl/hppaosf.em: Various fixes and support for linker stub
3913 generation.
3914 (hppaosf_finish, hppaosf_search_for_padding_statements,
3915 hppaosf_create_output_section_statements): New functions in
3916 support of linker stub generation.
3917 (ld_hppaosf_emulation): Redefine to include new
3918 emulation-specific routines.
3919
97fbbaca
JL
3920 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
3921 Pass abs_output_section rather than NULL to avoid invalidating
3922 absolute symbols.
3923
3924Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3925
3926 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
3927 (em_i386mach.c): New rule.
3928 * configure.in (i[34]86-*-mach*): New case.
3929 * config/i386-mach.mt: New file.
3930 * emulparams/i386mach.sh: New file.
3931
c3b34cfd
ILT
3932Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3933
3934 * ld.h (flag_is_*): Removed macros.
3935 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
3936 Consistently check the BFD symbol flags directly, rather than
3937 using file_is_* macros.
3938
7b95fe96
SS
3939Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
3940
3941 * configure.in (sparc*-*-lynxos*): New target.
3942 * Makefile.in: Add rule for em_sparclynx.c.
3943 (ALL_EMULATIONS): Add Lynx emulations.
3944 * config/sparc-lynx.mt: New file.
3945 * emulparams/sparclynx.sh: New file.
3946 * scripttempl/sparccoff.sc: New file.
3947
d17eb3db
ILT
3948Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3949
3950 * Makefile.in: Add dependency for $(EMULATION_OFILES).
3951
db4b5ad0
ILT
3952Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3953
3954 * relax.c (write_relax): Check return value of bfd_seclet_link.
3955
2fe6619e
KR
3956Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
3957
3958 * ldlang.c (delete_output_file_on_failure): New variable.
3959 (open_output): Set it after bfd open succeeds.
3960 * ldmisc.c (vfinfo): Test it.
3961
3962 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
3963
3964 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
3965 symbols.
3966
3967 * ldemul.c: Support was added to allow emulation-specific
3968 processing to occur. This support was added primarily for linker
3969 stub generation in the elf32-hppa gld.
3970 (ldemul_finish, ldemul_create_output_section_statements): New
3971 functions.
3972 * ldemul.h: Support was added to allow emulation-specific
3973 processing to occur. (As described above.) Added finish and
3974 create_output_section_statements fields to
3975 ld_emulation_xfer_struct structure.
3976 * ldlang.c: Add calls to emulation-specific routines.
3977 (lang_process): Add call to
3978 ldemul_create_output_section_statements function.
3979 (lang_process): Add call to a emulation-specific routine (and
3980 some processing after the call).
3981
3982Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
3983
3984 * configure.in: mips*- instead of mips-, mips*el changes
3985
1c4b3cda
ILT
3986Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3987
3988 * configure.in (alpha-*-osf*): New target; use alpha.mt.
3989 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
3990 (em_alpha.c): New target; use alpha.sh and alpha.sc.
3991 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
3992 * config/alpha.mt: New file.
3993 * emulparams/alpha.sh: New file.
3994 * scripttempl/alpha.sc: New file.
3995
3996Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
3997
3998 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
3999 types of different sizes (eg: 64 and 32 bits), so coerce.
4000 * ld.h (ALIGN_N): Add warning about usage.
4001
98b5caad
ILT
4002Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4003
4004 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
4005 which we already have a definition, rather than checking in
4006 several different places whether the symbol is weak.
4007
a71da760
ILT
4008Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4009
4010 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
4011 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
4012 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
4013 expanded within them.
4014 * config/mipsb-elf32.mt: New file.
4015 * emulparams/elf32mipb.sh: New file.
4016 * Makefile.in (em_elf32mipb.c): New target.
4017
a4aeaacf
RS
4018Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
4019
a4aeaacf
RS
4020 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
4021 lang_input_file_is_search_file_enum so objects brought in using
4022 INPUT() do a path lookup.
4023
4024Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
4025
4026 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
4027 instead of {i386,m68k}-coff.
4028 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
4029 * config/i386-lynx.mt: New file.
4030 * config/m68k-lynx.mt: New file.
4031 * emulparams/i386lynx.sh: New file.
4032 * emulparams/m68klynx.sh: New file.
4033
4034 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
4035 but defaulting to _start.
4036
4037 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
4038 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
4039 LynxOS libc.
4040
4041Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
4042
4043 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
4044 HOSTING_LIBS for testing.
4045
9a467cb2
ILT
4046Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4047
4048 Finish up support for i386-sysv4 (without shared libraries):
4049 * ld.h (flag_is_weak): Define.
4050 * ldlang.c (print_symbol): Mention whether symbol is weak.
4051 (print_input_section): Print weak symbols as globals.
4052 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
4053 (enter_global_ref): Do not warn if a weak symbol redefines a
4054 global symbol. Do not let a weak symbol redefine a common symbol.
4055 (enter_file_symbols): Treat weak symbols as global symbols.
4056 (subfile_wanted_p): Do not pull in an object file from a archive
4057 just to resolve an undefined weak symbol.
4058 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
4059 error; the error might be that malloc has run out of space.
4060 * ldsym.c (write_file_locals): Treat weak symbols as global.
4061 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
4062 use i386-elf.
4063 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
4064 * config/i386-elf.mt: New file; set EMUL to elf_i386.
4065 * emulparams/elf_i386.sh: New file.
4066 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
4067 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
4068 (ALL_EMULATIONS): Add em_elf_i386.o.
4069 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
4070 (em_elf_i386.c): New target, like other em_*.c targets.
4071 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
4072 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
4073 nonempty, and configured for native, add it to LIB_PATH.
4074
4f6d6db9
SS
4075Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
4076
4077 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
4078 Added statements to pass stab and stabstr sections through and
4079 mark them as NOLOAD, which makes GDB happier.
4080
4081Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
4082
4083 * configure.in: Accept m68k-lynx-lynxos config.
4084
4085 * Makefile.in: Use $(SHELL) to run genscripts.sh.
4086
1bff7c38
DE
4087Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
4088
4f6d6db9
SS
4089 * config/coff-h8300.mt: Add EMUL=h8300h.
4090
1bff7c38
DE
4091 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
4092
8a6665ae
JW
4093Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
4094
4095 * Makefile.in: Changed CXX back to g++.
4096
3a9149a7
JW
4097Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
4098
4099 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
4100
cbb5c2d1
DM
4101Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4102
4103 * Makefile.in (TAGS): Use shell wildcards.
4104
959eba20
JO
4105Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
4106
4107 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
4108
a0a55af6 4109Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
c1074477 4110
a0a55af6
RP
4111 * ld.texinfo: re-enable included config file; conditionalize doc
4112 for -oformat to interact properly with SingleFormat doc config
4113 var; rename @up/@down to @raisesections/@lowersections.
c1074477
DE
4114
4115Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4116
4117 * configure.in: recognize m88110.
4118
4346166b
KR
4119Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4120
4121 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
4122 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
4123 ELF emulation is "elf32-hppa" not "elf-big".
4124 (hppaosf_before_parse): Remove unneeded processing of environment
4125 variables.
4126 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
4127 .text segment of output file.
4128 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
4129
b98bd3db
RP
4130Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4131
95a2b9d2
RP
4132 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
4133 longer in bfd.h.
4134
4135 * ldlang.c, ld.h: updated copyright.
b98bd3db 4136
ddddcdf0
ILT
4137Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4138
4139 * ldlang.c (open_output, lang_check): Check return value of
4140 bfd_set_arch_mach.
4141
ea1c0ad2
SC
4142Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
4143
4144 * scripttempl/h8500.sc: Start all sections in a different segment.
4145 * scripttempl/z8ksim.sc: Handle constructors
4146
ea1c0ad2
SC
4147Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
4148
4149 * Makefile.in: revert earlier changes back to execute runtest
4150 with make check. cdtest and bootstrap now function as they
4151 did within the Makefile.
4152
4153Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4154
4155 * Makefile.in: Update dependencies.
4156
4157 * configure.in: Set EMULATION_OFILES in Makefile based on
4158 --with-targets option.
4159
d301e438
JW
4160Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
4161
4162 * Makefile.in: check targets reimplemented to old way.
4163
75fe5471
ILT
4164Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
4165
d62026ad
ILT
4166 * config/i386v.mh, config/irix4.mh: Use gcc
4167 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
75fe5471
ILT
4168 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
4169 bfd/configure.host change.
4170
4171Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4172
4173 * scripttempl/elf.sc: Handle .line and .debug* sections.
4174
4175 * ldlex.l: Use bfd_scan_vma, not strtoul.
4176
31f55aa5
DM
4177Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4178
4179 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
4180 Remove inital caps in some error messages, change "can't" to
4181 "cannot", add missing colons.
4182 * ldmisc.c (vfinfo): Print "%%" as a single %.
4183 For '%' followed by unrecognized character, print them both
4184 verbatim instead of expecting a char * arg.
4185 For '%C', don't put the function name in parens.
4186
4187 * ldexp.c (invalid): Pass "%%", not "% ".
4188
33536304
ILT
4189Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4190
4191 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
4192 (BSS_VAR): Removed; now always define _fbss.
4193 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
4194 Removed.
4195
4196Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
4197
4198 * configure.in: z8k-coff is the same as z8k-sim
4199
7c6a9e79
JW
4200Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
4201
4202 * testsuite/lib/ld.exp: new file
4203 * testsuite/config/unix-ld.exp: new file
4204 * testsuite/ld.bootstrap/bootstrap.exp: new file
4205 * Makefile.in: add dejagnu support for make check
4206
8bf66be8
DM
4207Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4208
4209 * ldlex.l (comment): Add missing newline in message.
4210 * ldindr.c (add_indirect): Ditto.
4211 * ldexp.c (exp_fold_tree): Ditto.
4212
2a28d8b0
DM
4213Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4214
4215 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
4216 into externs.
4217
4218 * ldmisc.c (multiple_warn): New function.
4219 * ldmisc.h: Declare it.
4220 * ldmain.c (enter_global_ref): Call it.
4221 * ld.h (ld_config_type): Add warn_common.
4222 * ldlex.l, ldgram.y: Set it with -warn-common option.
4223 * ldver.c (help): Document it.
4224
94f9d427
KR
4225Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4226
4227 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
4228 target-specific sections, and for changing data section vma.
4229
6b93d764
KR
4230Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4231
4232 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
4233 terminals, for Solaris.
4234 (dirlist_ptr): New static variable.
4235 (command_line_option): Accept new options.
4236
4237 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
4238 "-YP,...".
4239
4240 * config/sun4sol2.mt: Pass emulation name without ".sh".
4241
94f9d427
KR
4242 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
4243 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
4244
6b93d764
KR
4245Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4246
4247 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
4248 .dtors, .data1, .rodata1 sections, instead of combining them into
4249 other sections. For `-r', set all section start addresses to
4250 zero.
4251
4252 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
4253 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
4254 (MAXPAGESIZE): Renamed from PAGE_SIZE.
4255
a6152e39
DM
4256Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4257
d59e5a47
DM
4258 * genscripts.sh: If this is the default emulation, set
4259 COMPILE_IN.
4260 * emultempl/*.em: Use it to determine whether to compile in the
4261 scripts.
4262
a6152e39
DM
4263 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
4264 genscripts.sh. Pass the current emulation name without ".sh" on
4265 the end.
4266 * genscripts.sh: Take an default emulation arg.
d59e5a47 4267 Use the current emulation name as EMULATION_NAME.
a6152e39
DM
4268 Make default lib path for cross-compiling ':', not null.
4269 * emulparams/*.sh: Don't set EMULATION_NAME.
4270 * ldemul.c (ldemul_get_script): Take isfile arg.
4271 Pass it to emulation's get_script function.
4272 * ldemul.h: Adjust get_script prototypes.
4273 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
4274 No longer static.
4275 * ldfile.h: Declare it.
4276 * ldgram.y: Accept a script on the command line again,
4277 for parsing compiled-in scripts.
4278 * ldmain.c (main): If ld script is a file, parse it as a -T
4279 option, otherwise parse it directly.
4280 * emultempl/*.em (*get_script): Return the scripts themselves if
4281 this is the default emulation; otherwise return their file names.
18d9a9c5 4282 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
a6152e39
DM
4283 generic.em.
4284 * emulparams/m88kbcs.sh: Use it.
4285
18d9a9c5 4286 * ld.h (ld_config_type::unix_relocate): Remove unused element.
a6152e39 4287
0750b974
KR
4288Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4289
4290 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
4291 there's no change log entry yet, tsk tsk) from the list of
4292 emulations compiled in until Mark gets around to checking in
4293 emulparams/i386linux.sh.
820c446c
KR
4294 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
4295 changed, this file gets updated.
0750b974 4296
fe619ced
ILT
4297Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
4298
4299 * ldgram.y (OPTION_Lfile): New token.
4300 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
4301 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
4302
dd8ca662
DE
4303Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
4304
4305 * configure.in: h8/300h support needs own .mt file.
4306 config/coff-h8300h.mt: New file.
4307
922018a1
DM
4308Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4309
4310 * ldmain.c: Don't include sys/stat.h; it already got included
4311 somewhere along the way.
4312
4ab3a31f
DE
4313Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
4314
4315 * Makefile.in: Add h8300h support.
dd8ca662
DE
4316 emulparams/h8300h.sh: New file.
4317 scripttempl/h8300h.sc: New file.
4ab3a31f 4318
bbd2521f
DM
4319Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4320
4321 * ldfile.c (ldfile_open_file): In error message, use the name the
4322 user gave (e.g., "-lc"), rather than the base file name.
4323
4324 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
4325
4326 * ldmain.[ch]: Remove initial Q_ from function names.
4327 * ldexp.c, ldindr.c, ldlang.c: Change callers.
4328
4329 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
4330
4331 * ldlang.c (lang_process): Move loading of default script from
4332 here to main. Add a "/" to start of script name to prevent
4333 finding it in "." first.
4334
4335 * ldmain.c (set_scripts_dir): Don't look in "." first.
4336
4337 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
4338 option_longmap.
4339
9edc5b2e
ILT
4340Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
4341
4342 * Makefile.in (em_m88kbcs.c): Correct dependency.
b0955bc9
ILT
4343 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
4344 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
4345 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
9edc5b2e 4346
cffdcde9
DM
4347Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4348
4349 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
4350 main.c (main): Print the errno string in the error message.
4351
ac2c0ee7
DE
4352Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
4353
4354 * configure.in: Accept h8300h for target cpu.
4355
4356 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
4357 present (demangle is smart enough to know whether to do it or not).
4358
d723cd17
DM
4359Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4360
f4208462
DM
4361 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
4362 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
4363
d723cd17
DM
4364 * ldlang.c (lang_process): Use sizeof instead of magic constant.
4365
4366 * ldmain.c (get_emulation, check_for_scripts_dir,
4367 set_scripts_dir): New functions.
4368 (main): Call them.
4369
e7affb09
KR
4370Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4371
4372 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
4373 Create symbol "end" instead of "__end". Comment out some parts
4374 that may not be needed (yet) for elf.
4375
4376 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
4377
3cb61417
KR
4378Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4379
4380 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
4381
4382 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
4383 when no prototype is being supplied.
4384 (ldmalloc, ldrealloc): Size argument is now size_t.
4385
4386 * ldmisc.c (finfo): New function, accepts FILE* argument.
4387 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
4388 without leading zeros.
4389 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
4390 bfd_vma value, instead of fprintf(%x) which won't hold a long long
4391 value.
4392 (concat, buystring): String lengths are size_t.
4393 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
4394
4395 * ldlang.c (new_statement): Size argument is now size_t. Added
4396 forward declaration with prototype.
4397
de87cdb4
DM
4398Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4399
4400 * ldgram.y (OPTION_v): Don't turn on verbose output.
4401
49bfda2c
KR
4402Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4403
3cb61417
KR
4404 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
4405 bfd.h instead.
49bfda2c 4406
e357065c
ILT
4407Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
4408
4409 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
4410 collect2 doesn't look for gld any more anyhow.
4411
55636aa7
ILT
4412Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
4413
4414 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
4415 now have a non NULL srefs_chain.
4416
4417 * config/hp300hpux.mt: Use emulation hp3hpux rather than
4418 hp300hpux, since the latter does not exist.
4419
ff76a7db
DM
4420Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4421
4422 * genscripts.sh: Put the scripts in the ldscripts directory, not
4423 emulations.
4424 * configure.in (ldscripts): Make, instead of emulations.
4425 * Makefile.in (scriptdir): Take off the "ld" part.
4426 (install, clean, distclean): Use ldscripts, not emulations.
a04f1d00 4427 In tests, don't pass -Lemulations.
ff76a7db
DM
4428 Don't pass tooldir/lib to genscripts.sh.
4429 * genscripts.sh: Don't take tooldir/lib arg.
4430 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
4431 default script file.
4432
7434d4e5
DE
4433Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
4434
4435 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
4436
4437Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
4438
4439 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
4440
559d7baf
RP
4441Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4442
1e787898
RP
4443 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
4444 run in parallel without colliding on yacc's static file names.
4445 Without the stub rule, make will try to start two yacc's
4446 concurrently which fails because of yacc's static file names.
559d7baf
RP
4447
4448Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
4449
4450 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
4451 symbols.
4452
59fb874e
DM
4453Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4454
559d7baf
RP
4455 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
4456 different from libdir.
4457
59fb874e
DM
4458 * Makefile.in (scriptdir): Base on tooldir, not datadir.
4459
bf065bfd
DM
4460Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4461
4462 * ldver.c (help): New function.
4463 * ldver.h: Declare it.
4464 * ldlex.l, ldgram.y: Recognize new options --help and --version.
4465
304b747a
KR
4466Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
4467
4468 * Makefile.in (INCLUDES): Don't need ../include any more.
4469
2b63dbfe
DM
4470Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4471
bf065bfd
DM
4472 * ldlex.l, ldgram.y: Support new -oformat option.
4473 Remove attempt at supporting script fragments on the command line.
4474 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
4475 * mri.c (mri_format), ldgram.y: Change callers.
4476 * ldlang.h: Change prototype.
2b63dbfe 4477
e9b991c6
DZ
4478Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
4479
4480 * Makefile.in: canonicalize install.sh; for use within
4481 this directory (and subdirs)
4482
565c93e9
DM
4483Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4484
2de8edce
DM
4485 * ldgram.y: Tweak grammar to make reporting of invalid options work.
4486
565c93e9
DM
4487 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
4488 and .cc.o rule.
4489
8ddef552
DM
4490Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4491
4492 * ldfile.c (ldfile_open_command): Don't try .ld extension.
4493 It wasn't documented (or likely used) and wastes time.
4494 (try_open): If EXTEN is empty, don't try it.
4495
4496 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
4497 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
4498 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
4499 with normal function declarations.
4500
4501 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
4502 Move *.sc-sh to scripttempl/*.sc.
4503 * {emultempl,emulparams,scripttempl}/README: New files.
4504 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
4505 removed, replaced with generic.em.
4506 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
4507 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
4508
4509 * *.em (*_get_script): Return script name instead of script contents.
4510 * ldlang.c (lang_process): Change caller.
4511
4512 * ldlex.l, ldgram.y: Recognize -m option.
4513 Check for input files after *all* options in grammar.
4514 * ldmain.c (main): Check for -m options. Add default directory
4515 for -m.
4516
4517 * mkscript.c: File removed.
4518 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
4519 to add to the default LIB_PATH.
4520 Look for input files in the new subdirectories.
4521 Create the scripts in emulations subdirectory and don't filter
4522 them through mkscript.
4523 * configure.in: Make the emulations subdirectory.
4524
4525 * Makefile.in: Account for all of the above changes.
4526 Remove unused .SUFFIXES. Get libgcc.a path with gcc
4527 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
4528 Put CFLAGS last in the compilation rules.
4529 Add -I../bfd to INCLUDES so sysdep.h is found.
4530
2a963f1a
KR
4531Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4532
4533 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
4534
4535 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
4536 dependent on RELOCATING, not RELOCATION.
4537 * hp3hpux.sh (SHLIB_PATH): Define it.
4538
8ddef552
DM
4539Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4540
4541 * ldfile.c (try_open): If opening without the extension fails,
4542 try with the extension even if -v or -V was given.
4543 had_script is imported (from ldgram.y), not exported.
4544
c97b9003
DZ
4545Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
4546
4547 * Makefile.in: remove parentdir support, use INSTALL_XFORM
4548
4549Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
4550
4551 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
4552 * ldgram.y (statement_list_opt): New nonterminal, either empty or
4553 statement_list.
4554 (section): Use statement_list_opt, not statement_list.
4555 * m68kcoff.sc-sh: Gather constructors and destructors and define
4556 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
4557 * sa29200.sc-sh: Gather constructors and destructors and define
4558 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
4559
7f2649bb
PB
4560Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
4561
4562 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
4563 * configure.in: No longer need to configure to get sysdep.h.
4564
91b3a2b6
DZ
4565Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4566
7f2649bb
PB
4567 * Makefile.in: remove install:all and install-info:info
4568 dependencies (these cause some spurious rebuilds at 'make install'
4569 time)
91b3a2b6 4570
559d1cff
ILT
4571Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
4572
98f3d1af
ILT
4573 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
4574 (mips-idt-ecoff*): Added trailing '*'.
4575 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
4576 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
4577 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
4578
559d1cff
ILT
4579 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
4580 incorrect definitions.
4581
1cf91c69
PB
4582Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
4583
4584 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
4585 symbols, unless stripping.
4586
63545898
ILT
4587Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
4588
4589 * Makefile.in: configure looks for ####, so remove lines with many
4590 '#' characters.
4591 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
4592 and HOSTING_LIBS correctly so that ``make check'' will work.
4593
4594Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
4595
4596 * mips.sc-sh: Define _etext, _edata, and _end, in addition
4597 to etext, edata, and end. Needed for IRIX 4.0.5F.
4598 Patch from mwp@iconix.oz.au (Michael Paddon).
4599
2a963f1a
KR
4600 * Version 2.2.1 released.
4601
5266c5ec
KR
4602Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4603
4604 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
4605 * mipsbsd.sh (EMULATION_NAME): Use new file name.
4606
4607Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4608
4609 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
4610 properly right now.
4611
4612 * Version 2.2 released.
4613
4614Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4615
4616 * ldver.c (ldversion): Bump version number to 2.2.
4617
bc3b479c
PB
4618Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
4619
4620 * NEWS: New file.
4621
4622Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
4623
4624 * mips.sc-sh: Don't define BSS_VAR unless relocating.
4625
4626Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
4627
4628 * Makefile.in (mkscript.o, mkscript): Build mkscript via
4629 mkscript.o, rather than directly from mkscript.c.
4630
b8fc168d
KR
4631Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4632
4633 * configure.in: Look for ${target_makefile_frag} relative to
4634 ${srcdir}, not relative to build directory.
4635
4636 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
4637 * configure.in: Recognize hppa*-hp-osf.
4638 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
4639 (em_hppaosf.c): Build it.
bc3b479c 4640 * config/hppaosf.mh, hppaosf.mt: New files.
b8fc168d
KR
4641
4642 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
4643 some system header files. All uses changed.
4644
4645 * configure.in: Recognize i386-aix configurations as i386-coff
4646 targets.
4647
4648 * configure.in: Recognize m68*-*-hpux.
4649 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
4650 the value of STACKZERO.
4651 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
4652 (em_hp3hpux.c): Build it.
4653 * hp3hpux.sh, config/hp300hpux.mt: New files.
4654
ef868186
ILT
4655Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
4656
4657 * mips.sc-sh: Put constructors in the .data section.
4658 * Makefile.in (cdtest): Added dependency on ld.new.
4659
034351e3
PB
4660Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
4661
4662 * Makefile.in: Change definition of $(tooldir) to match FSF.
4663 * vax.sh, config/vax.mt, configure.in, Makefile.in:
4664 Support VAX Ultrix and BSD.
4665
4666Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4667
4668 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
4669
4670Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
4671
4672 * ldlang.h (struct memory_region): Change `length' and
4673 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
4674 * ldlang.c, mri.c: Corresponding changes, plus lint.
4675
4676Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
4677
4678 * configure.in: For all i386 targets, accept i486 as well.
4679
4680Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
4681
4682 * ldlang.c (wild_doit): Preserve all flags for a
4683 SEC_SHARED_LIBRARY section.
4684 (size_input_section): Consider any SEC_HAS_CONTENTS section when
4685 computing largest_section.
4686
1b8a42f3
ILT
4687Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
4688
4689 * ldlang.c (lang_output_section_statement_lookup): Initialize all
4690 fields of newly created structure.
4691
4692Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
4693
4694 * ldmain.c (g_switch_value): New variable.
4695 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
4696 (command_line_option): Accept -G and set g_switch_value.
4697 * ldlex.l (COMMAND): Accept -G.
4698 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
4699
29f33467
SC
4700Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4701
9fce28ed
SC
4702 Support for linking and loading at different places:
4703
4704 * ldlex.l: Add "AT" keyword.
4705 * ldgram.y: Cleanup, and parse AT.
4706 * ldlang.c (print_output_section_statement): Print output address
4707 of section in map. (lang_size_sections): Fill sections' lma with
4708 load address.
4709 * ldlang.h (lang_output_section_statement_type): Add load_base
4710 information.
4711
29f33467
SC
4712 * ldindr.c (add_indirect): Keep more information in the alias
4713 symbol chain.
4714 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
4715 attribute from an input section.
4716 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
4717 default. (Q_enter_file_symbos): Indirect symbols now are known by
4718 their section, not a special symbol flag.
4719 * ldsym.c (write_file_locals): Indirect symbols aren't local.
4720 (write_file_globals): Write the mapping for an indirect symbol.
4721 * relax.c (build_it): When forced to write a NEVER_LOAD section,
4722 fill it with zeros.
4723
4724Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
4725
4726 * ld.texinfo: changes for q1
4727
f20e9842
DZ
4728Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4729
4730 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
4731
4732Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4733
4734 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
4735
4736Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
4737
4738 * mips.sc-sh: Added variables which may be overridden by a
4739 specific emulation.
4740 * mipsidt.sh: New file; emulation for IDT MIPS board.
4741 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
4742 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
4743 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
4744 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
4745
e637dcf0
KR
4746Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4747
4748 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
4749 ralphc@pyramid.com.
4750 * i386bsd.sh, config/i386bsd.mt: New files.
4751 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
4752
26483cc6
PB
4753Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
4754
e637dcf0 4755 * mri.c: Add extern declaration of strdup.
26483cc6
PB
4756 * ldsym.c (KEEP macro): Add spaces around '=' for the
4757 sake of old (e.g. PCC) compilers.
4758
05985c77
PB
4759Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
4760
4761 * ldver.c: Bump to version 2.1.
4762
067e2baa
SC
4763Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4764
4765 * ldgram.y: allow section types without address expressions.
4766 * ldlang.c (lang_relocate_globals): avoid possible hang with
4767 undefined but unreferenced symbols.
4768 * relax.c (relax_section): don't complain if the script file isn't
4769 relaxable but -relax is set
4770
fb8ecc3d
DZ
4771Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4772
4773 * configure.in: go32 is the 3rd part of the triple, not the 2nd
4774
067e2baa
SC
4775Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
4776
4777 * mipsbig.sh: New file. Big endian MIPS emulation.
4778 * config/mips-big.mt: New file. Use mipsbig emulation.
4779 * configure.in (mips-sgi-irix*): Use target mips-big.
4780 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
4781 (em_mipsbig.c): New target. Uses mipsbig.sh.
4782
e193c31b
ILT
4783Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
4784
4785 * mips.sc-sh: Put .scommon sections into .sbss section.
4786
4787 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
4788 rather than always putting them in bfd_com_section.
4789 * ldlang.c (lang_common): If a common symbol is not in
4790 bfd_com_section, put in a section of the same name, rather than
4791 always putting it in section COMMON.
4792
8a3efe67
ILT
4793Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
4794
f31cb329
ILT
4795 * ldmain.c (subfile_wanted_p): If we already have a common
4796 definition of a symbol, don't necessarily pull in an object file
4797 that provides a non-common definition.
4798
8a3efe67
ILT
4799 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
4800 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
4801 linker.
4802 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
4803 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
4804
af6237a4
ILT
4805Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
4806
4807 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
4808 the link to it.
4809
8a045e50
ILT
4810Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
4811
4812 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
4813 checking for equality to bfd_com_section.
4814
42b5c739
ILT
4815Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
4816
4817 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
4818 targets, linker script.
4819 * mipslit.sh: New file. Little endian MIPS emulation.
4820 * config/mips-lit.mt: New file. Use mipslit emulation.
4821 * configure.in (mips-dec-ultrix*): Use target mips-lit.
4822 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
4823 (em_mipslit.c): New target. Uses mipslit.sh.
4824
4825Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
4826
4827 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
4828 $(tooldir)/bin/gld, so that gcc can find it with or without
4829 collect2.
4830
ac496d4f
ILT
4831Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4832
4833 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
4834 write_norel. All linking is now done via write_relax. Call
4835 ldsym_write before calling write_relax.
4836 * relax.c: Added copyright.
4837 (write_relax): Renamed from write_relaxnorel. Added relocateable
4838 argument. seclet_dump renamed to bfd_seclet_link.
4839 * relax.h: Added copyright.
4840
0550e9f4
SC
4841Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4842
4843 * ldmain.c (decode_library_subfile): Patch from
4844 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
4845
4846Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4847
4848 * config/vxworks960.mt renamed to config/i960.mt
4849
4850 * configure.in: sparc-aout emulates a sun4, as does
4851 sparc*-vxworks, i960-nindy uses gld960 emulation
4852
dadd414a
SC
4853Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4854
4855 Fix support for NOLOAD, add INCLUDE
4856 * ldfile.c (ldfile_open_command_file): pass file name to
4857 lex_push_file.
4858 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
4859 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
4860 attribute.
4861
4862Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4863
4864 * Makefile.in, config.h: no more default emulation. Make the lack
4865 of emulation a compile time error
4866
4867Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4868
4869 * configure.in: recognise all sparclite variants, not just 'sparclite'
4870
a70947c1
ILT
4871Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
4872
4873 * m68kcoff.sc-sh: define _end as well as end, for consistency with
4874 aout.sc-sh.
4875
4876 * configure.in: accept *-ericsson-ose for any m68k CPU.
4877
4878 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
4879 for each output section.
4880
086c5e37
PB
4881Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
4882
4883 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
4884 macro bfd_asymbol_bfd as appropriate.
4885 * Makefile.in: Un-duplicate ldlex.c dependency.
4886 * condigure.in: Replace my_host case table by sourcing
4887 ../bfd/configure.host. Allow std-host as the default.
4888 * ldmisc.c: Change logic for C++ name demangling: There is
4889 no initial '_' to remove from stab-derived function names.
4890
4891Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4892
4893 * ldlang.c (lang_init_script_file): don't attach the output file
4894 sections to the script file.
4895
4896Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4897 * ldlang.c (wild): run expansion loop over command line bfd too.
4898 (lang_ini_script_file): initialize more parts of the command line
4899 bfd.
4900 * ldlex.l: fix DEFINED start states.
8ddef552 4901
85e38cfa
SC
4902Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4903 -y support
4904 * ld.texinfo: new doc.
4905 * ldgram.y, ldlex.l: understand -y<symbol>
4906 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
4907 print info. (add_ysym): new function.
4908 * ldsym.h: (ldsym_type): new define SYM_Y.
4909
e20873a7
JG
4910Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
4911
4912 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
4913 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
4914 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
4915 macros with PARAMS. Recreational cleanup. Update copyrights.
4916
4917Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4918
4919 * Makefile.in: pass down the bfd source directory for includes
4920
22292613
ILT
4921Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
4922
4923 * ldlang.c (lang_size_sections): don't change size and address for
4924 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
4925 sections.
4926
85c838d6
SC
4927Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4928
4929 * relax.c (build_it): re-enable the processing of data_statements
4930 in scripts, makes counted contructor lists work again.
4931
6e94236a
JG
4932Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
4933
4934 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
4935
4936Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
4937
4938 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
4939 and end.
4940
e9b63852
ILT
4941Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
4942
4943 * Support for i386-sysv.
4944 configure.in: check for i386-*-sysv* and i386-*-sco*.
4945 i386coff.sc-sh: rewrote to support SVR3 by default.
4946 ldctor.c (find_constructors): preserve stat_ptr.
4947 ldlang.c (wild_doit): initialize vma and size of new output
4948 section to corresponding input section. This is required for
4949 shared library support.
4950 (lang_size_sections): don't modify vma and size of sections which
4951 are never loaded (for shared libraries).
4952 ldwrite.c (copy_and_relocate): copy the contents of any section
4953 which has contents, not just sections which are loaded (for shared
4954 libraries).
4955
ba2c2b1c
SC
4956Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4957
4958 * ldlang.c (size_input_section): count the sizes of all sections
4959 we allocate.
4960
a385b38f
SC
4961Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4962
4963 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
4964 to demangle symbols better
4965
81150d34
ILT
4966Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
4967
4968 * ldlang.c (lang_finish): don't warn if -e start symbol does not
4969 exist when linking with -r.
4970
b5ddf942
ILT
4971Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
4972
4973 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
4974 .bss segment.
4975
f3739bc3
SC
4976Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4977
4978 * ldmain.c (linear_library): don't even think about processing
4979 an object file if it's already been done
4980
4981Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4982
4983 * configure.in: the hp9000/300 config file is now hp300
4984
ac0832f3
SC
4985Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4986
4987 * config/z8ksim.mt: new file
4988
f3b36ecb
KR
4989Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
4990
4991 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
4992 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
4993
4994 * ld.h (strip_symbols_type): Add value STRIP_SOME.
4995 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
ac0832f3 4996 * ldlang.c (lang_add_keepsyms_file): New function.
f3b36ecb
KR
4997 * ldlex.l: Handle "-retain-symbols-file".
4998 * ldsym.c (keepsyms_file, kept_syms): New vars.
4999 (process_keepsyms): New functihon; reads file, marks symbols for
5000 saving.
5001 (write_file_locals): File symbols should always be kept.
5002 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
5003 and "-s". Process retain-symbols file before setting symtab.
5004 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
5005 (keepsyms_file, kept_syms): Declare them.
5006
5007 * ldmain.c (main): Non-fatal errors should still cause non-zero
5008 exit status even with -r.
5009
22a78f0d
SC
5010Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5011
5012 Added initial support for the z8k
5013 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
5014 * configure.in, Makefile.in: modified to reflect above
5015
5016 * ldlang.c (lang_check): when linking conflicting architectures,
5017 make the output file reflect at least one of the bad inputs.
5018
56409445
ILT
5019Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
5020
5021 * Makefile.in (install): if $(tooldir) exists, install ld in
5022 $(tooldir)/bin.
5023
99e6298a
SC
5024Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5025
5026 * Makefile.in, configure.in: modified to support i386-coff
5027 * i386coff.sh: new file
5028
ab57b174
ILT
5029Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
5030
5031 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
5032 added m68k-coff emulation mode, stolen from a29k emulation.
5033 Almost certainly wrong, but perhaps better than sun3.
5034
8e71a984
PB
5035Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
5036
ab57b174
ILT
5037 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
5038 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
5039 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
5040 This is one character shorter, and lets people build on
5041 SVR3 system. (ld__h8300xray.[co] was the killer there;
5042 h8300xray.sc-sh is also overlong, but seems harmless.)
5043 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
5044 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
5045 * configure.in: Add host isc.
5046
8e71a984
PB
5047 * ldver.c: Call it version 2.0.
5048
5049Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
5050
5051 * ldver.c: Bump to version 0.98.
5052 * TODO: New file.
5053
5054 * Makefile.in: Added mostlyclean, distclean, realclean rules.
5055
c52bdfec
PB
5056Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
5057
5058 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
5059 * ldlex.l: Moved comment() to end, since some compilers
5060 otherwise have problems with input() used before it is defined.
5061
2df68136
DZ
5062Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5063
5064 * configure.in: added Solaris 2 and Irix 4 host support.
5065
5066Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5067
5068 * Makefile.in: remove -S flag from the FLEX definition
5069
5070 * configure.in: rewrote, using new style case statement. use
5071 m68k.mt for m68k-aout systems
5072
0bb95ac8
ILT
5073Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
5074
5075 * Makefile.in: map "ld" through program_transform_name when
5076 installing.
5077
fe2b6209
PB
5078Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
5079
5080 * cplus-dem.c: Removed. Use the version in libiberty now.
5081 * ldmisc.c: Use new libiberty version of cplus_demangle().
5082
94cc1ee7
ILT
5083Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
5084
5f2d9799
ILT
5085 * gld960.em (gld960_choose_target): default to little endian, not
5086 big endian.
94cc1ee7 5087
cd1d8c6d
SC
5088Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5089
5090 * ldlang.c (lang_process): don't pass null pointers when
5091 abs_output_section is what is required.
5092 * ldwrite.c (ldwrite): use malloc to allocate the largest space
5093 used, and pass that down.
5094 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
5095 than alloca.
5096
afba2b22
ILT
5097Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
5098
5099 * configure.in, config/ose68.mt: renamed OSE to ose.
5100
571c4c26
KR
5101Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
5102
5103 * ldsym.c (write_file_locals): Reorder check for common or
5104 undefined symbols so that it works.
5105
b189e892
ILT
5106Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
5107
5108 * configure.in: accept all m68K family members.
5109
5110 * Makefile.in: always create installation directories.
5111
6bf2e3a7
SC
5112Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5113
5114 * ldlex.l: now parses comment correctly, added ~ to acceptable
5115 chars in filenames
5116
5117 * ldexp.c (exp_unop): pass down abs_output_section - now can have
5118 unary -ve constants.
5119
5120 * ldlang.c (lang_finish): warn when an entry symbol supplied on
5121 the command line can't be found.
5122
ae475b39
SC
5123Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5124
5125 * ldlang.h: add new field "loadable" to output_section_statement.
5126 * ldlang.c (lang_output_section_statement_lookup): initilize new
5127 field. (wild_doit): if new field is not set, then stop output
5128 section from being loadable.
5129 (lang_enter_output_section_statement): set the field from the
5130 NOLOAD keyword
5131 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
5132 * h8300hms.sc-sh, h8300hms.em: get -r right.
5133
4b91c519
PB
5134Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
5135
5136 * ldint.texinfo: New internals manual (beginnings thereof).
5137 * PORTING: Removed, merged into ldint.texinfo.
5138
917bffa7
PB
5139Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
5140
5141 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
5142 cdtest.exp: A test program (copied from libg++/test-install)
5143 that tests that constructor and destructors are handled
5144 corrrectly.
5145
b40f9c73
DZ
5146Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5147
5148 * Makefile.in (install): install from ld.new, renaming during the
5149 copy, or else the next 'make install' needs to re-link ld.
5150
5151Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
5152
5153 * configure.in: generalise hp recognition (from sef).
5154
5155Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5156
5157 * configure.in: recognize bsd and hpux hppa configurations.
5158 error messages echo to stderr, not stdout
5159
ec467c83
RP
5160Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5161
5162 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
5163 ldmisc.c: removed rcsid's.
5164
67cddd9f
SC
5165Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5166
5167 * ldlang.c (lang_map): print changes in sizes due to relaxing
5168 (size_input_section): maintain the delta information.
5169 * ldlang.h: add new field to struct to contain delta info.
5170 * relax.c (relax_section): complain if input not relaxable.
5171 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
5172 start of a filename
5173
f7c76897
SC
5174Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5175
5176 * ldmain.c(main): prevent -r and -relax from being on at the same
5177 time.
5178
28b6b1ab
SC
5179Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5180
5181 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
5182 aliasing problems
5183
5184
30d1a390
SC
5185Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5186
5187 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
5188 * ldexp.c: lint
5189 * ldlang.c(open_output): set the target arch and machine as soon
5190 as we can. (lang_size_sections): use new macros for setting vma
5191 * ldwrite.c: lint
5192
5bdf878e
MT
5193Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
5194
5195 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
5196 Also deleted an unreachable path to wrs.
5197
5198Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
5199
5200 * Makefile.in (install): use -d test for $tooldir before
5201 installing ld there so that $tooldir can be inherited from
5202 top-level Makefile.
5203
5204Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
5205
5206 * ldlang.c: Two non-substantial changes for the sake of
5207 the old Portable C Compiler.
5208
5e81edb2
SC
5209Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5210
5211 * ldgram.y, ldlex.l: parse ABSOLUTE
5212 * ldexp.c: add support for ABSOLUTE
5213
7aacc9cc
PB
5214Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
5215
5216 * Makefile.in: Added default definitions for HOSTING_CRT0,
5217 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
5218 * config/*.mh: Miscellaneous clean-up: Removed definitions
5219 of YACC (since it is not longer used in the Makefile).
5220 Remove HOSTING_* definitions that are subsumed by the
5221 ones added to Makefile.in. Removed most definitions of CC.
5222 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
5223 These are no longer needed.
5224
91e25b4f
PB
5225Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
5226
5ff21fa5
PB
5227 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
5228 rules, since these are used when building a distribution.
5229 * Makefile.in (ldlex.c): Don't re-direct output, since that
5230 leaves a bogus output files if it fails.
5231
91e25b4f
PB
5232 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
5233 * ldlex.c: Fix some unnecessary flex-specific-isms.
5234
5235Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5236
5237 * ldgram.y: move spurious semicolon
5238 * ldexp.h: fix prototype
5239
82d1666a
RP
5240Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
5241
5242 * ld.texinfo: references to linker now say "ld" not "gld".
5243
32846f9c
SC
5244Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5245
5246 changed calling convention for Q_enter_global_ref
5247 * ldexp.c, ldlang.c, ldmain.c: reflect this
5248 * ldver.c: bump version to 1.97.1
5249 * ldindr.c (add_indirect): when an edict declaring an indirect
5250 symbol is found, make sure that any ideas about the symbol being
5251 common are changed if it now known to be defined.
5252 * ldmain.c (linear_library): complain once if archive isn't
5253 ranlibbed.
5254 * ldlang.h, ldlang.c: make room for and initialize the complain
5255 once field.
5256
bf3acf44
RP
5257Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5258
5259 * Makefile.in: use flex & bison from ../ if they exist.
5260
9c99a57e
SC
5261Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5262
5263 * relax.c (build_it): don't allocate space in the output file for
5264 stuff if -R flag applys to it.
7153b2ff
SC
5265 * ldfile.c: merge in VMS filename support
5266 * ldmain.c (main): take out ./ from library path, and close file
5267 before unlinking. Make multiple defs of a symbol create an
5268 unexecable file.
5269 * ldmisc.c: fatal errosrs delete output file
9c99a57e 5270
98377f31
PB
5271Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
5272
5273 * ldver.c: Increase version number to 1.97, for consistency
5274 with ../binutils.
5275
3f350eda
RP
5276Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
5277
813da1a5
RP
5278 * Makefile.in: FLEX -> LEX.
5279
3f350eda
RP
5280 * ld.texinfo: {} -> @{@}.
5281
e0047d49
RP
5282Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
5283
5284 * ld.texinfo: describe alternate, MRI-compatible linker scripts
5285 (and associated change in -c option, now used for these scripts)
5286
bfbdc80f
SC
5287Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5288
5289 * ldver.c: Bumped version to 1.96 - new release, resync with the
5290 bfd too #.
5291 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
5292 rather than with raw malloc, makes it easier to track where memory
5293 is going.
5294 * ldsym.h, ldsym.c: create obstack for all global symbols too.
5295 * ldwrite.c (ldwrite): moved malloc so only used when needed.
5296 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
5297
5298
d3451fe8
RP
5299Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
5300
5301 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
5302
5303 * Makefile.in: use bootstrap for check.
5304
dc4726c2
SC
5305Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5306
e14a43bf
SC
5307 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
5308 PUBLIC.
5309 * Makefile.in: now use flex, not lex
dc4726c2
SC
5310 * ldlex.l, ldlang.c, ldctor.c: lint
5311
ee0c4cf7
SC
5312Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5313
5314 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
5315 different sorts of filenames on the command line than in a script.
5316
77b19d3d
RP
5317Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5318
5319 * Makefile.in: rework CFLAGS so that they can be passed on the
5320 make command line. Remove MINUS_G. Default CFLAGS to -g.
5321
119afd7b
RP
5322Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5323
5324 * relax.c: added handling for new "padding" seclet type, used to
5325 fill out gaps between section.
5326 * ldgram.y, ldlex.l: now -defsym on the command line is done
5327 properly.
5328
5329Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5330
5331 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
5332
2e38b71d
SC
5333Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5334
5335 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
5336 scripts.
5337
1900f884
KR
5338Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
5339
5340 * Makefile.in (install): Install second copy in $(tooldir)/bin
5341 without $(program_prefix), since that's what gcc expects.
5342
9d1fe8a4
SC
5343Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5344
5345 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
5346 * h8300*: fix bit rot and add support for h8300xray target
5347 * go32.sh: target emulation for go32.
5348
9d1fe8a4
SC
5349Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
5350
5351 * gld960.em, i960.sc-sh. Fix i960 bit rot
5352
f0280cd2
RP
5353Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
5354
5355 * Makefile.in: install man page.
5356
12fa72d4
SC
5357Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5358
5359 * config/mt-<foo> renamed to <foo>.mt
5360 * config/mh-<foo> renamed to <foo>.mt
5361 * configure.in changed to reflect this
5362 * genscripts.sh now make .xbn files rather than .xN files
5363
5364Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
5365
5366 * ldver.h: fix decl of ldversion.
5367
5368Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
5369
5370 * Makefile.in: added check target.
5371
fe563ffe
SC
5372Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5373
5374 * ldmain.c (Q_enter_file_symbols): now aliases work again
5375
12fa72d4
SC
5376Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
5377
5378 * Makefile.in: added clean-info target.
5379
fe563ffe
SC
5380Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5381
5382 * ldexp.c (exp_print_tree): don't try and follow null pointers
5383 around.
5384 * ldgram.y: remove 11 shift reduce errors
d2861901 5385
12fa72d4
SC
5386Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5387
5388 * Makefile.in: added tooldir and program_prefix.
5389
fe563ffe
SC
5390Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
5391
5392 * ldlang.c (size_input_section): don't move absolute sections
5393 around!
5394
5395
5396Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
5397
d2861901
SC
5398 * cplus-dem.c: yet another copy of this - maybe it should go into
5399 libiberty ?
5400 * ldgram.y: now -V and -v have different actions
5401 * ldver.c: if -V, prints list of emulations compiled in
5402 * ldmisc.c: support for cplus demangling
5403
5404
12fa72d4
SC
5405Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
5406
5407 * Makefile.in, configure.in: removed traces of namesubdir,
5408 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
5409 copyrights to '92, changed some from Cygnus to FSF.
5410
d2861901
SC
5411Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
5412
5413 * Makefile.in: Change mkscript rule into one for ./mkscript
5414 (for the sake of makes that don't realize they're the same).
5415 * PORTING: Add more details.
5416 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
5417
1584d069
PB
5418Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
5419
5420 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
5421 config/mt-hp300bsd: New port to hp300 running BSD.
5422
7e5c1057
PB
5423Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
5424
5425 Major rewrite of how ld is configured. The major idea
5426 is to use shell scripts to generate everything.
5427 * generic.em replaces ldtemplate.
5428 * Other *.em files replace various *.c files.
5429 A *.em file is a shell script that generates the corresponding
5430 ld__*.c file that implements an emulation. This is usually
5431 a straight 'cat' of a here-document, possibly with substitutions.
5432 * Script files (*.sc) are places by *.sc-sh scripts.
5433 Again, these are simple shell scripts that 'cat'
5434 here-documents, usually with some substitutions.
5435 The output a *.sc-sh is a script file.
5436 * Each emulation is defined by a short shell script with
5437 extension *.sh that specifies the emulation-specific
5438 parameters (such as the name of the *.sh-sc and *.em
5439 files to use).
5440 * genscript.sh is the master shell script used to generate
5441 an emulation. It is passed various argument, including
5442 the name a the emulation-speciic *.sh file that it
5443 "sources" to set variables to emulation-specifc parameters.
5444 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
5445 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
5446 * config/mh-foo: Rename LDEMULATION names as appropriate
5447 (usually 'gldfoo' -> plain 'foo').
5448 * ldwrite.c: Fixed a typo in a comment.
5449 * Makefile.in: Major changes. Removed some the sed
5450 magic to converts scripts, since that is now handled
5451 by genscripts.sh and the *.sc-sh scipt generators.
5452 * config.h: Remove a bunch of macros defining emulations
5453 and targets. This becomes one less file to edit when
5454 adding emulations or targets.
5455 * ldemul.h (struct ld_emulation_xfer_struct): Add
5456 emulation_name and target_name fields.
5457 * ldemul.c, ldemul.h: Define some default functions used
5458 by most emulations (and remove from the *.em scripts).
5459 * ldemul.c (ldemul_choose_target): Search the new
5460 ld_emulations array using a loop (instead of a hardwired
5461 nested if statement).
5462 Define the ld_emulation from the automatically-geenrated
5463 ldemul-list.h. This means you no longer have to edit ldemul.c
5464 to add a new emulation.
5465 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
5466 their expansions, since the former no longer exist.
5467 * PORTING: A very rough first draft of a porting guide.
5468
5469 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
5470 to be terminated by a new-line (instead of requiring a semicolon).
5471
5472Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5473
5474 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
5475 tests for NULL pointers all over the place.
5476 * ldlang.c (lang_process): remember to relocate global symbols
5477 *after* relaxing has done it stuff.
5478
5479Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5480
5481 * config/mt-coff-h8300: use EMUL like everything else
5482 * ldlang.c: (print_padding_statement): print the right address.
5483 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
5484
5485
aa34a7c3
SC
5486Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5487
5488 * ldlex.l: Put pack -noinhibit-exec and -sort-common
5489 * ldlang.c (print_data_statement): print the right address.
5490
5491Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
5492
5493 * Makefile.in: The rule for testing ld by re-linking itself
5494 via an intermediate -r link was moved to the ld1 rule
5495 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
5496 which allows the bootstrap rule to work.
5497 * ldctor.c (find_constructors): Don't create a constructor
5498 list if it is already defined (as would happen if ld is
5499 invoked by collect).
5500
cbbdbb9f
SC
5501Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5502
5503 * config/mh-sparc.h: now uses libgcc.a
5504 * ldmain.c: quit using exit
5505 * *sc: use *(COMMON) rather than [COMMON]
5506 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
5507 to allow preprocessing of .l file.
5508 * Makefile.in: New ldlex.l mangling
5509 * ldexp.c (fold_binary): perform expressions with % and / in
5510 integer.
5511 * ldfile.c (open_a): open archives on VMS in a special way
5512
5513
870f54b2
SC
5514Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5515
5516 * ldgram.y: map -M behave in the same way as -Map (sets file name
5517 to be "-".
5518 * ldsym.c, ldlang.c: remember that size of a section is dependent on
5519 whether or not relaxing has been done.
5520 * ldmain.c: don't open a map file if it doesn't have a name
5521 * relax.c: all the brains have moved into bfd.
5522 * ldwrite.c: ammend comment
5523
2e2bf962
SC
5524Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5525
5526 * Makefile.in: added relax, also made three stage go through a
5527 partial link stage.
5528 * relax.c : added
5529 * config.h: if GNU960 defined, then default emulation mode is
5530 GLD960
5531 * ldexp.h, ldexp.c: map to file hooks
5532 * ldlang.c: map to file hooks
5533 * ldgram.y: added -Map -relax
5534 * ldlex.l: added -relax, -Map
5535 * ldmain.c: open map file
5536 * ldmisc.c: support for map file
5537 * ldwrite.c: new relax magic
5538
5539Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
5540
5541 * Makefile.in, config/tm-*.h: Clean up make output, only
5542 pass DEFAULT_EMULATION to ldmain.c.
5543
5544Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
5545
5546 * ldver.c: Bump to version 1.94.
5547
5548Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5549
5550 * Makefile.in: infodir belongs in datadir.
5551
e06ba18d
PB
5552Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
5553
5554 * Makefile.in: Pass -y to bison. (Again;
5555 accidentally deleted by Rich.)
5556 * news.sc, ldgld68k.sc: Define __end as well as _end.
5557
5558Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
5559
5560 * ldindr.h: added to contain prototypes of ldindr.c
5561 * ldfile.c: include ctype.h
5562 * ldmain.c: include the requried prototype headers
5563 * ldwrite.c: get_reloc_upper_bound has been renamed
5564 bfd_get_reloc_upper_bound
5565
818a192a
RP
5566Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5567
5568 * Makefile.in: punt "fundamental" mode because it breaks my emacs
5569 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
5570 spaces following hyphens, bsd make can't cope. added
5571 standards.text support and made it look like all the other
5572 makefiles.
5573
5574 * configure.in: configure now runs entirely in objdir so make file
5575 existence checks against ${srcdir}. Mark this directory as
5576 target dependent.
5577
5578Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5579
5580 * Makefile.in: idestdir and ddestdir go away. Added copyrights
5581 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
5582 and mandir now keyed off datadir by default.
5583
5584Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
5585
5586 * ldver.c: Bumped version to 1.93.
5587 * Makefile.in: Pass -y to bison.
5588
5589Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
5590
5591 * config.h: h8 is now coff, not ieee
5592 * h8300hds.sc: reflect the same
5593
5594Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
5595
5596 * ldver.c (ldversion()): Update to 1.92.
5597 * ldctor.c: There are two places constructor sets
5598 can be defined. One of them checked for an existing
5599 duplicate, the other didn't. Unfortunately, the latter
5600 was called after the former ...
5601 So, factor out code for inserting a new element into
5602 constructor_name_list (after checking for a duplicate)
5603 into a new function add_constructor_name, and call
5604 it from both aforementioned places (ldlang_add_constructor
5605 and ldlang_check_for_constructors).
5606
5607Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
5608
5609 * Makefile.in: Rename .c files generated from ldtemplate
5610 to have names starting with ld__. This helps 'make clean'.
5611
092df318
SC
5612Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
5613
5614 * Makefile.in: Take out the version number for install
5615 * m88kbcs.sc: put in contructor blocks.
5616
1c9e4b15
PB
5617Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
5618
5619 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
5620 parameter, a format, and an arg pointer, and rename it to
5621 vfinfo(). Write info() in terms of new vfinfo().
5622 New einfo() is the same as info(), except it writes to stderr.
5623 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
5624 ldmisc.c: Replace "error" calls to info() by new einfo().
5625
550e87b5
SC
5626Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
5627
5628 * ldlex.l ldgram.y: made -V option do same as -v
5629 * Makefile.in: Added $(MINUS_G) flag so debugging can be
5630 turned off
5631
5632Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
5633 i386 aout changes from Bob Kukura
5634 * Makefile.in, config.h: added i386aout support
5635 * configure.in: fixed /h-{myhost} typo
5636 * ldgram.y: -MM now gives more boring map.
5637 * ldlang.c: now does D_PAGED flag the right way.
5638 * ldsym.c: -MM flags does the right thing.
5639
aeedc30e
PB
5640Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
5641
5642 * configure.in: Fixed typo. Also, a fix for hp300bsd.
5643 * ldlang.c (init_os): Compensate for BFD change,
5644 where bfd_make_section now returns NULL for a duplicate
5645 section request, instead of the old section.
5646
5647Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
5648
5649 * ldver.c: Bump to version 1.91 (consistent with binutils).
5650
2d1a2445
PB
5651Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
5652
5653 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
5654 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
5655 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
3410447c 5656 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
2d1a2445
PB
5657 Add or update copyright notices.
5658
5659Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
5660
5661 * README: New file.
5662 * Makefile.in: Changed installation directory name scheme
5663 to be consistent with gcc. Also changed 'install'.
5664
954ac2ea
RP
5665Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
5666
5667 * Makefile.in: new targets ld.mm, ld.me
5668
972e7b4b
PB
5669Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
5670
5671 * Makefile.in, ldtemplate: Need to use separate scripts
5672 for -n and -N options. Yet more complication.
5673
33ce0085
JG
5674Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
5675
5676 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
5677 work). Add some lines to avoid Sun Make VPATH bugs.
5678
b7e24eef
PB
5679Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
5680
5681 * news.sc: Add alignment for data segment.
5682 * ldtemplate: Add (yet another) script to get for -n or -N
5683 options. (These need different alignment than ZMAGIC files.)
5684 * Makefile.in: Add stuff for new foo.xn scripts.
5685 These are generated by replacing "ALIGN(0x...00)" by ".".
5686
b55e0948
RP
5687Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
5688
5689 * Makefile.in: new targets ld.ms, ld-index.ms
5690 ld.texinfo: remove tabs, other cleanups for texi2roff
5691
6719c75b
PB
5692Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
5693
5694 * ldmain.c (main): Make config.magic_demand_paged be true
5695 by default. Don't the WP_TEXT and D_PAGED flags of
5696 output_bfd here; it's too late, so set it when output_bfd
5697 is created (in ldlang.c). Also fix setting of EXEC_P flag
5698 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
5699 * ldlang.c: Remove some duplicate extern declarations.
5700 * ldgram.y: Fixes to -N and -n options.
5701 * Makefile.in: Recognize upper case letters in sed script
5702 to remove assignments from script files.
5703 * ldtemplate: Don't assukme that -N or -n options
5704 imply use of -r script.
5705 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
5706
8e10cea1
SC
5707Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
5708
5709 * ldtemplate: include bfd.h before sysdep.h.
5710
1f8fc34f
JG
5711Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
5712
5713 Restructure configuration scheme for bfd, binutils, ld.
5714
5715 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
5716 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
5717 Change some config names to match other dirs.
5718 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
5719 get defined first.
5720 * config/: Rename some config files to match up h-*.h names.
5721 Remove all the HOST_SYS definitions from the config files.
5722
5723Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
5724
5725 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
5726 * ldtemplate: Remove ldfile_add_library_path calls;
5727 just use the SEARCH_DIR commands in the script files.
5728 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
5729 the SEARCH_DIR commands in the scripts (using ugly sed magic).
5730 This is primarily intended for cross-linking, where you would
5731 place libaries in a different place than native libraries.
5732 Also, emulations made from ldtemplate now use $(srcdir).
5733 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
5734 form; people can use the Makefile's LIB_PATH to override.
5735
8d317d2a
RP
5736Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
5737
5738 * Makefile.in: fix target ld.dvi, add target ld.info
5739 ld.texinfo: make info filename ld.info
5740
558175fb
JG
5741Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
5742
5743 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
5744 Make).
5745 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
5746 few BFD types & enums.
5747
de0abbfc
ILT
5748\f
5749Local Variables:
bf82ab68
ILT
5750mode: indented-text
5751left-margin: 8
5752fill-column: 74
de0abbfc
ILT
5753version-control: never
5754End:
This page took 0.418958 seconds and 4 git commands to generate.