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