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