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