* mpw-idtmips.c: Rename from mpw-emipsidt.c.
[binutils-gdb.git] / ld / ChangeLog
1 Wed Apr 2 11:55:27 1997 Ian Lance Taylor <ian@cygnus.com>
2
3 * mpw-idtmips.c: Rename from mpw-emipsidt.c.
4 * mpw-elfmips.c: Rename from mpw-emipself.c.
5 * mpw-config.in: Update accordingly.
6
7 * ldlang.c (lang_process): Call lang_check immediately after
8 opening the input files, rather than at the end of the link.
9
10 Mon Mar 31 23:44:00 1997 Ian Lance Taylor <ian@cygnus.com>
11
12 * emultempl/pe.em (init): Fully bracket initializer.
13 (set_pe_stack_heap): Remove locals begin_commit and end.
14 (gld_${EMULATION_NAME}_after_open): Remove unused local i.
15 (gld${EMULATION_NAME}_place_orphan): Remove unused local ptr.
16
17 Mon Mar 31 16:35:51 1997 Joel Sherrill <joel@oarcorp.com>
18
19 * configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
20
21 Fri Mar 28 15:29:23 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
22
23 Contributed by David S. Miller <davem@caip.rutgers.edu>:
24 * configure.tgt (sparc*-*-linuxaout*): New target.
25 (sparc*-*-linux*): New target.
26 * emulparams/sparclinux.sh: New file.
27 * Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
28 (esparclinux.c): New target.
29
30 Fri Mar 28 14:30:12 1997 Ian Lance Taylor <ian@cygnus.com>
31
32 From Ralf Baechle <ralf@gnu.ai.mit.edu>:
33 * configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
34 mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
35 elf32elmip.
36
37 Thu Mar 27 17:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
38
39 * lexsup.c (parse_args): Update copyright date in version
40 message.
41
42 Fri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
43
44 * emulparams/delta68.sh (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
45
46 Tue Mar 18 11:16:23 1997 Ian Lance Taylor <ian@cygnus.com>
47
48 * Makefile.in: Rebuild dependencies.
49
50 * emultempl/aix.em: Include "obstack.h".
51
52 Mon Mar 17 19:26:06 1997 Ian Lance Taylor <ian@cygnus.com>
53
54 * ldlang.c: Include "obstack.h".
55
56 Sat Mar 15 23:23:46 1997 Fred Fish <fnf@cygnus.com>
57
58 * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
59
60 Sat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
61
62 * ldemul.h (ldemul_list_emulations): Use full prototype.
63 * ldlang.c (print_one_symbol): Add declaration.
64 * ldlang.h (dprint_statements): Declare.
65 * ldmain.c (remove_output): Declare.
66 * ldmisc.c (vfinfo): Declare.
67 * ldwrite.c (clone_section): Declare.
68 (split_sections): Make static. Declare.
69 * mri.c: Include libiberty.h.
70 (strdup): Don't declare.
71 (mri_alias): Use xstrdup rather than strdup.
72
73 Fri Mar 14 21:30:06 1997 Ian Lance Taylor <ian@cygnus.com>
74
75 * scripttempl/elfmips.sc: Change handling of data area when
76 generating a shared library to not skip a large block of memory.
77 From Per Fogelstrom <pefo@cvs.openbsd.org>.
78
79 Wed Mar 12 21:33:09 1997 Ian Lance Taylor <ian@cygnus.com>
80
81 * ldmain.c (multiple_definition): Only skip the warning if the
82 output section is absolute when the input section is not
83 absolute.
84
85 * ldlex.l: Accept whitespace in VERS_START state. Warn about
86 invalid characters in VERS_* states.
87
88 Tue Mar 11 13:51:31 1997 Ian Lance Taylor <ian@cygnus.com>
89
90 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Don't let a
91 trailing space lead us to think that there is a zero address.
92
93 Sun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
94
95 * ldgram.y (vers_node): Correct typo of '(' for '{'.
96
97 start-sanitize-tic80
98 Fri Mar 7 18:40:12 1997 Fred Fish <fnf@cygnus.com>
99
100 * scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
101 rather than _start.
102 (__edata): Define this rather than "edata".
103 (__end): Define this rather than "end".
104
105 Tue Mar 4 17:18:35 1997 Michael Meissner <meissner@cygnus.com>
106
107 * configure.tgt (tic80-*-*): Allow dropping of -coff.
108
109 end-sanitize-tic80
110 Sun Mar 2 22:59:49 1997 Fred Fish <fnf@cygnus.com>
111
112 * Makefile.in (ld.dvi): Set MAKEINFO environment variable as well
113 as TEXINPUTS. Needed for building in separate build dir.
114 * ldint.texinfo (SCRIPT_NAME): Fix typo.
115 start-sanitize-tic80
116 * emulparams/tic80coff.sh: Rewrite to include internal documentation
117 about each shell variable that is set (or not set).
118 * scripttempl/tic80coff.sc: Complete rewrite.
119 end-sanitize-tic80
120
121 Fri Feb 28 17:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
122
123 * ldmain.c (main): Call bfd_set_default_target.
124 * Makefile.in (ldmain.o): Define TARGET when compiling.
125
126 Thu Feb 27 11:41:03 1997 Ian Lance Taylor <ian@cygnus.com>
127
128 * ldmain.c (main): Don't initialize link_info.lprefix or
129 link_info.lprefix_len.
130 * emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
131
132 * emultempl/m88kbcs.em: Remove.
133 * emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set.
134 * Makefile.in (em88kbcs.c): Depend upon generic.em rather than
135 m88kbcs.em.
136
137 * mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
138 to lang_enter_output_section_statement. From Mark Rasin
139 <mark.rasin@telrad.co.il>.
140
141 Wed Feb 26 11:51:44 1997 Ian Lance Taylor <ian@cygnus.com>
142
143 * ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
144 section.
145
146 Tue Feb 25 20:38:11 1997 Stan Shebs <shebs@andros.cygnus.com>
147
148 * configure.tgt (mips*-*-lnews*): New target.
149 * Makefile.in (emipslnews.c): New target.
150 * emulparams/mipslnews.sh: New file.
151
152 Tue Feb 25 16:04:09 1997 Ian Lance Taylor <ian@cygnus.com>
153
154 * emultempl/elf32.em (hold_interp): New static variable.
155 (gld${EMULATION_NAME}_place_orphan): Put loadable .note sections
156 after hold_interp. Choose a unique output section name.
157 (gld${EMULATION_NAME}_place_section): Don't set hold_use if the
158 SEC_LOAD or SEC_ALLOC flags differ. Set hold_interp.
159
160 Mon Feb 24 18:16:09 1997 Ian Lance Taylor <ian@cygnus.com>
161
162 From Eric Youngdale <eric@andante.jic.com>:
163 * ldlex.l (V_TAG, V_IDENTIFIER): New macros.
164 (VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
165 information.
166 (ldlex_version_script, ldlex_version_file): New functions.
167 * ldlex.h (enum input_enum): Add input_version_script.
168 (ldlex_version_script): Declare.
169 (ldlex_version_file): Declare.
170 * ldgram.y (%union): Add deflist, versyms, and versnode.
171 (VERS_TAG, VERS_IDENTIFIER): New terminals.
172 (GLOBAL, LOCAL, VERSION, INPUT_VERSION_SCRIPT): New terminals.
173 (file): Accept INPUT_VERSION_SCRIPT.
174 (ifile_p1): Accept version.
175 (version_script_file): New nonterminal.
176 (version, vers_nodes, vers_node): Likewise.
177 (verdep, vers_tag, ver_defns): Likewise.
178 * ldlang.c (lang_elf_version_info): New global variable.
179 (lang_new_vers_regex): New function.
180 (lang_new_vers_node): New function.
181 (version_index): New static variable.
182 (lang_register_vers_node): New function.
183 (lang_add_vers_depend): New function.
184 * ldlang.h (lang_elf_version_info): Declare.
185 (lang_new_vers_regex, lang_new_vers_node): Declare.
186 (lang_add_vers_depend, lang_register_vers_node): Declare.
187 * lexsup.c (OPTION_VERSION_SCRIPT): Define.
188 (ld_options): Add "version-script".
189 (parse_args): Handle OPTION_VERSION_SCRIPT.
190 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
191 Pass lang_elf_version_info to size_dynamic_sections.
192 * scripttempl/elf.sc: Add .gnu.version sections.
193 * ld.texinfo: Document symbol versioning.
194
195 start-sanitize-d30v
196 Fri Feb 21 17:37:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
197
198 * Makefile.in (ed30velf.c): New target.
199 * configure.tgt (d30v-*-*): New target.
200 * emulparams/d30velf.sh: New file.
201 * scripttempl/elfd30v.sc: New file.
202
203 end-sanitize-d30v
204 Fri Feb 14 18:28:31 1997 Ian Lance Taylor <ian@cygnus.com>
205
206 * ld.texinfo (Option Commands): Document the INCLUDE command.
207
208 Thu Feb 13 20:31:37 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
209
210 * configure.in: Call BFD_NEED_DECLARATION on getenv.
211 * acconfig.h (NEED_DECLARATION_GETENV): New macro.
212 * sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
213 * ldemul.c (ld_emul_default_target): Do not cast getenv return
214 value.
215 * ldmain.c (get_emulation): Likewise.
216 * configure, config.in: Rebuild.
217
218 Tue Feb 11 15:34:26 1997 Ian Lance Taylor <ian@cygnus.com>
219
220 * scripttempl/elfmips.sc: When relocating, put .mips16.fn.* and
221 .mips16.call.* in .text.
222
223 start-sanitize-r5900
224 Fri Feb 7 13:16:53 1997 Gavin Koch <gavin@cygnus.com>
225
226 * configure.tgt: add r5900.
227
228 end-sanitize-r5900
229 start-sanitize-tic80
230 Sun Feb 9 18:09:13 1997 Fred Fish <fnf@cygnus.com>
231
232 * emulparams/tic80coff.sh: New (dummy) file for TIc80.
233 * scripttempl/tic80coff.sc: New (dummy) file for TIc80.
234 * Makefile.in (etic80coff.c): Add target and rule to build it.
235 * configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
236
237 end-sanitize-tic80
238 Fri Jan 31 13:16:53 1997 Ian Lance Taylor <ian@cygnus.com>
239
240 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
241 ".so" in the name, not ".so.".
242 (gld${EMULATION_NAME}_search_dir): Accept a plain .so file.
243
244 * Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
245 <alan@spri.levels.unisa.edu.au>.
246
247 Thu Jan 30 11:31:52 1997 Ian Lance Taylor <ian@cygnus.com>
248
249 * emultempl/sunos.em: Include <ctype.h>.
250 (gld${EMULATION_NAME}_find_so): Skip the directory name when
251 searching for ".so.".
252 (gld${EMULATION_NAME}_search_dir): Make sure that the library name
253 has a version number, and that only version numbers follow .so.
254
255 Wed Jan 29 18:15:00 1997 Geoffrey Noer <noer@cygnus.com>
256
257 * scripttempl/pe.sc:
258 * scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
259 section so Win32 executables are valid.
260
261 Mon Jan 27 12:28:43 1997 Ian Lance Taylor <ian@cygnus.com>
262
263 * scripttempl/elf.sc: Put linkonce reloc section in other
264 appropriate reloc sections.
265 * scripttempl/elfmips.sc: Add linkonce support.
266 * scripttempl/elfppc.sc: Likewise.
267
268 Fri Jan 24 10:44:09 1997 Jeffrey A Law (law@cygnus.com)
269
270 * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
271 stack up to 0x80000.
272 * emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
273
274 Tue Jan 21 12:11:10 1997 Doug Evans <dje@seba.cygnus.com>
275
276 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
277 to define `_stack'.
278
279 Thu Jan 16 17:07:52 1997 Ian Lance Taylor <ian@cygnus.com>
280
281 * ld.h (args_type): Rename auxiliary_filter_shlib to
282 auxiliary_filters, and make it char **.
283 * lexsup.c (parse_args): Handle -f by setting up an array.
284 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
285 new name of auxiliary_filters.
286
287 * ld.texinfo (Options): Improve documentation of --filter and
288 --auxiliary.
289
290 Tue Jan 14 15:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
291
292 * ld.texinfo (Options): Clarify that the normal usage is -T.
293 (Commands): Likewise.
294
295 Thu Jan 9 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
296
297 * scripttempl/armcoff.sc: Correct mask used for .data address.
298
299 Wed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
300
301 * emultempl/pe.em: make default executable a.exe instead of
302 a.out
303
304 Fri Jan 3 17:33:34 1997 Richard Henderson <rth@tamu.edu>
305
306 * scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
307 shifting .plt back. Rumour has it that the NetBSD ld.so depends
308 on .dynamic being after .got, so we leave that.
309
310 Fri Jan 3 14:04:40 1997 Ian Lance Taylor <ian@cygnus.com>
311
312 * Makefile.in (clean): Don't remove configdoc.texi.
313 (maintainer-clean): Do remove configdoc.texi.
314
315 * ld.texinfo (Operators): Remove '@' from @smallexmple in comment
316 to avoid confusing texi2roff.
317
318 start-sanitize-v850
319 Fri Jan 3 11:27:02 1997 Michael Meissner <meissner@tiktok.cygnus.com>
320
321 * scripttempl/v850.sc (.zdata): Add .zcommon section.
322 (.tdata): Add .tcommon and .tcommon_byte sections.
323
324 end-sanitize-v850
325 Thu Jan 2 18:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
326
327 * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
328 * scripttempl/elfmips.sc: Use __start as the entry address for
329 mips*-*-linux*.
330
331 Tue Dec 31 14:48:30 1996 Ian Lance Taylor <ian@cygnus.com>
332
333 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
334
335 * ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
336 fields.
337 * lexsup.c (parse_args): Recognize --auxiliary/-f and
338 --filter/-F.
339 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
340 Pass filter_shlib and auxiliary_filter_shlib to
341 size_dynamic_sections.
342 * ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
343
344 start-sanitize-v850
345 Mon Dec 30 13:55:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
346
347 * scripttempl/v850.sc (.tdata) Add .tbss and .tbyte sections.
348
349 end-sanitize-v850
350 Wed Dec 18 22:57:35 1996 Stan Shebs <shebs@andros.cygnus.com>
351
352 * mpw-make.sed: Use NewFolderRecursive for installation.
353
354 start-sanitize-v850
355 Fri Dec 13 14:08:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
356
357 * scripttempl/v850.sc: Make sure __{e,g}p start relative to the
358 {s,t}data sections. Do not emit any linker generated symbols if
359 -r. Use {TEXT,{Z,S,T}DATA}_START_ADDR variables to initialize
360 where the different sections go. Change some whitespace.
361
362 * emulparams/v850.sh ({TEXT,{Z,S,T}DATA}_START_ADDR): Define
363 appropriately. Remove crud not used anymore.
364
365 end-sanitize-v850
366 Fri Dec 13 10:19:57 1996 Jeffrey A Law (law@cygnus.com)
367
368 * Makefile.in (emn10200.c): Add dependencies.
369 * configure.tgt: Handle mn10200.
370 * emulparms/mn10200.sh: New file.
371
372 Thu Dec 12 17:04:55 1996 Ian Lance Taylor <ian@cygnus.com>
373
374 * emultempl/gld960c.em: Include <ctype.h>.
375 (gld960_set_output_arch): Get the machine type from the -A option
376 if there is one, rather than always using core.
377
378 Sat Dec 7 10:07:51 1996 Jeffrey A Law (law@cygnus.com)
379
380 * emulparms/mn10300.sh: Handle leading underscores.
381
382 Thu Dec 5 13:45:58 1996 Ian Lance Taylor <ian@cygnus.com>
383
384 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Only
385 set hold_rel if SEC_ALLOC is set.
386
387 Tue Dec 3 11:29:20 1996 Ian Lance Taylor <ian@cygnus.com>
388
389 * ldlang.c (section_already_linked): Set the output_offset as well
390 as the output_section when only reading symbols from a file.
391
392 Mon Dec 2 11:43:50 1996 Ian Lance Taylor <ian@cygnus.com>
393
394 * emulparams/*.sh: Make sure that each set of parameters which
395 uses the elf.sc script sets MACHINE.
396
397 Wed Nov 27 03:22:05 1996 Jason Merrill <jason@yorick.cygnus.com>
398
399 * scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
400
401 * scripttempl/elfd10v.sc: Likewise.
402 start-sanitize-v850
403 * scripttempl/v850.sc: Likewise.
404 end-sanitize-v850
405
406 Tue Nov 26 16:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
407
408 * configure: Rebuild with autoconf 2.12.
409
410 Mon Nov 25 12:17:55 1996 Jim Wilson <wilson@cygnus.com>
411
412 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Add case
413 for bfd_vma to init loop.
414
415 Mon Nov 25 09:55:07 1996 Jeffrey A Law (law@cygnus.com)
416
417 * emulparms/mn10300.sh: Remove bogus '_' prefix for
418 entry symbol and ctor/dtor stuff.
419
420 Fri Nov 15 13:00:18 1996 Jeffrey A Law (law@cygnus.com)
421
422 * Makefile.in (emn10300.c): Add dependencies.
423 * configure.tgt: Handle mn10300.
424 * emulparms/mn10300.sh: New file.
425
426 Tue Nov 5 10:57:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
427
428 * emulparams/d10velf.sh (READONLY_START_ADDR): Changed to 0x2000004.
429 (EMBEDDED): Define.
430
431 Fri Nov 1 10:01:27 1996 Ian Lance Taylor <ian@cygnus.com>
432
433 * ld.texinfo: Add section on reporting bugs.
434
435 * scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
436 symbols are correctly aligned.
437
438 start-sanitize-v850
439 Thu Oct 31 09:28:59 1996 Jeffrey A Law (law@cygnus.com)
440
441 * scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
442 romzbss too.
443
444 end-sanitize-v850
445 Tue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
446
447 * emulparams/d10velf.sh: Changes needed for D10V-EVA board.
448 Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
449 0x2000000.
450
451 * scripttempl/elfd10v.sc: Fix calculation of .text. Change
452 .stack to start at 0x2007ffe.
453
454 Mon Oct 28 15:37:00 1996 Doug Evans <dje@canuck.cygnus.com>
455
456 * configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
457
458 start-sanitize-v850
459 Wed Oct 23 16:17:22 1996 Jeffrey A Law (law@cygnus.com)
460
461 * scriptempl/v850.sc (zdata): Fix typo "zrodata" -> "rozdata".
462
463 * scriptempl/v850.sc (zdata): Make sure this stays
464 in lo-memory.
465
466 Tue Oct 22 11:36:47 1996 Jeffrey A Law (law@cygnus.com)
467
468 * scripttempl/v850.sc (__ep): Put it at the start
469 of the tda section.
470
471 * scriptempl/v850.sc: Move all "normal" sections into
472 the external memory region (0x100000 - 0x200000).
473
474 end-sanitize-v850
475 Mon Oct 21 17:16:59 1996 Michael Meissner <meissner@wogglebug.tiac.net>
476
477 * scripttempl/elfd10v.sc: Clone from elf.sc, move .text to
478 0x10000, so that is more room for data.
479
480 * emulparams/d10velf.sh (TEXT_START_ADDR): Now 0x100000.
481 (READONLY_START_ADDR): Now 0x0.
482 (SCRIPT_NAME): Now elfd10v.
483
484 * Makefile.in (ed10velf.c): Depend on elfd10v.sc, not elf.sc.
485
486 Fri Oct 18 22:12:49 1996 Doug Evans <dje@canuck.cygnus.com>
487
488 * emulparams/m32relf.sh (TEXT_START_ADDR): Change from 0 to 0x100.
489
490 Fri Oct 18 15:43:38 1996 Ian Lance Taylor <ian@cygnus.com>
491
492 * Makefile.in (ALL_EMULATIONS): Remove eelf64alpha.o.
493 (ALL_64_EMULATIONS): New variable.
494 * configure.in: Accept --enable-64-bit-bfd option. If it is set
495 with --enable-targets=all, include ALL_64_EMULATIONS in
496 EMULATION_OFILES.
497 * configure: Rebuild.
498
499 start-sanitize-v850
500 Fri Oct 18 12:58:35 1996 Jeffrey A Law (law@cygnus.com)
501
502 * scripttempl/v850.sc (__gp, __ep): Define.
503
504 end-sanitize-v850
505 Thu Oct 17 18:14:07 1996 Ian Lance Taylor <ian@cygnus.com>
506
507 * ld.texinfo: Try to consistently use a single or a double dash
508 for each option.
509
510 Thu Oct 17 10:17:20 1996 Doug Evans <dje@canuck.cygnus.com>
511
512 * emulparams/m32relf.sh (EMBEDDED): Define.
513
514 start-sanitize-v850
515 Thu Oct 17 10:56:49 1996 Jeffrey A Law (law@cygnus.com)
516
517 * scripttempl/v850.sc (.zdata): Add this before .text.
518 (.sdata): Also include .rosdata as part of the .sdata.
519 (.tdata): Include this just before .sdata.
520
521 * emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
522 * scripttempl/v850.sc: Wrap script with a "cat << EOF".
523
524 Wed Oct 16 23:10:01 1996 Jeffrey A Law (law@cygnus.com)
525
526 * scripttempl/v850.sc: New linker script for the V850.
527 * Makefile.in: Use it.
528
529 end-sanitize-v850
530 Thu Oct 10 17:57:00 1996 Ian Lance Taylor <ian@cygnus.com>
531
532 * emulparams/elf32b4300.sh: Define _gp in OTHER_GOT_SYMBOLS, not
533 OTHER_READWRITE_SECTIONS.
534 * emulparams/elf32l4300.sh: Likewise.
535
536 Wed Oct 9 14:36:18 1996 Ian Lance Taylor <ian@cygnus.com>
537
538 * ld.h (ld_config_type): Add warn_section_align field.
539 * lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
540 (ld_options): Add --warn-section-align.
541 (parse_args): Handle --warn-section-align.
542 * ldlang.c (lang_size_sections): If warn_section_align, warn if
543 the start of a section changes due to alignment.
544 * ld.texinfo, ld.1: Document --warn-section-align.
545 * ld.texinfo: Change some single dashes to double dashes.
546
547 * emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
548 subsystem type. Ifdef out os2 type. Recognize a version number.
549
550 Tue Oct 8 12:07:13 1996 Ian Lance Taylor <ian@cygnus.com>
551
552 * emultempl/pe.em (set_pe_subsystem): When setting the subsystem
553 to windows, set the entry point.
554
555 * Makefile.in (ldlex.c): Don't pass any options to $(LEX).
556
557 Mon Oct 7 17:29:05 1996 Ian Lance Taylor <ian@cygnus.com>
558
559 * ld.texinfo (Options): Mention .so extensions for shared
560 libraries.
561
562 Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
563
564 * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
565
566 Fri Oct 4 18:49:31 1996 Ian Lance Taylor <ian@cygnus.com>
567
568 * scripttempl/m68kcoff.sc: Only set the address of .text if
569 RELOCATING.
570
571 Fri Oct 4 10:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
572
573 * emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
574 * scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
575 (OUTPUT_FORMAT): Support bi-endian targets.
576
577 Thu Oct 3 13:52:03 1996 Ian Lance Taylor <ian@cygnus.com>
578
579 * fnmatch.h, fnmatch.c: Remove (now in libiberty).
580 * Makefile.in: Rebuild dependencies.
581 (CFILES): Remove fnmatch.c.
582 (HFILES): Remove fnmatch.h.
583 (OFILES): Remove fnmatch.o.
584
585 Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
586
587 * Makefile.in (mostlyclean): Move config.log to distclean.
588
589 Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
590
591 * emultmpl/pe.em: increase size of stack reserve to 0x2000000
592 (necessary in order to compile parse.c in gcc sources under NT)
593
594 Wed Oct 2 14:49:10 1996 Ian Lance Taylor <ian@cygnus.com>
595
596 * lexsup.c (ld_options): Fix typo in --rpath-link description.
597 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
598 --rpath if a needed library is not found.
599
600 Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com>
601
602 * configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
603
604 Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com>
605
606 * ld.texinfo (Options): Give more detail on -l option.
607
608 * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
609 elf.sc does, so that glibc works better.
610
611 * ldver.c (ld_program_version): New variable.
612 (ldversion): Use it.
613 * ldver.h (ld_program_version): Declare.
614 * lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
615 --version. Change --version handling to match current GNU
616 standards.
617 (help): Print bug report address.
618
619 Mon Sep 30 12:14:43 1996 Doug Evans <dje@canuck.cygnus.com>
620
621 * Makefile.in (em32relf.c): Add rule for.
622 * configure.tgt (m32r-*-*): Recognize.
623 * emulparams/m32relf.sh: New file.
624
625 Thu Sep 26 13:58:47 1996 Stan Shebs <shebs@andros.cygnus.com>
626
627 * mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
628 * mpw-config.in: Add mips-*-* case as mips-elf, and use more
629 wildcards in matching.
630 * mpw-emipself.c: New file, pregenerated mips elf emulation.
631
632 Tue Sep 17 12:18:21 1996 Ian Lance Taylor <ian@cygnus.com>
633
634 * ldint.texinfo: Rewrote.
635
636 * configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
637
638 Mon Sep 16 17:55:21 1996 Ian Lance Taylor <ian@cygnus.com>
639
640 * scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
641 syntax error on __end__ line.
642
643 * scripttempl/armcoff.sc: For -N or -n, don't align .data. From
644 Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
645
646 start-sanitize-v850
647 Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com)
648
649 * emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
650
651 end-sanitize-v850
652 Sun Sep 15 10:38:16 1996 Mark Alexander <marka@cygnus.com>
653
654 * emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
655 stack at top of simulator memory.
656
657 Fri Sep 13 15:49:45 1996 Ian Lance Taylor <ian@cygnus.com>
658
659 * ldlex.l (SYMBOLCHARN): Add $, _, and ~.
660
661 Wed Sep 11 23:30:42 1996 Ian Lance Taylor <ian@cygnus.com>
662
663 * ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
664
665 Thu Sep 5 15:24:12 1996 Ian Lance Taylor <ian@cygnus.com>
666
667 * ldlang.c (section_already_linked): Accept a lang_input_statement
668 as the PTR argument. If the file is symbols only, discard all
669 input sections.
670 (ldlang_add_file): Pass entry to bfd_map_over_sections.
671
672 Wed Sep 4 15:53:43 1996 Ian Lance Taylor <ian@cygnus.com>
673
674 * configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
675 <fila@ibi.com>.
676
677 start-sanitize-v850
678 Tue Sep 3 00:52:54 1996 Jeffrey A Law (law@cygnus.com)
679
680 * emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
681
682 Sun Sep 1 21:48:58 1996 Jeffrey A Law (law@cygnus.com)
683
684 * emulparms/v850.sh: Set EMBEDDED.
685
686 Fri Aug 30 22:30:30 1996 Jeffrey A Law (law@cygnus.com)
687
688 * emulparms/v850.sh: Entry symbol is "_start", tweak
689 ctor/dtor support.
690
691 end-sanitize-v850
692 Fri Aug 30 18:32:31 1996 Ian Lance Taylor <ian@cygnus.com>
693
694 * configure.tgt (sh-*-elf*): New target.
695 * emulparams/shelf.sh: New file.
696 * emulparams/shlelf.sh: New file.
697 * Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
698 (eshelf.c, eshlelf.c): New targets.
699 * scripttempl/elf.sc: If EMBEDDED is defined, then don't add
700 SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END
701 around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
702 OTHER_RELOCATING_SECTIONS if RELOCATING.
703
704 Thu Aug 29 16:57:46 1996 Michael Meissner <meissner@tiktok.cygnus.com>
705
706 * configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
707 pro.
708
709 Mon Aug 26 12:58:11 1996 Ian Lance Taylor <ian@cygnus.com>
710
711 * ldgram.y (section): Add opt_nocrossrefs; pass value to
712 lang_enter_overlay.
713 (opt_nocrossrefs): New nonterminal.
714 * ldlex.l: Recognize NOCROSSREFS keyword in EXPRESSION mode.
715 * ldlang.c (overlay_nocrossrefs): New static variable.
716 (lang_enter_overlay): Add nocrossrefs parameter.
717 (lang_leave_overlay): Only add nocrossrefs if overlay_nocrossrefs
718 is set. Initialize overlay_nocrossrefs.
719 * ldlang.h (lang_enter_overlay): Update declaration.
720 * ld.texinfo (Overlays): Update documentation.
721
722 * ldver.c (ldversion): Print GNU ld in the version message.
723
724 Thu Aug 22 17:10:40 1996 Ian Lance Taylor <ian@cygnus.com>
725
726 * configure.host: Set HLDENV.
727 * configure.in: Substitute HLDENV.
728 * configure: Rebuild.
729 * Makefile.in (HLDENV): New variable.
730 ($(LD_PROG)): Use $(HLDENV).
731
732 start-sanitize-v850
733 Thu Aug 22 16:29:28 1996 Jeffrey A Law (law@cygnus.com)
734
735 * Makefile.in (ev850.c): New target.
736 * configure.tgt (v850-*-*): New target.
737 * emulparams/v850.sh: New file.
738
739 end-sanitize-v850
740 Thu Aug 22 11:16:02 1996 Stan Shebs <shebs@andros.cygnus.com>
741
742 * mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
743
744 Wed Aug 21 11:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
745
746 * scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
747 containing sections.
748
749 Mon Aug 19 13:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
750
751 * fnmatch.c: Include sysdep.h.
752
753 Mon Aug 19 11:28:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
754
755 * genscripts.sh: Undo 8/16 change.
756
757 * emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
758
759 Fri Aug 16 19:18:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
760
761 * genscripts.sh: Explicitly reset any shell variables set or used
762 by the various .sc scripts to allow inadvertant use of these
763 names as normal environment variables by the person running
764 configure.
765
766 * Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
767
768 Fri Aug 16 14:15:41 1996 James G. Smith <jsmith@cygnus.co.uk>
769
770 * scripttempl/armcoff.sc (__bss_start__, __bss_end__,
771 __data_start__, __data_end__): Added to keep in sync. with the
772 default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
773
774 Thu Aug 8 14:24:56 1996 Ian Lance Taylor <ian@cygnus.com>
775
776 * ldcref.c (check_reloc_refs): If info->same, look for any symbol
777 defined in info->defsec, not just the section symbol.
778
779 Wed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
780
781 * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
782 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
783 (NEED_DECLARATION_SBRK): New macro.
784 * configure, config.in: Rebuild.
785 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
786 * ldmain.c (sbrk): Declare if HAVE_SBRK and
787 NEED_DECLARATION_SBRK.
788
789 * ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
790
791 Mon Aug 5 16:26:14 1996 Ian Lance Taylor <ian@cygnus.com>
792
793 * ldlex.l: Recognize OVERLAY.
794 * ldgram.y: Add section_phdr field to %union.
795 (section): Handle phdr_opt result. Add OVERLAY case.
796 (opt_exp_without_type): New nonterminal.
797 (phdr_opt): Return list of phdrs.
798 (overlay_section): New nonterminal.
799 * ldlang.c: Include <ctype.h>.
800 (lang_leave_output_section_statement): Add phdrs parameter.
801 Change all callers.
802 (lang_section_in_phdr): Remove.
803 (overlay_vma, overlay_lmn, overlay_max): New static variables.
804 (struct overlay_list): Define.
805 (overlay_list): New static variable.
806 (lang_enter_overlay, lang_enter_overlay_section): New functions.
807 (lang_leave_overlay_section, lang_leave_overlay): New functions.
808 * ldlang.h (lang_leave_output_section_statement): Update
809 declaration for new parameter.
810 (lang_section_in_phdr): Don't declare.
811 (lang_enter_overlay, lang_enter_overlay_section): Declare.
812 (lang_leave_overlay_section, lang_leave_overlay): Declare.
813 * ld.texinfo (Overlays): New node under SECTIONS, documenting
814 overlays.
815
816 * ldlex.l: Recognize MAX and MIN.
817 * ldgram.y (MAX, MIN): New terminals.
818 (exp): Recognize MAX and MIN.
819 * ldexp.c (fold_binary): Handle MAX and MIN.
820 * ld.texinfo (Arithmetic Functions): Document MAX and MIN.
821
822 * ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
823 index entries.
824
825 * ldgram.y (SIZEOF, ADDR): Do not specify type.
826
827 * ldcref.c (check_nocrossref): Skip symbols with no output
828 sections.
829
830 Fri Aug 2 14:57:49 1996 Ian Lance Taylor <ian@cygnus.com>
831
832 * ldgram.y (LOADADDR): New terminal.
833 (exp): Handle LOADADDR.
834 * ldlex.l: Recognize LOADADDR.
835 * ldexp.c (exp_print_token): Add LOADADDR.
836 (fold_name): Implement LOADADDR.
837 * ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
838 * ld.texinfo (Arithmetic Functions): Document LOADADDR.
839
840 Thu Aug 1 12:52:19 1996 Ian Lance Taylor <ian@cygnus.com>
841
842 * ld.h (check_nocrossrefs): Declare.
843 * ldlang.h (struct lang_nocrossref): Define.
844 (struct lang_nocrossrefs): Define.
845 (nocrossref_list): Declare.
846 (lang_add_nocrossref): Declare.
847 * ldlex.l: Recognize NOCROSSREFS keyword.
848 * ldgram.y (%union): Add nocrossref field.
849 (NOCROSSREFS): New terminal.
850 (ifile_p1): Recognize NOCROSSREFS.
851 (nocrossref_list): New nonterminal.
852 * ldlang.c (nocrossref_list): Define.
853 (lang_add_nocrossref): New function.
854 * ldmain.c (main): If nocrossref_list is not NULL, call
855 check_nocrossrefs.
856 (warning_callback): Free symbols if there is no place to store
857 them.
858 (notice): Call add_cref if nocrossref_list is not NULL.
859 * ldcref.c: Include "ldexp.h" and "ldlang.h".
860 (check_nocrossrefs): New function.
861 (check_nocrossref): New static function.
862 (struct check_refs_info): Define.
863 (check_refs, check_reloc_refs): New static functions.
864 * Makefile.in: Rebuild dependencies.
865 * ld.texinfo (Option Commands): Document NOCROSSREFS.
866
867 * ld.texinfo (Section Placement): Improve the wording of the
868 wildcard documentation. Mention that wildcards are only searched
869 for on the command line, not in the file system.
870
871 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
872 definition of lib_path inside condition where it is used.
873
874 Wed Jul 31 13:17:10 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
875
876 * emulparams/d10velf.sh: Now works with elf.sc.
877
878 Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
879
880 * emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
881
882 Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
883
884 * ldlang.c (lang_size_sections): Add the section VMA to the result
885 value when computing the address of a section.
886
887 * ld.h (args_type): Add cref field.
888 * lexsup.c (parse_args): Set command_line.cref.
889 * ldmain.c (main): Check command_line.cref rather than
890 link_info.notice_all.
891 (notice): Likewise.
892
893 * ldcref.c (output_one_cref): Don't crash if a symbol is defined
894 in a section without an owner.
895
896 Mon Jul 29 17:23:33 1996 Ian Lance Taylor <ian@cygnus.com>
897
898 * fnmatch.h, fnmatch.c: New files.
899 * ldlex.l: Remove unused definition of FILENAME. Add definition
900 of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a
901 NAME.
902 * ldgram.y (file_NAME_list): Accept '*' and '?' specially.
903 (input_section_spec): Accept '?' specially.
904 (statement): Change exp to mustbe_exp in length and FILL cases.
905 (section): Call ldlex_script before section statements, and call
906 ldlex_popstate after them.
907 * ldlang.c: Include "fnmatch.h".
908 (wildcardp): New static function.
909 (wild_section): Permit the section name to be a wildcard.
910 (wild_file): New static function, broken out of wild.
911 (wild): Call wild_file. Permit the file name to be a wildcard.
912 (open_input_bfds): Don't call lookup_name for a wildcard pattern.
913 * Makefile.in: Rebuild dependencies.
914 (CFILES): Add fnmatch.c.
915 (HFILES): Add fnmatch.h.
916 (OFILES): Add fnmatch.o.
917 * ld.texinfo: Document that file and section names can now be
918 wildcard patterns.
919
920 * ldlang.c (lang_place_orphans): Correct condition: place a common
921 section if not relocateable or if common definitions are forced.
922
923 Wed Jul 24 12:16:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
924
925 * emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
926
927 Wed Jul 24 13:38:22 1996 Michael Meissner <meissner@wogglebug.tiac.net>
928
929 * configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
930
931 Tue Jul 23 10:36:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
932
933 * Makefile.in (ed10velf.c): New target.
934 * configure.tgt (d10v-*-elf*): New target.
935 * emulparams/d10velf.sh: New file.
936
937 Thu Jul 18 16:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
938
939 * configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
940 <ANDREWG@microlise.co.uk>.
941
942 * configure.host: Change irix5 to irix[56]*.
943 * configure.tgt: Likewise.
944
945 Wed Jul 17 10:52:46 1996 Kim Knuttila <krk@cygnus.com>
946
947 * emultempl/pe.em (sort_sections): Pay attention to return code.
948
949 * ldmisc.c (demangle): Remove all prefix '.'s from a name.
950
951 Mon Jul 15 11:49:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
952
953 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round
954 the value of __start_SECNAME to the alignment required by the
955 section to be placed.
956
957 Tue Jul 9 12:09:02 1996 Ian Lance Taylor <ian@cygnus.com>
958
959 * configure.tgt (mips*el-*-elf*): Use elf32elmip.
960 (mips*-*-elf*): Use elf32ebmip.
961 * emulparams/elf32bmip.sh (EMBEDDED): Don't define.
962 * emulparams/elf32lmip.sh (EMBEDDED): Don't define.
963 * emulparams/elf32elmip.sh: New file; copy of elf32lmip.sh with
964 EMBEDDED defined.
965 * emulparams/elf32ebmip.sh: New file; copy of elf32bmip.sh with
966 EMBEDDED defined.
967 * emulparams/elf32b4300.sh (EMBEDDED): Define.
968 * emulparams/elf32l4300.sh (EMBEDDED): Define.
969 * Makefile.in (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
970 (eelf32ebmip.c, eelf32elmip.c): New targets.
971
972 Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
973
974 * ldver.c (ldversion): Set version to cygnus-2.7.1.
975
976 * Released binutils 2.7.
977
978 * emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
979 System V file name limitations.
980 * configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
981 pc532macha rather than pc532machaout.
982 * Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
983 epc532macha.o.
984 (epc532macha.c): Rename target from epc532machaout.c.
985
986 Wed Jul 3 11:40:10 1996 Ian Lance Taylor <ian@cygnus.com>
987
988 * ldlang.c (print_padding_statement): Use %u, not %x, to print
989 fill value.
990
991 Sun Jun 30 11:16:43 1996 Stan Shebs <shebs@andros.cygnus.com>
992
993 * mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
994
995 Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
996
997 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
998 file just before the .so file, rather than just after.
999
1000 * configure.host: Use -print-file-name=FILE rather than piping
1001 -print-libgcc-file-name through sed.
1002 (i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
1003 crtend.o files, in case gcc doesn't use them.
1004 * Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
1005
1006 Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
1007
1008 * configure.tgt (mips*-dec-osf*): New target.
1009
1010 Tue Jun 25 22:15:29 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1011
1012 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1013 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1014 (docdir): Removed.
1015 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1016 (AC_PROG_INSTALL): Added.
1017 * configure: Rebuilt.
1018
1019 Mon Jun 24 18:48:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1020
1021 * scripttempl/elfppc.sc (_GLOBAL_OFFSET_TABLE_): Don't do a
1022 PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
1023 non-fixed location.
1024
1025 Mon Jun 24 17:55:31 1996 Jouke Numan <jnuman@bazis.nl>
1026
1027 * ldlang.h (enum section_type): Define.
1028 (lang_output_section_statement_type): Remove loadable field. Add
1029 sectype field.
1030 (lang_enter_output_section_statement): Change flags parameter in
1031 prototype to sectype.
1032 * ldgram.y (typebits): Remove.
1033 (sectype): New static variable.
1034 (opt_at): Use sectype rather than typebits.
1035 (type): Set sectype rather than typebits.
1036 (atype): Likewise.
1037 * ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
1038 EXPRESSION mode.
1039 * ldlang.c (lang_output_section_statement_lookup): Set sectype
1040 field rather than loadable field.
1041 (wild_doit): Check sectype rather than loadable.
1042 (lang_record_phdrs): Likewise.
1043 (lang_enter_output_section_statement): Rename flags parameter to
1044 sectype. Set sectype field rather than loadable field. Set flags
1045 field based on sectype.
1046
1047 Mon Jun 24 12:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
1048
1049 * scripttempl/elf.sc: Force .stab* and .comment sections to start
1050 at 0.
1051
1052 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
1053 using shared libraries.
1054 * configure: Rebuild with autoconf 2.10.
1055
1056 Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
1057
1058 * configure.tgt: Add support for *-*-rtems* configurations.
1059
1060 Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
1061
1062 * configure.tgt (alpha-*-linuxecoff*): New target.
1063 (alpha-*-linux*): Use elf64alpha.
1064 * emulparams/elf64alpha.sh: New file.
1065 * emultempl/elf32.em: If ELFSIZE is not set, set it to 32. Use
1066 ${ELFSIZE} rather than 32 when calling BFD routines.
1067 (hold_rodata): New static variable.
1068 (gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
1069 readonly section that is not code.
1070 (gld${EMULATION_NAME}_place_section): Set hold_rodata. Don't use
1071 a .rel section unless its bfd_section field is not NULL.
1072 * Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
1073 (eelf64alpha.c): New target.
1074
1075 Fri Jun 21 12:45:46 1996 Ian Lance Taylor <ian@cygnus.com>
1076
1077 * ldmisc.c (vfinfo): Correct handling of 0 in %W case.
1078
1079 Thu Jun 20 13:55:28 1996 Ian Lance Taylor <ian@cygnus.com>
1080
1081 Add enough support to understand the gcc svr3.ifile script:
1082 * ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context. Add
1083 BIND keyword.
1084 * ldgram.y: Add BIND token.
1085 (section): Recognize GROUP.
1086 (opt_ext_with_type): Recognize a couple of cases of BIND.
1087 * ldlang.c (init_os): Don't do anything if section is already
1088 initialized. Call exp_init_os on addr_tree field.
1089 (exp_init_os): New static function.
1090 (map_input_to_output_sections): Call exp_init_os on assignment
1091 expression.
1092 (lang_place_orphans): Check for common sections by name COMMON
1093 rather than by common_section field. Don't warn about absence of
1094 [COMMON] command.
1095
1096 * ldlang.h (lang_input_statement_type): Remove useless fields
1097 common_section, common_output_section, and complained, as well as
1098 all references to them.
1099
1100 * ldexp.c: Reindent a lot of code.
1101 (exp_fold_tree): Call FAIL rather than einfo in default case.
1102
1103 Wed Jun 19 11:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
1104
1105 * configure.host (m88*-*-dgux*): Quote HOSTING_CRT0. From
1106 <randall.hron@medaphis.com>.
1107
1108 Tue Jun 18 15:53:09 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1109
1110 * scripttempl/h8300s.sc: New file for H8/S.
1111 * emulpararms/h8300s.sh: New file for H8/S.
1112 * Makefile.in (ALL_EMULATIONS): Add H8/S.
1113 (e_h8300s.c): Add dependencies.
1114 * configure.tgt: Add H8/S to targ_extra_emuls.
1115
1116 Tue Jun 18 17:55:39 1996 Ian Lance Taylor <ian@cygnus.com>
1117
1118 * configure.tgt (i[345]86*-*-isc*): New target. From
1119 <uddeborg@carmen.se>.
1120
1121 Wed Jun 12 12:46:21 1996 Ian Lance Taylor <ian@cygnus.com>
1122
1123 * lexsup.c: Include "libiberty.h".
1124 (parse_args): Copy the -Y argument into memory.
1125 (set_default_dirlist): Don't put the ':' back into the directory
1126 list.
1127
1128 Fri Jun 7 11:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
1129
1130 * emultempl/sunos.em: Include libiberty.h.
1131 (gld${EMULATION_NAME}_set_symbols): New static function to add
1132 LD_LIBRARY_PATH to the list of search directories.
1133 (ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
1134
1135 Thu Jun 6 11:50:31 1996 Ian Lance Taylor <ian@cygnus.com>
1136
1137 * emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
1138 rather than . when computing _gp value. From Per Fogelstrom.
1139 * emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
1140
1141 * ldmain.c (main): Don't close and unlink the file on error, since
1142 remove_output will do it anyhow.
1143 * ldlang.c (open_output): Set boolean variable to true, not 1.
1144
1145 Wed Jun 5 18:34:14 1996 James G. Smith <jsmith@cygnus.co.uk>
1146
1147 * emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
1148 elfmips instead of elf.
1149
1150 Tue Jun 4 18:43:07 1996 Ian Lance Taylor <ian@cygnus.com>
1151
1152 * ldcref.c: New file.
1153 * ld.h (add_cref, output_cref): Declare.
1154 * ldmain.c (main): Initialize notice_all field. If it is set at
1155 end of link, call output_cref.
1156 (notice): Rename from notice_ysym. Check notice_all.
1157 * ldmisc.c (finfo): Make globally visible.
1158 * ldmisc.h (finfo): Declare.
1159 * lexsup.c (OPTION_CREF): Define.
1160 (ld_options): Add "cref".
1161 (parse_args): Handle OPTION_CREF.
1162 * Makefile.in: Rebuild dependencies.
1163 (CFILES): Add ldcref.c.
1164 (OFILES): Add ldcref.o.
1165 * ld.texinfo, ld.1: Document --cref.
1166
1167 Tue Jun 4 12:12:25 1996 Tom Tromey <tromey@csk3.cygnus.com>
1168
1169 * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
1170
1171 Fri May 31 12:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
1172
1173 * emultempl/pe.em (sort_sections): Don't assume that a
1174 wild_statement has a section name.
1175
1176 Wed May 29 13:13:35 1996 Ian Lance Taylor <ian@cygnus.com>
1177
1178 * scripttempl/elfmips.sc: Quote test -z argument.
1179
1180 * ld.texinfo: Clarify the CONSTRUCTORS command.
1181
1182 Thu May 23 16:07:44 1996 Ian Lance Taylor <ian@cygnus.com>
1183
1184 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
1185 file, not impfile.
1186
1187 Wed May 22 11:31:30 1996 Doug Evans <dje@seba.cygnus.com>
1188
1189 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
1190 if final link.
1191 * emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
1192 (sort_by_section_name, sort_sections_1): New functions.
1193 (sort_sections): Only sort by file name sections in .idata.
1194 Add "Grouped Sections" support.
1195 (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
1196 Sections.
1197 (gld${EMULATION_NAME}_place_section): Delete.
1198 * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
1199 (.CRT,.rsrc): Rewrite to use Grouped Section support.
1200
1201 Tue May 21 14:31:48 1996 Stan Shebs <shebs@andros.cygnus.com>
1202
1203 * mpw-eppcmac.c: Update to reflect changes to aix.em.
1204
1205 Sun May 19 16:59:44 1996 Doug Evans <dje@seba.cygnus.com>
1206
1207 * ldlang.c (dprint_statement): Stop printing at end of list.
1208
1209 Sat May 18 13:12:05 1996 Steve Chamberlain <sac@slash.cygnus.com>
1210
1211 Support for --force-exe-suffix
1212 * ld.h (args_type): Add force_exe_suffix.
1213 * ld.texinfo: Add documentation.
1214 * ldmain.c (main): Add support for option.
1215 * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
1216 (ld_options, parse_args): Add support for option.
1217
1218 Wed May 15 12:50:25 1996 Jim Wilson <wilson@chestnut.cygnus.com>
1219
1220 * emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
1221
1222 Fri May 10 16:28:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1223
1224 * scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
1225 referenced but not defined.
1226
1227 Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1228
1229 * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
1230 Set a new variable to signify if the final target is an embedded
1231 system.
1232 * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
1233 .text for an embedded system.
1234
1235 Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
1236
1237 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
1238 (gld${EMULATION_NAME}_place_section): New function.
1239 (hold_{section,use,text,rdata,data}): New static locals.
1240 (ld_${EMULATION_NAME}_emulation): Update orphan field.
1241 * scripttempl/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
1242 (INIT,FINI): Delete, unused.
1243 (.text): Document orphan .text.foo sections.
1244 (.rdata): Document orphan .rdata.foo sections.
1245 (.data): Document orphan .data.foo sections.
1246
1247 Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
1248
1249 * scripttempl/h8300.sc: Place ".tiny" sections right
1250 after ".data" sections.
1251 * scripttempl/h8300h.sc: Place ".tiny" sections into
1252 the "tiny" memory region, 0xff8000 through 0xffff00.
1253
1254 * scripttempl/h8300.sc: Set the entry point to the value of
1255 "_start" rather than the start of the text segment.
1256 * scripttempl/h8300h.sc: Likewise.
1257
1258 * scripttempl/h8300.sc: Place .rodata sections before .text
1259 sections in main ram.
1260 * scripttempl/h8300h.sc: Likewise.
1261
1262 Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
1263
1264 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
1265 8-bit region and 8-bit sections.
1266
1267 Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
1268
1269 * ldlang.c (section_already_linked): Fix typos.
1270
1271 Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
1272
1273 * scripttempl/pe.sc (.endjunk): Define __end__.
1274
1275 Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
1276
1277 * ldlang.c (longest_section_name): Remove.
1278 (SECTION_NAME_MAP_LENGTH): Define.
1279 (print_size, print_alignment, print_fill, print_section): Remove.
1280 (print_flags): Remove.
1281 (lang_map): Rewrite.
1282 (print_output_section_statement): Rewrite.
1283 (print_assignment): Rewrite.
1284 (print_one_symbol): Rewrite.
1285 (print_input_section): Rewrite.
1286 (print_fill_statement): Rewrite.
1287 (print_data_statement): Rewrite.
1288 (print_address_statement): New static function.
1289 (print_reloc_statement): Rewrite.
1290 (print_padding_statement): Rewrite.
1291 (print_wild_statement): Rewrite.
1292 (print_statement_list): Clean up.
1293 (print_statement): Clean up. Some minor output changes.
1294 (print_statements): Clean up.
1295 (load_symbols): Put another - before -whole-archive.
1296 * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
1297 print 0x and to omit leading zeroes. For etree_rel, use %B to
1298 print the BFD. For etree_assign, remove the space after the
1299 destination name.
1300 * ldwrite.c: Include "libiberty.h".
1301 (clone_section): Call xstrdup, not strdup.
1302 (ldwrite): Don't print any map information.
1303 (print_symbol_table, print_file_stuff, print_symbol): Remove.
1304 * ldmain.c (main): Call lang_map when appropriate.
1305 * ldmisc.c (vfinfo): Add support for %W.
1306 (print_address): Remove.
1307 * ldmisc.h (print_address): Don't declare.
1308 * Makefile.in: Rebuild dependencies.
1309
1310 Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1311
1312 * configure.host (m68*-*-linux*): Add -dynamic-linker to
1313 HOSTING_CRT0. Search -lgcc both before and after -lc in
1314 HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
1315 at first.
1316 (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
1317 directory at first.
1318
1319 Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
1320
1321 * ldmisc.h (demangle): Declare.
1322 * ldmisc.c: Include "libiberty.h". Include demangle.h with "",
1323 not <>.
1324 (demangle): Make non-static. Remove remove_underscore paramter.
1325 Always return an allocated string.
1326 (vfinfo): Free result of demangle. Add case 'G'. Use %T to print
1327 functionname, rather than calling demangle. Print a colon between
1328 the BFD(section+offset) and the line number.
1329 * ldmain.c (add_archive_element): Improve format of archive
1330 information in map file.
1331 (constructor_callback): Don't print anything to the map file.
1332 * ldlang.c (lang_one_common): Improve format of common symbol
1333 information in map file.
1334 * ldctor.c (ldctor_build_sets): If producing a map file, print set
1335 information.
1336 * ldwrite.c (print_symbol_table): Print a newline before the
1337 header in the map file.
1338 * Makefile.in: Rebuild dependencies.
1339
1340 * ldmisc.c (vfinfo): Reindent.
1341
1342 Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
1343
1344 * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
1345 don't clobber it when not relaxing.
1346
1347 * ld.h (ld_config_type): Remove traditional_format field.
1348 * ldmain.c (main): Use link_info.traditional_format rather than
1349 config.traditional_format.
1350 * ldlang.c (ldlang_open_output): Likewise.
1351 * lexsup.c (parse_args): Likewise.
1352 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
1353 * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
1354
1355 * ldlang.c (wild_doit): Discard debugging sections if we are
1356 stripping debugging information.
1357
1358 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
1359
1360 Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
1361
1362 * ldexp.c (fold_binary): Correct handling of subtraction with
1363 absolute values.
1364 (fold_name): Permit symbols in lang_allocating_phase_enum.
1365
1366 * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
1367 accidental changes in last patch.
1368
1369 Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1370
1371 * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
1372 (powerpcle*-*-{sysv,solaris}): Ditto.
1373
1374 Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1375
1376 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
1377 in m68k/crt0.S without things blowing up.
1378
1379 Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1380
1381 * scripttempl/m68kcoff.sc: Remove default address for .data so
1382 .text, .data, and .bss are all sequential.
1383
1384 Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
1385
1386 * scripttempl/m68kcoff.sc: Remove regions and simplify.
1387
1388 Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
1389
1390 * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
1391 bytes of the address space. Put data from the ".eight" sections
1392 into the 8-bit area.
1393 * scripttempl/h8300h.sc: Likewise.
1394
1395 Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
1396
1397 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
1398 Pass $ARCH to ldfile_set_output_arch instead of setting
1399 ldfile_output_architecture directly.
1400
1401 Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1402
1403 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
1404 next to .text. Put _etext after .text, .init, .fini, and
1405 .rodata{,2} sections.
1406
1407 Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
1408
1409 * ld.texinfo: Rearrange option documentation.
1410
1411 * lexsup.c (ld_options): New static array.
1412 (parse_args): Build shortopts and longopts from ld_options array.
1413 (help): New static function.
1414 * ldver.h (help): Don't declare.
1415 * ldver.c (ldversion): Reindent.
1416 (help): Remove.
1417
1418 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
1419
1420 Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
1421
1422 * emultempl/elf32.em: When checking for a native emulation, check
1423 that the current emulation is the default emulation.
1424 * emultempl/sunos.em: Likewise.
1425
1426 * configure.in: Permit --enable-shared to specify a list of
1427 directories.
1428 * configure: Rebuild.
1429
1430 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
1431 for HP/UX compatibility.
1432
1433 Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
1434
1435 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
1436 static function, if ${host} = ${target}.
1437 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
1438 needed shared library if ${host} = $[target}.
1439
1440 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
1441 HOSTING_CRT0. Search -lgcc both before and after -lc in
1442 HOSTING_LIBS.
1443
1444 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
1445 Polstra <jdp@polstra.com>.
1446
1447 Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
1448
1449 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
1450 architecture number.
1451 * scripttempl/elf.sc: Use $MACHINE definition if present.
1452 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
1453 template as 4300.
1454
1455 Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
1456
1457 * ldlang.c (lang_size_sections): Change region check to handle
1458 regions which end at the highest possible address correctly.
1459 From Roland Weber <roweber@ira.uka.de>.
1460
1461 * ldlang.c (section_already_linked): New static function.
1462 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
1463 relocateable link. Don't worry about section being NULL, since it
1464 never should be. Don't call init_os unless the section is going
1465 to be added.
1466 (ldlang_add_file): Call section_already_linked for each section.
1467 * ldmain.c (multiple_definition): Don't warn about multiple
1468 definitions in sections which are being discarded.
1469
1470 Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
1471
1472 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
1473 * emultempl/pe.em (init): Remove special case PPC code.
1474
1475 Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
1476
1477 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
1478 so as not to overwrite the magic syscall entry at 0xc4.
1479 * scripttempl/h8300h.sc: Likewise.
1480
1481 Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
1482
1483 * configure.tgt (sparc64-*-solaris2*): Delete.
1484 Stick with sparc-*-solaris2*.
1485
1486 Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
1487
1488 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
1489 * ldlang.c (init_os): Fail on an attempt to initialize any section
1490 named DISCARD_SECTION_NAME.
1491 (wild_doit): Discard input sections assigned to an output section
1492 named DISCARD_SECTION_NAME.
1493 * ld.texinfo: Document use of /DISCARD/.
1494
1495 * ldlang.c: Fix some indentation and comments.
1496
1497 Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
1498
1499 * ldmain.c (main): Call bfd_set_error_program_name.
1500
1501 Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
1502
1503 * ld.texinfo: Fix a couple of indexing entries. Mention that
1504 --verbose displays builtin linker scripts.
1505
1506 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
1507 and the local symbol name does not match the filename, print the
1508 filename as well.
1509
1510 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
1511 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
1512 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
1513 as TEXT_START_ADDR.
1514
1515 Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1516
1517 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
1518
1519 Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
1520
1521 * ldmain.c (add_wrap): New function.
1522 * ldmain.h (add_wrap): Declare.
1523 * lexsup.c (parse_args): Call add_wrap.
1524
1525 Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
1526
1527 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
1528
1529 Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
1530
1531 * scripttempl/h8300.sc: Change name of page zero memory
1532 from "null" to "vectors". Create an output section for
1533 vectors. Add comments on how to explicitly place items
1534 in the vector table.
1535 * scripttempl/h8300h.sc: Likewise.
1536
1537 Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
1538
1539 * emultempl/lnk960.em (machine_table): Add jx and hx.
1540
1541 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
1542 support it.
1543
1544 Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
1545
1546 * ld.h (ld_config_type): Add warn_multiple_gp field.
1547 * lexsup.c (parse_args): Handle --warn-multiple-gp.
1548 * ldmain.c (warning_callback): Suppress multiple gp values warning
1549 if --warn_multiple_gp was not used.
1550 * ld.texinfo, ld.1: Document --warn-multiple-gp.
1551
1552 Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
1553
1554 * lexsup.c (parse_args): Handle --wrap.
1555 * ldmain.c (main): Initialize link_info.wrap_hash.
1556 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
1557 and NAME cases.
1558 * ld.texinfo, ld.1: Document --wrap.
1559
1560 * configure: Rebuild with autoconf 2.8.
1561
1562 Don't do SunOS style dynamic linking for sparc-aout:
1563 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
1564 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
1565 (sparc*-wrs-vxworks*): Likewise.
1566 * emulparams/sparcaout.sh: New file.
1567 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
1568 (esparcaout.c): New target.
1569
1570 Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1571
1572 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
1573 in a different manner to work around differences in shell variable
1574 expansion.
1575
1576 Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
1577
1578 * ldemul.h (ldemul_unrecognized_file): Declare.
1579 (ldemulation_xfer_type): Add unrecognized_file field.
1580 * ldemul.c (ldemul_unrecognized_file): New function.
1581 * ldlang.c (load_symbols): If a file can not be recognized, call
1582 ldemul_unrecognized_file before trying it as a linker script.
1583 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
1584 function.
1585 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
1586 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
1587
1588 Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
1589
1590 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
1591 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
1592
1593 Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1594
1595 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
1596 Search trinary.cond rather than searching trinary.lhs twice.
1597
1598 Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
1599
1600 * mpw-make.sed: Edit out shared library support.
1601 (@TDIRS@): Edit out, can't use genscripts.
1602
1603 Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1604
1605 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
1606 * emulparams/m68klinux.sh: New file.
1607 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
1608 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
1609 bfd_linux_size_dynamic_sections.
1610 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
1611 (em68klinux.c): New target.
1612 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
1613
1614 Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
1615
1616 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
1617 Fill in missing entries.
1618
1619 * lexsup.c (parse_args): Recognize --no-whole-archive.
1620 * ldlang.h (lang_input_statement_type): Add whole_archive field.
1621 * ldlang.c (new_afile): Set whole_archive field.
1622 (load_symbols): Check input file specific whole_archive field
1623 rather than global variable.
1624 * ld.texinfo, ld.1: Document --no-whole-archive.
1625
1626 Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
1627
1628 * configure.tgt: Correct gldi960 to gld960.
1629
1630 Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
1631
1632 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
1633 the SONAME if it is available.
1634 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
1635 filename, when checking for conflicting library versions. Don't
1636 assume that the suffix is only numbers and dots.
1637
1638 * ld.texinfo: Mention that -R can be used for -rpath.
1639
1640 Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
1641
1642 * configure.host: Check for 'do not mix' from native linker before
1643 trying to use -rpath.
1644
1645 Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
1646
1647 * configure.in: Remove explicit substitution of CFLAGS; autoconf
1648 does it anyhow.
1649 * configure: Rebuild.
1650 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
1651
1652 * configure.in: Call AC_PROG_CC before configure.host.
1653 * configure: Rebuild.
1654 * configure.host: Remove go32 host, since it should no longer be
1655 necessary. Don't set CC for romp host.
1656
1657 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
1658 the text segment ends exactly on a page boundary.
1659
1660 * configure.in: Substitute RPATH_ENVVAR.
1661 * configure: Rebuild.
1662 * configure.host: Set RPATH_ENVVAR.
1663 * Makefile.in (RPATH_ENVVAR): New variable.
1664 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
1665
1666 Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
1667
1668 * configure.in: Redo emulation handling so that each emulation
1669 searches the correct tool directory, based on the target alias.
1670 For example, "configure --enable-targets=m68k-coff i386-linux"
1671 will search /usr/local/i386-linux/lib for linux and
1672 /usr/local/m68k-coff/lib for m68k-coff.
1673 * configure: Rebuild.
1674 * configure.tgt: Add special tdir settings for Linux.
1675 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
1676 for each eEMUL.c target.
1677 * genscripts.sh: Accept specific alias as 9th argument, and use it
1678 in LIB_PATH.
1679
1680 Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
1681
1682 * ldlang.c (lang_set_startof): Don't do anything for a
1683 relocateable link.
1684
1685 * ldgram.y (mri_script_file): Call mri_draw_tree.
1686 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
1687 create memory regions.
1688 (mri_load): Don't call mri_draw_tree.
1689 * mri.h (mri_draw_tree): Declare.
1690
1691 * configure.tgt (m68*-*-psos): New target.
1692 * emulparams/m68kpsos.sh: New file.
1693 * scripttempl/psos.sc: New file.
1694 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
1695 (em68kpsos.c): New target.
1696
1697 Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
1698
1699 * configure.tgt (*-*-ieee*): New target; use vanilla.
1700
1701 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
1702 `:foo' from ${ARCH}.
1703
1704 Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
1705
1706 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
1707 .rodata in .data.
1708
1709 Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
1710
1711 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
1712
1713 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
1714 it looks like we might be linking in two different versions of the
1715 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
1716
1717 Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
1718
1719 * ldlang.c (lang_size_sections): Increment the section size when a
1720 padding statement is encountered.
1721
1722 Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
1723
1724 * configure.in: Look for --enable-shared. Change the value of
1725 BFDLIB when linking against a shared library on SunOS.
1726 * configure: Rebuild.
1727 * configure.host: If using a shared BFD library, try to pass a
1728 reasonable -rpath option when linking.
1729 * Makefile.in (BFDLIB): Set to @BFDLIB@.
1730
1731 Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
1732
1733 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
1734 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
1735
1736 Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
1737
1738 Support for building bfd and opcodes as shared libraries, based on
1739 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
1740 * configure.in (HLDFLAGS): New substitution.
1741 * configure: Rebuild.
1742 * configure.host: Set HLDFLAGS on SunOS.
1743 * Makefile.in (HLDFLAGS): New variable.
1744 (BFDDEP): New variable.
1745 (BFDLIB): Change to -L../bfd -lbfd.
1746 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
1747 $(HLDFLAGS) in link.
1748 (check): Set LD_LIBRARY_PATH in the environment.
1749
1750 Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
1751
1752 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
1753 in the read-only section, not read/write unless we are making a
1754 shared library.
1755 (.debug*): Add dwarf debug sections.
1756 (.rela.{sdata*,sbss*}): Add sections.
1757
1758 Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
1759
1760 * configure: Regenerate.
1761
1762 Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
1763
1764 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
1765 for SVR4 compatibility.
1766
1767 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
1768
1769 Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
1770
1771 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
1772 * emultempl/pe.em (definfo init): Make the default stack reserve
1773 of a PPC larger.
1774
1775 Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
1776
1777 * configure.tgt (m68*-apple-aux*): New target.
1778 * emulparams/m68kaux.sh: New file.
1779 * scripttempl/m68kaux.sc: New file.
1780 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
1781 (em68kaux.c): New target.
1782
1783 Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
1784
1785 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
1786 -bnoentry, since the right thing tends to happen anyhow.
1787
1788 Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
1789
1790 * ld.texinfo, ld.1: Document -export-dynamic.
1791
1792 Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1793
1794 * emultempl/sunos.em: Check for native compile by comparing
1795 ${target} and ${host}.
1796
1797 Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
1798
1799 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
1800 TEXT_START_ADDR to allow use on IDT and PMON systems.
1801
1802 Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
1803
1804 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
1805 correct spelling.
1806
1807 Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
1808
1809 * configure.tgt (sparc64-*-solaris2*): New configuration.
1810 (sparc64-*-aout*): Renamed from sparc64*.
1811
1812 Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1813
1814 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
1815 * genscripts.sh: Set host, target and target_alias variables.
1816 Check for native compile by comparing ${target} and ${host}.
1817 * emultempl/elf32.em: Likewise.
1818 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
1819
1820 Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1821
1822 * scripttempl/elfppc.sc: Refine eabi support to better support
1823 .sdata, .sdata2, .sbss, etc. sections.
1824
1825 Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
1826
1827 * ldgram.y (%union): Add phdr field.
1828 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
1829 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
1830 (opt_hdrs, hdr): Remove.
1831 (phdr_val): New nonterminal.
1832 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
1833 and phdrs parameters. Add flags parameter.
1834 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
1835 to bfd_record_phdr.
1836 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
1837 phdrs fields. Add flags field.
1838 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
1839 (lang_new_phdr): Update declaration.
1840 * ld.texinfo: Document FLAGS.
1841
1842 Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
1843
1844 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
1845 Don't make a shared library because of an undefined reference to
1846 __GLOBAL_OFFSET_TABLE_.
1847
1848 Add some Irix 5 support, mostly from Kazumoto Kojima
1849 <kkojima@info.kanagawa-u.ac.jp>:
1850 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
1851 (SHLIB_TEXT_START_ADDR): Define.
1852 (OTHER_GOT_SYMBOLS): Define.
1853 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
1854 (EXECUTABLE_SYMBOLS): Don't define.
1855 (DYNAMIC_LINK): Don't define.
1856 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
1857 * scripttempl/elfmips.sc: New file.
1858 * configure.host (mips*-dec-bsd*): Change mips to mips*.
1859 (mips*-sgi-irix4*): Likewise.
1860 (mips*-sgi-irix5*): New entry.
1861 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
1862 elf.sc.
1863 (eelf32lmip.c): Likewise.
1864
1865 Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1866
1867 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
1868 .rela.got.neg section.
1869
1870 Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
1871
1872 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
1873
1874 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
1875 ANSI_PROTOTYPES is defined. Remove special handling of
1876 WINDOWS_NT. Various indendation fixes.
1877 (vfinfo): Change fmt parameter to const char *.
1878 (info_msg): Write <stdarg.h> version.
1879 (einfo, minfo, finfo): Likewise.
1880 (info_assert): Change file parameter to const char *.
1881 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
1882 defined, use a real prototype.
1883 (info_assert): Change first parameter to be const char *.
1884
1885 Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1886
1887 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
1888 in old support that 2.7.2 needs, but the current compiler does
1889 not.
1890
1891 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
1892 correct Linker script template.
1893
1894 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
1895 not 0x400000.
1896 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
1897
1898 Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
1899
1900 * scripttempl/alpha.sc: Put .rconst right after .rdata.
1901
1902 Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
1903
1904 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
1905 sort using right pointer.
1906
1907 Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1908
1909 * scripttempl/elfppc.sc: Remove support for creating special
1910 labels for eabi section begin/end here. The compiler now uses
1911 crt{i,n}.o to create these symbols.
1912
1913 Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
1914
1915 * configure.host: Change existing Linux HOSTING_CRT0 to be used
1916 for a.out only, and put in appropriate HOSTING_CRT0 and
1917 HOSTING_LIBS values for Linux ELF.
1918
1919 Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
1920
1921 * scripttempl/h8300.sc: Use all 64K for ram.
1922 * scripttempl/h8300h.sc: Define 256K ram size.
1923
1924 Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
1925
1926 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
1927 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
1928 was used, regardless of whether -bE was used.
1929
1930 Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
1931
1932 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
1933 relocateable before calling ldctor_build_sets if the output file
1934 is in an XCOFF format.
1935
1936 Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
1937
1938 * ldwrite.c (build_link_order): When handling a data statement, if
1939 the endianness of the output file is unknown, use the endianness
1940 of the input file.
1941
1942 Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
1943
1944 * mpw-config.in: Recognize mips-*-* as equivalent to
1945 mips-idt-ecoff.
1946 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
1947 * mpw-ld.r: Add version resources.
1948 (cfrg): Use symbolic instead of literal name for executable.
1949
1950 Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
1951
1952 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
1953
1954 Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
1955
1956 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
1957 (print_statement_list): Renamed from print_statement. All callers
1958 updated.
1959 (print_statement): New function to print just one statement.
1960 (print_{data,reloc,padding}_statement): Don't crash if
1961 output_section == NULL.
1962 (dprint_statement): New function.
1963
1964 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
1965 call to sort_sections.
1966
1967 Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
1968
1969 * emultempl/aix.em (unix_ld): New static variable.
1970 (gld${EMULATION_NAME}_parse_args): Handle -unix.
1971 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
1972 gc as false and export_defineds as true to size_dynamic_sections.
1973
1974 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
1975 phase if the current section is abs_output_section.
1976
1977
1978 Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
1979
1980 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
1981 to sort_sections.
1982
1983 Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
1984
1985 * ldgram.y (PHDRS): New token.
1986 (ifile_p1): Accept phdrs.
1987 (section): Accept phdr_opt at the end of the section definition.
1988 (phdr_op): New nonterminal.
1989 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
1990 * ldlex.l: Accept PHDRS.
1991 * ldlang.h (struct lang_output_section_phdr_list): Define.
1992 (lang_output_section_statement_type): Add phdrs field.
1993 (struct lang_phdr): Define.
1994 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
1995 (lang_new_phdr): Declare.
1996 * ldlang.c (lang_phdr_list): New static variable.
1997 (lang_output_section_statement_lookup): Initialize phdrs field.
1998 (lang_process): Call lang_record_phdrs.
1999 (lang_new_phdr): New function.
2000 (lang_section_in_phdr): New function.
2001 (lang_record_phdrs): New static function.
2002 * ld.texinfo: Document PHDRS.
2003
2004 Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
2005
2006 * scripttempl/ppcpe.sc: Moved .edata into its own section to
2007 expose it.
2008
2009 Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
2010
2011 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
2012 HOSTING_LIBS for testing.
2013 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
2014 testing.
2015
2016 Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
2017
2018 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
2019 and -n.
2020
2021 Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
2022
2023 * configure: Rebuild with autoconf 2.7.
2024
2025 Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
2026
2027 * scripttempl/pe.sc: Two .junk's is too much junk.
2028
2029 Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
2030
2031 * configure.in: Use BFD_NEED_DECLARATION.
2032 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
2033 * configure, config.in: Rebuild with autoconf 2.6.
2034
2035 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
2036 being unsupported if this is not a relocateable link and the input
2037 BFD supports it, since ldctor_build_sets can cope with that case.
2038
2039 Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
2040
2041 * configure.tgt (powerpc-*-macos*): New target.
2042 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
2043 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
2044 (eppcmacos.c): New target.
2045 * mpw-eppcmacos.c: Update.
2046 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
2047
2048 Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
2049
2050 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
2051 $(host_canonical) and $(target_canonical).
2052 (CXX_FOR_TARGET): Likewise.
2053
2054 Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
2055
2056 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
2057 so the malloc heap begins at a sane place.
2058
2059 Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
2060
2061 Version 2.6 released.
2062 * ldver.c (ldversion): Update to 2.6.
2063
2064 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
2065 $(GENERATED_*FILES), since they need to be retained by distclean.
2066 (maintainer-clean, realclean): Delete them here.
2067
2068 Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
2069
2070 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
2071 base file with FOPEN_WB, not "w".
2072
2073 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
2074 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
2075 were used.
2076 (gld${EMULATION_NAME}_before_allocation): Use the environment
2077 variable LD_RUN_PATH if -rpath was not used.
2078 * ld.texinfo, ld.1: Document LD_RUN_PATH.
2079
2080 Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
2081
2082 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
2083 -bl and -bloadmap options.
2084
2085 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
2086 report a better error.
2087
2088 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
2089 new local variable special_sections, and pass it to
2090 size_dynamic_sections. Look through the results, and move the
2091 sections around in the mapping so that they are defined correctly.
2092
2093 Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
2094
2095 * ldemul.c (ldemul_default_target): Cast getenv return value.
2096
2097 Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
2098
2099 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
2100 Executable support.
2101 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
2102 support.
2103
2104 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
2105 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
2106
2107 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
2108 (gld_$_before_allocation): added hooks for toc construction based
2109 on the above macro.
2110
2111 Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
2112
2113 * ld.texinfo: The linker does not use _main as an entry point.
2114
2115 Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
2116
2117 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
2118 0x2000 not 0x200.
2119
2120 Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
2121
2122 * configure.in: Add test for whether free must be declared.
2123 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
2124 * acconfig.h: Explain NEED_DECLARATION_FREE.
2125 * configure, config.in: Rebuild.
2126
2127 * lexsup.c (parse_args): Take B:: out of shortopts.
2128
2129 Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
2130
2131 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
2132 for now, as with m68k4kbsd, until shared library support gets
2133 done.
2134
2135 * configure.host: For i386 BSD variants, crt0.o lives in
2136 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
2137
2138 Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
2139
2140 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
2141 (edelta68.c): New target.
2142 * configure.tgt (m68*-motorola-sysv*): New target.
2143 * emulparams/delta68.sh: New file.
2144 * scripttempl/delta68.sc: New file.
2145
2146 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
2147 addresses.
2148
2149 Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
2150
2151 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
2152 ALIGN and ALIGNMOD statements.
2153
2154 * emultempl/aix.em: Include ldgram.h.
2155 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
2156 AIX 4.1.
2157 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
2158
2159 Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
2160
2161 * configure.host (alpha-*-linux*): New host.
2162 * configure.tgt (alpha-*-linux*): New target.
2163
2164 Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
2165
2166 * emultempl/aix.em (export_files): Remove.
2167 (import_files): Make static.
2168 (struct export_symbol_list): Define.
2169 (export_symbols): New static variable.
2170 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
2171 correctly. Call read_file for an export file.
2172 (gld${EMULATION_NAME}_before_allocation): Call
2173 bfd_xcoff_export_symbol for each export symbol, rather than
2174 calling read_file for each export file.
2175 (gld${EMULATION_NAME}_read_file): For an export file, make the
2176 exported symbols undefined, and store them on the export_symbols
2177 list.
2178
2179 Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
2180
2181 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
2182 Don't hang if last option is unrecognised.
2183 (gld_${EMULATION_NAME}_set_symbols): Insert created
2184 symbols into ABS output section.
2185
2186 Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
2187
2188 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
2189 m68k4k arch.
2190 (em68k4knbsd.c): New rule.
2191
2192 * configure.tgt: Added support for the NetBSD m68k4k arch.
2193
2194 * genscripts.sh, ldint.texinfo,
2195 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
2196 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
2197 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
2198 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
2199 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
2200 pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
2201 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
2202 PAGE_SIZE to TARGET_PAGE_SIZE.
2203
2204 * emulparams/m68knbsd.h: Ditto.
2205 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
2206 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
2207 being.
2208
2209 * emulparams/m68k4knbsd.sh: New file.
2210
2211 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
2212
2213 Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
2214
2215 * emultempl/aix.em: Include ldctor.h.
2216 (gld${EMULATION_NAME}_after_open): New static function.
2217 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
2218 (gld${EMULATION_NAME}_find_relocs): New static function.
2219 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
2220 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
2221 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
2222 * ldctor.c (struct set_info): Move definition into ldctor.h.
2223 (struct set_element): Likewise.
2224 (sets): Make non-static.
2225 (ldctor_add_set_entry): Add name parameter. Save it in the new
2226 set element.
2227 (ldctor_build_sets): Avoid being called twice. Pass set element
2228 name to lang_add_reloc.
2229 * ldctor.h (struct set_info): Move definition here from ldctor.c.
2230 (struct set_element): Likewise. Add new field name.
2231 (sets): Declare.
2232 (ldctor_add_set_entry): Declare new name parameter.
2233 * ldwrite.c (build_link_order): Don't insist that either name or
2234 section be NULL in a lang_reloc_statement.
2235 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
2236 new name parameter.
2237 (constructor_callback): Pass name to ldctor_add_new_set_entry for
2238 new name parameter.
2239
2240 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
2241
2242 Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
2243
2244 * mpw-config.in: Add PowerMac target support, generate config.h.
2245 * mac-ld.r: New file, Mac resources.
2246 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
2247 * mpw-make.in: Remove.
2248 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
2249
2250 Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
2251
2252 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
2253 -static as a synonym for -bnso.
2254
2255 * scripttempl/aix.sc: Move special symbols inside sections.
2256 Always start .data at 0.
2257
2258 Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
2259
2260 * Makefile.in (diststuff): Also make info.
2261 (maintainer-clean realclean): Also delete *.info*.
2262
2263 Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
2264
2265 * emultempl/aix.em: Add support for various AIX linker options,
2266 for AIX import and export files, and for AIX shared objects.
2267 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
2268
2269 * ldmain.c (main): Initialize new field link_info.static_link.
2270
2271 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
2272 (constructor_callback): Likewise.
2273 * ldmisc.c (vfinfo): Likewise.
2274 * ldwrite.c (build_link_order): Likewise.
2275
2276 * ld.texinfo: The MRI ALIGN directive is supported.
2277
2278 Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
2279
2280 * emulparams/elf32vr4300.sh: Deleted.
2281 * emulparams/elf32vr4300el.sh: Deleted.
2282 * emulparams/elf32b4300.sh: Added.
2283 * emulparams/elf32l4300.sh: Added.
2284 * configure.tgt, Makefile.in: Updated the build to use the
2285 new 8.3 unique names.
2286
2287 Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
2288
2289 * ldlang.c (entry_symbol): Make non-static.
2290 * ldlang.h (entry_symbol): Declare.
2291
2292 * ldlex.l: Treat PROVIDE as a keyword in expression state.
2293
2294 Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
2295
2296 * scripttempl/pe.sc (.bss): Move to be after .text
2297
2298 Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
2299
2300 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
2301 Search trinary.cond rather than searching trinary.lhs twice. From
2302 linli@ihp.PHys.ethz.CH.
2303
2304 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
2305 directory searching code into gld${EMULATION_NAME}_search_dir.
2306 (gld${EMULATION_NAME}_search_dir): New static function, extracted
2307 from gld${EMULATION_NAME}_find_so.
2308 (global_needed, global_found): New static variables.
2309 (gld${EMULATION_NAME}_after_open): New static function.
2310 (gld${EMULATION_NAME}_search_needed): New static function.
2311 (gld${EMULATION_NAME}_try_needed): New static function.
2312 (gld${EMULATION_NAME}_check_needed): New static function.
2313 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
2314 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
2315
2316 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
2317 (eelf32lppc.c): Likewise.
2318 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
2319 (GENERATE_SHLIB_SCRIPT): Define as yes.
2320
2321 Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
2322
2323 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
2324 bfd_link_needed-list; make appropriate changes.
2325
2326 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
2327 (rs6000-*-aix*): New target; use aixrs6.
2328 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
2329 * emultempl/aix.em: New file.
2330 * scripttempl/aix.sc: New file.
2331 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
2332 (eaixppc.c, eaixrs6.c): New targets.
2333
2334 Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
2335
2336 * scripttemp/pe.sc (.reloc): Move to the end.
2337
2338 Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
2339
2340 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
2341 section which was not linked into the final output.
2342
2343 Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
2344
2345 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
2346 fatal typos.
2347
2348 Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
2349
2350 * ld.h (args_type): Add rpath_link field.
2351 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
2352 required dependencies in rpath_link path. Only search
2353 LD_LIBRARY_PATH when configured native.
2354 * lexsup.c (parse_args): Recognize -rpath-link.
2355 * ld.1, ld.texinfo: Document -rpath-link.
2356
2357 Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
2358
2359 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2360 bother searching for needed libraries unless doing a final link.
2361
2362 Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
2363
2364 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2365
2366 * ld/ld.1: Fix formatting bugs.
2367
2368 Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
2369
2370 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
2371 * ldexp.h (exp_get_abs_int): Update declaration.
2372 * ldlang.c (print_output_section_statement): Use fprintf_vma to
2373 print return value of exp_get_abs_int.
2374
2375 Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
2376
2377 * emultempl/elf32.em (global_stat): New file static variable.
2378 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
2379 that the file has not already been included under another name.
2380 (gld${EMULATION_NAME}_stat_needed): New static function.
2381
2382 Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
2383
2384 * scripttempl/armcoff.sc: Start .text at 0x8000.
2385 Start .data at 0x40000.
2386
2387 Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
2388
2389 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
2390 command_line.rpath is set, use it, rather than the -L options, to
2391 build the rules section.
2392 * ld.texinfo: Document this use of -rpath.
2393
2394 * lexsup.c (parse_args): Don't set link_info.shared for -assert
2395 pure-text. Pass true, not 1, to lang_add_entry.
2396 * emultempl/sunos.em (find_assign): New static variable.
2397 (found_assign): New static variable.
2398 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
2399 If not a relocateable link, and no start symbol was specified on
2400 the command line, and there are any undefined symbols, set
2401 link_info.shared. If link_info.shared is set, set the address of
2402 the .text section to 0x20.
2403 (gld${EMULATION_NAME}_find_assignment): Rename from
2404 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
2405 set, then just set found_assign based on whether an assignment is
2406 found to find_assign.
2407 (gld${EMULATION_NAME}_get_script): Don't use a special script when
2408 producing a shared library.
2409 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
2410 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
2411 * ldlang.c (entry_from_cmdline): New global variable.
2412 (lang_add_entry): Change cmdline parameter from int to boolean.
2413 Use global entry_from_cmdline rather than function static
2414 from_cmdline.
2415 * ldlang.h (entry_from_cmdline): Declare.
2416 (lang_add_entry): Change declaration of second parameter from int
2417 to boolean.
2418 * ldgram.y: Pass false, not 0, to lang_add_entry.
2419
2420 Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
2421
2422 * ld.h (parsing_defsym): Declare.
2423 * ldlex.h (lex_string): Declare.
2424 * ldlex.l (lex_string): Define.
2425 * lexsup.c (parsing_defsym): Define.
2426 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
2427 lex_redirect, and clear it after calling yyparse. Set
2428 parsing_defsym around call to yyparse.
2429 * ldmain.c (main): Set lex_string before calling lex_redirect, and
2430 clear it after calling yyparse.
2431 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
2432 in linker scripts correctly.
2433
2434 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
2435 COFF targets, allowing for the leading underscore used on SPARC
2436 COFF.
2437
2438 * lexsup.c (parse_args): Handle -assert.
2439 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
2440 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
2441 shared library script when appropriate.
2442 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
2443 section at SIZEOF_HEADERS.
2444
2445 Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
2446
2447 * Makefile.in (earmcoff.c): Build.
2448 * configure.tgt (arm-*-coff): New target
2449 * emulparms/armcoff.sh: New file.
2450 * scripttempl/armcoff.sc: New file.
2451
2452 Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
2453
2454 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
2455
2456 Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
2457
2458 * ldfile.c (ldfile_set_output_arch): Make arch const.
2459
2460 Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2461
2462 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
2463 beginning of the .bss area, not at the end of data. Add
2464 __sbss_{start,end} symbols.
2465
2466 Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
2467
2468 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
2469 (CXX_FOR_TARGET, install): Likewise.
2470
2471 Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
2472
2473 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
2474 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
2475 (CXX_FOR_TARGET): Likewise.
2476 (install): Likewise.
2477 (GENERATED_HFILES): Remove config.h.
2478 (.dep): Depend upon config.h.
2479
2480 Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
2481
2482 * configure.tgt (mips*-dec-netbsd*): New target.
2483
2484 Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
2485
2486 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
2487
2488 Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
2489
2490 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
2491
2492 Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
2493
2494 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
2495 Start .text section on the right boundary. Always align
2496 stabs.
2497
2498 Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
2499
2500 * Makefile.in (maintainer-clean): New target.
2501
2502 * ldmain.c (struct warning_callback_info): Define.
2503 (warning_callback): Add new parameter symbol. Call
2504 warning_find_reloc to try to find the section and VMA.
2505 (warning_find_reloc): New static function.
2506 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2507 Pass NULL as symbol parameter to warning callback.
2508
2509 * ld.texinfo: Clarify -L option.
2510
2511 * ldlang.c (lang_one_common): Add cast to avoid warning.
2512 (topower): Likewise. Also, reindent.
2513 * ldwrite.c (clone_section): Change i to unsigned int.
2514 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
2515 cast to avoid warning.
2516
2517 Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
2518
2519 * Makefile.in (config.status): Depend upon configure.tgt.
2520
2521 * ldemul.h (ldemul_set_symbols): Declare.
2522 (ldemul_parse_args): Declare.
2523 * ldemul.c (ldemul_parse_args): Fix indentation.
2524
2525 * configure.in: Call AC_HEADER_DIRENT.
2526 * configure, config.in: Rebuild.
2527 * emultempl/sunos.em: Use autoconf recommend mechanism to define
2528 DIR and struct dirent.
2529
2530 * configure.tgt (mips*-*-bsd*): New case.
2531
2532 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
2533 New case.
2534 * configure.tgt (i[345]86-*-ptx*): New case.
2535
2536 Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
2537
2538 * config.in: Rename from config.h.in.
2539 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2540 Check for config.h:config.in when creating stamp-h.
2541 * configure: Rebuild.
2542 * Makefile.in (stamp-h): Depend upon config.in rather than
2543 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
2544 calling config.status.
2545
2546 * Makefile.in (distclean): Remove config.h and stamp-h.
2547
2548 * configure.host (sparc-*-sunos64*): Remove.
2549 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
2550
2551 * ldexp.c (exp_fold_tree): Don't warn about moving the location
2552 counter backward in the absolute section.
2553
2554 Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
2555
2556 * configure.in: Rewrite to use autoconf.
2557 * configure.host: New file.
2558 * configure.tgt: New file.
2559 * aclocal.m4: New file.
2560 * configure: New file, built by autoconf.
2561 * acconfig.h: New file.
2562 * config.h.in: New file, built by autoheader.
2563 * sysdep.h: New file.
2564 * ld.h: Incorporate old contents of config.h.
2565 * config.h: Remove.
2566 * Makefile.in: Various changes for new configure script. Also:
2567 (CC_FOR_BUILD): Remove.
2568 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
2569 (dep.sed): Use @SRCDIR@, not @srcdir@.
2570 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
2571 * genscripts.sh: Create ldscripts if it does not exist.
2572 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
2573 * mpw-esh.c, emultemp/*.em: Likewise.
2574 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
2575 HAVE_SBRK here.
2576 * config/*.mt, config/*.mh: Remove.
2577
2578 Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
2579
2580 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
2581 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
2582
2583 Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
2584
2585 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
2586
2587 Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
2588
2589 * ldmain.c (warning_callback): Add abfd, section, and address
2590 parameters.
2591 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2592 Change call to warning accordingly.
2593
2594 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
2595 relocateable and not shared, put .gnu.warning.SYMBOL sections into
2596 the .text section.
2597
2598 Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
2599
2600 * configure.in: Added mips*vr4300-idt-elf* and
2601 mips*vr4300el-idt-elf* targets.
2602 * Makefile.in: Added eelf32vr4300* targets.
2603 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
2604 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
2605
2606 Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
2607
2608 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
2609 <brendan@cygnus.com>.
2610
2611 Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
2612
2613 * ldemul.c (ldemul_parse_args): New.
2614 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
2615 * lexsup.c (all pe stuff): Moved into pe.em
2616 (parse_args): Call emulation arg parser.
2617 * emultempl/pe.em (parse_args): handle PE specfic args.
2618
2619 Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
2620
2621 * ldlang.c (lang_memory_region_lookup): Don't use the first region
2622 as the default region. Create a new region instead.
2623
2624 Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
2625
2626 * ldemul.c (ldemul_set_symbols): New function.
2627 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
2628 * ldmain.c (main): Add call to ldemul_set_symbols.
2629 * lexsup.c (set_pe_value): New args.
2630 (set_pe_name): New.
2631 (parse_args): Cope with new set_pe_value args.
2632 * emultempl/pe.em (set_symbols): New function.
2633 (ld_emulation_xfer_struct): Add set_symbols.
2634 * scripttempl/pe.sc: Use new symbols.
2635
2636 Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
2637
2638 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
2639 For -Y, ignore a leading `P,', and only call set_default_dirlist
2640 after processing all the other arguments.
2641
2642 Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
2643
2644 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
2645 * emulparams/armpe.sh: Run PE script.
2646
2647 Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
2648
2649 * ldmain.c (main): Remove PE stuff.
2650 * lexsup.c (options): Load more PE options.
2651 (set_pe_value): New function.
2652
2653 Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
2654
2655
2656 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
2657 * emultempl/pe.sc: New file performs generic PE support and sorts
2658 archive members.
2659 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
2660 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
2661 * scripttempl/pe.sc: New.
2662 * Makefile.in: Use new files.
2663
2664 Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
2665
2666 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
2667 (.strings,.ctors,.dtors): Likewise.
2668
2669 Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
2670
2671 * scripttempl/armpe.sc: Always start code at 0x401000, even
2672 if -r.
2673 * ldwrite.c (strdup): New extern declaration.
2674 * ldgram.y (atype): New rule to clarify type parsing.
2675 * ldlang.c (init_os): Remove commented out code.
2676 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
2677 unless told not to by the link script.
2678
2679 Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
2680
2681 * ldlang.c (lang_set_startof): New static function.
2682 (lang_process): Call it.
2683
2684 * ldgram.y: Tweak casesymlist to avoid bison errors.
2685
2686 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
2687 Solaris compatibility.
2688
2689 Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
2690
2691 * ldgram.y (YYDEBUG): If not defined, define as 1.
2692 (CASE, EXTERN, START): New tokens.
2693 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
2694 (casesymlist): New nonterminal.
2695 (extern_name_list): New nonterminal.
2696 * ldlex.l: Accept lower case trailing base specifiers. Don't
2697 ignore the first digit when the base is a suffix. Accept many
2698 EXPRESSION state tokens in MRI state. Support MRI continuation
2699 lines and MRI semicolon comments. Accept all MRI keywords in
2700 lower case. Add CASE, EXTERN, and START MRI keywords.
2701
2702 Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
2703
2704 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
2705 instead of alloca.
2706
2707 Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2708
2709 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
2710 $r/../gcc/xgcc unless it is present.
2711
2712 Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
2713
2714 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
2715 when CONSTRUCTING.
2716 * scripttempl/m68klynx.sc: Likewise.
2717 * scripttempl/nw.sc: Likewise.
2718 * scripttempl/sa29200.sc: Likewise.
2719 * scripttempl/sparclynx.sc: Likewise.
2720
2721 Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
2722
2723 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
2724
2725 Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
2726
2727 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
2728
2729 Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
2730
2731 * scripttempl/i386pe.sc: Cope with constructors.
2732 * scripttempl/z8ksim.sc: Deleted.
2733 * scripttempl/z8000.sc: Resurrected as this, but
2734 can handle z8001 and z8002 formats.
2735 * emulparams/z8ksim.sh: Deleted.
2736 * emulparams/{z8001.sh, z8002.sh}: New files.
2737 * config/z8ksim.mt: Deleted
2738 * config/z8k-coff.mt: New, generates both emulations.
2739
2740 Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
2741
2742 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
2743 %B, in case it is in an archive.
2744
2745 Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
2746
2747 * ldlang.c (lang_process): Call reset_memory_regions for each
2748 relaxation pass.
2749
2750 Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
2751
2752 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
2753 _SDA_BASE.
2754
2755 Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
2756
2757 * ldmain.c (constructor_callback): Allocate set_name in stack
2758 frame, rather than always calling alloca with a fixed size.
2759
2760 Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
2761
2762 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
2763 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
2764
2765 Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
2766
2767 * ldwrite.c (clone_section): Set the alignment of the clone
2768 section to that of the section being cloned.
2769
2770 * ldwrite.c (split_sections): Don't split the first input section
2771 into a new output section.
2772
2773 Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
2774
2775 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
2776 (GENERATE_SHLIB_SCRIPT): Define as yes.
2777
2778 Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
2779
2780 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
2781
2782 * ldver.c (help): Update list of options to match currently
2783 supported list.
2784
2785 Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
2786
2787 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
2788 after_open field.
2789
2790 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
2791 it takes a size_t anyhow.
2792 (exp_binop): Likewise.
2793 (exp_trinop): Likewise.
2794 (exp_unop): Likewise.
2795 (exp_nameop): Likewise.
2796 (exp_assop): Likewise.
2797 * ldlang.c (lang_memory_region_lookup): Likewise.
2798 (init_os): Likewise.
2799 (ldlang_add_undef): Likewise.
2800 (insert_pad): Likewise.
2801 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
2802 bfd_size_type.
2803
2804 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
2805
2806 Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
2807
2808 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
2809 declaration.
2810 (ld_emulation_xfer_type): Add search parameter to
2811 open_dynamic_archive entry point.
2812 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
2813 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
2814 make non-static. Change all callers to use new name.
2815 (ldfile_open_file_search): Make static. If entry is dynamic, call
2816 ldemul_open_dynamic_archive.
2817 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
2818 * ldfile.h (ldfile_open_file_search): Don't declare.
2819 (ldfile_try_open_bfd): Declare.
2820 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
2821 Accept search parameter. Don't search for a library, just look in
2822 a single place.
2823 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
2824 Likewise.
2825
2826 Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
2827
2828 * ldmain.c (set_scripts_dir): Don't base script directory on
2829 current directory.
2830
2831 Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
2832
2833 * ldmisc.c (vfinfo): Don't print the line number if it isn't
2834 meaningful.
2835
2836 Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
2837
2838 * ld.h (ld_config_type): Add field warn_constructors.
2839 * ldmain.c (add_to_set): Warn if config.warn_constructors.
2840 (constructor_callback): Likewise.
2841 * lexsup.c (parse_args): Handle -warn-constructors.
2842 * ld.texinfo, ld.1: Document -warn-constructors.
2843
2844 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
2845 get confused by directory names if we searched for the file.
2846
2847 Based on patches from H.J. Lu <hjl@nynexst.com>:
2848 * ldlang.h (lang_input_statement_type): Add new field dynamic.
2849 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
2850 * ldfile.c: Include bfdlink.h.
2851 (ldfile_open_file): Check dynamic field of entry, not global
2852 dynamic_link field. Don't do a dynamic search when doing a
2853 relocateable link.
2854 * ldmain.c (main): Don't warn about dynamic_link for a
2855 relocateable link.
2856 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
2857 dynamic is false.
2858 (gld${EMULATION_NAME}_create_output_section_statements): Always
2859 loop over input files.
2860 * Makefile.in: Rebuild dependencies.
2861
2862 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
2863 -shared.
2864
2865 Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
2866
2867 * ldmain.c (main): Set link_info.symbolic to false.
2868 * lexsup.c (parse_args): Handle -Bsymbolic.
2869
2870 Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
2871
2872 * ldmain.c (HAVE_SBRK): Define for everything except
2873 specific systems that are known to not support sbrk.
2874 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
2875
2876 Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
2877
2878 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
2879 Handle etree_provide.
2880
2881 * emultempl/elf32.em (global_needed): New static variable.
2882 (global_found): Likewise.
2883 (gld${EMULATION_NAME}_after_open): New static function.
2884 (gld${EMULATION_NAME}_search_needed): Likewise.
2885 (gld${EMULATION_NAME}_try_needed): Likewise.
2886 (gld${EMULATION_NAME}_check_needed): Likewise.
2887 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
2888 gld${EMULATION_NAME}_after_open.
2889
2890 Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
2891
2892 * configure.in (i386-*-win32): New target.
2893
2894 Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
2895
2896 * lexsup.c (parse_args): Let -G either set the small data size or
2897 be equivalent to --shared, depending on the next argument. Accept
2898 and ignore -z for Solaris compatibility.
2899
2900 Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
2901
2902 * lexsup.c (parse_args): Cast fopen result to PTR before storing
2903 it in link_info.base_file. Fix indentation.
2904
2905 Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
2906
2907 * ldmain.c (main): Always initialize PE info in link_info.
2908 * lexsup.c (OPTION_BASE_FILE): New option.
2909 (parse_args): Handle new option.
2910 * emulparams/armpe.sh: Output pei.
2911 * emultempl/i386pe.em: Add newline to end.
2912 * scripttempl/armpe.sc: Change output and quote the $s.
2913 * scripttempl/i386pe.sc: Change output and quote the $s.
2914
2915 Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2916
2917 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
2918
2919 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
2920 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
2921 (i386msdos.o): New target.
2922 * config/i386-msdos.mt: Created.
2923 * emulparams/i386msdos.sh: Created.
2924 * scripttempl/i386msdos.sc: Created.
2925
2926 Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2927
2928 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
2929 that contains pointers to be relocated.
2930
2931 Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
2932
2933 * mpw-esh.c: New file, modified for MPW from esh.c.
2934 * scripttempl/sh.sc: Reformatted to simplify MPWification,
2935 use *() to concat stab sections instead of [].
2936
2937 Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
2938
2939 * scripttempl/armpe.sc: Add constructor support.
2940
2941 Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
2942
2943 * ldlang.c (lang_size_sections): Any section with a DATA
2944 statement has contents.
2945
2946 Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2947
2948 * emulparams/m68kelf.sh (NOP): Define.
2949 (DYNAMIC_LINK): Don't define.
2950 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
2951 will come from the linker script.
2952
2953 Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
2954
2955 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
2956
2957 Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
2958
2959 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
2960
2961 Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2962
2963 From Andrew Cagney <cagney@highland.com.au>
2964 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
2965 elf32lppc.
2966
2967 Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
2968
2969 Add support for ARM-PE.
2970 * Makefile.in (ALL_EMULATIONS): Add armpe.o
2971 * configure.in: Recognize armpe.
2972 * config/arm-pe.mt: New file.
2973 * emulparams/armpe.sh: New file.
2974 * scripttempl/armpe.sc: New file.
2975
2976
2977 Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
2978
2979 * configure.in (h8300h-*-hms): Deleted
2980 * config/cf-h8300h.mt: Deleted.
2981
2982 Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
2983
2984 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
2985
2986 From David Taylor (dtaylor@armltd.co.uk)
2987 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
2988 * configure.in: Recognize arm{,e[lb]-*-aout.
2989 * config/arm[lb]-aout.mt: New files.
2990 * emulparams/armaout[lb].sh: New files.
2991 * scripttempl/armaout.sc: New file.
2992
2993 Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2994
2995 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
2996 be unique in 8 characters for DOS.
2997
2998 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
2999 * emulparams/elf32ppcle.sh: Deleted.
3000
3001 Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
3002 Tom Griest <griest@cs.yale.edu>
3003
3004 Initial support for PE executables (eg NT, win32)
3005
3006 * Makefile.in (configure.in, ei386pe): Add support.
3007 * ldmain.c (main): Initialize PE argument info.
3008 * ldwrite.c (print_file_stuff): Don't print out .drectve
3009 and .debug section info.
3010 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
3011 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
3012 Handle new arguments.
3013 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
3014 New files
3015
3016 Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
3017
3018 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
3019 segment. This allows ld -r to preserve unwind sections.
3020
3021 Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3022
3023 * configure.in: Add little endian PowerPC support.
3024
3025 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
3026 (eelf32ppcle.c): Support for little endian PowerPC.
3027
3028 * config/ppcle-elf32.mt: New file for little endian PowerPC.
3029 * emulparams/elf32ppcle.sh: Ditto.
3030
3031 Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
3032
3033 * ldlang.c (print_output_section_statement): Check
3034 subsection_alignment, instead of checking section_alignment twice.
3035 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
3036
3037 Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
3038
3039 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
3040
3041 Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
3042
3043 * ldwrite.c (ldwrite): Before doing anything, reset the error
3044 code. If bfd_final_link returns an error, but the error code is
3045 unset, don't issue an extra message. Assume a correct error
3046 message was already set.
3047
3048 Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
3049
3050 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
3051 (em68kelf.o): New target.
3052 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
3053 * configure.in: Use them for m68*-*-elf.
3054
3055 Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
3056
3057 Merge in support for Mac MPW as a host.
3058 (Old change descriptions retained for informational value.)
3059
3060 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
3061 (i386-unknown-coff): Remove.
3062 (sh-hitachi-hms): New target.
3063 (emulation_ofiles): Set correctly for each target.
3064 (version, TDEFINES): Add to makefile fragment.
3065 * mpw-make.in (BISON): Use byacc instead of bison.
3066 (em_*.c): Replace with e*.c everywhere.
3067 (ldgram.h): Separate action from ldgram.c generation.
3068 (LD_PROG): Depend on Version.r.
3069 (Version.r): generate from version info.
3070 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
3071
3072 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
3073 i386-unknown-aout, i386-unknown-coff): New targets.
3074 (m68k-aout, m68k-coff): Remove targets.
3075 (mk.tmp): Add definition of EMUL.
3076
3077 * mpw-config.in (emulname): Set based on target.
3078 (ldemul-list.h): Construct.
3079 * mpw-make.in (install-only): New target.
3080 (install): Depend on install-only.
3081
3082 * mpw-make.in (bindir): Fix pathname.
3083 (install): Move here from mpw-build.in.
3084
3085 * mpw-config.in: New file, MPW configuration fragment.
3086 * mpw-make.in: New file, MPW makefile fragment.
3087 (This file is semi-automatically generated from Makefile.in.)
3088 * ldfile.c (slash): If MPW, set to `:'.
3089 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
3090 prevent redefinition errors.
3091
3092 start-sanitize-arc
3093 Thu Apr 6 20:38:36 1995 Doug Evans <dje@chestnut.cygnus.com>
3094
3095 * emulparams/arcelf.sh (ENTRY): Define.
3096 end-sanitize-arc
3097
3098 Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
3099
3100 * ldwrite.c (clone_section): Align clone sections on even
3101 boundaries.
3102
3103 Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
3104
3105 * configure.in: Change linux to default to elf. Using
3106 i[345]86-*-linuxaout will build a linker which defaults to a.out.
3107 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
3108 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
3109 * config/i386-lelf.mt: Remove.
3110
3111 Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
3112
3113 * ldmain.c (main): If opening the map file fails, call
3114 bfd_set_error before calling einfo.
3115
3116 * ld.texinfo, ld.1: Document the -no-keep-memory option.
3117
3118 Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
3119
3120 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
3121 does mark shared libraries as executable.
3122
3123 Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
3124
3125 * ldlang.c (lang_common): Change power to int. Pass larger values
3126 before smaller values.
3127 (lang_one_common): Treat info as int *. Don't bother to check for
3128 last value, since it is now zero.
3129
3130 Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
3131
3132 * ldlang.c (load_symbols): An empty archive is OK.
3133
3134 Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
3135
3136 * ldmain.c (progress.h): Include.
3137 (main): Call START_PROGRESS and END_PROGRESS.
3138
3139 Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
3140
3141 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
3142 .dtors sections, so that these pointers get relocated also.
3143 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
3144 and end of the constructors/destructors.
3145
3146 Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3147
3148 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
3149 describes an archive, call bfd_link_add_symbols on each member.
3150 * ldmain.c (whole_archive): New variable.
3151 (main): Initialize it to false.
3152 * ldmain.h: Declare whole_archive.
3153 * lexsup.c (parse_args): Grok --whole-archive switch.
3154 * ld.texinfo, ld.1: Document --whole-archive.
3155
3156 Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
3157
3158 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
3159 using the default emulation.
3160
3161 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
3162 LDEMULATION.
3163 * config/hppaelf.mh (HOSTING_EMU): Likewise.
3164
3165 Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
3166
3167 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
3168 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
3169
3170 Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
3171
3172 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
3173
3174 * ldlex.l: Return -lFILENAME as the token LNAME.
3175 * ldgram.y: Add token LNAME.
3176 (input_list): Treat LNAME like NAME, but pass it to
3177 lang_add_input_file as lang_input_file_is_l_enum.
3178 * ld.texinfo: Document using -lFILENAME in INPUT.
3179
3180 Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3181
3182 * ldlang.c (lang_check): If the architectures are compatible call
3183 bfd_merge_private_bfd_data to let the backend do additional
3184 checks.
3185
3186 start-sanitize-arc
3187 Tue Mar 7 21:10:28 1995 Doug Evans <dje@chestnut.cygnus.com>
3188
3189 * emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
3190 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
3191 end-sanitize-arc
3192
3193 Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
3194
3195 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
3196 all supported emulations.
3197
3198 Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
3199
3200 * ldemul.c (ldemul_list_emulations): New function.
3201 * ldemul.h (ldemul_list_emulations): Declare.
3202 * ldver.c (help): List supported targets and emulations.
3203
3204 Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
3205
3206 * scripttempl/elf.sc (.debug): Relocate to address 0.
3207 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
3208 .debug_sfnames, .line): Likewise.
3209
3210 Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
3211
3212 * emultempl/elf32.em (hold_rel): New static variable.
3213 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
3214 contents whose names begin with ".rel" after hold_rel. Remove the
3215 assertion which checked for unplaced .rel sections. Don't try to
3216 sort the section into place if place->bfd_section is NULL.
3217 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
3218 section beginning with ".rel".
3219
3220 Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
3221
3222 Doc note from pierre@phi.la.tce.com (Pierre Willard):
3223 * ld.texinfo: -X and -x work even if -s or -S are not specified.
3224 * ld.1: Similar change.
3225
3226 Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
3227
3228 * emulparams/gld960coff.sh (COFF_CTORS): Define.
3229 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
3230
3231 Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
3232
3233 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
3234 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
3235 * config/i386-lelf.mt: New file.
3236 * config/i386-gelf.mt: New file.
3237
3238 Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
3239
3240 * configure.in: Match on mips-ecoff, and default to the IDT
3241 configuration.
3242
3243 Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
3244
3245 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
3246 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
3247 to double the size of the table.
3248
3249 start-sanitize-arc
3250 Thu Feb 9 19:03:25 1995 Doug Evans <dje@canuck.cygnus.com>
3251
3252 * emulparms/arcelf.sh (TEMPLATE_NAME): Comment out.
3253 end-sanitize-arc
3254
3255 Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
3256
3257 * Makefile.in (distclean): Do recursive deletion, since ldscripts
3258 is a directory.
3259
3260 Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
3261
3262 * ldmain.c (main): If trace_file_tries is true, and we are using
3263 an internal linker script, print out the script.
3264 * ldfile.c (try_open): Reindent function. Make the messages about
3265 opening script files more informative.
3266
3267 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
3268 * ld.texinfo, ld.1: Update accordingly.
3269
3270 Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
3271
3272 * ldlang.c (lang_one_common): Adjust references to common symbol
3273 information for new structure.
3274
3275 Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
3276
3277 * ldmain.c (undefined_symbol): Handle section being NULL.
3278
3279 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
3280 * ldexp.c (fold_name): Likewise.
3281 * ldlang.c (print_one_symbol): Likewise.
3282 (lang_finish): Likewise.
3283 * ldmain.c (multiple_common): Likewise.
3284 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
3285 renamed to bfd_link_hash_undefweak.
3286
3287 * scripttempl/alpha.sc: Set address of .data section correctly
3288 when -n or -N is used. Patch from Chris G Demetriou
3289 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
3290 * scripttempl/mips.sc: Similar change.
3291
3292 Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
3293
3294 * ldlang.c (lang_size_sections): Clarify error message when user
3295 specified start addr conflicts with region. Fix resetting of
3296 region pointer.
3297
3298 Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
3299
3300 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
3301 in lang_allocating_phase_enum.
3302
3303 Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
3304
3305 * Makefile.in (distclean): Depend upon clean. Don't bother to
3306 remove files which will be removed by clean. From patch by
3307 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
3308
3309 Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
3310
3311 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
3312 a MIPS target, clobber the size of all but the first input
3313 .reginfo section to be 0, so that lang_size_sections sets the
3314 correct size for the output .reginfo section.
3315
3316 Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
3317
3318 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3319 Remove unused variable is.
3320
3321 Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3322
3323 * configure.in: Add support for powerpc-*-eabi.
3324
3325 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
3326 support.
3327
3328 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
3329 elf.sc, which defines some new symbols PowerPC elf needs.
3330
3331 Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
3332
3333 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
3334 constructor entry is in the absolute section.
3335
3336 Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
3337
3338 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
3339 * config/i386-gnu.mt: New file. Include ELF support.
3340
3341 Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
3342
3343 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
3344 there are any input sections named .gnu.warning, treat them as
3345 containing a warning message to be printed by the linker, and
3346 clobber the size so that the message is not copied into the output
3347 file.
3348 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
3349 section.
3350
3351 Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
3352
3353 * configure.in (w65-*-*): New target.
3354 * Makefile.in: Update.
3355 * scripttempl/w65.sc: New.
3356 * config/coff-w65.mt: New.
3357
3358 Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
3359
3360 * ldlang.c (lang_place_orphans): Don't ignore files with
3361 just_syms_flag set. Instead, put all their sections in
3362 bfd_abs_section_ptr, using the section VMA as the output_offset.
3363
3364 Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
3365
3366 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
3367 name `reloc_howto_type', since it's now defined to be const.
3368 * ldlang.c (lang_add_reloc): Ditto.
3369 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
3370
3371 Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
3372
3373 * ldexp.c (fold_binary): Adding or subtracting an absolute value
3374 to a relative value does not require forcing the relative value to
3375 be absolute. Also, reindent function.
3376
3377 Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3378
3379 * ldwrite.c (clone_section): Create a symbol with the
3380 same name as the section.
3381
3382 Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3383
3384 * ld.h (split_by_reloc, split_by_file): New flags.
3385 * ldwrite.c (clone_section, split_sections): New functions.
3386 * lexsup.c (parse_args): Understand new split options.
3387
3388 start-sanitize-arc
3389 Tue Dec 13 16:45:18 1994 Doug Evans <dje@canuck.cygnus.com>
3390
3391 * configure.in (arc-elf): New target.
3392 * Makefile.in (earcelf.c): New target.
3393 * config/arc-elf.mt: New file.
3394 * emulparms/arcelf.sh: New file.
3395 end-sanitize-arc
3396
3397 Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3398
3399 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
3400 .data segment. They must be writable when creating a shared
3401 library. From H.J. Lu <hjl@nynexst.com>.
3402
3403 Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
3404
3405 * emultempl/miposecoff.em: New file.
3406 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
3407 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
3408 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
3409 provide __runtime_reloc_start and __runtime_reloc_stop if they are
3410 used. Align _fdata to a 16 byte boundary.
3411 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
3412 generic.em.
3413 (emipsidtl.c): Likewise.
3414 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
3415
3416 * ld.h (args_type): Add new field embedded_relocs.
3417 * ldemul.h (ldemul_after_open, after_open_default): Declare.
3418 (ld_emulation_xfer_struct): Add new field after_open.
3419 * ldemul.c (ldemul_after_open): New function.
3420 (after_open_default): New function.
3421 * ldlang.c (lang_process): Call ldemul_after_open.
3422 * lexsup.c (parse_args): Handle --embedded-relocs.
3423 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
3424 new after_open field to after_open_default.
3425 * emultempl/generic.em, emultempl/gld960.em: Likewise.
3426 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
3427 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
3428 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
3429 * ld.texinfo, ld.1: Mention -embedded-relocs.
3430
3431 Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3432
3433 * Makefile.in: Add eshl.o.
3434 * config/coff-sh.mt: Add shl emulation.
3435
3436 Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3437
3438 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
3439 Youngdale <eric@aib.com>.
3440
3441 Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3442
3443 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
3444 * config/i386linux.mh: New file; set HOSTING_CRT0.
3445 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
3446 /usr/lib, since that is already in LIB_PATH.
3447
3448 Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
3449
3450 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
3451 address.
3452 (.data, .bss): If "-N", then place the data/bss just after the end
3453 of the .text section rather than at the default 0x40000000.
3454
3455 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
3456 text segment.
3457
3458 Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3459
3460 Patches from Eric Youngdale <eric@aib.com>:
3461 * ldlang.c (lang_finish): Don't warn if entry symbol not found
3462 when generating a shared library.
3463 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
3464 attempting to place an orphaned relocation section when generating
3465 a dynamically linked object.
3466
3467 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
3468 _start.
3469
3470 Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3471
3472 * ld.h (args_type): Add field export_dynamic.
3473 * lexsup.c (parse_args): Recognize --export-dynamic.
3474 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3475 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
3476
3477 Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3478
3479 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
3480 we allocate common symbols.
3481
3482 Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
3483
3484 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
3485 .rela.fini to the list of .rel* sections.
3486
3487 Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3488
3489 * ldlang.c (load_symbols): Add new argument place. Only accept
3490 linker scripts if place is not NULL. Put commands found in an
3491 assumed linker script into place.
3492 (lookup_name): Pass NULL as place argument to load_symbols.
3493 (open_input_bfds): In lang_input_statement_enum case, pass a place
3494 argument to load_symbols, and store any new statements after the
3495 current one.
3496
3497 Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3498
3499 * ldver.c (ldversion): Bump to 2.5.3.
3500
3501 Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3502
3503 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
3504
3505 Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3506
3507 * Makefile.in (check): Add missing "else true" clause.
3508
3509 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
3510
3511 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
3512 entry point to "start". Align at end of each section to 0x200.
3513 Start .text section 0x1000 later. Add _etext, _edata, _end
3514 symbols.
3515
3516 Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3517
3518 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
3519 composed of different object file formats.
3520 (ldctor_build_sets): If the output format does not support the
3521 reloc, and we are not generating a relocateable link, try getting
3522 the reloc from the input format.
3523
3524 Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
3525
3526 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
3527 (em68knbsd.c): New target.
3528
3529 * config/m68k-nbsd.mt: New file.
3530 * emulparams/m68knbsd.sh: New file.
3531 * configure.in (m68*-*-netbsd*): Use above configs.
3532
3533 Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3534
3535 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
3536 appropriately named static library, stop the search at that
3537 directory.
3538
3539 Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
3540
3541 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
3542 and esparcnbsd.o; sorted entries.
3543 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
3544
3545 * config/netbsd532.mt: Removed.
3546 * emulparams/netbsd532.sh: Removed.
3547
3548 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
3549 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
3550 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
3551 sparc*-*-netbsd*): Use above configs.
3552
3553 Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3554
3555 * ldmain.c (multiple_common): One of the types may now be
3556 bfd_link_hash_indirect. The old BFD argument may be NULL.
3557
3558 Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3559
3560 * configure.in: Add * at the end of m68k-hp-hpux.
3561
3562 Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3563
3564 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
3565 YY_CHAR *.
3566
3567 Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
3568
3569 * scripttempl/nw.sc: Gather constructors and destructors and
3570 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
3571
3572 Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
3573
3574 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
3575 (ei386nw.c, eppcnw.c): New targets.
3576
3577 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
3578 scripttempl/nw.sc: New files, for i386 and powerpc netware.
3579
3580 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
3581 instead of {i386,ppc}-elf.
3582
3583 * configure.in (sparc*-*-netware): Removed. There is no such
3584 thing anymore.
3585
3586 * ldint.texinfo: Move misplaced `@end iftex'.
3587
3588 Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
3589
3590 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
3591 .rela.dtors to the list of .rel* sections.
3592
3593 Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3594
3595 * ldver.c (ldversion): Update to version 2.5.
3596 * Version 2.5 released.
3597
3598 * configure.in (all_targets): Handle i386-linux*.
3599
3600 Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3601
3602 * scripttempl/aout.sc: Set _etext and __etext to ., not
3603 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
3604 will not break any other system. From Eric Valette
3605 <ev@chorus.fr>.
3606
3607 Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3608
3609 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
3610 --verbose to get the old -V behaviour.
3611 * ld.1, ld.texinfo: Document this change.
3612
3613 Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3614
3615 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
3616 assertion, since it could fail with a user defined linker script.
3617
3618 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
3619 name in the hash table during the first phase--the hash table does
3620 not even exist at that point, much less have the right value.
3621
3622 * Makefile.in (CC): Define.
3623 (CXX): Move definition, change from g++ to gcc.
3624 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
3625 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
3626 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
3627 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
3628 (.cc.o): Comment out.
3629 (testdir): Remove.
3630 (site.exp): Don't create testdir or set tmpdir.
3631 (check): Run checks even if not running native. Use CC_FOR_TARGET
3632 instead of RUNTEST_CC, and likewise for CXX.
3633 (cdtest targets): Comment out.
3634 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
3635 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
3636 * cdtest-main.cc, cdtest.exp: Remove.
3637
3638 Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3639
3640 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
3641 file naming problems.
3642 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
3643 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
3644 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
3645 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
3646 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
3647 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
3648 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
3649
3650 * genscripts.sh: Always search /usr/local/TARGET/lib.
3651
3652 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
3653
3654 Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3655
3656 * configure.in: Handle i386-bsdi* targets like i386-bsd.
3657
3658 Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3659
3660 * lexsup.c (parse_args): Add support for -a for HP/UX
3661 compatibility.
3662
3663 * lexsup.c (parse_args): -c takes an argument.
3664
3665 Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3666
3667 * ld.h (args_type): Add new field endian.
3668 * lexsup.c (parse_args): Handle -EB and -EL by setting
3669 command_line.endian.
3670 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
3671 * ldlang.c (lang_add_output_format): Add arguments big and little.
3672 If command_line.endian is set, use it to select big or little
3673 rather than the default. Changed all callers.
3674 * ldlang.h (lang_add_output_format): Update declaration.
3675 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
3676 LITTLE_OUTPUT_FORMAT.
3677 * emulparams/elf32mipl.sh: Likewise.
3678 * emulparams/mipsbig.sh: Likewise.
3679 * emulparams/mipsbsd.sh: Likewise.
3680 * emulparams/mipsidt.sh: Likewise.
3681 * emulparams/mipsidtl.sh: Likewise.
3682 * emulparams/mipslit.sh: Likewise.
3683 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
3684 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
3685 OUTPUT_FORMAT.
3686 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
3687 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
3688 * scripttempl/mipsbsd.sc: Likewise.
3689
3690 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
3691 depending upon ldgram.c, so that a parallel make does not try to
3692 build both at once.
3693
3694 * configure.in (mips*el-elf*): New target.
3695 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
3696 (eelf32mipl.c): New target.
3697
3698 * config/mipsl-elf32.mt: New file.
3699 * emulparams/elf32mipl.sh: New file.
3700
3701 Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3702
3703 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
3704 ld -r -S -x.
3705
3706 Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3707
3708 * ldmisc.c (vfinfo): Print BFD file name as well as file name
3709 returned by find_nearest_line, in case the file name is something
3710 unhelpful such as a .h file. Handle %u.
3711
3712 Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3713
3714 * ldlang.c (lang_do_assignments): Make sure output statement
3715 has an attached bfd_section before trying to dereference it.
3716
3717 Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3718
3719 * ld.h (ld_config_type): Add new field warn_once.
3720 * ldmain.c (undefined_symbol): Handle -warn-once.
3721 * lexsup.c (parse_args): Recognize -warn-once.
3722 * ld.texinfo (Options): Document -warn-once.
3723 * ld.1: Likewise.
3724
3725 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
3726 name. For %C, print the function name on a separate line, to keep
3727 the length of error messages under control.
3728 * ldmain.c (multiple_definition): Use %D for ``first defined
3729 here.''
3730 (undefined_symbol): Use %D for ``more undefined references
3731 follow''.
3732
3733 * ldmisc.c (multiple_warn): Remove; no longer used.
3734 * ldmisc.h (multiple_warn): Don't declare.
3735
3736 Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3737
3738 * ldlang.c (print_output_section_statement): Print all lines
3739 to the map file.
3740
3741 Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3742
3743 * ldlang.c (load_symbols): Check for archive before object. Use
3744 bfd_check_format_matches, and, if ambiguous, print a list of
3745 matching formats. If file format is not recognized, treat file as
3746 a linker script.
3747 * ldgram.y (yyerror): If assuming an object file is a script,
3748 mention that. Tweak the format of the error messages.
3749 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
3750 guess that this is not actually a script, and just report that the
3751 file format was not recognized.
3752 * ld.texinfo (Options): Admit that -( may be used more than once.
3753 Add note that unrecognized object files are now treated as linker
3754 scripts.
3755
3756 * ldfile.c (ldfile_input_filename): Make const.
3757 (ldfile_assumed_script): New variable.
3758 (try_open): Change arguments types to const.
3759 (ldfile_find_command_file): Likewise.
3760 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
3761 * ldfile.h: Update declarations for ldfile.c changes.
3762 * ldlex.l: Include <ctype.h>.
3763 (file_name_stack): Change to be const char *.
3764 (lineno_stack): New static variable.
3765 (<<EOF>>): Set lineno as well as ldfile_input_filename.
3766 (lex_push_file): Make name argument const. Initialize
3767 lineno_stack entry.
3768 (lex_redirect): Initialize lineno_stack entry.
3769 (lex_warn_invalid): Handle non printable characters nicely.
3770 * ldlex.h (lex_push_file): Declare second argument as const.
3771
3772 * ldgram.y (ifile_p1): Recognize GROUP.
3773 * ldlex.l: Recognize GROUP.
3774 * ld.texinfo (Option Commands): Document GROUP.
3775
3776 Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3777
3778 * config/m68klynx.mh: New file.
3779
3780 Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
3781
3782 * emultempl/hppaelf.em: Add newlines to the error messages.
3783
3784 Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3785
3786 * config/i386lynx.mh: New file.
3787 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
3788 unless CONSTRUCTING.
3789
3790 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3791
3792 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
3793 (GENERATE_SHLIB_SCRIPT): Define as yes.
3794 (DYNAMIC_LINK): Define as false.
3795 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
3796 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
3797 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
3798 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
3799 generic.em.
3800
3801 Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3802
3803 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
3804
3805 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3806
3807 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
3808 .got section is now explicitly handled in elf.sc.
3809
3810 Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3811
3812 * scripttempl/alpha.sc: Redo script to set . outside of sections
3813 and not bother to explicitly specify section addresses.
3814 Explicitly place .sdata section.
3815
3816 Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3817
3818 * scripttempl/m68kcoff.sc: Put .bss in data segment.
3819
3820 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
3821 0, and to only be marked as NOLOAD if relocating.
3822 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
3823 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
3824 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
3825 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
3826 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
3827 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
3828 * scripttempl/sparclynx.sc: Likewise.
3829
3830 Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
3831
3832 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
3833 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
3834 New files.
3835
3836 Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
3837
3838 * ld.h (args_type): Add field soname.
3839 * lexsup.c (parse_args): Handle -soname argument.
3840 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
3841 pass soname.
3842 * ld.texinfo: Document -soname.
3843
3844 Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3845
3846 * ldlang.c (lang_check): Don't try to set the architecture if the
3847 input and output files are incompatible. Just warn.
3848
3849 Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3850
3851 * configure.in: Change i[34]86 to i[345]86.
3852
3853 Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3854
3855 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
3856
3857 Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3858
3859 Make the ELF linker handle orphaned sections reasonably. Also,
3860 define __start_SECNAME and __stop_SECNAME around sections whose
3861 names can be represented in C, for the benefit of symbol sets in
3862 glibc.
3863 * ldemul.h (ldemul_place_orphan): Declare.
3864 (ld_emulation_xfer_type): Add place_orphan field.
3865 * ldemul.c (ldemul_place_orphan): New function.
3866 * ldlang.h (wild_doit): Declare.
3867 * ldlang.c (wild_doit): Make nonstatic.
3868 (lang_place_orphans): Call ldemul_place_orphan.
3869 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
3870 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
3871 static variables.
3872 (gld${EMULATION_NAME}_place_orphan): New static function.
3873 (gld${EMULATION_NAME}_place_section): New static function.
3874 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
3875
3876 Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
3877
3878 * scripttempl/aout.sc: Add .linux-dynamic after .data.
3879
3880 Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3881
3882 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
3883 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
3884
3885 Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3886
3887 * ldexp.h (exp_get_abs_int): Declare.
3888
3889 Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3890
3891 * ldlang.c (lang_do_assignments): Handle complex AT's better.
3892 * ldexp.c (exp_get_abs_int): New function.
3893
3894 Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
3895
3896 * configure.in: add i960-nindy-coff support.
3897
3898 Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3899
3900 * ldlex.l (yy_create_string_buffer): Handle change to internal
3901 interface in flex 2.4.7.
3902
3903 Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
3904
3905 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
3906 New function; add 0x20 to any use of -Ttext.
3907 (gld${EMULATION_NAME}_create_output_section_statements): New
3908 function.
3909 (ld_${EMULATION_NAME}_emulation): Use the new function
3910 gld${EMULATION_NAME}_create_output_section_statements.
3911
3912 Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3913
3914 * scripttempl/mips.sc: Redo script to set . outside of sections
3915 and not bother to explicitly specify section addresses.
3916
3917 Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3918
3919 * scripttempl/elf.sc: Copy several more relocation sections into
3920 the output. Put .got.plt sections into .got.
3921
3922 Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3923
3924 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
3925
3926 Add a new script operator, PROVIDE, to define a symbol only if it
3927 is needed.
3928 * ldgram.y (PROVIDE): New token.
3929 (assignment): Accept PROVIDE.
3930 * ldlex.l (PROVIDE): New token.
3931 * ldexp.h (node_type): Add etree_provide to node_class enum.
3932 (exp_provide): Declare.
3933 * ldexp.c (exp_fold_tree): Handle etree_provide.
3934 (exp_provide): New function.
3935 (exp_print_tree): Handle etree_provide.
3936 * ld.texinfo: Document PROVIDE.
3937
3938 * ldlang.c (lang_common): Pass desired alignment to
3939 lang_one_common as power of two.
3940 (lang_one_common): Get common symbol alignment from linker hash
3941 table entry. Treat desired alignment as a power of two.
3942
3943 * ldlang.c (wild_section): Attach all section with the given name,
3944 not just the first one. If there is no name, attach all sections
3945 even if the SEC_IS_COMMON flag is set.
3946
3947 Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3948
3949 * ld.h (args_type): Add field rpath.
3950 * lexsup.c (S_ISDIR): Define if not already defined.
3951 (parse_args): Add support for -rpath. If -R is used to name a
3952 directory, treat it as -rpath for Solaris compatibility.
3953 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3954 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
3955 * ldmain.c (main): Initialize command_line.rpath to NULL.
3956 * ld.texinfo: Document -rpath option.
3957
3958 Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
3959
3960 * emulparams/pc532machaout.sh: New file. Pc532 mach script
3961 parameters.
3962
3963 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
3964
3965 * config/pc532mach.mt: New file. Pc532 mach target support.
3966
3967 * config/pc532mach.mh: New file. Pc532 mach host support.
3968
3969 * config/netbsd532.mt: New file. Netbsd 532 target support.
3970
3971 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
3972
3973 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
3974 dependency.
3975
3976 Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3977
3978 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
3979 bfd_abs_section_ptr, not &bfd_abs_section.
3980
3981 * lexsup.c (parse_args): Changed "retain-symbols-file" from
3982 no_argument to required_argument. From djm.
3983
3984 Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3985
3986 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
3987 sections to force a VMA of 0; needed for ELF backends which have
3988 not been converted to the new linker style.
3989
3990 Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
3991
3992 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
3993 it was for the HPUX dynamic loader's use and it creates problems
3994 with ELF GDB.
3995
3996 Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
3997
3998 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
3999 * ldlang.h (lang_do_assignments): Put external decl here.
4000 * emultempl/hppaelf.em: Minor cleanups throughout file.
4001 (hppa_elf_create_output_section_statements): Rewrite.
4002 (hppaelf_finish): Rewrite.
4003
4004 Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4005
4006 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
4007
4008 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
4009 accept plain -B.
4010 * ld.texinfo: -Bstatic is not ignored.
4011
4012 Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
4013
4014 * ldlex.l: Recognize \r the same as \n.
4015
4016 Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4017
4018 Preliminary support for generating shared libraries, from Eric
4019 Youngdale <ericy@cais.cais.com>.
4020 * genscripts.sh: If the emulation parameter file sets
4021 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
4022 CREATE_SHLIB defined.
4023 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
4024 link_info.shared is set, use the .xs script file.
4025 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
4026 .interp section, and don't include TEXT_START_ADDR in the starting
4027 address of the first section.
4028 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
4029 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
4030
4031 Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4032
4033 * configure.in: Change --with-targets to --enable-targets.
4034
4035 Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4036
4037 * lexsup.c (parse_args): Add support for new options -( -) with
4038 synonyms --start-group --end-group.
4039 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
4040 (lang_group_statement_type): Define new struct.
4041 (lang_statement_union_type): Add group_statement field.
4042 (lang_enter_group, lang_leave_group): Declare.
4043 * ldlang.c (lang_for_each_statement_worker): Handle
4044 lang_group_statement_enum.
4045 (map_input_to_output_sections, print_statement): Likewise.
4046 (lang_size_sections, lang_do_assignments): Likewise.
4047 (open_input_bfds): Completely rewrite. Now does its own looping,
4048 rather than using lang_for_each_statement. Handle groups.
4049 (lang_process): Update call to open_input_bfds.
4050 (print_group): New static function.
4051 (lang_enter_group, lang_leave_group): New static functions.
4052 * ldfile.c (ldfile_open_file): If the file has already been
4053 opened, just return rather than taking an assertion failure.
4054 * ldver.c (help): Mention new options.
4055 * ld.texinfo: Document new options.
4056
4057 * ldlang.c (end_of_data_section_statement_list): Don't define.
4058 (lang_leave_output_section_statement): Don't set obsolete variable
4059 end_of_data_section_statement_list.
4060
4061 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
4062 ALIGN.
4063
4064 * ldlang.c (lang_size_sections): Adjust current region address
4065 even for sections with an explicit address. From
4066 ralphc@pyramid.com (Ralph Campbell).
4067
4068 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
4069 From jrs@world.std.com (Rick Sladkey).
4070
4071 * scripttempl/mipsbsd.sc: Let sections align to their natural
4072 boundaries.
4073
4074 Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4075
4076 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
4077 &bfd_abs_section.
4078 (lang_abs_symbol_at_beginning_of): Likewise.
4079 (lang_abs_symbol_at_end_of): Likewise.
4080 (lang_size_sections): Use bfd_is_abs_section to check for the
4081 absolute section. Don't try to set the VMA or output_offset or
4082 size of the absolute section.
4083 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
4084 undefined section.
4085
4086 Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
4087
4088 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
4089 when generating relocatable objects.
4090
4091 Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
4092
4093 * emultempl/linux.em: New file providing support for linking
4094 against Linux shared libraries.
4095 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
4096 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
4097
4098 Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4099
4100 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
4101 * ldmain.c (main): Initialize link_info.shared to false. Give
4102 error if link_info.relocateable and link_info.shared are both set.
4103
4104 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
4105 it as naming an emulation to be added to EMULATION_OFILES.
4106 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
4107
4108 * Makefile.in: Rebuilt dependencies.
4109 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
4110 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
4111 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
4112 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
4113 (ei386linux.c): Remove; now in Makefile.in.
4114 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
4115 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
4116 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
4117 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
4118 (eelf64_sparc.c): Remove; now in Makefile.in.
4119 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
4120 (eelf32_sparc.c): Remove; now in Makefile.in.
4121
4122 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
4123 no owner--it might be bfd_abs_section. From Eric Youngdale
4124 <ericy@cais.cais.com>.
4125
4126 * scripttempl/aout.sc: Let sections align to their natural
4127 boundaries.
4128
4129 Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4130
4131 * ldemul.h (ldemul_open_dynamic_archive): Declare.
4132 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
4133 * ldemul.c: Include ldexp.h and ldlang.h.
4134 (ldemul_open_dynamic_archive): New function.
4135 * ldfile.h (ldfile_open_file_search): Declare.
4136 * ldfile.c: Include ldemul.h.
4137 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
4138 argument, not bfd *. Change all callers.
4139 (ldfile_open_file_search): Rename from open_a. Return boolean
4140 argument, not bfd *. Clean up. Change all callers.
4141 (ldfile_open_file): If doing a dynamic link, call
4142 ldemul_open_dynamic_archive rather than assuming the extension of
4143 a dynamic object is ".so".
4144 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
4145 New function.
4146 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
4147 field.
4148 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
4149
4150 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
4151 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
4152 Accept -static as a synonym for -non_shared.
4153
4154 Let the user change the dynamic linker used by ELF code.
4155 * ld.h (args_type): Add new field interpreter.
4156 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
4157 handle it.
4158 * ldmain.c (main): Initialize command_line.interpreter to NULL.
4159 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
4160 the ELF backend to return the .interp section. If
4161 command_line.interpreter is not NULL, set the contents of .interp
4162 to it.
4163 * ld.texinfo: Mention -dynamic-linker.
4164
4165 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
4166 generic.em.
4167
4168 * lexsup.c (parse_args): Sort out the option macros and change the
4169 definitions to make it easier to add a new option.
4170
4171 * scripttempl/aout.sc: Define __etext and __edata to go along with
4172 _etext and _edata.
4173
4174 * ld.h (ld_config_type): Add new field traditional_format.
4175 * lexsup.c (parse_args): Add traditional-format to longopts, and
4176 handle it.
4177 * ldmain.c (main): Initialize config.traditional_format to false.
4178 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
4179 flags of output_bfd according to config.traditional_format.
4180 * ldver.c (help): Mention -traditional-format.
4181 * ld.texinfo: Document -traditional-format.
4182
4183 Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4184
4185 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
4186 they are encountered.
4187
4188 Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
4189
4190 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
4191 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
4192
4193 Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4194
4195 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
4196 _FTEXT, _ETEXT and _FDATA. Dont define _END.
4197
4198 * ldfile.c (open_a): If this is not an archive, try to open it in
4199 the current directory before searching for it.
4200
4201 * lexsup.c (parse_args): Treat -i as a synonym for -r.
4202
4203 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
4204 BLOCK works in a section address as documented.
4205
4206 * ldgram.y (YYDEBUG): Don't define.
4207
4208 Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4209
4210 * emultempl/gld960.em: Pass false for new argument to
4211 ldfile_add_library_path.
4212 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
4213
4214 * emultempl/sunos.em: Only look for .so files if doing a dynamic
4215 link.
4216
4217 Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
4218
4219 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
4220
4221 Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
4222
4223 * Makefile.in (check): Delete ld.new dependency so that a regression
4224 test doesn't trigger a rebuild of the linker.
4225
4226 Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4227
4228 * ldlang.c (map_input_to_output_sections): For lang_address, call
4229 init_os if it hasn't already been called.
4230
4231 Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4232
4233 Add support for SunOS shared libraries.
4234 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
4235 shared library support code.
4236 * emultempl/sunos.em: New file.
4237 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
4238 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
4239 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
4240 (esun3.c): Likewise.
4241
4242 * ldlang.c: Minor formatting cleanups.
4243 (lang_for_each_input_file): New function.
4244 * ldlang.h (lang_for_each_input_file): Declare.
4245
4246 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
4247 field.
4248 (search_head): Declare.
4249 (ldfile_add_library_path): Add new cmdline argument in prototype.
4250 * ldfile.c (search_head): Make non-static.
4251 (search_dirs_type): Move to ldfile.h.
4252 (ldfile_add_library_path): Accept cmdline argument, and save it.
4253 * lexsup.c (parse_args): Pass true for new cmdline argument of
4254 ldfile_add_library_path.
4255 (set_default_dirlist): Likewise.
4256 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
4257 argument of ldfile_add_library_path.
4258 * ldgram.y (ifile_p1): Likewise.
4259
4260 Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4261
4262 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
4263 total_size, superfile and chain.
4264 * ldfile.c (open_a): Don't clear search_dirs_flag.
4265 (ldfile_open_file): Don't try to open superfile. Assert that file
4266 has not already been opened.
4267 * ldlang.c (new_afile): Don't initialize superfile.
4268 * ldmain.c (add_archive_element): Don't initialize subfiles or
4269 chain or superfile. Initialize search_dirs_flag to false.
4270
4271 Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4272
4273 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
4274
4275 Changes from binutils-2.4 release:
4276
4277 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
4278 variables, use whitespace, so scripts don't break.
4279
4280 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
4281
4282 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
4283
4284 * cdtest-bar.cc: Renamed from cdtest-func.cc.
4285 * Makefile.in: Noted change.
4286
4287 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
4288 don't know where that's supposed to come from, or why it's
4289 necessary.
4290
4291 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
4292
4293 * configure.bat: update to latest makefile.in
4294 * emulpara/go32.sh: set to coff-go32 not aout
4295 * emultemp/generic.em: strength-reduce the structure of
4296 this shell script, since the only available shell for
4297 DOS can't handle complex syntax.
4298 * emultemp/stringify.sed: for "sed -f" instead of inline.
4299 * makefile.in: depend on stringify.sed as well as genscripts.sh
4300 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
4301 * genscripts.sh: empty variables aren't always considered "set",
4302 so set them to "y" instead.
4303
4304 Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4305
4306 * ldlang.c (entry_symbol): Make static.
4307 (lang_add_entry): Add cmdline argument.
4308 * ldlang.h (lang_add_entry): Change prototype.
4309 * ldgram.y (statement_anywhere): Change lang_add_entry call.
4310 * lexsup.c (parse_args): Likewise.
4311
4312 Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4313
4314 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
4315 .reginfo an address.
4316 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
4317 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
4318 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
4319
4320 Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4321
4322 Add support for ELF shared libraries.
4323 * ld.h (ld_config_type): Add field dynamic_link.
4324 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
4325 on attempts to use -r with -relax, -call_shared or -s.
4326 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
4327 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
4328 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
4329 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
4330 OPTION_NON_SHARED by setting dynamic_link field accordingly.
4331 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
4332 -r and -Ur.
4333 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
4334 opening a file with a .so extension first.
4335 * emultempl/elf32.em: New file.
4336 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
4337 (NONPAGED_TEXT_START_ADDR): Likewise.
4338 (TEMPLATE_NAME): Define as elf32.
4339 (DATA_PLT): Define.
4340 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
4341 * scripttempl/elf.sc: Add placement for new dynamic sections.
4342 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
4343 outside of any section. Don't use ALIGN(8); just let one section
4344 VMA follow another. Put .dynbss in .bss. Don't mention debugging
4345 sections; they'll be handled correctly anyhow.
4346 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
4347
4348 Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
4349
4350 * Makefile.in (install): Redirect output of ln to /dev/null.
4351
4352 Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
4353
4354 * emultempl/hppaelf.em: Change all references of
4355 .hppa_linker_stubs to .PARISC.stubs.
4356 * scripttempl/hppaelf.sc: Likewise.
4357
4358 Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4359
4360 * ldlang.c (print_output_section_statement): Change ``no attached
4361 output section'' message slightly.
4362 (lang_do_assignments): Don't recurse down if there is no real
4363 section.
4364
4365 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
4366 match corresponding change in emulation templates.
4367 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
4368 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
4369
4370 Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4371
4372 * ldver.c (ldversion): Updated version number.
4373
4374 * cdtest-foo.cc: Use explicit "#pragma implementation".
4375 * cdtest-bar.cc: Renamed from cdtest-func.cc.
4376 * Makefile.in: References to cdtest-func.o changed to
4377 cdtest-bar.o.
4378
4379 Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4380
4381 Don't create unnecessary output sections.
4382 * ldlang.c (out_bfd_get_section_by_name): Remove.
4383 (wild_section): Call bfd_get_section_by_name rather than
4384 our_bfd_get_section_by_name. Don't call wild_doit if there is no
4385 section.
4386 (lang_create_output_section_statements): Remove.
4387 (map_input_to_output_sections): For several cases, call init_os if
4388 it has not already been called.
4389 (lang_size_sections): If output section was not created, skip it.
4390 (lang_process): Don't call lan_create_output_section_statements.
4391 (lang_place_orphans): Skip files with just_syms_flags set to true.
4392 * ld.texinfo: Document change.
4393
4394 Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4395
4396 * ldlang.c (wild_doit): Don't bother initializing the vma and
4397 section size. Don't special case SEC_SHARED_LIBRARY.
4398 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
4399 specially.
4400
4401 Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
4402
4403 * config/go32.mh : New file for Xgo32X.
4404
4405 Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4406
4407 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
4408 before calling einfo, since we are reporting an fopen failure.
4409 From jrs@world.std.com (Rick Sladkey).
4410
4411 * configure.in: Use "e" rather than "em_" as prefix for
4412 emulations.
4413
4414 Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
4415
4416 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
4417 filename.
4418 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
4419 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
4420 Ditto.
4421 * Makefile.in: Changed all generated file names.
4422 (ldemul-list.h): Depend on Makefile, not config.status. Changed
4423 sed patterns to handle new filenames.
4424
4425 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
4426 * configure.in: Adjusted.
4427
4428 Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4429
4430 * Makefile.in (install-info): Don't use "$<*", it doesn't always
4431 work. Instead, check build dir and $srcdir explicitly, and use
4432 `echo' to get all the filenames.
4433
4434 * configure.in (h8300h-*-hms): Changed ld_target name to
4435 cf-h8300h.
4436 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
4437 unique in 8.3.
4438
4439 * config/i960coff.mt: New file.
4440 * emulparams/gld960coff.sh: New file.
4441 * emultempl/gld960c.em: New file.
4442 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
4443 i960coff configuration.
4444 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
4445
4446 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
4447 code isn't included in FSF releases, and it can still be
4448 explicitly selected.
4449 (distclean): Remove site.bak and tmpdir.
4450 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
4451 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
4452
4453 Patches from Ralph Campbell:
4454 * config/mipsbsd.mh: New file.
4455 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
4456 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
4457 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
4458 instead of `aout'.
4459
4460 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
4461
4462 Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4463
4464 * config/m68k.mt (EMUL): Set to m68kaout.
4465 * emulparams/m68kaout.sh: New file.
4466 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
4467 (em_m68kaout.c): New target.
4468
4469 * ldlang.c (lang_size_sections): If dot moves because of an
4470 assignment, don't try to insert a pad into the absolute output
4471 section, just change the address of the default memory region
4472 instead.
4473
4474 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
4475 cdtest-ur.out, and cdtest-ur.tmp.
4476
4477 Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4478
4479 * scripttempl/sa29200.sc: Align all sections to four byte
4480 boundaries.
4481
4482 Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
4483
4484 * Makefile.in, configure.in: Support for go32 coff.
4485 * config/i386-go32.mt: New file
4486 * emulparams/i386go32.sh: New file
4487 * scripttempl/i386go32.sc: New file
4488
4489 Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
4490
4491 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
4492 Lynx-specific script templates.
4493 * configure.in (sparclite*-*-coff): Use coff-sparc.
4494 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
4495 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
4496 (ENTRY): Set to __main.
4497 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
4498 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
4499 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
4500
4501 Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4502
4503 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
4504 byte boundary, in case the global constructors do not take up an
4505 even 16 bytes.
4506
4507 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
4508 exist, get crtbegin based on gcc -print-libgcc-file-name.
4509 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
4510
4511 Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4512
4513 * ldlang.c (lang_size_sections): When no address is given for a
4514 section, align it according to its requirements.
4515
4516 Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4517
4518 * Makefile.in (clean, distclean): Remove configdoc.texi.
4519
4520 Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
4521
4522 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
4523
4524 Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4525
4526 * ldlang.c (lang_size_sections): When relaxing, adjust the
4527 position of a padding statement, and adjust dot accordingly.
4528
4529 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
4530
4531 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
4532
4533 Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4534
4535 * scripttempl/i386coff.sc: If relocating, don't put .init and
4536 .fini sections into .text; keep them separate.
4537 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
4538 exist, get crtbegin based on gcc -print-libgcc-file-name.
4539 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
4540
4541 Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
4542
4543 * Makefile.in (check): Set TCL_LIBRARY for runtest.
4544
4545 Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4546
4547 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
4548 manufacturer.
4549
4550 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
4551 if building a final executable.
4552
4553 Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4554
4555 * ldmain.c (main): Check the return value of bfd_close.
4556
4557 Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4558
4559 * scripttempl/alpha.sc: Clean up section alignment to ensure that
4560 sections never overlap when using -r.
4561
4562 Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4563
4564 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
4565 changes: get_symtab_upper_bound renamed and returns long,
4566 bfd_canonicalize_symtab returns long, check for error indications.
4567
4568 Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4569
4570 * ldlang.c (print_input_section): For section size, use
4571 _cooked_size if it is non-zero, size otherwise.
4572 (size_input_section): Likewise.
4573 (lang_do_assignments): Likewise (case lang_input_section_enum).
4574
4575 Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4576
4577 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
4578 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
4579 (lang_add_input_file): Pass true to new_afile for add_to_list.
4580 (lookup_name): Remove force_load argument. Changed all callers.
4581 Pass false to new_afile for add_to_list. Split loading of symbols
4582 out into separate function.
4583 (load_symbols): New function split out of lookup_name. Don't load
4584 the symbols if they are already loaded.
4585 (open_input_bfds): For lang_input_statement_enum call load_symbols
4586 rather than lookup_name.
4587 (lang_process): Pass abs_output_section rather than NULL to
4588 lang_size_sections.
4589 (lang_startup): Set real field of first_file to true.
4590
4591 Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4592
4593 * ldlang.c (had_relax): Removed.
4594 (relax_again): New static variable.
4595 (lang_size_sections): Change call to bfd_relax_section to
4596 correspond to BFD changes. Set relax_again appropriately.
4597 (lang_process): Remove #if 0 code. When relaxing, keep calling
4598 lang_do_assignments and lang_size_sections until relax_again
4599 becomes false.
4600
4601 * emultemp/gld960.em: Include libiberty.h
4602 (gld960_before_parse): Pass NULL as final argument to concat.
4603
4604 Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4605
4606 * scripttempl/aout.sc: Force _end and __end to be aligned to a
4607 four byte boundary.
4608
4609 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
4610 building a bfd_data_link_order, rather than by setting the section
4611 contents immediately.
4612
4613 Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4614
4615 Changes to make -Ur work again.
4616 * ldmain.c (add_to_set): Now takes reloc argument rather than
4617 bitsize. Check config.build_constructors here. If an new hash
4618 table entry is created, mark it as undefined.
4619 (constructor_callback): No longer takes bitsize argument. Pass
4620 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
4621 BFD backend supports it.
4622 (reloc_overflow): Handle a NULL abfd argument.
4623 (reloc_dangerous, unattached_reloc): Likewise.
4624 * ldctor.c: Include ldmain.h.
4625 (struct set_info): Change bitsize field to reloc.
4626 (ldctor_add_set_entry): Now takes reloc argument rather than
4627 bitsize. Don't bother to check config.build_constructors here.
4628 (ldctor_build_sets): Get the size from the reloc howto. If
4629 generating relocateable output, call lang_add_reloc rather than
4630 lang_add_data.
4631 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
4632 instead of bitsize.
4633 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
4634 (lang_reloc_statement_type): New structure.
4635 (lang_statement_union_type): Add reloc_statement field.
4636 (lang_add_reloc): Declare new function.
4637 * ldlang.c (lang_for_each_statement_worker): Handle
4638 lang_reloc_statement_enum.
4639 (map_input_to_output_sections, print_statement): Likewise.
4640 (lang_size_sections, lang_do_assignments): Likewise.
4641 (print_reloc_statement): New function.
4642 (lang_add_reloc): New function.
4643 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
4644
4645 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
4646 (cdtest-ur, cdtest-ur.out): New targets.
4647 (check-cdtest): Now also check that -Ur works correctly.
4648
4649 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
4650
4651 Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4652
4653 * ldlang.c (lang_process): Move lang_common call before
4654 map_input_to_output_sections, to ensure that any alignment
4655 constraints set by common symbols are copied over to the output
4656 sections.
4657
4658 Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4659
4660 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
4661 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
4662 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
4663 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
4664 needed for ELF.
4665
4666 Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4667
4668 * config/i386bsd.mh: New file.
4669
4670 Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4671
4672 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
4673 defined.
4674 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
4675 (DATA_START_SYMBOLS): Define _fdata.
4676
4677 Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
4678
4679 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
4680
4681 Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4682
4683 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
4684 works again. Attach some output symbols to the stub file bfd.
4685
4686 * emultempl/hppaelf.em: Include elf32-hppa.h.
4687 (file_chain): Add decl.
4688 (hppa_look_for_stubs_in_section): Delete decl.
4689 (hppaelf_finish): Reenable code. Do not pass symbols
4690 down to hppa_look_for_stubs_in_section.
4691
4692 Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
4693
4694 * ldmain.c (write_map): Don't define. Removed all references.
4695 Just use map_file or map_filename instead.
4696 (add_archive_element): Use minfo to write map information, not
4697 info_msg.
4698 (constructor_callback): Use fprintf to write map information, not
4699 info_msg.
4700 * ldmain.h (write_map): Don't declare.
4701 * ldgram.y (mri_script_command): Removed reference to write_map.
4702 * ldlang.c (lang_one_common): Likewise.
4703 * lexsup.c (parse_args): Likewise.
4704
4705 Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
4706
4707 * scripttempl/elf.sc: Force all sections to be aligned.
4708
4709 * ldgram.y (section): Reverse the order of memspec_opt and
4710 fill_opt to avoid an ambiguity when both are used.
4711 * ld.texinfo: Changed accordingly.
4712
4713 * ldgram.y: Move include of ldlex.h back with other includes.
4714 * ldlex.h (input_type): Don't initialize enum constants to
4715 particular values.
4716 * ldlex.l: Use a switch to return the right token based on
4717 input_type, rather than knowing that input_type has a value based
4718 on a token type.
4719
4720 * ldgram.y (dirlist_ptr): Removed; not used.
4721 * lexsup.c: Include ldver.h.
4722 * Makefile.in: Rebuilt dependencies.
4723
4724 Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
4725
4726 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
4727 (ldlang_add_file): call it here instead.
4728
4729 Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4730
4731 * ldgram.y: Include ldlex.h after %token decls, for byacc.
4732
4733 Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4734
4735 * emultempl/hppaelf.em: First attempt to clean this file up.
4736 Add comments in several functions as to their purpose and
4737 how they function (or my current best guess). Clean up horrible
4738 spacing and indention that never should have been accepted in the
4739 first place. Add FIXMEs for issues which need to be resolved.
4740 Disable linker-stub generation until it gets fixed. This allows
4741 the linker to at least work on simple code for testing purposes.
4742
4743 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
4744 it via hppaelf_finish). Prototype moved into ldlang.h.
4745 (lang_process): Move problematic extra call to lang_size_sections
4746 into the PA ELF specific code.
4747 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
4748 lang_size_sections moved here.
4749
4750 Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
4751
4752 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
4753 * config/ppc-elf32.mt: New file.
4754 * emulparams/elf32ppc.sh: New file.
4755 * emultempl/ppc.em: New file.
4756 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
4757 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
4758 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
4759
4760 Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4761
4762 * lexsup.c (parse_args): Use symbolic numbers for long options.
4763 Fix misunderstanding in -Y and -call_shared et al.
4764
4765 Use getopt instead of lex and yacc to parse the command line.
4766
4767 * ld.texinfo (Options): Document changes to option syntax.
4768 * Makefile.in: Update dependencies.
4769 * ldver.c (help): Tweak dashes in usage message.
4770 * ldgram.y (%union): Remove unused members.
4771 Remove %tokens for command line options; add ones for input types.
4772 (command_line): Rules removed.
4773 (file): Instead of command line, recognize an
4774 input type indicator, then use the nonterminal for that type.
4775 (defsym_expr): New nonterminal from code formerly in command_line.
4776 * ldlex.h: Declare parser input type enum and variable.
4777 Don't declare parse_line.
4778 * ldlex.l: Remove unused variables. Make some used ones static
4779 and comment them.
4780 (COMMAND): Start state and its rules removed.
4781 At start of yylex, return input state token if at start of input.
4782 (lex_redirect): Don't need to set yyout.
4783 (ldlex_command): Function removed.
4784 * ldmain.c (main): Instead of calling parse_line, set up the
4785 redirections and call yyparse directly.
4786 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
4787 "command line".
4788 * lexsup.c: Remove #if 0'd code.
4789 (parse_line): Function removed.
4790 (parse_args): Rewrite to use getopt_long_only.
4791 (set_default_dirlist): New function from code formerly in
4792 ldgram.y:command_line.
4793 (set_section_start): New function.
4794 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
4795 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
4796 compiled-in link scripts in "{" and "}", as the grammar no longer
4797 wants them to be.
4798
4799 Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
4800
4801 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
4802 require that it be in $(srcdir).
4803
4804 Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
4805
4806 * ldlang.c (lang_size_sections): Only align section to alignment
4807 required by linker script, not to maximum alignment of input
4808 sections.
4809
4810 * ldlang.h (largest_section): Don't declare.
4811 * ldlang.c (largest_section): Don't define.
4812 (size_input_section): Don't set largest_section; not used.
4813
4814 Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
4815
4816 * ldlang.c (new_afile): Pass NULL as last argument to concat.
4817
4818 Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4819
4820 * ldlang.c, ldmain.c: Include libiberty.h.
4821
4822 * ldmisc.h (concat): Don't declare.
4823 * ldmisc.c (concat): Don't define; just use the one in libiberty.
4824
4825 * ld.h (as_output_section_statement): Removed; not used.
4826
4827 Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4828
4829 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
4830 bfd_set_error and new error names.
4831
4832 Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4833
4834 * ldwrite.c (build_link_order): If the cooked size of the section
4835 has been set, use it, for determining link_order size.
4836 (ldwrite): In the error message displayed if bfd_final_link fails,
4837 indicate that it was in fact the final link step that failed.
4838
4839 * ldlang.c (lang_size_sections): Clear bfd_error before calling
4840 bfd_relax_section, in case it returns false but doesn't flag an
4841 error. If an error is returned, indicate which one it is in the
4842 error message.
4843
4844 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
4845 it'll get picked up from $(srcdir) if appropriate.
4846
4847 Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4848
4849 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
4850 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
4851
4852 Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4853
4854 * ldlex.l (comment): Increment line number when newline is read.
4855
4856 Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4857
4858 * ldlang.c (lookup_name): Take new argument, force_load. If true,
4859 reload the file even if it is already loaded.
4860 (wild): Call lookup_name with force_load argument of 0.
4861 (open_input_bfds): Call lookup_name with force_load argument of 1.
4862 (print_symbol): Remove declaration of non-existent function.
4863 (print_one_symbol): Return true rather than falling off end.
4864
4865 Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4866
4867 * ldmain.c (main): Use %ld when printing long values.
4868
4869 * scripttempl/elf.sc: Move _edata after the .sdata section.
4870 Permit OTHER_BSS_SYMBOLS to be defined.
4871 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
4872
4873 Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4874
4875 * Rename all "hppaosf" files to "hppaelf".
4876 * Change all "osf" references to "elf" in hppaelf files.
4877 * Makefile.in: Likewise.
4878 * configure.in: Likewise.
4879
4880 Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4881
4882 * ldmain.c (main): Call xatexit, not atexit.
4883 Call xmalloc_set_program_name.
4884
4885 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
4886 bfd_errno.
4887
4888 Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4889
4890 * emultempl/lnk960.em (append), emultempl/hppaosf.em
4891 (hppaosf_finish): Call xmalloc, not ldmalloc.
4892 * ldmain.c (preserve_output): Function removed.
4893 (main): Do it here instead.
4894
4895 Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4896
4897 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
4898 GNU C specific macros.
4899
4900 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
4901 call to LANG_FOR_EACH_INPUT_SECTION.
4902
4903 Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4904
4905 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
4906 deleted; will use libiberty versions instead.
4907 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
4908 mri.c Makefile.in: Change callers.
4909
4910 * ldmisc.c (vfinfo): Remove cleanup code.
4911 * ldmain.c (remove_output): Put it here (new function).
4912 (preserve_output): New function.
4913 (main): Register remove_output and preserve_output with atexit.
4914 * ldmain.c ldgram.y: Call xexit instead of exit.
4915 * ldmisc.h: Declare xexit.
4916
4917 Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
4918
4919 * Makefile.in: Lots of new H8/500 memory models.
4920
4921 Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4922
4923 * ldlex.l: Removed duplicate rules.
4924 (yywrap): Provide default definition, needed with some versions of
4925 flex.
4926
4927 Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4928
4929 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
4930 the archive filename too.
4931
4932 * ldlex.l: Add rule to catch invalid input characters instead of
4933 printing them. Include "ldmain.h" for program_name decl.
4934 (lex_warn_invalid): New function.
4935 * Makefile.in: Add dependency.
4936
4937 Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4938
4939 * Makefile.in (check): Don't bother running any tests of
4940 cross-linker until the test suite no longer assumes native mode.
4941
4942 Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4943
4944 * ldlang.c (print_one_symbol, print_input_section): Print
4945 global symbols in symbol table again.
4946
4947 Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4948
4949 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
4950 exit successfully instead of complaining if no input files are
4951 given.
4952
4953 Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
4954
4955 * Makefile.in: Format variable definitions consistently.
4956 (LD_PROG): Remove unnecessary variables from link command,
4957 change variable LOADLIBES to EXTRALIBS.
4958
4959 * ldmain.c (main): Compute and display total execution time.
4960 * ld.texinfo (-stats): Document the option.
4961
4962 Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4963
4964 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
4965 arguments.
4966
4967 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
4968 after opening BFD.
4969
4970 * ldlang.c (relaxing): Removed global variable.
4971 (lang_size_sections): If the canonical symbols have not already
4972 been read in, read them in before relaxing.
4973 * ldlang.h (relaxing): Removed declaration.
4974
4975 Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4976
4977 * ldlang.c (new_afile): Initialize loaded field to false.
4978 (lookup_name): If file was already loaded, don't call the
4979 add_symbols entry point again.
4980
4981 Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4982
4983 * ld.texinfo: Clarify what -T option does.
4984
4985 Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4986
4987 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
4988 for a.out.
4989
4990 Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4991
4992 * ldmain.c (add_archive_element): If trace_files or
4993 trace_file_tries, print file name.
4994 * ldlang.c (lookup_name): Likewise.
4995 (ldlang_add_file): Don't put files on input_bfds list in reverse
4996 order.
4997
4998 * scripttempl/elf.sc: Correct typo.
4999
5000 Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5001
5002 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
5003 their arguments optional, for compatibility with the old GNU ld.
5004
5005 Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5006
5007 * scripttempl/elf.c: Define __bss_start before the .sbss section.
5008
5009 Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5010
5011 * ldmain.c (add_to_set): Add bitsize argument.
5012 (constructor_callback): New function.
5013 (link_callbacks): Add constructor_callback.
5014 * ldctor.c (struct set_info): Add bitsize field.
5015 (ldctor_add_set_entry): Add bitsize argument.
5016 (ldctor_build_sets): Base the size of the elements of the set on
5017 the bitsize, rather than always using LONG.
5018 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
5019
5020 * ld.h (QUAD_SIZE): Define.
5021 * ldgram.y (QUAD): New token.
5022 (length): Handle it.
5023 * ldlex.l: Return QUAD.
5024 * lexsup.c (keywords): Add QUAD.
5025 * ldwrite.c (build_link_order): Handle QUAD.
5026 * ldlang.c (print_data_statement): Handle QUAD.
5027 (lang_size_sections): Likewise.
5028 (lang_do_assignments): Likewise.
5029 * ldexp.c (exp_print_token): Add QUAD to table.
5030 * ld.texinfo: Describe QUAD.
5031
5032 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
5033 since the Alpha doesn't use them.
5034
5035 Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5036
5037 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
5038
5039 Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
5040
5041 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
5042 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
5043
5044 Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5045
5046 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
5047 needed for i386mach. (Should be a no-op on other systems.)
5048
5049 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
5050 (PAGE_SIZE): Don't define; not used.
5051
5052 Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5053
5054 * ldgram.y (yyerror): Make argument const char *, and actually
5055 print it out rather than assuming it is a syntax error.
5056 * ldmisc.h: Change declaration of yyerror.
5057 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
5058
5059 Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5060
5061 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
5062 exec header offset, since the exec header isn't loaded.
5063 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
5064
5065 Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5066
5067 A major rewrite to move the bulk of the linker into BFD so that
5068 more efficient backend code can be written for specific object
5069 files.
5070 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
5071 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
5072 * ldctor.c, ldctor.h: Complete rewrite.
5073 * ldwrite.c, ldwrite.h: Complete rewrite.
5074 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
5075 link_info.strip instead. Changed all uses.
5076 (discard_locals_type, discard_locals): Removed. Use
5077 link_info.discard instead. Changed all uses.
5078 (ld_config_type): Removed relocateable_output field; use
5079 link_info.relocateable instead; changed all uses. Added stats
5080 field.
5081 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
5082 set_loader_symbol): Removed.
5083 * ldexp.h (node_class): Added etree_rel.
5084 (etree_type): Added rel field.
5085 * ldexp.c (exp_print_token): Bracketed table initialization.
5086 (exp_relop): New function.
5087 (fold_name): Use linker hash table rather than ldsym functions.
5088 (exp_fold_tree): Likewise. Also, handle etree_rel case.
5089 (exp_print_tree): Handle etree_rel.
5090 * ldgram.y (strip_symbols, discard_locals): Removed.
5091 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
5092 (REL): New token. Does not appear in grammar, but needed for
5093 expression code.
5094 (file): Don't call lang_final; it's called by main anyhow.
5095 * ldlex.l: Accept -stats and -no-keep-memory options.
5096 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
5097 * ldlang.c: Consistently use fill_type for fill argument.
5098 (lang_init_script_file, script_file): Removed.
5099 (create_object_symbols): Removed. Use
5100 link_info.create_object_symbols_section instead. Changed all
5101 uses.
5102 (lang_add_keepsyms_file): Removed.
5103 (lookup_name): Call bfd_link_add_symbols instead of
5104 ldmain_open_file_read_symbol.
5105 (wild): Don't iterate over script_file.
5106 (open_output): Create link hash table.
5107 (lang_place_undefineds): Rewrote.
5108 (lang_size_sections): Handle relaxing (doesn't work yet).
5109 (lang_relocate_globals): Removed.
5110 (lang_finish): Use link hash table rather than ldsym functions.
5111 (lang_common): Rewrote.
5112 (lang_one_common): New function.
5113 (ldlang_add_file): Add file to link_info.input_bfds list. Set
5114 usrdata.
5115 (create_symbol): Removed.
5116 (lang_process): Don't call lang_init_script_file. Call
5117 ldctor_build_sets rather than find_constructors. Don't call
5118 lang_relocate_globals.
5119 (lang_abs_symbol_at_beginning_of): Rewrote.
5120 (lang_abs_symbol_at_end_of): Rewrote.
5121 * ldmain.c (had_y): Removed.
5122 (lprefix, lprefix_len): Removed; use link_info fields instead.
5123 Changed all uses.
5124 (multiple_def_count, commons_pending, undefined_global_sym_count,
5125 total_symbols_seen, total_files_seen): Removed.
5126 (link_callbacks, link_info): New variables.
5127 (main): Initialize link_info. Don't call init_bfd_error_vector or
5128 ldsym_init. Don't set now unused variables. Handle -stats.
5129 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
5130 (add_ysym): Rewrote.
5131 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
5132 search_library, gnu960_check_format, decode_library_subfile,
5133 linear_library, symdef_library, clear_syms, subfile_wanted_p):
5134 Removed.
5135 (add_keepsyms_file, add_archive_element, multiple_definition,
5136 multiple_common, add_to_set, warning_callback, undefined_symbol,
5137 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
5138 New functions.
5139 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
5140 require symbols for %C; look them up instead.
5141 * emultempl/hppaosf.em: Pass link_info to
5142 hppa_look_for_stubs_in_section.
5143 * Makefile.in: Rebuilt dependencies.
5144 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
5145 relax.c.
5146 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
5147 relax.h.
5148 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
5149 ldlang.h and ldctor.h.
5150
5151 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
5152 declarations of free and malloc from flex output. Change malloc
5153 to ldmalloc in flex output.
5154
5155 Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5156
5157 * ldmain.c (lprefix): Change default from a char to a string
5158 with only one character.
5159 (lprefix_len): Set default to one.
5160
5161 * ldmain.h (lprefix_len): Declare.
5162
5163 * ldsym.c (write_file_locals): Use strncmp rather than a character
5164 comparison for lprefix.
5165
5166 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
5167 correctly.
5168
5169 * emultmpl/hppaosf.em: Include ldexp.h.
5170 (before_parse): Set lprefix and lprefix_len correctly.
5171
5172 Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5173
5174 * ldlex.h: Don't declare yywrap if it is a macro.
5175 * ldlex.l: Include sysdep.h.
5176 * ldlang.c (lang_for_each_statement_worker,
5177 lang_for_each_statement): Forgot to use PARAMS.
5178
5179 Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5180
5181 * Makefile.in: Added .PHONY targets where appropriate. Added some
5182 comments. Also:
5183 (gcclibdir, version): Removed unused variables.
5184 (DEP): New variable, set to mkdep.
5185 (ALL_CFLAGS): New variable. Used in .c.o target.
5186 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
5187 variables.
5188 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
5189 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
5190 mostly obsolete variables. Adjusted remaining uses.
5191 (DEF_EMUL): Removed variable.
5192 (ldmain.o): Handle undefined EMUL error correctly.
5193 (ldemul-list.h): Depend on config.status rather than Makefile.
5194 Create via temporary file.
5195 (ver960.c, roll, make): Removed obsolete targets.
5196 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
5197 dependencies.
5198 * dep-in.sed: New file, used when rebuilding dependencies.
5199
5200 Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
5201
5202 Made many changes to eliminate gcc warnings. Made various
5203 cosmetic changes, declared various things in header files, removed
5204 various extern declarations from .c files. No substantive
5205 changes.
5206
5207 * ldlang.c (lang_process): Ifdef out final call to
5208 lang_size_sections again (reverting change of Nove 2), since it
5209 breaks the Sun4 linker.
5210
5211 Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5212
5213 * configure.in (alpha-*-netware*): New target; use alpha.
5214
5215 Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
5216
5217 * configure.in: Group targets by CPU. Merge some m68k target
5218 entries with different CPU specs that use the same ld_target
5219 values.
5220
5221 * configure.in: Add sparc*-*-coff.
5222 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
5223 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
5224 (em_coff_sparc.c): Add dependencies and build rules.
5225
5226 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
5227
5228 Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5229
5230 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
5231 New tokens.
5232 (command_line_option): Accept and ignore them (for now).
5233 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
5234 where n is a number.
5235
5236 Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5237
5238 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
5239 not in bfd_com_section, create the section in the BFD so that it
5240 can be placed in the right output section.
5241
5242 Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5243
5244 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
5245 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
5246 (OTHER_READONLY_SECTIONS): Define for .reginfo.
5247 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
5248 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
5249 Move OTHER_READONLY_SECTIONS after all the other readonly
5250 sections. Don't use DATA_ADDR twice.
5251
5252 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
5253 p is in a common section, make sure the BFD has a section of that
5254 name.
5255
5256 * ldlang.c (lang_common): Add newline to error message.
5257
5258 Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
5259
5260 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
5261 Lynx-specific script instead of m68kcoff.
5262 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
5263 (ENTRY): Define as __main.
5264 (TEXT_START_ADDR): Define as 0.
5265 (PAGE_SIZE): Define as 0x1000.
5266 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
5267 * scripttempl/m68klynx.sc: New file.
5268
5269 Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5270
5271 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
5272 arguments rather than treating them as emulation names.
5273
5274 Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
5275
5276 * configure.in: Support x86 unixware and netware plus generic netware.
5277
5278 Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5279
5280 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
5281 Correct values (?).
5282
5283 Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
5284
5285 * Makefile.in (distclean): Don't delete dvi or info files.
5286 (ld.info): Update dependency list.
5287 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
5288
5289 Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5290
5291 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
5292 Set output_filename instead of creating a new node.
5293 (open_output): Don't set output_filename.
5294 (lang_final): Create the new node here.
5295 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
5296
5297 Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5298
5299 From Pete Hoogenboom (hoogen@cs.utah.edu):
5300
5301 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
5302 edata, _edata, end): Add definitions of these symbols.
5303 (__end): Remove definition of this symbol.
5304 (__data_start): Move definition of this symbol.
5305
5306 * emultempl/hppaosf.em: Various fixes and support for linker stub
5307 generation.
5308 (hppaosf_finish, hppaosf_search_for_padding_statements,
5309 hppaosf_create_output_section_statements): New functions in
5310 support of linker stub generation.
5311 (ld_hppaosf_emulation): Redefine to include new
5312 emulation-specific routines.
5313
5314 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
5315 Pass abs_output_section rather than NULL to avoid invalidating
5316 absolute symbols.
5317
5318 Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5319
5320 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
5321 (em_i386mach.c): New rule.
5322 * configure.in (i[34]86-*-mach*): New case.
5323 * config/i386-mach.mt: New file.
5324 * emulparams/i386mach.sh: New file.
5325
5326 Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5327
5328 * ld.h (flag_is_*): Removed macros.
5329 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
5330 Consistently check the BFD symbol flags directly, rather than
5331 using file_is_* macros.
5332
5333 Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
5334
5335 * configure.in (sparc*-*-lynxos*): New target.
5336 * Makefile.in: Add rule for em_sparclynx.c.
5337 (ALL_EMULATIONS): Add Lynx emulations.
5338 * config/sparc-lynx.mt: New file.
5339 * emulparams/sparclynx.sh: New file.
5340 * scripttempl/sparccoff.sc: New file.
5341
5342 Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5343
5344 * Makefile.in: Add dependency for $(EMULATION_OFILES).
5345
5346 Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5347
5348 * relax.c (write_relax): Check return value of bfd_seclet_link.
5349
5350 Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
5351
5352 * ldlang.c (delete_output_file_on_failure): New variable.
5353 (open_output): Set it after bfd open succeeds.
5354 * ldmisc.c (vfinfo): Test it.
5355
5356 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
5357
5358 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
5359 symbols.
5360
5361 * ldemul.c: Support was added to allow emulation-specific
5362 processing to occur. This support was added primarily for linker
5363 stub generation in the elf32-hppa gld.
5364 (ldemul_finish, ldemul_create_output_section_statements): New
5365 functions.
5366 * ldemul.h: Support was added to allow emulation-specific
5367 processing to occur. (As described above.) Added finish and
5368 create_output_section_statements fields to
5369 ld_emulation_xfer_struct structure.
5370 * ldlang.c: Add calls to emulation-specific routines.
5371 (lang_process): Add call to
5372 ldemul_create_output_section_statements function.
5373 (lang_process): Add call to a emulation-specific routine (and
5374 some processing after the call).
5375
5376 Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
5377
5378 * configure.in: mips*- instead of mips-, mips*el changes
5379
5380 Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5381
5382 * configure.in (alpha-*-osf*): New target; use alpha.mt.
5383 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
5384 (em_alpha.c): New target; use alpha.sh and alpha.sc.
5385 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
5386 * config/alpha.mt: New file.
5387 * emulparams/alpha.sh: New file.
5388 * scripttempl/alpha.sc: New file.
5389
5390 Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
5391
5392 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
5393 types of different sizes (eg: 64 and 32 bits), so coerce.
5394 * ld.h (ALIGN_N): Add warning about usage.
5395
5396 Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5397
5398 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
5399 which we already have a definition, rather than checking in
5400 several different places whether the symbol is weak.
5401
5402 Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5403
5404 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
5405 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
5406 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
5407 expanded within them.
5408 * config/mipsb-elf32.mt: New file.
5409 * emulparams/elf32mipb.sh: New file.
5410 * Makefile.in (em_elf32mipb.c): New target.
5411
5412 Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
5413
5414 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
5415 lang_input_file_is_search_file_enum so objects brought in using
5416 INPUT() do a path lookup.
5417
5418 Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
5419
5420 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
5421 instead of {i386,m68k}-coff.
5422 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
5423 * config/i386-lynx.mt: New file.
5424 * config/m68k-lynx.mt: New file.
5425 * emulparams/i386lynx.sh: New file.
5426 * emulparams/m68klynx.sh: New file.
5427
5428 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
5429 but defaulting to _start.
5430
5431 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
5432 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
5433 LynxOS libc.
5434
5435 Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
5436
5437 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
5438 HOSTING_LIBS for testing.
5439
5440 Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5441
5442 Finish up support for i386-sysv4 (without shared libraries):
5443 * ld.h (flag_is_weak): Define.
5444 * ldlang.c (print_symbol): Mention whether symbol is weak.
5445 (print_input_section): Print weak symbols as globals.
5446 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
5447 (enter_global_ref): Do not warn if a weak symbol redefines a
5448 global symbol. Do not let a weak symbol redefine a common symbol.
5449 (enter_file_symbols): Treat weak symbols as global symbols.
5450 (subfile_wanted_p): Do not pull in an object file from a archive
5451 just to resolve an undefined weak symbol.
5452 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
5453 error; the error might be that malloc has run out of space.
5454 * ldsym.c (write_file_locals): Treat weak symbols as global.
5455 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
5456 use i386-elf.
5457 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
5458 * config/i386-elf.mt: New file; set EMUL to elf_i386.
5459 * emulparams/elf_i386.sh: New file.
5460 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
5461 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
5462 (ALL_EMULATIONS): Add em_elf_i386.o.
5463 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
5464 (em_elf_i386.c): New target, like other em_*.c targets.
5465 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
5466 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
5467 nonempty, and configured for native, add it to LIB_PATH.
5468
5469 Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
5470
5471 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
5472 Added statements to pass stab and stabstr sections through and
5473 mark them as NOLOAD, which makes GDB happier.
5474
5475 Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
5476
5477 * configure.in: Accept m68k-lynx-lynxos config.
5478
5479 * Makefile.in: Use $(SHELL) to run genscripts.sh.
5480
5481 Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
5482
5483 * config/coff-h8300.mt: Add EMUL=h8300h.
5484
5485 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
5486
5487 Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
5488
5489 * Makefile.in: Changed CXX back to g++.
5490
5491 Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
5492
5493 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
5494
5495 Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5496
5497 * Makefile.in (TAGS): Use shell wildcards.
5498
5499 Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
5500
5501 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
5502
5503 Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
5504
5505 * ld.texinfo: re-enable included config file; conditionalize doc
5506 for -oformat to interact properly with SingleFormat doc config
5507 var; rename @up/@down to @raisesections/@lowersections.
5508
5509 Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5510
5511 * configure.in: recognize m88110.
5512
5513 Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5514
5515 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
5516 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
5517 ELF emulation is "elf32-hppa" not "elf-big".
5518 (hppaosf_before_parse): Remove unneeded processing of environment
5519 variables.
5520 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
5521 .text segment of output file.
5522 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
5523
5524 Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5525
5526 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
5527 longer in bfd.h.
5528
5529 * ldlang.c, ld.h: updated copyright.
5530
5531 Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5532
5533 * ldlang.c (open_output, lang_check): Check return value of
5534 bfd_set_arch_mach.
5535
5536 Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
5537
5538 * scripttempl/h8500.sc: Start all sections in a different segment.
5539 * scripttempl/z8ksim.sc: Handle constructors
5540
5541 Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
5542
5543 * Makefile.in: revert earlier changes back to execute runtest
5544 with make check. cdtest and bootstrap now function as they
5545 did within the Makefile.
5546
5547 Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5548
5549 * Makefile.in: Update dependencies.
5550
5551 * configure.in: Set EMULATION_OFILES in Makefile based on
5552 --with-targets option.
5553
5554 Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
5555
5556 * Makefile.in: check targets reimplemented to old way.
5557
5558 Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
5559
5560 * config/i386v.mh, config/irix4.mh: Use gcc
5561 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
5562 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
5563 bfd/configure.host change.
5564
5565 Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5566
5567 * scripttempl/elf.sc: Handle .line and .debug* sections.
5568
5569 * ldlex.l: Use bfd_scan_vma, not strtoul.
5570
5571 Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5572
5573 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
5574 Remove inital caps in some error messages, change "can't" to
5575 "cannot", add missing colons.
5576 * ldmisc.c (vfinfo): Print "%%" as a single %.
5577 For '%' followed by unrecognized character, print them both
5578 verbatim instead of expecting a char * arg.
5579 For '%C', don't put the function name in parens.
5580
5581 * ldexp.c (invalid): Pass "%%", not "% ".
5582
5583 Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5584
5585 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
5586 (BSS_VAR): Removed; now always define _fbss.
5587 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
5588 Removed.
5589
5590 Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
5591
5592 * configure.in: z8k-coff is the same as z8k-sim
5593
5594 Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
5595
5596 * testsuite/lib/ld.exp: new file
5597 * testsuite/config/unix-ld.exp: new file
5598 * testsuite/ld.bootstrap/bootstrap.exp: new file
5599 * Makefile.in: add dejagnu support for make check
5600
5601 Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5602
5603 * ldlex.l (comment): Add missing newline in message.
5604 * ldindr.c (add_indirect): Ditto.
5605 * ldexp.c (exp_fold_tree): Ditto.
5606
5607 Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5608
5609 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
5610 into externs.
5611
5612 * ldmisc.c (multiple_warn): New function.
5613 * ldmisc.h: Declare it.
5614 * ldmain.c (enter_global_ref): Call it.
5615 * ld.h (ld_config_type): Add warn_common.
5616 * ldlex.l, ldgram.y: Set it with -warn-common option.
5617 * ldver.c (help): Document it.
5618
5619 Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5620
5621 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
5622 target-specific sections, and for changing data section vma.
5623
5624 Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
5625
5626 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
5627 terminals, for Solaris.
5628 (dirlist_ptr): New static variable.
5629 (command_line_option): Accept new options.
5630
5631 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
5632 "-YP,...".
5633
5634 * config/sun4sol2.mt: Pass emulation name without ".sh".
5635
5636 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
5637 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
5638
5639 Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5640
5641 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
5642 .dtors, .data1, .rodata1 sections, instead of combining them into
5643 other sections. For `-r', set all section start addresses to
5644 zero.
5645
5646 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
5647 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
5648 (MAXPAGESIZE): Renamed from PAGE_SIZE.
5649
5650 Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5651
5652 * genscripts.sh: If this is the default emulation, set
5653 COMPILE_IN.
5654 * emultempl/*.em: Use it to determine whether to compile in the
5655 scripts.
5656
5657 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
5658 genscripts.sh. Pass the current emulation name without ".sh" on
5659 the end.
5660 * genscripts.sh: Take an default emulation arg.
5661 Use the current emulation name as EMULATION_NAME.
5662 Make default lib path for cross-compiling ':', not null.
5663 * emulparams/*.sh: Don't set EMULATION_NAME.
5664 * ldemul.c (ldemul_get_script): Take isfile arg.
5665 Pass it to emulation's get_script function.
5666 * ldemul.h: Adjust get_script prototypes.
5667 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
5668 No longer static.
5669 * ldfile.h: Declare it.
5670 * ldgram.y: Accept a script on the command line again,
5671 for parsing compiled-in scripts.
5672 * ldmain.c (main): If ld script is a file, parse it as a -T
5673 option, otherwise parse it directly.
5674 * emultempl/*.em (*get_script): Return the scripts themselves if
5675 this is the default emulation; otherwise return their file names.
5676 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
5677 generic.em.
5678 * emulparams/m88kbcs.sh: Use it.
5679
5680 * ld.h (ld_config_type::unix_relocate): Remove unused element.
5681
5682 Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5683
5684 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
5685 there's no change log entry yet, tsk tsk) from the list of
5686 emulations compiled in until Mark gets around to checking in
5687 emulparams/i386linux.sh.
5688 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
5689 changed, this file gets updated.
5690
5691 Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
5692
5693 * ldgram.y (OPTION_Lfile): New token.
5694 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
5695 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
5696
5697 Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
5698
5699 * configure.in: h8/300h support needs own .mt file.
5700 config/coff-h8300h.mt: New file.
5701
5702 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5703
5704 * ldmain.c: Don't include sys/stat.h; it already got included
5705 somewhere along the way.
5706
5707 Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
5708
5709 * Makefile.in: Add h8300h support.
5710 emulparams/h8300h.sh: New file.
5711 scripttempl/h8300h.sc: New file.
5712
5713 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5714
5715 * ldfile.c (ldfile_open_file): In error message, use the name the
5716 user gave (e.g., "-lc"), rather than the base file name.
5717
5718 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
5719
5720 * ldmain.[ch]: Remove initial Q_ from function names.
5721 * ldexp.c, ldindr.c, ldlang.c: Change callers.
5722
5723 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
5724
5725 * ldlang.c (lang_process): Move loading of default script from
5726 here to main. Add a "/" to start of script name to prevent
5727 finding it in "." first.
5728
5729 * ldmain.c (set_scripts_dir): Don't look in "." first.
5730
5731 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
5732 option_longmap.
5733
5734 Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
5735
5736 * Makefile.in (em_m88kbcs.c): Correct dependency.
5737 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
5738 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
5739 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
5740
5741 Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5742
5743 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
5744 main.c (main): Print the errno string in the error message.
5745
5746 Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
5747
5748 * configure.in: Accept h8300h for target cpu.
5749
5750 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
5751 present (demangle is smart enough to know whether to do it or not).
5752
5753 Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5754
5755 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
5756 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
5757
5758 * ldlang.c (lang_process): Use sizeof instead of magic constant.
5759
5760 * ldmain.c (get_emulation, check_for_scripts_dir,
5761 set_scripts_dir): New functions.
5762 (main): Call them.
5763
5764 Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
5765
5766 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
5767 Create symbol "end" instead of "__end". Comment out some parts
5768 that may not be needed (yet) for elf.
5769
5770 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
5771
5772 Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5773
5774 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
5775
5776 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
5777 when no prototype is being supplied.
5778 (ldmalloc, ldrealloc): Size argument is now size_t.
5779
5780 * ldmisc.c (finfo): New function, accepts FILE* argument.
5781 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
5782 without leading zeros.
5783 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
5784 bfd_vma value, instead of fprintf(%x) which won't hold a long long
5785 value.
5786 (concat, buystring): String lengths are size_t.
5787 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
5788
5789 * ldlang.c (new_statement): Size argument is now size_t. Added
5790 forward declaration with prototype.
5791
5792 Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5793
5794 * ldgram.y (OPTION_v): Don't turn on verbose output.
5795
5796 Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5797
5798 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
5799 bfd.h instead.
5800
5801 Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
5802
5803 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
5804 collect2 doesn't look for gld any more anyhow.
5805
5806 Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
5807
5808 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
5809 now have a non NULL srefs_chain.
5810
5811 * config/hp300hpux.mt: Use emulation hp3hpux rather than
5812 hp300hpux, since the latter does not exist.
5813
5814 Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5815
5816 * genscripts.sh: Put the scripts in the ldscripts directory, not
5817 emulations.
5818 * configure.in (ldscripts): Make, instead of emulations.
5819 * Makefile.in (scriptdir): Take off the "ld" part.
5820 (install, clean, distclean): Use ldscripts, not emulations.
5821 In tests, don't pass -Lemulations.
5822 Don't pass tooldir/lib to genscripts.sh.
5823 * genscripts.sh: Don't take tooldir/lib arg.
5824 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
5825 default script file.
5826
5827 Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
5828
5829 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
5830
5831 Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
5832
5833 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
5834
5835 Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5836
5837 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
5838 run in parallel without colliding on yacc's static file names.
5839 Without the stub rule, make will try to start two yacc's
5840 concurrently which fails because of yacc's static file names.
5841
5842 Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
5843
5844 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
5845 symbols.
5846
5847 Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5848
5849 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
5850 different from libdir.
5851
5852 * Makefile.in (scriptdir): Base on tooldir, not datadir.
5853
5854 Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5855
5856 * ldver.c (help): New function.
5857 * ldver.h: Declare it.
5858 * ldlex.l, ldgram.y: Recognize new options --help and --version.
5859
5860 Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
5861
5862 * Makefile.in (INCLUDES): Don't need ../include any more.
5863
5864 Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5865
5866 * ldlex.l, ldgram.y: Support new -oformat option.
5867 Remove attempt at supporting script fragments on the command line.
5868 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
5869 * mri.c (mri_format), ldgram.y: Change callers.
5870 * ldlang.h: Change prototype.
5871
5872 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
5873
5874 * Makefile.in: canonicalize install.sh; for use within
5875 this directory (and subdirs)
5876
5877 Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5878
5879 * ldgram.y: Tweak grammar to make reporting of invalid options work.
5880
5881 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
5882 and .cc.o rule.
5883
5884 Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5885
5886 * ldfile.c (ldfile_open_command): Don't try .ld extension.
5887 It wasn't documented (or likely used) and wastes time.
5888 (try_open): If EXTEN is empty, don't try it.
5889
5890 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
5891 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
5892 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
5893 with normal function declarations.
5894
5895 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
5896 Move *.sc-sh to scripttempl/*.sc.
5897 * {emultempl,emulparams,scripttempl}/README: New files.
5898 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
5899 removed, replaced with generic.em.
5900 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
5901 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
5902
5903 * *.em (*_get_script): Return script name instead of script contents.
5904 * ldlang.c (lang_process): Change caller.
5905
5906 * ldlex.l, ldgram.y: Recognize -m option.
5907 Check for input files after *all* options in grammar.
5908 * ldmain.c (main): Check for -m options. Add default directory
5909 for -m.
5910
5911 * mkscript.c: File removed.
5912 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
5913 to add to the default LIB_PATH.
5914 Look for input files in the new subdirectories.
5915 Create the scripts in emulations subdirectory and don't filter
5916 them through mkscript.
5917 * configure.in: Make the emulations subdirectory.
5918
5919 * Makefile.in: Account for all of the above changes.
5920 Remove unused .SUFFIXES. Get libgcc.a path with gcc
5921 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
5922 Put CFLAGS last in the compilation rules.
5923 Add -I../bfd to INCLUDES so sysdep.h is found.
5924
5925 Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5926
5927 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
5928
5929 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
5930 dependent on RELOCATING, not RELOCATION.
5931 * hp3hpux.sh (SHLIB_PATH): Define it.
5932
5933 Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5934
5935 * ldfile.c (try_open): If opening without the extension fails,
5936 try with the extension even if -v or -V was given.
5937 had_script is imported (from ldgram.y), not exported.
5938
5939 Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
5940
5941 * Makefile.in: remove parentdir support, use INSTALL_XFORM
5942
5943 Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
5944
5945 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
5946 * ldgram.y (statement_list_opt): New nonterminal, either empty or
5947 statement_list.
5948 (section): Use statement_list_opt, not statement_list.
5949 * m68kcoff.sc-sh: Gather constructors and destructors and define
5950 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
5951 * sa29200.sc-sh: Gather constructors and destructors and define
5952 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
5953
5954 Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
5955
5956 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
5957 * configure.in: No longer need to configure to get sysdep.h.
5958
5959 Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5960
5961 * Makefile.in: remove install:all and install-info:info
5962 dependencies (these cause some spurious rebuilds at 'make install'
5963 time)
5964
5965 Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
5966
5967 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
5968 (mips-idt-ecoff*): Added trailing '*'.
5969 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
5970 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
5971 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
5972
5973 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
5974 incorrect definitions.
5975
5976 Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
5977
5978 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
5979 symbols, unless stripping.
5980
5981 Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
5982
5983 * Makefile.in: configure looks for ####, so remove lines with many
5984 '#' characters.
5985 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
5986 and HOSTING_LIBS correctly so that ``make check'' will work.
5987
5988 Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
5989
5990 * mips.sc-sh: Define _etext, _edata, and _end, in addition
5991 to etext, edata, and end. Needed for IRIX 4.0.5F.
5992 Patch from mwp@iconix.oz.au (Michael Paddon).
5993
5994 * Version 2.2.1 released.
5995
5996 Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5997
5998 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
5999 * mipsbsd.sh (EMULATION_NAME): Use new file name.
6000
6001 Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6002
6003 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
6004 properly right now.
6005
6006 * Version 2.2 released.
6007
6008 Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
6009
6010 * ldver.c (ldversion): Bump version number to 2.2.
6011
6012 Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
6013
6014 * NEWS: New file.
6015
6016 Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
6017
6018 * mips.sc-sh: Don't define BSS_VAR unless relocating.
6019
6020 Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
6021
6022 * Makefile.in (mkscript.o, mkscript): Build mkscript via
6023 mkscript.o, rather than directly from mkscript.c.
6024
6025 Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6026
6027 * configure.in: Look for ${target_makefile_frag} relative to
6028 ${srcdir}, not relative to build directory.
6029
6030 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
6031 * configure.in: Recognize hppa*-hp-osf.
6032 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
6033 (em_hppaosf.c): Build it.
6034 * config/hppaosf.mh, hppaosf.mt: New files.
6035
6036 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
6037 some system header files. All uses changed.
6038
6039 * configure.in: Recognize i386-aix configurations as i386-coff
6040 targets.
6041
6042 * configure.in: Recognize m68*-*-hpux.
6043 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
6044 the value of STACKZERO.
6045 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
6046 (em_hp3hpux.c): Build it.
6047 * hp3hpux.sh, config/hp300hpux.mt: New files.
6048
6049 Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
6050
6051 * mips.sc-sh: Put constructors in the .data section.
6052 * Makefile.in (cdtest): Added dependency on ld.new.
6053
6054 Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
6055
6056 * Makefile.in: Change definition of $(tooldir) to match FSF.
6057 * vax.sh, config/vax.mt, configure.in, Makefile.in:
6058 Support VAX Ultrix and BSD.
6059
6060 Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6061
6062 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
6063
6064 Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
6065
6066 * ldlang.h (struct memory_region): Change `length' and
6067 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
6068 * ldlang.c, mri.c: Corresponding changes, plus lint.
6069
6070 Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
6071
6072 * configure.in: For all i386 targets, accept i486 as well.
6073
6074 Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
6075
6076 * ldlang.c (wild_doit): Preserve all flags for a
6077 SEC_SHARED_LIBRARY section.
6078 (size_input_section): Consider any SEC_HAS_CONTENTS section when
6079 computing largest_section.
6080
6081 Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
6082
6083 * ldlang.c (lang_output_section_statement_lookup): Initialize all
6084 fields of newly created structure.
6085
6086 Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
6087
6088 * ldmain.c (g_switch_value): New variable.
6089 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
6090 (command_line_option): Accept -G and set g_switch_value.
6091 * ldlex.l (COMMAND): Accept -G.
6092 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
6093
6094 Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6095
6096 Support for linking and loading at different places:
6097
6098 * ldlex.l: Add "AT" keyword.
6099 * ldgram.y: Cleanup, and parse AT.
6100 * ldlang.c (print_output_section_statement): Print output address
6101 of section in map. (lang_size_sections): Fill sections' lma with
6102 load address.
6103 * ldlang.h (lang_output_section_statement_type): Add load_base
6104 information.
6105
6106 * ldindr.c (add_indirect): Keep more information in the alias
6107 symbol chain.
6108 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
6109 attribute from an input section.
6110 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
6111 default. (Q_enter_file_symbos): Indirect symbols now are known by
6112 their section, not a special symbol flag.
6113 * ldsym.c (write_file_locals): Indirect symbols aren't local.
6114 (write_file_globals): Write the mapping for an indirect symbol.
6115 * relax.c (build_it): When forced to write a NEVER_LOAD section,
6116 fill it with zeros.
6117
6118 Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
6119
6120 * ld.texinfo: changes for q1
6121
6122 Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6123
6124 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
6125
6126 Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6127
6128 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
6129
6130 Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
6131
6132 * mips.sc-sh: Added variables which may be overridden by a
6133 specific emulation.
6134 * mipsidt.sh: New file; emulation for IDT MIPS board.
6135 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
6136 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
6137 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
6138 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
6139
6140 Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6141
6142 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
6143 ralphc@pyramid.com.
6144 * i386bsd.sh, config/i386bsd.mt: New files.
6145 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
6146
6147 Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
6148
6149 * mri.c: Add extern declaration of strdup.
6150 * ldsym.c (KEEP macro): Add spaces around '=' for the
6151 sake of old (e.g. PCC) compilers.
6152
6153 Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
6154
6155 * ldver.c: Bump to version 2.1.
6156
6157 Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6158
6159 * ldgram.y: allow section types without address expressions.
6160 * ldlang.c (lang_relocate_globals): avoid possible hang with
6161 undefined but unreferenced symbols.
6162 * relax.c (relax_section): don't complain if the script file isn't
6163 relaxable but -relax is set
6164
6165 Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6166
6167 * configure.in: go32 is the 3rd part of the triple, not the 2nd
6168
6169 Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
6170
6171 * mipsbig.sh: New file. Big endian MIPS emulation.
6172 * config/mips-big.mt: New file. Use mipsbig emulation.
6173 * configure.in (mips-sgi-irix*): Use target mips-big.
6174 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
6175 (em_mipsbig.c): New target. Uses mipsbig.sh.
6176
6177 Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
6178
6179 * mips.sc-sh: Put .scommon sections into .sbss section.
6180
6181 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
6182 rather than always putting them in bfd_com_section.
6183 * ldlang.c (lang_common): If a common symbol is not in
6184 bfd_com_section, put in a section of the same name, rather than
6185 always putting it in section COMMON.
6186
6187 Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
6188
6189 * ldmain.c (subfile_wanted_p): If we already have a common
6190 definition of a symbol, don't necessarily pull in an object file
6191 that provides a non-common definition.
6192
6193 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
6194 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
6195 linker.
6196 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
6197 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
6198
6199 Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
6200
6201 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
6202 the link to it.
6203
6204 Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
6205
6206 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
6207 checking for equality to bfd_com_section.
6208
6209 Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
6210
6211 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
6212 targets, linker script.
6213 * mipslit.sh: New file. Little endian MIPS emulation.
6214 * config/mips-lit.mt: New file. Use mipslit emulation.
6215 * configure.in (mips-dec-ultrix*): Use target mips-lit.
6216 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
6217 (em_mipslit.c): New target. Uses mipslit.sh.
6218
6219 Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
6220
6221 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
6222 $(tooldir)/bin/gld, so that gcc can find it with or without
6223 collect2.
6224
6225 Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6226
6227 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
6228 write_norel. All linking is now done via write_relax. Call
6229 ldsym_write before calling write_relax.
6230 * relax.c: Added copyright.
6231 (write_relax): Renamed from write_relaxnorel. Added relocateable
6232 argument. seclet_dump renamed to bfd_seclet_link.
6233 * relax.h: Added copyright.
6234
6235 Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6236
6237 * ldmain.c (decode_library_subfile): Patch from
6238 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
6239
6240 Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6241
6242 * config/vxworks960.mt renamed to config/i960.mt
6243
6244 * configure.in: sparc-aout emulates a sun4, as does
6245 sparc*-vxworks, i960-nindy uses gld960 emulation
6246
6247 Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6248
6249 Fix support for NOLOAD, add INCLUDE
6250 * ldfile.c (ldfile_open_command_file): pass file name to
6251 lex_push_file.
6252 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
6253 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
6254 attribute.
6255
6256 Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6257
6258 * Makefile.in, config.h: no more default emulation. Make the lack
6259 of emulation a compile time error
6260
6261 Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6262
6263 * configure.in: recognise all sparclite variants, not just 'sparclite'
6264
6265 Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
6266
6267 * m68kcoff.sc-sh: define _end as well as end, for consistency with
6268 aout.sc-sh.
6269
6270 * configure.in: accept *-ericsson-ose for any m68k CPU.
6271
6272 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
6273 for each output section.
6274
6275 Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
6276
6277 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
6278 macro bfd_asymbol_bfd as appropriate.
6279 * Makefile.in: Un-duplicate ldlex.c dependency.
6280 * condigure.in: Replace my_host case table by sourcing
6281 ../bfd/configure.host. Allow std-host as the default.
6282 * ldmisc.c: Change logic for C++ name demangling: There is
6283 no initial '_' to remove from stab-derived function names.
6284
6285 Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6286
6287 * ldlang.c (lang_init_script_file): don't attach the output file
6288 sections to the script file.
6289
6290 Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6291 * ldlang.c (wild): run expansion loop over command line bfd too.
6292 (lang_ini_script_file): initialize more parts of the command line
6293 bfd.
6294 * ldlex.l: fix DEFINED start states.
6295
6296 Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6297 -y support
6298 * ld.texinfo: new doc.
6299 * ldgram.y, ldlex.l: understand -y<symbol>
6300 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
6301 print info. (add_ysym): new function.
6302 * ldsym.h: (ldsym_type): new define SYM_Y.
6303
6304 Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
6305
6306 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
6307 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
6308 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
6309 macros with PARAMS. Recreational cleanup. Update copyrights.
6310
6311 Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6312
6313 * Makefile.in: pass down the bfd source directory for includes
6314
6315 Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
6316
6317 * ldlang.c (lang_size_sections): don't change size and address for
6318 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
6319 sections.
6320
6321 Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6322
6323 * relax.c (build_it): re-enable the processing of data_statements
6324 in scripts, makes counted contructor lists work again.
6325
6326 Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
6327
6328 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
6329
6330 Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
6331
6332 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
6333 and end.
6334
6335 Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
6336
6337 * Support for i386-sysv.
6338 configure.in: check for i386-*-sysv* and i386-*-sco*.
6339 i386coff.sc-sh: rewrote to support SVR3 by default.
6340 ldctor.c (find_constructors): preserve stat_ptr.
6341 ldlang.c (wild_doit): initialize vma and size of new output
6342 section to corresponding input section. This is required for
6343 shared library support.
6344 (lang_size_sections): don't modify vma and size of sections which
6345 are never loaded (for shared libraries).
6346 ldwrite.c (copy_and_relocate): copy the contents of any section
6347 which has contents, not just sections which are loaded (for shared
6348 libraries).
6349
6350 Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6351
6352 * ldlang.c (size_input_section): count the sizes of all sections
6353 we allocate.
6354
6355 Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6356
6357 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
6358 to demangle symbols better
6359
6360 Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
6361
6362 * ldlang.c (lang_finish): don't warn if -e start symbol does not
6363 exist when linking with -r.
6364
6365 Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
6366
6367 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
6368 .bss segment.
6369
6370 Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6371
6372 * ldmain.c (linear_library): don't even think about processing
6373 an object file if it's already been done
6374
6375 Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6376
6377 * configure.in: the hp9000/300 config file is now hp300
6378
6379 Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6380
6381 * config/z8ksim.mt: new file
6382
6383 Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
6384
6385 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
6386 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
6387
6388 * ld.h (strip_symbols_type): Add value STRIP_SOME.
6389 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
6390 * ldlang.c (lang_add_keepsyms_file): New function.
6391 * ldlex.l: Handle "-retain-symbols-file".
6392 * ldsym.c (keepsyms_file, kept_syms): New vars.
6393 (process_keepsyms): New functihon; reads file, marks symbols for
6394 saving.
6395 (write_file_locals): File symbols should always be kept.
6396 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
6397 and "-s". Process retain-symbols file before setting symtab.
6398 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
6399 (keepsyms_file, kept_syms): Declare them.
6400
6401 * ldmain.c (main): Non-fatal errors should still cause non-zero
6402 exit status even with -r.
6403
6404 Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6405
6406 Added initial support for the z8k
6407 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
6408 * configure.in, Makefile.in: modified to reflect above
6409
6410 * ldlang.c (lang_check): when linking conflicting architectures,
6411 make the output file reflect at least one of the bad inputs.
6412
6413 Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
6414
6415 * Makefile.in (install): if $(tooldir) exists, install ld in
6416 $(tooldir)/bin.
6417
6418 Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6419
6420 * Makefile.in, configure.in: modified to support i386-coff
6421 * i386coff.sh: new file
6422
6423 Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
6424
6425 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
6426 added m68k-coff emulation mode, stolen from a29k emulation.
6427 Almost certainly wrong, but perhaps better than sun3.
6428
6429 Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
6430
6431 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
6432 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
6433 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
6434 This is one character shorter, and lets people build on
6435 SVR3 system. (ld__h8300xray.[co] was the killer there;
6436 h8300xray.sc-sh is also overlong, but seems harmless.)
6437 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
6438 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
6439 * configure.in: Add host isc.
6440
6441 * ldver.c: Call it version 2.0.
6442
6443 Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
6444
6445 * ldver.c: Bump to version 0.98.
6446 * TODO: New file.
6447
6448 * Makefile.in: Added mostlyclean, distclean, realclean rules.
6449
6450 Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
6451
6452 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
6453 * ldlex.l: Moved comment() to end, since some compilers
6454 otherwise have problems with input() used before it is defined.
6455
6456 Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6457
6458 * configure.in: added Solaris 2 and Irix 4 host support.
6459
6460 Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6461
6462 * Makefile.in: remove -S flag from the FLEX definition
6463
6464 * configure.in: rewrote, using new style case statement. use
6465 m68k.mt for m68k-aout systems
6466
6467 Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
6468
6469 * Makefile.in: map "ld" through program_transform_name when
6470 installing.
6471
6472 Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
6473
6474 * cplus-dem.c: Removed. Use the version in libiberty now.
6475 * ldmisc.c: Use new libiberty version of cplus_demangle().
6476
6477 Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
6478
6479 * gld960.em (gld960_choose_target): default to little endian, not
6480 big endian.
6481
6482 Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6483
6484 * ldlang.c (lang_process): don't pass null pointers when
6485 abs_output_section is what is required.
6486 * ldwrite.c (ldwrite): use malloc to allocate the largest space
6487 used, and pass that down.
6488 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
6489 than alloca.
6490
6491 Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
6492
6493 * configure.in, config/ose68.mt: renamed OSE to ose.
6494
6495 Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
6496
6497 * ldsym.c (write_file_locals): Reorder check for common or
6498 undefined symbols so that it works.
6499
6500 Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
6501
6502 * configure.in: accept all m68K family members.
6503
6504 * Makefile.in: always create installation directories.
6505
6506 Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6507
6508 * ldlex.l: now parses comment correctly, added ~ to acceptable
6509 chars in filenames
6510
6511 * ldexp.c (exp_unop): pass down abs_output_section - now can have
6512 unary -ve constants.
6513
6514 * ldlang.c (lang_finish): warn when an entry symbol supplied on
6515 the command line can't be found.
6516
6517 Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6518
6519 * ldlang.h: add new field "loadable" to output_section_statement.
6520 * ldlang.c (lang_output_section_statement_lookup): initilize new
6521 field. (wild_doit): if new field is not set, then stop output
6522 section from being loadable.
6523 (lang_enter_output_section_statement): set the field from the
6524 NOLOAD keyword
6525 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
6526 * h8300hms.sc-sh, h8300hms.em: get -r right.
6527
6528 Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
6529
6530 * ldint.texinfo: New internals manual (beginnings thereof).
6531 * PORTING: Removed, merged into ldint.texinfo.
6532
6533 Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
6534
6535 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
6536 cdtest.exp: A test program (copied from libg++/test-install)
6537 that tests that constructor and destructors are handled
6538 corrrectly.
6539
6540 Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6541
6542 * Makefile.in (install): install from ld.new, renaming during the
6543 copy, or else the next 'make install' needs to re-link ld.
6544
6545 Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
6546
6547 * configure.in: generalise hp recognition (from sef).
6548
6549 Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6550
6551 * configure.in: recognize bsd and hpux hppa configurations.
6552 error messages echo to stderr, not stdout
6553
6554 Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6555
6556 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
6557 ldmisc.c: removed rcsid's.
6558
6559 Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6560
6561 * ldlang.c (lang_map): print changes in sizes due to relaxing
6562 (size_input_section): maintain the delta information.
6563 * ldlang.h: add new field to struct to contain delta info.
6564 * relax.c (relax_section): complain if input not relaxable.
6565 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
6566 start of a filename
6567
6568 Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6569
6570 * ldmain.c(main): prevent -r and -relax from being on at the same
6571 time.
6572
6573 Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6574
6575 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
6576 aliasing problems
6577
6578
6579 Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6580
6581 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
6582 * ldexp.c: lint
6583 * ldlang.c(open_output): set the target arch and machine as soon
6584 as we can. (lang_size_sections): use new macros for setting vma
6585 * ldwrite.c: lint
6586
6587 Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
6588
6589 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
6590 Also deleted an unreachable path to wrs.
6591
6592 Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
6593
6594 * Makefile.in (install): use -d test for $tooldir before
6595 installing ld there so that $tooldir can be inherited from
6596 top-level Makefile.
6597
6598 Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
6599
6600 * ldlang.c: Two non-substantial changes for the sake of
6601 the old Portable C Compiler.
6602
6603 Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6604
6605 * ldgram.y, ldlex.l: parse ABSOLUTE
6606 * ldexp.c: add support for ABSOLUTE
6607
6608 Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
6609
6610 * Makefile.in: Added default definitions for HOSTING_CRT0,
6611 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
6612 * config/*.mh: Miscellaneous clean-up: Removed definitions
6613 of YACC (since it is not longer used in the Makefile).
6614 Remove HOSTING_* definitions that are subsumed by the
6615 ones added to Makefile.in. Removed most definitions of CC.
6616 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
6617 These are no longer needed.
6618
6619 Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
6620
6621 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
6622 rules, since these are used when building a distribution.
6623 * Makefile.in (ldlex.c): Don't re-direct output, since that
6624 leaves a bogus output files if it fails.
6625
6626 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
6627 * ldlex.c: Fix some unnecessary flex-specific-isms.
6628
6629 Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6630
6631 * ldgram.y: move spurious semicolon
6632 * ldexp.h: fix prototype
6633
6634 Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
6635
6636 * ld.texinfo: references to linker now say "ld" not "gld".
6637
6638 Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6639
6640 changed calling convention for Q_enter_global_ref
6641 * ldexp.c, ldlang.c, ldmain.c: reflect this
6642 * ldver.c: bump version to 1.97.1
6643 * ldindr.c (add_indirect): when an edict declaring an indirect
6644 symbol is found, make sure that any ideas about the symbol being
6645 common are changed if it now known to be defined.
6646 * ldmain.c (linear_library): complain once if archive isn't
6647 ranlibbed.
6648 * ldlang.h, ldlang.c: make room for and initialize the complain
6649 once field.
6650
6651 Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6652
6653 * Makefile.in: use flex & bison from ../ if they exist.
6654
6655 Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6656
6657 * relax.c (build_it): don't allocate space in the output file for
6658 stuff if -R flag applys to it.
6659 * ldfile.c: merge in VMS filename support
6660 * ldmain.c (main): take out ./ from library path, and close file
6661 before unlinking. Make multiple defs of a symbol create an
6662 unexecable file.
6663 * ldmisc.c: fatal errosrs delete output file
6664
6665 Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
6666
6667 * ldver.c: Increase version number to 1.97, for consistency
6668 with ../binutils.
6669
6670 Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
6671
6672 * Makefile.in: FLEX -> LEX.
6673
6674 * ld.texinfo: {} -> @{@}.
6675
6676 Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
6677
6678 * ld.texinfo: describe alternate, MRI-compatible linker scripts
6679 (and associated change in -c option, now used for these scripts)
6680
6681 Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6682
6683 * ldver.c: Bumped version to 1.96 - new release, resync with the
6684 bfd too #.
6685 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
6686 rather than with raw malloc, makes it easier to track where memory
6687 is going.
6688 * ldsym.h, ldsym.c: create obstack for all global symbols too.
6689 * ldwrite.c (ldwrite): moved malloc so only used when needed.
6690 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
6691
6692
6693 Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
6694
6695 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
6696
6697 * Makefile.in: use bootstrap for check.
6698
6699 Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6700
6701 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
6702 PUBLIC.
6703 * Makefile.in: now use flex, not lex
6704 * ldlex.l, ldlang.c, ldctor.c: lint
6705
6706 Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6707
6708 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
6709 different sorts of filenames on the command line than in a script.
6710
6711 Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6712
6713 * Makefile.in: rework CFLAGS so that they can be passed on the
6714 make command line. Remove MINUS_G. Default CFLAGS to -g.
6715
6716 Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6717
6718 * relax.c: added handling for new "padding" seclet type, used to
6719 fill out gaps between section.
6720 * ldgram.y, ldlex.l: now -defsym on the command line is done
6721 properly.
6722
6723 Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6724
6725 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
6726
6727 Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6728
6729 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
6730 scripts.
6731
6732 Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
6733
6734 * Makefile.in (install): Install second copy in $(tooldir)/bin
6735 without $(program_prefix), since that's what gcc expects.
6736
6737 Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6738
6739 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
6740 * h8300*: fix bit rot and add support for h8300xray target
6741 * go32.sh: target emulation for go32.
6742
6743 Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
6744
6745 * gld960.em, i960.sc-sh. Fix i960 bit rot
6746
6747 Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
6748
6749 * Makefile.in: install man page.
6750
6751 Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6752
6753 * config/mt-<foo> renamed to <foo>.mt
6754 * config/mh-<foo> renamed to <foo>.mt
6755 * configure.in changed to reflect this
6756 * genscripts.sh now make .xbn files rather than .xN files
6757
6758 Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
6759
6760 * ldver.h: fix decl of ldversion.
6761
6762 Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
6763
6764 * Makefile.in: added check target.
6765
6766 Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6767
6768 * ldmain.c (Q_enter_file_symbols): now aliases work again
6769
6770 Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
6771
6772 * Makefile.in: added clean-info target.
6773
6774 Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6775
6776 * ldexp.c (exp_print_tree): don't try and follow null pointers
6777 around.
6778 * ldgram.y: remove 11 shift reduce errors
6779
6780 Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6781
6782 * Makefile.in: added tooldir and program_prefix.
6783
6784 Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
6785
6786 * ldlang.c (size_input_section): don't move absolute sections
6787 around!
6788
6789
6790 Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
6791
6792 * cplus-dem.c: yet another copy of this - maybe it should go into
6793 libiberty ?
6794 * ldgram.y: now -V and -v have different actions
6795 * ldver.c: if -V, prints list of emulations compiled in
6796 * ldmisc.c: support for cplus demangling
6797
6798
6799 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
6800
6801 * Makefile.in, configure.in: removed traces of namesubdir,
6802 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
6803 copyrights to '92, changed some from Cygnus to FSF.
6804
6805 Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
6806
6807 * Makefile.in: Change mkscript rule into one for ./mkscript
6808 (for the sake of makes that don't realize they're the same).
6809 * PORTING: Add more details.
6810 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
6811
6812 Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
6813
6814 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
6815 config/mt-hp300bsd: New port to hp300 running BSD.
6816
6817 Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
6818
6819 Major rewrite of how ld is configured. The major idea
6820 is to use shell scripts to generate everything.
6821 * generic.em replaces ldtemplate.
6822 * Other *.em files replace various *.c files.
6823 A *.em file is a shell script that generates the corresponding
6824 ld__*.c file that implements an emulation. This is usually
6825 a straight 'cat' of a here-document, possibly with substitutions.
6826 * Script files (*.sc) are places by *.sc-sh scripts.
6827 Again, these are simple shell scripts that 'cat'
6828 here-documents, usually with some substitutions.
6829 The output a *.sc-sh is a script file.
6830 * Each emulation is defined by a short shell script with
6831 extension *.sh that specifies the emulation-specific
6832 parameters (such as the name of the *.sh-sc and *.em
6833 files to use).
6834 * genscript.sh is the master shell script used to generate
6835 an emulation. It is passed various argument, including
6836 the name a the emulation-speciic *.sh file that it
6837 "sources" to set variables to emulation-specifc parameters.
6838 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
6839 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
6840 * config/mh-foo: Rename LDEMULATION names as appropriate
6841 (usually 'gldfoo' -> plain 'foo').
6842 * ldwrite.c: Fixed a typo in a comment.
6843 * Makefile.in: Major changes. Removed some the sed
6844 magic to converts scripts, since that is now handled
6845 by genscripts.sh and the *.sc-sh scipt generators.
6846 * config.h: Remove a bunch of macros defining emulations
6847 and targets. This becomes one less file to edit when
6848 adding emulations or targets.
6849 * ldemul.h (struct ld_emulation_xfer_struct): Add
6850 emulation_name and target_name fields.
6851 * ldemul.c, ldemul.h: Define some default functions used
6852 by most emulations (and remove from the *.em scripts).
6853 * ldemul.c (ldemul_choose_target): Search the new
6854 ld_emulations array using a loop (instead of a hardwired
6855 nested if statement).
6856 Define the ld_emulation from the automatically-geenrated
6857 ldemul-list.h. This means you no longer have to edit ldemul.c
6858 to add a new emulation.
6859 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
6860 their expansions, since the former no longer exist.
6861 * PORTING: A very rough first draft of a porting guide.
6862
6863 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
6864 to be terminated by a new-line (instead of requiring a semicolon).
6865
6866 Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6867
6868 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
6869 tests for NULL pointers all over the place.
6870 * ldlang.c (lang_process): remember to relocate global symbols
6871 *after* relaxing has done it stuff.
6872
6873 Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6874
6875 * config/mt-coff-h8300: use EMUL like everything else
6876 * ldlang.c: (print_padding_statement): print the right address.
6877 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
6878
6879
6880 Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6881
6882 * ldlex.l: Put pack -noinhibit-exec and -sort-common
6883 * ldlang.c (print_data_statement): print the right address.
6884
6885 Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
6886
6887 * Makefile.in: The rule for testing ld by re-linking itself
6888 via an intermediate -r link was moved to the ld1 rule
6889 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
6890 which allows the bootstrap rule to work.
6891 * ldctor.c (find_constructors): Don't create a constructor
6892 list if it is already defined (as would happen if ld is
6893 invoked by collect).
6894
6895 Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6896
6897 * config/mh-sparc.h: now uses libgcc.a
6898 * ldmain.c: quit using exit
6899 * *sc: use *(COMMON) rather than [COMMON]
6900 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
6901 to allow preprocessing of .l file.
6902 * Makefile.in: New ldlex.l mangling
6903 * ldexp.c (fold_binary): perform expressions with % and / in
6904 integer.
6905 * ldfile.c (open_a): open archives on VMS in a special way
6906
6907
6908 Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6909
6910 * ldgram.y: map -M behave in the same way as -Map (sets file name
6911 to be "-".
6912 * ldsym.c, ldlang.c: remember that size of a section is dependent on
6913 whether or not relaxing has been done.
6914 * ldmain.c: don't open a map file if it doesn't have a name
6915 * relax.c: all the brains have moved into bfd.
6916 * ldwrite.c: ammend comment
6917
6918 Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6919
6920 * Makefile.in: added relax, also made three stage go through a
6921 partial link stage.
6922 * relax.c : added
6923 * config.h: if GNU960 defined, then default emulation mode is
6924 GLD960
6925 * ldexp.h, ldexp.c: map to file hooks
6926 * ldlang.c: map to file hooks
6927 * ldgram.y: added -Map -relax
6928 * ldlex.l: added -relax, -Map
6929 * ldmain.c: open map file
6930 * ldmisc.c: support for map file
6931 * ldwrite.c: new relax magic
6932
6933 Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
6934
6935 * Makefile.in, config/tm-*.h: Clean up make output, only
6936 pass DEFAULT_EMULATION to ldmain.c.
6937
6938 Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
6939
6940 * ldver.c: Bump to version 1.94.
6941
6942 Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
6943
6944 * Makefile.in: infodir belongs in datadir.
6945
6946 Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
6947
6948 * Makefile.in: Pass -y to bison. (Again;
6949 accidentally deleted by Rich.)
6950 * news.sc, ldgld68k.sc: Define __end as well as _end.
6951
6952 Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
6953
6954 * ldindr.h: added to contain prototypes of ldindr.c
6955 * ldfile.c: include ctype.h
6956 * ldmain.c: include the requried prototype headers
6957 * ldwrite.c: get_reloc_upper_bound has been renamed
6958 bfd_get_reloc_upper_bound
6959
6960 Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
6961
6962 * Makefile.in: punt "fundamental" mode because it breaks my emacs
6963 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
6964 spaces following hyphens, bsd make can't cope. added
6965 standards.text support and made it look like all the other
6966 makefiles.
6967
6968 * configure.in: configure now runs entirely in objdir so make file
6969 existence checks against ${srcdir}. Mark this directory as
6970 target dependent.
6971
6972 Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
6973
6974 * Makefile.in: idestdir and ddestdir go away. Added copyrights
6975 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
6976 and mandir now keyed off datadir by default.
6977
6978 Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
6979
6980 * ldver.c: Bumped version to 1.93.
6981 * Makefile.in: Pass -y to bison.
6982
6983 Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
6984
6985 * config.h: h8 is now coff, not ieee
6986 * h8300hds.sc: reflect the same
6987
6988 Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
6989
6990 * ldver.c (ldversion()): Update to 1.92.
6991 * ldctor.c: There are two places constructor sets
6992 can be defined. One of them checked for an existing
6993 duplicate, the other didn't. Unfortunately, the latter
6994 was called after the former ...
6995 So, factor out code for inserting a new element into
6996 constructor_name_list (after checking for a duplicate)
6997 into a new function add_constructor_name, and call
6998 it from both aforementioned places (ldlang_add_constructor
6999 and ldlang_check_for_constructors).
7000
7001 Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
7002
7003 * Makefile.in: Rename .c files generated from ldtemplate
7004 to have names starting with ld__. This helps 'make clean'.
7005
7006 Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
7007
7008 * Makefile.in: Take out the version number for install
7009 * m88kbcs.sc: put in contructor blocks.
7010
7011 Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
7012
7013 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
7014 parameter, a format, and an arg pointer, and rename it to
7015 vfinfo(). Write info() in terms of new vfinfo().
7016 New einfo() is the same as info(), except it writes to stderr.
7017 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
7018 ldmisc.c: Replace "error" calls to info() by new einfo().
7019
7020 Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
7021
7022 * ldlex.l ldgram.y: made -V option do same as -v
7023 * Makefile.in: Added $(MINUS_G) flag so debugging can be
7024 turned off
7025
7026 Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
7027 i386 aout changes from Bob Kukura
7028 * Makefile.in, config.h: added i386aout support
7029 * configure.in: fixed /h-{myhost} typo
7030 * ldgram.y: -MM now gives more boring map.
7031 * ldlang.c: now does D_PAGED flag the right way.
7032 * ldsym.c: -MM flags does the right thing.
7033
7034 Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
7035
7036 * configure.in: Fixed typo. Also, a fix for hp300bsd.
7037 * ldlang.c (init_os): Compensate for BFD change,
7038 where bfd_make_section now returns NULL for a duplicate
7039 section request, instead of the old section.
7040
7041 Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
7042
7043 * ldver.c: Bump to version 1.91 (consistent with binutils).
7044
7045 Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
7046
7047 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
7048 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
7049 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
7050 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
7051 Add or update copyright notices.
7052
7053 Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
7054
7055 * README: New file.
7056 * Makefile.in: Changed installation directory name scheme
7057 to be consistent with gcc. Also changed 'install'.
7058
7059 Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
7060
7061 * Makefile.in: new targets ld.mm, ld.me
7062
7063 Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
7064
7065 * Makefile.in, ldtemplate: Need to use separate scripts
7066 for -n and -N options. Yet more complication.
7067
7068 Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
7069
7070 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
7071 work). Add some lines to avoid Sun Make VPATH bugs.
7072
7073 Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
7074
7075 * news.sc: Add alignment for data segment.
7076 * ldtemplate: Add (yet another) script to get for -n or -N
7077 options. (These need different alignment than ZMAGIC files.)
7078 * Makefile.in: Add stuff for new foo.xn scripts.
7079 These are generated by replacing "ALIGN(0x...00)" by ".".
7080
7081 Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
7082
7083 * Makefile.in: new targets ld.ms, ld-index.ms
7084 ld.texinfo: remove tabs, other cleanups for texi2roff
7085
7086 Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
7087
7088 * ldmain.c (main): Make config.magic_demand_paged be true
7089 by default. Don't the WP_TEXT and D_PAGED flags of
7090 output_bfd here; it's too late, so set it when output_bfd
7091 is created (in ldlang.c). Also fix setting of EXEC_P flag
7092 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
7093 * ldlang.c: Remove some duplicate extern declarations.
7094 * ldgram.y: Fixes to -N and -n options.
7095 * Makefile.in: Recognize upper case letters in sed script
7096 to remove assignments from script files.
7097 * ldtemplate: Don't assukme that -N or -n options
7098 imply use of -r script.
7099 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
7100
7101 Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
7102
7103 * ldtemplate: include bfd.h before sysdep.h.
7104
7105 Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
7106
7107 Restructure configuration scheme for bfd, binutils, ld.
7108
7109 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
7110 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
7111 Change some config names to match other dirs.
7112 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
7113 get defined first.
7114 * config/: Rename some config files to match up h-*.h names.
7115 Remove all the HOST_SYS definitions from the config files.
7116
7117 Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
7118
7119 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
7120 * ldtemplate: Remove ldfile_add_library_path calls;
7121 just use the SEARCH_DIR commands in the script files.
7122 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
7123 the SEARCH_DIR commands in the scripts (using ugly sed magic).
7124 This is primarily intended for cross-linking, where you would
7125 place libaries in a different place than native libraries.
7126 Also, emulations made from ldtemplate now use $(srcdir).
7127 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
7128 form; people can use the Makefile's LIB_PATH to override.
7129
7130 Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
7131
7132 * Makefile.in: fix target ld.dvi, add target ld.info
7133 ld.texinfo: make info filename ld.info
7134
7135 Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
7136
7137 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
7138 Make).
7139 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
7140 few BFD types & enums.
7141
7142 \f
7143 Local Variables:
7144 mode: change-log
7145 left-margin: 8
7146 fill-column: 74
7147 version-control: never
7148 End: