1 Wed Oct 9 14:36:18 1996 Ian Lance Taylor <ian@cygnus.com>
3 * ld.h (ld_config_type): Add warn_section_align field.
4 * lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
5 (ld_options): Add --warn-section-align.
6 (parse_args): Handle --warn-section-align.
7 * ldlang.c (lang_size_sections): If warn_section_align, warn if
8 the start of a section changes due to alignment.
9 * ld.texinfo, ld.1: Document --warn-section-align.
10 * ld.texinfo: Change some single dashes to double dashes.
12 * emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
13 subsystem type. Ifdef out os2 type. Recognize a version number.
15 Tue Oct 8 12:07:13 1996 Ian Lance Taylor <ian@cygnus.com>
17 * emultempl/pe.em (set_pe_subsystem): When setting the subsystem
18 to windows, set the entry point.
20 * Makefile.in (ldlex.c): Don't pass any options to $(LEX).
22 Mon Oct 7 17:29:05 1996 Ian Lance Taylor <ian@cygnus.com>
24 * ld.texinfo (Options): Mention .so extensions for shared
27 Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
29 * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
31 Fri Oct 4 18:49:31 1996 Ian Lance Taylor <ian@cygnus.com>
33 * scripttempl/m68kcoff.sc: Only set the address of .text if
36 Fri Oct 4 10:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
38 * emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
39 * scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
40 (OUTPUT_FORMAT): Support bi-endian targets.
42 Thu Oct 3 13:52:03 1996 Ian Lance Taylor <ian@cygnus.com>
44 * fnmatch.h, fnmatch.c: Remove (now in libiberty).
45 * Makefile.in: Rebuild dependencies.
46 (CFILES): Remove fnmatch.c.
47 (HFILES): Remove fnmatch.h.
48 (OFILES): Remove fnmatch.o.
50 Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
52 * Makefile.in (mostlyclean): Move config.log to distclean.
54 Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
56 * emultmpl/pe.em: increase size of stack reserve to 0x2000000
57 (necessary in order to compile parse.c in gcc sources under NT)
59 Wed Oct 2 14:49:10 1996 Ian Lance Taylor <ian@cygnus.com>
61 * lexsup.c (ld_options): Fix typo in --rpath-link description.
62 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
63 --rpath if a needed library is not found.
65 Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com>
67 * configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
69 Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com>
71 * ld.texinfo (Options): Give more detail on -l option.
73 * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
74 elf.sc does, so that glibc works better.
76 * ldver.c (ld_program_version): New variable.
78 * ldver.h (ld_program_version): Declare.
79 * lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
80 --version. Change --version handling to match current GNU
82 (help): Print bug report address.
85 Mon Sep 30 12:14:43 1996 Doug Evans <dje@canuck.cygnus.com>
87 * Makefile.in (em32relf.c): Add rule for.
88 * configure.tgt (m32r-*-*): Recognize.
89 * emulparams/m32relf.sh: New file.
92 Thu Sep 26 13:58:47 1996 Stan Shebs <shebs@andros.cygnus.com>
94 * mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
95 * mpw-config.in: Add mips-*-* case as mips-elf, and use more
96 wildcards in matching.
97 * mpw-emipself.c: New file, pregenerated mips elf emulation.
99 Tue Sep 17 12:18:21 1996 Ian Lance Taylor <ian@cygnus.com>
101 * ldint.texinfo: Rewrote.
103 * configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
105 Mon Sep 16 17:55:21 1996 Ian Lance Taylor <ian@cygnus.com>
107 * scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
108 syntax error on __end__ line.
110 * scripttempl/armcoff.sc: For -N or -n, don't align .data. From
111 Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
114 Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com)
116 * emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
120 Sun Sep 15 10:38:16 1996 Mark Alexander <marka@cygnus.com>
122 * emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
123 stack at top of simulator memory.
126 Fri Sep 13 15:49:45 1996 Ian Lance Taylor <ian@cygnus.com>
128 * ldlex.l (SYMBOLCHARN): Add $, _, and ~.
130 Wed Sep 11 23:30:42 1996 Ian Lance Taylor <ian@cygnus.com>
132 * ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
134 Thu Sep 5 15:24:12 1996 Ian Lance Taylor <ian@cygnus.com>
136 * ldlang.c (section_already_linked): Accept a lang_input_statement
137 as the PTR argument. If the file is symbols only, discard all
139 (ldlang_add_file): Pass entry to bfd_map_over_sections.
141 Wed Sep 4 15:53:43 1996 Ian Lance Taylor <ian@cygnus.com>
143 * configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
147 Tue Sep 3 00:52:54 1996 Jeffrey A Law (law@cygnus.com)
149 * emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
151 Sun Sep 1 21:48:58 1996 Jeffrey A Law (law@cygnus.com)
153 * emulparms/v850.sh: Set EMBEDDED.
155 Fri Aug 30 22:30:30 1996 Jeffrey A Law (law@cygnus.com)
157 * emulparms/v850.sh: Entry symbol is "_start", tweak
161 Fri Aug 30 18:32:31 1996 Ian Lance Taylor <ian@cygnus.com>
163 * configure.tgt (sh-*-elf*): New target.
164 * emulparams/shelf.sh: New file.
165 * emulparams/shlelf.sh: New file.
166 * Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
167 (eshelf.c, eshlelf.c): New targets.
168 * scripttempl/elf.sc: If EMBEDDED is defined, then don't add
169 SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END
170 around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
171 OTHER_RELOCATING_SECTIONS if RELOCATING.
173 Thu Aug 29 16:57:46 1996 Michael Meissner <meissner@tiktok.cygnus.com>
175 * configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
178 Mon Aug 26 12:58:11 1996 Ian Lance Taylor <ian@cygnus.com>
180 * ldgram.y (section): Add opt_nocrossrefs; pass value to
182 (opt_nocrossrefs): New nonterminal.
183 * ldlex.l: Recognize NOCROSSREFS keyword in EXPRESSION mode.
184 * ldlang.c (overlay_nocrossrefs): New static variable.
185 (lang_enter_overlay): Add nocrossrefs parameter.
186 (lang_leave_overlay): Only add nocrossrefs if overlay_nocrossrefs
187 is set. Initialize overlay_nocrossrefs.
188 * ldlang.h (lang_enter_overlay): Update declaration.
189 * ld.texinfo (Overlays): Update documentation.
191 * ldver.c (ldversion): Print GNU ld in the version message.
193 Thu Aug 22 17:10:40 1996 Ian Lance Taylor <ian@cygnus.com>
195 * configure.host: Set HLDENV.
196 * configure.in: Substitute HLDENV.
197 * configure: Rebuild.
198 * Makefile.in (HLDENV): New variable.
199 ($(LD_PROG)): Use $(HLDENV).
202 Thu Aug 22 16:29:28 1996 Jeffrey A Law (law@cygnus.com)
204 * Makefile.in (ev850.c): New target.
205 * configure.tgt (v850-*-*): New target.
206 * emulparams/v850.sh: New file.
209 Thu Aug 22 11:16:02 1996 Stan Shebs <shebs@andros.cygnus.com>
211 * mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
213 Wed Aug 21 11:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
215 * scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
218 Mon Aug 19 13:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
220 * fnmatch.c: Include sysdep.h.
222 Mon Aug 19 11:28:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
224 * genscripts.sh: Undo 8/16 change.
227 * emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
230 Fri Aug 16 19:18:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
232 * genscripts.sh: Explicitly reset any shell variables set or used
233 by the various .sc scripts to allow inadvertant use of these
234 names as normal environment variables by the person running
238 * Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
241 Fri Aug 16 14:15:41 1996 James G. Smith <jsmith@cygnus.co.uk>
243 * scripttempl/armcoff.sc (__bss_start__, __bss_end__,
244 __data_start__, __data_end__): Added to keep in sync. with the
245 default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
247 Thu Aug 8 14:24:56 1996 Ian Lance Taylor <ian@cygnus.com>
249 * ldcref.c (check_reloc_refs): If info->same, look for any symbol
250 defined in info->defsec, not just the section symbol.
252 Wed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
254 * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
255 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
256 (NEED_DECLARATION_SBRK): New macro.
257 * configure, config.in: Rebuild.
258 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
259 * ldmain.c (sbrk): Declare if HAVE_SBRK and
260 NEED_DECLARATION_SBRK.
262 * ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
264 Mon Aug 5 16:26:14 1996 Ian Lance Taylor <ian@cygnus.com>
266 * ldlex.l: Recognize OVERLAY.
267 * ldgram.y: Add section_phdr field to %union.
268 (section): Handle phdr_opt result. Add OVERLAY case.
269 (opt_exp_without_type): New nonterminal.
270 (phdr_opt): Return list of phdrs.
271 (overlay_section): New nonterminal.
272 * ldlang.c: Include <ctype.h>.
273 (lang_leave_output_section_statement): Add phdrs parameter.
275 (lang_section_in_phdr): Remove.
276 (overlay_vma, overlay_lmn, overlay_max): New static variables.
277 (struct overlay_list): Define.
278 (overlay_list): New static variable.
279 (lang_enter_overlay, lang_enter_overlay_section): New functions.
280 (lang_leave_overlay_section, lang_leave_overlay): New functions.
281 * ldlang.h (lang_leave_output_section_statement): Update
282 declaration for new parameter.
283 (lang_section_in_phdr): Don't declare.
284 (lang_enter_overlay, lang_enter_overlay_section): Declare.
285 (lang_leave_overlay_section, lang_leave_overlay): Declare.
286 * ld.texinfo (Overlays): New node under SECTIONS, documenting
289 * ldlex.l: Recognize MAX and MIN.
290 * ldgram.y (MAX, MIN): New terminals.
291 (exp): Recognize MAX and MIN.
292 * ldexp.c (fold_binary): Handle MAX and MIN.
293 * ld.texinfo (Arithmetic Functions): Document MAX and MIN.
295 * ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
298 * ldgram.y (SIZEOF, ADDR): Do not specify type.
300 * ldcref.c (check_nocrossref): Skip symbols with no output
303 Fri Aug 2 14:57:49 1996 Ian Lance Taylor <ian@cygnus.com>
305 * ldgram.y (LOADADDR): New terminal.
306 (exp): Handle LOADADDR.
307 * ldlex.l: Recognize LOADADDR.
308 * ldexp.c (exp_print_token): Add LOADADDR.
309 (fold_name): Implement LOADADDR.
310 * ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
311 * ld.texinfo (Arithmetic Functions): Document LOADADDR.
313 Thu Aug 1 12:52:19 1996 Ian Lance Taylor <ian@cygnus.com>
315 * ld.h (check_nocrossrefs): Declare.
316 * ldlang.h (struct lang_nocrossref): Define.
317 (struct lang_nocrossrefs): Define.
318 (nocrossref_list): Declare.
319 (lang_add_nocrossref): Declare.
320 * ldlex.l: Recognize NOCROSSREFS keyword.
321 * ldgram.y (%union): Add nocrossref field.
322 (NOCROSSREFS): New terminal.
323 (ifile_p1): Recognize NOCROSSREFS.
324 (nocrossref_list): New nonterminal.
325 * ldlang.c (nocrossref_list): Define.
326 (lang_add_nocrossref): New function.
327 * ldmain.c (main): If nocrossref_list is not NULL, call
329 (warning_callback): Free symbols if there is no place to store
331 (notice): Call add_cref if nocrossref_list is not NULL.
332 * ldcref.c: Include "ldexp.h" and "ldlang.h".
333 (check_nocrossrefs): New function.
334 (check_nocrossref): New static function.
335 (struct check_refs_info): Define.
336 (check_refs, check_reloc_refs): New static functions.
337 * Makefile.in: Rebuild dependencies.
338 * ld.texinfo (Option Commands): Document NOCROSSREFS.
340 * ld.texinfo (Section Placement): Improve the wording of the
341 wildcard documentation. Mention that wildcards are only searched
342 for on the command line, not in the file system.
344 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
345 definition of lib_path inside condition where it is used.
348 Wed Jul 31 13:17:10 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
350 * emulparams/d10velf.sh: Now works with elf.sc.
352 Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
354 * emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
357 Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
359 * ldlang.c (lang_size_sections): Add the section VMA to the result
360 value when computing the address of a section.
362 * ld.h (args_type): Add cref field.
363 * lexsup.c (parse_args): Set command_line.cref.
364 * ldmain.c (main): Check command_line.cref rather than
365 link_info.notice_all.
368 * ldcref.c (output_one_cref): Don't crash if a symbol is defined
369 in a section without an owner.
371 Mon Jul 29 17:23:33 1996 Ian Lance Taylor <ian@cygnus.com>
373 * fnmatch.h, fnmatch.c: New files.
374 * ldlex.l: Remove unused definition of FILENAME. Add definition
375 of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a
377 * ldgram.y (file_NAME_list): Accept '*' and '?' specially.
378 (input_section_spec): Accept '?' specially.
379 (statement): Change exp to mustbe_exp in length and FILL cases.
380 (section): Call ldlex_script before section statements, and call
381 ldlex_popstate after them.
382 * ldlang.c: Include "fnmatch.h".
383 (wildcardp): New static function.
384 (wild_section): Permit the section name to be a wildcard.
385 (wild_file): New static function, broken out of wild.
386 (wild): Call wild_file. Permit the file name to be a wildcard.
387 (open_input_bfds): Don't call lookup_name for a wildcard pattern.
388 * Makefile.in: Rebuild dependencies.
389 (CFILES): Add fnmatch.c.
390 (HFILES): Add fnmatch.h.
391 (OFILES): Add fnmatch.o.
392 * ld.texinfo: Document that file and section names can now be
395 * ldlang.c (lang_place_orphans): Correct condition: place a common
396 section if not relocateable or if common definitions are forced.
399 Wed Jul 24 12:16:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
401 * emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
403 Wed Jul 24 13:38:22 1996 Michael Meissner <meissner@wogglebug.tiac.net>
405 * configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
407 Tue Jul 23 10:36:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
409 * Makefile.in (ed10velf.c): New target.
410 * configure.tgt (d10v-*-elf*): New target.
411 * emulparams/d10velf.sh: New file.
414 Thu Jul 18 16:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
416 * configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
417 <ANDREWG@microlise.co.uk>.
419 * configure.host: Change irix5 to irix[56]*.
420 * configure.tgt: Likewise.
422 Wed Jul 17 10:52:46 1996 Kim Knuttila <krk@cygnus.com>
424 * emultempl/pe.em (sort_sections): Pay attention to return code.
426 * ldmisc.c (demangle): Remove all prefix '.'s from a name.
428 Mon Jul 15 11:49:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
430 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round
431 the value of __start_SECNAME to the alignment required by the
432 section to be placed.
434 Tue Jul 9 12:09:02 1996 Ian Lance Taylor <ian@cygnus.com>
436 * configure.tgt (mips*el-*-elf*): Use elf32elmip.
437 (mips*-*-elf*): Use elf32ebmip.
438 * emulparams/elf32bmip.sh (EMBEDDED): Don't define.
439 * emulparams/elf32lmip.sh (EMBEDDED): Don't define.
440 * emulparams/elf32elmip.sh: New file; copy of elf32lmip.sh with
442 * emulparams/elf32ebmip.sh: New file; copy of elf32bmip.sh with
444 * emulparams/elf32b4300.sh (EMBEDDED): Define.
445 * emulparams/elf32l4300.sh (EMBEDDED): Define.
446 * Makefile.in (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
447 (eelf32ebmip.c, eelf32elmip.c): New targets.
449 Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
451 * ldver.c (ldversion): Set version to cygnus-2.7.1.
453 * Released binutils 2.7.
455 * emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
456 System V file name limitations.
457 * configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
458 pc532macha rather than pc532machaout.
459 * Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
461 (epc532macha.c): Rename target from epc532machaout.c.
463 Wed Jul 3 11:40:10 1996 Ian Lance Taylor <ian@cygnus.com>
465 * ldlang.c (print_padding_statement): Use %u, not %x, to print
468 Sun Jun 30 11:16:43 1996 Stan Shebs <shebs@andros.cygnus.com>
470 * mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
472 Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
474 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
475 file just before the .so file, rather than just after.
477 * configure.host: Use -print-file-name=FILE rather than piping
478 -print-libgcc-file-name through sed.
479 (i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
480 crtend.o files, in case gcc doesn't use them.
481 * Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
483 Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
485 * configure.tgt (mips*-dec-osf*): New target.
487 Tue Jun 25 22:15:29 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
489 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
490 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
492 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
493 (AC_PROG_INSTALL): Added.
494 * configure: Rebuilt.
496 Mon Jun 24 18:48:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
498 * scripttempl/elfppc.sc (_GLOBAL_OFFSET_TABLE_): Don't do a
499 PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
502 Mon Jun 24 17:55:31 1996 Jouke Numan <jnuman@bazis.nl>
504 * ldlang.h (enum section_type): Define.
505 (lang_output_section_statement_type): Remove loadable field. Add
507 (lang_enter_output_section_statement): Change flags parameter in
508 prototype to sectype.
509 * ldgram.y (typebits): Remove.
510 (sectype): New static variable.
511 (opt_at): Use sectype rather than typebits.
512 (type): Set sectype rather than typebits.
514 * ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
516 * ldlang.c (lang_output_section_statement_lookup): Set sectype
517 field rather than loadable field.
518 (wild_doit): Check sectype rather than loadable.
519 (lang_record_phdrs): Likewise.
520 (lang_enter_output_section_statement): Rename flags parameter to
521 sectype. Set sectype field rather than loadable field. Set flags
522 field based on sectype.
524 Mon Jun 24 12:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
526 * scripttempl/elf.sc: Force .stab* and .comment sections to start
529 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
530 using shared libraries.
531 * configure: Rebuild with autoconf 2.10.
533 Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
535 * configure.tgt: Add support for *-*-rtems* configurations.
537 Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
539 * configure.tgt (alpha-*-linuxecoff*): New target.
540 (alpha-*-linux*): Use elf64alpha.
541 * emulparams/elf64alpha.sh: New file.
542 * emultempl/elf32.em: If ELFSIZE is not set, set it to 32. Use
543 ${ELFSIZE} rather than 32 when calling BFD routines.
544 (hold_rodata): New static variable.
545 (gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
546 readonly section that is not code.
547 (gld${EMULATION_NAME}_place_section): Set hold_rodata. Don't use
548 a .rel section unless its bfd_section field is not NULL.
549 * Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
550 (eelf64alpha.c): New target.
552 Fri Jun 21 12:45:46 1996 Ian Lance Taylor <ian@cygnus.com>
554 * ldmisc.c (vfinfo): Correct handling of 0 in %W case.
556 Thu Jun 20 13:55:28 1996 Ian Lance Taylor <ian@cygnus.com>
558 Add enough support to understand the gcc svr3.ifile script:
559 * ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context. Add
561 * ldgram.y: Add BIND token.
562 (section): Recognize GROUP.
563 (opt_ext_with_type): Recognize a couple of cases of BIND.
564 * ldlang.c (init_os): Don't do anything if section is already
565 initialized. Call exp_init_os on addr_tree field.
566 (exp_init_os): New static function.
567 (map_input_to_output_sections): Call exp_init_os on assignment
569 (lang_place_orphans): Check for common sections by name COMMON
570 rather than by common_section field. Don't warn about absence of
573 * ldlang.h (lang_input_statement_type): Remove useless fields
574 common_section, common_output_section, and complained, as well as
575 all references to them.
577 * ldexp.c: Reindent a lot of code.
578 (exp_fold_tree): Call FAIL rather than einfo in default case.
580 Wed Jun 19 11:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
582 * configure.host (m88*-*-dgux*): Quote HOSTING_CRT0. From
583 <randall.hron@medaphis.com>.
585 Tue Jun 18 15:53:09 1996 Jeffrey A. Law <law@rtl.cygnus.com>
587 * scripttempl/h8300s.sc: New file for H8/S.
588 * emulpararms/h8300s.sh: New file for H8/S.
589 * Makefile.in (ALL_EMULATIONS): Add H8/S.
590 (e_h8300s.c): Add dependencies.
591 * configure.tgt: Add H8/S to targ_extra_emuls.
593 Tue Jun 18 17:55:39 1996 Ian Lance Taylor <ian@cygnus.com>
595 * configure.tgt (i[345]86*-*-isc*): New target. From
596 <uddeborg@carmen.se>.
598 Wed Jun 12 12:46:21 1996 Ian Lance Taylor <ian@cygnus.com>
600 * lexsup.c: Include "libiberty.h".
601 (parse_args): Copy the -Y argument into memory.
602 (set_default_dirlist): Don't put the ':' back into the directory
605 Fri Jun 7 11:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
607 * emultempl/sunos.em: Include libiberty.h.
608 (gld${EMULATION_NAME}_set_symbols): New static function to add
609 LD_LIBRARY_PATH to the list of search directories.
610 (ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
612 Thu Jun 6 11:50:31 1996 Ian Lance Taylor <ian@cygnus.com>
614 * emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
615 rather than . when computing _gp value. From Per Fogelstrom.
616 * emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
618 * ldmain.c (main): Don't close and unlink the file on error, since
619 remove_output will do it anyhow.
620 * ldlang.c (open_output): Set boolean variable to true, not 1.
622 Wed Jun 5 18:34:14 1996 James G. Smith <jsmith@cygnus.co.uk>
624 * emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
625 elfmips instead of elf.
627 Tue Jun 4 18:43:07 1996 Ian Lance Taylor <ian@cygnus.com>
629 * ldcref.c: New file.
630 * ld.h (add_cref, output_cref): Declare.
631 * ldmain.c (main): Initialize notice_all field. If it is set at
632 end of link, call output_cref.
633 (notice): Rename from notice_ysym. Check notice_all.
634 * ldmisc.c (finfo): Make globally visible.
635 * ldmisc.h (finfo): Declare.
636 * lexsup.c (OPTION_CREF): Define.
637 (ld_options): Add "cref".
638 (parse_args): Handle OPTION_CREF.
639 * Makefile.in: Rebuild dependencies.
640 (CFILES): Add ldcref.c.
641 (OFILES): Add ldcref.o.
642 * ld.texinfo, ld.1: Document --cref.
644 Tue Jun 4 12:12:25 1996 Tom Tromey <tromey@csk3.cygnus.com>
646 * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
648 Fri May 31 12:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
650 * emultempl/pe.em (sort_sections): Don't assume that a
651 wild_statement has a section name.
653 Wed May 29 13:13:35 1996 Ian Lance Taylor <ian@cygnus.com>
655 * scripttempl/elfmips.sc: Quote test -z argument.
657 * ld.texinfo: Clarify the CONSTRUCTORS command.
659 Thu May 23 16:07:44 1996 Ian Lance Taylor <ian@cygnus.com>
661 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
664 Wed May 22 11:31:30 1996 Doug Evans <dje@seba.cygnus.com>
666 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
668 * emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
669 (sort_by_section_name, sort_sections_1): New functions.
670 (sort_sections): Only sort by file name sections in .idata.
671 Add "Grouped Sections" support.
672 (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
674 (gld${EMULATION_NAME}_place_section): Delete.
675 * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
676 (.CRT,.rsrc): Rewrite to use Grouped Section support.
678 Tue May 21 14:31:48 1996 Stan Shebs <shebs@andros.cygnus.com>
680 * mpw-eppcmac.c: Update to reflect changes to aix.em.
682 Sun May 19 16:59:44 1996 Doug Evans <dje@seba.cygnus.com>
684 * ldlang.c (dprint_statement): Stop printing at end of list.
686 Sat May 18 13:12:05 1996 Steve Chamberlain <sac@slash.cygnus.com>
688 Support for --force-exe-suffix
689 * ld.h (args_type): Add force_exe_suffix.
690 * ld.texinfo: Add documentation.
691 * ldmain.c (main): Add support for option.
692 * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
693 (ld_options, parse_args): Add support for option.
695 Wed May 15 12:50:25 1996 Jim Wilson <wilson@chestnut.cygnus.com>
697 * emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
699 Fri May 10 16:28:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
701 * scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
702 referenced but not defined.
704 Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
706 * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
707 Set a new variable to signify if the final target is an embedded
709 * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
710 .text for an embedded system.
712 Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
714 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
715 (gld${EMULATION_NAME}_place_section): New function.
716 (hold_{section,use,text,rdata,data}): New static locals.
717 (ld_${EMULATION_NAME}_emulation): Update orphan field.
718 * scripttempl/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
719 (INIT,FINI): Delete, unused.
720 (.text): Document orphan .text.foo sections.
721 (.rdata): Document orphan .rdata.foo sections.
722 (.data): Document orphan .data.foo sections.
724 Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
726 * scripttempl/h8300.sc: Place ".tiny" sections right
727 after ".data" sections.
728 * scripttempl/h8300h.sc: Place ".tiny" sections into
729 the "tiny" memory region, 0xff8000 through 0xffff00.
731 * scripttempl/h8300.sc: Set the entry point to the value of
732 "_start" rather than the start of the text segment.
733 * scripttempl/h8300h.sc: Likewise.
735 * scripttempl/h8300.sc: Place .rodata sections before .text
736 sections in main ram.
737 * scripttempl/h8300h.sc: Likewise.
739 Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
741 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
742 8-bit region and 8-bit sections.
744 Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
746 * ldlang.c (section_already_linked): Fix typos.
748 Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
750 * scripttempl/pe.sc (.endjunk): Define __end__.
752 Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
754 * ldlang.c (longest_section_name): Remove.
755 (SECTION_NAME_MAP_LENGTH): Define.
756 (print_size, print_alignment, print_fill, print_section): Remove.
757 (print_flags): Remove.
759 (print_output_section_statement): Rewrite.
760 (print_assignment): Rewrite.
761 (print_one_symbol): Rewrite.
762 (print_input_section): Rewrite.
763 (print_fill_statement): Rewrite.
764 (print_data_statement): Rewrite.
765 (print_address_statement): New static function.
766 (print_reloc_statement): Rewrite.
767 (print_padding_statement): Rewrite.
768 (print_wild_statement): Rewrite.
769 (print_statement_list): Clean up.
770 (print_statement): Clean up. Some minor output changes.
771 (print_statements): Clean up.
772 (load_symbols): Put another - before -whole-archive.
773 * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
774 print 0x and to omit leading zeroes. For etree_rel, use %B to
775 print the BFD. For etree_assign, remove the space after the
777 * ldwrite.c: Include "libiberty.h".
778 (clone_section): Call xstrdup, not strdup.
779 (ldwrite): Don't print any map information.
780 (print_symbol_table, print_file_stuff, print_symbol): Remove.
781 * ldmain.c (main): Call lang_map when appropriate.
782 * ldmisc.c (vfinfo): Add support for %W.
783 (print_address): Remove.
784 * ldmisc.h (print_address): Don't declare.
785 * Makefile.in: Rebuild dependencies.
787 Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
789 * configure.host (m68*-*-linux*): Add -dynamic-linker to
790 HOSTING_CRT0. Search -lgcc both before and after -lc in
791 HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
793 (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
796 Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
798 * ldmisc.h (demangle): Declare.
799 * ldmisc.c: Include "libiberty.h". Include demangle.h with "",
801 (demangle): Make non-static. Remove remove_underscore paramter.
802 Always return an allocated string.
803 (vfinfo): Free result of demangle. Add case 'G'. Use %T to print
804 functionname, rather than calling demangle. Print a colon between
805 the BFD(section+offset) and the line number.
806 * ldmain.c (add_archive_element): Improve format of archive
807 information in map file.
808 (constructor_callback): Don't print anything to the map file.
809 * ldlang.c (lang_one_common): Improve format of common symbol
810 information in map file.
811 * ldctor.c (ldctor_build_sets): If producing a map file, print set
813 * ldwrite.c (print_symbol_table): Print a newline before the
814 header in the map file.
815 * Makefile.in: Rebuild dependencies.
817 * ldmisc.c (vfinfo): Reindent.
819 Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
821 * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
822 don't clobber it when not relaxing.
824 * ld.h (ld_config_type): Remove traditional_format field.
825 * ldmain.c (main): Use link_info.traditional_format rather than
826 config.traditional_format.
827 * ldlang.c (ldlang_open_output): Likewise.
828 * lexsup.c (parse_args): Likewise.
829 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
830 * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
832 * ldlang.c (wild_doit): Discard debugging sections if we are
833 stripping debugging information.
835 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
837 Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
839 * ldexp.c (fold_binary): Correct handling of subtraction with
841 (fold_name): Permit symbols in lang_allocating_phase_enum.
843 * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
844 accidental changes in last patch.
846 Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
848 * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
849 (powerpcle*-*-{sysv,solaris}): Ditto.
851 Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
853 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
854 in m68k/crt0.S without things blowing up.
856 Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
858 * scripttempl/m68kcoff.sc: Remove default address for .data so
859 .text, .data, and .bss are all sequential.
861 Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
863 * scripttempl/m68kcoff.sc: Remove regions and simplify.
865 Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
867 * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
868 bytes of the address space. Put data from the ".eight" sections
870 * scripttempl/h8300h.sc: Likewise.
872 Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
874 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
875 Pass $ARCH to ldfile_set_output_arch instead of setting
876 ldfile_output_architecture directly.
878 Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
880 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
881 next to .text. Put _etext after .text, .init, .fini, and
882 .rodata{,2} sections.
884 Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
886 * ld.texinfo: Rearrange option documentation.
888 * lexsup.c (ld_options): New static array.
889 (parse_args): Build shortopts and longopts from ld_options array.
890 (help): New static function.
891 * ldver.h (help): Don't declare.
892 * ldver.c (ldversion): Reindent.
895 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
897 Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
899 * emultempl/elf32.em: When checking for a native emulation, check
900 that the current emulation is the default emulation.
901 * emultempl/sunos.em: Likewise.
903 * configure.in: Permit --enable-shared to specify a list of
905 * configure: Rebuild.
907 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
908 for HP/UX compatibility.
910 Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
912 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
913 static function, if ${host} = ${target}.
914 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
915 needed shared library if ${host} = $[target}.
917 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
918 HOSTING_CRT0. Search -lgcc both before and after -lc in
921 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
922 Polstra <jdp@polstra.com>.
924 Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
926 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
928 * scripttempl/elf.sc: Use $MACHINE definition if present.
929 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
932 Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
934 * ldlang.c (lang_size_sections): Change region check to handle
935 regions which end at the highest possible address correctly.
936 From Roland Weber <roweber@ira.uka.de>.
938 * ldlang.c (section_already_linked): New static function.
939 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
940 relocateable link. Don't worry about section being NULL, since it
941 never should be. Don't call init_os unless the section is going
943 (ldlang_add_file): Call section_already_linked for each section.
944 * ldmain.c (multiple_definition): Don't warn about multiple
945 definitions in sections which are being discarded.
947 Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
949 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
950 * emultempl/pe.em (init): Remove special case PPC code.
952 Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
954 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
955 so as not to overwrite the magic syscall entry at 0xc4.
956 * scripttempl/h8300h.sc: Likewise.
958 Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
960 * configure.tgt (sparc64-*-solaris2*): Delete.
961 Stick with sparc-*-solaris2*.
963 Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
965 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
966 * ldlang.c (init_os): Fail on an attempt to initialize any section
967 named DISCARD_SECTION_NAME.
968 (wild_doit): Discard input sections assigned to an output section
969 named DISCARD_SECTION_NAME.
970 * ld.texinfo: Document use of /DISCARD/.
972 * ldlang.c: Fix some indentation and comments.
974 Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
976 * ldmain.c (main): Call bfd_set_error_program_name.
978 Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
980 * ld.texinfo: Fix a couple of indexing entries. Mention that
981 --verbose displays builtin linker scripts.
983 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
984 and the local symbol name does not match the filename, print the
987 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
988 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
989 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
992 Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
994 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
996 Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
998 * ldmain.c (add_wrap): New function.
999 * ldmain.h (add_wrap): Declare.
1000 * lexsup.c (parse_args): Call add_wrap.
1002 Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
1004 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
1006 Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
1008 * scripttempl/h8300.sc: Change name of page zero memory
1009 from "null" to "vectors". Create an output section for
1010 vectors. Add comments on how to explicitly place items
1011 in the vector table.
1012 * scripttempl/h8300h.sc: Likewise.
1014 Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
1016 * emultempl/lnk960.em (machine_table): Add jx and hx.
1018 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
1021 Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
1023 * ld.h (ld_config_type): Add warn_multiple_gp field.
1024 * lexsup.c (parse_args): Handle --warn-multiple-gp.
1025 * ldmain.c (warning_callback): Suppress multiple gp values warning
1026 if --warn_multiple_gp was not used.
1027 * ld.texinfo, ld.1: Document --warn-multiple-gp.
1029 Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
1031 * lexsup.c (parse_args): Handle --wrap.
1032 * ldmain.c (main): Initialize link_info.wrap_hash.
1033 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
1035 * ld.texinfo, ld.1: Document --wrap.
1037 * configure: Rebuild with autoconf 2.8.
1039 Don't do SunOS style dynamic linking for sparc-aout:
1040 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
1041 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
1042 (sparc*-wrs-vxworks*): Likewise.
1043 * emulparams/sparcaout.sh: New file.
1044 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
1045 (esparcaout.c): New target.
1047 Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1049 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
1050 in a different manner to work around differences in shell variable
1053 Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
1055 * ldemul.h (ldemul_unrecognized_file): Declare.
1056 (ldemulation_xfer_type): Add unrecognized_file field.
1057 * ldemul.c (ldemul_unrecognized_file): New function.
1058 * ldlang.c (load_symbols): If a file can not be recognized, call
1059 ldemul_unrecognized_file before trying it as a linker script.
1060 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
1062 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
1063 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
1065 Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
1067 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
1068 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
1070 Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1072 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
1073 Search trinary.cond rather than searching trinary.lhs twice.
1075 Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
1077 * mpw-make.sed: Edit out shared library support.
1078 (@TDIRS@): Edit out, can't use genscripts.
1080 Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1082 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
1083 * emulparams/m68klinux.sh: New file.
1084 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
1085 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
1086 bfd_linux_size_dynamic_sections.
1087 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
1088 (em68klinux.c): New target.
1089 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
1091 Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
1093 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
1094 Fill in missing entries.
1096 * lexsup.c (parse_args): Recognize --no-whole-archive.
1097 * ldlang.h (lang_input_statement_type): Add whole_archive field.
1098 * ldlang.c (new_afile): Set whole_archive field.
1099 (load_symbols): Check input file specific whole_archive field
1100 rather than global variable.
1101 * ld.texinfo, ld.1: Document --no-whole-archive.
1103 Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
1105 * configure.tgt: Correct gldi960 to gld960.
1107 Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
1109 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
1110 the SONAME if it is available.
1111 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
1112 filename, when checking for conflicting library versions. Don't
1113 assume that the suffix is only numbers and dots.
1115 * ld.texinfo: Mention that -R can be used for -rpath.
1117 Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
1119 * configure.host: Check for 'do not mix' from native linker before
1120 trying to use -rpath.
1122 Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
1124 * configure.in: Remove explicit substitution of CFLAGS; autoconf
1126 * configure: Rebuild.
1127 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
1129 * configure.in: Call AC_PROG_CC before configure.host.
1130 * configure: Rebuild.
1131 * configure.host: Remove go32 host, since it should no longer be
1132 necessary. Don't set CC for romp host.
1134 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
1135 the text segment ends exactly on a page boundary.
1137 * configure.in: Substitute RPATH_ENVVAR.
1138 * configure: Rebuild.
1139 * configure.host: Set RPATH_ENVVAR.
1140 * Makefile.in (RPATH_ENVVAR): New variable.
1141 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
1143 Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
1145 * configure.in: Redo emulation handling so that each emulation
1146 searches the correct tool directory, based on the target alias.
1147 For example, "configure --enable-targets=m68k-coff i386-linux"
1148 will search /usr/local/i386-linux/lib for linux and
1149 /usr/local/m68k-coff/lib for m68k-coff.
1150 * configure: Rebuild.
1151 * configure.tgt: Add special tdir settings for Linux.
1152 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
1153 for each eEMUL.c target.
1154 * genscripts.sh: Accept specific alias as 9th argument, and use it
1157 Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
1159 * ldlang.c (lang_set_startof): Don't do anything for a
1162 * ldgram.y (mri_script_file): Call mri_draw_tree.
1163 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
1164 create memory regions.
1165 (mri_load): Don't call mri_draw_tree.
1166 * mri.h (mri_draw_tree): Declare.
1168 * configure.tgt (m68*-*-psos): New target.
1169 * emulparams/m68kpsos.sh: New file.
1170 * scripttempl/psos.sc: New file.
1171 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
1172 (em68kpsos.c): New target.
1174 Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
1176 * configure.tgt (*-*-ieee*): New target; use vanilla.
1178 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
1179 `:foo' from ${ARCH}.
1181 Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
1183 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
1186 Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
1188 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
1190 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
1191 it looks like we might be linking in two different versions of the
1192 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
1194 Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
1196 * ldlang.c (lang_size_sections): Increment the section size when a
1197 padding statement is encountered.
1199 Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
1201 * configure.in: Look for --enable-shared. Change the value of
1202 BFDLIB when linking against a shared library on SunOS.
1203 * configure: Rebuild.
1204 * configure.host: If using a shared BFD library, try to pass a
1205 reasonable -rpath option when linking.
1206 * Makefile.in (BFDLIB): Set to @BFDLIB@.
1208 Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
1210 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
1211 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
1213 Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
1215 Support for building bfd and opcodes as shared libraries, based on
1216 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
1217 * configure.in (HLDFLAGS): New substitution.
1218 * configure: Rebuild.
1219 * configure.host: Set HLDFLAGS on SunOS.
1220 * Makefile.in (HLDFLAGS): New variable.
1221 (BFDDEP): New variable.
1222 (BFDLIB): Change to -L../bfd -lbfd.
1223 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
1224 $(HLDFLAGS) in link.
1225 (check): Set LD_LIBRARY_PATH in the environment.
1227 Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
1229 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
1230 in the read-only section, not read/write unless we are making a
1232 (.debug*): Add dwarf debug sections.
1233 (.rela.{sdata*,sbss*}): Add sections.
1235 Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
1237 * configure: Regenerate.
1239 Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
1241 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
1242 for SVR4 compatibility.
1244 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
1246 Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
1248 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
1249 * emultempl/pe.em (definfo init): Make the default stack reserve
1252 Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
1254 * configure.tgt (m68*-apple-aux*): New target.
1255 * emulparams/m68kaux.sh: New file.
1256 * scripttempl/m68kaux.sc: New file.
1257 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
1258 (em68kaux.c): New target.
1260 Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
1262 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
1263 -bnoentry, since the right thing tends to happen anyhow.
1265 Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
1267 * ld.texinfo, ld.1: Document -export-dynamic.
1269 Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1271 * emultempl/sunos.em: Check for native compile by comparing
1272 ${target} and ${host}.
1274 Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
1276 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
1277 TEXT_START_ADDR to allow use on IDT and PMON systems.
1279 Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
1281 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
1284 Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
1286 * configure.tgt (sparc64-*-solaris2*): New configuration.
1287 (sparc64-*-aout*): Renamed from sparc64*.
1289 Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1291 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
1292 * genscripts.sh: Set host, target and target_alias variables.
1293 Check for native compile by comparing ${target} and ${host}.
1294 * emultempl/elf32.em: Likewise.
1295 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
1297 Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1299 * scripttempl/elfppc.sc: Refine eabi support to better support
1300 .sdata, .sdata2, .sbss, etc. sections.
1302 Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
1304 * ldgram.y (%union): Add phdr field.
1305 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
1306 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
1307 (opt_hdrs, hdr): Remove.
1308 (phdr_val): New nonterminal.
1309 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
1310 and phdrs parameters. Add flags parameter.
1311 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
1313 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
1314 phdrs fields. Add flags field.
1315 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
1316 (lang_new_phdr): Update declaration.
1317 * ld.texinfo: Document FLAGS.
1319 Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
1321 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
1322 Don't make a shared library because of an undefined reference to
1323 __GLOBAL_OFFSET_TABLE_.
1325 Add some Irix 5 support, mostly from Kazumoto Kojima
1326 <kkojima@info.kanagawa-u.ac.jp>:
1327 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
1328 (SHLIB_TEXT_START_ADDR): Define.
1329 (OTHER_GOT_SYMBOLS): Define.
1330 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
1331 (EXECUTABLE_SYMBOLS): Don't define.
1332 (DYNAMIC_LINK): Don't define.
1333 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
1334 * scripttempl/elfmips.sc: New file.
1335 * configure.host (mips*-dec-bsd*): Change mips to mips*.
1336 (mips*-sgi-irix4*): Likewise.
1337 (mips*-sgi-irix5*): New entry.
1338 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
1340 (eelf32lmip.c): Likewise.
1342 Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1344 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
1345 .rela.got.neg section.
1347 Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
1349 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
1351 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
1352 ANSI_PROTOTYPES is defined. Remove special handling of
1353 WINDOWS_NT. Various indendation fixes.
1354 (vfinfo): Change fmt parameter to const char *.
1355 (info_msg): Write <stdarg.h> version.
1356 (einfo, minfo, finfo): Likewise.
1357 (info_assert): Change file parameter to const char *.
1358 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
1359 defined, use a real prototype.
1360 (info_assert): Change first parameter to be const char *.
1362 Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1364 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
1365 in old support that 2.7.2 needs, but the current compiler does
1368 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
1369 correct Linker script template.
1371 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
1373 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
1375 Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
1377 * scripttempl/alpha.sc: Put .rconst right after .rdata.
1379 Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
1381 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
1382 sort using right pointer.
1384 Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1386 * scripttempl/elfppc.sc: Remove support for creating special
1387 labels for eabi section begin/end here. The compiler now uses
1388 crt{i,n}.o to create these symbols.
1390 Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
1392 * configure.host: Change existing Linux HOSTING_CRT0 to be used
1393 for a.out only, and put in appropriate HOSTING_CRT0 and
1394 HOSTING_LIBS values for Linux ELF.
1396 Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
1398 * scripttempl/h8300.sc: Use all 64K for ram.
1399 * scripttempl/h8300h.sc: Define 256K ram size.
1401 Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
1403 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
1404 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
1405 was used, regardless of whether -bE was used.
1407 Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
1409 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
1410 relocateable before calling ldctor_build_sets if the output file
1411 is in an XCOFF format.
1413 Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
1415 * ldwrite.c (build_link_order): When handling a data statement, if
1416 the endianness of the output file is unknown, use the endianness
1419 Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
1421 * mpw-config.in: Recognize mips-*-* as equivalent to
1423 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
1424 * mpw-ld.r: Add version resources.
1425 (cfrg): Use symbolic instead of literal name for executable.
1427 Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
1429 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
1431 Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
1433 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
1434 (print_statement_list): Renamed from print_statement. All callers
1436 (print_statement): New function to print just one statement.
1437 (print_{data,reloc,padding}_statement): Don't crash if
1438 output_section == NULL.
1439 (dprint_statement): New function.
1441 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
1442 call to sort_sections.
1444 Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
1446 * emultempl/aix.em (unix_ld): New static variable.
1447 (gld${EMULATION_NAME}_parse_args): Handle -unix.
1448 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
1449 gc as false and export_defineds as true to size_dynamic_sections.
1451 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
1452 phase if the current section is abs_output_section.
1455 Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
1457 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
1460 Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
1462 * ldgram.y (PHDRS): New token.
1463 (ifile_p1): Accept phdrs.
1464 (section): Accept phdr_opt at the end of the section definition.
1465 (phdr_op): New nonterminal.
1466 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
1467 * ldlex.l: Accept PHDRS.
1468 * ldlang.h (struct lang_output_section_phdr_list): Define.
1469 (lang_output_section_statement_type): Add phdrs field.
1470 (struct lang_phdr): Define.
1471 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
1472 (lang_new_phdr): Declare.
1473 * ldlang.c (lang_phdr_list): New static variable.
1474 (lang_output_section_statement_lookup): Initialize phdrs field.
1475 (lang_process): Call lang_record_phdrs.
1476 (lang_new_phdr): New function.
1477 (lang_section_in_phdr): New function.
1478 (lang_record_phdrs): New static function.
1479 * ld.texinfo: Document PHDRS.
1481 Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
1483 * scripttempl/ppcpe.sc: Moved .edata into its own section to
1486 Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
1488 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
1489 HOSTING_LIBS for testing.
1490 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
1493 Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
1495 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
1498 Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
1500 * configure: Rebuild with autoconf 2.7.
1502 Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
1504 * scripttempl/pe.sc: Two .junk's is too much junk.
1506 Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
1508 * configure.in: Use BFD_NEED_DECLARATION.
1509 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
1510 * configure, config.in: Rebuild with autoconf 2.6.
1512 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
1513 being unsupported if this is not a relocateable link and the input
1514 BFD supports it, since ldctor_build_sets can cope with that case.
1516 Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
1518 * configure.tgt (powerpc-*-macos*): New target.
1519 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
1520 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
1521 (eppcmacos.c): New target.
1522 * mpw-eppcmacos.c: Update.
1523 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
1525 Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
1527 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
1528 $(host_canonical) and $(target_canonical).
1529 (CXX_FOR_TARGET): Likewise.
1531 Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
1533 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
1534 so the malloc heap begins at a sane place.
1536 Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
1538 Version 2.6 released.
1539 * ldver.c (ldversion): Update to 2.6.
1541 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
1542 $(GENERATED_*FILES), since they need to be retained by distclean.
1543 (maintainer-clean, realclean): Delete them here.
1545 Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
1547 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
1548 base file with FOPEN_WB, not "w".
1550 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
1551 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
1553 (gld${EMULATION_NAME}_before_allocation): Use the environment
1554 variable LD_RUN_PATH if -rpath was not used.
1555 * ld.texinfo, ld.1: Document LD_RUN_PATH.
1557 Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
1559 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
1560 -bl and -bloadmap options.
1562 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
1563 report a better error.
1565 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
1566 new local variable special_sections, and pass it to
1567 size_dynamic_sections. Look through the results, and move the
1568 sections around in the mapping so that they are defined correctly.
1570 Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
1572 * ldemul.c (ldemul_default_target): Cast getenv return value.
1574 Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
1576 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
1578 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
1581 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
1582 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
1584 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
1585 (gld_$_before_allocation): added hooks for toc construction based
1588 Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
1590 * ld.texinfo: The linker does not use _main as an entry point.
1592 Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
1594 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
1597 Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
1599 * configure.in: Add test for whether free must be declared.
1600 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
1601 * acconfig.h: Explain NEED_DECLARATION_FREE.
1602 * configure, config.in: Rebuild.
1604 * lexsup.c (parse_args): Take B:: out of shortopts.
1606 Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
1608 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
1609 for now, as with m68k4kbsd, until shared library support gets
1612 * configure.host: For i386 BSD variants, crt0.o lives in
1613 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
1615 Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
1617 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
1618 (edelta68.c): New target.
1619 * configure.tgt (m68*-motorola-sysv*): New target.
1620 * emulparams/delta68.sh: New file.
1621 * scripttempl/delta68.sc: New file.
1623 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
1626 Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
1628 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
1629 ALIGN and ALIGNMOD statements.
1631 * emultempl/aix.em: Include ldgram.h.
1632 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
1634 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
1636 Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
1638 * configure.host (alpha-*-linux*): New host.
1639 * configure.tgt (alpha-*-linux*): New target.
1641 Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
1643 * emultempl/aix.em (export_files): Remove.
1644 (import_files): Make static.
1645 (struct export_symbol_list): Define.
1646 (export_symbols): New static variable.
1647 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
1648 correctly. Call read_file for an export file.
1649 (gld${EMULATION_NAME}_before_allocation): Call
1650 bfd_xcoff_export_symbol for each export symbol, rather than
1651 calling read_file for each export file.
1652 (gld${EMULATION_NAME}_read_file): For an export file, make the
1653 exported symbols undefined, and store them on the export_symbols
1656 Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
1658 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
1659 Don't hang if last option is unrecognised.
1660 (gld_${EMULATION_NAME}_set_symbols): Insert created
1661 symbols into ABS output section.
1663 Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
1665 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
1667 (em68k4knbsd.c): New rule.
1669 * configure.tgt: Added support for the NetBSD m68k4k arch.
1671 * genscripts.sh, ldint.texinfo,
1672 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
1673 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
1674 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
1675 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
1676 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
1677 pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
1678 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
1679 PAGE_SIZE to TARGET_PAGE_SIZE.
1681 * emulparams/m68knbsd.h: Ditto.
1682 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
1683 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
1686 * emulparams/m68k4knbsd.sh: New file.
1688 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
1690 Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
1692 * emultempl/aix.em: Include ldctor.h.
1693 (gld${EMULATION_NAME}_after_open): New static function.
1694 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
1695 (gld${EMULATION_NAME}_find_relocs): New static function.
1696 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
1697 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
1698 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
1699 * ldctor.c (struct set_info): Move definition into ldctor.h.
1700 (struct set_element): Likewise.
1701 (sets): Make non-static.
1702 (ldctor_add_set_entry): Add name parameter. Save it in the new
1704 (ldctor_build_sets): Avoid being called twice. Pass set element
1705 name to lang_add_reloc.
1706 * ldctor.h (struct set_info): Move definition here from ldctor.c.
1707 (struct set_element): Likewise. Add new field name.
1709 (ldctor_add_set_entry): Declare new name parameter.
1710 * ldwrite.c (build_link_order): Don't insist that either name or
1711 section be NULL in a lang_reloc_statement.
1712 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
1714 (constructor_callback): Pass name to ldctor_add_new_set_entry for
1717 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
1719 Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
1721 * mpw-config.in: Add PowerMac target support, generate config.h.
1722 * mac-ld.r: New file, Mac resources.
1723 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
1724 * mpw-make.in: Remove.
1725 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
1727 Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
1729 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
1730 -static as a synonym for -bnso.
1732 * scripttempl/aix.sc: Move special symbols inside sections.
1733 Always start .data at 0.
1735 Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1737 * Makefile.in (diststuff): Also make info.
1738 (maintainer-clean realclean): Also delete *.info*.
1740 Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
1742 * emultempl/aix.em: Add support for various AIX linker options,
1743 for AIX import and export files, and for AIX shared objects.
1744 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
1746 * ldmain.c (main): Initialize new field link_info.static_link.
1748 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
1749 (constructor_callback): Likewise.
1750 * ldmisc.c (vfinfo): Likewise.
1751 * ldwrite.c (build_link_order): Likewise.
1753 * ld.texinfo: The MRI ALIGN directive is supported.
1755 Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
1757 * emulparams/elf32vr4300.sh: Deleted.
1758 * emulparams/elf32vr4300el.sh: Deleted.
1759 * emulparams/elf32b4300.sh: Added.
1760 * emulparams/elf32l4300.sh: Added.
1761 * configure.tgt, Makefile.in: Updated the build to use the
1762 new 8.3 unique names.
1764 Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
1766 * ldlang.c (entry_symbol): Make non-static.
1767 * ldlang.h (entry_symbol): Declare.
1769 * ldlex.l: Treat PROVIDE as a keyword in expression state.
1771 Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
1773 * scripttempl/pe.sc (.bss): Move to be after .text
1775 Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
1777 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
1778 Search trinary.cond rather than searching trinary.lhs twice. From
1779 linli@ihp.PHys.ethz.CH.
1781 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
1782 directory searching code into gld${EMULATION_NAME}_search_dir.
1783 (gld${EMULATION_NAME}_search_dir): New static function, extracted
1784 from gld${EMULATION_NAME}_find_so.
1785 (global_needed, global_found): New static variables.
1786 (gld${EMULATION_NAME}_after_open): New static function.
1787 (gld${EMULATION_NAME}_search_needed): New static function.
1788 (gld${EMULATION_NAME}_try_needed): New static function.
1789 (gld${EMULATION_NAME}_check_needed): New static function.
1790 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
1791 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
1793 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
1794 (eelf32lppc.c): Likewise.
1795 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
1796 (GENERATE_SHLIB_SCRIPT): Define as yes.
1798 Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
1800 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
1801 bfd_link_needed-list; make appropriate changes.
1803 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
1804 (rs6000-*-aix*): New target; use aixrs6.
1805 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
1806 * emultempl/aix.em: New file.
1807 * scripttempl/aix.sc: New file.
1808 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
1809 (eaixppc.c, eaixrs6.c): New targets.
1811 Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
1813 * scripttemp/pe.sc (.reloc): Move to the end.
1815 Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
1817 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
1818 section which was not linked into the final output.
1820 Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
1822 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
1825 Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
1827 * ld.h (args_type): Add rpath_link field.
1828 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
1829 required dependencies in rpath_link path. Only search
1830 LD_LIBRARY_PATH when configured native.
1831 * lexsup.c (parse_args): Recognize -rpath-link.
1832 * ld.1, ld.texinfo: Document -rpath-link.
1834 Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
1836 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1837 bother searching for needed libraries unless doing a final link.
1839 Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
1841 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1843 * ld/ld.1: Fix formatting bugs.
1845 Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
1847 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
1848 * ldexp.h (exp_get_abs_int): Update declaration.
1849 * ldlang.c (print_output_section_statement): Use fprintf_vma to
1850 print return value of exp_get_abs_int.
1852 Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
1854 * emultempl/elf32.em (global_stat): New file static variable.
1855 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
1856 that the file has not already been included under another name.
1857 (gld${EMULATION_NAME}_stat_needed): New static function.
1859 Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
1861 * scripttempl/armcoff.sc: Start .text at 0x8000.
1862 Start .data at 0x40000.
1864 Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
1866 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
1867 command_line.rpath is set, use it, rather than the -L options, to
1868 build the rules section.
1869 * ld.texinfo: Document this use of -rpath.
1871 * lexsup.c (parse_args): Don't set link_info.shared for -assert
1872 pure-text. Pass true, not 1, to lang_add_entry.
1873 * emultempl/sunos.em (find_assign): New static variable.
1874 (found_assign): New static variable.
1875 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
1876 If not a relocateable link, and no start symbol was specified on
1877 the command line, and there are any undefined symbols, set
1878 link_info.shared. If link_info.shared is set, set the address of
1879 the .text section to 0x20.
1880 (gld${EMULATION_NAME}_find_assignment): Rename from
1881 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
1882 set, then just set found_assign based on whether an assignment is
1883 found to find_assign.
1884 (gld${EMULATION_NAME}_get_script): Don't use a special script when
1885 producing a shared library.
1886 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
1887 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
1888 * ldlang.c (entry_from_cmdline): New global variable.
1889 (lang_add_entry): Change cmdline parameter from int to boolean.
1890 Use global entry_from_cmdline rather than function static
1892 * ldlang.h (entry_from_cmdline): Declare.
1893 (lang_add_entry): Change declaration of second parameter from int
1895 * ldgram.y: Pass false, not 0, to lang_add_entry.
1897 Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
1899 * ld.h (parsing_defsym): Declare.
1900 * ldlex.h (lex_string): Declare.
1901 * ldlex.l (lex_string): Define.
1902 * lexsup.c (parsing_defsym): Define.
1903 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
1904 lex_redirect, and clear it after calling yyparse. Set
1905 parsing_defsym around call to yyparse.
1906 * ldmain.c (main): Set lex_string before calling lex_redirect, and
1907 clear it after calling yyparse.
1908 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
1909 in linker scripts correctly.
1911 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
1912 COFF targets, allowing for the leading underscore used on SPARC
1915 * lexsup.c (parse_args): Handle -assert.
1916 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
1917 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
1918 shared library script when appropriate.
1919 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
1920 section at SIZEOF_HEADERS.
1922 Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
1924 * Makefile.in (earmcoff.c): Build.
1925 * configure.tgt (arm-*-coff): New target
1926 * emulparms/armcoff.sh: New file.
1927 * scripttempl/armcoff.sc: New file.
1929 Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
1931 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
1933 Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
1935 * ldfile.c (ldfile_set_output_arch): Make arch const.
1937 Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1939 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
1940 beginning of the .bss area, not at the end of data. Add
1941 __sbss_{start,end} symbols.
1943 Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
1945 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
1946 (CXX_FOR_TARGET, install): Likewise.
1948 Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
1950 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
1951 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
1952 (CXX_FOR_TARGET): Likewise.
1953 (install): Likewise.
1954 (GENERATED_HFILES): Remove config.h.
1955 (.dep): Depend upon config.h.
1957 Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
1959 * configure.tgt (mips*-dec-netbsd*): New target.
1961 Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
1963 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
1965 Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
1967 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
1969 Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
1971 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
1972 Start .text section on the right boundary. Always align
1975 Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
1977 * Makefile.in (maintainer-clean): New target.
1979 * ldmain.c (struct warning_callback_info): Define.
1980 (warning_callback): Add new parameter symbol. Call
1981 warning_find_reloc to try to find the section and VMA.
1982 (warning_find_reloc): New static function.
1983 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1984 Pass NULL as symbol parameter to warning callback.
1986 * ld.texinfo: Clarify -L option.
1988 * ldlang.c (lang_one_common): Add cast to avoid warning.
1989 (topower): Likewise. Also, reindent.
1990 * ldwrite.c (clone_section): Change i to unsigned int.
1991 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
1992 cast to avoid warning.
1994 Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
1996 * Makefile.in (config.status): Depend upon configure.tgt.
1998 * ldemul.h (ldemul_set_symbols): Declare.
1999 (ldemul_parse_args): Declare.
2000 * ldemul.c (ldemul_parse_args): Fix indentation.
2002 * configure.in: Call AC_HEADER_DIRENT.
2003 * configure, config.in: Rebuild.
2004 * emultempl/sunos.em: Use autoconf recommend mechanism to define
2005 DIR and struct dirent.
2007 * configure.tgt (mips*-*-bsd*): New case.
2009 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
2011 * configure.tgt (i[345]86-*-ptx*): New case.
2013 Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
2015 * config.in: Rename from config.h.in.
2016 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2017 Check for config.h:config.in when creating stamp-h.
2018 * configure: Rebuild.
2019 * Makefile.in (stamp-h): Depend upon config.in rather than
2020 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
2021 calling config.status.
2023 * Makefile.in (distclean): Remove config.h and stamp-h.
2025 * configure.host (sparc-*-sunos64*): Remove.
2026 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
2028 * ldexp.c (exp_fold_tree): Don't warn about moving the location
2029 counter backward in the absolute section.
2031 Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
2033 * configure.in: Rewrite to use autoconf.
2034 * configure.host: New file.
2035 * configure.tgt: New file.
2036 * aclocal.m4: New file.
2037 * configure: New file, built by autoconf.
2038 * acconfig.h: New file.
2039 * config.h.in: New file, built by autoheader.
2040 * sysdep.h: New file.
2041 * ld.h: Incorporate old contents of config.h.
2043 * Makefile.in: Various changes for new configure script. Also:
2044 (CC_FOR_BUILD): Remove.
2045 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
2046 (dep.sed): Use @SRCDIR@, not @srcdir@.
2047 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
2048 * genscripts.sh: Create ldscripts if it does not exist.
2049 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
2050 * mpw-esh.c, emultemp/*.em: Likewise.
2051 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
2053 * config/*.mt, config/*.mh: Remove.
2055 Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
2057 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
2058 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
2060 Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
2062 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
2064 Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
2066 * ldmain.c (warning_callback): Add abfd, section, and address
2068 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2069 Change call to warning accordingly.
2071 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
2072 relocateable and not shared, put .gnu.warning.SYMBOL sections into
2075 Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
2077 * configure.in: Added mips*vr4300-idt-elf* and
2078 mips*vr4300el-idt-elf* targets.
2079 * Makefile.in: Added eelf32vr4300* targets.
2080 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
2081 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
2083 Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
2085 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
2086 <brendan@cygnus.com>.
2088 Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
2090 * ldemul.c (ldemul_parse_args): New.
2091 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
2092 * lexsup.c (all pe stuff): Moved into pe.em
2093 (parse_args): Call emulation arg parser.
2094 * emultempl/pe.em (parse_args): handle PE specfic args.
2096 Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
2098 * ldlang.c (lang_memory_region_lookup): Don't use the first region
2099 as the default region. Create a new region instead.
2101 Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
2103 * ldemul.c (ldemul_set_symbols): New function.
2104 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
2105 * ldmain.c (main): Add call to ldemul_set_symbols.
2106 * lexsup.c (set_pe_value): New args.
2108 (parse_args): Cope with new set_pe_value args.
2109 * emultempl/pe.em (set_symbols): New function.
2110 (ld_emulation_xfer_struct): Add set_symbols.
2111 * scripttempl/pe.sc: Use new symbols.
2113 Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
2115 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
2116 For -Y, ignore a leading `P,', and only call set_default_dirlist
2117 after processing all the other arguments.
2119 Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
2121 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
2122 * emulparams/armpe.sh: Run PE script.
2124 Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
2126 * ldmain.c (main): Remove PE stuff.
2127 * lexsup.c (options): Load more PE options.
2128 (set_pe_value): New function.
2130 Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
2133 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
2134 * emultempl/pe.sc: New file performs generic PE support and sorts
2136 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
2137 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
2138 * scripttempl/pe.sc: New.
2139 * Makefile.in: Use new files.
2141 Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
2143 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
2144 (.strings,.ctors,.dtors): Likewise.
2146 Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
2148 * scripttempl/armpe.sc: Always start code at 0x401000, even
2150 * ldwrite.c (strdup): New extern declaration.
2151 * ldgram.y (atype): New rule to clarify type parsing.
2152 * ldlang.c (init_os): Remove commented out code.
2153 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
2154 unless told not to by the link script.
2156 Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
2158 * ldlang.c (lang_set_startof): New static function.
2159 (lang_process): Call it.
2161 * ldgram.y: Tweak casesymlist to avoid bison errors.
2163 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
2164 Solaris compatibility.
2166 Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
2168 * ldgram.y (YYDEBUG): If not defined, define as 1.
2169 (CASE, EXTERN, START): New tokens.
2170 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
2171 (casesymlist): New nonterminal.
2172 (extern_name_list): New nonterminal.
2173 * ldlex.l: Accept lower case trailing base specifiers. Don't
2174 ignore the first digit when the base is a suffix. Accept many
2175 EXPRESSION state tokens in MRI state. Support MRI continuation
2176 lines and MRI semicolon comments. Accept all MRI keywords in
2177 lower case. Add CASE, EXTERN, and START MRI keywords.
2179 Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
2181 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
2184 Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2186 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
2187 $r/../gcc/xgcc unless it is present.
2189 Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
2191 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
2193 * scripttempl/m68klynx.sc: Likewise.
2194 * scripttempl/nw.sc: Likewise.
2195 * scripttempl/sa29200.sc: Likewise.
2196 * scripttempl/sparclynx.sc: Likewise.
2198 Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
2200 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
2202 Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
2204 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
2206 Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
2208 * scripttempl/i386pe.sc: Cope with constructors.
2209 * scripttempl/z8ksim.sc: Deleted.
2210 * scripttempl/z8000.sc: Resurrected as this, but
2211 can handle z8001 and z8002 formats.
2212 * emulparams/z8ksim.sh: Deleted.
2213 * emulparams/{z8001.sh, z8002.sh}: New files.
2214 * config/z8ksim.mt: Deleted
2215 * config/z8k-coff.mt: New, generates both emulations.
2217 Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
2219 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
2220 %B, in case it is in an archive.
2222 Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
2224 * ldlang.c (lang_process): Call reset_memory_regions for each
2227 Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
2229 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
2232 Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
2234 * ldmain.c (constructor_callback): Allocate set_name in stack
2235 frame, rather than always calling alloca with a fixed size.
2237 Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
2239 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
2240 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
2242 Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
2244 * ldwrite.c (clone_section): Set the alignment of the clone
2245 section to that of the section being cloned.
2247 * ldwrite.c (split_sections): Don't split the first input section
2248 into a new output section.
2250 Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
2252 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
2253 (GENERATE_SHLIB_SCRIPT): Define as yes.
2255 Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
2257 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
2259 * ldver.c (help): Update list of options to match currently
2262 Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
2264 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
2267 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
2268 it takes a size_t anyhow.
2269 (exp_binop): Likewise.
2270 (exp_trinop): Likewise.
2271 (exp_unop): Likewise.
2272 (exp_nameop): Likewise.
2273 (exp_assop): Likewise.
2274 * ldlang.c (lang_memory_region_lookup): Likewise.
2275 (init_os): Likewise.
2276 (ldlang_add_undef): Likewise.
2277 (insert_pad): Likewise.
2278 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
2281 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
2283 Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
2285 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
2287 (ld_emulation_xfer_type): Add search parameter to
2288 open_dynamic_archive entry point.
2289 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
2290 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
2291 make non-static. Change all callers to use new name.
2292 (ldfile_open_file_search): Make static. If entry is dynamic, call
2293 ldemul_open_dynamic_archive.
2294 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
2295 * ldfile.h (ldfile_open_file_search): Don't declare.
2296 (ldfile_try_open_bfd): Declare.
2297 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
2298 Accept search parameter. Don't search for a library, just look in
2300 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
2303 Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
2305 * ldmain.c (set_scripts_dir): Don't base script directory on
2308 Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
2310 * ldmisc.c (vfinfo): Don't print the line number if it isn't
2313 Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
2315 * ld.h (ld_config_type): Add field warn_constructors.
2316 * ldmain.c (add_to_set): Warn if config.warn_constructors.
2317 (constructor_callback): Likewise.
2318 * lexsup.c (parse_args): Handle -warn-constructors.
2319 * ld.texinfo, ld.1: Document -warn-constructors.
2321 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
2322 get confused by directory names if we searched for the file.
2324 Based on patches from H.J. Lu <hjl@nynexst.com>:
2325 * ldlang.h (lang_input_statement_type): Add new field dynamic.
2326 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
2327 * ldfile.c: Include bfdlink.h.
2328 (ldfile_open_file): Check dynamic field of entry, not global
2329 dynamic_link field. Don't do a dynamic search when doing a
2331 * ldmain.c (main): Don't warn about dynamic_link for a
2333 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
2335 (gld${EMULATION_NAME}_create_output_section_statements): Always
2336 loop over input files.
2337 * Makefile.in: Rebuild dependencies.
2339 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
2342 Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
2344 * ldmain.c (main): Set link_info.symbolic to false.
2345 * lexsup.c (parse_args): Handle -Bsymbolic.
2347 Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
2349 * ldmain.c (HAVE_SBRK): Define for everything except
2350 specific systems that are known to not support sbrk.
2351 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
2353 Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
2355 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
2356 Handle etree_provide.
2358 * emultempl/elf32.em (global_needed): New static variable.
2359 (global_found): Likewise.
2360 (gld${EMULATION_NAME}_after_open): New static function.
2361 (gld${EMULATION_NAME}_search_needed): Likewise.
2362 (gld${EMULATION_NAME}_try_needed): Likewise.
2363 (gld${EMULATION_NAME}_check_needed): Likewise.
2364 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
2365 gld${EMULATION_NAME}_after_open.
2367 Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
2369 * configure.in (i386-*-win32): New target.
2371 Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
2373 * lexsup.c (parse_args): Let -G either set the small data size or
2374 be equivalent to --shared, depending on the next argument. Accept
2375 and ignore -z for Solaris compatibility.
2377 Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
2379 * lexsup.c (parse_args): Cast fopen result to PTR before storing
2380 it in link_info.base_file. Fix indentation.
2382 Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
2384 * ldmain.c (main): Always initialize PE info in link_info.
2385 * lexsup.c (OPTION_BASE_FILE): New option.
2386 (parse_args): Handle new option.
2387 * emulparams/armpe.sh: Output pei.
2388 * emultempl/i386pe.em: Add newline to end.
2389 * scripttempl/armpe.sc: Change output and quote the $s.
2390 * scripttempl/i386pe.sc: Change output and quote the $s.
2392 Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2394 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
2396 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
2397 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
2398 (i386msdos.o): New target.
2399 * config/i386-msdos.mt: Created.
2400 * emulparams/i386msdos.sh: Created.
2401 * scripttempl/i386msdos.sc: Created.
2403 Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2405 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
2406 that contains pointers to be relocated.
2408 Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
2410 * mpw-esh.c: New file, modified for MPW from esh.c.
2411 * scripttempl/sh.sc: Reformatted to simplify MPWification,
2412 use *() to concat stab sections instead of [].
2414 Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
2416 * scripttempl/armpe.sc: Add constructor support.
2418 Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
2420 * ldlang.c (lang_size_sections): Any section with a DATA
2421 statement has contents.
2423 Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2425 * emulparams/m68kelf.sh (NOP): Define.
2426 (DYNAMIC_LINK): Don't define.
2427 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
2428 will come from the linker script.
2430 Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
2432 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
2434 Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
2436 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
2438 Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2440 From Andrew Cagney <cagney@highland.com.au>
2441 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
2444 Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
2446 Add support for ARM-PE.
2447 * Makefile.in (ALL_EMULATIONS): Add armpe.o
2448 * configure.in: Recognize armpe.
2449 * config/arm-pe.mt: New file.
2450 * emulparams/armpe.sh: New file.
2451 * scripttempl/armpe.sc: New file.
2454 Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
2456 * configure.in (h8300h-*-hms): Deleted
2457 * config/cf-h8300h.mt: Deleted.
2459 Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
2461 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
2463 From David Taylor (dtaylor@armltd.co.uk)
2464 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
2465 * configure.in: Recognize arm{,e[lb]-*-aout.
2466 * config/arm[lb]-aout.mt: New files.
2467 * emulparams/armaout[lb].sh: New files.
2468 * scripttempl/armaout.sc: New file.
2470 Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2472 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
2473 be unique in 8 characters for DOS.
2475 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
2476 * emulparams/elf32ppcle.sh: Deleted.
2478 Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
2479 Tom Griest <griest@cs.yale.edu>
2481 Initial support for PE executables (eg NT, win32)
2483 * Makefile.in (configure.in, ei386pe): Add support.
2484 * ldmain.c (main): Initialize PE argument info.
2485 * ldwrite.c (print_file_stuff): Don't print out .drectve
2486 and .debug section info.
2487 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
2488 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
2489 Handle new arguments.
2490 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
2493 Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
2495 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
2496 segment. This allows ld -r to preserve unwind sections.
2498 Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2500 * configure.in: Add little endian PowerPC support.
2502 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
2503 (eelf32ppcle.c): Support for little endian PowerPC.
2505 * config/ppcle-elf32.mt: New file for little endian PowerPC.
2506 * emulparams/elf32ppcle.sh: Ditto.
2508 Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2510 * ldlang.c (print_output_section_statement): Check
2511 subsection_alignment, instead of checking section_alignment twice.
2512 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
2514 Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
2516 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
2518 Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
2520 * ldwrite.c (ldwrite): Before doing anything, reset the error
2521 code. If bfd_final_link returns an error, but the error code is
2522 unset, don't issue an extra message. Assume a correct error
2523 message was already set.
2525 Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2527 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
2528 (em68kelf.o): New target.
2529 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
2530 * configure.in: Use them for m68*-*-elf.
2532 Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
2534 Merge in support for Mac MPW as a host.
2535 (Old change descriptions retained for informational value.)
2537 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
2538 (i386-unknown-coff): Remove.
2539 (sh-hitachi-hms): New target.
2540 (emulation_ofiles): Set correctly for each target.
2541 (version, TDEFINES): Add to makefile fragment.
2542 * mpw-make.in (BISON): Use byacc instead of bison.
2543 (em_*.c): Replace with e*.c everywhere.
2544 (ldgram.h): Separate action from ldgram.c generation.
2545 (LD_PROG): Depend on Version.r.
2546 (Version.r): generate from version info.
2547 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
2549 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
2550 i386-unknown-aout, i386-unknown-coff): New targets.
2551 (m68k-aout, m68k-coff): Remove targets.
2552 (mk.tmp): Add definition of EMUL.
2554 * mpw-config.in (emulname): Set based on target.
2555 (ldemul-list.h): Construct.
2556 * mpw-make.in (install-only): New target.
2557 (install): Depend on install-only.
2559 * mpw-make.in (bindir): Fix pathname.
2560 (install): Move here from mpw-build.in.
2562 * mpw-config.in: New file, MPW configuration fragment.
2563 * mpw-make.in: New file, MPW makefile fragment.
2564 (This file is semi-automatically generated from Makefile.in.)
2565 * ldfile.c (slash): If MPW, set to `:'.
2566 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
2567 prevent redefinition errors.
2570 Thu Apr 6 20:38:36 1995 Doug Evans <dje@chestnut.cygnus.com>
2572 * emulparams/arcelf.sh (ENTRY): Define.
2575 Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
2577 * ldwrite.c (clone_section): Align clone sections on even
2580 Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
2582 * configure.in: Change linux to default to elf. Using
2583 i[345]86-*-linuxaout will build a linker which defaults to a.out.
2584 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
2585 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
2586 * config/i386-lelf.mt: Remove.
2588 Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
2590 * ldmain.c (main): If opening the map file fails, call
2591 bfd_set_error before calling einfo.
2593 * ld.texinfo, ld.1: Document the -no-keep-memory option.
2595 Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
2597 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
2598 does mark shared libraries as executable.
2600 Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
2602 * ldlang.c (lang_common): Change power to int. Pass larger values
2603 before smaller values.
2604 (lang_one_common): Treat info as int *. Don't bother to check for
2605 last value, since it is now zero.
2607 Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
2609 * ldlang.c (load_symbols): An empty archive is OK.
2611 Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
2613 * ldmain.c (progress.h): Include.
2614 (main): Call START_PROGRESS and END_PROGRESS.
2616 Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
2618 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
2619 .dtors sections, so that these pointers get relocated also.
2620 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
2621 and end of the constructors/destructors.
2623 Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2625 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
2626 describes an archive, call bfd_link_add_symbols on each member.
2627 * ldmain.c (whole_archive): New variable.
2628 (main): Initialize it to false.
2629 * ldmain.h: Declare whole_archive.
2630 * lexsup.c (parse_args): Grok --whole-archive switch.
2631 * ld.texinfo, ld.1: Document --whole-archive.
2633 Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
2635 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
2636 using the default emulation.
2638 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
2640 * config/hppaelf.mh (HOSTING_EMU): Likewise.
2642 Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
2644 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
2645 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
2647 Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
2649 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
2651 * ldlex.l: Return -lFILENAME as the token LNAME.
2652 * ldgram.y: Add token LNAME.
2653 (input_list): Treat LNAME like NAME, but pass it to
2654 lang_add_input_file as lang_input_file_is_l_enum.
2655 * ld.texinfo: Document using -lFILENAME in INPUT.
2657 Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2659 * ldlang.c (lang_check): If the architectures are compatible call
2660 bfd_merge_private_bfd_data to let the backend do additional
2664 Tue Mar 7 21:10:28 1995 Doug Evans <dje@chestnut.cygnus.com>
2666 * emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
2667 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
2670 Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
2672 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
2673 all supported emulations.
2675 Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
2677 * ldemul.c (ldemul_list_emulations): New function.
2678 * ldemul.h (ldemul_list_emulations): Declare.
2679 * ldver.c (help): List supported targets and emulations.
2681 Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
2683 * scripttempl/elf.sc (.debug): Relocate to address 0.
2684 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
2685 .debug_sfnames, .line): Likewise.
2687 Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
2689 * emultempl/elf32.em (hold_rel): New static variable.
2690 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
2691 contents whose names begin with ".rel" after hold_rel. Remove the
2692 assertion which checked for unplaced .rel sections. Don't try to
2693 sort the section into place if place->bfd_section is NULL.
2694 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
2695 section beginning with ".rel".
2697 Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
2699 Doc note from pierre@phi.la.tce.com (Pierre Willard):
2700 * ld.texinfo: -X and -x work even if -s or -S are not specified.
2701 * ld.1: Similar change.
2703 Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
2705 * emulparams/gld960coff.sh (COFF_CTORS): Define.
2706 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
2708 Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
2710 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
2711 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
2712 * config/i386-lelf.mt: New file.
2713 * config/i386-gelf.mt: New file.
2715 Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
2717 * configure.in: Match on mips-ecoff, and default to the IDT
2720 Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
2722 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
2723 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
2724 to double the size of the table.
2727 Thu Feb 9 19:03:25 1995 Doug Evans <dje@canuck.cygnus.com>
2729 * emulparms/arcelf.sh (TEMPLATE_NAME): Comment out.
2732 Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2734 * Makefile.in (distclean): Do recursive deletion, since ldscripts
2737 Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
2739 * ldmain.c (main): If trace_file_tries is true, and we are using
2740 an internal linker script, print out the script.
2741 * ldfile.c (try_open): Reindent function. Make the messages about
2742 opening script files more informative.
2744 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
2745 * ld.texinfo, ld.1: Update accordingly.
2747 Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
2749 * ldlang.c (lang_one_common): Adjust references to common symbol
2750 information for new structure.
2752 Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
2754 * ldmain.c (undefined_symbol): Handle section being NULL.
2756 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
2757 * ldexp.c (fold_name): Likewise.
2758 * ldlang.c (print_one_symbol): Likewise.
2759 (lang_finish): Likewise.
2760 * ldmain.c (multiple_common): Likewise.
2761 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
2762 renamed to bfd_link_hash_undefweak.
2764 * scripttempl/alpha.sc: Set address of .data section correctly
2765 when -n or -N is used. Patch from Chris G Demetriou
2766 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
2767 * scripttempl/mips.sc: Similar change.
2769 Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
2771 * ldlang.c (lang_size_sections): Clarify error message when user
2772 specified start addr conflicts with region. Fix resetting of
2775 Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
2777 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
2778 in lang_allocating_phase_enum.
2780 Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
2782 * Makefile.in (distclean): Depend upon clean. Don't bother to
2783 remove files which will be removed by clean. From patch by
2784 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
2786 Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
2788 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
2789 a MIPS target, clobber the size of all but the first input
2790 .reginfo section to be 0, so that lang_size_sections sets the
2791 correct size for the output .reginfo section.
2793 Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
2795 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2796 Remove unused variable is.
2798 Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2800 * configure.in: Add support for powerpc-*-eabi.
2802 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
2805 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
2806 elf.sc, which defines some new symbols PowerPC elf needs.
2808 Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
2810 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
2811 constructor entry is in the absolute section.
2813 Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
2815 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
2816 * config/i386-gnu.mt: New file. Include ELF support.
2818 Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
2820 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
2821 there are any input sections named .gnu.warning, treat them as
2822 containing a warning message to be printed by the linker, and
2823 clobber the size so that the message is not copied into the output
2825 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
2828 Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
2830 * configure.in (w65-*-*): New target.
2831 * Makefile.in: Update.
2832 * scripttempl/w65.sc: New.
2833 * config/coff-w65.mt: New.
2835 Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
2837 * ldlang.c (lang_place_orphans): Don't ignore files with
2838 just_syms_flag set. Instead, put all their sections in
2839 bfd_abs_section_ptr, using the section VMA as the output_offset.
2841 Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2843 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
2844 name `reloc_howto_type', since it's now defined to be const.
2845 * ldlang.c (lang_add_reloc): Ditto.
2846 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
2848 Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
2850 * ldexp.c (fold_binary): Adding or subtracting an absolute value
2851 to a relative value does not require forcing the relative value to
2852 be absolute. Also, reindent function.
2854 Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2856 * ldwrite.c (clone_section): Create a symbol with the
2857 same name as the section.
2859 Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2861 * ld.h (split_by_reloc, split_by_file): New flags.
2862 * ldwrite.c (clone_section, split_sections): New functions.
2863 * lexsup.c (parse_args): Understand new split options.
2866 Tue Dec 13 16:45:18 1994 Doug Evans <dje@canuck.cygnus.com>
2868 * configure.in (arc-elf): New target.
2869 * Makefile.in (earcelf.c): New target.
2870 * config/arc-elf.mt: New file.
2871 * emulparms/arcelf.sh: New file.
2874 Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2876 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
2877 .data segment. They must be writable when creating a shared
2878 library. From H.J. Lu <hjl@nynexst.com>.
2880 Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
2882 * emultempl/miposecoff.em: New file.
2883 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
2884 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
2885 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
2886 provide __runtime_reloc_start and __runtime_reloc_stop if they are
2887 used. Align _fdata to a 16 byte boundary.
2888 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
2890 (emipsidtl.c): Likewise.
2891 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
2893 * ld.h (args_type): Add new field embedded_relocs.
2894 * ldemul.h (ldemul_after_open, after_open_default): Declare.
2895 (ld_emulation_xfer_struct): Add new field after_open.
2896 * ldemul.c (ldemul_after_open): New function.
2897 (after_open_default): New function.
2898 * ldlang.c (lang_process): Call ldemul_after_open.
2899 * lexsup.c (parse_args): Handle --embedded-relocs.
2900 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
2901 new after_open field to after_open_default.
2902 * emultempl/generic.em, emultempl/gld960.em: Likewise.
2903 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
2904 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
2905 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
2906 * ld.texinfo, ld.1: Mention -embedded-relocs.
2908 Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2910 * Makefile.in: Add eshl.o.
2911 * config/coff-sh.mt: Add shl emulation.
2913 Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2915 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
2916 Youngdale <eric@aib.com>.
2918 Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2920 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
2921 * config/i386linux.mh: New file; set HOSTING_CRT0.
2922 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
2923 /usr/lib, since that is already in LIB_PATH.
2925 Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
2927 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
2929 (.data, .bss): If "-N", then place the data/bss just after the end
2930 of the .text section rather than at the default 0x40000000.
2932 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
2935 Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2937 Patches from Eric Youngdale <eric@aib.com>:
2938 * ldlang.c (lang_finish): Don't warn if entry symbol not found
2939 when generating a shared library.
2940 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
2941 attempting to place an orphaned relocation section when generating
2942 a dynamically linked object.
2944 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
2947 Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2949 * ld.h (args_type): Add field export_dynamic.
2950 * lexsup.c (parse_args): Recognize --export-dynamic.
2951 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2952 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
2954 Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2956 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
2957 we allocate common symbols.
2959 Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
2961 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
2962 .rela.fini to the list of .rel* sections.
2964 Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2966 * ldlang.c (load_symbols): Add new argument place. Only accept
2967 linker scripts if place is not NULL. Put commands found in an
2968 assumed linker script into place.
2969 (lookup_name): Pass NULL as place argument to load_symbols.
2970 (open_input_bfds): In lang_input_statement_enum case, pass a place
2971 argument to load_symbols, and store any new statements after the
2974 Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2976 * ldver.c (ldversion): Bump to 2.5.3.
2978 Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2980 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
2982 Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2984 * Makefile.in (check): Add missing "else true" clause.
2986 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
2988 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
2989 entry point to "start". Align at end of each section to 0x200.
2990 Start .text section 0x1000 later. Add _etext, _edata, _end
2993 Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2995 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
2996 composed of different object file formats.
2997 (ldctor_build_sets): If the output format does not support the
2998 reloc, and we are not generating a relocateable link, try getting
2999 the reloc from the input format.
3001 Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
3003 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
3004 (em68knbsd.c): New target.
3006 * config/m68k-nbsd.mt: New file.
3007 * emulparams/m68knbsd.sh: New file.
3008 * configure.in (m68*-*-netbsd*): Use above configs.
3010 Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3012 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
3013 appropriately named static library, stop the search at that
3016 Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
3018 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
3019 and esparcnbsd.o; sorted entries.
3020 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
3022 * config/netbsd532.mt: Removed.
3023 * emulparams/netbsd532.sh: Removed.
3025 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
3026 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
3027 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
3028 sparc*-*-netbsd*): Use above configs.
3030 Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3032 * ldmain.c (multiple_common): One of the types may now be
3033 bfd_link_hash_indirect. The old BFD argument may be NULL.
3035 Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3037 * configure.in: Add * at the end of m68k-hp-hpux.
3039 Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3041 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
3044 Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
3046 * scripttempl/nw.sc: Gather constructors and destructors and
3047 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
3049 Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
3051 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
3052 (ei386nw.c, eppcnw.c): New targets.
3054 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
3055 scripttempl/nw.sc: New files, for i386 and powerpc netware.
3057 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
3058 instead of {i386,ppc}-elf.
3060 * configure.in (sparc*-*-netware): Removed. There is no such
3063 * ldint.texinfo: Move misplaced `@end iftex'.
3065 Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
3067 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
3068 .rela.dtors to the list of .rel* sections.
3070 Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3072 * ldver.c (ldversion): Update to version 2.5.
3073 * Version 2.5 released.
3075 * configure.in (all_targets): Handle i386-linux*.
3077 Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3079 * scripttempl/aout.sc: Set _etext and __etext to ., not
3080 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
3081 will not break any other system. From Eric Valette
3084 Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3086 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
3087 --verbose to get the old -V behaviour.
3088 * ld.1, ld.texinfo: Document this change.
3090 Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3092 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
3093 assertion, since it could fail with a user defined linker script.
3095 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
3096 name in the hash table during the first phase--the hash table does
3097 not even exist at that point, much less have the right value.
3099 * Makefile.in (CC): Define.
3100 (CXX): Move definition, change from g++ to gcc.
3101 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
3102 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
3103 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
3104 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
3105 (.cc.o): Comment out.
3107 (site.exp): Don't create testdir or set tmpdir.
3108 (check): Run checks even if not running native. Use CC_FOR_TARGET
3109 instead of RUNTEST_CC, and likewise for CXX.
3110 (cdtest targets): Comment out.
3111 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
3112 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
3113 * cdtest-main.cc, cdtest.exp: Remove.
3115 Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3117 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
3118 file naming problems.
3119 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
3120 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
3121 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
3122 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
3123 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
3124 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
3125 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
3127 * genscripts.sh: Always search /usr/local/TARGET/lib.
3129 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
3131 Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3133 * configure.in: Handle i386-bsdi* targets like i386-bsd.
3135 Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3137 * lexsup.c (parse_args): Add support for -a for HP/UX
3140 * lexsup.c (parse_args): -c takes an argument.
3142 Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3144 * ld.h (args_type): Add new field endian.
3145 * lexsup.c (parse_args): Handle -EB and -EL by setting
3146 command_line.endian.
3147 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
3148 * ldlang.c (lang_add_output_format): Add arguments big and little.
3149 If command_line.endian is set, use it to select big or little
3150 rather than the default. Changed all callers.
3151 * ldlang.h (lang_add_output_format): Update declaration.
3152 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
3153 LITTLE_OUTPUT_FORMAT.
3154 * emulparams/elf32mipl.sh: Likewise.
3155 * emulparams/mipsbig.sh: Likewise.
3156 * emulparams/mipsbsd.sh: Likewise.
3157 * emulparams/mipsidt.sh: Likewise.
3158 * emulparams/mipsidtl.sh: Likewise.
3159 * emulparams/mipslit.sh: Likewise.
3160 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
3161 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
3163 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
3164 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
3165 * scripttempl/mipsbsd.sc: Likewise.
3167 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
3168 depending upon ldgram.c, so that a parallel make does not try to
3171 * configure.in (mips*el-elf*): New target.
3172 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
3173 (eelf32mipl.c): New target.
3175 * config/mipsl-elf32.mt: New file.
3176 * emulparams/elf32mipl.sh: New file.
3178 Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3180 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
3183 Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3185 * ldmisc.c (vfinfo): Print BFD file name as well as file name
3186 returned by find_nearest_line, in case the file name is something
3187 unhelpful such as a .h file. Handle %u.
3189 Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3191 * ldlang.c (lang_do_assignments): Make sure output statement
3192 has an attached bfd_section before trying to dereference it.
3194 Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3196 * ld.h (ld_config_type): Add new field warn_once.
3197 * ldmain.c (undefined_symbol): Handle -warn-once.
3198 * lexsup.c (parse_args): Recognize -warn-once.
3199 * ld.texinfo (Options): Document -warn-once.
3202 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
3203 name. For %C, print the function name on a separate line, to keep
3204 the length of error messages under control.
3205 * ldmain.c (multiple_definition): Use %D for ``first defined
3207 (undefined_symbol): Use %D for ``more undefined references
3210 * ldmisc.c (multiple_warn): Remove; no longer used.
3211 * ldmisc.h (multiple_warn): Don't declare.
3213 Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3215 * ldlang.c (print_output_section_statement): Print all lines
3218 Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3220 * ldlang.c (load_symbols): Check for archive before object. Use
3221 bfd_check_format_matches, and, if ambiguous, print a list of
3222 matching formats. If file format is not recognized, treat file as
3224 * ldgram.y (yyerror): If assuming an object file is a script,
3225 mention that. Tweak the format of the error messages.
3226 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
3227 guess that this is not actually a script, and just report that the
3228 file format was not recognized.
3229 * ld.texinfo (Options): Admit that -( may be used more than once.
3230 Add note that unrecognized object files are now treated as linker
3233 * ldfile.c (ldfile_input_filename): Make const.
3234 (ldfile_assumed_script): New variable.
3235 (try_open): Change arguments types to const.
3236 (ldfile_find_command_file): Likewise.
3237 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
3238 * ldfile.h: Update declarations for ldfile.c changes.
3239 * ldlex.l: Include <ctype.h>.
3240 (file_name_stack): Change to be const char *.
3241 (lineno_stack): New static variable.
3242 (<<EOF>>): Set lineno as well as ldfile_input_filename.
3243 (lex_push_file): Make name argument const. Initialize
3245 (lex_redirect): Initialize lineno_stack entry.
3246 (lex_warn_invalid): Handle non printable characters nicely.
3247 * ldlex.h (lex_push_file): Declare second argument as const.
3249 * ldgram.y (ifile_p1): Recognize GROUP.
3250 * ldlex.l: Recognize GROUP.
3251 * ld.texinfo (Option Commands): Document GROUP.
3253 Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3255 * config/m68klynx.mh: New file.
3257 Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
3259 * emultempl/hppaelf.em: Add newlines to the error messages.
3261 Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3263 * config/i386lynx.mh: New file.
3264 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
3265 unless CONSTRUCTING.
3267 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3269 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
3270 (GENERATE_SHLIB_SCRIPT): Define as yes.
3271 (DYNAMIC_LINK): Define as false.
3272 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
3273 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
3274 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
3275 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
3278 Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3280 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
3282 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3284 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
3285 .got section is now explicitly handled in elf.sc.
3287 Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3289 * scripttempl/alpha.sc: Redo script to set . outside of sections
3290 and not bother to explicitly specify section addresses.
3291 Explicitly place .sdata section.
3293 Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3295 * scripttempl/m68kcoff.sc: Put .bss in data segment.
3297 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
3298 0, and to only be marked as NOLOAD if relocating.
3299 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
3300 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
3301 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
3302 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
3303 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
3304 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
3305 * scripttempl/sparclynx.sc: Likewise.
3307 Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
3309 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
3310 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
3313 Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
3315 * ld.h (args_type): Add field soname.
3316 * lexsup.c (parse_args): Handle -soname argument.
3317 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
3319 * ld.texinfo: Document -soname.
3321 Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3323 * ldlang.c (lang_check): Don't try to set the architecture if the
3324 input and output files are incompatible. Just warn.
3326 Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3328 * configure.in: Change i[34]86 to i[345]86.
3330 Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3332 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
3334 Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3336 Make the ELF linker handle orphaned sections reasonably. Also,
3337 define __start_SECNAME and __stop_SECNAME around sections whose
3338 names can be represented in C, for the benefit of symbol sets in
3340 * ldemul.h (ldemul_place_orphan): Declare.
3341 (ld_emulation_xfer_type): Add place_orphan field.
3342 * ldemul.c (ldemul_place_orphan): New function.
3343 * ldlang.h (wild_doit): Declare.
3344 * ldlang.c (wild_doit): Make nonstatic.
3345 (lang_place_orphans): Call ldemul_place_orphan.
3346 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
3347 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
3349 (gld${EMULATION_NAME}_place_orphan): New static function.
3350 (gld${EMULATION_NAME}_place_section): New static function.
3351 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
3353 Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
3355 * scripttempl/aout.sc: Add .linux-dynamic after .data.
3357 Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3359 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
3360 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
3362 Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3364 * ldexp.h (exp_get_abs_int): Declare.
3366 Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3368 * ldlang.c (lang_do_assignments): Handle complex AT's better.
3369 * ldexp.c (exp_get_abs_int): New function.
3371 Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
3373 * configure.in: add i960-nindy-coff support.
3375 Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3377 * ldlex.l (yy_create_string_buffer): Handle change to internal
3378 interface in flex 2.4.7.
3380 Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
3382 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
3383 New function; add 0x20 to any use of -Ttext.
3384 (gld${EMULATION_NAME}_create_output_section_statements): New
3386 (ld_${EMULATION_NAME}_emulation): Use the new function
3387 gld${EMULATION_NAME}_create_output_section_statements.
3389 Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3391 * scripttempl/mips.sc: Redo script to set . outside of sections
3392 and not bother to explicitly specify section addresses.
3394 Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3396 * scripttempl/elf.sc: Copy several more relocation sections into
3397 the output. Put .got.plt sections into .got.
3399 Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3401 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
3403 Add a new script operator, PROVIDE, to define a symbol only if it
3405 * ldgram.y (PROVIDE): New token.
3406 (assignment): Accept PROVIDE.
3407 * ldlex.l (PROVIDE): New token.
3408 * ldexp.h (node_type): Add etree_provide to node_class enum.
3409 (exp_provide): Declare.
3410 * ldexp.c (exp_fold_tree): Handle etree_provide.
3411 (exp_provide): New function.
3412 (exp_print_tree): Handle etree_provide.
3413 * ld.texinfo: Document PROVIDE.
3415 * ldlang.c (lang_common): Pass desired alignment to
3416 lang_one_common as power of two.
3417 (lang_one_common): Get common symbol alignment from linker hash
3418 table entry. Treat desired alignment as a power of two.
3420 * ldlang.c (wild_section): Attach all section with the given name,
3421 not just the first one. If there is no name, attach all sections
3422 even if the SEC_IS_COMMON flag is set.
3424 Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3426 * ld.h (args_type): Add field rpath.
3427 * lexsup.c (S_ISDIR): Define if not already defined.
3428 (parse_args): Add support for -rpath. If -R is used to name a
3429 directory, treat it as -rpath for Solaris compatibility.
3430 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3431 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
3432 * ldmain.c (main): Initialize command_line.rpath to NULL.
3433 * ld.texinfo: Document -rpath option.
3435 Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
3437 * emulparams/pc532machaout.sh: New file. Pc532 mach script
3440 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
3442 * config/pc532mach.mt: New file. Pc532 mach target support.
3444 * config/pc532mach.mh: New file. Pc532 mach host support.
3446 * config/netbsd532.mt: New file. Netbsd 532 target support.
3448 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
3450 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
3453 Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3455 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
3456 bfd_abs_section_ptr, not &bfd_abs_section.
3458 * lexsup.c (parse_args): Changed "retain-symbols-file" from
3459 no_argument to required_argument. From djm.
3461 Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3463 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
3464 sections to force a VMA of 0; needed for ELF backends which have
3465 not been converted to the new linker style.
3467 Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
3469 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
3470 it was for the HPUX dynamic loader's use and it creates problems
3473 Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
3475 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
3476 * ldlang.h (lang_do_assignments): Put external decl here.
3477 * emultempl/hppaelf.em: Minor cleanups throughout file.
3478 (hppa_elf_create_output_section_statements): Rewrite.
3479 (hppaelf_finish): Rewrite.
3481 Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3483 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
3485 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
3487 * ld.texinfo: -Bstatic is not ignored.
3489 Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
3491 * ldlex.l: Recognize \r the same as \n.
3493 Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3495 Preliminary support for generating shared libraries, from Eric
3496 Youngdale <ericy@cais.cais.com>.
3497 * genscripts.sh: If the emulation parameter file sets
3498 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
3499 CREATE_SHLIB defined.
3500 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
3501 link_info.shared is set, use the .xs script file.
3502 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
3503 .interp section, and don't include TEXT_START_ADDR in the starting
3504 address of the first section.
3505 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
3506 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
3508 Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3510 * configure.in: Change --with-targets to --enable-targets.
3512 Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3514 * lexsup.c (parse_args): Add support for new options -( -) with
3515 synonyms --start-group --end-group.
3516 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
3517 (lang_group_statement_type): Define new struct.
3518 (lang_statement_union_type): Add group_statement field.
3519 (lang_enter_group, lang_leave_group): Declare.
3520 * ldlang.c (lang_for_each_statement_worker): Handle
3521 lang_group_statement_enum.
3522 (map_input_to_output_sections, print_statement): Likewise.
3523 (lang_size_sections, lang_do_assignments): Likewise.
3524 (open_input_bfds): Completely rewrite. Now does its own looping,
3525 rather than using lang_for_each_statement. Handle groups.
3526 (lang_process): Update call to open_input_bfds.
3527 (print_group): New static function.
3528 (lang_enter_group, lang_leave_group): New static functions.
3529 * ldfile.c (ldfile_open_file): If the file has already been
3530 opened, just return rather than taking an assertion failure.
3531 * ldver.c (help): Mention new options.
3532 * ld.texinfo: Document new options.
3534 * ldlang.c (end_of_data_section_statement_list): Don't define.
3535 (lang_leave_output_section_statement): Don't set obsolete variable
3536 end_of_data_section_statement_list.
3538 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
3541 * ldlang.c (lang_size_sections): Adjust current region address
3542 even for sections with an explicit address. From
3543 ralphc@pyramid.com (Ralph Campbell).
3545 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
3546 From jrs@world.std.com (Rick Sladkey).
3548 * scripttempl/mipsbsd.sc: Let sections align to their natural
3551 Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3553 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
3555 (lang_abs_symbol_at_beginning_of): Likewise.
3556 (lang_abs_symbol_at_end_of): Likewise.
3557 (lang_size_sections): Use bfd_is_abs_section to check for the
3558 absolute section. Don't try to set the VMA or output_offset or
3559 size of the absolute section.
3560 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
3563 Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
3565 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
3566 when generating relocatable objects.
3568 Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
3570 * emultempl/linux.em: New file providing support for linking
3571 against Linux shared libraries.
3572 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
3573 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
3575 Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3577 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
3578 * ldmain.c (main): Initialize link_info.shared to false. Give
3579 error if link_info.relocateable and link_info.shared are both set.
3581 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
3582 it as naming an emulation to be added to EMULATION_OFILES.
3583 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
3585 * Makefile.in: Rebuilt dependencies.
3586 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
3587 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
3588 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
3589 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
3590 (ei386linux.c): Remove; now in Makefile.in.
3591 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
3592 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
3593 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
3594 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
3595 (eelf64_sparc.c): Remove; now in Makefile.in.
3596 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
3597 (eelf32_sparc.c): Remove; now in Makefile.in.
3599 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
3600 no owner--it might be bfd_abs_section. From Eric Youngdale
3601 <ericy@cais.cais.com>.
3603 * scripttempl/aout.sc: Let sections align to their natural
3606 Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3608 * ldemul.h (ldemul_open_dynamic_archive): Declare.
3609 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
3610 * ldemul.c: Include ldexp.h and ldlang.h.
3611 (ldemul_open_dynamic_archive): New function.
3612 * ldfile.h (ldfile_open_file_search): Declare.
3613 * ldfile.c: Include ldemul.h.
3614 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
3615 argument, not bfd *. Change all callers.
3616 (ldfile_open_file_search): Rename from open_a. Return boolean
3617 argument, not bfd *. Clean up. Change all callers.
3618 (ldfile_open_file): If doing a dynamic link, call
3619 ldemul_open_dynamic_archive rather than assuming the extension of
3620 a dynamic object is ".so".
3621 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
3623 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
3625 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
3627 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
3628 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
3629 Accept -static as a synonym for -non_shared.
3631 Let the user change the dynamic linker used by ELF code.
3632 * ld.h (args_type): Add new field interpreter.
3633 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
3635 * ldmain.c (main): Initialize command_line.interpreter to NULL.
3636 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
3637 the ELF backend to return the .interp section. If
3638 command_line.interpreter is not NULL, set the contents of .interp
3640 * ld.texinfo: Mention -dynamic-linker.
3642 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
3645 * lexsup.c (parse_args): Sort out the option macros and change the
3646 definitions to make it easier to add a new option.
3648 * scripttempl/aout.sc: Define __etext and __edata to go along with
3651 * ld.h (ld_config_type): Add new field traditional_format.
3652 * lexsup.c (parse_args): Add traditional-format to longopts, and
3654 * ldmain.c (main): Initialize config.traditional_format to false.
3655 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
3656 flags of output_bfd according to config.traditional_format.
3657 * ldver.c (help): Mention -traditional-format.
3658 * ld.texinfo: Document -traditional-format.
3660 Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3662 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
3663 they are encountered.
3665 Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
3667 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
3668 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
3670 Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3672 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
3673 _FTEXT, _ETEXT and _FDATA. Dont define _END.
3675 * ldfile.c (open_a): If this is not an archive, try to open it in
3676 the current directory before searching for it.
3678 * lexsup.c (parse_args): Treat -i as a synonym for -r.
3680 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
3681 BLOCK works in a section address as documented.
3683 * ldgram.y (YYDEBUG): Don't define.
3685 Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3687 * emultempl/gld960.em: Pass false for new argument to
3688 ldfile_add_library_path.
3689 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
3691 * emultempl/sunos.em: Only look for .so files if doing a dynamic
3694 Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
3696 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
3698 Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
3700 * Makefile.in (check): Delete ld.new dependency so that a regression
3701 test doesn't trigger a rebuild of the linker.
3703 Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3705 * ldlang.c (map_input_to_output_sections): For lang_address, call
3706 init_os if it hasn't already been called.
3708 Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3710 Add support for SunOS shared libraries.
3711 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
3712 shared library support code.
3713 * emultempl/sunos.em: New file.
3714 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
3715 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
3716 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
3717 (esun3.c): Likewise.
3719 * ldlang.c: Minor formatting cleanups.
3720 (lang_for_each_input_file): New function.
3721 * ldlang.h (lang_for_each_input_file): Declare.
3723 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
3725 (search_head): Declare.
3726 (ldfile_add_library_path): Add new cmdline argument in prototype.
3727 * ldfile.c (search_head): Make non-static.
3728 (search_dirs_type): Move to ldfile.h.
3729 (ldfile_add_library_path): Accept cmdline argument, and save it.
3730 * lexsup.c (parse_args): Pass true for new cmdline argument of
3731 ldfile_add_library_path.
3732 (set_default_dirlist): Likewise.
3733 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
3734 argument of ldfile_add_library_path.
3735 * ldgram.y (ifile_p1): Likewise.
3737 Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3739 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
3740 total_size, superfile and chain.
3741 * ldfile.c (open_a): Don't clear search_dirs_flag.
3742 (ldfile_open_file): Don't try to open superfile. Assert that file
3743 has not already been opened.
3744 * ldlang.c (new_afile): Don't initialize superfile.
3745 * ldmain.c (add_archive_element): Don't initialize subfiles or
3746 chain or superfile. Initialize search_dirs_flag to false.
3748 Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3750 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
3752 Changes from binutils-2.4 release:
3754 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
3755 variables, use whitespace, so scripts don't break.
3757 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
3759 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
3761 * cdtest-bar.cc: Renamed from cdtest-func.cc.
3762 * Makefile.in: Noted change.
3764 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
3765 don't know where that's supposed to come from, or why it's
3768 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
3770 * configure.bat: update to latest makefile.in
3771 * emulpara/go32.sh: set to coff-go32 not aout
3772 * emultemp/generic.em: strength-reduce the structure of
3773 this shell script, since the only available shell for
3774 DOS can't handle complex syntax.
3775 * emultemp/stringify.sed: for "sed -f" instead of inline.
3776 * makefile.in: depend on stringify.sed as well as genscripts.sh
3777 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
3778 * genscripts.sh: empty variables aren't always considered "set",
3779 so set them to "y" instead.
3781 Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3783 * ldlang.c (entry_symbol): Make static.
3784 (lang_add_entry): Add cmdline argument.
3785 * ldlang.h (lang_add_entry): Change prototype.
3786 * ldgram.y (statement_anywhere): Change lang_add_entry call.
3787 * lexsup.c (parse_args): Likewise.
3789 Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3791 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
3792 .reginfo an address.
3793 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
3794 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
3795 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
3797 Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3799 Add support for ELF shared libraries.
3800 * ld.h (ld_config_type): Add field dynamic_link.
3801 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
3802 on attempts to use -r with -relax, -call_shared or -s.
3803 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
3804 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
3805 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
3806 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
3807 OPTION_NON_SHARED by setting dynamic_link field accordingly.
3808 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
3810 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
3811 opening a file with a .so extension first.
3812 * emultempl/elf32.em: New file.
3813 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
3814 (NONPAGED_TEXT_START_ADDR): Likewise.
3815 (TEMPLATE_NAME): Define as elf32.
3817 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
3818 * scripttempl/elf.sc: Add placement for new dynamic sections.
3819 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
3820 outside of any section. Don't use ALIGN(8); just let one section
3821 VMA follow another. Put .dynbss in .bss. Don't mention debugging
3822 sections; they'll be handled correctly anyhow.
3823 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
3825 Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
3827 * Makefile.in (install): Redirect output of ln to /dev/null.
3829 Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
3831 * emultempl/hppaelf.em: Change all references of
3832 .hppa_linker_stubs to .PARISC.stubs.
3833 * scripttempl/hppaelf.sc: Likewise.
3835 Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3837 * ldlang.c (print_output_section_statement): Change ``no attached
3838 output section'' message slightly.
3839 (lang_do_assignments): Don't recurse down if there is no real
3842 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
3843 match corresponding change in emulation templates.
3844 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
3845 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
3847 Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3849 * ldver.c (ldversion): Updated version number.
3851 * cdtest-foo.cc: Use explicit "#pragma implementation".
3852 * cdtest-bar.cc: Renamed from cdtest-func.cc.
3853 * Makefile.in: References to cdtest-func.o changed to
3856 Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3858 Don't create unnecessary output sections.
3859 * ldlang.c (out_bfd_get_section_by_name): Remove.
3860 (wild_section): Call bfd_get_section_by_name rather than
3861 our_bfd_get_section_by_name. Don't call wild_doit if there is no
3863 (lang_create_output_section_statements): Remove.
3864 (map_input_to_output_sections): For several cases, call init_os if
3865 it has not already been called.
3866 (lang_size_sections): If output section was not created, skip it.
3867 (lang_process): Don't call lan_create_output_section_statements.
3868 (lang_place_orphans): Skip files with just_syms_flags set to true.
3869 * ld.texinfo: Document change.
3871 Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3873 * ldlang.c (wild_doit): Don't bother initializing the vma and
3874 section size. Don't special case SEC_SHARED_LIBRARY.
3875 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
3878 Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
3880 * config/go32.mh : New file for Xgo32X.
3882 Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3884 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
3885 before calling einfo, since we are reporting an fopen failure.
3886 From jrs@world.std.com (Rick Sladkey).
3888 * configure.in: Use "e" rather than "em_" as prefix for
3891 Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
3893 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
3895 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
3896 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
3898 * Makefile.in: Changed all generated file names.
3899 (ldemul-list.h): Depend on Makefile, not config.status. Changed
3900 sed patterns to handle new filenames.
3902 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
3903 * configure.in: Adjusted.
3905 Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3907 * Makefile.in (install-info): Don't use "$<*", it doesn't always
3908 work. Instead, check build dir and $srcdir explicitly, and use
3909 `echo' to get all the filenames.
3911 * configure.in (h8300h-*-hms): Changed ld_target name to
3913 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
3916 * config/i960coff.mt: New file.
3917 * emulparams/gld960coff.sh: New file.
3918 * emultempl/gld960c.em: New file.
3919 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
3920 i960coff configuration.
3921 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
3923 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
3924 code isn't included in FSF releases, and it can still be
3925 explicitly selected.
3926 (distclean): Remove site.bak and tmpdir.
3927 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
3928 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
3930 Patches from Ralph Campbell:
3931 * config/mipsbsd.mh: New file.
3932 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
3933 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
3934 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
3937 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
3939 Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3941 * config/m68k.mt (EMUL): Set to m68kaout.
3942 * emulparams/m68kaout.sh: New file.
3943 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
3944 (em_m68kaout.c): New target.
3946 * ldlang.c (lang_size_sections): If dot moves because of an
3947 assignment, don't try to insert a pad into the absolute output
3948 section, just change the address of the default memory region
3951 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
3952 cdtest-ur.out, and cdtest-ur.tmp.
3954 Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3956 * scripttempl/sa29200.sc: Align all sections to four byte
3959 Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
3961 * Makefile.in, configure.in: Support for go32 coff.
3962 * config/i386-go32.mt: New file
3963 * emulparams/i386go32.sh: New file
3964 * scripttempl/i386go32.sc: New file
3966 Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
3968 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
3969 Lynx-specific script templates.
3970 * configure.in (sparclite*-*-coff): Use coff-sparc.
3971 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
3972 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
3973 (ENTRY): Set to __main.
3974 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
3975 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
3976 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
3978 Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3980 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
3981 byte boundary, in case the global constructors do not take up an
3984 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
3985 exist, get crtbegin based on gcc -print-libgcc-file-name.
3986 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
3988 Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3990 * ldlang.c (lang_size_sections): When no address is given for a
3991 section, align it according to its requirements.
3993 Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3995 * Makefile.in (clean, distclean): Remove configdoc.texi.
3997 Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
3999 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
4001 Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4003 * ldlang.c (lang_size_sections): When relaxing, adjust the
4004 position of a padding statement, and adjust dot accordingly.
4006 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
4008 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
4010 Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4012 * scripttempl/i386coff.sc: If relocating, don't put .init and
4013 .fini sections into .text; keep them separate.
4014 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
4015 exist, get crtbegin based on gcc -print-libgcc-file-name.
4016 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
4018 Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
4020 * Makefile.in (check): Set TCL_LIBRARY for runtest.
4022 Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4024 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
4027 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
4028 if building a final executable.
4030 Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4032 * ldmain.c (main): Check the return value of bfd_close.
4034 Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4036 * scripttempl/alpha.sc: Clean up section alignment to ensure that
4037 sections never overlap when using -r.
4039 Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4041 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
4042 changes: get_symtab_upper_bound renamed and returns long,
4043 bfd_canonicalize_symtab returns long, check for error indications.
4045 Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4047 * ldlang.c (print_input_section): For section size, use
4048 _cooked_size if it is non-zero, size otherwise.
4049 (size_input_section): Likewise.
4050 (lang_do_assignments): Likewise (case lang_input_section_enum).
4052 Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4054 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
4055 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
4056 (lang_add_input_file): Pass true to new_afile for add_to_list.
4057 (lookup_name): Remove force_load argument. Changed all callers.
4058 Pass false to new_afile for add_to_list. Split loading of symbols
4059 out into separate function.
4060 (load_symbols): New function split out of lookup_name. Don't load
4061 the symbols if they are already loaded.
4062 (open_input_bfds): For lang_input_statement_enum call load_symbols
4063 rather than lookup_name.
4064 (lang_process): Pass abs_output_section rather than NULL to
4066 (lang_startup): Set real field of first_file to true.
4068 Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4070 * ldlang.c (had_relax): Removed.
4071 (relax_again): New static variable.
4072 (lang_size_sections): Change call to bfd_relax_section to
4073 correspond to BFD changes. Set relax_again appropriately.
4074 (lang_process): Remove #if 0 code. When relaxing, keep calling
4075 lang_do_assignments and lang_size_sections until relax_again
4078 * emultemp/gld960.em: Include libiberty.h
4079 (gld960_before_parse): Pass NULL as final argument to concat.
4081 Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4083 * scripttempl/aout.sc: Force _end and __end to be aligned to a
4086 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
4087 building a bfd_data_link_order, rather than by setting the section
4088 contents immediately.
4090 Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4092 Changes to make -Ur work again.
4093 * ldmain.c (add_to_set): Now takes reloc argument rather than
4094 bitsize. Check config.build_constructors here. If an new hash
4095 table entry is created, mark it as undefined.
4096 (constructor_callback): No longer takes bitsize argument. Pass
4097 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
4098 BFD backend supports it.
4099 (reloc_overflow): Handle a NULL abfd argument.
4100 (reloc_dangerous, unattached_reloc): Likewise.
4101 * ldctor.c: Include ldmain.h.
4102 (struct set_info): Change bitsize field to reloc.
4103 (ldctor_add_set_entry): Now takes reloc argument rather than
4104 bitsize. Don't bother to check config.build_constructors here.
4105 (ldctor_build_sets): Get the size from the reloc howto. If
4106 generating relocateable output, call lang_add_reloc rather than
4108 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
4110 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
4111 (lang_reloc_statement_type): New structure.
4112 (lang_statement_union_type): Add reloc_statement field.
4113 (lang_add_reloc): Declare new function.
4114 * ldlang.c (lang_for_each_statement_worker): Handle
4115 lang_reloc_statement_enum.
4116 (map_input_to_output_sections, print_statement): Likewise.
4117 (lang_size_sections, lang_do_assignments): Likewise.
4118 (print_reloc_statement): New function.
4119 (lang_add_reloc): New function.
4120 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
4122 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
4123 (cdtest-ur, cdtest-ur.out): New targets.
4124 (check-cdtest): Now also check that -Ur works correctly.
4126 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
4128 Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4130 * ldlang.c (lang_process): Move lang_common call before
4131 map_input_to_output_sections, to ensure that any alignment
4132 constraints set by common symbols are copied over to the output
4135 Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4137 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
4138 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
4139 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
4140 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
4143 Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4145 * config/i386bsd.mh: New file.
4147 Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4149 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
4151 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
4152 (DATA_START_SYMBOLS): Define _fdata.
4154 Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
4156 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
4158 Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4160 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
4161 works again. Attach some output symbols to the stub file bfd.
4163 * emultempl/hppaelf.em: Include elf32-hppa.h.
4164 (file_chain): Add decl.
4165 (hppa_look_for_stubs_in_section): Delete decl.
4166 (hppaelf_finish): Reenable code. Do not pass symbols
4167 down to hppa_look_for_stubs_in_section.
4169 Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
4171 * ldmain.c (write_map): Don't define. Removed all references.
4172 Just use map_file or map_filename instead.
4173 (add_archive_element): Use minfo to write map information, not
4175 (constructor_callback): Use fprintf to write map information, not
4177 * ldmain.h (write_map): Don't declare.
4178 * ldgram.y (mri_script_command): Removed reference to write_map.
4179 * ldlang.c (lang_one_common): Likewise.
4180 * lexsup.c (parse_args): Likewise.
4182 Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
4184 * scripttempl/elf.sc: Force all sections to be aligned.
4186 * ldgram.y (section): Reverse the order of memspec_opt and
4187 fill_opt to avoid an ambiguity when both are used.
4188 * ld.texinfo: Changed accordingly.
4190 * ldgram.y: Move include of ldlex.h back with other includes.
4191 * ldlex.h (input_type): Don't initialize enum constants to
4193 * ldlex.l: Use a switch to return the right token based on
4194 input_type, rather than knowing that input_type has a value based
4197 * ldgram.y (dirlist_ptr): Removed; not used.
4198 * lexsup.c: Include ldver.h.
4199 * Makefile.in: Rebuilt dependencies.
4201 Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
4203 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
4204 (ldlang_add_file): call it here instead.
4206 Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4208 * ldgram.y: Include ldlex.h after %token decls, for byacc.
4210 Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4212 * emultempl/hppaelf.em: First attempt to clean this file up.
4213 Add comments in several functions as to their purpose and
4214 how they function (or my current best guess). Clean up horrible
4215 spacing and indention that never should have been accepted in the
4216 first place. Add FIXMEs for issues which need to be resolved.
4217 Disable linker-stub generation until it gets fixed. This allows
4218 the linker to at least work on simple code for testing purposes.
4220 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
4221 it via hppaelf_finish). Prototype moved into ldlang.h.
4222 (lang_process): Move problematic extra call to lang_size_sections
4223 into the PA ELF specific code.
4224 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
4225 lang_size_sections moved here.
4227 Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
4229 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
4230 * config/ppc-elf32.mt: New file.
4231 * emulparams/elf32ppc.sh: New file.
4232 * emultempl/ppc.em: New file.
4233 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
4234 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
4235 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
4237 Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4239 * lexsup.c (parse_args): Use symbolic numbers for long options.
4240 Fix misunderstanding in -Y and -call_shared et al.
4242 Use getopt instead of lex and yacc to parse the command line.
4244 * ld.texinfo (Options): Document changes to option syntax.
4245 * Makefile.in: Update dependencies.
4246 * ldver.c (help): Tweak dashes in usage message.
4247 * ldgram.y (%union): Remove unused members.
4248 Remove %tokens for command line options; add ones for input types.
4249 (command_line): Rules removed.
4250 (file): Instead of command line, recognize an
4251 input type indicator, then use the nonterminal for that type.
4252 (defsym_expr): New nonterminal from code formerly in command_line.
4253 * ldlex.h: Declare parser input type enum and variable.
4254 Don't declare parse_line.
4255 * ldlex.l: Remove unused variables. Make some used ones static
4257 (COMMAND): Start state and its rules removed.
4258 At start of yylex, return input state token if at start of input.
4259 (lex_redirect): Don't need to set yyout.
4260 (ldlex_command): Function removed.
4261 * ldmain.c (main): Instead of calling parse_line, set up the
4262 redirections and call yyparse directly.
4263 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
4265 * lexsup.c: Remove #if 0'd code.
4266 (parse_line): Function removed.
4267 (parse_args): Rewrite to use getopt_long_only.
4268 (set_default_dirlist): New function from code formerly in
4269 ldgram.y:command_line.
4270 (set_section_start): New function.
4271 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
4272 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
4273 compiled-in link scripts in "{" and "}", as the grammar no longer
4276 Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
4278 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
4279 require that it be in $(srcdir).
4281 Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
4283 * ldlang.c (lang_size_sections): Only align section to alignment
4284 required by linker script, not to maximum alignment of input
4287 * ldlang.h (largest_section): Don't declare.
4288 * ldlang.c (largest_section): Don't define.
4289 (size_input_section): Don't set largest_section; not used.
4291 Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
4293 * ldlang.c (new_afile): Pass NULL as last argument to concat.
4295 Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4297 * ldlang.c, ldmain.c: Include libiberty.h.
4299 * ldmisc.h (concat): Don't declare.
4300 * ldmisc.c (concat): Don't define; just use the one in libiberty.
4302 * ld.h (as_output_section_statement): Removed; not used.
4304 Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4306 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
4307 bfd_set_error and new error names.
4309 Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4311 * ldwrite.c (build_link_order): If the cooked size of the section
4312 has been set, use it, for determining link_order size.
4313 (ldwrite): In the error message displayed if bfd_final_link fails,
4314 indicate that it was in fact the final link step that failed.
4316 * ldlang.c (lang_size_sections): Clear bfd_error before calling
4317 bfd_relax_section, in case it returns false but doesn't flag an
4318 error. If an error is returned, indicate which one it is in the
4321 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
4322 it'll get picked up from $(srcdir) if appropriate.
4324 Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4326 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
4327 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
4329 Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4331 * ldlex.l (comment): Increment line number when newline is read.
4333 Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4335 * ldlang.c (lookup_name): Take new argument, force_load. If true,
4336 reload the file even if it is already loaded.
4337 (wild): Call lookup_name with force_load argument of 0.
4338 (open_input_bfds): Call lookup_name with force_load argument of 1.
4339 (print_symbol): Remove declaration of non-existent function.
4340 (print_one_symbol): Return true rather than falling off end.
4342 Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4344 * ldmain.c (main): Use %ld when printing long values.
4346 * scripttempl/elf.sc: Move _edata after the .sdata section.
4347 Permit OTHER_BSS_SYMBOLS to be defined.
4348 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
4350 Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4352 * Rename all "hppaosf" files to "hppaelf".
4353 * Change all "osf" references to "elf" in hppaelf files.
4354 * Makefile.in: Likewise.
4355 * configure.in: Likewise.
4357 Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4359 * ldmain.c (main): Call xatexit, not atexit.
4360 Call xmalloc_set_program_name.
4362 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
4365 Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4367 * emultempl/lnk960.em (append), emultempl/hppaosf.em
4368 (hppaosf_finish): Call xmalloc, not ldmalloc.
4369 * ldmain.c (preserve_output): Function removed.
4370 (main): Do it here instead.
4372 Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4374 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
4375 GNU C specific macros.
4377 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
4378 call to LANG_FOR_EACH_INPUT_SECTION.
4380 Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4382 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
4383 deleted; will use libiberty versions instead.
4384 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
4385 mri.c Makefile.in: Change callers.
4387 * ldmisc.c (vfinfo): Remove cleanup code.
4388 * ldmain.c (remove_output): Put it here (new function).
4389 (preserve_output): New function.
4390 (main): Register remove_output and preserve_output with atexit.
4391 * ldmain.c ldgram.y: Call xexit instead of exit.
4392 * ldmisc.h: Declare xexit.
4394 Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
4396 * Makefile.in: Lots of new H8/500 memory models.
4398 Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4400 * ldlex.l: Removed duplicate rules.
4401 (yywrap): Provide default definition, needed with some versions of
4404 Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4406 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
4407 the archive filename too.
4409 * ldlex.l: Add rule to catch invalid input characters instead of
4410 printing them. Include "ldmain.h" for program_name decl.
4411 (lex_warn_invalid): New function.
4412 * Makefile.in: Add dependency.
4414 Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4416 * Makefile.in (check): Don't bother running any tests of
4417 cross-linker until the test suite no longer assumes native mode.
4419 Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4421 * ldlang.c (print_one_symbol, print_input_section): Print
4422 global symbols in symbol table again.
4424 Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4426 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
4427 exit successfully instead of complaining if no input files are
4430 Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
4432 * Makefile.in: Format variable definitions consistently.
4433 (LD_PROG): Remove unnecessary variables from link command,
4434 change variable LOADLIBES to EXTRALIBS.
4436 * ldmain.c (main): Compute and display total execution time.
4437 * ld.texinfo (-stats): Document the option.
4439 Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4441 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
4444 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
4447 * ldlang.c (relaxing): Removed global variable.
4448 (lang_size_sections): If the canonical symbols have not already
4449 been read in, read them in before relaxing.
4450 * ldlang.h (relaxing): Removed declaration.
4452 Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4454 * ldlang.c (new_afile): Initialize loaded field to false.
4455 (lookup_name): If file was already loaded, don't call the
4456 add_symbols entry point again.
4458 Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4460 * ld.texinfo: Clarify what -T option does.
4462 Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4464 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
4467 Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4469 * ldmain.c (add_archive_element): If trace_files or
4470 trace_file_tries, print file name.
4471 * ldlang.c (lookup_name): Likewise.
4472 (ldlang_add_file): Don't put files on input_bfds list in reverse
4475 * scripttempl/elf.sc: Correct typo.
4477 Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4479 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
4480 their arguments optional, for compatibility with the old GNU ld.
4482 Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4484 * scripttempl/elf.c: Define __bss_start before the .sbss section.
4486 Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4488 * ldmain.c (add_to_set): Add bitsize argument.
4489 (constructor_callback): New function.
4490 (link_callbacks): Add constructor_callback.
4491 * ldctor.c (struct set_info): Add bitsize field.
4492 (ldctor_add_set_entry): Add bitsize argument.
4493 (ldctor_build_sets): Base the size of the elements of the set on
4494 the bitsize, rather than always using LONG.
4495 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
4497 * ld.h (QUAD_SIZE): Define.
4498 * ldgram.y (QUAD): New token.
4499 (length): Handle it.
4500 * ldlex.l: Return QUAD.
4501 * lexsup.c (keywords): Add QUAD.
4502 * ldwrite.c (build_link_order): Handle QUAD.
4503 * ldlang.c (print_data_statement): Handle QUAD.
4504 (lang_size_sections): Likewise.
4505 (lang_do_assignments): Likewise.
4506 * ldexp.c (exp_print_token): Add QUAD to table.
4507 * ld.texinfo: Describe QUAD.
4509 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
4510 since the Alpha doesn't use them.
4512 Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4514 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
4516 Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
4518 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
4519 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
4521 Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4523 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
4524 needed for i386mach. (Should be a no-op on other systems.)
4526 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
4527 (PAGE_SIZE): Don't define; not used.
4529 Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4531 * ldgram.y (yyerror): Make argument const char *, and actually
4532 print it out rather than assuming it is a syntax error.
4533 * ldmisc.h: Change declaration of yyerror.
4534 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
4536 Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4538 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
4539 exec header offset, since the exec header isn't loaded.
4540 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
4542 Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4544 A major rewrite to move the bulk of the linker into BFD so that
4545 more efficient backend code can be written for specific object
4547 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
4548 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
4549 * ldctor.c, ldctor.h: Complete rewrite.
4550 * ldwrite.c, ldwrite.h: Complete rewrite.
4551 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
4552 link_info.strip instead. Changed all uses.
4553 (discard_locals_type, discard_locals): Removed. Use
4554 link_info.discard instead. Changed all uses.
4555 (ld_config_type): Removed relocateable_output field; use
4556 link_info.relocateable instead; changed all uses. Added stats
4558 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
4559 set_loader_symbol): Removed.
4560 * ldexp.h (node_class): Added etree_rel.
4561 (etree_type): Added rel field.
4562 * ldexp.c (exp_print_token): Bracketed table initialization.
4563 (exp_relop): New function.
4564 (fold_name): Use linker hash table rather than ldsym functions.
4565 (exp_fold_tree): Likewise. Also, handle etree_rel case.
4566 (exp_print_tree): Handle etree_rel.
4567 * ldgram.y (strip_symbols, discard_locals): Removed.
4568 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
4569 (REL): New token. Does not appear in grammar, but needed for
4571 (file): Don't call lang_final; it's called by main anyhow.
4572 * ldlex.l: Accept -stats and -no-keep-memory options.
4573 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
4574 * ldlang.c: Consistently use fill_type for fill argument.
4575 (lang_init_script_file, script_file): Removed.
4576 (create_object_symbols): Removed. Use
4577 link_info.create_object_symbols_section instead. Changed all
4579 (lang_add_keepsyms_file): Removed.
4580 (lookup_name): Call bfd_link_add_symbols instead of
4581 ldmain_open_file_read_symbol.
4582 (wild): Don't iterate over script_file.
4583 (open_output): Create link hash table.
4584 (lang_place_undefineds): Rewrote.
4585 (lang_size_sections): Handle relaxing (doesn't work yet).
4586 (lang_relocate_globals): Removed.
4587 (lang_finish): Use link hash table rather than ldsym functions.
4588 (lang_common): Rewrote.
4589 (lang_one_common): New function.
4590 (ldlang_add_file): Add file to link_info.input_bfds list. Set
4592 (create_symbol): Removed.
4593 (lang_process): Don't call lang_init_script_file. Call
4594 ldctor_build_sets rather than find_constructors. Don't call
4595 lang_relocate_globals.
4596 (lang_abs_symbol_at_beginning_of): Rewrote.
4597 (lang_abs_symbol_at_end_of): Rewrote.
4598 * ldmain.c (had_y): Removed.
4599 (lprefix, lprefix_len): Removed; use link_info fields instead.
4601 (multiple_def_count, commons_pending, undefined_global_sym_count,
4602 total_symbols_seen, total_files_seen): Removed.
4603 (link_callbacks, link_info): New variables.
4604 (main): Initialize link_info. Don't call init_bfd_error_vector or
4605 ldsym_init. Don't set now unused variables. Handle -stats.
4606 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
4607 (add_ysym): Rewrote.
4608 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
4609 search_library, gnu960_check_format, decode_library_subfile,
4610 linear_library, symdef_library, clear_syms, subfile_wanted_p):
4612 (add_keepsyms_file, add_archive_element, multiple_definition,
4613 multiple_common, add_to_set, warning_callback, undefined_symbol,
4614 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
4616 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
4617 require symbols for %C; look them up instead.
4618 * emultempl/hppaosf.em: Pass link_info to
4619 hppa_look_for_stubs_in_section.
4620 * Makefile.in: Rebuilt dependencies.
4621 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
4623 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
4625 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
4626 ldlang.h and ldctor.h.
4628 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
4629 declarations of free and malloc from flex output. Change malloc
4630 to ldmalloc in flex output.
4632 Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4634 * ldmain.c (lprefix): Change default from a char to a string
4635 with only one character.
4636 (lprefix_len): Set default to one.
4638 * ldmain.h (lprefix_len): Declare.
4640 * ldsym.c (write_file_locals): Use strncmp rather than a character
4641 comparison for lprefix.
4643 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
4646 * emultmpl/hppaosf.em: Include ldexp.h.
4647 (before_parse): Set lprefix and lprefix_len correctly.
4649 Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4651 * ldlex.h: Don't declare yywrap if it is a macro.
4652 * ldlex.l: Include sysdep.h.
4653 * ldlang.c (lang_for_each_statement_worker,
4654 lang_for_each_statement): Forgot to use PARAMS.
4656 Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4658 * Makefile.in: Added .PHONY targets where appropriate. Added some
4660 (gcclibdir, version): Removed unused variables.
4661 (DEP): New variable, set to mkdep.
4662 (ALL_CFLAGS): New variable. Used in .c.o target.
4663 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
4665 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
4666 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
4667 mostly obsolete variables. Adjusted remaining uses.
4668 (DEF_EMUL): Removed variable.
4669 (ldmain.o): Handle undefined EMUL error correctly.
4670 (ldemul-list.h): Depend on config.status rather than Makefile.
4671 Create via temporary file.
4672 (ver960.c, roll, make): Removed obsolete targets.
4673 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
4675 * dep-in.sed: New file, used when rebuilding dependencies.
4677 Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
4679 Made many changes to eliminate gcc warnings. Made various
4680 cosmetic changes, declared various things in header files, removed
4681 various extern declarations from .c files. No substantive
4684 * ldlang.c (lang_process): Ifdef out final call to
4685 lang_size_sections again (reverting change of Nove 2), since it
4686 breaks the Sun4 linker.
4688 Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4690 * configure.in (alpha-*-netware*): New target; use alpha.
4692 Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
4694 * configure.in: Group targets by CPU. Merge some m68k target
4695 entries with different CPU specs that use the same ld_target
4698 * configure.in: Add sparc*-*-coff.
4699 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
4700 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
4701 (em_coff_sparc.c): Add dependencies and build rules.
4703 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
4705 Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4707 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
4709 (command_line_option): Accept and ignore them (for now).
4710 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
4711 where n is a number.
4713 Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4715 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
4716 not in bfd_com_section, create the section in the BFD so that it
4717 can be placed in the right output section.
4719 Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4721 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
4722 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
4723 (OTHER_READONLY_SECTIONS): Define for .reginfo.
4724 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
4725 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
4726 Move OTHER_READONLY_SECTIONS after all the other readonly
4727 sections. Don't use DATA_ADDR twice.
4729 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
4730 p is in a common section, make sure the BFD has a section of that
4733 * ldlang.c (lang_common): Add newline to error message.
4735 Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
4737 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
4738 Lynx-specific script instead of m68kcoff.
4739 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
4740 (ENTRY): Define as __main.
4741 (TEXT_START_ADDR): Define as 0.
4742 (PAGE_SIZE): Define as 0x1000.
4743 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
4744 * scripttempl/m68klynx.sc: New file.
4746 Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4748 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
4749 arguments rather than treating them as emulation names.
4751 Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
4753 * configure.in: Support x86 unixware and netware plus generic netware.
4755 Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4757 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
4760 Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
4762 * Makefile.in (distclean): Don't delete dvi or info files.
4763 (ld.info): Update dependency list.
4764 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
4766 Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4768 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
4769 Set output_filename instead of creating a new node.
4770 (open_output): Don't set output_filename.
4771 (lang_final): Create the new node here.
4772 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
4774 Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4776 From Pete Hoogenboom (hoogen@cs.utah.edu):
4778 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
4779 edata, _edata, end): Add definitions of these symbols.
4780 (__end): Remove definition of this symbol.
4781 (__data_start): Move definition of this symbol.
4783 * emultempl/hppaosf.em: Various fixes and support for linker stub
4785 (hppaosf_finish, hppaosf_search_for_padding_statements,
4786 hppaosf_create_output_section_statements): New functions in
4787 support of linker stub generation.
4788 (ld_hppaosf_emulation): Redefine to include new
4789 emulation-specific routines.
4791 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
4792 Pass abs_output_section rather than NULL to avoid invalidating
4795 Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4797 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
4798 (em_i386mach.c): New rule.
4799 * configure.in (i[34]86-*-mach*): New case.
4800 * config/i386-mach.mt: New file.
4801 * emulparams/i386mach.sh: New file.
4803 Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4805 * ld.h (flag_is_*): Removed macros.
4806 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
4807 Consistently check the BFD symbol flags directly, rather than
4808 using file_is_* macros.
4810 Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
4812 * configure.in (sparc*-*-lynxos*): New target.
4813 * Makefile.in: Add rule for em_sparclynx.c.
4814 (ALL_EMULATIONS): Add Lynx emulations.
4815 * config/sparc-lynx.mt: New file.
4816 * emulparams/sparclynx.sh: New file.
4817 * scripttempl/sparccoff.sc: New file.
4819 Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4821 * Makefile.in: Add dependency for $(EMULATION_OFILES).
4823 Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4825 * relax.c (write_relax): Check return value of bfd_seclet_link.
4827 Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
4829 * ldlang.c (delete_output_file_on_failure): New variable.
4830 (open_output): Set it after bfd open succeeds.
4831 * ldmisc.c (vfinfo): Test it.
4833 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
4835 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
4838 * ldemul.c: Support was added to allow emulation-specific
4839 processing to occur. This support was added primarily for linker
4840 stub generation in the elf32-hppa gld.
4841 (ldemul_finish, ldemul_create_output_section_statements): New
4843 * ldemul.h: Support was added to allow emulation-specific
4844 processing to occur. (As described above.) Added finish and
4845 create_output_section_statements fields to
4846 ld_emulation_xfer_struct structure.
4847 * ldlang.c: Add calls to emulation-specific routines.
4848 (lang_process): Add call to
4849 ldemul_create_output_section_statements function.
4850 (lang_process): Add call to a emulation-specific routine (and
4851 some processing after the call).
4853 Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
4855 * configure.in: mips*- instead of mips-, mips*el changes
4857 Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4859 * configure.in (alpha-*-osf*): New target; use alpha.mt.
4860 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
4861 (em_alpha.c): New target; use alpha.sh and alpha.sc.
4862 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
4863 * config/alpha.mt: New file.
4864 * emulparams/alpha.sh: New file.
4865 * scripttempl/alpha.sc: New file.
4867 Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
4869 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
4870 types of different sizes (eg: 64 and 32 bits), so coerce.
4871 * ld.h (ALIGN_N): Add warning about usage.
4873 Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4875 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
4876 which we already have a definition, rather than checking in
4877 several different places whether the symbol is weak.
4879 Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4881 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
4882 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
4883 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
4884 expanded within them.
4885 * config/mipsb-elf32.mt: New file.
4886 * emulparams/elf32mipb.sh: New file.
4887 * Makefile.in (em_elf32mipb.c): New target.
4889 Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
4891 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
4892 lang_input_file_is_search_file_enum so objects brought in using
4893 INPUT() do a path lookup.
4895 Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
4897 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
4898 instead of {i386,m68k}-coff.
4899 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
4900 * config/i386-lynx.mt: New file.
4901 * config/m68k-lynx.mt: New file.
4902 * emulparams/i386lynx.sh: New file.
4903 * emulparams/m68klynx.sh: New file.
4905 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
4906 but defaulting to _start.
4908 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
4909 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
4912 Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
4914 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
4915 HOSTING_LIBS for testing.
4917 Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4919 Finish up support for i386-sysv4 (without shared libraries):
4920 * ld.h (flag_is_weak): Define.
4921 * ldlang.c (print_symbol): Mention whether symbol is weak.
4922 (print_input_section): Print weak symbols as globals.
4923 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
4924 (enter_global_ref): Do not warn if a weak symbol redefines a
4925 global symbol. Do not let a weak symbol redefine a common symbol.
4926 (enter_file_symbols): Treat weak symbols as global symbols.
4927 (subfile_wanted_p): Do not pull in an object file from a archive
4928 just to resolve an undefined weak symbol.
4929 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
4930 error; the error might be that malloc has run out of space.
4931 * ldsym.c (write_file_locals): Treat weak symbols as global.
4932 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
4934 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
4935 * config/i386-elf.mt: New file; set EMUL to elf_i386.
4936 * emulparams/elf_i386.sh: New file.
4937 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
4938 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
4939 (ALL_EMULATIONS): Add em_elf_i386.o.
4940 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
4941 (em_elf_i386.c): New target, like other em_*.c targets.
4942 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
4943 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
4944 nonempty, and configured for native, add it to LIB_PATH.
4946 Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
4948 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
4949 Added statements to pass stab and stabstr sections through and
4950 mark them as NOLOAD, which makes GDB happier.
4952 Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
4954 * configure.in: Accept m68k-lynx-lynxos config.
4956 * Makefile.in: Use $(SHELL) to run genscripts.sh.
4958 Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
4960 * config/coff-h8300.mt: Add EMUL=h8300h.
4962 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
4964 Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
4966 * Makefile.in: Changed CXX back to g++.
4968 Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
4970 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
4972 Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4974 * Makefile.in (TAGS): Use shell wildcards.
4976 Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
4978 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
4980 Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
4982 * ld.texinfo: re-enable included config file; conditionalize doc
4983 for -oformat to interact properly with SingleFormat doc config
4984 var; rename @up/@down to @raisesections/@lowersections.
4986 Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4988 * configure.in: recognize m88110.
4990 Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4992 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
4993 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
4994 ELF emulation is "elf32-hppa" not "elf-big".
4995 (hppaosf_before_parse): Remove unneeded processing of environment
4997 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
4998 .text segment of output file.
4999 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
5001 Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5003 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
5006 * ldlang.c, ld.h: updated copyright.
5008 Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5010 * ldlang.c (open_output, lang_check): Check return value of
5013 Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
5015 * scripttempl/h8500.sc: Start all sections in a different segment.
5016 * scripttempl/z8ksim.sc: Handle constructors
5018 Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
5020 * Makefile.in: revert earlier changes back to execute runtest
5021 with make check. cdtest and bootstrap now function as they
5022 did within the Makefile.
5024 Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5026 * Makefile.in: Update dependencies.
5028 * configure.in: Set EMULATION_OFILES in Makefile based on
5029 --with-targets option.
5031 Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
5033 * Makefile.in: check targets reimplemented to old way.
5035 Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
5037 * config/i386v.mh, config/irix4.mh: Use gcc
5038 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
5039 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
5040 bfd/configure.host change.
5042 Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5044 * scripttempl/elf.sc: Handle .line and .debug* sections.
5046 * ldlex.l: Use bfd_scan_vma, not strtoul.
5048 Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5050 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
5051 Remove inital caps in some error messages, change "can't" to
5052 "cannot", add missing colons.
5053 * ldmisc.c (vfinfo): Print "%%" as a single %.
5054 For '%' followed by unrecognized character, print them both
5055 verbatim instead of expecting a char * arg.
5056 For '%C', don't put the function name in parens.
5058 * ldexp.c (invalid): Pass "%%", not "% ".
5060 Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5062 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
5063 (BSS_VAR): Removed; now always define _fbss.
5064 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
5067 Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
5069 * configure.in: z8k-coff is the same as z8k-sim
5071 Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
5073 * testsuite/lib/ld.exp: new file
5074 * testsuite/config/unix-ld.exp: new file
5075 * testsuite/ld.bootstrap/bootstrap.exp: new file
5076 * Makefile.in: add dejagnu support for make check
5078 Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5080 * ldlex.l (comment): Add missing newline in message.
5081 * ldindr.c (add_indirect): Ditto.
5082 * ldexp.c (exp_fold_tree): Ditto.
5084 Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5086 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
5089 * ldmisc.c (multiple_warn): New function.
5090 * ldmisc.h: Declare it.
5091 * ldmain.c (enter_global_ref): Call it.
5092 * ld.h (ld_config_type): Add warn_common.
5093 * ldlex.l, ldgram.y: Set it with -warn-common option.
5094 * ldver.c (help): Document it.
5096 Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5098 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
5099 target-specific sections, and for changing data section vma.
5101 Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
5103 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
5104 terminals, for Solaris.
5105 (dirlist_ptr): New static variable.
5106 (command_line_option): Accept new options.
5108 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
5111 * config/sun4sol2.mt: Pass emulation name without ".sh".
5113 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
5114 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
5116 Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5118 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
5119 .dtors, .data1, .rodata1 sections, instead of combining them into
5120 other sections. For `-r', set all section start addresses to
5123 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
5124 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
5125 (MAXPAGESIZE): Renamed from PAGE_SIZE.
5127 Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5129 * genscripts.sh: If this is the default emulation, set
5131 * emultempl/*.em: Use it to determine whether to compile in the
5134 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
5135 genscripts.sh. Pass the current emulation name without ".sh" on
5137 * genscripts.sh: Take an default emulation arg.
5138 Use the current emulation name as EMULATION_NAME.
5139 Make default lib path for cross-compiling ':', not null.
5140 * emulparams/*.sh: Don't set EMULATION_NAME.
5141 * ldemul.c (ldemul_get_script): Take isfile arg.
5142 Pass it to emulation's get_script function.
5143 * ldemul.h: Adjust get_script prototypes.
5144 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
5146 * ldfile.h: Declare it.
5147 * ldgram.y: Accept a script on the command line again,
5148 for parsing compiled-in scripts.
5149 * ldmain.c (main): If ld script is a file, parse it as a -T
5150 option, otherwise parse it directly.
5151 * emultempl/*.em (*get_script): Return the scripts themselves if
5152 this is the default emulation; otherwise return their file names.
5153 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
5155 * emulparams/m88kbcs.sh: Use it.
5157 * ld.h (ld_config_type::unix_relocate): Remove unused element.
5159 Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5161 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
5162 there's no change log entry yet, tsk tsk) from the list of
5163 emulations compiled in until Mark gets around to checking in
5164 emulparams/i386linux.sh.
5165 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
5166 changed, this file gets updated.
5168 Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
5170 * ldgram.y (OPTION_Lfile): New token.
5171 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
5172 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
5174 Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
5176 * configure.in: h8/300h support needs own .mt file.
5177 config/coff-h8300h.mt: New file.
5179 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5181 * ldmain.c: Don't include sys/stat.h; it already got included
5182 somewhere along the way.
5184 Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
5186 * Makefile.in: Add h8300h support.
5187 emulparams/h8300h.sh: New file.
5188 scripttempl/h8300h.sc: New file.
5190 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5192 * ldfile.c (ldfile_open_file): In error message, use the name the
5193 user gave (e.g., "-lc"), rather than the base file name.
5195 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
5197 * ldmain.[ch]: Remove initial Q_ from function names.
5198 * ldexp.c, ldindr.c, ldlang.c: Change callers.
5200 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
5202 * ldlang.c (lang_process): Move loading of default script from
5203 here to main. Add a "/" to start of script name to prevent
5204 finding it in "." first.
5206 * ldmain.c (set_scripts_dir): Don't look in "." first.
5208 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
5211 Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
5213 * Makefile.in (em_m88kbcs.c): Correct dependency.
5214 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
5215 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
5216 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
5218 Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5220 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
5221 main.c (main): Print the errno string in the error message.
5223 Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
5225 * configure.in: Accept h8300h for target cpu.
5227 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
5228 present (demangle is smart enough to know whether to do it or not).
5230 Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5232 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
5233 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
5235 * ldlang.c (lang_process): Use sizeof instead of magic constant.
5237 * ldmain.c (get_emulation, check_for_scripts_dir,
5238 set_scripts_dir): New functions.
5241 Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
5243 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
5244 Create symbol "end" instead of "__end". Comment out some parts
5245 that may not be needed (yet) for elf.
5247 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
5249 Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5251 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
5253 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
5254 when no prototype is being supplied.
5255 (ldmalloc, ldrealloc): Size argument is now size_t.
5257 * ldmisc.c (finfo): New function, accepts FILE* argument.
5258 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
5259 without leading zeros.
5260 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
5261 bfd_vma value, instead of fprintf(%x) which won't hold a long long
5263 (concat, buystring): String lengths are size_t.
5264 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
5266 * ldlang.c (new_statement): Size argument is now size_t. Added
5267 forward declaration with prototype.
5269 Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5271 * ldgram.y (OPTION_v): Don't turn on verbose output.
5273 Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5275 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
5278 Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
5280 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
5281 collect2 doesn't look for gld any more anyhow.
5283 Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
5285 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
5286 now have a non NULL srefs_chain.
5288 * config/hp300hpux.mt: Use emulation hp3hpux rather than
5289 hp300hpux, since the latter does not exist.
5291 Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5293 * genscripts.sh: Put the scripts in the ldscripts directory, not
5295 * configure.in (ldscripts): Make, instead of emulations.
5296 * Makefile.in (scriptdir): Take off the "ld" part.
5297 (install, clean, distclean): Use ldscripts, not emulations.
5298 In tests, don't pass -Lemulations.
5299 Don't pass tooldir/lib to genscripts.sh.
5300 * genscripts.sh: Don't take tooldir/lib arg.
5301 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
5302 default script file.
5304 Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
5306 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
5308 Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
5310 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
5312 Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5314 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
5315 run in parallel without colliding on yacc's static file names.
5316 Without the stub rule, make will try to start two yacc's
5317 concurrently which fails because of yacc's static file names.
5319 Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
5321 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
5324 Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5326 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
5327 different from libdir.
5329 * Makefile.in (scriptdir): Base on tooldir, not datadir.
5331 Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5333 * ldver.c (help): New function.
5334 * ldver.h: Declare it.
5335 * ldlex.l, ldgram.y: Recognize new options --help and --version.
5337 Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
5339 * Makefile.in (INCLUDES): Don't need ../include any more.
5341 Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5343 * ldlex.l, ldgram.y: Support new -oformat option.
5344 Remove attempt at supporting script fragments on the command line.
5345 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
5346 * mri.c (mri_format), ldgram.y: Change callers.
5347 * ldlang.h: Change prototype.
5349 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
5351 * Makefile.in: canonicalize install.sh; for use within
5352 this directory (and subdirs)
5354 Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5356 * ldgram.y: Tweak grammar to make reporting of invalid options work.
5358 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
5361 Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5363 * ldfile.c (ldfile_open_command): Don't try .ld extension.
5364 It wasn't documented (or likely used) and wastes time.
5365 (try_open): If EXTEN is empty, don't try it.
5367 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
5368 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
5369 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
5370 with normal function declarations.
5372 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
5373 Move *.sc-sh to scripttempl/*.sc.
5374 * {emultempl,emulparams,scripttempl}/README: New files.
5375 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
5376 removed, replaced with generic.em.
5377 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
5378 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
5380 * *.em (*_get_script): Return script name instead of script contents.
5381 * ldlang.c (lang_process): Change caller.
5383 * ldlex.l, ldgram.y: Recognize -m option.
5384 Check for input files after *all* options in grammar.
5385 * ldmain.c (main): Check for -m options. Add default directory
5388 * mkscript.c: File removed.
5389 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
5390 to add to the default LIB_PATH.
5391 Look for input files in the new subdirectories.
5392 Create the scripts in emulations subdirectory and don't filter
5393 them through mkscript.
5394 * configure.in: Make the emulations subdirectory.
5396 * Makefile.in: Account for all of the above changes.
5397 Remove unused .SUFFIXES. Get libgcc.a path with gcc
5398 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
5399 Put CFLAGS last in the compilation rules.
5400 Add -I../bfd to INCLUDES so sysdep.h is found.
5402 Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5404 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
5406 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
5407 dependent on RELOCATING, not RELOCATION.
5408 * hp3hpux.sh (SHLIB_PATH): Define it.
5410 Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5412 * ldfile.c (try_open): If opening without the extension fails,
5413 try with the extension even if -v or -V was given.
5414 had_script is imported (from ldgram.y), not exported.
5416 Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
5418 * Makefile.in: remove parentdir support, use INSTALL_XFORM
5420 Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
5422 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
5423 * ldgram.y (statement_list_opt): New nonterminal, either empty or
5425 (section): Use statement_list_opt, not statement_list.
5426 * m68kcoff.sc-sh: Gather constructors and destructors and define
5427 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
5428 * sa29200.sc-sh: Gather constructors and destructors and define
5429 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
5431 Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
5433 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
5434 * configure.in: No longer need to configure to get sysdep.h.
5436 Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5438 * Makefile.in: remove install:all and install-info:info
5439 dependencies (these cause some spurious rebuilds at 'make install'
5442 Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
5444 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
5445 (mips-idt-ecoff*): Added trailing '*'.
5446 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
5447 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
5448 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
5450 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
5451 incorrect definitions.
5453 Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
5455 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
5456 symbols, unless stripping.
5458 Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
5460 * Makefile.in: configure looks for ####, so remove lines with many
5462 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
5463 and HOSTING_LIBS correctly so that ``make check'' will work.
5465 Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
5467 * mips.sc-sh: Define _etext, _edata, and _end, in addition
5468 to etext, edata, and end. Needed for IRIX 4.0.5F.
5469 Patch from mwp@iconix.oz.au (Michael Paddon).
5471 * Version 2.2.1 released.
5473 Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5475 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
5476 * mipsbsd.sh (EMULATION_NAME): Use new file name.
5478 Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5480 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
5483 * Version 2.2 released.
5485 Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
5487 * ldver.c (ldversion): Bump version number to 2.2.
5489 Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
5493 Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
5495 * mips.sc-sh: Don't define BSS_VAR unless relocating.
5497 Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
5499 * Makefile.in (mkscript.o, mkscript): Build mkscript via
5500 mkscript.o, rather than directly from mkscript.c.
5502 Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5504 * configure.in: Look for ${target_makefile_frag} relative to
5505 ${srcdir}, not relative to build directory.
5507 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
5508 * configure.in: Recognize hppa*-hp-osf.
5509 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
5510 (em_hppaosf.c): Build it.
5511 * config/hppaosf.mh, hppaosf.mt: New files.
5513 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
5514 some system header files. All uses changed.
5516 * configure.in: Recognize i386-aix configurations as i386-coff
5519 * configure.in: Recognize m68*-*-hpux.
5520 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
5521 the value of STACKZERO.
5522 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
5523 (em_hp3hpux.c): Build it.
5524 * hp3hpux.sh, config/hp300hpux.mt: New files.
5526 Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
5528 * mips.sc-sh: Put constructors in the .data section.
5529 * Makefile.in (cdtest): Added dependency on ld.new.
5531 Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
5533 * Makefile.in: Change definition of $(tooldir) to match FSF.
5534 * vax.sh, config/vax.mt, configure.in, Makefile.in:
5535 Support VAX Ultrix and BSD.
5537 Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5539 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
5541 Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
5543 * ldlang.h (struct memory_region): Change `length' and
5544 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
5545 * ldlang.c, mri.c: Corresponding changes, plus lint.
5547 Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
5549 * configure.in: For all i386 targets, accept i486 as well.
5551 Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
5553 * ldlang.c (wild_doit): Preserve all flags for a
5554 SEC_SHARED_LIBRARY section.
5555 (size_input_section): Consider any SEC_HAS_CONTENTS section when
5556 computing largest_section.
5558 Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
5560 * ldlang.c (lang_output_section_statement_lookup): Initialize all
5561 fields of newly created structure.
5563 Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
5565 * ldmain.c (g_switch_value): New variable.
5566 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
5567 (command_line_option): Accept -G and set g_switch_value.
5568 * ldlex.l (COMMAND): Accept -G.
5569 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
5571 Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5573 Support for linking and loading at different places:
5575 * ldlex.l: Add "AT" keyword.
5576 * ldgram.y: Cleanup, and parse AT.
5577 * ldlang.c (print_output_section_statement): Print output address
5578 of section in map. (lang_size_sections): Fill sections' lma with
5580 * ldlang.h (lang_output_section_statement_type): Add load_base
5583 * ldindr.c (add_indirect): Keep more information in the alias
5585 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
5586 attribute from an input section.
5587 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
5588 default. (Q_enter_file_symbos): Indirect symbols now are known by
5589 their section, not a special symbol flag.
5590 * ldsym.c (write_file_locals): Indirect symbols aren't local.
5591 (write_file_globals): Write the mapping for an indirect symbol.
5592 * relax.c (build_it): When forced to write a NEVER_LOAD section,
5595 Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
5597 * ld.texinfo: changes for q1
5599 Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5601 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
5603 Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5605 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
5607 Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
5609 * mips.sc-sh: Added variables which may be overridden by a
5611 * mipsidt.sh: New file; emulation for IDT MIPS board.
5612 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
5613 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
5614 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
5615 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
5617 Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5619 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
5621 * i386bsd.sh, config/i386bsd.mt: New files.
5622 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
5624 Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
5626 * mri.c: Add extern declaration of strdup.
5627 * ldsym.c (KEEP macro): Add spaces around '=' for the
5628 sake of old (e.g. PCC) compilers.
5630 Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
5632 * ldver.c: Bump to version 2.1.
5634 Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5636 * ldgram.y: allow section types without address expressions.
5637 * ldlang.c (lang_relocate_globals): avoid possible hang with
5638 undefined but unreferenced symbols.
5639 * relax.c (relax_section): don't complain if the script file isn't
5640 relaxable but -relax is set
5642 Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5644 * configure.in: go32 is the 3rd part of the triple, not the 2nd
5646 Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
5648 * mipsbig.sh: New file. Big endian MIPS emulation.
5649 * config/mips-big.mt: New file. Use mipsbig emulation.
5650 * configure.in (mips-sgi-irix*): Use target mips-big.
5651 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
5652 (em_mipsbig.c): New target. Uses mipsbig.sh.
5654 Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
5656 * mips.sc-sh: Put .scommon sections into .sbss section.
5658 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
5659 rather than always putting them in bfd_com_section.
5660 * ldlang.c (lang_common): If a common symbol is not in
5661 bfd_com_section, put in a section of the same name, rather than
5662 always putting it in section COMMON.
5664 Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
5666 * ldmain.c (subfile_wanted_p): If we already have a common
5667 definition of a symbol, don't necessarily pull in an object file
5668 that provides a non-common definition.
5670 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
5671 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
5673 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
5674 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
5676 Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
5678 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
5681 Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
5683 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
5684 checking for equality to bfd_com_section.
5686 Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
5688 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
5689 targets, linker script.
5690 * mipslit.sh: New file. Little endian MIPS emulation.
5691 * config/mips-lit.mt: New file. Use mipslit emulation.
5692 * configure.in (mips-dec-ultrix*): Use target mips-lit.
5693 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
5694 (em_mipslit.c): New target. Uses mipslit.sh.
5696 Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
5698 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
5699 $(tooldir)/bin/gld, so that gcc can find it with or without
5702 Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5704 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
5705 write_norel. All linking is now done via write_relax. Call
5706 ldsym_write before calling write_relax.
5707 * relax.c: Added copyright.
5708 (write_relax): Renamed from write_relaxnorel. Added relocateable
5709 argument. seclet_dump renamed to bfd_seclet_link.
5710 * relax.h: Added copyright.
5712 Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5714 * ldmain.c (decode_library_subfile): Patch from
5715 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
5717 Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5719 * config/vxworks960.mt renamed to config/i960.mt
5721 * configure.in: sparc-aout emulates a sun4, as does
5722 sparc*-vxworks, i960-nindy uses gld960 emulation
5724 Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5726 Fix support for NOLOAD, add INCLUDE
5727 * ldfile.c (ldfile_open_command_file): pass file name to
5729 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
5730 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
5733 Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5735 * Makefile.in, config.h: no more default emulation. Make the lack
5736 of emulation a compile time error
5738 Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5740 * configure.in: recognise all sparclite variants, not just 'sparclite'
5742 Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
5744 * m68kcoff.sc-sh: define _end as well as end, for consistency with
5747 * configure.in: accept *-ericsson-ose for any m68k CPU.
5749 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
5750 for each output section.
5752 Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
5754 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
5755 macro bfd_asymbol_bfd as appropriate.
5756 * Makefile.in: Un-duplicate ldlex.c dependency.
5757 * condigure.in: Replace my_host case table by sourcing
5758 ../bfd/configure.host. Allow std-host as the default.
5759 * ldmisc.c: Change logic for C++ name demangling: There is
5760 no initial '_' to remove from stab-derived function names.
5762 Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5764 * ldlang.c (lang_init_script_file): don't attach the output file
5765 sections to the script file.
5767 Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5768 * ldlang.c (wild): run expansion loop over command line bfd too.
5769 (lang_ini_script_file): initialize more parts of the command line
5771 * ldlex.l: fix DEFINED start states.
5773 Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5775 * ld.texinfo: new doc.
5776 * ldgram.y, ldlex.l: understand -y<symbol>
5777 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
5778 print info. (add_ysym): new function.
5779 * ldsym.h: (ldsym_type): new define SYM_Y.
5781 Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
5783 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
5784 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
5785 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
5786 macros with PARAMS. Recreational cleanup. Update copyrights.
5788 Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5790 * Makefile.in: pass down the bfd source directory for includes
5792 Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
5794 * ldlang.c (lang_size_sections): don't change size and address for
5795 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
5798 Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5800 * relax.c (build_it): re-enable the processing of data_statements
5801 in scripts, makes counted contructor lists work again.
5803 Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
5805 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
5807 Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
5809 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
5812 Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
5814 * Support for i386-sysv.
5815 configure.in: check for i386-*-sysv* and i386-*-sco*.
5816 i386coff.sc-sh: rewrote to support SVR3 by default.
5817 ldctor.c (find_constructors): preserve stat_ptr.
5818 ldlang.c (wild_doit): initialize vma and size of new output
5819 section to corresponding input section. This is required for
5820 shared library support.
5821 (lang_size_sections): don't modify vma and size of sections which
5822 are never loaded (for shared libraries).
5823 ldwrite.c (copy_and_relocate): copy the contents of any section
5824 which has contents, not just sections which are loaded (for shared
5827 Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5829 * ldlang.c (size_input_section): count the sizes of all sections
5832 Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5834 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
5835 to demangle symbols better
5837 Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
5839 * ldlang.c (lang_finish): don't warn if -e start symbol does not
5840 exist when linking with -r.
5842 Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
5844 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
5847 Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5849 * ldmain.c (linear_library): don't even think about processing
5850 an object file if it's already been done
5852 Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5854 * configure.in: the hp9000/300 config file is now hp300
5856 Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5858 * config/z8ksim.mt: new file
5860 Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
5862 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
5863 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
5865 * ld.h (strip_symbols_type): Add value STRIP_SOME.
5866 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
5867 * ldlang.c (lang_add_keepsyms_file): New function.
5868 * ldlex.l: Handle "-retain-symbols-file".
5869 * ldsym.c (keepsyms_file, kept_syms): New vars.
5870 (process_keepsyms): New functihon; reads file, marks symbols for
5872 (write_file_locals): File symbols should always be kept.
5873 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
5874 and "-s". Process retain-symbols file before setting symtab.
5875 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
5876 (keepsyms_file, kept_syms): Declare them.
5878 * ldmain.c (main): Non-fatal errors should still cause non-zero
5879 exit status even with -r.
5881 Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5883 Added initial support for the z8k
5884 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
5885 * configure.in, Makefile.in: modified to reflect above
5887 * ldlang.c (lang_check): when linking conflicting architectures,
5888 make the output file reflect at least one of the bad inputs.
5890 Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
5892 * Makefile.in (install): if $(tooldir) exists, install ld in
5895 Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5897 * Makefile.in, configure.in: modified to support i386-coff
5898 * i386coff.sh: new file
5900 Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
5902 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
5903 added m68k-coff emulation mode, stolen from a29k emulation.
5904 Almost certainly wrong, but perhaps better than sun3.
5906 Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
5908 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
5909 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
5910 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
5911 This is one character shorter, and lets people build on
5912 SVR3 system. (ld__h8300xray.[co] was the killer there;
5913 h8300xray.sc-sh is also overlong, but seems harmless.)
5914 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
5915 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
5916 * configure.in: Add host isc.
5918 * ldver.c: Call it version 2.0.
5920 Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
5922 * ldver.c: Bump to version 0.98.
5925 * Makefile.in: Added mostlyclean, distclean, realclean rules.
5927 Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
5929 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
5930 * ldlex.l: Moved comment() to end, since some compilers
5931 otherwise have problems with input() used before it is defined.
5933 Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5935 * configure.in: added Solaris 2 and Irix 4 host support.
5937 Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5939 * Makefile.in: remove -S flag from the FLEX definition
5941 * configure.in: rewrote, using new style case statement. use
5942 m68k.mt for m68k-aout systems
5944 Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
5946 * Makefile.in: map "ld" through program_transform_name when
5949 Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
5951 * cplus-dem.c: Removed. Use the version in libiberty now.
5952 * ldmisc.c: Use new libiberty version of cplus_demangle().
5954 Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
5956 * gld960.em (gld960_choose_target): default to little endian, not
5959 Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5961 * ldlang.c (lang_process): don't pass null pointers when
5962 abs_output_section is what is required.
5963 * ldwrite.c (ldwrite): use malloc to allocate the largest space
5964 used, and pass that down.
5965 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
5968 Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
5970 * configure.in, config/ose68.mt: renamed OSE to ose.
5972 Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
5974 * ldsym.c (write_file_locals): Reorder check for common or
5975 undefined symbols so that it works.
5977 Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
5979 * configure.in: accept all m68K family members.
5981 * Makefile.in: always create installation directories.
5983 Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5985 * ldlex.l: now parses comment correctly, added ~ to acceptable
5988 * ldexp.c (exp_unop): pass down abs_output_section - now can have
5989 unary -ve constants.
5991 * ldlang.c (lang_finish): warn when an entry symbol supplied on
5992 the command line can't be found.
5994 Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5996 * ldlang.h: add new field "loadable" to output_section_statement.
5997 * ldlang.c (lang_output_section_statement_lookup): initilize new
5998 field. (wild_doit): if new field is not set, then stop output
5999 section from being loadable.
6000 (lang_enter_output_section_statement): set the field from the
6002 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
6003 * h8300hms.sc-sh, h8300hms.em: get -r right.
6005 Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
6007 * ldint.texinfo: New internals manual (beginnings thereof).
6008 * PORTING: Removed, merged into ldint.texinfo.
6010 Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
6012 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
6013 cdtest.exp: A test program (copied from libg++/test-install)
6014 that tests that constructor and destructors are handled
6017 Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6019 * Makefile.in (install): install from ld.new, renaming during the
6020 copy, or else the next 'make install' needs to re-link ld.
6022 Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
6024 * configure.in: generalise hp recognition (from sef).
6026 Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6028 * configure.in: recognize bsd and hpux hppa configurations.
6029 error messages echo to stderr, not stdout
6031 Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6033 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
6034 ldmisc.c: removed rcsid's.
6036 Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6038 * ldlang.c (lang_map): print changes in sizes due to relaxing
6039 (size_input_section): maintain the delta information.
6040 * ldlang.h: add new field to struct to contain delta info.
6041 * relax.c (relax_section): complain if input not relaxable.
6042 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
6045 Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6047 * ldmain.c(main): prevent -r and -relax from being on at the same
6050 Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6052 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
6056 Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6058 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
6060 * ldlang.c(open_output): set the target arch and machine as soon
6061 as we can. (lang_size_sections): use new macros for setting vma
6064 Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
6066 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
6067 Also deleted an unreachable path to wrs.
6069 Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
6071 * Makefile.in (install): use -d test for $tooldir before
6072 installing ld there so that $tooldir can be inherited from
6075 Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
6077 * ldlang.c: Two non-substantial changes for the sake of
6078 the old Portable C Compiler.
6080 Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6082 * ldgram.y, ldlex.l: parse ABSOLUTE
6083 * ldexp.c: add support for ABSOLUTE
6085 Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
6087 * Makefile.in: Added default definitions for HOSTING_CRT0,
6088 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
6089 * config/*.mh: Miscellaneous clean-up: Removed definitions
6090 of YACC (since it is not longer used in the Makefile).
6091 Remove HOSTING_* definitions that are subsumed by the
6092 ones added to Makefile.in. Removed most definitions of CC.
6093 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
6094 These are no longer needed.
6096 Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
6098 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
6099 rules, since these are used when building a distribution.
6100 * Makefile.in (ldlex.c): Don't re-direct output, since that
6101 leaves a bogus output files if it fails.
6103 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
6104 * ldlex.c: Fix some unnecessary flex-specific-isms.
6106 Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6108 * ldgram.y: move spurious semicolon
6109 * ldexp.h: fix prototype
6111 Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
6113 * ld.texinfo: references to linker now say "ld" not "gld".
6115 Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6117 changed calling convention for Q_enter_global_ref
6118 * ldexp.c, ldlang.c, ldmain.c: reflect this
6119 * ldver.c: bump version to 1.97.1
6120 * ldindr.c (add_indirect): when an edict declaring an indirect
6121 symbol is found, make sure that any ideas about the symbol being
6122 common are changed if it now known to be defined.
6123 * ldmain.c (linear_library): complain once if archive isn't
6125 * ldlang.h, ldlang.c: make room for and initialize the complain
6128 Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6130 * Makefile.in: use flex & bison from ../ if they exist.
6132 Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6134 * relax.c (build_it): don't allocate space in the output file for
6135 stuff if -R flag applys to it.
6136 * ldfile.c: merge in VMS filename support
6137 * ldmain.c (main): take out ./ from library path, and close file
6138 before unlinking. Make multiple defs of a symbol create an
6140 * ldmisc.c: fatal errosrs delete output file
6142 Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
6144 * ldver.c: Increase version number to 1.97, for consistency
6147 Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
6149 * Makefile.in: FLEX -> LEX.
6151 * ld.texinfo: {} -> @{@}.
6153 Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
6155 * ld.texinfo: describe alternate, MRI-compatible linker scripts
6156 (and associated change in -c option, now used for these scripts)
6158 Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6160 * ldver.c: Bumped version to 1.96 - new release, resync with the
6162 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
6163 rather than with raw malloc, makes it easier to track where memory
6165 * ldsym.h, ldsym.c: create obstack for all global symbols too.
6166 * ldwrite.c (ldwrite): moved malloc so only used when needed.
6167 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
6170 Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
6172 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
6174 * Makefile.in: use bootstrap for check.
6176 Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6178 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
6180 * Makefile.in: now use flex, not lex
6181 * ldlex.l, ldlang.c, ldctor.c: lint
6183 Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6185 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
6186 different sorts of filenames on the command line than in a script.
6188 Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6190 * Makefile.in: rework CFLAGS so that they can be passed on the
6191 make command line. Remove MINUS_G. Default CFLAGS to -g.
6193 Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6195 * relax.c: added handling for new "padding" seclet type, used to
6196 fill out gaps between section.
6197 * ldgram.y, ldlex.l: now -defsym on the command line is done
6200 Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6202 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
6204 Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6206 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
6209 Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
6211 * Makefile.in (install): Install second copy in $(tooldir)/bin
6212 without $(program_prefix), since that's what gcc expects.
6214 Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6216 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
6217 * h8300*: fix bit rot and add support for h8300xray target
6218 * go32.sh: target emulation for go32.
6220 Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
6222 * gld960.em, i960.sc-sh. Fix i960 bit rot
6224 Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
6226 * Makefile.in: install man page.
6228 Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6230 * config/mt-<foo> renamed to <foo>.mt
6231 * config/mh-<foo> renamed to <foo>.mt
6232 * configure.in changed to reflect this
6233 * genscripts.sh now make .xbn files rather than .xN files
6235 Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
6237 * ldver.h: fix decl of ldversion.
6239 Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
6241 * Makefile.in: added check target.
6243 Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6245 * ldmain.c (Q_enter_file_symbols): now aliases work again
6247 Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
6249 * Makefile.in: added clean-info target.
6251 Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6253 * ldexp.c (exp_print_tree): don't try and follow null pointers
6255 * ldgram.y: remove 11 shift reduce errors
6257 Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6259 * Makefile.in: added tooldir and program_prefix.
6261 Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
6263 * ldlang.c (size_input_section): don't move absolute sections
6267 Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
6269 * cplus-dem.c: yet another copy of this - maybe it should go into
6271 * ldgram.y: now -V and -v have different actions
6272 * ldver.c: if -V, prints list of emulations compiled in
6273 * ldmisc.c: support for cplus demangling
6276 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
6278 * Makefile.in, configure.in: removed traces of namesubdir,
6279 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
6280 copyrights to '92, changed some from Cygnus to FSF.
6282 Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
6284 * Makefile.in: Change mkscript rule into one for ./mkscript
6285 (for the sake of makes that don't realize they're the same).
6286 * PORTING: Add more details.
6287 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
6289 Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
6291 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
6292 config/mt-hp300bsd: New port to hp300 running BSD.
6294 Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
6296 Major rewrite of how ld is configured. The major idea
6297 is to use shell scripts to generate everything.
6298 * generic.em replaces ldtemplate.
6299 * Other *.em files replace various *.c files.
6300 A *.em file is a shell script that generates the corresponding
6301 ld__*.c file that implements an emulation. This is usually
6302 a straight 'cat' of a here-document, possibly with substitutions.
6303 * Script files (*.sc) are places by *.sc-sh scripts.
6304 Again, these are simple shell scripts that 'cat'
6305 here-documents, usually with some substitutions.
6306 The output a *.sc-sh is a script file.
6307 * Each emulation is defined by a short shell script with
6308 extension *.sh that specifies the emulation-specific
6309 parameters (such as the name of the *.sh-sc and *.em
6311 * genscript.sh is the master shell script used to generate
6312 an emulation. It is passed various argument, including
6313 the name a the emulation-speciic *.sh file that it
6314 "sources" to set variables to emulation-specifc parameters.
6315 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
6316 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
6317 * config/mh-foo: Rename LDEMULATION names as appropriate
6318 (usually 'gldfoo' -> plain 'foo').
6319 * ldwrite.c: Fixed a typo in a comment.
6320 * Makefile.in: Major changes. Removed some the sed
6321 magic to converts scripts, since that is now handled
6322 by genscripts.sh and the *.sc-sh scipt generators.
6323 * config.h: Remove a bunch of macros defining emulations
6324 and targets. This becomes one less file to edit when
6325 adding emulations or targets.
6326 * ldemul.h (struct ld_emulation_xfer_struct): Add
6327 emulation_name and target_name fields.
6328 * ldemul.c, ldemul.h: Define some default functions used
6329 by most emulations (and remove from the *.em scripts).
6330 * ldemul.c (ldemul_choose_target): Search the new
6331 ld_emulations array using a loop (instead of a hardwired
6332 nested if statement).
6333 Define the ld_emulation from the automatically-geenrated
6334 ldemul-list.h. This means you no longer have to edit ldemul.c
6335 to add a new emulation.
6336 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
6337 their expansions, since the former no longer exist.
6338 * PORTING: A very rough first draft of a porting guide.
6340 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
6341 to be terminated by a new-line (instead of requiring a semicolon).
6343 Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6345 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
6346 tests for NULL pointers all over the place.
6347 * ldlang.c (lang_process): remember to relocate global symbols
6348 *after* relaxing has done it stuff.
6350 Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6352 * config/mt-coff-h8300: use EMUL like everything else
6353 * ldlang.c: (print_padding_statement): print the right address.
6354 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
6357 Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6359 * ldlex.l: Put pack -noinhibit-exec and -sort-common
6360 * ldlang.c (print_data_statement): print the right address.
6362 Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
6364 * Makefile.in: The rule for testing ld by re-linking itself
6365 via an intermediate -r link was moved to the ld1 rule
6366 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
6367 which allows the bootstrap rule to work.
6368 * ldctor.c (find_constructors): Don't create a constructor
6369 list if it is already defined (as would happen if ld is
6370 invoked by collect).
6372 Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6374 * config/mh-sparc.h: now uses libgcc.a
6375 * ldmain.c: quit using exit
6376 * *sc: use *(COMMON) rather than [COMMON]
6377 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
6378 to allow preprocessing of .l file.
6379 * Makefile.in: New ldlex.l mangling
6380 * ldexp.c (fold_binary): perform expressions with % and / in
6382 * ldfile.c (open_a): open archives on VMS in a special way
6385 Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6387 * ldgram.y: map -M behave in the same way as -Map (sets file name
6389 * ldsym.c, ldlang.c: remember that size of a section is dependent on
6390 whether or not relaxing has been done.
6391 * ldmain.c: don't open a map file if it doesn't have a name
6392 * relax.c: all the brains have moved into bfd.
6393 * ldwrite.c: ammend comment
6395 Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
6397 * Makefile.in: added relax, also made three stage go through a
6400 * config.h: if GNU960 defined, then default emulation mode is
6402 * ldexp.h, ldexp.c: map to file hooks
6403 * ldlang.c: map to file hooks
6404 * ldgram.y: added -Map -relax
6405 * ldlex.l: added -relax, -Map
6406 * ldmain.c: open map file
6407 * ldmisc.c: support for map file
6408 * ldwrite.c: new relax magic
6410 Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
6412 * Makefile.in, config/tm-*.h: Clean up make output, only
6413 pass DEFAULT_EMULATION to ldmain.c.
6415 Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
6417 * ldver.c: Bump to version 1.94.
6419 Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
6421 * Makefile.in: infodir belongs in datadir.
6423 Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
6425 * Makefile.in: Pass -y to bison. (Again;
6426 accidentally deleted by Rich.)
6427 * news.sc, ldgld68k.sc: Define __end as well as _end.
6429 Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
6431 * ldindr.h: added to contain prototypes of ldindr.c
6432 * ldfile.c: include ctype.h
6433 * ldmain.c: include the requried prototype headers
6434 * ldwrite.c: get_reloc_upper_bound has been renamed
6435 bfd_get_reloc_upper_bound
6437 Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
6439 * Makefile.in: punt "fundamental" mode because it breaks my emacs
6440 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
6441 spaces following hyphens, bsd make can't cope. added
6442 standards.text support and made it look like all the other
6445 * configure.in: configure now runs entirely in objdir so make file
6446 existence checks against ${srcdir}. Mark this directory as
6449 Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
6451 * Makefile.in: idestdir and ddestdir go away. Added copyrights
6452 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
6453 and mandir now keyed off datadir by default.
6455 Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
6457 * ldver.c: Bumped version to 1.93.
6458 * Makefile.in: Pass -y to bison.
6460 Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
6462 * config.h: h8 is now coff, not ieee
6463 * h8300hds.sc: reflect the same
6465 Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
6467 * ldver.c (ldversion()): Update to 1.92.
6468 * ldctor.c: There are two places constructor sets
6469 can be defined. One of them checked for an existing
6470 duplicate, the other didn't. Unfortunately, the latter
6471 was called after the former ...
6472 So, factor out code for inserting a new element into
6473 constructor_name_list (after checking for a duplicate)
6474 into a new function add_constructor_name, and call
6475 it from both aforementioned places (ldlang_add_constructor
6476 and ldlang_check_for_constructors).
6478 Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
6480 * Makefile.in: Rename .c files generated from ldtemplate
6481 to have names starting with ld__. This helps 'make clean'.
6483 Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
6485 * Makefile.in: Take out the version number for install
6486 * m88kbcs.sc: put in contructor blocks.
6488 Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
6490 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
6491 parameter, a format, and an arg pointer, and rename it to
6492 vfinfo(). Write info() in terms of new vfinfo().
6493 New einfo() is the same as info(), except it writes to stderr.
6494 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
6495 ldmisc.c: Replace "error" calls to info() by new einfo().
6497 Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
6499 * ldlex.l ldgram.y: made -V option do same as -v
6500 * Makefile.in: Added $(MINUS_G) flag so debugging can be
6503 Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
6504 i386 aout changes from Bob Kukura
6505 * Makefile.in, config.h: added i386aout support
6506 * configure.in: fixed /h-{myhost} typo
6507 * ldgram.y: -MM now gives more boring map.
6508 * ldlang.c: now does D_PAGED flag the right way.
6509 * ldsym.c: -MM flags does the right thing.
6511 Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
6513 * configure.in: Fixed typo. Also, a fix for hp300bsd.
6514 * ldlang.c (init_os): Compensate for BFD change,
6515 where bfd_make_section now returns NULL for a duplicate
6516 section request, instead of the old section.
6518 Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
6520 * ldver.c: Bump to version 1.91 (consistent with binutils).
6522 Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
6524 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
6525 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
6526 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
6527 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
6528 Add or update copyright notices.
6530 Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
6533 * Makefile.in: Changed installation directory name scheme
6534 to be consistent with gcc. Also changed 'install'.
6536 Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
6538 * Makefile.in: new targets ld.mm, ld.me
6540 Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
6542 * Makefile.in, ldtemplate: Need to use separate scripts
6543 for -n and -N options. Yet more complication.
6545 Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
6547 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
6548 work). Add some lines to avoid Sun Make VPATH bugs.
6550 Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
6552 * news.sc: Add alignment for data segment.
6553 * ldtemplate: Add (yet another) script to get for -n or -N
6554 options. (These need different alignment than ZMAGIC files.)
6555 * Makefile.in: Add stuff for new foo.xn scripts.
6556 These are generated by replacing "ALIGN(0x...00)" by ".".
6558 Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
6560 * Makefile.in: new targets ld.ms, ld-index.ms
6561 ld.texinfo: remove tabs, other cleanups for texi2roff
6563 Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
6565 * ldmain.c (main): Make config.magic_demand_paged be true
6566 by default. Don't the WP_TEXT and D_PAGED flags of
6567 output_bfd here; it's too late, so set it when output_bfd
6568 is created (in ldlang.c). Also fix setting of EXEC_P flag
6569 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
6570 * ldlang.c: Remove some duplicate extern declarations.
6571 * ldgram.y: Fixes to -N and -n options.
6572 * Makefile.in: Recognize upper case letters in sed script
6573 to remove assignments from script files.
6574 * ldtemplate: Don't assukme that -N or -n options
6575 imply use of -r script.
6576 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
6578 Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
6580 * ldtemplate: include bfd.h before sysdep.h.
6582 Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
6584 Restructure configuration scheme for bfd, binutils, ld.
6586 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
6587 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
6588 Change some config names to match other dirs.
6589 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
6591 * config/: Rename some config files to match up h-*.h names.
6592 Remove all the HOST_SYS definitions from the config files.
6594 Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
6596 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
6597 * ldtemplate: Remove ldfile_add_library_path calls;
6598 just use the SEARCH_DIR commands in the script files.
6599 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
6600 the SEARCH_DIR commands in the scripts (using ugly sed magic).
6601 This is primarily intended for cross-linking, where you would
6602 place libaries in a different place than native libraries.
6603 Also, emulations made from ldtemplate now use $(srcdir).
6604 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
6605 form; people can use the Makefile's LIB_PATH to override.
6607 Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
6609 * Makefile.in: fix target ld.dvi, add target ld.info
6610 ld.texinfo: make info filename ld.info
6612 Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
6614 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
6616 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
6617 few BFD types & enums.
6624 version-control: never