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