1 Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
3 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
5 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
6 it looks like we might be linking in two different versions of the
7 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
9 Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
11 * ldlang.c (lang_size_sections): Increment the section size when a
12 padding statement is encountered.
14 Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
16 * configure.in: Look for --enable-shared. Change the value of
17 BFDLIB when linking against a shared library on SunOS.
19 * configure.host: If using a shared BFD library, try to pass a
20 reasonable -rpath option when linking.
21 * Makefile.in (BFDLIB): Set to @BFDLIB@.
23 Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
25 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
26 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
28 Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
30 Support for building bfd and opcodes as shared libraries, based on
31 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
32 * configure.in (HLDFLAGS): New substitution.
34 * configure.host: Set HLDFLAGS on SunOS.
35 * Makefile.in (HLDFLAGS): New variable.
36 (BFDDEP): New variable.
37 (BFDLIB): Change to -L../bfd -lbfd.
38 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
40 (check): Set LD_LIBRARY_PATH in the environment.
42 Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
44 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
45 in the read-only section, not read/write unless we are making a
47 (.debug*): Add dwarf debug sections.
48 (.rela.{sdata*,sbss*}): Add sections.
50 Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
52 * configure: Regenerate.
54 Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
56 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
57 for SVR4 compatibility.
59 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
61 Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
63 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
64 * emultempl/pe.em (definfo init): Make the default stack reserve
67 Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
69 * configure.tgt (m68*-apple-aux*): New target.
70 * emulparams/m68kaux.sh: New file.
71 * scripttempl/m68kaux.sc: New file.
72 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
73 (em68kaux.c): New target.
75 Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
77 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
78 -bnoentry, since the right thing tends to happen anyhow.
80 Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
82 * ld.texinfo, ld.1: Document -export-dynamic.
84 Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
86 * emultempl/sunos.em: Check for native compile by comparing
87 ${target} and ${host}.
89 Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
91 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
92 TEXT_START_ADDR to allow use on IDT and PMON systems.
94 Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
96 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
99 Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
101 * configure.tgt (sparc64-*-solaris2*): New configuration.
102 (sparc64-*-aout*): Renamed from sparc64*.
104 Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
106 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
107 * genscripts.sh: Set host, target and target_alias variables.
108 Check for native compile by comparing ${target} and ${host}.
109 * emultempl/elf32.em: Likewise.
110 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
112 Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
114 * scripttempl/elfppc.sc: Refine eabi support to better support
115 .sdata, .sdata2, .sbss, etc. sections.
117 Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
119 * ldgram.y (%union): Add phdr field.
120 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
121 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
122 (opt_hdrs, hdr): Remove.
123 (phdr_val): New nonterminal.
124 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
125 and phdrs parameters. Add flags parameter.
126 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
128 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
129 phdrs fields. Add flags field.
130 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
131 (lang_new_phdr): Update declaration.
132 * ld.texinfo: Document FLAGS.
134 Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
136 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
137 Don't make a shared library because of an undefined reference to
138 __GLOBAL_OFFSET_TABLE_.
140 Add some Irix 5 support, mostly from Kazumoto Kojima
141 <kkojima@info.kanagawa-u.ac.jp>:
142 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
143 (SHLIB_TEXT_START_ADDR): Define.
144 (OTHER_GOT_SYMBOLS): Define.
145 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
146 (EXECUTABLE_SYMBOLS): Don't define.
147 (DYNAMIC_LINK): Don't define.
148 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
149 * scripttempl/elfmips.sc: New file.
150 * configure.host (mips*-dec-bsd*): Change mips to mips*.
151 (mips*-sgi-irix4*): Likewise.
152 (mips*-sgi-irix5*): New entry.
153 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
155 (eelf32lmip.c): Likewise.
157 Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
159 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
160 .rela.got.neg section.
162 Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
164 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
166 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
167 ANSI_PROTOTYPES is defined. Remove special handling of
168 WINDOWS_NT. Various indendation fixes.
169 (vfinfo): Change fmt parameter to const char *.
170 (info_msg): Write <stdarg.h> version.
171 (einfo, minfo, finfo): Likewise.
172 (info_assert): Change file parameter to const char *.
173 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
174 defined, use a real prototype.
175 (info_assert): Change first parameter to be const char *.
177 Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
179 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
180 in old support that 2.7.2 needs, but the current compiler does
183 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
184 correct Linker script template.
186 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
188 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
190 Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
192 * scripttempl/alpha.sc: Put .rconst right after .rdata.
194 Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
196 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
197 sort using right pointer.
199 Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
201 * scripttempl/elfppc.sc: Remove support for creating special
202 labels for eabi section begin/end here. The compiler now uses
203 crt{i,n}.o to create these symbols.
205 Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
207 * configure.host: Change existing Linux HOSTING_CRT0 to be used
208 for a.out only, and put in appropriate HOSTING_CRT0 and
209 HOSTING_LIBS values for Linux ELF.
211 Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
213 * scripttempl/h8300.sc: Use all 64K for ram.
214 * scripttempl/h8300h.sc: Define 256K ram size.
216 Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
218 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
219 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
220 was used, regardless of whether -bE was used.
222 Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
224 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
225 relocateable before calling ldctor_build_sets if the output file
226 is in an XCOFF format.
228 Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
230 * ldwrite.c (build_link_order): When handling a data statement, if
231 the endianness of the output file is unknown, use the endianness
234 Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
236 * mpw-config.in: Recognize mips-*-* as equivalent to
238 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
239 * mpw-ld.r: Add version resources.
240 (cfrg): Use symbolic instead of literal name for executable.
242 Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
244 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
246 Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
248 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
249 (print_statement_list): Renamed from print_statement. All callers
251 (print_statement): New function to print just one statement.
252 (print_{data,reloc,padding}_statement): Don't crash if
253 output_section == NULL.
254 (dprint_statement): New function.
256 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
257 call to sort_sections.
259 Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
261 * emultempl/aix.em (unix_ld): New static variable.
262 (gld${EMULATION_NAME}_parse_args): Handle -unix.
263 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
264 gc as false and export_defineds as true to size_dynamic_sections.
266 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
267 phase if the current section is abs_output_section.
270 Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
272 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
275 Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
277 * ldgram.y (PHDRS): New token.
278 (ifile_p1): Accept phdrs.
279 (section): Accept phdr_opt at the end of the section definition.
280 (phdr_op): New nonterminal.
281 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
282 * ldlex.l: Accept PHDRS.
283 * ldlang.h (struct lang_output_section_phdr_list): Define.
284 (lang_output_section_statement_type): Add phdrs field.
285 (struct lang_phdr): Define.
286 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
287 (lang_new_phdr): Declare.
288 * ldlang.c (lang_phdr_list): New static variable.
289 (lang_output_section_statement_lookup): Initialize phdrs field.
290 (lang_process): Call lang_record_phdrs.
291 (lang_new_phdr): New function.
292 (lang_section_in_phdr): New function.
293 (lang_record_phdrs): New static function.
294 * ld.texinfo: Document PHDRS.
296 Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
298 * scripttempl/ppcpe.sc: Moved .edata into its own section to
301 Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
303 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
304 HOSTING_LIBS for testing.
305 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
308 Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
310 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
313 Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
315 * configure: Rebuild with autoconf 2.7.
317 Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
319 * scripttempl/pe.sc: Two .junk's is too much junk.
321 Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
323 * configure.in: Use BFD_NEED_DECLARATION.
324 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
325 * configure, config.in: Rebuild with autoconf 2.6.
327 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
328 being unsupported if this is not a relocateable link and the input
329 BFD supports it, since ldctor_build_sets can cope with that case.
331 Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
333 * configure.tgt (powerpc-*-macos*): New target.
334 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
335 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
336 (eppcmacos.c): New target.
337 * mpw-eppcmacos.c: Update.
338 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
340 Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
342 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
343 $(host_canonical) and $(target_canonical).
344 (CXX_FOR_TARGET): Likewise.
346 Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
348 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
349 so the malloc heap begins at a sane place.
351 Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
353 Version 2.6 released.
354 * ldver.c (ldversion): Update to 2.6.
356 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
357 $(GENERATED_*FILES), since they need to be retained by distclean.
358 (maintainer-clean, realclean): Delete them here.
360 Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
362 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
363 base file with FOPEN_WB, not "w".
365 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
366 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
368 (gld${EMULATION_NAME}_before_allocation): Use the environment
369 variable LD_RUN_PATH if -rpath was not used.
370 * ld.texinfo, ld.1: Document LD_RUN_PATH.
372 Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
374 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
375 -bl and -bloadmap options.
377 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
378 report a better error.
380 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
381 new local variable special_sections, and pass it to
382 size_dynamic_sections. Look through the results, and move the
383 sections around in the mapping so that they are defined correctly.
385 Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
387 * ldemul.c (ldemul_default_target): Cast getenv return value.
389 Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
391 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
393 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
396 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
397 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
399 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
400 (gld_$_before_allocation): added hooks for toc construction based
403 Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
405 * ld.texinfo: The linker does not use _main as an entry point.
407 Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
409 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
412 Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
414 * configure.in: Add test for whether free must be declared.
415 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
416 * acconfig.h: Explain NEED_DECLARATION_FREE.
417 * configure, config.in: Rebuild.
419 * lexsup.c (parse_args): Take B:: out of shortopts.
421 Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
423 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
424 for now, as with m68k4kbsd, until shared library support gets
427 * configure.host: For i386 BSD variants, crt0.o lives in
428 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
430 Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
432 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
433 (edelta68.c): New target.
434 * configure.tgt (m68*-motorola-sysv*): New target.
435 * emulparams/delta68.sh: New file.
436 * scripttempl/delta68.sc: New file.
438 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
441 Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
443 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
444 ALIGN and ALIGNMOD statements.
446 * emultempl/aix.em: Include ldgram.h.
447 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
449 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
451 Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
453 * configure.host (alpha-*-linux*): New host.
454 * configure.tgt (alpha-*-linux*): New target.
456 Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
458 * emultempl/aix.em (export_files): Remove.
459 (import_files): Make static.
460 (struct export_symbol_list): Define.
461 (export_symbols): New static variable.
462 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
463 correctly. Call read_file for an export file.
464 (gld${EMULATION_NAME}_before_allocation): Call
465 bfd_xcoff_export_symbol for each export symbol, rather than
466 calling read_file for each export file.
467 (gld${EMULATION_NAME}_read_file): For an export file, make the
468 exported symbols undefined, and store them on the export_symbols
471 Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
473 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
474 Don't hang if last option is unrecognised.
475 (gld_${EMULATION_NAME}_set_symbols): Insert created
476 symbols into ABS output section.
478 Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
480 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
482 (em68k4knbsd.c): New rule.
484 * configure.tgt: Added support for the NetBSD m68k4k arch.
486 * genscripts.sh, ldint.texinfo,
487 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
488 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
489 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
490 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
491 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
492 pc532machaout,rce,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
493 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
494 PAGE_SIZE to TARGET_PAGE_SIZE.
496 * emulparams/m68knbsd.h: Ditto.
497 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
498 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
501 * emulparams/m68k4knbsd.sh: New file.
503 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
505 Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
507 * emultempl/aix.em: Include ldctor.h.
508 (gld${EMULATION_NAME}_after_open): New static function.
509 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
510 (gld${EMULATION_NAME}_find_relocs): New static function.
511 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
512 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
513 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
514 * ldctor.c (struct set_info): Move definition into ldctor.h.
515 (struct set_element): Likewise.
516 (sets): Make non-static.
517 (ldctor_add_set_entry): Add name parameter. Save it in the new
519 (ldctor_build_sets): Avoid being called twice. Pass set element
520 name to lang_add_reloc.
521 * ldctor.h (struct set_info): Move definition here from ldctor.c.
522 (struct set_element): Likewise. Add new field name.
524 (ldctor_add_set_entry): Declare new name parameter.
525 * ldwrite.c (build_link_order): Don't insist that either name or
526 section be NULL in a lang_reloc_statement.
527 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
529 (constructor_callback): Pass name to ldctor_add_new_set_entry for
532 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
534 Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
536 * mpw-config.in: Add PowerMac target support, generate config.h.
537 * mac-ld.r: New file, Mac resources.
538 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
539 * mpw-make.in: Remove.
540 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
542 Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
544 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
545 -static as a synonym for -bnso.
547 * scripttempl/aix.sc: Move special symbols inside sections.
548 Always start .data at 0.
550 Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
552 * Makefile.in (diststuff): Also make info.
553 (maintainer-clean realclean): Also delete *.info*.
555 Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
557 * emultempl/aix.em: Add support for various AIX linker options,
558 for AIX import and export files, and for AIX shared objects.
559 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
561 * ldmain.c (main): Initialize new field link_info.static_link.
563 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
564 (constructor_callback): Likewise.
565 * ldmisc.c (vfinfo): Likewise.
566 * ldwrite.c (build_link_order): Likewise.
568 * ld.texinfo: The MRI ALIGN directive is supported.
570 Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
572 * emulparams/elf32vr4300.sh: Deleted.
573 * emulparams/elf32vr4300el.sh: Deleted.
574 * emulparams/elf32b4300.sh: Added.
575 * emulparams/elf32l4300.sh: Added.
576 * configure.tgt, Makefile.in: Updated the build to use the
577 new 8.3 unique names.
579 Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
581 * ldlang.c (entry_symbol): Make non-static.
582 * ldlang.h (entry_symbol): Declare.
584 * ldlex.l: Treat PROVIDE as a keyword in expression state.
586 Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
588 * scripttempl/pe.sc (.bss): Move to be after .text
590 Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
592 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
593 Search trinary.cond rather than searching trinary.lhs twice. From
594 linli@ihp.PHys.ethz.CH.
596 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
597 directory searching code into gld${EMULATION_NAME}_search_dir.
598 (gld${EMULATION_NAME}_search_dir): New static function, extracted
599 from gld${EMULATION_NAME}_find_so.
600 (global_needed, global_found): New static variables.
601 (gld${EMULATION_NAME}_after_open): New static function.
602 (gld${EMULATION_NAME}_search_needed): New static function.
603 (gld${EMULATION_NAME}_try_needed): New static function.
604 (gld${EMULATION_NAME}_check_needed): New static function.
605 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
606 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
608 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
609 (eelf32lppc.c): Likewise.
610 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
611 (GENERATE_SHLIB_SCRIPT): Define as yes.
613 Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
615 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
616 bfd_link_needed-list; make appropriate changes.
618 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
619 (rs6000-*-aix*): New target; use aixrs6.
620 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
621 * emultempl/aix.em: New file.
622 * scripttempl/aix.sc: New file.
623 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
624 (eaixppc.c, eaixrs6.c): New targets.
626 Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
628 * scripttemp/pe.sc (.reloc): Move to the end.
630 Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
632 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
633 section which was not linked into the final output.
635 Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
637 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
640 Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
642 * ld.h (args_type): Add rpath_link field.
643 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
644 required dependencies in rpath_link path. Only search
645 LD_LIBRARY_PATH when configured native.
646 * lexsup.c (parse_args): Recognize -rpath-link.
647 * ld.1, ld.texinfo: Document -rpath-link.
649 Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
651 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
652 bother searching for needed libraries unless doing a final link.
654 Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
656 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
658 * ld/ld.1: Fix formatting bugs.
660 Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
662 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
663 * ldexp.h (exp_get_abs_int): Update declaration.
664 * ldlang.c (print_output_section_statement): Use fprintf_vma to
665 print return value of exp_get_abs_int.
667 Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
669 * emultempl/elf32.em (global_stat): New file static variable.
670 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
671 that the file has not already been included under another name.
672 (gld${EMULATION_NAME}_stat_needed): New static function.
674 Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
676 * scripttempl/armcoff.sc: Start .text at 0x8000.
677 Start .data at 0x40000.
679 Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
681 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
682 command_line.rpath is set, use it, rather than the -L options, to
683 build the rules section.
684 * ld.texinfo: Document this use of -rpath.
686 * lexsup.c (parse_args): Don't set link_info.shared for -assert
687 pure-text. Pass true, not 1, to lang_add_entry.
688 * emultempl/sunos.em (find_assign): New static variable.
689 (found_assign): New static variable.
690 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
691 If not a relocateable link, and no start symbol was specified on
692 the command line, and there are any undefined symbols, set
693 link_info.shared. If link_info.shared is set, set the address of
694 the .text section to 0x20.
695 (gld${EMULATION_NAME}_find_assignment): Rename from
696 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
697 set, then just set found_assign based on whether an assignment is
698 found to find_assign.
699 (gld${EMULATION_NAME}_get_script): Don't use a special script when
700 producing a shared library.
701 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
702 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
703 * ldlang.c (entry_from_cmdline): New global variable.
704 (lang_add_entry): Change cmdline parameter from int to boolean.
705 Use global entry_from_cmdline rather than function static
707 * ldlang.h (entry_from_cmdline): Declare.
708 (lang_add_entry): Change declaration of second parameter from int
710 * ldgram.y: Pass false, not 0, to lang_add_entry.
712 Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
714 * ld.h (parsing_defsym): Declare.
715 * ldlex.h (lex_string): Declare.
716 * ldlex.l (lex_string): Define.
717 * lexsup.c (parsing_defsym): Define.
718 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
719 lex_redirect, and clear it after calling yyparse. Set
720 parsing_defsym around call to yyparse.
721 * ldmain.c (main): Set lex_string before calling lex_redirect, and
722 clear it after calling yyparse.
723 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
724 in linker scripts correctly.
726 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
727 COFF targets, allowing for the leading underscore used on SPARC
730 * lexsup.c (parse_args): Handle -assert.
731 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
732 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
733 shared library script when appropriate.
734 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
735 section at SIZEOF_HEADERS.
737 Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
739 * Makefile.in (earmcoff.c): Build.
740 * configure.tgt (arm-*-coff): New target
741 * emulparms/armcoff.sh: New file.
742 * scripttempl/armcoff.sc: New file.
744 Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
746 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
748 Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
750 * ldfile.c (ldfile_set_output_arch): Make arch const.
752 Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
754 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
755 beginning of the .bss area, not at the end of data. Add
756 __sbss_{start,end} symbols.
758 Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
760 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
761 (CXX_FOR_TARGET, install): Likewise.
763 Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
765 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
766 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
767 (CXX_FOR_TARGET): Likewise.
769 (GENERATED_HFILES): Remove config.h.
770 (.dep): Depend upon config.h.
772 Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
774 * configure.tgt (mips*-dec-netbsd*): New target.
776 Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
778 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
780 Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
782 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
784 Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
786 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
787 Start .text section on the right boundary. Always align
790 Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
792 * Makefile.in (maintainer-clean): New target.
794 * ldmain.c (struct warning_callback_info): Define.
795 (warning_callback): Add new parameter symbol. Call
796 warning_find_reloc to try to find the section and VMA.
797 (warning_find_reloc): New static function.
798 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
799 Pass NULL as symbol parameter to warning callback.
801 * ld.texinfo: Clarify -L option.
803 * ldlang.c (lang_one_common): Add cast to avoid warning.
804 (topower): Likewise. Also, reindent.
805 * ldwrite.c (clone_section): Change i to unsigned int.
806 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
807 cast to avoid warning.
809 Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
811 * Makefile.in (config.status): Depend upon configure.tgt.
813 * ldemul.h (ldemul_set_symbols): Declare.
814 (ldemul_parse_args): Declare.
815 * ldemul.c (ldemul_parse_args): Fix indentation.
817 * configure.in: Call AC_HEADER_DIRENT.
818 * configure, config.in: Rebuild.
819 * emultempl/sunos.em: Use autoconf recommend mechanism to define
820 DIR and struct dirent.
822 * configure.tgt (mips*-*-bsd*): New case.
824 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
826 * configure.tgt (i[345]86-*-ptx*): New case.
828 Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
830 * config.in: Rename from config.h.in.
831 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
832 Check for config.h:config.in when creating stamp-h.
833 * configure: Rebuild.
834 * Makefile.in (stamp-h): Depend upon config.in rather than
835 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
836 calling config.status.
838 * Makefile.in (distclean): Remove config.h and stamp-h.
840 * configure.host (sparc-*-sunos64*): Remove.
841 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
843 * ldexp.c (exp_fold_tree): Don't warn about moving the location
844 counter backward in the absolute section.
846 Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
848 * configure.in: Rewrite to use autoconf.
849 * configure.host: New file.
850 * configure.tgt: New file.
851 * aclocal.m4: New file.
852 * configure: New file, built by autoconf.
853 * acconfig.h: New file.
854 * config.h.in: New file, built by autoheader.
855 * sysdep.h: New file.
856 * ld.h: Incorporate old contents of config.h.
858 * Makefile.in: Various changes for new configure script. Also:
859 (CC_FOR_BUILD): Remove.
860 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
861 (dep.sed): Use @SRCDIR@, not @srcdir@.
862 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
863 * genscripts.sh: Create ldscripts if it does not exist.
864 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
865 * mpw-esh.c, emultemp/*.em: Likewise.
866 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
868 * config/*.mt, config/*.mh: Remove.
870 Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
872 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
873 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
875 Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
877 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
879 Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
881 * ldmain.c (warning_callback): Add abfd, section, and address
883 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
884 Change call to warning accordingly.
886 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
887 relocateable and not shared, put .gnu.warning.SYMBOL sections into
890 Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
892 * configure.in: Added mips*vr4300-idt-elf* and
893 mips*vr4300el-idt-elf* targets.
894 * Makefile.in: Added eelf32vr4300* targets.
895 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
896 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
898 Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
900 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
901 <brendan@cygnus.com>.
903 Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
905 * ldemul.c (ldemul_parse_args): New.
906 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
907 * lexsup.c (all pe stuff): Moved into pe.em
908 (parse_args): Call emulation arg parser.
909 * emultempl/pe.em (parse_args): handle PE specfic args.
911 Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
913 * ldlang.c (lang_memory_region_lookup): Don't use the first region
914 as the default region. Create a new region instead.
916 Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
918 * ldemul.c (ldemul_set_symbols): New function.
919 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
920 * ldmain.c (main): Add call to ldemul_set_symbols.
921 * lexsup.c (set_pe_value): New args.
923 (parse_args): Cope with new set_pe_value args.
924 * emultempl/pe.em (set_symbols): New function.
925 (ld_emulation_xfer_struct): Add set_symbols.
926 * scripttempl/pe.sc: Use new symbols.
928 Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
930 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
931 For -Y, ignore a leading `P,', and only call set_default_dirlist
932 after processing all the other arguments.
934 Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
936 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
937 * emulparams/armpe.sh: Run PE script.
939 Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
941 * ldmain.c (main): Remove PE stuff.
942 * lexsup.c (options): Load more PE options.
943 (set_pe_value): New function.
945 Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
948 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
949 * emultempl/pe.sc: New file performs generic PE support and sorts
951 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
952 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
953 * scripttempl/pe.sc: New.
954 * Makefile.in: Use new files.
956 Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
958 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
959 (.strings,.ctors,.dtors): Likewise.
961 Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
963 * scripttempl/armpe.sc: Always start code at 0x401000, even
965 * ldwrite.c (strdup): New extern declaration.
966 * ldgram.y (atype): New rule to clarify type parsing.
967 * ldlang.c (init_os): Remove commented out code.
968 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
969 unless told not to by the link script.
971 Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
973 * ldlang.c (lang_set_startof): New static function.
974 (lang_process): Call it.
976 * ldgram.y: Tweak casesymlist to avoid bison errors.
978 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
979 Solaris compatibility.
981 Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
983 * ldgram.y (YYDEBUG): If not defined, define as 1.
984 (CASE, EXTERN, START): New tokens.
985 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
986 (casesymlist): New nonterminal.
987 (extern_name_list): New nonterminal.
988 * ldlex.l: Accept lower case trailing base specifiers. Don't
989 ignore the first digit when the base is a suffix. Accept many
990 EXPRESSION state tokens in MRI state. Support MRI continuation
991 lines and MRI semicolon comments. Accept all MRI keywords in
992 lower case. Add CASE, EXTERN, and START MRI keywords.
994 Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
996 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
999 Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1001 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
1002 $r/../gcc/xgcc unless it is present.
1004 Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
1006 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
1008 * scripttempl/m68klynx.sc: Likewise.
1009 * scripttempl/nw.sc: Likewise.
1010 * scripttempl/sa29200.sc: Likewise.
1011 * scripttempl/sparclynx.sc: Likewise.
1013 Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
1015 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
1017 Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
1019 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
1021 Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
1023 * scripttempl/i386pe.sc: Cope with constructors.
1024 * scripttempl/z8ksim.sc: Deleted.
1025 * scripttempl/z8000.sc: Resurrected as this, but
1026 can handle z8001 and z8002 formats.
1027 * emulparams/z8ksim.sh: Deleted.
1028 * emulparams/{z8001.sh, z8002.sh}: New files.
1029 * config/z8ksim.mt: Deleted
1030 * config/z8k-coff.mt: New, generates both emulations.
1032 Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
1034 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
1035 %B, in case it is in an archive.
1037 Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
1039 * ldlang.c (lang_process): Call reset_memory_regions for each
1042 Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
1044 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
1047 Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
1049 * ldmain.c (constructor_callback): Allocate set_name in stack
1050 frame, rather than always calling alloca with a fixed size.
1052 Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
1054 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
1055 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
1057 Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
1059 * ldwrite.c (clone_section): Set the alignment of the clone
1060 section to that of the section being cloned.
1062 * ldwrite.c (split_sections): Don't split the first input section
1063 into a new output section.
1065 Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
1067 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
1068 (GENERATE_SHLIB_SCRIPT): Define as yes.
1070 Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
1072 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
1074 * ldver.c (help): Update list of options to match currently
1077 Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
1079 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
1082 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
1083 it takes a size_t anyhow.
1084 (exp_binop): Likewise.
1085 (exp_trinop): Likewise.
1086 (exp_unop): Likewise.
1087 (exp_nameop): Likewise.
1088 (exp_assop): Likewise.
1089 * ldlang.c (lang_memory_region_lookup): Likewise.
1090 (init_os): Likewise.
1091 (ldlang_add_undef): Likewise.
1092 (insert_pad): Likewise.
1093 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
1096 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
1098 Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
1100 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
1102 (ld_emulation_xfer_type): Add search parameter to
1103 open_dynamic_archive entry point.
1104 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
1105 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
1106 make non-static. Change all callers to use new name.
1107 (ldfile_open_file_search): Make static. If entry is dynamic, call
1108 ldemul_open_dynamic_archive.
1109 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
1110 * ldfile.h (ldfile_open_file_search): Don't declare.
1111 (ldfile_try_open_bfd): Declare.
1112 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1113 Accept search parameter. Don't search for a library, just look in
1115 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
1118 Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
1120 * ldmain.c (set_scripts_dir): Don't base script directory on
1123 Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
1125 * ldmisc.c (vfinfo): Don't print the line number if it isn't
1128 Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
1130 * ld.h (ld_config_type): Add field warn_constructors.
1131 * ldmain.c (add_to_set): Warn if config.warn_constructors.
1132 (constructor_callback): Likewise.
1133 * lexsup.c (parse_args): Handle -warn-constructors.
1134 * ld.texinfo, ld.1: Document -warn-constructors.
1136 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
1137 get confused by directory names if we searched for the file.
1139 Based on patches from H.J. Lu <hjl@nynexst.com>:
1140 * ldlang.h (lang_input_statement_type): Add new field dynamic.
1141 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
1142 * ldfile.c: Include bfdlink.h.
1143 (ldfile_open_file): Check dynamic field of entry, not global
1144 dynamic_link field. Don't do a dynamic search when doing a
1146 * ldmain.c (main): Don't warn about dynamic_link for a
1148 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
1150 (gld${EMULATION_NAME}_create_output_section_statements): Always
1151 loop over input files.
1152 * Makefile.in: Rebuild dependencies.
1154 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
1157 Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
1159 * ldmain.c (main): Set link_info.symbolic to false.
1160 * lexsup.c (parse_args): Handle -Bsymbolic.
1162 Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
1164 * ldmain.c (HAVE_SBRK): Define for everything except
1165 specific systems that are known to not support sbrk.
1166 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
1168 Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
1170 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
1171 Handle etree_provide.
1173 * emultempl/elf32.em (global_needed): New static variable.
1174 (global_found): Likewise.
1175 (gld${EMULATION_NAME}_after_open): New static function.
1176 (gld${EMULATION_NAME}_search_needed): Likewise.
1177 (gld${EMULATION_NAME}_try_needed): Likewise.
1178 (gld${EMULATION_NAME}_check_needed): Likewise.
1179 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
1180 gld${EMULATION_NAME}_after_open.
1182 Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
1184 * configure.in (i386-*-win32): New target.
1186 Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
1188 * lexsup.c (parse_args): Let -G either set the small data size or
1189 be equivalent to --shared, depending on the next argument. Accept
1190 and ignore -z for Solaris compatibility.
1192 Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
1194 * lexsup.c (parse_args): Cast fopen result to PTR before storing
1195 it in link_info.base_file. Fix indentation.
1197 Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
1199 * ldmain.c (main): Always initialize PE info in link_info.
1200 * lexsup.c (OPTION_BASE_FILE): New option.
1201 (parse_args): Handle new option.
1202 * emulparams/armpe.sh: Output pei.
1203 * emultempl/i386pe.em: Add newline to end.
1204 * scripttempl/armpe.sc: Change output and quote the $s.
1205 * scripttempl/i386pe.sc: Change output and quote the $s.
1207 Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1209 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
1211 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
1212 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
1213 (i386msdos.o): New target.
1214 * config/i386-msdos.mt: Created.
1215 * emulparams/i386msdos.sh: Created.
1216 * scripttempl/i386msdos.sc: Created.
1218 Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1220 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
1221 that contains pointers to be relocated.
1223 Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
1225 * mpw-esh.c: New file, modified for MPW from esh.c.
1226 * scripttempl/sh.sc: Reformatted to simplify MPWification,
1227 use *() to concat stab sections instead of [].
1229 Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
1231 * scripttempl/armpe.sc: Add constructor support.
1233 Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
1235 * ldlang.c (lang_size_sections): Any section with a DATA
1236 statement has contents.
1238 Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1240 * emulparams/m68kelf.sh (NOP): Define.
1241 (DYNAMIC_LINK): Don't define.
1242 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
1243 will come from the linker script.
1245 Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
1247 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
1249 Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
1251 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
1253 Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1255 From Andrew Cagney <cagney@highland.com.au>
1256 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
1259 Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
1261 Add support for ARM-PE.
1262 * Makefile.in (ALL_EMULATIONS): Add armpe.o
1263 * configure.in: Recognize armpe.
1264 * config/arm-pe.mt: New file.
1265 * emulparams/armpe.sh: New file.
1266 * scripttempl/armpe.sc: New file.
1269 Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
1271 * configure.in (h8300h-*-hms): Deleted
1272 * config/cf-h8300h.mt: Deleted.
1274 Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
1276 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
1278 From David Taylor (dtaylor@armltd.co.uk)
1279 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
1280 * configure.in: Recognize arm{,e[lb]-*-aout.
1281 * config/arm[lb]-aout.mt: New files.
1282 * emulparams/armaout[lb].sh: New files.
1283 * scripttempl/armaout.sc: New file.
1285 Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1287 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
1288 be unique in 8 characters for DOS.
1290 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
1291 * emulparams/elf32ppcle.sh: Deleted.
1293 Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
1294 Tom Griest <griest@cs.yale.edu>
1296 Initial support for PE executables (eg NT, win32)
1298 * Makefile.in (configure.in, ei386pe): Add support.
1299 * ldmain.c (main): Initialize PE argument info.
1300 * ldwrite.c (print_file_stuff): Don't print out .drectve
1301 and .debug section info.
1302 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
1303 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
1304 Handle new arguments.
1305 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
1308 Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
1310 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
1311 segment. This allows ld -r to preserve unwind sections.
1313 Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1315 * configure.in: Add little endian PowerPC support.
1317 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
1318 (eelf32ppcle.c): Support for little endian PowerPC.
1320 * config/ppcle-elf32.mt: New file for little endian PowerPC.
1321 * emulparams/elf32ppcle.sh: Ditto.
1323 Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1325 * ldlang.c (print_output_section_statement): Check
1326 subsection_alignment, instead of checking section_alignment twice.
1327 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
1329 Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
1331 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
1333 Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
1335 * ldwrite.c (ldwrite): Before doing anything, reset the error
1336 code. If bfd_final_link returns an error, but the error code is
1337 unset, don't issue an extra message. Assume a correct error
1338 message was already set.
1340 Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1342 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
1343 (em68kelf.o): New target.
1344 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
1345 * configure.in: Use them for m68*-*-elf.
1347 Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
1349 Merge in support for Mac MPW as a host.
1350 (Old change descriptions retained for informational value.)
1352 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
1353 (i386-unknown-coff): Remove.
1354 (sh-hitachi-hms): New target.
1355 (emulation_ofiles): Set correctly for each target.
1356 (version, TDEFINES): Add to makefile fragment.
1357 * mpw-make.in (BISON): Use byacc instead of bison.
1358 (em_*.c): Replace with e*.c everywhere.
1359 (ldgram.h): Separate action from ldgram.c generation.
1360 (LD_PROG): Depend on Version.r.
1361 (Version.r): generate from version info.
1362 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
1364 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
1365 i386-unknown-aout, i386-unknown-coff): New targets.
1366 (m68k-aout, m68k-coff): Remove targets.
1367 (mk.tmp): Add definition of EMUL.
1369 * mpw-config.in (emulname): Set based on target.
1370 (ldemul-list.h): Construct.
1371 * mpw-make.in (install-only): New target.
1372 (install): Depend on install-only.
1374 * mpw-make.in (bindir): Fix pathname.
1375 (install): Move here from mpw-build.in.
1377 * mpw-config.in: New file, MPW configuration fragment.
1378 * mpw-make.in: New file, MPW makefile fragment.
1379 (This file is semi-automatically generated from Makefile.in.)
1380 * ldfile.c (slash): If MPW, set to `:'.
1381 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
1382 prevent redefinition errors.
1385 Thu Apr 6 20:38:36 1995 Doug Evans <dje@chestnut.cygnus.com>
1387 * emulparams/arcelf.sh (ENTRY): Define.
1390 Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
1392 * ldwrite.c (clone_section): Align clone sections on even
1395 Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
1397 * configure.in: Change linux to default to elf. Using
1398 i[345]86-*-linuxaout will build a linker which defaults to a.out.
1399 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
1400 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
1401 * config/i386-lelf.mt: Remove.
1403 Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
1405 * ldmain.c (main): If opening the map file fails, call
1406 bfd_set_error before calling einfo.
1408 * ld.texinfo, ld.1: Document the -no-keep-memory option.
1410 Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
1412 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
1413 does mark shared libraries as executable.
1415 Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
1417 * ldlang.c (lang_common): Change power to int. Pass larger values
1418 before smaller values.
1419 (lang_one_common): Treat info as int *. Don't bother to check for
1420 last value, since it is now zero.
1422 Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
1424 * ldlang.c (load_symbols): An empty archive is OK.
1426 Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
1428 * ldmain.c (progress.h): Include.
1429 (main): Call START_PROGRESS and END_PROGRESS.
1431 Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
1433 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
1434 .dtors sections, so that these pointers get relocated also.
1435 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
1436 and end of the constructors/destructors.
1438 Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1440 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
1441 describes an archive, call bfd_link_add_symbols on each member.
1442 * ldmain.c (whole_archive): New variable.
1443 (main): Initialize it to false.
1444 * ldmain.h: Declare whole_archive.
1445 * lexsup.c (parse_args): Grok --whole-archive switch.
1446 * ld.texinfo, ld.1: Document --whole-archive.
1448 Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
1450 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
1451 using the default emulation.
1453 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
1455 * config/hppaelf.mh (HOSTING_EMU): Likewise.
1457 Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
1459 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
1460 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
1462 Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
1464 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
1466 * ldlex.l: Return -lFILENAME as the token LNAME.
1467 * ldgram.y: Add token LNAME.
1468 (input_list): Treat LNAME like NAME, but pass it to
1469 lang_add_input_file as lang_input_file_is_l_enum.
1470 * ld.texinfo: Document using -lFILENAME in INPUT.
1472 Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1474 * ldlang.c (lang_check): If the architectures are compatible call
1475 bfd_merge_private_bfd_data to let the backend do additional
1479 Tue Mar 7 21:10:28 1995 Doug Evans <dje@chestnut.cygnus.com>
1481 * emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
1482 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
1485 Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
1487 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
1488 all supported emulations.
1490 Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
1492 * ldemul.c (ldemul_list_emulations): New function.
1493 * ldemul.h (ldemul_list_emulations): Declare.
1494 * ldver.c (help): List supported targets and emulations.
1496 Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
1498 * scripttempl/elf.sc (.debug): Relocate to address 0.
1499 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
1500 .debug_sfnames, .line): Likewise.
1502 Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
1504 * emultempl/elf32.em (hold_rel): New static variable.
1505 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
1506 contents whose names begin with ".rel" after hold_rel. Remove the
1507 assertion which checked for unplaced .rel sections. Don't try to
1508 sort the section into place if place->bfd_section is NULL.
1509 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
1510 section beginning with ".rel".
1512 Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
1514 Doc note from pierre@phi.la.tce.com (Pierre Willard):
1515 * ld.texinfo: -X and -x work even if -s or -S are not specified.
1516 * ld.1: Similar change.
1518 Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
1520 * emulparams/gld960coff.sh (COFF_CTORS): Define.
1521 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
1523 Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
1525 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
1526 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
1527 * config/i386-lelf.mt: New file.
1528 * config/i386-gelf.mt: New file.
1530 Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
1532 * configure.in: Match on mips-ecoff, and default to the IDT
1535 Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
1537 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
1538 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
1539 to double the size of the table.
1542 Thu Feb 9 19:03:25 1995 Doug Evans <dje@canuck.cygnus.com>
1544 * emulparms/arcelf.sh (TEMPLATE_NAME): Comment out.
1547 Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1549 * Makefile.in (distclean): Do recursive deletion, since ldscripts
1552 Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
1554 * ldmain.c (main): If trace_file_tries is true, and we are using
1555 an internal linker script, print out the script.
1556 * ldfile.c (try_open): Reindent function. Make the messages about
1557 opening script files more informative.
1559 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
1560 * ld.texinfo, ld.1: Update accordingly.
1562 Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
1564 * ldlang.c (lang_one_common): Adjust references to common symbol
1565 information for new structure.
1567 Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
1569 * ldmain.c (undefined_symbol): Handle section being NULL.
1571 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
1572 * ldexp.c (fold_name): Likewise.
1573 * ldlang.c (print_one_symbol): Likewise.
1574 (lang_finish): Likewise.
1575 * ldmain.c (multiple_common): Likewise.
1576 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
1577 renamed to bfd_link_hash_undefweak.
1579 * scripttempl/alpha.sc: Set address of .data section correctly
1580 when -n or -N is used. Patch from Chris G Demetriou
1581 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
1582 * scripttempl/mips.sc: Similar change.
1584 Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
1586 * ldlang.c (lang_size_sections): Clarify error message when user
1587 specified start addr conflicts with region. Fix resetting of
1590 Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
1592 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
1593 in lang_allocating_phase_enum.
1595 Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
1597 * Makefile.in (distclean): Depend upon clean. Don't bother to
1598 remove files which will be removed by clean. From patch by
1599 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
1601 Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
1603 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
1604 a MIPS target, clobber the size of all but the first input
1605 .reginfo section to be 0, so that lang_size_sections sets the
1606 correct size for the output .reginfo section.
1608 Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
1610 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1611 Remove unused variable is.
1613 Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1615 * configure.in: Add support for powerpc-*-eabi.
1617 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
1620 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
1621 elf.sc, which defines some new symbols PowerPC elf needs.
1623 Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1625 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
1626 constructor entry is in the absolute section.
1628 Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1630 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
1631 * config/i386-gnu.mt: New file. Include ELF support.
1633 Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1635 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
1636 there are any input sections named .gnu.warning, treat them as
1637 containing a warning message to be printed by the linker, and
1638 clobber the size so that the message is not copied into the output
1640 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
1643 Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
1645 * configure.in (w65-*-*): New target.
1646 * Makefile.in: Update.
1647 * scripttempl/w65.sc: New.
1648 * config/coff-w65.mt: New.
1650 Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
1652 * ldlang.c (lang_place_orphans): Don't ignore files with
1653 just_syms_flag set. Instead, put all their sections in
1654 bfd_abs_section_ptr, using the section VMA as the output_offset.
1656 Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1658 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
1659 name `reloc_howto_type', since it's now defined to be const.
1660 * ldlang.c (lang_add_reloc): Ditto.
1661 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
1663 Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1665 * ldexp.c (fold_binary): Adding or subtracting an absolute value
1666 to a relative value does not require forcing the relative value to
1667 be absolute. Also, reindent function.
1669 Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1671 * ldwrite.c (clone_section): Create a symbol with the
1672 same name as the section.
1674 Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1676 * ld.h (split_by_reloc, split_by_file): New flags.
1677 * ldwrite.c (clone_section, split_sections): New functions.
1678 * lexsup.c (parse_args): Understand new split options.
1681 Tue Dec 13 16:45:18 1994 Doug Evans <dje@canuck.cygnus.com>
1683 * configure.in (arc-elf): New target.
1684 * Makefile.in (earcelf.c): New target.
1685 * config/arc-elf.mt: New file.
1686 * emulparms/arcelf.sh: New file.
1689 Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1691 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
1692 .data segment. They must be writable when creating a shared
1693 library. From H.J. Lu <hjl@nynexst.com>.
1695 Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
1697 * emultempl/miposecoff.em: New file.
1698 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
1699 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
1700 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
1701 provide __runtime_reloc_start and __runtime_reloc_stop if they are
1702 used. Align _fdata to a 16 byte boundary.
1703 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
1705 (emipsidtl.c): Likewise.
1706 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
1708 * ld.h (args_type): Add new field embedded_relocs.
1709 * ldemul.h (ldemul_after_open, after_open_default): Declare.
1710 (ld_emulation_xfer_struct): Add new field after_open.
1711 * ldemul.c (ldemul_after_open): New function.
1712 (after_open_default): New function.
1713 * ldlang.c (lang_process): Call ldemul_after_open.
1714 * lexsup.c (parse_args): Handle --embedded-relocs.
1715 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
1716 new after_open field to after_open_default.
1717 * emultempl/generic.em, emultempl/gld960.em: Likewise.
1718 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
1719 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
1720 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
1721 * ld.texinfo, ld.1: Mention -embedded-relocs.
1723 Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1725 * Makefile.in: Add eshl.o.
1726 * config/coff-sh.mt: Add shl emulation.
1728 Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1730 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
1731 Youngdale <eric@aib.com>.
1733 Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1735 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
1736 * config/i386linux.mh: New file; set HOSTING_CRT0.
1737 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
1738 /usr/lib, since that is already in LIB_PATH.
1740 Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
1742 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
1744 (.data, .bss): If "-N", then place the data/bss just after the end
1745 of the .text section rather than at the default 0x40000000.
1747 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
1750 Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1752 Patches from Eric Youngdale <eric@aib.com>:
1753 * ldlang.c (lang_finish): Don't warn if entry symbol not found
1754 when generating a shared library.
1755 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
1756 attempting to place an orphaned relocation section when generating
1757 a dynamically linked object.
1759 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
1762 Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1764 * ld.h (args_type): Add field export_dynamic.
1765 * lexsup.c (parse_args): Recognize --export-dynamic.
1766 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1767 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
1769 Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1771 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
1772 we allocate common symbols.
1774 Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
1776 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
1777 .rela.fini to the list of .rel* sections.
1779 Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1781 * ldlang.c (load_symbols): Add new argument place. Only accept
1782 linker scripts if place is not NULL. Put commands found in an
1783 assumed linker script into place.
1784 (lookup_name): Pass NULL as place argument to load_symbols.
1785 (open_input_bfds): In lang_input_statement_enum case, pass a place
1786 argument to load_symbols, and store any new statements after the
1789 Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1791 * ldver.c (ldversion): Bump to 2.5.3.
1793 Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1795 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
1797 Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1799 * Makefile.in (check): Add missing "else true" clause.
1801 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
1803 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
1804 entry point to "start". Align at end of each section to 0x200.
1805 Start .text section 0x1000 later. Add _etext, _edata, _end
1808 Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1810 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
1811 composed of different object file formats.
1812 (ldctor_build_sets): If the output format does not support the
1813 reloc, and we are not generating a relocateable link, try getting
1814 the reloc from the input format.
1816 Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
1818 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
1819 (em68knbsd.c): New target.
1821 * config/m68k-nbsd.mt: New file.
1822 * emulparams/m68knbsd.sh: New file.
1823 * configure.in (m68*-*-netbsd*): Use above configs.
1825 Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1827 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
1828 appropriately named static library, stop the search at that
1831 Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1833 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
1834 and esparcnbsd.o; sorted entries.
1835 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
1837 * config/netbsd532.mt: Removed.
1838 * emulparams/netbsd532.sh: Removed.
1840 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
1841 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
1842 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
1843 sparc*-*-netbsd*): Use above configs.
1845 Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1847 * ldmain.c (multiple_common): One of the types may now be
1848 bfd_link_hash_indirect. The old BFD argument may be NULL.
1850 Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1852 * configure.in: Add * at the end of m68k-hp-hpux.
1854 Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1856 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
1859 Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1861 * scripttempl/nw.sc: Gather constructors and destructors and
1862 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
1864 Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
1866 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
1867 (ei386nw.c, eppcnw.c): New targets.
1869 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
1870 scripttempl/nw.sc: New files, for i386 and powerpc netware.
1872 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
1873 instead of {i386,ppc}-elf.
1875 * configure.in (sparc*-*-netware): Removed. There is no such
1878 * ldint.texinfo: Move misplaced `@end iftex'.
1880 Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
1882 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
1883 .rela.dtors to the list of .rel* sections.
1885 Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1887 * ldver.c (ldversion): Update to version 2.5.
1888 * Version 2.5 released.
1890 * configure.in (all_targets): Handle i386-linux*.
1892 Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1894 * scripttempl/aout.sc: Set _etext and __etext to ., not
1895 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
1896 will not break any other system. From Eric Valette
1899 Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1901 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
1902 --verbose to get the old -V behaviour.
1903 * ld.1, ld.texinfo: Document this change.
1905 Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1907 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1908 assertion, since it could fail with a user defined linker script.
1910 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
1911 name in the hash table during the first phase--the hash table does
1912 not even exist at that point, much less have the right value.
1914 * Makefile.in (CC): Define.
1915 (CXX): Move definition, change from g++ to gcc.
1916 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
1917 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
1918 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
1919 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
1920 (.cc.o): Comment out.
1922 (site.exp): Don't create testdir or set tmpdir.
1923 (check): Run checks even if not running native. Use CC_FOR_TARGET
1924 instead of RUNTEST_CC, and likewise for CXX.
1925 (cdtest targets): Comment out.
1926 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
1927 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
1928 * cdtest-main.cc, cdtest.exp: Remove.
1930 Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1932 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
1933 file naming problems.
1934 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
1935 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
1936 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
1937 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
1938 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
1939 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
1940 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
1942 * genscripts.sh: Always search /usr/local/TARGET/lib.
1944 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
1946 Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1948 * configure.in: Handle i386-bsdi* targets like i386-bsd.
1950 Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1952 * lexsup.c (parse_args): Add support for -a for HP/UX
1955 * lexsup.c (parse_args): -c takes an argument.
1957 Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1959 * ld.h (args_type): Add new field endian.
1960 * lexsup.c (parse_args): Handle -EB and -EL by setting
1961 command_line.endian.
1962 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
1963 * ldlang.c (lang_add_output_format): Add arguments big and little.
1964 If command_line.endian is set, use it to select big or little
1965 rather than the default. Changed all callers.
1966 * ldlang.h (lang_add_output_format): Update declaration.
1967 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
1968 LITTLE_OUTPUT_FORMAT.
1969 * emulparams/elf32mipl.sh: Likewise.
1970 * emulparams/mipsbig.sh: Likewise.
1971 * emulparams/mipsbsd.sh: Likewise.
1972 * emulparams/mipsidt.sh: Likewise.
1973 * emulparams/mipsidtl.sh: Likewise.
1974 * emulparams/mipslit.sh: Likewise.
1975 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
1976 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
1978 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
1979 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
1980 * scripttempl/mipsbsd.sc: Likewise.
1982 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
1983 depending upon ldgram.c, so that a parallel make does not try to
1986 * configure.in (mips*el-elf*): New target.
1987 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
1988 (eelf32mipl.c): New target.
1990 * config/mipsl-elf32.mt: New file.
1991 * emulparams/elf32mipl.sh: New file.
1993 Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1995 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
1998 Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2000 * ldmisc.c (vfinfo): Print BFD file name as well as file name
2001 returned by find_nearest_line, in case the file name is something
2002 unhelpful such as a .h file. Handle %u.
2004 Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2006 * ldlang.c (lang_do_assignments): Make sure output statement
2007 has an attached bfd_section before trying to dereference it.
2009 Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2011 * ld.h (ld_config_type): Add new field warn_once.
2012 * ldmain.c (undefined_symbol): Handle -warn-once.
2013 * lexsup.c (parse_args): Recognize -warn-once.
2014 * ld.texinfo (Options): Document -warn-once.
2017 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
2018 name. For %C, print the function name on a separate line, to keep
2019 the length of error messages under control.
2020 * ldmain.c (multiple_definition): Use %D for ``first defined
2022 (undefined_symbol): Use %D for ``more undefined references
2025 * ldmisc.c (multiple_warn): Remove; no longer used.
2026 * ldmisc.h (multiple_warn): Don't declare.
2028 Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2030 * ldlang.c (print_output_section_statement): Print all lines
2033 Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2035 * ldlang.c (load_symbols): Check for archive before object. Use
2036 bfd_check_format_matches, and, if ambiguous, print a list of
2037 matching formats. If file format is not recognized, treat file as
2039 * ldgram.y (yyerror): If assuming an object file is a script,
2040 mention that. Tweak the format of the error messages.
2041 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
2042 guess that this is not actually a script, and just report that the
2043 file format was not recognized.
2044 * ld.texinfo (Options): Admit that -( may be used more than once.
2045 Add note that unrecognized object files are now treated as linker
2048 * ldfile.c (ldfile_input_filename): Make const.
2049 (ldfile_assumed_script): New variable.
2050 (try_open): Change arguments types to const.
2051 (ldfile_find_command_file): Likewise.
2052 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
2053 * ldfile.h: Update declarations for ldfile.c changes.
2054 * ldlex.l: Include <ctype.h>.
2055 (file_name_stack): Change to be const char *.
2056 (lineno_stack): New static variable.
2057 (<<EOF>>): Set lineno as well as ldfile_input_filename.
2058 (lex_push_file): Make name argument const. Initialize
2060 (lex_redirect): Initialize lineno_stack entry.
2061 (lex_warn_invalid): Handle non printable characters nicely.
2062 * ldlex.h (lex_push_file): Declare second argument as const.
2064 * ldgram.y (ifile_p1): Recognize GROUP.
2065 * ldlex.l: Recognize GROUP.
2066 * ld.texinfo (Option Commands): Document GROUP.
2068 Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2070 * config/m68klynx.mh: New file.
2072 Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
2074 * emultempl/hppaelf.em: Add newlines to the error messages.
2076 Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2078 * config/i386lynx.mh: New file.
2079 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
2080 unless CONSTRUCTING.
2082 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2084 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
2085 (GENERATE_SHLIB_SCRIPT): Define as yes.
2086 (DYNAMIC_LINK): Define as false.
2087 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
2088 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
2089 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
2090 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
2093 Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2095 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
2097 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2099 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
2100 .got section is now explicitly handled in elf.sc.
2102 Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2104 * scripttempl/alpha.sc: Redo script to set . outside of sections
2105 and not bother to explicitly specify section addresses.
2106 Explicitly place .sdata section.
2108 Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2110 * scripttempl/m68kcoff.sc: Put .bss in data segment.
2112 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
2113 0, and to only be marked as NOLOAD if relocating.
2114 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
2115 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
2116 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
2117 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
2118 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
2119 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
2120 * scripttempl/sparclynx.sc: Likewise.
2122 Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
2124 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
2125 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
2128 Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
2130 * ld.h (args_type): Add field soname.
2131 * lexsup.c (parse_args): Handle -soname argument.
2132 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
2134 * ld.texinfo: Document -soname.
2136 Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2138 * ldlang.c (lang_check): Don't try to set the architecture if the
2139 input and output files are incompatible. Just warn.
2141 Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2143 * configure.in: Change i[34]86 to i[345]86.
2145 Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2147 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
2149 Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2151 Make the ELF linker handle orphaned sections reasonably. Also,
2152 define __start_SECNAME and __stop_SECNAME around sections whose
2153 names can be represented in C, for the benefit of symbol sets in
2155 * ldemul.h (ldemul_place_orphan): Declare.
2156 (ld_emulation_xfer_type): Add place_orphan field.
2157 * ldemul.c (ldemul_place_orphan): New function.
2158 * ldlang.h (wild_doit): Declare.
2159 * ldlang.c (wild_doit): Make nonstatic.
2160 (lang_place_orphans): Call ldemul_place_orphan.
2161 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
2162 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
2164 (gld${EMULATION_NAME}_place_orphan): New static function.
2165 (gld${EMULATION_NAME}_place_section): New static function.
2166 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
2168 Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
2170 * scripttempl/aout.sc: Add .linux-dynamic after .data.
2172 Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2174 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
2175 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
2177 Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2179 * ldexp.h (exp_get_abs_int): Declare.
2181 Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2183 * ldlang.c (lang_do_assignments): Handle complex AT's better.
2184 * ldexp.c (exp_get_abs_int): New function.
2186 Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
2188 * configure.in: add i960-nindy-coff support.
2190 Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2192 * ldlex.l (yy_create_string_buffer): Handle change to internal
2193 interface in flex 2.4.7.
2195 Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
2197 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
2198 New function; add 0x20 to any use of -Ttext.
2199 (gld${EMULATION_NAME}_create_output_section_statements): New
2201 (ld_${EMULATION_NAME}_emulation): Use the new function
2202 gld${EMULATION_NAME}_create_output_section_statements.
2204 Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2206 * scripttempl/mips.sc: Redo script to set . outside of sections
2207 and not bother to explicitly specify section addresses.
2209 Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2211 * scripttempl/elf.sc: Copy several more relocation sections into
2212 the output. Put .got.plt sections into .got.
2214 Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2216 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
2218 Add a new script operator, PROVIDE, to define a symbol only if it
2220 * ldgram.y (PROVIDE): New token.
2221 (assignment): Accept PROVIDE.
2222 * ldlex.l (PROVIDE): New token.
2223 * ldexp.h (node_type): Add etree_provide to node_class enum.
2224 (exp_provide): Declare.
2225 * ldexp.c (exp_fold_tree): Handle etree_provide.
2226 (exp_provide): New function.
2227 (exp_print_tree): Handle etree_provide.
2228 * ld.texinfo: Document PROVIDE.
2230 * ldlang.c (lang_common): Pass desired alignment to
2231 lang_one_common as power of two.
2232 (lang_one_common): Get common symbol alignment from linker hash
2233 table entry. Treat desired alignment as a power of two.
2235 * ldlang.c (wild_section): Attach all section with the given name,
2236 not just the first one. If there is no name, attach all sections
2237 even if the SEC_IS_COMMON flag is set.
2239 Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2241 * ld.h (args_type): Add field rpath.
2242 * lexsup.c (S_ISDIR): Define if not already defined.
2243 (parse_args): Add support for -rpath. If -R is used to name a
2244 directory, treat it as -rpath for Solaris compatibility.
2245 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2246 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
2247 * ldmain.c (main): Initialize command_line.rpath to NULL.
2248 * ld.texinfo: Document -rpath option.
2250 Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
2252 * emulparams/pc532machaout.sh: New file. Pc532 mach script
2255 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
2257 * config/pc532mach.mt: New file. Pc532 mach target support.
2259 * config/pc532mach.mh: New file. Pc532 mach host support.
2261 * config/netbsd532.mt: New file. Netbsd 532 target support.
2263 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
2265 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
2268 Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2270 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
2271 bfd_abs_section_ptr, not &bfd_abs_section.
2273 * lexsup.c (parse_args): Changed "retain-symbols-file" from
2274 no_argument to required_argument. From djm.
2276 Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2278 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
2279 sections to force a VMA of 0; needed for ELF backends which have
2280 not been converted to the new linker style.
2282 Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
2284 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
2285 it was for the HPUX dynamic loader's use and it creates problems
2288 Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
2290 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
2291 * ldlang.h (lang_do_assignments): Put external decl here.
2292 * emultempl/hppaelf.em: Minor cleanups throughout file.
2293 (hppa_elf_create_output_section_statements): Rewrite.
2294 (hppaelf_finish): Rewrite.
2296 Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2298 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
2300 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
2302 * ld.texinfo: -Bstatic is not ignored.
2304 Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
2306 * ldlex.l: Recognize \r the same as \n.
2308 Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2310 Preliminary support for generating shared libraries, from Eric
2311 Youngdale <ericy@cais.cais.com>.
2312 * genscripts.sh: If the emulation parameter file sets
2313 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
2314 CREATE_SHLIB defined.
2315 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
2316 link_info.shared is set, use the .xs script file.
2317 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
2318 .interp section, and don't include TEXT_START_ADDR in the starting
2319 address of the first section.
2320 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
2321 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
2323 Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
2325 * configure.in: Change --with-targets to --enable-targets.
2327 Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2329 * lexsup.c (parse_args): Add support for new options -( -) with
2330 synonyms --start-group --end-group.
2331 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
2332 (lang_group_statement_type): Define new struct.
2333 (lang_statement_union_type): Add group_statement field.
2334 (lang_enter_group, lang_leave_group): Declare.
2335 * ldlang.c (lang_for_each_statement_worker): Handle
2336 lang_group_statement_enum.
2337 (map_input_to_output_sections, print_statement): Likewise.
2338 (lang_size_sections, lang_do_assignments): Likewise.
2339 (open_input_bfds): Completely rewrite. Now does its own looping,
2340 rather than using lang_for_each_statement. Handle groups.
2341 (lang_process): Update call to open_input_bfds.
2342 (print_group): New static function.
2343 (lang_enter_group, lang_leave_group): New static functions.
2344 * ldfile.c (ldfile_open_file): If the file has already been
2345 opened, just return rather than taking an assertion failure.
2346 * ldver.c (help): Mention new options.
2347 * ld.texinfo: Document new options.
2349 * ldlang.c (end_of_data_section_statement_list): Don't define.
2350 (lang_leave_output_section_statement): Don't set obsolete variable
2351 end_of_data_section_statement_list.
2353 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
2356 * ldlang.c (lang_size_sections): Adjust current region address
2357 even for sections with an explicit address. From
2358 ralphc@pyramid.com (Ralph Campbell).
2360 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
2361 From jrs@world.std.com (Rick Sladkey).
2363 * scripttempl/mipsbsd.sc: Let sections align to their natural
2366 Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2368 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
2370 (lang_abs_symbol_at_beginning_of): Likewise.
2371 (lang_abs_symbol_at_end_of): Likewise.
2372 (lang_size_sections): Use bfd_is_abs_section to check for the
2373 absolute section. Don't try to set the VMA or output_offset or
2374 size of the absolute section.
2375 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
2378 Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
2380 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
2381 when generating relocatable objects.
2383 Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
2385 * emultempl/linux.em: New file providing support for linking
2386 against Linux shared libraries.
2387 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
2388 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
2390 Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2392 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
2393 * ldmain.c (main): Initialize link_info.shared to false. Give
2394 error if link_info.relocateable and link_info.shared are both set.
2396 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
2397 it as naming an emulation to be added to EMULATION_OFILES.
2398 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
2400 * Makefile.in: Rebuilt dependencies.
2401 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
2402 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
2403 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
2404 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
2405 (ei386linux.c): Remove; now in Makefile.in.
2406 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
2407 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
2408 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
2409 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
2410 (eelf64_sparc.c): Remove; now in Makefile.in.
2411 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
2412 (eelf32_sparc.c): Remove; now in Makefile.in.
2414 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
2415 no owner--it might be bfd_abs_section. From Eric Youngdale
2416 <ericy@cais.cais.com>.
2418 * scripttempl/aout.sc: Let sections align to their natural
2421 Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2423 * ldemul.h (ldemul_open_dynamic_archive): Declare.
2424 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
2425 * ldemul.c: Include ldexp.h and ldlang.h.
2426 (ldemul_open_dynamic_archive): New function.
2427 * ldfile.h (ldfile_open_file_search): Declare.
2428 * ldfile.c: Include ldemul.h.
2429 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
2430 argument, not bfd *. Change all callers.
2431 (ldfile_open_file_search): Rename from open_a. Return boolean
2432 argument, not bfd *. Clean up. Change all callers.
2433 (ldfile_open_file): If doing a dynamic link, call
2434 ldemul_open_dynamic_archive rather than assuming the extension of
2435 a dynamic object is ".so".
2436 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
2438 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
2440 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
2442 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
2443 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
2444 Accept -static as a synonym for -non_shared.
2446 Let the user change the dynamic linker used by ELF code.
2447 * ld.h (args_type): Add new field interpreter.
2448 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
2450 * ldmain.c (main): Initialize command_line.interpreter to NULL.
2451 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
2452 the ELF backend to return the .interp section. If
2453 command_line.interpreter is not NULL, set the contents of .interp
2455 * ld.texinfo: Mention -dynamic-linker.
2457 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
2460 * lexsup.c (parse_args): Sort out the option macros and change the
2461 definitions to make it easier to add a new option.
2463 * scripttempl/aout.sc: Define __etext and __edata to go along with
2466 * ld.h (ld_config_type): Add new field traditional_format.
2467 * lexsup.c (parse_args): Add traditional-format to longopts, and
2469 * ldmain.c (main): Initialize config.traditional_format to false.
2470 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
2471 flags of output_bfd according to config.traditional_format.
2472 * ldver.c (help): Mention -traditional-format.
2473 * ld.texinfo: Document -traditional-format.
2475 Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2477 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
2478 they are encountered.
2480 Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
2482 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
2483 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
2485 Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2487 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
2488 _FTEXT, _ETEXT and _FDATA. Dont define _END.
2490 * ldfile.c (open_a): If this is not an archive, try to open it in
2491 the current directory before searching for it.
2493 * lexsup.c (parse_args): Treat -i as a synonym for -r.
2495 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
2496 BLOCK works in a section address as documented.
2498 * ldgram.y (YYDEBUG): Don't define.
2500 Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2502 * emultempl/gld960.em: Pass false for new argument to
2503 ldfile_add_library_path.
2504 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
2506 * emultempl/sunos.em: Only look for .so files if doing a dynamic
2509 Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
2511 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
2513 Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
2515 * Makefile.in (check): Delete ld.new dependency so that a regression
2516 test doesn't trigger a rebuild of the linker.
2518 Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2520 * ldlang.c (map_input_to_output_sections): For lang_address, call
2521 init_os if it hasn't already been called.
2523 Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2525 Add support for SunOS shared libraries.
2526 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
2527 shared library support code.
2528 * emultempl/sunos.em: New file.
2529 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
2530 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
2531 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
2532 (esun3.c): Likewise.
2534 * ldlang.c: Minor formatting cleanups.
2535 (lang_for_each_input_file): New function.
2536 * ldlang.h (lang_for_each_input_file): Declare.
2538 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
2540 (search_head): Declare.
2541 (ldfile_add_library_path): Add new cmdline argument in prototype.
2542 * ldfile.c (search_head): Make non-static.
2543 (search_dirs_type): Move to ldfile.h.
2544 (ldfile_add_library_path): Accept cmdline argument, and save it.
2545 * lexsup.c (parse_args): Pass true for new cmdline argument of
2546 ldfile_add_library_path.
2547 (set_default_dirlist): Likewise.
2548 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
2549 argument of ldfile_add_library_path.
2550 * ldgram.y (ifile_p1): Likewise.
2552 Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2554 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
2555 total_size, superfile and chain.
2556 * ldfile.c (open_a): Don't clear search_dirs_flag.
2557 (ldfile_open_file): Don't try to open superfile. Assert that file
2558 has not already been opened.
2559 * ldlang.c (new_afile): Don't initialize superfile.
2560 * ldmain.c (add_archive_element): Don't initialize subfiles or
2561 chain or superfile. Initialize search_dirs_flag to false.
2563 Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2565 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
2567 Changes from binutils-2.4 release:
2569 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
2570 variables, use whitespace, so scripts don't break.
2572 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
2574 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
2576 * cdtest-bar.cc: Renamed from cdtest-func.cc.
2577 * Makefile.in: Noted change.
2579 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
2580 don't know where that's supposed to come from, or why it's
2583 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
2585 * configure.bat: update to latest makefile.in
2586 * emulpara/go32.sh: set to coff-go32 not aout
2587 * emultemp/generic.em: strength-reduce the structure of
2588 this shell script, since the only available shell for
2589 DOS can't handle complex syntax.
2590 * emultemp/stringify.sed: for "sed -f" instead of inline.
2591 * makefile.in: depend on stringify.sed as well as genscripts.sh
2592 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
2593 * genscripts.sh: empty variables aren't always considered "set",
2594 so set them to "y" instead.
2596 Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2598 * ldlang.c (entry_symbol): Make static.
2599 (lang_add_entry): Add cmdline argument.
2600 * ldlang.h (lang_add_entry): Change prototype.
2601 * ldgram.y (statement_anywhere): Change lang_add_entry call.
2602 * lexsup.c (parse_args): Likewise.
2604 Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2606 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
2607 .reginfo an address.
2608 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
2609 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
2610 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
2612 Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2614 Add support for ELF shared libraries.
2615 * ld.h (ld_config_type): Add field dynamic_link.
2616 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
2617 on attempts to use -r with -relax, -call_shared or -s.
2618 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
2619 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
2620 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
2621 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
2622 OPTION_NON_SHARED by setting dynamic_link field accordingly.
2623 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
2625 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
2626 opening a file with a .so extension first.
2627 * emultempl/elf32.em: New file.
2628 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
2629 (NONPAGED_TEXT_START_ADDR): Likewise.
2630 (TEMPLATE_NAME): Define as elf32.
2632 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
2633 * scripttempl/elf.sc: Add placement for new dynamic sections.
2634 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
2635 outside of any section. Don't use ALIGN(8); just let one section
2636 VMA follow another. Put .dynbss in .bss. Don't mention debugging
2637 sections; they'll be handled correctly anyhow.
2638 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
2640 Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
2642 * Makefile.in (install): Redirect output of ln to /dev/null.
2644 Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
2646 * emultempl/hppaelf.em: Change all references of
2647 .hppa_linker_stubs to .PARISC.stubs.
2648 * scripttempl/hppaelf.sc: Likewise.
2650 Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2652 * ldlang.c (print_output_section_statement): Change ``no attached
2653 output section'' message slightly.
2654 (lang_do_assignments): Don't recurse down if there is no real
2657 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
2658 match corresponding change in emulation templates.
2659 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
2660 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
2662 Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2664 * ldver.c (ldversion): Updated version number.
2666 * cdtest-foo.cc: Use explicit "#pragma implementation".
2667 * cdtest-bar.cc: Renamed from cdtest-func.cc.
2668 * Makefile.in: References to cdtest-func.o changed to
2671 Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2673 Don't create unnecessary output sections.
2674 * ldlang.c (out_bfd_get_section_by_name): Remove.
2675 (wild_section): Call bfd_get_section_by_name rather than
2676 our_bfd_get_section_by_name. Don't call wild_doit if there is no
2678 (lang_create_output_section_statements): Remove.
2679 (map_input_to_output_sections): For several cases, call init_os if
2680 it has not already been called.
2681 (lang_size_sections): If output section was not created, skip it.
2682 (lang_process): Don't call lan_create_output_section_statements.
2683 (lang_place_orphans): Skip files with just_syms_flags set to true.
2684 * ld.texinfo: Document change.
2686 Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2688 * ldlang.c (wild_doit): Don't bother initializing the vma and
2689 section size. Don't special case SEC_SHARED_LIBRARY.
2690 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
2693 Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
2695 * config/go32.mh : New file for Xgo32X.
2697 Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2699 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
2700 before calling einfo, since we are reporting an fopen failure.
2701 From jrs@world.std.com (Rick Sladkey).
2703 * configure.in: Use "e" rather than "em_" as prefix for
2706 Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
2708 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
2710 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
2711 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
2713 * Makefile.in: Changed all generated file names.
2714 (ldemul-list.h): Depend on Makefile, not config.status. Changed
2715 sed patterns to handle new filenames.
2717 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
2718 * configure.in: Adjusted.
2720 Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
2722 * Makefile.in (install-info): Don't use "$<*", it doesn't always
2723 work. Instead, check build dir and $srcdir explicitly, and use
2724 `echo' to get all the filenames.
2726 * configure.in (h8300h-*-hms): Changed ld_target name to
2728 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
2731 * config/i960coff.mt: New file.
2732 * emulparams/gld960coff.sh: New file.
2733 * emultempl/gld960c.em: New file.
2734 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
2735 i960coff configuration.
2736 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
2738 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
2739 code isn't included in FSF releases, and it can still be
2740 explicitly selected.
2741 (distclean): Remove site.bak and tmpdir.
2742 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
2743 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
2745 Patches from Ralph Campbell:
2746 * config/mipsbsd.mh: New file.
2747 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
2748 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
2749 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
2752 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
2754 Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2756 * config/m68k.mt (EMUL): Set to m68kaout.
2757 * emulparams/m68kaout.sh: New file.
2758 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
2759 (em_m68kaout.c): New target.
2761 * ldlang.c (lang_size_sections): If dot moves because of an
2762 assignment, don't try to insert a pad into the absolute output
2763 section, just change the address of the default memory region
2766 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
2767 cdtest-ur.out, and cdtest-ur.tmp.
2769 Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2771 * scripttempl/sa29200.sc: Align all sections to four byte
2774 Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
2776 * Makefile.in, configure.in: Support for go32 coff.
2777 * config/i386-go32.mt: New file
2778 * emulparams/i386go32.sh: New file
2779 * scripttempl/i386go32.sc: New file
2781 Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
2783 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
2784 Lynx-specific script templates.
2785 * configure.in (sparclite*-*-coff): Use coff-sparc.
2786 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
2787 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
2788 (ENTRY): Set to __main.
2789 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
2790 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
2791 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
2793 Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2795 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
2796 byte boundary, in case the global constructors do not take up an
2799 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
2800 exist, get crtbegin based on gcc -print-libgcc-file-name.
2801 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
2803 Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2805 * ldlang.c (lang_size_sections): When no address is given for a
2806 section, align it according to its requirements.
2808 Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2810 * Makefile.in (clean, distclean): Remove configdoc.texi.
2812 Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
2814 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
2816 Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2818 * ldlang.c (lang_size_sections): When relaxing, adjust the
2819 position of a padding statement, and adjust dot accordingly.
2821 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
2823 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
2825 Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2827 * scripttempl/i386coff.sc: If relocating, don't put .init and
2828 .fini sections into .text; keep them separate.
2829 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
2830 exist, get crtbegin based on gcc -print-libgcc-file-name.
2831 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
2833 Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
2835 * Makefile.in (check): Set TCL_LIBRARY for runtest.
2837 Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2839 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
2842 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
2843 if building a final executable.
2845 Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2847 * ldmain.c (main): Check the return value of bfd_close.
2849 Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2851 * scripttempl/alpha.sc: Clean up section alignment to ensure that
2852 sections never overlap when using -r.
2854 Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2856 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
2857 changes: get_symtab_upper_bound renamed and returns long,
2858 bfd_canonicalize_symtab returns long, check for error indications.
2860 Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2862 * ldlang.c (print_input_section): For section size, use
2863 _cooked_size if it is non-zero, size otherwise.
2864 (size_input_section): Likewise.
2865 (lang_do_assignments): Likewise (case lang_input_section_enum).
2867 Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2869 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
2870 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
2871 (lang_add_input_file): Pass true to new_afile for add_to_list.
2872 (lookup_name): Remove force_load argument. Changed all callers.
2873 Pass false to new_afile for add_to_list. Split loading of symbols
2874 out into separate function.
2875 (load_symbols): New function split out of lookup_name. Don't load
2876 the symbols if they are already loaded.
2877 (open_input_bfds): For lang_input_statement_enum call load_symbols
2878 rather than lookup_name.
2879 (lang_process): Pass abs_output_section rather than NULL to
2881 (lang_startup): Set real field of first_file to true.
2883 Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2885 * ldlang.c (had_relax): Removed.
2886 (relax_again): New static variable.
2887 (lang_size_sections): Change call to bfd_relax_section to
2888 correspond to BFD changes. Set relax_again appropriately.
2889 (lang_process): Remove #if 0 code. When relaxing, keep calling
2890 lang_do_assignments and lang_size_sections until relax_again
2893 * emultemp/gld960.em: Include libiberty.h
2894 (gld960_before_parse): Pass NULL as final argument to concat.
2896 Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2898 * scripttempl/aout.sc: Force _end and __end to be aligned to a
2901 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
2902 building a bfd_data_link_order, rather than by setting the section
2903 contents immediately.
2905 Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2907 Changes to make -Ur work again.
2908 * ldmain.c (add_to_set): Now takes reloc argument rather than
2909 bitsize. Check config.build_constructors here. If an new hash
2910 table entry is created, mark it as undefined.
2911 (constructor_callback): No longer takes bitsize argument. Pass
2912 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
2913 BFD backend supports it.
2914 (reloc_overflow): Handle a NULL abfd argument.
2915 (reloc_dangerous, unattached_reloc): Likewise.
2916 * ldctor.c: Include ldmain.h.
2917 (struct set_info): Change bitsize field to reloc.
2918 (ldctor_add_set_entry): Now takes reloc argument rather than
2919 bitsize. Don't bother to check config.build_constructors here.
2920 (ldctor_build_sets): Get the size from the reloc howto. If
2921 generating relocateable output, call lang_add_reloc rather than
2923 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
2925 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
2926 (lang_reloc_statement_type): New structure.
2927 (lang_statement_union_type): Add reloc_statement field.
2928 (lang_add_reloc): Declare new function.
2929 * ldlang.c (lang_for_each_statement_worker): Handle
2930 lang_reloc_statement_enum.
2931 (map_input_to_output_sections, print_statement): Likewise.
2932 (lang_size_sections, lang_do_assignments): Likewise.
2933 (print_reloc_statement): New function.
2934 (lang_add_reloc): New function.
2935 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
2937 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
2938 (cdtest-ur, cdtest-ur.out): New targets.
2939 (check-cdtest): Now also check that -Ur works correctly.
2941 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
2943 Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2945 * ldlang.c (lang_process): Move lang_common call before
2946 map_input_to_output_sections, to ensure that any alignment
2947 constraints set by common symbols are copied over to the output
2950 Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2952 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
2953 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
2954 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
2955 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
2958 Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
2960 * config/i386bsd.mh: New file.
2962 Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2964 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
2966 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
2967 (DATA_START_SYMBOLS): Define _fdata.
2969 Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
2971 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
2973 Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2975 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
2976 works again. Attach some output symbols to the stub file bfd.
2978 * emultempl/hppaelf.em: Include elf32-hppa.h.
2979 (file_chain): Add decl.
2980 (hppa_look_for_stubs_in_section): Delete decl.
2981 (hppaelf_finish): Reenable code. Do not pass symbols
2982 down to hppa_look_for_stubs_in_section.
2984 Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
2986 * ldmain.c (write_map): Don't define. Removed all references.
2987 Just use map_file or map_filename instead.
2988 (add_archive_element): Use minfo to write map information, not
2990 (constructor_callback): Use fprintf to write map information, not
2992 * ldmain.h (write_map): Don't declare.
2993 * ldgram.y (mri_script_command): Removed reference to write_map.
2994 * ldlang.c (lang_one_common): Likewise.
2995 * lexsup.c (parse_args): Likewise.
2997 Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
2999 * scripttempl/elf.sc: Force all sections to be aligned.
3001 * ldgram.y (section): Reverse the order of memspec_opt and
3002 fill_opt to avoid an ambiguity when both are used.
3003 * ld.texinfo: Changed accordingly.
3005 * ldgram.y: Move include of ldlex.h back with other includes.
3006 * ldlex.h (input_type): Don't initialize enum constants to
3008 * ldlex.l: Use a switch to return the right token based on
3009 input_type, rather than knowing that input_type has a value based
3012 * ldgram.y (dirlist_ptr): Removed; not used.
3013 * lexsup.c: Include ldver.h.
3014 * Makefile.in: Rebuilt dependencies.
3016 Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
3018 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
3019 (ldlang_add_file): call it here instead.
3021 Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3023 * ldgram.y: Include ldlex.h after %token decls, for byacc.
3025 Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3027 * emultempl/hppaelf.em: First attempt to clean this file up.
3028 Add comments in several functions as to their purpose and
3029 how they function (or my current best guess). Clean up horrible
3030 spacing and indention that never should have been accepted in the
3031 first place. Add FIXMEs for issues which need to be resolved.
3032 Disable linker-stub generation until it gets fixed. This allows
3033 the linker to at least work on simple code for testing purposes.
3035 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
3036 it via hppaelf_finish). Prototype moved into ldlang.h.
3037 (lang_process): Move problematic extra call to lang_size_sections
3038 into the PA ELF specific code.
3039 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
3040 lang_size_sections moved here.
3042 Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
3044 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
3045 * config/ppc-elf32.mt: New file.
3046 * emulparams/elf32ppc.sh: New file.
3047 * emultempl/ppc.em: New file.
3048 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
3049 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
3050 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
3052 Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3054 * lexsup.c (parse_args): Use symbolic numbers for long options.
3055 Fix misunderstanding in -Y and -call_shared et al.
3057 Use getopt instead of lex and yacc to parse the command line.
3059 * ld.texinfo (Options): Document changes to option syntax.
3060 * Makefile.in: Update dependencies.
3061 * ldver.c (help): Tweak dashes in usage message.
3062 * ldgram.y (%union): Remove unused members.
3063 Remove %tokens for command line options; add ones for input types.
3064 (command_line): Rules removed.
3065 (file): Instead of command line, recognize an
3066 input type indicator, then use the nonterminal for that type.
3067 (defsym_expr): New nonterminal from code formerly in command_line.
3068 * ldlex.h: Declare parser input type enum and variable.
3069 Don't declare parse_line.
3070 * ldlex.l: Remove unused variables. Make some used ones static
3072 (COMMAND): Start state and its rules removed.
3073 At start of yylex, return input state token if at start of input.
3074 (lex_redirect): Don't need to set yyout.
3075 (ldlex_command): Function removed.
3076 * ldmain.c (main): Instead of calling parse_line, set up the
3077 redirections and call yyparse directly.
3078 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
3080 * lexsup.c: Remove #if 0'd code.
3081 (parse_line): Function removed.
3082 (parse_args): Rewrite to use getopt_long_only.
3083 (set_default_dirlist): New function from code formerly in
3084 ldgram.y:command_line.
3085 (set_section_start): New function.
3086 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
3087 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
3088 compiled-in link scripts in "{" and "}", as the grammar no longer
3091 Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
3093 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
3094 require that it be in $(srcdir).
3096 Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
3098 * ldlang.c (lang_size_sections): Only align section to alignment
3099 required by linker script, not to maximum alignment of input
3102 * ldlang.h (largest_section): Don't declare.
3103 * ldlang.c (largest_section): Don't define.
3104 (size_input_section): Don't set largest_section; not used.
3106 Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
3108 * ldlang.c (new_afile): Pass NULL as last argument to concat.
3110 Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3112 * ldlang.c, ldmain.c: Include libiberty.h.
3114 * ldmisc.h (concat): Don't declare.
3115 * ldmisc.c (concat): Don't define; just use the one in libiberty.
3117 * ld.h (as_output_section_statement): Removed; not used.
3119 Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3121 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
3122 bfd_set_error and new error names.
3124 Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3126 * ldwrite.c (build_link_order): If the cooked size of the section
3127 has been set, use it, for determining link_order size.
3128 (ldwrite): In the error message displayed if bfd_final_link fails,
3129 indicate that it was in fact the final link step that failed.
3131 * ldlang.c (lang_size_sections): Clear bfd_error before calling
3132 bfd_relax_section, in case it returns false but doesn't flag an
3133 error. If an error is returned, indicate which one it is in the
3136 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
3137 it'll get picked up from $(srcdir) if appropriate.
3139 Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3141 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
3142 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
3144 Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3146 * ldlex.l (comment): Increment line number when newline is read.
3148 Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3150 * ldlang.c (lookup_name): Take new argument, force_load. If true,
3151 reload the file even if it is already loaded.
3152 (wild): Call lookup_name with force_load argument of 0.
3153 (open_input_bfds): Call lookup_name with force_load argument of 1.
3154 (print_symbol): Remove declaration of non-existent function.
3155 (print_one_symbol): Return true rather than falling off end.
3157 Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3159 * ldmain.c (main): Use %ld when printing long values.
3161 * scripttempl/elf.sc: Move _edata after the .sdata section.
3162 Permit OTHER_BSS_SYMBOLS to be defined.
3163 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
3165 Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3167 * Rename all "hppaosf" files to "hppaelf".
3168 * Change all "osf" references to "elf" in hppaelf files.
3169 * Makefile.in: Likewise.
3170 * configure.in: Likewise.
3172 Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3174 * ldmain.c (main): Call xatexit, not atexit.
3175 Call xmalloc_set_program_name.
3177 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
3180 Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3182 * emultempl/lnk960.em (append), emultempl/hppaosf.em
3183 (hppaosf_finish): Call xmalloc, not ldmalloc.
3184 * ldmain.c (preserve_output): Function removed.
3185 (main): Do it here instead.
3187 Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3189 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
3190 GNU C specific macros.
3192 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
3193 call to LANG_FOR_EACH_INPUT_SECTION.
3195 Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3197 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
3198 deleted; will use libiberty versions instead.
3199 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
3200 mri.c Makefile.in: Change callers.
3202 * ldmisc.c (vfinfo): Remove cleanup code.
3203 * ldmain.c (remove_output): Put it here (new function).
3204 (preserve_output): New function.
3205 (main): Register remove_output and preserve_output with atexit.
3206 * ldmain.c ldgram.y: Call xexit instead of exit.
3207 * ldmisc.h: Declare xexit.
3209 Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
3211 * Makefile.in: Lots of new H8/500 memory models.
3213 Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3215 * ldlex.l: Removed duplicate rules.
3216 (yywrap): Provide default definition, needed with some versions of
3219 Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3221 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
3222 the archive filename too.
3224 * ldlex.l: Add rule to catch invalid input characters instead of
3225 printing them. Include "ldmain.h" for program_name decl.
3226 (lex_warn_invalid): New function.
3227 * Makefile.in: Add dependency.
3229 Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3231 * Makefile.in (check): Don't bother running any tests of
3232 cross-linker until the test suite no longer assumes native mode.
3234 Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3236 * ldlang.c (print_one_symbol, print_input_section): Print
3237 global symbols in symbol table again.
3239 Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3241 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
3242 exit successfully instead of complaining if no input files are
3245 Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
3247 * Makefile.in: Format variable definitions consistently.
3248 (LD_PROG): Remove unnecessary variables from link command,
3249 change variable LOADLIBES to EXTRALIBS.
3251 * ldmain.c (main): Compute and display total execution time.
3252 * ld.texinfo (-stats): Document the option.
3254 Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3256 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
3259 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
3262 * ldlang.c (relaxing): Removed global variable.
3263 (lang_size_sections): If the canonical symbols have not already
3264 been read in, read them in before relaxing.
3265 * ldlang.h (relaxing): Removed declaration.
3267 Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3269 * ldlang.c (new_afile): Initialize loaded field to false.
3270 (lookup_name): If file was already loaded, don't call the
3271 add_symbols entry point again.
3273 Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3275 * ld.texinfo: Clarify what -T option does.
3277 Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3279 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
3282 Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3284 * ldmain.c (add_archive_element): If trace_files or
3285 trace_file_tries, print file name.
3286 * ldlang.c (lookup_name): Likewise.
3287 (ldlang_add_file): Don't put files on input_bfds list in reverse
3290 * scripttempl/elf.sc: Correct typo.
3292 Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3294 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
3295 their arguments optional, for compatibility with the old GNU ld.
3297 Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3299 * scripttempl/elf.c: Define __bss_start before the .sbss section.
3301 Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3303 * ldmain.c (add_to_set): Add bitsize argument.
3304 (constructor_callback): New function.
3305 (link_callbacks): Add constructor_callback.
3306 * ldctor.c (struct set_info): Add bitsize field.
3307 (ldctor_add_set_entry): Add bitsize argument.
3308 (ldctor_build_sets): Base the size of the elements of the set on
3309 the bitsize, rather than always using LONG.
3310 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
3312 * ld.h (QUAD_SIZE): Define.
3313 * ldgram.y (QUAD): New token.
3314 (length): Handle it.
3315 * ldlex.l: Return QUAD.
3316 * lexsup.c (keywords): Add QUAD.
3317 * ldwrite.c (build_link_order): Handle QUAD.
3318 * ldlang.c (print_data_statement): Handle QUAD.
3319 (lang_size_sections): Likewise.
3320 (lang_do_assignments): Likewise.
3321 * ldexp.c (exp_print_token): Add QUAD to table.
3322 * ld.texinfo: Describe QUAD.
3324 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
3325 since the Alpha doesn't use them.
3327 Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3329 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
3331 Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
3333 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
3334 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
3336 Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3338 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
3339 needed for i386mach. (Should be a no-op on other systems.)
3341 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
3342 (PAGE_SIZE): Don't define; not used.
3344 Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3346 * ldgram.y (yyerror): Make argument const char *, and actually
3347 print it out rather than assuming it is a syntax error.
3348 * ldmisc.h: Change declaration of yyerror.
3349 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
3351 Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3353 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
3354 exec header offset, since the exec header isn't loaded.
3355 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
3357 Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3359 A major rewrite to move the bulk of the linker into BFD so that
3360 more efficient backend code can be written for specific object
3362 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
3363 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
3364 * ldctor.c, ldctor.h: Complete rewrite.
3365 * ldwrite.c, ldwrite.h: Complete rewrite.
3366 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
3367 link_info.strip instead. Changed all uses.
3368 (discard_locals_type, discard_locals): Removed. Use
3369 link_info.discard instead. Changed all uses.
3370 (ld_config_type): Removed relocateable_output field; use
3371 link_info.relocateable instead; changed all uses. Added stats
3373 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
3374 set_loader_symbol): Removed.
3375 * ldexp.h (node_class): Added etree_rel.
3376 (etree_type): Added rel field.
3377 * ldexp.c (exp_print_token): Bracketed table initialization.
3378 (exp_relop): New function.
3379 (fold_name): Use linker hash table rather than ldsym functions.
3380 (exp_fold_tree): Likewise. Also, handle etree_rel case.
3381 (exp_print_tree): Handle etree_rel.
3382 * ldgram.y (strip_symbols, discard_locals): Removed.
3383 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
3384 (REL): New token. Does not appear in grammar, but needed for
3386 (file): Don't call lang_final; it's called by main anyhow.
3387 * ldlex.l: Accept -stats and -no-keep-memory options.
3388 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
3389 * ldlang.c: Consistently use fill_type for fill argument.
3390 (lang_init_script_file, script_file): Removed.
3391 (create_object_symbols): Removed. Use
3392 link_info.create_object_symbols_section instead. Changed all
3394 (lang_add_keepsyms_file): Removed.
3395 (lookup_name): Call bfd_link_add_symbols instead of
3396 ldmain_open_file_read_symbol.
3397 (wild): Don't iterate over script_file.
3398 (open_output): Create link hash table.
3399 (lang_place_undefineds): Rewrote.
3400 (lang_size_sections): Handle relaxing (doesn't work yet).
3401 (lang_relocate_globals): Removed.
3402 (lang_finish): Use link hash table rather than ldsym functions.
3403 (lang_common): Rewrote.
3404 (lang_one_common): New function.
3405 (ldlang_add_file): Add file to link_info.input_bfds list. Set
3407 (create_symbol): Removed.
3408 (lang_process): Don't call lang_init_script_file. Call
3409 ldctor_build_sets rather than find_constructors. Don't call
3410 lang_relocate_globals.
3411 (lang_abs_symbol_at_beginning_of): Rewrote.
3412 (lang_abs_symbol_at_end_of): Rewrote.
3413 * ldmain.c (had_y): Removed.
3414 (lprefix, lprefix_len): Removed; use link_info fields instead.
3416 (multiple_def_count, commons_pending, undefined_global_sym_count,
3417 total_symbols_seen, total_files_seen): Removed.
3418 (link_callbacks, link_info): New variables.
3419 (main): Initialize link_info. Don't call init_bfd_error_vector or
3420 ldsym_init. Don't set now unused variables. Handle -stats.
3421 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
3422 (add_ysym): Rewrote.
3423 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
3424 search_library, gnu960_check_format, decode_library_subfile,
3425 linear_library, symdef_library, clear_syms, subfile_wanted_p):
3427 (add_keepsyms_file, add_archive_element, multiple_definition,
3428 multiple_common, add_to_set, warning_callback, undefined_symbol,
3429 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
3431 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
3432 require symbols for %C; look them up instead.
3433 * emultempl/hppaosf.em: Pass link_info to
3434 hppa_look_for_stubs_in_section.
3435 * Makefile.in: Rebuilt dependencies.
3436 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
3438 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
3440 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
3441 ldlang.h and ldctor.h.
3443 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
3444 declarations of free and malloc from flex output. Change malloc
3445 to ldmalloc in flex output.
3447 Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
3449 * ldmain.c (lprefix): Change default from a char to a string
3450 with only one character.
3451 (lprefix_len): Set default to one.
3453 * ldmain.h (lprefix_len): Declare.
3455 * ldsym.c (write_file_locals): Use strncmp rather than a character
3456 comparison for lprefix.
3458 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
3461 * emultmpl/hppaosf.em: Include ldexp.h.
3462 (before_parse): Set lprefix and lprefix_len correctly.
3464 Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3466 * ldlex.h: Don't declare yywrap if it is a macro.
3467 * ldlex.l: Include sysdep.h.
3468 * ldlang.c (lang_for_each_statement_worker,
3469 lang_for_each_statement): Forgot to use PARAMS.
3471 Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3473 * Makefile.in: Added .PHONY targets where appropriate. Added some
3475 (gcclibdir, version): Removed unused variables.
3476 (DEP): New variable, set to mkdep.
3477 (ALL_CFLAGS): New variable. Used in .c.o target.
3478 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
3480 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
3481 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
3482 mostly obsolete variables. Adjusted remaining uses.
3483 (DEF_EMUL): Removed variable.
3484 (ldmain.o): Handle undefined EMUL error correctly.
3485 (ldemul-list.h): Depend on config.status rather than Makefile.
3486 Create via temporary file.
3487 (ver960.c, roll, make): Removed obsolete targets.
3488 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
3490 * dep-in.sed: New file, used when rebuilding dependencies.
3492 Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
3494 Made many changes to eliminate gcc warnings. Made various
3495 cosmetic changes, declared various things in header files, removed
3496 various extern declarations from .c files. No substantive
3499 * ldlang.c (lang_process): Ifdef out final call to
3500 lang_size_sections again (reverting change of Nove 2), since it
3501 breaks the Sun4 linker.
3503 Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3505 * configure.in (alpha-*-netware*): New target; use alpha.
3507 Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
3509 * configure.in: Group targets by CPU. Merge some m68k target
3510 entries with different CPU specs that use the same ld_target
3513 * configure.in: Add sparc*-*-coff.
3514 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
3515 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
3516 (em_coff_sparc.c): Add dependencies and build rules.
3518 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
3520 Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3522 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
3524 (command_line_option): Accept and ignore them (for now).
3525 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
3526 where n is a number.
3528 Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3530 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
3531 not in bfd_com_section, create the section in the BFD so that it
3532 can be placed in the right output section.
3534 Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3536 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
3537 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
3538 (OTHER_READONLY_SECTIONS): Define for .reginfo.
3539 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
3540 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
3541 Move OTHER_READONLY_SECTIONS after all the other readonly
3542 sections. Don't use DATA_ADDR twice.
3544 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
3545 p is in a common section, make sure the BFD has a section of that
3548 * ldlang.c (lang_common): Add newline to error message.
3550 Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
3552 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
3553 Lynx-specific script instead of m68kcoff.
3554 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
3555 (ENTRY): Define as __main.
3556 (TEXT_START_ADDR): Define as 0.
3557 (PAGE_SIZE): Define as 0x1000.
3558 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
3559 * scripttempl/m68klynx.sc: New file.
3561 Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3563 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
3564 arguments rather than treating them as emulation names.
3566 Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
3568 * configure.in: Support x86 unixware and netware plus generic netware.
3570 Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3572 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
3575 Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
3577 * Makefile.in (distclean): Don't delete dvi or info files.
3578 (ld.info): Update dependency list.
3579 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
3581 Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3583 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
3584 Set output_filename instead of creating a new node.
3585 (open_output): Don't set output_filename.
3586 (lang_final): Create the new node here.
3587 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
3589 Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
3591 From Pete Hoogenboom (hoogen@cs.utah.edu):
3593 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
3594 edata, _edata, end): Add definitions of these symbols.
3595 (__end): Remove definition of this symbol.
3596 (__data_start): Move definition of this symbol.
3598 * emultempl/hppaosf.em: Various fixes and support for linker stub
3600 (hppaosf_finish, hppaosf_search_for_padding_statements,
3601 hppaosf_create_output_section_statements): New functions in
3602 support of linker stub generation.
3603 (ld_hppaosf_emulation): Redefine to include new
3604 emulation-specific routines.
3606 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
3607 Pass abs_output_section rather than NULL to avoid invalidating
3610 Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3612 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
3613 (em_i386mach.c): New rule.
3614 * configure.in (i[34]86-*-mach*): New case.
3615 * config/i386-mach.mt: New file.
3616 * emulparams/i386mach.sh: New file.
3618 Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3620 * ld.h (flag_is_*): Removed macros.
3621 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
3622 Consistently check the BFD symbol flags directly, rather than
3623 using file_is_* macros.
3625 Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
3627 * configure.in (sparc*-*-lynxos*): New target.
3628 * Makefile.in: Add rule for em_sparclynx.c.
3629 (ALL_EMULATIONS): Add Lynx emulations.
3630 * config/sparc-lynx.mt: New file.
3631 * emulparams/sparclynx.sh: New file.
3632 * scripttempl/sparccoff.sc: New file.
3634 Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3636 * Makefile.in: Add dependency for $(EMULATION_OFILES).
3638 Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3640 * relax.c (write_relax): Check return value of bfd_seclet_link.
3642 Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
3644 * ldlang.c (delete_output_file_on_failure): New variable.
3645 (open_output): Set it after bfd open succeeds.
3646 * ldmisc.c (vfinfo): Test it.
3648 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
3650 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
3653 * ldemul.c: Support was added to allow emulation-specific
3654 processing to occur. This support was added primarily for linker
3655 stub generation in the elf32-hppa gld.
3656 (ldemul_finish, ldemul_create_output_section_statements): New
3658 * ldemul.h: Support was added to allow emulation-specific
3659 processing to occur. (As described above.) Added finish and
3660 create_output_section_statements fields to
3661 ld_emulation_xfer_struct structure.
3662 * ldlang.c: Add calls to emulation-specific routines.
3663 (lang_process): Add call to
3664 ldemul_create_output_section_statements function.
3665 (lang_process): Add call to a emulation-specific routine (and
3666 some processing after the call).
3668 Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
3670 * configure.in: mips*- instead of mips-, mips*el changes
3672 Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3674 * configure.in (alpha-*-osf*): New target; use alpha.mt.
3675 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
3676 (em_alpha.c): New target; use alpha.sh and alpha.sc.
3677 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
3678 * config/alpha.mt: New file.
3679 * emulparams/alpha.sh: New file.
3680 * scripttempl/alpha.sc: New file.
3682 Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
3684 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
3685 types of different sizes (eg: 64 and 32 bits), so coerce.
3686 * ld.h (ALIGN_N): Add warning about usage.
3688 Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3690 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
3691 which we already have a definition, rather than checking in
3692 several different places whether the symbol is weak.
3694 Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3696 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
3697 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
3698 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
3699 expanded within them.
3700 * config/mipsb-elf32.mt: New file.
3701 * emulparams/elf32mipb.sh: New file.
3702 * Makefile.in (em_elf32mipb.c): New target.
3704 Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
3706 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
3707 lang_input_file_is_search_file_enum so objects brought in using
3708 INPUT() do a path lookup.
3710 Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
3712 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
3713 instead of {i386,m68k}-coff.
3714 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
3715 * config/i386-lynx.mt: New file.
3716 * config/m68k-lynx.mt: New file.
3717 * emulparams/i386lynx.sh: New file.
3718 * emulparams/m68klynx.sh: New file.
3720 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
3721 but defaulting to _start.
3723 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
3724 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
3727 Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
3729 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
3730 HOSTING_LIBS for testing.
3732 Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3734 Finish up support for i386-sysv4 (without shared libraries):
3735 * ld.h (flag_is_weak): Define.
3736 * ldlang.c (print_symbol): Mention whether symbol is weak.
3737 (print_input_section): Print weak symbols as globals.
3738 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
3739 (enter_global_ref): Do not warn if a weak symbol redefines a
3740 global symbol. Do not let a weak symbol redefine a common symbol.
3741 (enter_file_symbols): Treat weak symbols as global symbols.
3742 (subfile_wanted_p): Do not pull in an object file from a archive
3743 just to resolve an undefined weak symbol.
3744 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
3745 error; the error might be that malloc has run out of space.
3746 * ldsym.c (write_file_locals): Treat weak symbols as global.
3747 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
3749 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
3750 * config/i386-elf.mt: New file; set EMUL to elf_i386.
3751 * emulparams/elf_i386.sh: New file.
3752 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
3753 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
3754 (ALL_EMULATIONS): Add em_elf_i386.o.
3755 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
3756 (em_elf_i386.c): New target, like other em_*.c targets.
3757 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
3758 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
3759 nonempty, and configured for native, add it to LIB_PATH.
3761 Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
3763 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
3764 Added statements to pass stab and stabstr sections through and
3765 mark them as NOLOAD, which makes GDB happier.
3767 Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
3769 * configure.in: Accept m68k-lynx-lynxos config.
3771 * Makefile.in: Use $(SHELL) to run genscripts.sh.
3773 Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
3775 * config/coff-h8300.mt: Add EMUL=h8300h.
3777 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
3779 Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
3781 * Makefile.in: Changed CXX back to g++.
3783 Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
3785 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
3787 Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3789 * Makefile.in (TAGS): Use shell wildcards.
3791 Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
3793 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
3795 Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
3797 * ld.texinfo: re-enable included config file; conditionalize doc
3798 for -oformat to interact properly with SingleFormat doc config
3799 var; rename @up/@down to @raisesections/@lowersections.
3801 Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
3803 * configure.in: recognize m88110.
3805 Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3807 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
3808 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
3809 ELF emulation is "elf32-hppa" not "elf-big".
3810 (hppaosf_before_parse): Remove unneeded processing of environment
3812 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
3813 .text segment of output file.
3814 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
3816 Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
3818 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
3821 * ldlang.c, ld.h: updated copyright.
3823 Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3825 * ldlang.c (open_output, lang_check): Check return value of
3828 Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
3830 * scripttempl/h8500.sc: Start all sections in a different segment.
3831 * scripttempl/z8ksim.sc: Handle constructors
3833 Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
3835 * Makefile.in: revert earlier changes back to execute runtest
3836 with make check. cdtest and bootstrap now function as they
3837 did within the Makefile.
3839 Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3841 * Makefile.in: Update dependencies.
3843 * configure.in: Set EMULATION_OFILES in Makefile based on
3844 --with-targets option.
3846 Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
3848 * Makefile.in: check targets reimplemented to old way.
3850 Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
3852 * config/i386v.mh, config/irix4.mh: Use gcc
3853 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
3854 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
3855 bfd/configure.host change.
3857 Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3859 * scripttempl/elf.sc: Handle .line and .debug* sections.
3861 * ldlex.l: Use bfd_scan_vma, not strtoul.
3863 Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3865 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
3866 Remove inital caps in some error messages, change "can't" to
3867 "cannot", add missing colons.
3868 * ldmisc.c (vfinfo): Print "%%" as a single %.
3869 For '%' followed by unrecognized character, print them both
3870 verbatim instead of expecting a char * arg.
3871 For '%C', don't put the function name in parens.
3873 * ldexp.c (invalid): Pass "%%", not "% ".
3875 Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3877 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
3878 (BSS_VAR): Removed; now always define _fbss.
3879 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
3882 Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
3884 * configure.in: z8k-coff is the same as z8k-sim
3886 Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
3888 * testsuite/lib/ld.exp: new file
3889 * testsuite/config/unix-ld.exp: new file
3890 * testsuite/ld.bootstrap/bootstrap.exp: new file
3891 * Makefile.in: add dejagnu support for make check
3893 Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3895 * ldlex.l (comment): Add missing newline in message.
3896 * ldindr.c (add_indirect): Ditto.
3897 * ldexp.c (exp_fold_tree): Ditto.
3899 Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3901 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
3904 * ldmisc.c (multiple_warn): New function.
3905 * ldmisc.h: Declare it.
3906 * ldmain.c (enter_global_ref): Call it.
3907 * ld.h (ld_config_type): Add warn_common.
3908 * ldlex.l, ldgram.y: Set it with -warn-common option.
3909 * ldver.c (help): Document it.
3911 Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3913 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
3914 target-specific sections, and for changing data section vma.
3916 Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
3918 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
3919 terminals, for Solaris.
3920 (dirlist_ptr): New static variable.
3921 (command_line_option): Accept new options.
3923 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
3926 * config/sun4sol2.mt: Pass emulation name without ".sh".
3928 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
3929 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
3931 Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3933 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
3934 .dtors, .data1, .rodata1 sections, instead of combining them into
3935 other sections. For `-r', set all section start addresses to
3938 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
3939 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
3940 (MAXPAGESIZE): Renamed from PAGE_SIZE.
3942 Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3944 * genscripts.sh: If this is the default emulation, set
3946 * emultempl/*.em: Use it to determine whether to compile in the
3949 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
3950 genscripts.sh. Pass the current emulation name without ".sh" on
3952 * genscripts.sh: Take an default emulation arg.
3953 Use the current emulation name as EMULATION_NAME.
3954 Make default lib path for cross-compiling ':', not null.
3955 * emulparams/*.sh: Don't set EMULATION_NAME.
3956 * ldemul.c (ldemul_get_script): Take isfile arg.
3957 Pass it to emulation's get_script function.
3958 * ldemul.h: Adjust get_script prototypes.
3959 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
3961 * ldfile.h: Declare it.
3962 * ldgram.y: Accept a script on the command line again,
3963 for parsing compiled-in scripts.
3964 * ldmain.c (main): If ld script is a file, parse it as a -T
3965 option, otherwise parse it directly.
3966 * emultempl/*.em (*get_script): Return the scripts themselves if
3967 this is the default emulation; otherwise return their file names.
3968 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
3970 * emulparams/m88kbcs.sh: Use it.
3972 * ld.h (ld_config_type::unix_relocate): Remove unused element.
3974 Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
3976 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
3977 there's no change log entry yet, tsk tsk) from the list of
3978 emulations compiled in until Mark gets around to checking in
3979 emulparams/i386linux.sh.
3980 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
3981 changed, this file gets updated.
3983 Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
3985 * ldgram.y (OPTION_Lfile): New token.
3986 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
3987 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
3989 Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
3991 * configure.in: h8/300h support needs own .mt file.
3992 config/coff-h8300h.mt: New file.
3994 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3996 * ldmain.c: Don't include sys/stat.h; it already got included
3997 somewhere along the way.
3999 Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
4001 * Makefile.in: Add h8300h support.
4002 emulparams/h8300h.sh: New file.
4003 scripttempl/h8300h.sc: New file.
4005 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4007 * ldfile.c (ldfile_open_file): In error message, use the name the
4008 user gave (e.g., "-lc"), rather than the base file name.
4010 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
4012 * ldmain.[ch]: Remove initial Q_ from function names.
4013 * ldexp.c, ldindr.c, ldlang.c: Change callers.
4015 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
4017 * ldlang.c (lang_process): Move loading of default script from
4018 here to main. Add a "/" to start of script name to prevent
4019 finding it in "." first.
4021 * ldmain.c (set_scripts_dir): Don't look in "." first.
4023 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
4026 Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
4028 * Makefile.in (em_m88kbcs.c): Correct dependency.
4029 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
4030 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
4031 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
4033 Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4035 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
4036 main.c (main): Print the errno string in the error message.
4038 Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
4040 * configure.in: Accept h8300h for target cpu.
4042 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
4043 present (demangle is smart enough to know whether to do it or not).
4045 Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4047 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
4048 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
4050 * ldlang.c (lang_process): Use sizeof instead of magic constant.
4052 * ldmain.c (get_emulation, check_for_scripts_dir,
4053 set_scripts_dir): New functions.
4056 Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4058 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
4059 Create symbol "end" instead of "__end". Comment out some parts
4060 that may not be needed (yet) for elf.
4062 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
4064 Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4066 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
4068 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
4069 when no prototype is being supplied.
4070 (ldmalloc, ldrealloc): Size argument is now size_t.
4072 * ldmisc.c (finfo): New function, accepts FILE* argument.
4073 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
4074 without leading zeros.
4075 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
4076 bfd_vma value, instead of fprintf(%x) which won't hold a long long
4078 (concat, buystring): String lengths are size_t.
4079 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
4081 * ldlang.c (new_statement): Size argument is now size_t. Added
4082 forward declaration with prototype.
4084 Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4086 * ldgram.y (OPTION_v): Don't turn on verbose output.
4088 Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4090 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
4093 Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
4095 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
4096 collect2 doesn't look for gld any more anyhow.
4098 Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
4100 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
4101 now have a non NULL srefs_chain.
4103 * config/hp300hpux.mt: Use emulation hp3hpux rather than
4104 hp300hpux, since the latter does not exist.
4106 Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4108 * genscripts.sh: Put the scripts in the ldscripts directory, not
4110 * configure.in (ldscripts): Make, instead of emulations.
4111 * Makefile.in (scriptdir): Take off the "ld" part.
4112 (install, clean, distclean): Use ldscripts, not emulations.
4113 In tests, don't pass -Lemulations.
4114 Don't pass tooldir/lib to genscripts.sh.
4115 * genscripts.sh: Don't take tooldir/lib arg.
4116 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
4117 default script file.
4119 Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
4121 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
4123 Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
4125 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
4127 Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4129 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
4130 run in parallel without colliding on yacc's static file names.
4131 Without the stub rule, make will try to start two yacc's
4132 concurrently which fails because of yacc's static file names.
4134 Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
4136 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
4139 Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4141 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
4142 different from libdir.
4144 * Makefile.in (scriptdir): Base on tooldir, not datadir.
4146 Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4148 * ldver.c (help): New function.
4149 * ldver.h: Declare it.
4150 * ldlex.l, ldgram.y: Recognize new options --help and --version.
4152 Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
4154 * Makefile.in (INCLUDES): Don't need ../include any more.
4156 Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4158 * ldlex.l, ldgram.y: Support new -oformat option.
4159 Remove attempt at supporting script fragments on the command line.
4160 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
4161 * mri.c (mri_format), ldgram.y: Change callers.
4162 * ldlang.h: Change prototype.
4164 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
4166 * Makefile.in: canonicalize install.sh; for use within
4167 this directory (and subdirs)
4169 Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4171 * ldgram.y: Tweak grammar to make reporting of invalid options work.
4173 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
4176 Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4178 * ldfile.c (ldfile_open_command): Don't try .ld extension.
4179 It wasn't documented (or likely used) and wastes time.
4180 (try_open): If EXTEN is empty, don't try it.
4182 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
4183 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
4184 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
4185 with normal function declarations.
4187 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
4188 Move *.sc-sh to scripttempl/*.sc.
4189 * {emultempl,emulparams,scripttempl}/README: New files.
4190 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
4191 removed, replaced with generic.em.
4192 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
4193 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
4195 * *.em (*_get_script): Return script name instead of script contents.
4196 * ldlang.c (lang_process): Change caller.
4198 * ldlex.l, ldgram.y: Recognize -m option.
4199 Check for input files after *all* options in grammar.
4200 * ldmain.c (main): Check for -m options. Add default directory
4203 * mkscript.c: File removed.
4204 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
4205 to add to the default LIB_PATH.
4206 Look for input files in the new subdirectories.
4207 Create the scripts in emulations subdirectory and don't filter
4208 them through mkscript.
4209 * configure.in: Make the emulations subdirectory.
4211 * Makefile.in: Account for all of the above changes.
4212 Remove unused .SUFFIXES. Get libgcc.a path with gcc
4213 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
4214 Put CFLAGS last in the compilation rules.
4215 Add -I../bfd to INCLUDES so sysdep.h is found.
4217 Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4219 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
4221 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
4222 dependent on RELOCATING, not RELOCATION.
4223 * hp3hpux.sh (SHLIB_PATH): Define it.
4225 Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4227 * ldfile.c (try_open): If opening without the extension fails,
4228 try with the extension even if -v or -V was given.
4229 had_script is imported (from ldgram.y), not exported.
4231 Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
4233 * Makefile.in: remove parentdir support, use INSTALL_XFORM
4235 Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
4237 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
4238 * ldgram.y (statement_list_opt): New nonterminal, either empty or
4240 (section): Use statement_list_opt, not statement_list.
4241 * m68kcoff.sc-sh: Gather constructors and destructors and define
4242 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
4243 * sa29200.sc-sh: Gather constructors and destructors and define
4244 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
4246 Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
4248 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
4249 * configure.in: No longer need to configure to get sysdep.h.
4251 Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4253 * Makefile.in: remove install:all and install-info:info
4254 dependencies (these cause some spurious rebuilds at 'make install'
4257 Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
4259 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
4260 (mips-idt-ecoff*): Added trailing '*'.
4261 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
4262 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
4263 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
4265 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
4266 incorrect definitions.
4268 Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
4270 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
4271 symbols, unless stripping.
4273 Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
4275 * Makefile.in: configure looks for ####, so remove lines with many
4277 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
4278 and HOSTING_LIBS correctly so that ``make check'' will work.
4280 Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
4282 * mips.sc-sh: Define _etext, _edata, and _end, in addition
4283 to etext, edata, and end. Needed for IRIX 4.0.5F.
4284 Patch from mwp@iconix.oz.au (Michael Paddon).
4286 * Version 2.2.1 released.
4288 Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4290 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
4291 * mipsbsd.sh (EMULATION_NAME): Use new file name.
4293 Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4295 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
4298 * Version 2.2 released.
4300 Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4302 * ldver.c (ldversion): Bump version number to 2.2.
4304 Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
4308 Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
4310 * mips.sc-sh: Don't define BSS_VAR unless relocating.
4312 Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
4314 * Makefile.in (mkscript.o, mkscript): Build mkscript via
4315 mkscript.o, rather than directly from mkscript.c.
4317 Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4319 * configure.in: Look for ${target_makefile_frag} relative to
4320 ${srcdir}, not relative to build directory.
4322 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
4323 * configure.in: Recognize hppa*-hp-osf.
4324 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
4325 (em_hppaosf.c): Build it.
4326 * config/hppaosf.mh, hppaosf.mt: New files.
4328 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
4329 some system header files. All uses changed.
4331 * configure.in: Recognize i386-aix configurations as i386-coff
4334 * configure.in: Recognize m68*-*-hpux.
4335 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
4336 the value of STACKZERO.
4337 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
4338 (em_hp3hpux.c): Build it.
4339 * hp3hpux.sh, config/hp300hpux.mt: New files.
4341 Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
4343 * mips.sc-sh: Put constructors in the .data section.
4344 * Makefile.in (cdtest): Added dependency on ld.new.
4346 Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
4348 * Makefile.in: Change definition of $(tooldir) to match FSF.
4349 * vax.sh, config/vax.mt, configure.in, Makefile.in:
4350 Support VAX Ultrix and BSD.
4352 Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4354 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
4356 Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
4358 * ldlang.h (struct memory_region): Change `length' and
4359 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
4360 * ldlang.c, mri.c: Corresponding changes, plus lint.
4362 Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
4364 * configure.in: For all i386 targets, accept i486 as well.
4366 Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
4368 * ldlang.c (wild_doit): Preserve all flags for a
4369 SEC_SHARED_LIBRARY section.
4370 (size_input_section): Consider any SEC_HAS_CONTENTS section when
4371 computing largest_section.
4373 Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
4375 * ldlang.c (lang_output_section_statement_lookup): Initialize all
4376 fields of newly created structure.
4378 Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
4380 * ldmain.c (g_switch_value): New variable.
4381 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
4382 (command_line_option): Accept -G and set g_switch_value.
4383 * ldlex.l (COMMAND): Accept -G.
4384 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
4386 Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4388 Support for linking and loading at different places:
4390 * ldlex.l: Add "AT" keyword.
4391 * ldgram.y: Cleanup, and parse AT.
4392 * ldlang.c (print_output_section_statement): Print output address
4393 of section in map. (lang_size_sections): Fill sections' lma with
4395 * ldlang.h (lang_output_section_statement_type): Add load_base
4398 * ldindr.c (add_indirect): Keep more information in the alias
4400 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
4401 attribute from an input section.
4402 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
4403 default. (Q_enter_file_symbos): Indirect symbols now are known by
4404 their section, not a special symbol flag.
4405 * ldsym.c (write_file_locals): Indirect symbols aren't local.
4406 (write_file_globals): Write the mapping for an indirect symbol.
4407 * relax.c (build_it): When forced to write a NEVER_LOAD section,
4410 Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
4412 * ld.texinfo: changes for q1
4414 Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4416 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
4418 Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4420 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
4422 Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
4424 * mips.sc-sh: Added variables which may be overridden by a
4426 * mipsidt.sh: New file; emulation for IDT MIPS board.
4427 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
4428 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
4429 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
4430 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
4432 Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4434 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
4436 * i386bsd.sh, config/i386bsd.mt: New files.
4437 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
4439 Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
4441 * mri.c: Add extern declaration of strdup.
4442 * ldsym.c (KEEP macro): Add spaces around '=' for the
4443 sake of old (e.g. PCC) compilers.
4445 Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
4447 * ldver.c: Bump to version 2.1.
4449 Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4451 * ldgram.y: allow section types without address expressions.
4452 * ldlang.c (lang_relocate_globals): avoid possible hang with
4453 undefined but unreferenced symbols.
4454 * relax.c (relax_section): don't complain if the script file isn't
4455 relaxable but -relax is set
4457 Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4459 * configure.in: go32 is the 3rd part of the triple, not the 2nd
4461 Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
4463 * mipsbig.sh: New file. Big endian MIPS emulation.
4464 * config/mips-big.mt: New file. Use mipsbig emulation.
4465 * configure.in (mips-sgi-irix*): Use target mips-big.
4466 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
4467 (em_mipsbig.c): New target. Uses mipsbig.sh.
4469 Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
4471 * mips.sc-sh: Put .scommon sections into .sbss section.
4473 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
4474 rather than always putting them in bfd_com_section.
4475 * ldlang.c (lang_common): If a common symbol is not in
4476 bfd_com_section, put in a section of the same name, rather than
4477 always putting it in section COMMON.
4479 Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
4481 * ldmain.c (subfile_wanted_p): If we already have a common
4482 definition of a symbol, don't necessarily pull in an object file
4483 that provides a non-common definition.
4485 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
4486 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
4488 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
4489 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
4491 Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
4493 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
4496 Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
4498 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
4499 checking for equality to bfd_com_section.
4501 Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
4503 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
4504 targets, linker script.
4505 * mipslit.sh: New file. Little endian MIPS emulation.
4506 * config/mips-lit.mt: New file. Use mipslit emulation.
4507 * configure.in (mips-dec-ultrix*): Use target mips-lit.
4508 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
4509 (em_mipslit.c): New target. Uses mipslit.sh.
4511 Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
4513 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
4514 $(tooldir)/bin/gld, so that gcc can find it with or without
4517 Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4519 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
4520 write_norel. All linking is now done via write_relax. Call
4521 ldsym_write before calling write_relax.
4522 * relax.c: Added copyright.
4523 (write_relax): Renamed from write_relaxnorel. Added relocateable
4524 argument. seclet_dump renamed to bfd_seclet_link.
4525 * relax.h: Added copyright.
4527 Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4529 * ldmain.c (decode_library_subfile): Patch from
4530 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
4532 Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4534 * config/vxworks960.mt renamed to config/i960.mt
4536 * configure.in: sparc-aout emulates a sun4, as does
4537 sparc*-vxworks, i960-nindy uses gld960 emulation
4539 Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4541 Fix support for NOLOAD, add INCLUDE
4542 * ldfile.c (ldfile_open_command_file): pass file name to
4544 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
4545 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
4548 Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4550 * Makefile.in, config.h: no more default emulation. Make the lack
4551 of emulation a compile time error
4553 Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4555 * configure.in: recognise all sparclite variants, not just 'sparclite'
4557 Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
4559 * m68kcoff.sc-sh: define _end as well as end, for consistency with
4562 * configure.in: accept *-ericsson-ose for any m68k CPU.
4564 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
4565 for each output section.
4567 Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
4569 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
4570 macro bfd_asymbol_bfd as appropriate.
4571 * Makefile.in: Un-duplicate ldlex.c dependency.
4572 * condigure.in: Replace my_host case table by sourcing
4573 ../bfd/configure.host. Allow std-host as the default.
4574 * ldmisc.c: Change logic for C++ name demangling: There is
4575 no initial '_' to remove from stab-derived function names.
4577 Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4579 * ldlang.c (lang_init_script_file): don't attach the output file
4580 sections to the script file.
4582 Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4583 * ldlang.c (wild): run expansion loop over command line bfd too.
4584 (lang_ini_script_file): initialize more parts of the command line
4586 * ldlex.l: fix DEFINED start states.
4588 Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4590 * ld.texinfo: new doc.
4591 * ldgram.y, ldlex.l: understand -y<symbol>
4592 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
4593 print info. (add_ysym): new function.
4594 * ldsym.h: (ldsym_type): new define SYM_Y.
4596 Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
4598 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
4599 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
4600 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
4601 macros with PARAMS. Recreational cleanup. Update copyrights.
4603 Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4605 * Makefile.in: pass down the bfd source directory for includes
4607 Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
4609 * ldlang.c (lang_size_sections): don't change size and address for
4610 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
4613 Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4615 * relax.c (build_it): re-enable the processing of data_statements
4616 in scripts, makes counted contructor lists work again.
4618 Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
4620 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
4622 Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
4624 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
4627 Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
4629 * Support for i386-sysv.
4630 configure.in: check for i386-*-sysv* and i386-*-sco*.
4631 i386coff.sc-sh: rewrote to support SVR3 by default.
4632 ldctor.c (find_constructors): preserve stat_ptr.
4633 ldlang.c (wild_doit): initialize vma and size of new output
4634 section to corresponding input section. This is required for
4635 shared library support.
4636 (lang_size_sections): don't modify vma and size of sections which
4637 are never loaded (for shared libraries).
4638 ldwrite.c (copy_and_relocate): copy the contents of any section
4639 which has contents, not just sections which are loaded (for shared
4642 Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4644 * ldlang.c (size_input_section): count the sizes of all sections
4647 Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4649 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
4650 to demangle symbols better
4652 Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
4654 * ldlang.c (lang_finish): don't warn if -e start symbol does not
4655 exist when linking with -r.
4657 Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
4659 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
4662 Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4664 * ldmain.c (linear_library): don't even think about processing
4665 an object file if it's already been done
4667 Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4669 * configure.in: the hp9000/300 config file is now hp300
4671 Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4673 * config/z8ksim.mt: new file
4675 Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
4677 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
4678 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
4680 * ld.h (strip_symbols_type): Add value STRIP_SOME.
4681 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
4682 * ldlang.c (lang_add_keepsyms_file): New function.
4683 * ldlex.l: Handle "-retain-symbols-file".
4684 * ldsym.c (keepsyms_file, kept_syms): New vars.
4685 (process_keepsyms): New functihon; reads file, marks symbols for
4687 (write_file_locals): File symbols should always be kept.
4688 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
4689 and "-s". Process retain-symbols file before setting symtab.
4690 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
4691 (keepsyms_file, kept_syms): Declare them.
4693 * ldmain.c (main): Non-fatal errors should still cause non-zero
4694 exit status even with -r.
4696 Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4698 Added initial support for the z8k
4699 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
4700 * configure.in, Makefile.in: modified to reflect above
4702 * ldlang.c (lang_check): when linking conflicting architectures,
4703 make the output file reflect at least one of the bad inputs.
4705 Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
4707 * Makefile.in (install): if $(tooldir) exists, install ld in
4710 Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4712 * Makefile.in, configure.in: modified to support i386-coff
4713 * i386coff.sh: new file
4715 Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
4717 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
4718 added m68k-coff emulation mode, stolen from a29k emulation.
4719 Almost certainly wrong, but perhaps better than sun3.
4721 Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
4723 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
4724 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
4725 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
4726 This is one character shorter, and lets people build on
4727 SVR3 system. (ld__h8300xray.[co] was the killer there;
4728 h8300xray.sc-sh is also overlong, but seems harmless.)
4729 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
4730 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
4731 * configure.in: Add host isc.
4733 * ldver.c: Call it version 2.0.
4735 Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
4737 * ldver.c: Bump to version 0.98.
4740 * Makefile.in: Added mostlyclean, distclean, realclean rules.
4742 Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
4744 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
4745 * ldlex.l: Moved comment() to end, since some compilers
4746 otherwise have problems with input() used before it is defined.
4748 Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4750 * configure.in: added Solaris 2 and Irix 4 host support.
4752 Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4754 * Makefile.in: remove -S flag from the FLEX definition
4756 * configure.in: rewrote, using new style case statement. use
4757 m68k.mt for m68k-aout systems
4759 Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
4761 * Makefile.in: map "ld" through program_transform_name when
4764 Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
4766 * cplus-dem.c: Removed. Use the version in libiberty now.
4767 * ldmisc.c: Use new libiberty version of cplus_demangle().
4769 Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
4771 * gld960.em (gld960_choose_target): default to little endian, not
4774 Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4776 * ldlang.c (lang_process): don't pass null pointers when
4777 abs_output_section is what is required.
4778 * ldwrite.c (ldwrite): use malloc to allocate the largest space
4779 used, and pass that down.
4780 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
4783 Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
4785 * configure.in, config/ose68.mt: renamed OSE to ose.
4787 Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
4789 * ldsym.c (write_file_locals): Reorder check for common or
4790 undefined symbols so that it works.
4792 Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
4794 * configure.in: accept all m68K family members.
4796 * Makefile.in: always create installation directories.
4798 Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4800 * ldlex.l: now parses comment correctly, added ~ to acceptable
4803 * ldexp.c (exp_unop): pass down abs_output_section - now can have
4804 unary -ve constants.
4806 * ldlang.c (lang_finish): warn when an entry symbol supplied on
4807 the command line can't be found.
4809 Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4811 * ldlang.h: add new field "loadable" to output_section_statement.
4812 * ldlang.c (lang_output_section_statement_lookup): initilize new
4813 field. (wild_doit): if new field is not set, then stop output
4814 section from being loadable.
4815 (lang_enter_output_section_statement): set the field from the
4817 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
4818 * h8300hms.sc-sh, h8300hms.em: get -r right.
4820 Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
4822 * ldint.texinfo: New internals manual (beginnings thereof).
4823 * PORTING: Removed, merged into ldint.texinfo.
4825 Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
4827 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
4828 cdtest.exp: A test program (copied from libg++/test-install)
4829 that tests that constructor and destructors are handled
4832 Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4834 * Makefile.in (install): install from ld.new, renaming during the
4835 copy, or else the next 'make install' needs to re-link ld.
4837 Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
4839 * configure.in: generalise hp recognition (from sef).
4841 Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4843 * configure.in: recognize bsd and hpux hppa configurations.
4844 error messages echo to stderr, not stdout
4846 Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
4848 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
4849 ldmisc.c: removed rcsid's.
4851 Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4853 * ldlang.c (lang_map): print changes in sizes due to relaxing
4854 (size_input_section): maintain the delta information.
4855 * ldlang.h: add new field to struct to contain delta info.
4856 * relax.c (relax_section): complain if input not relaxable.
4857 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
4860 Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4862 * ldmain.c(main): prevent -r and -relax from being on at the same
4865 Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4867 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
4871 Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4873 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
4875 * ldlang.c(open_output): set the target arch and machine as soon
4876 as we can. (lang_size_sections): use new macros for setting vma
4879 Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
4881 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
4882 Also deleted an unreachable path to wrs.
4884 Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
4886 * Makefile.in (install): use -d test for $tooldir before
4887 installing ld there so that $tooldir can be inherited from
4890 Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
4892 * ldlang.c: Two non-substantial changes for the sake of
4893 the old Portable C Compiler.
4895 Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4897 * ldgram.y, ldlex.l: parse ABSOLUTE
4898 * ldexp.c: add support for ABSOLUTE
4900 Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
4902 * Makefile.in: Added default definitions for HOSTING_CRT0,
4903 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
4904 * config/*.mh: Miscellaneous clean-up: Removed definitions
4905 of YACC (since it is not longer used in the Makefile).
4906 Remove HOSTING_* definitions that are subsumed by the
4907 ones added to Makefile.in. Removed most definitions of CC.
4908 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
4909 These are no longer needed.
4911 Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
4913 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
4914 rules, since these are used when building a distribution.
4915 * Makefile.in (ldlex.c): Don't re-direct output, since that
4916 leaves a bogus output files if it fails.
4918 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
4919 * ldlex.c: Fix some unnecessary flex-specific-isms.
4921 Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4923 * ldgram.y: move spurious semicolon
4924 * ldexp.h: fix prototype
4926 Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
4928 * ld.texinfo: references to linker now say "ld" not "gld".
4930 Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4932 changed calling convention for Q_enter_global_ref
4933 * ldexp.c, ldlang.c, ldmain.c: reflect this
4934 * ldver.c: bump version to 1.97.1
4935 * ldindr.c (add_indirect): when an edict declaring an indirect
4936 symbol is found, make sure that any ideas about the symbol being
4937 common are changed if it now known to be defined.
4938 * ldmain.c (linear_library): complain once if archive isn't
4940 * ldlang.h, ldlang.c: make room for and initialize the complain
4943 Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
4945 * Makefile.in: use flex & bison from ../ if they exist.
4947 Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4949 * relax.c (build_it): don't allocate space in the output file for
4950 stuff if -R flag applys to it.
4951 * ldfile.c: merge in VMS filename support
4952 * ldmain.c (main): take out ./ from library path, and close file
4953 before unlinking. Make multiple defs of a symbol create an
4955 * ldmisc.c: fatal errosrs delete output file
4957 Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
4959 * ldver.c: Increase version number to 1.97, for consistency
4962 Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
4964 * Makefile.in: FLEX -> LEX.
4966 * ld.texinfo: {} -> @{@}.
4968 Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
4970 * ld.texinfo: describe alternate, MRI-compatible linker scripts
4971 (and associated change in -c option, now used for these scripts)
4973 Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4975 * ldver.c: Bumped version to 1.96 - new release, resync with the
4977 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
4978 rather than with raw malloc, makes it easier to track where memory
4980 * ldsym.h, ldsym.c: create obstack for all global symbols too.
4981 * ldwrite.c (ldwrite): moved malloc so only used when needed.
4982 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
4985 Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
4987 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
4989 * Makefile.in: use bootstrap for check.
4991 Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4993 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
4995 * Makefile.in: now use flex, not lex
4996 * ldlex.l, ldlang.c, ldctor.c: lint
4998 Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5000 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
5001 different sorts of filenames on the command line than in a script.
5003 Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5005 * Makefile.in: rework CFLAGS so that they can be passed on the
5006 make command line. Remove MINUS_G. Default CFLAGS to -g.
5008 Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5010 * relax.c: added handling for new "padding" seclet type, used to
5011 fill out gaps between section.
5012 * ldgram.y, ldlex.l: now -defsym on the command line is done
5015 Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5017 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
5019 Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5021 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
5024 Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
5026 * Makefile.in (install): Install second copy in $(tooldir)/bin
5027 without $(program_prefix), since that's what gcc expects.
5029 Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5031 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
5032 * h8300*: fix bit rot and add support for h8300xray target
5033 * go32.sh: target emulation for go32.
5035 Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
5037 * gld960.em, i960.sc-sh. Fix i960 bit rot
5039 Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
5041 * Makefile.in: install man page.
5043 Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5045 * config/mt-<foo> renamed to <foo>.mt
5046 * config/mh-<foo> renamed to <foo>.mt
5047 * configure.in changed to reflect this
5048 * genscripts.sh now make .xbn files rather than .xN files
5050 Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
5052 * ldver.h: fix decl of ldversion.
5054 Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
5056 * Makefile.in: added check target.
5058 Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5060 * ldmain.c (Q_enter_file_symbols): now aliases work again
5062 Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
5064 * Makefile.in: added clean-info target.
5066 Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5068 * ldexp.c (exp_print_tree): don't try and follow null pointers
5070 * ldgram.y: remove 11 shift reduce errors
5072 Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5074 * Makefile.in: added tooldir and program_prefix.
5076 Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
5078 * ldlang.c (size_input_section): don't move absolute sections
5082 Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
5084 * cplus-dem.c: yet another copy of this - maybe it should go into
5086 * ldgram.y: now -V and -v have different actions
5087 * ldver.c: if -V, prints list of emulations compiled in
5088 * ldmisc.c: support for cplus demangling
5091 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
5093 * Makefile.in, configure.in: removed traces of namesubdir,
5094 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
5095 copyrights to '92, changed some from Cygnus to FSF.
5097 Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
5099 * Makefile.in: Change mkscript rule into one for ./mkscript
5100 (for the sake of makes that don't realize they're the same).
5101 * PORTING: Add more details.
5102 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
5104 Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
5106 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
5107 config/mt-hp300bsd: New port to hp300 running BSD.
5109 Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
5111 Major rewrite of how ld is configured. The major idea
5112 is to use shell scripts to generate everything.
5113 * generic.em replaces ldtemplate.
5114 * Other *.em files replace various *.c files.
5115 A *.em file is a shell script that generates the corresponding
5116 ld__*.c file that implements an emulation. This is usually
5117 a straight 'cat' of a here-document, possibly with substitutions.
5118 * Script files (*.sc) are places by *.sc-sh scripts.
5119 Again, these are simple shell scripts that 'cat'
5120 here-documents, usually with some substitutions.
5121 The output a *.sc-sh is a script file.
5122 * Each emulation is defined by a short shell script with
5123 extension *.sh that specifies the emulation-specific
5124 parameters (such as the name of the *.sh-sc and *.em
5126 * genscript.sh is the master shell script used to generate
5127 an emulation. It is passed various argument, including
5128 the name a the emulation-speciic *.sh file that it
5129 "sources" to set variables to emulation-specifc parameters.
5130 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
5131 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
5132 * config/mh-foo: Rename LDEMULATION names as appropriate
5133 (usually 'gldfoo' -> plain 'foo').
5134 * ldwrite.c: Fixed a typo in a comment.
5135 * Makefile.in: Major changes. Removed some the sed
5136 magic to converts scripts, since that is now handled
5137 by genscripts.sh and the *.sc-sh scipt generators.
5138 * config.h: Remove a bunch of macros defining emulations
5139 and targets. This becomes one less file to edit when
5140 adding emulations or targets.
5141 * ldemul.h (struct ld_emulation_xfer_struct): Add
5142 emulation_name and target_name fields.
5143 * ldemul.c, ldemul.h: Define some default functions used
5144 by most emulations (and remove from the *.em scripts).
5145 * ldemul.c (ldemul_choose_target): Search the new
5146 ld_emulations array using a loop (instead of a hardwired
5147 nested if statement).
5148 Define the ld_emulation from the automatically-geenrated
5149 ldemul-list.h. This means you no longer have to edit ldemul.c
5150 to add a new emulation.
5151 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
5152 their expansions, since the former no longer exist.
5153 * PORTING: A very rough first draft of a porting guide.
5155 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
5156 to be terminated by a new-line (instead of requiring a semicolon).
5158 Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5160 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
5161 tests for NULL pointers all over the place.
5162 * ldlang.c (lang_process): remember to relocate global symbols
5163 *after* relaxing has done it stuff.
5165 Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5167 * config/mt-coff-h8300: use EMUL like everything else
5168 * ldlang.c: (print_padding_statement): print the right address.
5169 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
5172 Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5174 * ldlex.l: Put pack -noinhibit-exec and -sort-common
5175 * ldlang.c (print_data_statement): print the right address.
5177 Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
5179 * Makefile.in: The rule for testing ld by re-linking itself
5180 via an intermediate -r link was moved to the ld1 rule
5181 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
5182 which allows the bootstrap rule to work.
5183 * ldctor.c (find_constructors): Don't create a constructor
5184 list if it is already defined (as would happen if ld is
5185 invoked by collect).
5187 Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5189 * config/mh-sparc.h: now uses libgcc.a
5190 * ldmain.c: quit using exit
5191 * *sc: use *(COMMON) rather than [COMMON]
5192 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
5193 to allow preprocessing of .l file.
5194 * Makefile.in: New ldlex.l mangling
5195 * ldexp.c (fold_binary): perform expressions with % and / in
5197 * ldfile.c (open_a): open archives on VMS in a special way
5200 Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5202 * ldgram.y: map -M behave in the same way as -Map (sets file name
5204 * ldsym.c, ldlang.c: remember that size of a section is dependent on
5205 whether or not relaxing has been done.
5206 * ldmain.c: don't open a map file if it doesn't have a name
5207 * relax.c: all the brains have moved into bfd.
5208 * ldwrite.c: ammend comment
5210 Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5212 * Makefile.in: added relax, also made three stage go through a
5215 * config.h: if GNU960 defined, then default emulation mode is
5217 * ldexp.h, ldexp.c: map to file hooks
5218 * ldlang.c: map to file hooks
5219 * ldgram.y: added -Map -relax
5220 * ldlex.l: added -relax, -Map
5221 * ldmain.c: open map file
5222 * ldmisc.c: support for map file
5223 * ldwrite.c: new relax magic
5225 Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
5227 * Makefile.in, config/tm-*.h: Clean up make output, only
5228 pass DEFAULT_EMULATION to ldmain.c.
5230 Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
5232 * ldver.c: Bump to version 1.94.
5234 Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5236 * Makefile.in: infodir belongs in datadir.
5238 Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
5240 * Makefile.in: Pass -y to bison. (Again;
5241 accidentally deleted by Rich.)
5242 * news.sc, ldgld68k.sc: Define __end as well as _end.
5244 Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
5246 * ldindr.h: added to contain prototypes of ldindr.c
5247 * ldfile.c: include ctype.h
5248 * ldmain.c: include the requried prototype headers
5249 * ldwrite.c: get_reloc_upper_bound has been renamed
5250 bfd_get_reloc_upper_bound
5252 Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5254 * Makefile.in: punt "fundamental" mode because it breaks my emacs
5255 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
5256 spaces following hyphens, bsd make can't cope. added
5257 standards.text support and made it look like all the other
5260 * configure.in: configure now runs entirely in objdir so make file
5261 existence checks against ${srcdir}. Mark this directory as
5264 Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5266 * Makefile.in: idestdir and ddestdir go away. Added copyrights
5267 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
5268 and mandir now keyed off datadir by default.
5270 Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
5272 * ldver.c: Bumped version to 1.93.
5273 * Makefile.in: Pass -y to bison.
5275 Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
5277 * config.h: h8 is now coff, not ieee
5278 * h8300hds.sc: reflect the same
5280 Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
5282 * ldver.c (ldversion()): Update to 1.92.
5283 * ldctor.c: There are two places constructor sets
5284 can be defined. One of them checked for an existing
5285 duplicate, the other didn't. Unfortunately, the latter
5286 was called after the former ...
5287 So, factor out code for inserting a new element into
5288 constructor_name_list (after checking for a duplicate)
5289 into a new function add_constructor_name, and call
5290 it from both aforementioned places (ldlang_add_constructor
5291 and ldlang_check_for_constructors).
5293 Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
5295 * Makefile.in: Rename .c files generated from ldtemplate
5296 to have names starting with ld__. This helps 'make clean'.
5298 Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
5300 * Makefile.in: Take out the version number for install
5301 * m88kbcs.sc: put in contructor blocks.
5303 Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
5305 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
5306 parameter, a format, and an arg pointer, and rename it to
5307 vfinfo(). Write info() in terms of new vfinfo().
5308 New einfo() is the same as info(), except it writes to stderr.
5309 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
5310 ldmisc.c: Replace "error" calls to info() by new einfo().
5312 Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
5314 * ldlex.l ldgram.y: made -V option do same as -v
5315 * Makefile.in: Added $(MINUS_G) flag so debugging can be
5318 Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
5319 i386 aout changes from Bob Kukura
5320 * Makefile.in, config.h: added i386aout support
5321 * configure.in: fixed /h-{myhost} typo
5322 * ldgram.y: -MM now gives more boring map.
5323 * ldlang.c: now does D_PAGED flag the right way.
5324 * ldsym.c: -MM flags does the right thing.
5326 Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
5328 * configure.in: Fixed typo. Also, a fix for hp300bsd.
5329 * ldlang.c (init_os): Compensate for BFD change,
5330 where bfd_make_section now returns NULL for a duplicate
5331 section request, instead of the old section.
5333 Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
5335 * ldver.c: Bump to version 1.91 (consistent with binutils).
5337 Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
5339 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
5340 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
5341 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
5342 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
5343 Add or update copyright notices.
5345 Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
5348 * Makefile.in: Changed installation directory name scheme
5349 to be consistent with gcc. Also changed 'install'.
5351 Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
5353 * Makefile.in: new targets ld.mm, ld.me
5355 Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
5357 * Makefile.in, ldtemplate: Need to use separate scripts
5358 for -n and -N options. Yet more complication.
5360 Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
5362 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
5363 work). Add some lines to avoid Sun Make VPATH bugs.
5365 Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
5367 * news.sc: Add alignment for data segment.
5368 * ldtemplate: Add (yet another) script to get for -n or -N
5369 options. (These need different alignment than ZMAGIC files.)
5370 * Makefile.in: Add stuff for new foo.xn scripts.
5371 These are generated by replacing "ALIGN(0x...00)" by ".".
5373 Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
5375 * Makefile.in: new targets ld.ms, ld-index.ms
5376 ld.texinfo: remove tabs, other cleanups for texi2roff
5378 Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
5380 * ldmain.c (main): Make config.magic_demand_paged be true
5381 by default. Don't the WP_TEXT and D_PAGED flags of
5382 output_bfd here; it's too late, so set it when output_bfd
5383 is created (in ldlang.c). Also fix setting of EXEC_P flag
5384 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
5385 * ldlang.c: Remove some duplicate extern declarations.
5386 * ldgram.y: Fixes to -N and -n options.
5387 * Makefile.in: Recognize upper case letters in sed script
5388 to remove assignments from script files.
5389 * ldtemplate: Don't assukme that -N or -n options
5390 imply use of -r script.
5391 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
5393 Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
5395 * ldtemplate: include bfd.h before sysdep.h.
5397 Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
5399 Restructure configuration scheme for bfd, binutils, ld.
5401 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
5402 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
5403 Change some config names to match other dirs.
5404 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
5406 * config/: Rename some config files to match up h-*.h names.
5407 Remove all the HOST_SYS definitions from the config files.
5409 Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
5411 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
5412 * ldtemplate: Remove ldfile_add_library_path calls;
5413 just use the SEARCH_DIR commands in the script files.
5414 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
5415 the SEARCH_DIR commands in the scripts (using ugly sed magic).
5416 This is primarily intended for cross-linking, where you would
5417 place libaries in a different place than native libraries.
5418 Also, emulations made from ldtemplate now use $(srcdir).
5419 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
5420 form; people can use the Makefile's LIB_PATH to override.
5422 Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
5424 * Makefile.in: fix target ld.dvi, add target ld.info
5425 ld.texinfo: make info filename ld.info
5427 Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
5429 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
5431 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
5432 few BFD types & enums.
5439 version-control: never