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