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