1 Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
3 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
4 (gld${EMULATION_NAME}_place_section): New function.
5 (hold_{section,use,text,rdata,data}): New static locals.
6 (ld_${EMULATION_NAME}_emulation): Update orphan field.
7 * scripttempl/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
8 (INIT,FINI): Delete, unused.
9 (.text): Document orphan .text.foo sections.
10 (.rdata): Document orphan .rdata.foo sections.
11 (.data): Document orphan .data.foo sections.
13 Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
15 * scripttempl (h8300.sc, h8300h.sc): Place .rodata sections
16 before .text sections in main ram.
18 Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
20 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
21 8-bit region and 8-bit sections.
23 Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
25 * ldlang.c (section_already_linked): Fix typos.
27 Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
29 * scripttempl/pe.sc (.endjunk): Define __end__.
31 Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
33 * ldlang.c (longest_section_name): Remove.
34 (SECTION_NAME_MAP_LENGTH): Define.
35 (print_size, print_alignment, print_fill, print_section): Remove.
36 (print_flags): Remove.
38 (print_output_section_statement): Rewrite.
39 (print_assignment): Rewrite.
40 (print_one_symbol): Rewrite.
41 (print_input_section): Rewrite.
42 (print_fill_statement): Rewrite.
43 (print_data_statement): Rewrite.
44 (print_address_statement): New static function.
45 (print_reloc_statement): Rewrite.
46 (print_padding_statement): Rewrite.
47 (print_wild_statement): Rewrite.
48 (print_statement_list): Clean up.
49 (print_statement): Clean up. Some minor output changes.
50 (print_statements): Clean up.
51 (load_symbols): Put another - before -whole-archive.
52 * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
53 print 0x and to omit leading zeroes. For etree_rel, use %B to
54 print the BFD. For etree_assign, remove the space after the
56 * ldwrite.c: Include "libiberty.h".
57 (clone_section): Call xstrdup, not strdup.
58 (ldwrite): Don't print any map information.
59 (print_symbol_table, print_file_stuff, print_symbol): Remove.
60 * ldmain.c (main): Call lang_map when appropriate.
61 * ldmisc.c (vfinfo): Add support for %W.
62 (print_address): Remove.
63 * ldmisc.h (print_address): Don't declare.
64 * Makefile.in: Rebuild dependencies.
66 Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
68 * configure.host (m68*-*-linux*): Add -dynamic-linker to
69 HOSTING_CRT0. Search -lgcc both before and after -lc in
70 HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
72 (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
75 Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
77 * ldmisc.h (demangle): Declare.
78 * ldmisc.c: Include "libiberty.h". Include demangle.h with "",
80 (demangle): Make non-static. Remove remove_underscore paramter.
81 Always return an allocated string.
82 (vfinfo): Free result of demangle. Add case 'G'. Use %T to print
83 functionname, rather than calling demangle. Print a colon between
84 the BFD(section+offset) and the line number.
85 * ldmain.c (add_archive_element): Improve format of archive
86 information in map file.
87 (constructor_callback): Don't print anything to the map file.
88 * ldlang.c (lang_one_common): Improve format of common symbol
89 information in map file.
90 * ldctor.c (ldctor_build_sets): If producing a map file, print set
92 * ldwrite.c (print_symbol_table): Print a newline before the
93 header in the map file.
94 * Makefile.in: Rebuild dependencies.
96 * ldmisc.c (vfinfo): Reindent.
98 Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
100 * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
101 don't clobber it when not relaxing.
103 * ld.h (ld_config_type): Remove traditional_format field.
104 * ldmain.c (main): Use link_info.traditional_format rather than
105 config.traditional_format.
106 * ldlang.c (ldlang_open_output): Likewise.
107 * lexsup.c (parse_args): Likewise.
108 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
109 * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
111 * ldlang.c (wild_doit): Discard debugging sections if we are
112 stripping debugging information.
114 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
116 Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
118 * ldexp.c (fold_binary): Correct handling of subtraction with
120 (fold_name): Permit symbols in lang_allocating_phase_enum.
122 * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
123 accidental changes in last patch.
125 Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
127 * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
128 (powerpcle*-*-{sysv,solaris}): Ditto.
130 Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
132 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
133 in m68k/crt0.S without things blowing up.
135 Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
137 * scripttempl/m68kcoff.sc: Remove default address for .data so
138 .text, .data, and .bss are all sequential.
140 Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
142 * scripttempl/m68kcoff.sc: Remove regions and simplify.
144 Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
146 * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
147 bytes of the address space. Put data from the ".eight" sections
149 * scripttempl/h8300h.sc: Likewise.
151 Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
153 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
154 Pass $ARCH to ldfile_set_output_arch instead of setting
155 ldfile_output_architecture directly.
157 Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
159 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
160 next to .text. Put _etext after .text, .init, .fini, and
161 .rodata{,2} sections.
163 Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
165 * ld.texinfo: Rearrange option documentation.
167 * lexsup.c (ld_options): New static array.
168 (parse_args): Build shortopts and longopts from ld_options array.
169 (help): New static function.
170 * ldver.h (help): Don't declare.
171 * ldver.c (ldversion): Reindent.
174 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
176 Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
178 * emultempl/elf32.em: When checking for a native emulation, check
179 that the current emulation is the default emulation.
180 * emultempl/sunos.em: Likewise.
182 * configure.in: Permit --enable-shared to specify a list of
184 * configure: Rebuild.
186 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
187 for HP/UX compatibility.
189 Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
191 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
192 static function, if ${host} = ${target}.
193 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
194 needed shared library if ${host} = $[target}.
196 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
197 HOSTING_CRT0. Search -lgcc both before and after -lc in
200 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
201 Polstra <jdp@polstra.com>.
203 Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
205 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
207 * scripttempl/elf.sc: Use $MACHINE definition if present.
208 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
211 Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
213 * ldlang.c (lang_size_sections): Change region check to handle
214 regions which end at the highest possible address correctly.
215 From Roland Weber <roweber@ira.uka.de>.
217 * ldlang.c (section_already_linked): New static function.
218 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
219 relocateable link. Don't worry about section being NULL, since it
220 never should be. Don't call init_os unless the section is going
222 (ldlang_add_file): Call section_already_linked for each section.
223 * ldmain.c (multiple_definition): Don't warn about multiple
224 definitions in sections which are being discarded.
226 Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
228 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
229 * emultempl/pe.em (init): Remove special case PPC code.
231 Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
233 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
234 so as not to overwrite the magic syscall entry at 0xc4.
235 * scripttempl/h8300h.sc: Likewise.
237 Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
239 * configure.tgt (sparc64-*-solaris2*): Delete.
240 Stick with sparc-*-solaris2*.
242 Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
244 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
245 * ldlang.c (init_os): Fail on an attempt to initialize any section
246 named DISCARD_SECTION_NAME.
247 (wild_doit): Discard input sections assigned to an output section
248 named DISCARD_SECTION_NAME.
249 * ld.texinfo: Document use of /DISCARD/.
251 * ldlang.c: Fix some indentation and comments.
253 Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
255 * ldmain.c (main): Call bfd_set_error_program_name.
257 Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
259 * ld.texinfo: Fix a couple of indexing entries. Mention that
260 --verbose displays builtin linker scripts.
262 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
263 and the local symbol name does not match the filename, print the
266 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
267 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
268 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
271 Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
273 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
275 Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
277 * ldmain.c (add_wrap): New function.
278 * ldmain.h (add_wrap): Declare.
279 * lexsup.c (parse_args): Call add_wrap.
281 Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
283 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
285 Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
287 * scripttempl/h8300.sc: Change name of page zero memory
288 from "null" to "vectors". Create an output section for
289 vectors. Add comments on how to explicitly place items
291 * scripttempl/h8300h.sc: Likewise.
293 Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
295 * emultempl/lnk960.em (machine_table): Add jx and hx.
297 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
300 Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
302 * ld.h (ld_config_type): Add warn_multiple_gp field.
303 * lexsup.c (parse_args): Handle --warn-multiple-gp.
304 * ldmain.c (warning_callback): Suppress multiple gp values warning
305 if --warn_multiple_gp was not used.
306 * ld.texinfo, ld.1: Document --warn-multiple-gp.
308 Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
310 * lexsup.c (parse_args): Handle --wrap.
311 * ldmain.c (main): Initialize link_info.wrap_hash.
312 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
314 * ld.texinfo, ld.1: Document --wrap.
316 * configure: Rebuild with autoconf 2.8.
318 Don't do SunOS style dynamic linking for sparc-aout:
319 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
320 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
321 (sparc*-wrs-vxworks*): Likewise.
322 * emulparams/sparcaout.sh: New file.
323 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
324 (esparcaout.c): New target.
326 Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
328 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
329 in a different manner to work around differences in shell variable
332 Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
334 * ldemul.h (ldemul_unrecognized_file): Declare.
335 (ldemulation_xfer_type): Add unrecognized_file field.
336 * ldemul.c (ldemul_unrecognized_file): New function.
337 * ldlang.c (load_symbols): If a file can not be recognized, call
338 ldemul_unrecognized_file before trying it as a linker script.
339 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
341 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
342 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
344 Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
346 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
347 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
349 Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
351 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
352 Search trinary.cond rather than searching trinary.lhs twice.
354 Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
356 * mpw-make.sed: Edit out shared library support.
357 (@TDIRS@): Edit out, can't use genscripts.
359 Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
361 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
362 * emulparams/m68klinux.sh: New file.
363 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
364 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
365 bfd_linux_size_dynamic_sections.
366 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
367 (em68klinux.c): New target.
368 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
370 Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
372 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
373 Fill in missing entries.
375 * lexsup.c (parse_args): Recognize --no-whole-archive.
376 * ldlang.h (lang_input_statement_type): Add whole_archive field.
377 * ldlang.c (new_afile): Set whole_archive field.
378 (load_symbols): Check input file specific whole_archive field
379 rather than global variable.
380 * ld.texinfo, ld.1: Document --no-whole-archive.
382 Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
384 * configure.tgt: Correct gldi960 to gld960.
386 Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
388 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
389 the SONAME if it is available.
390 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
391 filename, when checking for conflicting library versions. Don't
392 assume that the suffix is only numbers and dots.
394 * ld.texinfo: Mention that -R can be used for -rpath.
396 Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
398 * configure.host: Check for 'do not mix' from native linker before
399 trying to use -rpath.
401 Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
403 * configure.in: Remove explicit substitution of CFLAGS; autoconf
405 * configure: Rebuild.
406 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
408 * configure.in: Call AC_PROG_CC before configure.host.
409 * configure: Rebuild.
410 * configure.host: Remove go32 host, since it should no longer be
411 necessary. Don't set CC for romp host.
413 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
414 the text segment ends exactly on a page boundary.
416 * configure.in: Substitute RPATH_ENVVAR.
417 * configure: Rebuild.
418 * configure.host: Set RPATH_ENVVAR.
419 * Makefile.in (RPATH_ENVVAR): New variable.
420 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
422 Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
424 * configure.in: Redo emulation handling so that each emulation
425 searches the correct tool directory, based on the target alias.
426 For example, "configure --enable-targets=m68k-coff i386-linux"
427 will search /usr/local/i386-linux/lib for linux and
428 /usr/local/m68k-coff/lib for m68k-coff.
429 * configure: Rebuild.
430 * configure.tgt: Add special tdir settings for Linux.
431 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
432 for each eEMUL.c target.
433 * genscripts.sh: Accept specific alias as 9th argument, and use it
436 Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
438 * ldlang.c (lang_set_startof): Don't do anything for a
441 * ldgram.y (mri_script_file): Call mri_draw_tree.
442 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
443 create memory regions.
444 (mri_load): Don't call mri_draw_tree.
445 * mri.h (mri_draw_tree): Declare.
447 * configure.tgt (m68*-*-psos): New target.
448 * emulparams/m68kpsos.sh: New file.
449 * scripttempl/psos.sc: New file.
450 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
451 (em68kpsos.c): New target.
453 Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
455 * configure.tgt (*-*-ieee*): New target; use vanilla.
457 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
460 Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
462 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
465 Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
467 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
469 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
470 it looks like we might be linking in two different versions of the
471 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
473 Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
475 * ldlang.c (lang_size_sections): Increment the section size when a
476 padding statement is encountered.
478 Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
480 * configure.in: Look for --enable-shared. Change the value of
481 BFDLIB when linking against a shared library on SunOS.
482 * configure: Rebuild.
483 * configure.host: If using a shared BFD library, try to pass a
484 reasonable -rpath option when linking.
485 * Makefile.in (BFDLIB): Set to @BFDLIB@.
487 Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
489 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
490 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
492 Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
494 Support for building bfd and opcodes as shared libraries, based on
495 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
496 * configure.in (HLDFLAGS): New substitution.
497 * configure: Rebuild.
498 * configure.host: Set HLDFLAGS on SunOS.
499 * Makefile.in (HLDFLAGS): New variable.
500 (BFDDEP): New variable.
501 (BFDLIB): Change to -L../bfd -lbfd.
502 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
504 (check): Set LD_LIBRARY_PATH in the environment.
506 Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
508 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
509 in the read-only section, not read/write unless we are making a
511 (.debug*): Add dwarf debug sections.
512 (.rela.{sdata*,sbss*}): Add sections.
514 Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
516 * configure: Regenerate.
518 Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
520 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
521 for SVR4 compatibility.
523 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
525 Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
527 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
528 * emultempl/pe.em (definfo init): Make the default stack reserve
531 Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
533 * configure.tgt (m68*-apple-aux*): New target.
534 * emulparams/m68kaux.sh: New file.
535 * scripttempl/m68kaux.sc: New file.
536 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
537 (em68kaux.c): New target.
539 Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
541 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
542 -bnoentry, since the right thing tends to happen anyhow.
544 Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
546 * ld.texinfo, ld.1: Document -export-dynamic.
548 Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
550 * emultempl/sunos.em: Check for native compile by comparing
551 ${target} and ${host}.
553 Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
555 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
556 TEXT_START_ADDR to allow use on IDT and PMON systems.
558 Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
560 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
563 Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
565 * configure.tgt (sparc64-*-solaris2*): New configuration.
566 (sparc64-*-aout*): Renamed from sparc64*.
568 Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
570 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
571 * genscripts.sh: Set host, target and target_alias variables.
572 Check for native compile by comparing ${target} and ${host}.
573 * emultempl/elf32.em: Likewise.
574 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
576 Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
578 * scripttempl/elfppc.sc: Refine eabi support to better support
579 .sdata, .sdata2, .sbss, etc. sections.
581 Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
583 * ldgram.y (%union): Add phdr field.
584 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
585 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
586 (opt_hdrs, hdr): Remove.
587 (phdr_val): New nonterminal.
588 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
589 and phdrs parameters. Add flags parameter.
590 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
592 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
593 phdrs fields. Add flags field.
594 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
595 (lang_new_phdr): Update declaration.
596 * ld.texinfo: Document FLAGS.
598 Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
600 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
601 Don't make a shared library because of an undefined reference to
602 __GLOBAL_OFFSET_TABLE_.
604 Add some Irix 5 support, mostly from Kazumoto Kojima
605 <kkojima@info.kanagawa-u.ac.jp>:
606 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
607 (SHLIB_TEXT_START_ADDR): Define.
608 (OTHER_GOT_SYMBOLS): Define.
609 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
610 (EXECUTABLE_SYMBOLS): Don't define.
611 (DYNAMIC_LINK): Don't define.
612 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
613 * scripttempl/elfmips.sc: New file.
614 * configure.host (mips*-dec-bsd*): Change mips to mips*.
615 (mips*-sgi-irix4*): Likewise.
616 (mips*-sgi-irix5*): New entry.
617 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
619 (eelf32lmip.c): Likewise.
621 Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
623 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
624 .rela.got.neg section.
626 Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
628 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
630 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
631 ANSI_PROTOTYPES is defined. Remove special handling of
632 WINDOWS_NT. Various indendation fixes.
633 (vfinfo): Change fmt parameter to const char *.
634 (info_msg): Write <stdarg.h> version.
635 (einfo, minfo, finfo): Likewise.
636 (info_assert): Change file parameter to const char *.
637 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
638 defined, use a real prototype.
639 (info_assert): Change first parameter to be const char *.
641 Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
643 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
644 in old support that 2.7.2 needs, but the current compiler does
647 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
648 correct Linker script template.
650 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
652 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
654 Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
656 * scripttempl/alpha.sc: Put .rconst right after .rdata.
658 Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
660 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
661 sort using right pointer.
663 Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
665 * scripttempl/elfppc.sc: Remove support for creating special
666 labels for eabi section begin/end here. The compiler now uses
667 crt{i,n}.o to create these symbols.
669 Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
671 * configure.host: Change existing Linux HOSTING_CRT0 to be used
672 for a.out only, and put in appropriate HOSTING_CRT0 and
673 HOSTING_LIBS values for Linux ELF.
675 Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
677 * scripttempl/h8300.sc: Use all 64K for ram.
678 * scripttempl/h8300h.sc: Define 256K ram size.
680 Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
682 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
683 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
684 was used, regardless of whether -bE was used.
686 Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
688 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
689 relocateable before calling ldctor_build_sets if the output file
690 is in an XCOFF format.
692 Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
694 * ldwrite.c (build_link_order): When handling a data statement, if
695 the endianness of the output file is unknown, use the endianness
698 Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
700 * mpw-config.in: Recognize mips-*-* as equivalent to
702 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
703 * mpw-ld.r: Add version resources.
704 (cfrg): Use symbolic instead of literal name for executable.
706 Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
708 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
710 Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
712 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
713 (print_statement_list): Renamed from print_statement. All callers
715 (print_statement): New function to print just one statement.
716 (print_{data,reloc,padding}_statement): Don't crash if
717 output_section == NULL.
718 (dprint_statement): New function.
720 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
721 call to sort_sections.
723 Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
725 * emultempl/aix.em (unix_ld): New static variable.
726 (gld${EMULATION_NAME}_parse_args): Handle -unix.
727 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
728 gc as false and export_defineds as true to size_dynamic_sections.
730 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
731 phase if the current section is abs_output_section.
734 Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
736 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
739 Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
741 * ldgram.y (PHDRS): New token.
742 (ifile_p1): Accept phdrs.
743 (section): Accept phdr_opt at the end of the section definition.
744 (phdr_op): New nonterminal.
745 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
746 * ldlex.l: Accept PHDRS.
747 * ldlang.h (struct lang_output_section_phdr_list): Define.
748 (lang_output_section_statement_type): Add phdrs field.
749 (struct lang_phdr): Define.
750 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
751 (lang_new_phdr): Declare.
752 * ldlang.c (lang_phdr_list): New static variable.
753 (lang_output_section_statement_lookup): Initialize phdrs field.
754 (lang_process): Call lang_record_phdrs.
755 (lang_new_phdr): New function.
756 (lang_section_in_phdr): New function.
757 (lang_record_phdrs): New static function.
758 * ld.texinfo: Document PHDRS.
760 Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
762 * scripttempl/ppcpe.sc: Moved .edata into its own section to
765 Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
767 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
768 HOSTING_LIBS for testing.
769 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
772 Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
774 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
777 Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
779 * configure: Rebuild with autoconf 2.7.
781 Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
783 * scripttempl/pe.sc: Two .junk's is too much junk.
785 Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
787 * configure.in: Use BFD_NEED_DECLARATION.
788 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
789 * configure, config.in: Rebuild with autoconf 2.6.
791 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
792 being unsupported if this is not a relocateable link and the input
793 BFD supports it, since ldctor_build_sets can cope with that case.
795 Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
797 * configure.tgt (powerpc-*-macos*): New target.
798 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
799 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
800 (eppcmacos.c): New target.
801 * mpw-eppcmacos.c: Update.
802 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
804 Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
806 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
807 $(host_canonical) and $(target_canonical).
808 (CXX_FOR_TARGET): Likewise.
810 Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
812 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
813 so the malloc heap begins at a sane place.
815 Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
817 Version 2.6 released.
818 * ldver.c (ldversion): Update to 2.6.
820 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
821 $(GENERATED_*FILES), since they need to be retained by distclean.
822 (maintainer-clean, realclean): Delete them here.
824 Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
826 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
827 base file with FOPEN_WB, not "w".
829 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
830 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
832 (gld${EMULATION_NAME}_before_allocation): Use the environment
833 variable LD_RUN_PATH if -rpath was not used.
834 * ld.texinfo, ld.1: Document LD_RUN_PATH.
836 Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
838 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
839 -bl and -bloadmap options.
841 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
842 report a better error.
844 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
845 new local variable special_sections, and pass it to
846 size_dynamic_sections. Look through the results, and move the
847 sections around in the mapping so that they are defined correctly.
849 Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
851 * ldemul.c (ldemul_default_target): Cast getenv return value.
853 Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
855 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
857 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
860 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
861 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
863 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
864 (gld_$_before_allocation): added hooks for toc construction based
867 Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
869 * ld.texinfo: The linker does not use _main as an entry point.
871 Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
873 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
876 Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
878 * configure.in: Add test for whether free must be declared.
879 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
880 * acconfig.h: Explain NEED_DECLARATION_FREE.
881 * configure, config.in: Rebuild.
883 * lexsup.c (parse_args): Take B:: out of shortopts.
885 Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
887 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
888 for now, as with m68k4kbsd, until shared library support gets
891 * configure.host: For i386 BSD variants, crt0.o lives in
892 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
894 Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
896 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
897 (edelta68.c): New target.
898 * configure.tgt (m68*-motorola-sysv*): New target.
899 * emulparams/delta68.sh: New file.
900 * scripttempl/delta68.sc: New file.
902 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
905 Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
907 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
908 ALIGN and ALIGNMOD statements.
910 * emultempl/aix.em: Include ldgram.h.
911 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
913 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
915 Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
917 * configure.host (alpha-*-linux*): New host.
918 * configure.tgt (alpha-*-linux*): New target.
920 Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
922 * emultempl/aix.em (export_files): Remove.
923 (import_files): Make static.
924 (struct export_symbol_list): Define.
925 (export_symbols): New static variable.
926 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
927 correctly. Call read_file for an export file.
928 (gld${EMULATION_NAME}_before_allocation): Call
929 bfd_xcoff_export_symbol for each export symbol, rather than
930 calling read_file for each export file.
931 (gld${EMULATION_NAME}_read_file): For an export file, make the
932 exported symbols undefined, and store them on the export_symbols
935 Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
937 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
938 Don't hang if last option is unrecognised.
939 (gld_${EMULATION_NAME}_set_symbols): Insert created
940 symbols into ABS output section.
942 Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
944 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
946 (em68k4knbsd.c): New rule.
948 * configure.tgt: Added support for the NetBSD m68k4k arch.
950 * genscripts.sh, ldint.texinfo,
951 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
952 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
953 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
954 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
955 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
956 pc532machaout,rce,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
957 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
958 PAGE_SIZE to TARGET_PAGE_SIZE.
960 * emulparams/m68knbsd.h: Ditto.
961 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
962 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
965 * emulparams/m68k4knbsd.sh: New file.
967 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
969 Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
971 * emultempl/aix.em: Include ldctor.h.
972 (gld${EMULATION_NAME}_after_open): New static function.
973 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
974 (gld${EMULATION_NAME}_find_relocs): New static function.
975 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
976 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
977 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
978 * ldctor.c (struct set_info): Move definition into ldctor.h.
979 (struct set_element): Likewise.
980 (sets): Make non-static.
981 (ldctor_add_set_entry): Add name parameter. Save it in the new
983 (ldctor_build_sets): Avoid being called twice. Pass set element
984 name to lang_add_reloc.
985 * ldctor.h (struct set_info): Move definition here from ldctor.c.
986 (struct set_element): Likewise. Add new field name.
988 (ldctor_add_set_entry): Declare new name parameter.
989 * ldwrite.c (build_link_order): Don't insist that either name or
990 section be NULL in a lang_reloc_statement.
991 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
993 (constructor_callback): Pass name to ldctor_add_new_set_entry for
996 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
998 Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
1000 * mpw-config.in: Add PowerMac target support, generate config.h.
1001 * mac-ld.r: New file, Mac resources.
1002 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
1003 * mpw-make.in: Remove.
1004 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
1006 Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
1008 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
1009 -static as a synonym for -bnso.
1011 * scripttempl/aix.sc: Move special symbols inside sections.
1012 Always start .data at 0.
1014 Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1016 * Makefile.in (diststuff): Also make info.
1017 (maintainer-clean realclean): Also delete *.info*.
1019 Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
1021 * emultempl/aix.em: Add support for various AIX linker options,
1022 for AIX import and export files, and for AIX shared objects.
1023 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
1025 * ldmain.c (main): Initialize new field link_info.static_link.
1027 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
1028 (constructor_callback): Likewise.
1029 * ldmisc.c (vfinfo): Likewise.
1030 * ldwrite.c (build_link_order): Likewise.
1032 * ld.texinfo: The MRI ALIGN directive is supported.
1034 Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
1036 * emulparams/elf32vr4300.sh: Deleted.
1037 * emulparams/elf32vr4300el.sh: Deleted.
1038 * emulparams/elf32b4300.sh: Added.
1039 * emulparams/elf32l4300.sh: Added.
1040 * configure.tgt, Makefile.in: Updated the build to use the
1041 new 8.3 unique names.
1043 Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
1045 * ldlang.c (entry_symbol): Make non-static.
1046 * ldlang.h (entry_symbol): Declare.
1048 * ldlex.l: Treat PROVIDE as a keyword in expression state.
1050 Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
1052 * scripttempl/pe.sc (.bss): Move to be after .text
1054 Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
1056 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
1057 Search trinary.cond rather than searching trinary.lhs twice. From
1058 linli@ihp.PHys.ethz.CH.
1060 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
1061 directory searching code into gld${EMULATION_NAME}_search_dir.
1062 (gld${EMULATION_NAME}_search_dir): New static function, extracted
1063 from gld${EMULATION_NAME}_find_so.
1064 (global_needed, global_found): New static variables.
1065 (gld${EMULATION_NAME}_after_open): New static function.
1066 (gld${EMULATION_NAME}_search_needed): New static function.
1067 (gld${EMULATION_NAME}_try_needed): New static function.
1068 (gld${EMULATION_NAME}_check_needed): New static function.
1069 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
1070 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
1072 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
1073 (eelf32lppc.c): Likewise.
1074 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
1075 (GENERATE_SHLIB_SCRIPT): Define as yes.
1077 Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
1079 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
1080 bfd_link_needed-list; make appropriate changes.
1082 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
1083 (rs6000-*-aix*): New target; use aixrs6.
1084 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
1085 * emultempl/aix.em: New file.
1086 * scripttempl/aix.sc: New file.
1087 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
1088 (eaixppc.c, eaixrs6.c): New targets.
1090 Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
1092 * scripttemp/pe.sc (.reloc): Move to the end.
1094 Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
1096 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
1097 section which was not linked into the final output.
1099 Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
1101 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
1104 Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
1106 * ld.h (args_type): Add rpath_link field.
1107 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
1108 required dependencies in rpath_link path. Only search
1109 LD_LIBRARY_PATH when configured native.
1110 * lexsup.c (parse_args): Recognize -rpath-link.
1111 * ld.1, ld.texinfo: Document -rpath-link.
1113 Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
1115 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1116 bother searching for needed libraries unless doing a final link.
1118 Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
1120 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1122 * ld/ld.1: Fix formatting bugs.
1124 Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
1126 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
1127 * ldexp.h (exp_get_abs_int): Update declaration.
1128 * ldlang.c (print_output_section_statement): Use fprintf_vma to
1129 print return value of exp_get_abs_int.
1131 Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
1133 * emultempl/elf32.em (global_stat): New file static variable.
1134 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
1135 that the file has not already been included under another name.
1136 (gld${EMULATION_NAME}_stat_needed): New static function.
1138 Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
1140 * scripttempl/armcoff.sc: Start .text at 0x8000.
1141 Start .data at 0x40000.
1143 Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
1145 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
1146 command_line.rpath is set, use it, rather than the -L options, to
1147 build the rules section.
1148 * ld.texinfo: Document this use of -rpath.
1150 * lexsup.c (parse_args): Don't set link_info.shared for -assert
1151 pure-text. Pass true, not 1, to lang_add_entry.
1152 * emultempl/sunos.em (find_assign): New static variable.
1153 (found_assign): New static variable.
1154 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
1155 If not a relocateable link, and no start symbol was specified on
1156 the command line, and there are any undefined symbols, set
1157 link_info.shared. If link_info.shared is set, set the address of
1158 the .text section to 0x20.
1159 (gld${EMULATION_NAME}_find_assignment): Rename from
1160 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
1161 set, then just set found_assign based on whether an assignment is
1162 found to find_assign.
1163 (gld${EMULATION_NAME}_get_script): Don't use a special script when
1164 producing a shared library.
1165 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
1166 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
1167 * ldlang.c (entry_from_cmdline): New global variable.
1168 (lang_add_entry): Change cmdline parameter from int to boolean.
1169 Use global entry_from_cmdline rather than function static
1171 * ldlang.h (entry_from_cmdline): Declare.
1172 (lang_add_entry): Change declaration of second parameter from int
1174 * ldgram.y: Pass false, not 0, to lang_add_entry.
1176 Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
1178 * ld.h (parsing_defsym): Declare.
1179 * ldlex.h (lex_string): Declare.
1180 * ldlex.l (lex_string): Define.
1181 * lexsup.c (parsing_defsym): Define.
1182 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
1183 lex_redirect, and clear it after calling yyparse. Set
1184 parsing_defsym around call to yyparse.
1185 * ldmain.c (main): Set lex_string before calling lex_redirect, and
1186 clear it after calling yyparse.
1187 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
1188 in linker scripts correctly.
1190 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
1191 COFF targets, allowing for the leading underscore used on SPARC
1194 * lexsup.c (parse_args): Handle -assert.
1195 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
1196 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
1197 shared library script when appropriate.
1198 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
1199 section at SIZEOF_HEADERS.
1201 Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
1203 * Makefile.in (earmcoff.c): Build.
1204 * configure.tgt (arm-*-coff): New target
1205 * emulparms/armcoff.sh: New file.
1206 * scripttempl/armcoff.sc: New file.
1208 Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
1210 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
1212 Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
1214 * ldfile.c (ldfile_set_output_arch): Make arch const.
1216 Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1218 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
1219 beginning of the .bss area, not at the end of data. Add
1220 __sbss_{start,end} symbols.
1222 Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
1224 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
1225 (CXX_FOR_TARGET, install): Likewise.
1227 Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
1229 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
1230 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
1231 (CXX_FOR_TARGET): Likewise.
1232 (install): Likewise.
1233 (GENERATED_HFILES): Remove config.h.
1234 (.dep): Depend upon config.h.
1236 Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
1238 * configure.tgt (mips*-dec-netbsd*): New target.
1240 Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
1242 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
1244 Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
1246 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
1248 Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
1250 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
1251 Start .text section on the right boundary. Always align
1254 Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
1256 * Makefile.in (maintainer-clean): New target.
1258 * ldmain.c (struct warning_callback_info): Define.
1259 (warning_callback): Add new parameter symbol. Call
1260 warning_find_reloc to try to find the section and VMA.
1261 (warning_find_reloc): New static function.
1262 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1263 Pass NULL as symbol parameter to warning callback.
1265 * ld.texinfo: Clarify -L option.
1267 * ldlang.c (lang_one_common): Add cast to avoid warning.
1268 (topower): Likewise. Also, reindent.
1269 * ldwrite.c (clone_section): Change i to unsigned int.
1270 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
1271 cast to avoid warning.
1273 Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
1275 * Makefile.in (config.status): Depend upon configure.tgt.
1277 * ldemul.h (ldemul_set_symbols): Declare.
1278 (ldemul_parse_args): Declare.
1279 * ldemul.c (ldemul_parse_args): Fix indentation.
1281 * configure.in: Call AC_HEADER_DIRENT.
1282 * configure, config.in: Rebuild.
1283 * emultempl/sunos.em: Use autoconf recommend mechanism to define
1284 DIR and struct dirent.
1286 * configure.tgt (mips*-*-bsd*): New case.
1288 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
1290 * configure.tgt (i[345]86-*-ptx*): New case.
1292 Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
1294 * config.in: Rename from config.h.in.
1295 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
1296 Check for config.h:config.in when creating stamp-h.
1297 * configure: Rebuild.
1298 * Makefile.in (stamp-h): Depend upon config.in rather than
1299 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
1300 calling config.status.
1302 * Makefile.in (distclean): Remove config.h and stamp-h.
1304 * configure.host (sparc-*-sunos64*): Remove.
1305 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
1307 * ldexp.c (exp_fold_tree): Don't warn about moving the location
1308 counter backward in the absolute section.
1310 Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
1312 * configure.in: Rewrite to use autoconf.
1313 * configure.host: New file.
1314 * configure.tgt: New file.
1315 * aclocal.m4: New file.
1316 * configure: New file, built by autoconf.
1317 * acconfig.h: New file.
1318 * config.h.in: New file, built by autoheader.
1319 * sysdep.h: New file.
1320 * ld.h: Incorporate old contents of config.h.
1322 * Makefile.in: Various changes for new configure script. Also:
1323 (CC_FOR_BUILD): Remove.
1324 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
1325 (dep.sed): Use @SRCDIR@, not @srcdir@.
1326 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
1327 * genscripts.sh: Create ldscripts if it does not exist.
1328 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
1329 * mpw-esh.c, emultemp/*.em: Likewise.
1330 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
1332 * config/*.mt, config/*.mh: Remove.
1334 Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
1336 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
1337 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
1339 Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
1341 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
1343 Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
1345 * ldmain.c (warning_callback): Add abfd, section, and address
1347 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1348 Change call to warning accordingly.
1350 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
1351 relocateable and not shared, put .gnu.warning.SYMBOL sections into
1354 Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
1356 * configure.in: Added mips*vr4300-idt-elf* and
1357 mips*vr4300el-idt-elf* targets.
1358 * Makefile.in: Added eelf32vr4300* targets.
1359 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
1360 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
1362 Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
1364 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
1365 <brendan@cygnus.com>.
1367 Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
1369 * ldemul.c (ldemul_parse_args): New.
1370 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
1371 * lexsup.c (all pe stuff): Moved into pe.em
1372 (parse_args): Call emulation arg parser.
1373 * emultempl/pe.em (parse_args): handle PE specfic args.
1375 Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
1377 * ldlang.c (lang_memory_region_lookup): Don't use the first region
1378 as the default region. Create a new region instead.
1380 Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
1382 * ldemul.c (ldemul_set_symbols): New function.
1383 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
1384 * ldmain.c (main): Add call to ldemul_set_symbols.
1385 * lexsup.c (set_pe_value): New args.
1387 (parse_args): Cope with new set_pe_value args.
1388 * emultempl/pe.em (set_symbols): New function.
1389 (ld_emulation_xfer_struct): Add set_symbols.
1390 * scripttempl/pe.sc: Use new symbols.
1392 Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
1394 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
1395 For -Y, ignore a leading `P,', and only call set_default_dirlist
1396 after processing all the other arguments.
1398 Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
1400 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
1401 * emulparams/armpe.sh: Run PE script.
1403 Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
1405 * ldmain.c (main): Remove PE stuff.
1406 * lexsup.c (options): Load more PE options.
1407 (set_pe_value): New function.
1409 Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
1412 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
1413 * emultempl/pe.sc: New file performs generic PE support and sorts
1415 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
1416 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
1417 * scripttempl/pe.sc: New.
1418 * Makefile.in: Use new files.
1420 Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
1422 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
1423 (.strings,.ctors,.dtors): Likewise.
1425 Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
1427 * scripttempl/armpe.sc: Always start code at 0x401000, even
1429 * ldwrite.c (strdup): New extern declaration.
1430 * ldgram.y (atype): New rule to clarify type parsing.
1431 * ldlang.c (init_os): Remove commented out code.
1432 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
1433 unless told not to by the link script.
1435 Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
1437 * ldlang.c (lang_set_startof): New static function.
1438 (lang_process): Call it.
1440 * ldgram.y: Tweak casesymlist to avoid bison errors.
1442 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
1443 Solaris compatibility.
1445 Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
1447 * ldgram.y (YYDEBUG): If not defined, define as 1.
1448 (CASE, EXTERN, START): New tokens.
1449 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
1450 (casesymlist): New nonterminal.
1451 (extern_name_list): New nonterminal.
1452 * ldlex.l: Accept lower case trailing base specifiers. Don't
1453 ignore the first digit when the base is a suffix. Accept many
1454 EXPRESSION state tokens in MRI state. Support MRI continuation
1455 lines and MRI semicolon comments. Accept all MRI keywords in
1456 lower case. Add CASE, EXTERN, and START MRI keywords.
1458 Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
1460 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
1463 Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1465 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
1466 $r/../gcc/xgcc unless it is present.
1468 Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
1470 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
1472 * scripttempl/m68klynx.sc: Likewise.
1473 * scripttempl/nw.sc: Likewise.
1474 * scripttempl/sa29200.sc: Likewise.
1475 * scripttempl/sparclynx.sc: Likewise.
1477 Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
1479 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
1481 Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
1483 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
1485 Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
1487 * scripttempl/i386pe.sc: Cope with constructors.
1488 * scripttempl/z8ksim.sc: Deleted.
1489 * scripttempl/z8000.sc: Resurrected as this, but
1490 can handle z8001 and z8002 formats.
1491 * emulparams/z8ksim.sh: Deleted.
1492 * emulparams/{z8001.sh, z8002.sh}: New files.
1493 * config/z8ksim.mt: Deleted
1494 * config/z8k-coff.mt: New, generates both emulations.
1496 Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
1498 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
1499 %B, in case it is in an archive.
1501 Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
1503 * ldlang.c (lang_process): Call reset_memory_regions for each
1506 Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
1508 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
1511 Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
1513 * ldmain.c (constructor_callback): Allocate set_name in stack
1514 frame, rather than always calling alloca with a fixed size.
1516 Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
1518 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
1519 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
1521 Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
1523 * ldwrite.c (clone_section): Set the alignment of the clone
1524 section to that of the section being cloned.
1526 * ldwrite.c (split_sections): Don't split the first input section
1527 into a new output section.
1529 Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
1531 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
1532 (GENERATE_SHLIB_SCRIPT): Define as yes.
1534 Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
1536 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
1538 * ldver.c (help): Update list of options to match currently
1541 Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
1543 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
1546 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
1547 it takes a size_t anyhow.
1548 (exp_binop): Likewise.
1549 (exp_trinop): Likewise.
1550 (exp_unop): Likewise.
1551 (exp_nameop): Likewise.
1552 (exp_assop): Likewise.
1553 * ldlang.c (lang_memory_region_lookup): Likewise.
1554 (init_os): Likewise.
1555 (ldlang_add_undef): Likewise.
1556 (insert_pad): Likewise.
1557 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
1560 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
1562 Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
1564 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
1566 (ld_emulation_xfer_type): Add search parameter to
1567 open_dynamic_archive entry point.
1568 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
1569 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
1570 make non-static. Change all callers to use new name.
1571 (ldfile_open_file_search): Make static. If entry is dynamic, call
1572 ldemul_open_dynamic_archive.
1573 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
1574 * ldfile.h (ldfile_open_file_search): Don't declare.
1575 (ldfile_try_open_bfd): Declare.
1576 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1577 Accept search parameter. Don't search for a library, just look in
1579 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
1582 Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
1584 * ldmain.c (set_scripts_dir): Don't base script directory on
1587 Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
1589 * ldmisc.c (vfinfo): Don't print the line number if it isn't
1592 Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
1594 * ld.h (ld_config_type): Add field warn_constructors.
1595 * ldmain.c (add_to_set): Warn if config.warn_constructors.
1596 (constructor_callback): Likewise.
1597 * lexsup.c (parse_args): Handle -warn-constructors.
1598 * ld.texinfo, ld.1: Document -warn-constructors.
1600 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
1601 get confused by directory names if we searched for the file.
1603 Based on patches from H.J. Lu <hjl@nynexst.com>:
1604 * ldlang.h (lang_input_statement_type): Add new field dynamic.
1605 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
1606 * ldfile.c: Include bfdlink.h.
1607 (ldfile_open_file): Check dynamic field of entry, not global
1608 dynamic_link field. Don't do a dynamic search when doing a
1610 * ldmain.c (main): Don't warn about dynamic_link for a
1612 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
1614 (gld${EMULATION_NAME}_create_output_section_statements): Always
1615 loop over input files.
1616 * Makefile.in: Rebuild dependencies.
1618 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
1621 Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
1623 * ldmain.c (main): Set link_info.symbolic to false.
1624 * lexsup.c (parse_args): Handle -Bsymbolic.
1626 Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
1628 * ldmain.c (HAVE_SBRK): Define for everything except
1629 specific systems that are known to not support sbrk.
1630 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
1632 Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
1634 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
1635 Handle etree_provide.
1637 * emultempl/elf32.em (global_needed): New static variable.
1638 (global_found): Likewise.
1639 (gld${EMULATION_NAME}_after_open): New static function.
1640 (gld${EMULATION_NAME}_search_needed): Likewise.
1641 (gld${EMULATION_NAME}_try_needed): Likewise.
1642 (gld${EMULATION_NAME}_check_needed): Likewise.
1643 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
1644 gld${EMULATION_NAME}_after_open.
1646 Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
1648 * configure.in (i386-*-win32): New target.
1650 Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
1652 * lexsup.c (parse_args): Let -G either set the small data size or
1653 be equivalent to --shared, depending on the next argument. Accept
1654 and ignore -z for Solaris compatibility.
1656 Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
1658 * lexsup.c (parse_args): Cast fopen result to PTR before storing
1659 it in link_info.base_file. Fix indentation.
1661 Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
1663 * ldmain.c (main): Always initialize PE info in link_info.
1664 * lexsup.c (OPTION_BASE_FILE): New option.
1665 (parse_args): Handle new option.
1666 * emulparams/armpe.sh: Output pei.
1667 * emultempl/i386pe.em: Add newline to end.
1668 * scripttempl/armpe.sc: Change output and quote the $s.
1669 * scripttempl/i386pe.sc: Change output and quote the $s.
1671 Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1673 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
1675 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
1676 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
1677 (i386msdos.o): New target.
1678 * config/i386-msdos.mt: Created.
1679 * emulparams/i386msdos.sh: Created.
1680 * scripttempl/i386msdos.sc: Created.
1682 Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1684 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
1685 that contains pointers to be relocated.
1687 Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
1689 * mpw-esh.c: New file, modified for MPW from esh.c.
1690 * scripttempl/sh.sc: Reformatted to simplify MPWification,
1691 use *() to concat stab sections instead of [].
1693 Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
1695 * scripttempl/armpe.sc: Add constructor support.
1697 Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
1699 * ldlang.c (lang_size_sections): Any section with a DATA
1700 statement has contents.
1702 Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1704 * emulparams/m68kelf.sh (NOP): Define.
1705 (DYNAMIC_LINK): Don't define.
1706 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
1707 will come from the linker script.
1709 Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
1711 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
1713 Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
1715 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
1717 Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1719 From Andrew Cagney <cagney@highland.com.au>
1720 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
1723 Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
1725 Add support for ARM-PE.
1726 * Makefile.in (ALL_EMULATIONS): Add armpe.o
1727 * configure.in: Recognize armpe.
1728 * config/arm-pe.mt: New file.
1729 * emulparams/armpe.sh: New file.
1730 * scripttempl/armpe.sc: New file.
1733 Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
1735 * configure.in (h8300h-*-hms): Deleted
1736 * config/cf-h8300h.mt: Deleted.
1738 Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
1740 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
1742 From David Taylor (dtaylor@armltd.co.uk)
1743 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
1744 * configure.in: Recognize arm{,e[lb]-*-aout.
1745 * config/arm[lb]-aout.mt: New files.
1746 * emulparams/armaout[lb].sh: New files.
1747 * scripttempl/armaout.sc: New file.
1749 Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1751 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
1752 be unique in 8 characters for DOS.
1754 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
1755 * emulparams/elf32ppcle.sh: Deleted.
1757 Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
1758 Tom Griest <griest@cs.yale.edu>
1760 Initial support for PE executables (eg NT, win32)
1762 * Makefile.in (configure.in, ei386pe): Add support.
1763 * ldmain.c (main): Initialize PE argument info.
1764 * ldwrite.c (print_file_stuff): Don't print out .drectve
1765 and .debug section info.
1766 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
1767 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
1768 Handle new arguments.
1769 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
1772 Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
1774 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
1775 segment. This allows ld -r to preserve unwind sections.
1777 Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1779 * configure.in: Add little endian PowerPC support.
1781 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
1782 (eelf32ppcle.c): Support for little endian PowerPC.
1784 * config/ppcle-elf32.mt: New file for little endian PowerPC.
1785 * emulparams/elf32ppcle.sh: Ditto.
1787 Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1789 * ldlang.c (print_output_section_statement): Check
1790 subsection_alignment, instead of checking section_alignment twice.
1791 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
1793 Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
1795 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
1797 Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
1799 * ldwrite.c (ldwrite): Before doing anything, reset the error
1800 code. If bfd_final_link returns an error, but the error code is
1801 unset, don't issue an extra message. Assume a correct error
1802 message was already set.
1804 Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1806 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
1807 (em68kelf.o): New target.
1808 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
1809 * configure.in: Use them for m68*-*-elf.
1811 Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
1813 Merge in support for Mac MPW as a host.
1814 (Old change descriptions retained for informational value.)
1816 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
1817 (i386-unknown-coff): Remove.
1818 (sh-hitachi-hms): New target.
1819 (emulation_ofiles): Set correctly for each target.
1820 (version, TDEFINES): Add to makefile fragment.
1821 * mpw-make.in (BISON): Use byacc instead of bison.
1822 (em_*.c): Replace with e*.c everywhere.
1823 (ldgram.h): Separate action from ldgram.c generation.
1824 (LD_PROG): Depend on Version.r.
1825 (Version.r): generate from version info.
1826 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
1828 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
1829 i386-unknown-aout, i386-unknown-coff): New targets.
1830 (m68k-aout, m68k-coff): Remove targets.
1831 (mk.tmp): Add definition of EMUL.
1833 * mpw-config.in (emulname): Set based on target.
1834 (ldemul-list.h): Construct.
1835 * mpw-make.in (install-only): New target.
1836 (install): Depend on install-only.
1838 * mpw-make.in (bindir): Fix pathname.
1839 (install): Move here from mpw-build.in.
1841 * mpw-config.in: New file, MPW configuration fragment.
1842 * mpw-make.in: New file, MPW makefile fragment.
1843 (This file is semi-automatically generated from Makefile.in.)
1844 * ldfile.c (slash): If MPW, set to `:'.
1845 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
1846 prevent redefinition errors.
1849 Thu Apr 6 20:38:36 1995 Doug Evans <dje@chestnut.cygnus.com>
1851 * emulparams/arcelf.sh (ENTRY): Define.
1854 Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
1856 * ldwrite.c (clone_section): Align clone sections on even
1859 Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
1861 * configure.in: Change linux to default to elf. Using
1862 i[345]86-*-linuxaout will build a linker which defaults to a.out.
1863 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
1864 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
1865 * config/i386-lelf.mt: Remove.
1867 Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
1869 * ldmain.c (main): If opening the map file fails, call
1870 bfd_set_error before calling einfo.
1872 * ld.texinfo, ld.1: Document the -no-keep-memory option.
1874 Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
1876 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
1877 does mark shared libraries as executable.
1879 Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
1881 * ldlang.c (lang_common): Change power to int. Pass larger values
1882 before smaller values.
1883 (lang_one_common): Treat info as int *. Don't bother to check for
1884 last value, since it is now zero.
1886 Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
1888 * ldlang.c (load_symbols): An empty archive is OK.
1890 Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
1892 * ldmain.c (progress.h): Include.
1893 (main): Call START_PROGRESS and END_PROGRESS.
1895 Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
1897 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
1898 .dtors sections, so that these pointers get relocated also.
1899 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
1900 and end of the constructors/destructors.
1902 Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1904 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
1905 describes an archive, call bfd_link_add_symbols on each member.
1906 * ldmain.c (whole_archive): New variable.
1907 (main): Initialize it to false.
1908 * ldmain.h: Declare whole_archive.
1909 * lexsup.c (parse_args): Grok --whole-archive switch.
1910 * ld.texinfo, ld.1: Document --whole-archive.
1912 Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
1914 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
1915 using the default emulation.
1917 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
1919 * config/hppaelf.mh (HOSTING_EMU): Likewise.
1921 Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
1923 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
1924 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
1926 Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
1928 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
1930 * ldlex.l: Return -lFILENAME as the token LNAME.
1931 * ldgram.y: Add token LNAME.
1932 (input_list): Treat LNAME like NAME, but pass it to
1933 lang_add_input_file as lang_input_file_is_l_enum.
1934 * ld.texinfo: Document using -lFILENAME in INPUT.
1936 Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1938 * ldlang.c (lang_check): If the architectures are compatible call
1939 bfd_merge_private_bfd_data to let the backend do additional
1943 Tue Mar 7 21:10:28 1995 Doug Evans <dje@chestnut.cygnus.com>
1945 * emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
1946 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
1949 Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
1951 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
1952 all supported emulations.
1954 Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
1956 * ldemul.c (ldemul_list_emulations): New function.
1957 * ldemul.h (ldemul_list_emulations): Declare.
1958 * ldver.c (help): List supported targets and emulations.
1960 Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
1962 * scripttempl/elf.sc (.debug): Relocate to address 0.
1963 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
1964 .debug_sfnames, .line): Likewise.
1966 Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
1968 * emultempl/elf32.em (hold_rel): New static variable.
1969 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
1970 contents whose names begin with ".rel" after hold_rel. Remove the
1971 assertion which checked for unplaced .rel sections. Don't try to
1972 sort the section into place if place->bfd_section is NULL.
1973 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
1974 section beginning with ".rel".
1976 Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
1978 Doc note from pierre@phi.la.tce.com (Pierre Willard):
1979 * ld.texinfo: -X and -x work even if -s or -S are not specified.
1980 * ld.1: Similar change.
1982 Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
1984 * emulparams/gld960coff.sh (COFF_CTORS): Define.
1985 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
1987 Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
1989 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
1990 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
1991 * config/i386-lelf.mt: New file.
1992 * config/i386-gelf.mt: New file.
1994 Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
1996 * configure.in: Match on mips-ecoff, and default to the IDT
1999 Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
2001 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
2002 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
2003 to double the size of the table.
2006 Thu Feb 9 19:03:25 1995 Doug Evans <dje@canuck.cygnus.com>
2008 * emulparms/arcelf.sh (TEMPLATE_NAME): Comment out.
2011 Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2013 * Makefile.in (distclean): Do recursive deletion, since ldscripts
2016 Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
2018 * ldmain.c (main): If trace_file_tries is true, and we are using
2019 an internal linker script, print out the script.
2020 * ldfile.c (try_open): Reindent function. Make the messages about
2021 opening script files more informative.
2023 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
2024 * ld.texinfo, ld.1: Update accordingly.
2026 Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
2028 * ldlang.c (lang_one_common): Adjust references to common symbol
2029 information for new structure.
2031 Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
2033 * ldmain.c (undefined_symbol): Handle section being NULL.
2035 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
2036 * ldexp.c (fold_name): Likewise.
2037 * ldlang.c (print_one_symbol): Likewise.
2038 (lang_finish): Likewise.
2039 * ldmain.c (multiple_common): Likewise.
2040 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
2041 renamed to bfd_link_hash_undefweak.
2043 * scripttempl/alpha.sc: Set address of .data section correctly
2044 when -n or -N is used. Patch from Chris G Demetriou
2045 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
2046 * scripttempl/mips.sc: Similar change.
2048 Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
2050 * ldlang.c (lang_size_sections): Clarify error message when user
2051 specified start addr conflicts with region. Fix resetting of
2054 Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
2056 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
2057 in lang_allocating_phase_enum.
2059 Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
2061 * Makefile.in (distclean): Depend upon clean. Don't bother to
2062 remove files which will be removed by clean. From patch by
2063 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
2065 Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
2067 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
2068 a MIPS target, clobber the size of all but the first input
2069 .reginfo section to be 0, so that lang_size_sections sets the
2070 correct size for the output .reginfo section.
2072 Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
2074 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2075 Remove unused variable is.
2077 Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2079 * configure.in: Add support for powerpc-*-eabi.
2081 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
2084 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
2085 elf.sc, which defines some new symbols PowerPC elf needs.
2087 Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
2089 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
2090 constructor entry is in the absolute section.
2092 Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
2094 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
2095 * config/i386-gnu.mt: New file. Include ELF support.
2097 Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
2099 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
2100 there are any input sections named .gnu.warning, treat them as
2101 containing a warning message to be printed by the linker, and
2102 clobber the size so that the message is not copied into the output
2104 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
2107 Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
2109 * configure.in (w65-*-*): New target.
2110 * Makefile.in: Update.
2111 * scripttempl/w65.sc: New.
2112 * config/coff-w65.mt: New.
2114 Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
2116 * ldlang.c (lang_place_orphans): Don't ignore files with
2117 just_syms_flag set. Instead, put all their sections in
2118 bfd_abs_section_ptr, using the section VMA as the output_offset.
2120 Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2122 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
2123 name `reloc_howto_type', since it's now defined to be const.
2124 * ldlang.c (lang_add_reloc): Ditto.
2125 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
2127 Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
2129 * ldexp.c (fold_binary): Adding or subtracting an absolute value
2130 to a relative value does not require forcing the relative value to
2131 be absolute. Also, reindent function.
2133 Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2135 * ldwrite.c (clone_section): Create a symbol with the
2136 same name as the section.
2138 Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2140 * ld.h (split_by_reloc, split_by_file): New flags.
2141 * ldwrite.c (clone_section, split_sections): New functions.
2142 * lexsup.c (parse_args): Understand new split options.
2145 Tue Dec 13 16:45:18 1994 Doug Evans <dje@canuck.cygnus.com>
2147 * configure.in (arc-elf): New target.
2148 * Makefile.in (earcelf.c): New target.
2149 * config/arc-elf.mt: New file.
2150 * emulparms/arcelf.sh: New file.
2153 Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2155 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
2156 .data segment. They must be writable when creating a shared
2157 library. From H.J. Lu <hjl@nynexst.com>.
2159 Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
2161 * emultempl/miposecoff.em: New file.
2162 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
2163 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
2164 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
2165 provide __runtime_reloc_start and __runtime_reloc_stop if they are
2166 used. Align _fdata to a 16 byte boundary.
2167 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
2169 (emipsidtl.c): Likewise.
2170 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
2172 * ld.h (args_type): Add new field embedded_relocs.
2173 * ldemul.h (ldemul_after_open, after_open_default): Declare.
2174 (ld_emulation_xfer_struct): Add new field after_open.
2175 * ldemul.c (ldemul_after_open): New function.
2176 (after_open_default): New function.
2177 * ldlang.c (lang_process): Call ldemul_after_open.
2178 * lexsup.c (parse_args): Handle --embedded-relocs.
2179 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
2180 new after_open field to after_open_default.
2181 * emultempl/generic.em, emultempl/gld960.em: Likewise.
2182 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
2183 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
2184 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
2185 * ld.texinfo, ld.1: Mention -embedded-relocs.
2187 Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2189 * Makefile.in: Add eshl.o.
2190 * config/coff-sh.mt: Add shl emulation.
2192 Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2194 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
2195 Youngdale <eric@aib.com>.
2197 Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2199 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
2200 * config/i386linux.mh: New file; set HOSTING_CRT0.
2201 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
2202 /usr/lib, since that is already in LIB_PATH.
2204 Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
2206 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
2208 (.data, .bss): If "-N", then place the data/bss just after the end
2209 of the .text section rather than at the default 0x40000000.
2211 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
2214 Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2216 Patches from Eric Youngdale <eric@aib.com>:
2217 * ldlang.c (lang_finish): Don't warn if entry symbol not found
2218 when generating a shared library.
2219 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
2220 attempting to place an orphaned relocation section when generating
2221 a dynamically linked object.
2223 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
2226 Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2228 * ld.h (args_type): Add field export_dynamic.
2229 * lexsup.c (parse_args): Recognize --export-dynamic.
2230 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2231 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
2233 Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2235 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
2236 we allocate common symbols.
2238 Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
2240 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
2241 .rela.fini to the list of .rel* sections.
2243 Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2245 * ldlang.c (load_symbols): Add new argument place. Only accept
2246 linker scripts if place is not NULL. Put commands found in an
2247 assumed linker script into place.
2248 (lookup_name): Pass NULL as place argument to load_symbols.
2249 (open_input_bfds): In lang_input_statement_enum case, pass a place
2250 argument to load_symbols, and store any new statements after the
2253 Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2255 * ldver.c (ldversion): Bump to 2.5.3.
2257 Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2259 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
2261 Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2263 * Makefile.in (check): Add missing "else true" clause.
2265 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
2267 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
2268 entry point to "start". Align at end of each section to 0x200.
2269 Start .text section 0x1000 later. Add _etext, _edata, _end
2272 Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2274 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
2275 composed of different object file formats.
2276 (ldctor_build_sets): If the output format does not support the
2277 reloc, and we are not generating a relocateable link, try getting
2278 the reloc from the input format.
2280 Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
2282 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
2283 (em68knbsd.c): New target.
2285 * config/m68k-nbsd.mt: New file.
2286 * emulparams/m68knbsd.sh: New file.
2287 * configure.in (m68*-*-netbsd*): Use above configs.
2289 Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2291 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
2292 appropriately named static library, stop the search at that
2295 Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2297 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
2298 and esparcnbsd.o; sorted entries.
2299 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
2301 * config/netbsd532.mt: Removed.
2302 * emulparams/netbsd532.sh: Removed.
2304 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
2305 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
2306 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
2307 sparc*-*-netbsd*): Use above configs.
2309 Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2311 * ldmain.c (multiple_common): One of the types may now be
2312 bfd_link_hash_indirect. The old BFD argument may be NULL.
2314 Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2316 * configure.in: Add * at the end of m68k-hp-hpux.
2318 Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2320 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
2323 Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2325 * scripttempl/nw.sc: Gather constructors and destructors and
2326 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
2328 Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
2330 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
2331 (ei386nw.c, eppcnw.c): New targets.
2333 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
2334 scripttempl/nw.sc: New files, for i386 and powerpc netware.
2336 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
2337 instead of {i386,ppc}-elf.
2339 * configure.in (sparc*-*-netware): Removed. There is no such
2342 * ldint.texinfo: Move misplaced `@end iftex'.
2344 Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
2346 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
2347 .rela.dtors to the list of .rel* sections.
2349 Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2351 * ldver.c (ldversion): Update to version 2.5.
2352 * Version 2.5 released.
2354 * configure.in (all_targets): Handle i386-linux*.
2356 Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2358 * scripttempl/aout.sc: Set _etext and __etext to ., not
2359 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
2360 will not break any other system. From Eric Valette
2363 Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2365 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
2366 --verbose to get the old -V behaviour.
2367 * ld.1, ld.texinfo: Document this change.
2369 Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2371 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2372 assertion, since it could fail with a user defined linker script.
2374 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
2375 name in the hash table during the first phase--the hash table does
2376 not even exist at that point, much less have the right value.
2378 * Makefile.in (CC): Define.
2379 (CXX): Move definition, change from g++ to gcc.
2380 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
2381 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
2382 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
2383 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
2384 (.cc.o): Comment out.
2386 (site.exp): Don't create testdir or set tmpdir.
2387 (check): Run checks even if not running native. Use CC_FOR_TARGET
2388 instead of RUNTEST_CC, and likewise for CXX.
2389 (cdtest targets): Comment out.
2390 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
2391 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
2392 * cdtest-main.cc, cdtest.exp: Remove.
2394 Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2396 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
2397 file naming problems.
2398 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
2399 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
2400 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
2401 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
2402 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
2403 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
2404 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
2406 * genscripts.sh: Always search /usr/local/TARGET/lib.
2408 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
2410 Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2412 * configure.in: Handle i386-bsdi* targets like i386-bsd.
2414 Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2416 * lexsup.c (parse_args): Add support for -a for HP/UX
2419 * lexsup.c (parse_args): -c takes an argument.
2421 Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2423 * ld.h (args_type): Add new field endian.
2424 * lexsup.c (parse_args): Handle -EB and -EL by setting
2425 command_line.endian.
2426 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
2427 * ldlang.c (lang_add_output_format): Add arguments big and little.
2428 If command_line.endian is set, use it to select big or little
2429 rather than the default. Changed all callers.
2430 * ldlang.h (lang_add_output_format): Update declaration.
2431 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
2432 LITTLE_OUTPUT_FORMAT.
2433 * emulparams/elf32mipl.sh: Likewise.
2434 * emulparams/mipsbig.sh: Likewise.
2435 * emulparams/mipsbsd.sh: Likewise.
2436 * emulparams/mipsidt.sh: Likewise.
2437 * emulparams/mipsidtl.sh: Likewise.
2438 * emulparams/mipslit.sh: Likewise.
2439 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
2440 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
2442 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
2443 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
2444 * scripttempl/mipsbsd.sc: Likewise.
2446 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
2447 depending upon ldgram.c, so that a parallel make does not try to
2450 * configure.in (mips*el-elf*): New target.
2451 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
2452 (eelf32mipl.c): New target.
2454 * config/mipsl-elf32.mt: New file.
2455 * emulparams/elf32mipl.sh: New file.
2457 Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2459 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
2462 Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2464 * ldmisc.c (vfinfo): Print BFD file name as well as file name
2465 returned by find_nearest_line, in case the file name is something
2466 unhelpful such as a .h file. Handle %u.
2468 Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2470 * ldlang.c (lang_do_assignments): Make sure output statement
2471 has an attached bfd_section before trying to dereference it.
2473 Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2475 * ld.h (ld_config_type): Add new field warn_once.
2476 * ldmain.c (undefined_symbol): Handle -warn-once.
2477 * lexsup.c (parse_args): Recognize -warn-once.
2478 * ld.texinfo (Options): Document -warn-once.
2481 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
2482 name. For %C, print the function name on a separate line, to keep
2483 the length of error messages under control.
2484 * ldmain.c (multiple_definition): Use %D for ``first defined
2486 (undefined_symbol): Use %D for ``more undefined references
2489 * ldmisc.c (multiple_warn): Remove; no longer used.
2490 * ldmisc.h (multiple_warn): Don't declare.
2492 Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2494 * ldlang.c (print_output_section_statement): Print all lines
2497 Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2499 * ldlang.c (load_symbols): Check for archive before object. Use
2500 bfd_check_format_matches, and, if ambiguous, print a list of
2501 matching formats. If file format is not recognized, treat file as
2503 * ldgram.y (yyerror): If assuming an object file is a script,
2504 mention that. Tweak the format of the error messages.
2505 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
2506 guess that this is not actually a script, and just report that the
2507 file format was not recognized.
2508 * ld.texinfo (Options): Admit that -( may be used more than once.
2509 Add note that unrecognized object files are now treated as linker
2512 * ldfile.c (ldfile_input_filename): Make const.
2513 (ldfile_assumed_script): New variable.
2514 (try_open): Change arguments types to const.
2515 (ldfile_find_command_file): Likewise.
2516 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
2517 * ldfile.h: Update declarations for ldfile.c changes.
2518 * ldlex.l: Include <ctype.h>.
2519 (file_name_stack): Change to be const char *.
2520 (lineno_stack): New static variable.
2521 (<<EOF>>): Set lineno as well as ldfile_input_filename.
2522 (lex_push_file): Make name argument const. Initialize
2524 (lex_redirect): Initialize lineno_stack entry.
2525 (lex_warn_invalid): Handle non printable characters nicely.
2526 * ldlex.h (lex_push_file): Declare second argument as const.
2528 * ldgram.y (ifile_p1): Recognize GROUP.
2529 * ldlex.l: Recognize GROUP.
2530 * ld.texinfo (Option Commands): Document GROUP.
2532 Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2534 * config/m68klynx.mh: New file.
2536 Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
2538 * emultempl/hppaelf.em: Add newlines to the error messages.
2540 Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2542 * config/i386lynx.mh: New file.
2543 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
2544 unless CONSTRUCTING.
2546 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2548 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
2549 (GENERATE_SHLIB_SCRIPT): Define as yes.
2550 (DYNAMIC_LINK): Define as false.
2551 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
2552 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
2553 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
2554 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
2557 Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2559 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
2561 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2563 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
2564 .got section is now explicitly handled in elf.sc.
2566 Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2568 * scripttempl/alpha.sc: Redo script to set . outside of sections
2569 and not bother to explicitly specify section addresses.
2570 Explicitly place .sdata section.
2572 Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2574 * scripttempl/m68kcoff.sc: Put .bss in data segment.
2576 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
2577 0, and to only be marked as NOLOAD if relocating.
2578 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
2579 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
2580 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
2581 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
2582 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
2583 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
2584 * scripttempl/sparclynx.sc: Likewise.
2586 Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
2588 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
2589 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
2592 Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
2594 * ld.h (args_type): Add field soname.
2595 * lexsup.c (parse_args): Handle -soname argument.
2596 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
2598 * ld.texinfo: Document -soname.
2600 Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2602 * ldlang.c (lang_check): Don't try to set the architecture if the
2603 input and output files are incompatible. Just warn.
2605 Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2607 * configure.in: Change i[34]86 to i[345]86.
2609 Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2611 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
2613 Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2615 Make the ELF linker handle orphaned sections reasonably. Also,
2616 define __start_SECNAME and __stop_SECNAME around sections whose
2617 names can be represented in C, for the benefit of symbol sets in
2619 * ldemul.h (ldemul_place_orphan): Declare.
2620 (ld_emulation_xfer_type): Add place_orphan field.
2621 * ldemul.c (ldemul_place_orphan): New function.
2622 * ldlang.h (wild_doit): Declare.
2623 * ldlang.c (wild_doit): Make nonstatic.
2624 (lang_place_orphans): Call ldemul_place_orphan.
2625 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
2626 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
2628 (gld${EMULATION_NAME}_place_orphan): New static function.
2629 (gld${EMULATION_NAME}_place_section): New static function.
2630 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
2632 Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
2634 * scripttempl/aout.sc: Add .linux-dynamic after .data.
2636 Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2638 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
2639 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
2641 Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2643 * ldexp.h (exp_get_abs_int): Declare.
2645 Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2647 * ldlang.c (lang_do_assignments): Handle complex AT's better.
2648 * ldexp.c (exp_get_abs_int): New function.
2650 Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
2652 * configure.in: add i960-nindy-coff support.
2654 Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2656 * ldlex.l (yy_create_string_buffer): Handle change to internal
2657 interface in flex 2.4.7.
2659 Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
2661 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
2662 New function; add 0x20 to any use of -Ttext.
2663 (gld${EMULATION_NAME}_create_output_section_statements): New
2665 (ld_${EMULATION_NAME}_emulation): Use the new function
2666 gld${EMULATION_NAME}_create_output_section_statements.
2668 Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2670 * scripttempl/mips.sc: Redo script to set . outside of sections
2671 and not bother to explicitly specify section addresses.
2673 Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2675 * scripttempl/elf.sc: Copy several more relocation sections into
2676 the output. Put .got.plt sections into .got.
2678 Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2680 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
2682 Add a new script operator, PROVIDE, to define a symbol only if it
2684 * ldgram.y (PROVIDE): New token.
2685 (assignment): Accept PROVIDE.
2686 * ldlex.l (PROVIDE): New token.
2687 * ldexp.h (node_type): Add etree_provide to node_class enum.
2688 (exp_provide): Declare.
2689 * ldexp.c (exp_fold_tree): Handle etree_provide.
2690 (exp_provide): New function.
2691 (exp_print_tree): Handle etree_provide.
2692 * ld.texinfo: Document PROVIDE.
2694 * ldlang.c (lang_common): Pass desired alignment to
2695 lang_one_common as power of two.
2696 (lang_one_common): Get common symbol alignment from linker hash
2697 table entry. Treat desired alignment as a power of two.
2699 * ldlang.c (wild_section): Attach all section with the given name,
2700 not just the first one. If there is no name, attach all sections
2701 even if the SEC_IS_COMMON flag is set.
2703 Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2705 * ld.h (args_type): Add field rpath.
2706 * lexsup.c (S_ISDIR): Define if not already defined.
2707 (parse_args): Add support for -rpath. If -R is used to name a
2708 directory, treat it as -rpath for Solaris compatibility.
2709 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2710 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
2711 * ldmain.c (main): Initialize command_line.rpath to NULL.
2712 * ld.texinfo: Document -rpath option.
2714 Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
2716 * emulparams/pc532machaout.sh: New file. Pc532 mach script
2719 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
2721 * config/pc532mach.mt: New file. Pc532 mach target support.
2723 * config/pc532mach.mh: New file. Pc532 mach host support.
2725 * config/netbsd532.mt: New file. Netbsd 532 target support.
2727 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
2729 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
2732 Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2734 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
2735 bfd_abs_section_ptr, not &bfd_abs_section.
2737 * lexsup.c (parse_args): Changed "retain-symbols-file" from
2738 no_argument to required_argument. From djm.
2740 Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2742 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
2743 sections to force a VMA of 0; needed for ELF backends which have
2744 not been converted to the new linker style.
2746 Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
2748 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
2749 it was for the HPUX dynamic loader's use and it creates problems
2752 Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
2754 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
2755 * ldlang.h (lang_do_assignments): Put external decl here.
2756 * emultempl/hppaelf.em: Minor cleanups throughout file.
2757 (hppa_elf_create_output_section_statements): Rewrite.
2758 (hppaelf_finish): Rewrite.
2760 Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2762 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
2764 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
2766 * ld.texinfo: -Bstatic is not ignored.
2768 Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
2770 * ldlex.l: Recognize \r the same as \n.
2772 Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2774 Preliminary support for generating shared libraries, from Eric
2775 Youngdale <ericy@cais.cais.com>.
2776 * genscripts.sh: If the emulation parameter file sets
2777 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
2778 CREATE_SHLIB defined.
2779 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
2780 link_info.shared is set, use the .xs script file.
2781 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
2782 .interp section, and don't include TEXT_START_ADDR in the starting
2783 address of the first section.
2784 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
2785 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
2787 Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
2789 * configure.in: Change --with-targets to --enable-targets.
2791 Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2793 * lexsup.c (parse_args): Add support for new options -( -) with
2794 synonyms --start-group --end-group.
2795 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
2796 (lang_group_statement_type): Define new struct.
2797 (lang_statement_union_type): Add group_statement field.
2798 (lang_enter_group, lang_leave_group): Declare.
2799 * ldlang.c (lang_for_each_statement_worker): Handle
2800 lang_group_statement_enum.
2801 (map_input_to_output_sections, print_statement): Likewise.
2802 (lang_size_sections, lang_do_assignments): Likewise.
2803 (open_input_bfds): Completely rewrite. Now does its own looping,
2804 rather than using lang_for_each_statement. Handle groups.
2805 (lang_process): Update call to open_input_bfds.
2806 (print_group): New static function.
2807 (lang_enter_group, lang_leave_group): New static functions.
2808 * ldfile.c (ldfile_open_file): If the file has already been
2809 opened, just return rather than taking an assertion failure.
2810 * ldver.c (help): Mention new options.
2811 * ld.texinfo: Document new options.
2813 * ldlang.c (end_of_data_section_statement_list): Don't define.
2814 (lang_leave_output_section_statement): Don't set obsolete variable
2815 end_of_data_section_statement_list.
2817 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
2820 * ldlang.c (lang_size_sections): Adjust current region address
2821 even for sections with an explicit address. From
2822 ralphc@pyramid.com (Ralph Campbell).
2824 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
2825 From jrs@world.std.com (Rick Sladkey).
2827 * scripttempl/mipsbsd.sc: Let sections align to their natural
2830 Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2832 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
2834 (lang_abs_symbol_at_beginning_of): Likewise.
2835 (lang_abs_symbol_at_end_of): Likewise.
2836 (lang_size_sections): Use bfd_is_abs_section to check for the
2837 absolute section. Don't try to set the VMA or output_offset or
2838 size of the absolute section.
2839 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
2842 Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
2844 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
2845 when generating relocatable objects.
2847 Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
2849 * emultempl/linux.em: New file providing support for linking
2850 against Linux shared libraries.
2851 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
2852 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
2854 Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2856 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
2857 * ldmain.c (main): Initialize link_info.shared to false. Give
2858 error if link_info.relocateable and link_info.shared are both set.
2860 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
2861 it as naming an emulation to be added to EMULATION_OFILES.
2862 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
2864 * Makefile.in: Rebuilt dependencies.
2865 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
2866 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
2867 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
2868 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
2869 (ei386linux.c): Remove; now in Makefile.in.
2870 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
2871 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
2872 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
2873 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
2874 (eelf64_sparc.c): Remove; now in Makefile.in.
2875 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
2876 (eelf32_sparc.c): Remove; now in Makefile.in.
2878 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
2879 no owner--it might be bfd_abs_section. From Eric Youngdale
2880 <ericy@cais.cais.com>.
2882 * scripttempl/aout.sc: Let sections align to their natural
2885 Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2887 * ldemul.h (ldemul_open_dynamic_archive): Declare.
2888 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
2889 * ldemul.c: Include ldexp.h and ldlang.h.
2890 (ldemul_open_dynamic_archive): New function.
2891 * ldfile.h (ldfile_open_file_search): Declare.
2892 * ldfile.c: Include ldemul.h.
2893 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
2894 argument, not bfd *. Change all callers.
2895 (ldfile_open_file_search): Rename from open_a. Return boolean
2896 argument, not bfd *. Clean up. Change all callers.
2897 (ldfile_open_file): If doing a dynamic link, call
2898 ldemul_open_dynamic_archive rather than assuming the extension of
2899 a dynamic object is ".so".
2900 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
2902 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
2904 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
2906 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
2907 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
2908 Accept -static as a synonym for -non_shared.
2910 Let the user change the dynamic linker used by ELF code.
2911 * ld.h (args_type): Add new field interpreter.
2912 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
2914 * ldmain.c (main): Initialize command_line.interpreter to NULL.
2915 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
2916 the ELF backend to return the .interp section. If
2917 command_line.interpreter is not NULL, set the contents of .interp
2919 * ld.texinfo: Mention -dynamic-linker.
2921 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
2924 * lexsup.c (parse_args): Sort out the option macros and change the
2925 definitions to make it easier to add a new option.
2927 * scripttempl/aout.sc: Define __etext and __edata to go along with
2930 * ld.h (ld_config_type): Add new field traditional_format.
2931 * lexsup.c (parse_args): Add traditional-format to longopts, and
2933 * ldmain.c (main): Initialize config.traditional_format to false.
2934 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
2935 flags of output_bfd according to config.traditional_format.
2936 * ldver.c (help): Mention -traditional-format.
2937 * ld.texinfo: Document -traditional-format.
2939 Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2941 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
2942 they are encountered.
2944 Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
2946 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
2947 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
2949 Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2951 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
2952 _FTEXT, _ETEXT and _FDATA. Dont define _END.
2954 * ldfile.c (open_a): If this is not an archive, try to open it in
2955 the current directory before searching for it.
2957 * lexsup.c (parse_args): Treat -i as a synonym for -r.
2959 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
2960 BLOCK works in a section address as documented.
2962 * ldgram.y (YYDEBUG): Don't define.
2964 Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2966 * emultempl/gld960.em: Pass false for new argument to
2967 ldfile_add_library_path.
2968 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
2970 * emultempl/sunos.em: Only look for .so files if doing a dynamic
2973 Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
2975 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
2977 Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
2979 * Makefile.in (check): Delete ld.new dependency so that a regression
2980 test doesn't trigger a rebuild of the linker.
2982 Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2984 * ldlang.c (map_input_to_output_sections): For lang_address, call
2985 init_os if it hasn't already been called.
2987 Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2989 Add support for SunOS shared libraries.
2990 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
2991 shared library support code.
2992 * emultempl/sunos.em: New file.
2993 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
2994 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
2995 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
2996 (esun3.c): Likewise.
2998 * ldlang.c: Minor formatting cleanups.
2999 (lang_for_each_input_file): New function.
3000 * ldlang.h (lang_for_each_input_file): Declare.
3002 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
3004 (search_head): Declare.
3005 (ldfile_add_library_path): Add new cmdline argument in prototype.
3006 * ldfile.c (search_head): Make non-static.
3007 (search_dirs_type): Move to ldfile.h.
3008 (ldfile_add_library_path): Accept cmdline argument, and save it.
3009 * lexsup.c (parse_args): Pass true for new cmdline argument of
3010 ldfile_add_library_path.
3011 (set_default_dirlist): Likewise.
3012 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
3013 argument of ldfile_add_library_path.
3014 * ldgram.y (ifile_p1): Likewise.
3016 Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3018 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
3019 total_size, superfile and chain.
3020 * ldfile.c (open_a): Don't clear search_dirs_flag.
3021 (ldfile_open_file): Don't try to open superfile. Assert that file
3022 has not already been opened.
3023 * ldlang.c (new_afile): Don't initialize superfile.
3024 * ldmain.c (add_archive_element): Don't initialize subfiles or
3025 chain or superfile. Initialize search_dirs_flag to false.
3027 Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3029 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
3031 Changes from binutils-2.4 release:
3033 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
3034 variables, use whitespace, so scripts don't break.
3036 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
3038 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
3040 * cdtest-bar.cc: Renamed from cdtest-func.cc.
3041 * Makefile.in: Noted change.
3043 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
3044 don't know where that's supposed to come from, or why it's
3047 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
3049 * configure.bat: update to latest makefile.in
3050 * emulpara/go32.sh: set to coff-go32 not aout
3051 * emultemp/generic.em: strength-reduce the structure of
3052 this shell script, since the only available shell for
3053 DOS can't handle complex syntax.
3054 * emultemp/stringify.sed: for "sed -f" instead of inline.
3055 * makefile.in: depend on stringify.sed as well as genscripts.sh
3056 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
3057 * genscripts.sh: empty variables aren't always considered "set",
3058 so set them to "y" instead.
3060 Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3062 * ldlang.c (entry_symbol): Make static.
3063 (lang_add_entry): Add cmdline argument.
3064 * ldlang.h (lang_add_entry): Change prototype.
3065 * ldgram.y (statement_anywhere): Change lang_add_entry call.
3066 * lexsup.c (parse_args): Likewise.
3068 Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3070 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
3071 .reginfo an address.
3072 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
3073 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
3074 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
3076 Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3078 Add support for ELF shared libraries.
3079 * ld.h (ld_config_type): Add field dynamic_link.
3080 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
3081 on attempts to use -r with -relax, -call_shared or -s.
3082 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
3083 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
3084 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
3085 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
3086 OPTION_NON_SHARED by setting dynamic_link field accordingly.
3087 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
3089 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
3090 opening a file with a .so extension first.
3091 * emultempl/elf32.em: New file.
3092 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
3093 (NONPAGED_TEXT_START_ADDR): Likewise.
3094 (TEMPLATE_NAME): Define as elf32.
3096 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
3097 * scripttempl/elf.sc: Add placement for new dynamic sections.
3098 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
3099 outside of any section. Don't use ALIGN(8); just let one section
3100 VMA follow another. Put .dynbss in .bss. Don't mention debugging
3101 sections; they'll be handled correctly anyhow.
3102 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
3104 Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
3106 * Makefile.in (install): Redirect output of ln to /dev/null.
3108 Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
3110 * emultempl/hppaelf.em: Change all references of
3111 .hppa_linker_stubs to .PARISC.stubs.
3112 * scripttempl/hppaelf.sc: Likewise.
3114 Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3116 * ldlang.c (print_output_section_statement): Change ``no attached
3117 output section'' message slightly.
3118 (lang_do_assignments): Don't recurse down if there is no real
3121 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
3122 match corresponding change in emulation templates.
3123 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
3124 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
3126 Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3128 * ldver.c (ldversion): Updated version number.
3130 * cdtest-foo.cc: Use explicit "#pragma implementation".
3131 * cdtest-bar.cc: Renamed from cdtest-func.cc.
3132 * Makefile.in: References to cdtest-func.o changed to
3135 Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3137 Don't create unnecessary output sections.
3138 * ldlang.c (out_bfd_get_section_by_name): Remove.
3139 (wild_section): Call bfd_get_section_by_name rather than
3140 our_bfd_get_section_by_name. Don't call wild_doit if there is no
3142 (lang_create_output_section_statements): Remove.
3143 (map_input_to_output_sections): For several cases, call init_os if
3144 it has not already been called.
3145 (lang_size_sections): If output section was not created, skip it.
3146 (lang_process): Don't call lan_create_output_section_statements.
3147 (lang_place_orphans): Skip files with just_syms_flags set to true.
3148 * ld.texinfo: Document change.
3150 Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3152 * ldlang.c (wild_doit): Don't bother initializing the vma and
3153 section size. Don't special case SEC_SHARED_LIBRARY.
3154 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
3157 Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
3159 * config/go32.mh : New file for Xgo32X.
3161 Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3163 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
3164 before calling einfo, since we are reporting an fopen failure.
3165 From jrs@world.std.com (Rick Sladkey).
3167 * configure.in: Use "e" rather than "em_" as prefix for
3170 Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
3172 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
3174 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
3175 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
3177 * Makefile.in: Changed all generated file names.
3178 (ldemul-list.h): Depend on Makefile, not config.status. Changed
3179 sed patterns to handle new filenames.
3181 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
3182 * configure.in: Adjusted.
3184 Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3186 * Makefile.in (install-info): Don't use "$<*", it doesn't always
3187 work. Instead, check build dir and $srcdir explicitly, and use
3188 `echo' to get all the filenames.
3190 * configure.in (h8300h-*-hms): Changed ld_target name to
3192 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
3195 * config/i960coff.mt: New file.
3196 * emulparams/gld960coff.sh: New file.
3197 * emultempl/gld960c.em: New file.
3198 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
3199 i960coff configuration.
3200 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
3202 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
3203 code isn't included in FSF releases, and it can still be
3204 explicitly selected.
3205 (distclean): Remove site.bak and tmpdir.
3206 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
3207 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
3209 Patches from Ralph Campbell:
3210 * config/mipsbsd.mh: New file.
3211 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
3212 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
3213 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
3216 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
3218 Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3220 * config/m68k.mt (EMUL): Set to m68kaout.
3221 * emulparams/m68kaout.sh: New file.
3222 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
3223 (em_m68kaout.c): New target.
3225 * ldlang.c (lang_size_sections): If dot moves because of an
3226 assignment, don't try to insert a pad into the absolute output
3227 section, just change the address of the default memory region
3230 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
3231 cdtest-ur.out, and cdtest-ur.tmp.
3233 Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3235 * scripttempl/sa29200.sc: Align all sections to four byte
3238 Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
3240 * Makefile.in, configure.in: Support for go32 coff.
3241 * config/i386-go32.mt: New file
3242 * emulparams/i386go32.sh: New file
3243 * scripttempl/i386go32.sc: New file
3245 Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
3247 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
3248 Lynx-specific script templates.
3249 * configure.in (sparclite*-*-coff): Use coff-sparc.
3250 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
3251 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
3252 (ENTRY): Set to __main.
3253 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
3254 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
3255 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
3257 Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3259 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
3260 byte boundary, in case the global constructors do not take up an
3263 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
3264 exist, get crtbegin based on gcc -print-libgcc-file-name.
3265 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
3267 Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3269 * ldlang.c (lang_size_sections): When no address is given for a
3270 section, align it according to its requirements.
3272 Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3274 * Makefile.in (clean, distclean): Remove configdoc.texi.
3276 Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
3278 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
3280 Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3282 * ldlang.c (lang_size_sections): When relaxing, adjust the
3283 position of a padding statement, and adjust dot accordingly.
3285 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
3287 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
3289 Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3291 * scripttempl/i386coff.sc: If relocating, don't put .init and
3292 .fini sections into .text; keep them separate.
3293 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
3294 exist, get crtbegin based on gcc -print-libgcc-file-name.
3295 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
3297 Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
3299 * Makefile.in (check): Set TCL_LIBRARY for runtest.
3301 Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3303 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
3306 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
3307 if building a final executable.
3309 Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3311 * ldmain.c (main): Check the return value of bfd_close.
3313 Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3315 * scripttempl/alpha.sc: Clean up section alignment to ensure that
3316 sections never overlap when using -r.
3318 Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3320 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
3321 changes: get_symtab_upper_bound renamed and returns long,
3322 bfd_canonicalize_symtab returns long, check for error indications.
3324 Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3326 * ldlang.c (print_input_section): For section size, use
3327 _cooked_size if it is non-zero, size otherwise.
3328 (size_input_section): Likewise.
3329 (lang_do_assignments): Likewise (case lang_input_section_enum).
3331 Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3333 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
3334 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
3335 (lang_add_input_file): Pass true to new_afile for add_to_list.
3336 (lookup_name): Remove force_load argument. Changed all callers.
3337 Pass false to new_afile for add_to_list. Split loading of symbols
3338 out into separate function.
3339 (load_symbols): New function split out of lookup_name. Don't load
3340 the symbols if they are already loaded.
3341 (open_input_bfds): For lang_input_statement_enum call load_symbols
3342 rather than lookup_name.
3343 (lang_process): Pass abs_output_section rather than NULL to
3345 (lang_startup): Set real field of first_file to true.
3347 Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3349 * ldlang.c (had_relax): Removed.
3350 (relax_again): New static variable.
3351 (lang_size_sections): Change call to bfd_relax_section to
3352 correspond to BFD changes. Set relax_again appropriately.
3353 (lang_process): Remove #if 0 code. When relaxing, keep calling
3354 lang_do_assignments and lang_size_sections until relax_again
3357 * emultemp/gld960.em: Include libiberty.h
3358 (gld960_before_parse): Pass NULL as final argument to concat.
3360 Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3362 * scripttempl/aout.sc: Force _end and __end to be aligned to a
3365 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
3366 building a bfd_data_link_order, rather than by setting the section
3367 contents immediately.
3369 Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3371 Changes to make -Ur work again.
3372 * ldmain.c (add_to_set): Now takes reloc argument rather than
3373 bitsize. Check config.build_constructors here. If an new hash
3374 table entry is created, mark it as undefined.
3375 (constructor_callback): No longer takes bitsize argument. Pass
3376 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
3377 BFD backend supports it.
3378 (reloc_overflow): Handle a NULL abfd argument.
3379 (reloc_dangerous, unattached_reloc): Likewise.
3380 * ldctor.c: Include ldmain.h.
3381 (struct set_info): Change bitsize field to reloc.
3382 (ldctor_add_set_entry): Now takes reloc argument rather than
3383 bitsize. Don't bother to check config.build_constructors here.
3384 (ldctor_build_sets): Get the size from the reloc howto. If
3385 generating relocateable output, call lang_add_reloc rather than
3387 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
3389 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
3390 (lang_reloc_statement_type): New structure.
3391 (lang_statement_union_type): Add reloc_statement field.
3392 (lang_add_reloc): Declare new function.
3393 * ldlang.c (lang_for_each_statement_worker): Handle
3394 lang_reloc_statement_enum.
3395 (map_input_to_output_sections, print_statement): Likewise.
3396 (lang_size_sections, lang_do_assignments): Likewise.
3397 (print_reloc_statement): New function.
3398 (lang_add_reloc): New function.
3399 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
3401 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
3402 (cdtest-ur, cdtest-ur.out): New targets.
3403 (check-cdtest): Now also check that -Ur works correctly.
3405 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
3407 Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3409 * ldlang.c (lang_process): Move lang_common call before
3410 map_input_to_output_sections, to ensure that any alignment
3411 constraints set by common symbols are copied over to the output
3414 Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3416 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
3417 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
3418 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
3419 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
3422 Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3424 * config/i386bsd.mh: New file.
3426 Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3428 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
3430 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
3431 (DATA_START_SYMBOLS): Define _fdata.
3433 Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
3435 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
3437 Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3439 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
3440 works again. Attach some output symbols to the stub file bfd.
3442 * emultempl/hppaelf.em: Include elf32-hppa.h.
3443 (file_chain): Add decl.
3444 (hppa_look_for_stubs_in_section): Delete decl.
3445 (hppaelf_finish): Reenable code. Do not pass symbols
3446 down to hppa_look_for_stubs_in_section.
3448 Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
3450 * ldmain.c (write_map): Don't define. Removed all references.
3451 Just use map_file or map_filename instead.
3452 (add_archive_element): Use minfo to write map information, not
3454 (constructor_callback): Use fprintf to write map information, not
3456 * ldmain.h (write_map): Don't declare.
3457 * ldgram.y (mri_script_command): Removed reference to write_map.
3458 * ldlang.c (lang_one_common): Likewise.
3459 * lexsup.c (parse_args): Likewise.
3461 Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
3463 * scripttempl/elf.sc: Force all sections to be aligned.
3465 * ldgram.y (section): Reverse the order of memspec_opt and
3466 fill_opt to avoid an ambiguity when both are used.
3467 * ld.texinfo: Changed accordingly.
3469 * ldgram.y: Move include of ldlex.h back with other includes.
3470 * ldlex.h (input_type): Don't initialize enum constants to
3472 * ldlex.l: Use a switch to return the right token based on
3473 input_type, rather than knowing that input_type has a value based
3476 * ldgram.y (dirlist_ptr): Removed; not used.
3477 * lexsup.c: Include ldver.h.
3478 * Makefile.in: Rebuilt dependencies.
3480 Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
3482 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
3483 (ldlang_add_file): call it here instead.
3485 Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3487 * ldgram.y: Include ldlex.h after %token decls, for byacc.
3489 Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3491 * emultempl/hppaelf.em: First attempt to clean this file up.
3492 Add comments in several functions as to their purpose and
3493 how they function (or my current best guess). Clean up horrible
3494 spacing and indention that never should have been accepted in the
3495 first place. Add FIXMEs for issues which need to be resolved.
3496 Disable linker-stub generation until it gets fixed. This allows
3497 the linker to at least work on simple code for testing purposes.
3499 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
3500 it via hppaelf_finish). Prototype moved into ldlang.h.
3501 (lang_process): Move problematic extra call to lang_size_sections
3502 into the PA ELF specific code.
3503 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
3504 lang_size_sections moved here.
3506 Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
3508 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
3509 * config/ppc-elf32.mt: New file.
3510 * emulparams/elf32ppc.sh: New file.
3511 * emultempl/ppc.em: New file.
3512 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
3513 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
3514 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
3516 Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3518 * lexsup.c (parse_args): Use symbolic numbers for long options.
3519 Fix misunderstanding in -Y and -call_shared et al.
3521 Use getopt instead of lex and yacc to parse the command line.
3523 * ld.texinfo (Options): Document changes to option syntax.
3524 * Makefile.in: Update dependencies.
3525 * ldver.c (help): Tweak dashes in usage message.
3526 * ldgram.y (%union): Remove unused members.
3527 Remove %tokens for command line options; add ones for input types.
3528 (command_line): Rules removed.
3529 (file): Instead of command line, recognize an
3530 input type indicator, then use the nonterminal for that type.
3531 (defsym_expr): New nonterminal from code formerly in command_line.
3532 * ldlex.h: Declare parser input type enum and variable.
3533 Don't declare parse_line.
3534 * ldlex.l: Remove unused variables. Make some used ones static
3536 (COMMAND): Start state and its rules removed.
3537 At start of yylex, return input state token if at start of input.
3538 (lex_redirect): Don't need to set yyout.
3539 (ldlex_command): Function removed.
3540 * ldmain.c (main): Instead of calling parse_line, set up the
3541 redirections and call yyparse directly.
3542 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
3544 * lexsup.c: Remove #if 0'd code.
3545 (parse_line): Function removed.
3546 (parse_args): Rewrite to use getopt_long_only.
3547 (set_default_dirlist): New function from code formerly in
3548 ldgram.y:command_line.
3549 (set_section_start): New function.
3550 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
3551 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
3552 compiled-in link scripts in "{" and "}", as the grammar no longer
3555 Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
3557 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
3558 require that it be in $(srcdir).
3560 Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
3562 * ldlang.c (lang_size_sections): Only align section to alignment
3563 required by linker script, not to maximum alignment of input
3566 * ldlang.h (largest_section): Don't declare.
3567 * ldlang.c (largest_section): Don't define.
3568 (size_input_section): Don't set largest_section; not used.
3570 Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
3572 * ldlang.c (new_afile): Pass NULL as last argument to concat.
3574 Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3576 * ldlang.c, ldmain.c: Include libiberty.h.
3578 * ldmisc.h (concat): Don't declare.
3579 * ldmisc.c (concat): Don't define; just use the one in libiberty.
3581 * ld.h (as_output_section_statement): Removed; not used.
3583 Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3585 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
3586 bfd_set_error and new error names.
3588 Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3590 * ldwrite.c (build_link_order): If the cooked size of the section
3591 has been set, use it, for determining link_order size.
3592 (ldwrite): In the error message displayed if bfd_final_link fails,
3593 indicate that it was in fact the final link step that failed.
3595 * ldlang.c (lang_size_sections): Clear bfd_error before calling
3596 bfd_relax_section, in case it returns false but doesn't flag an
3597 error. If an error is returned, indicate which one it is in the
3600 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
3601 it'll get picked up from $(srcdir) if appropriate.
3603 Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3605 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
3606 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
3608 Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3610 * ldlex.l (comment): Increment line number when newline is read.
3612 Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3614 * ldlang.c (lookup_name): Take new argument, force_load. If true,
3615 reload the file even if it is already loaded.
3616 (wild): Call lookup_name with force_load argument of 0.
3617 (open_input_bfds): Call lookup_name with force_load argument of 1.
3618 (print_symbol): Remove declaration of non-existent function.
3619 (print_one_symbol): Return true rather than falling off end.
3621 Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3623 * ldmain.c (main): Use %ld when printing long values.
3625 * scripttempl/elf.sc: Move _edata after the .sdata section.
3626 Permit OTHER_BSS_SYMBOLS to be defined.
3627 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
3629 Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3631 * Rename all "hppaosf" files to "hppaelf".
3632 * Change all "osf" references to "elf" in hppaelf files.
3633 * Makefile.in: Likewise.
3634 * configure.in: Likewise.
3636 Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3638 * ldmain.c (main): Call xatexit, not atexit.
3639 Call xmalloc_set_program_name.
3641 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
3644 Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3646 * emultempl/lnk960.em (append), emultempl/hppaosf.em
3647 (hppaosf_finish): Call xmalloc, not ldmalloc.
3648 * ldmain.c (preserve_output): Function removed.
3649 (main): Do it here instead.
3651 Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3653 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
3654 GNU C specific macros.
3656 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
3657 call to LANG_FOR_EACH_INPUT_SECTION.
3659 Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3661 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
3662 deleted; will use libiberty versions instead.
3663 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
3664 mri.c Makefile.in: Change callers.
3666 * ldmisc.c (vfinfo): Remove cleanup code.
3667 * ldmain.c (remove_output): Put it here (new function).
3668 (preserve_output): New function.
3669 (main): Register remove_output and preserve_output with atexit.
3670 * ldmain.c ldgram.y: Call xexit instead of exit.
3671 * ldmisc.h: Declare xexit.
3673 Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
3675 * Makefile.in: Lots of new H8/500 memory models.
3677 Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3679 * ldlex.l: Removed duplicate rules.
3680 (yywrap): Provide default definition, needed with some versions of
3683 Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3685 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
3686 the archive filename too.
3688 * ldlex.l: Add rule to catch invalid input characters instead of
3689 printing them. Include "ldmain.h" for program_name decl.
3690 (lex_warn_invalid): New function.
3691 * Makefile.in: Add dependency.
3693 Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3695 * Makefile.in (check): Don't bother running any tests of
3696 cross-linker until the test suite no longer assumes native mode.
3698 Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3700 * ldlang.c (print_one_symbol, print_input_section): Print
3701 global symbols in symbol table again.
3703 Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3705 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
3706 exit successfully instead of complaining if no input files are
3709 Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
3711 * Makefile.in: Format variable definitions consistently.
3712 (LD_PROG): Remove unnecessary variables from link command,
3713 change variable LOADLIBES to EXTRALIBS.
3715 * ldmain.c (main): Compute and display total execution time.
3716 * ld.texinfo (-stats): Document the option.
3718 Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3720 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
3723 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
3726 * ldlang.c (relaxing): Removed global variable.
3727 (lang_size_sections): If the canonical symbols have not already
3728 been read in, read them in before relaxing.
3729 * ldlang.h (relaxing): Removed declaration.
3731 Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3733 * ldlang.c (new_afile): Initialize loaded field to false.
3734 (lookup_name): If file was already loaded, don't call the
3735 add_symbols entry point again.
3737 Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3739 * ld.texinfo: Clarify what -T option does.
3741 Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3743 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
3746 Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3748 * ldmain.c (add_archive_element): If trace_files or
3749 trace_file_tries, print file name.
3750 * ldlang.c (lookup_name): Likewise.
3751 (ldlang_add_file): Don't put files on input_bfds list in reverse
3754 * scripttempl/elf.sc: Correct typo.
3756 Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3758 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
3759 their arguments optional, for compatibility with the old GNU ld.
3761 Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3763 * scripttempl/elf.c: Define __bss_start before the .sbss section.
3765 Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3767 * ldmain.c (add_to_set): Add bitsize argument.
3768 (constructor_callback): New function.
3769 (link_callbacks): Add constructor_callback.
3770 * ldctor.c (struct set_info): Add bitsize field.
3771 (ldctor_add_set_entry): Add bitsize argument.
3772 (ldctor_build_sets): Base the size of the elements of the set on
3773 the bitsize, rather than always using LONG.
3774 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
3776 * ld.h (QUAD_SIZE): Define.
3777 * ldgram.y (QUAD): New token.
3778 (length): Handle it.
3779 * ldlex.l: Return QUAD.
3780 * lexsup.c (keywords): Add QUAD.
3781 * ldwrite.c (build_link_order): Handle QUAD.
3782 * ldlang.c (print_data_statement): Handle QUAD.
3783 (lang_size_sections): Likewise.
3784 (lang_do_assignments): Likewise.
3785 * ldexp.c (exp_print_token): Add QUAD to table.
3786 * ld.texinfo: Describe QUAD.
3788 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
3789 since the Alpha doesn't use them.
3791 Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3793 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
3795 Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
3797 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
3798 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
3800 Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3802 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
3803 needed for i386mach. (Should be a no-op on other systems.)
3805 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
3806 (PAGE_SIZE): Don't define; not used.
3808 Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3810 * ldgram.y (yyerror): Make argument const char *, and actually
3811 print it out rather than assuming it is a syntax error.
3812 * ldmisc.h: Change declaration of yyerror.
3813 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
3815 Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
3817 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
3818 exec header offset, since the exec header isn't loaded.
3819 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
3821 Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3823 A major rewrite to move the bulk of the linker into BFD so that
3824 more efficient backend code can be written for specific object
3826 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
3827 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
3828 * ldctor.c, ldctor.h: Complete rewrite.
3829 * ldwrite.c, ldwrite.h: Complete rewrite.
3830 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
3831 link_info.strip instead. Changed all uses.
3832 (discard_locals_type, discard_locals): Removed. Use
3833 link_info.discard instead. Changed all uses.
3834 (ld_config_type): Removed relocateable_output field; use
3835 link_info.relocateable instead; changed all uses. Added stats
3837 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
3838 set_loader_symbol): Removed.
3839 * ldexp.h (node_class): Added etree_rel.
3840 (etree_type): Added rel field.
3841 * ldexp.c (exp_print_token): Bracketed table initialization.
3842 (exp_relop): New function.
3843 (fold_name): Use linker hash table rather than ldsym functions.
3844 (exp_fold_tree): Likewise. Also, handle etree_rel case.
3845 (exp_print_tree): Handle etree_rel.
3846 * ldgram.y (strip_symbols, discard_locals): Removed.
3847 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
3848 (REL): New token. Does not appear in grammar, but needed for
3850 (file): Don't call lang_final; it's called by main anyhow.
3851 * ldlex.l: Accept -stats and -no-keep-memory options.
3852 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
3853 * ldlang.c: Consistently use fill_type for fill argument.
3854 (lang_init_script_file, script_file): Removed.
3855 (create_object_symbols): Removed. Use
3856 link_info.create_object_symbols_section instead. Changed all
3858 (lang_add_keepsyms_file): Removed.
3859 (lookup_name): Call bfd_link_add_symbols instead of
3860 ldmain_open_file_read_symbol.
3861 (wild): Don't iterate over script_file.
3862 (open_output): Create link hash table.
3863 (lang_place_undefineds): Rewrote.
3864 (lang_size_sections): Handle relaxing (doesn't work yet).
3865 (lang_relocate_globals): Removed.
3866 (lang_finish): Use link hash table rather than ldsym functions.
3867 (lang_common): Rewrote.
3868 (lang_one_common): New function.
3869 (ldlang_add_file): Add file to link_info.input_bfds list. Set
3871 (create_symbol): Removed.
3872 (lang_process): Don't call lang_init_script_file. Call
3873 ldctor_build_sets rather than find_constructors. Don't call
3874 lang_relocate_globals.
3875 (lang_abs_symbol_at_beginning_of): Rewrote.
3876 (lang_abs_symbol_at_end_of): Rewrote.
3877 * ldmain.c (had_y): Removed.
3878 (lprefix, lprefix_len): Removed; use link_info fields instead.
3880 (multiple_def_count, commons_pending, undefined_global_sym_count,
3881 total_symbols_seen, total_files_seen): Removed.
3882 (link_callbacks, link_info): New variables.
3883 (main): Initialize link_info. Don't call init_bfd_error_vector or
3884 ldsym_init. Don't set now unused variables. Handle -stats.
3885 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
3886 (add_ysym): Rewrote.
3887 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
3888 search_library, gnu960_check_format, decode_library_subfile,
3889 linear_library, symdef_library, clear_syms, subfile_wanted_p):
3891 (add_keepsyms_file, add_archive_element, multiple_definition,
3892 multiple_common, add_to_set, warning_callback, undefined_symbol,
3893 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
3895 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
3896 require symbols for %C; look them up instead.
3897 * emultempl/hppaosf.em: Pass link_info to
3898 hppa_look_for_stubs_in_section.
3899 * Makefile.in: Rebuilt dependencies.
3900 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
3902 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
3904 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
3905 ldlang.h and ldctor.h.
3907 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
3908 declarations of free and malloc from flex output. Change malloc
3909 to ldmalloc in flex output.
3911 Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
3913 * ldmain.c (lprefix): Change default from a char to a string
3914 with only one character.
3915 (lprefix_len): Set default to one.
3917 * ldmain.h (lprefix_len): Declare.
3919 * ldsym.c (write_file_locals): Use strncmp rather than a character
3920 comparison for lprefix.
3922 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
3925 * emultmpl/hppaosf.em: Include ldexp.h.
3926 (before_parse): Set lprefix and lprefix_len correctly.
3928 Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3930 * ldlex.h: Don't declare yywrap if it is a macro.
3931 * ldlex.l: Include sysdep.h.
3932 * ldlang.c (lang_for_each_statement_worker,
3933 lang_for_each_statement): Forgot to use PARAMS.
3935 Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3937 * Makefile.in: Added .PHONY targets where appropriate. Added some
3939 (gcclibdir, version): Removed unused variables.
3940 (DEP): New variable, set to mkdep.
3941 (ALL_CFLAGS): New variable. Used in .c.o target.
3942 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
3944 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
3945 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
3946 mostly obsolete variables. Adjusted remaining uses.
3947 (DEF_EMUL): Removed variable.
3948 (ldmain.o): Handle undefined EMUL error correctly.
3949 (ldemul-list.h): Depend on config.status rather than Makefile.
3950 Create via temporary file.
3951 (ver960.c, roll, make): Removed obsolete targets.
3952 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
3954 * dep-in.sed: New file, used when rebuilding dependencies.
3956 Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
3958 Made many changes to eliminate gcc warnings. Made various
3959 cosmetic changes, declared various things in header files, removed
3960 various extern declarations from .c files. No substantive
3963 * ldlang.c (lang_process): Ifdef out final call to
3964 lang_size_sections again (reverting change of Nove 2), since it
3965 breaks the Sun4 linker.
3967 Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3969 * configure.in (alpha-*-netware*): New target; use alpha.
3971 Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
3973 * configure.in: Group targets by CPU. Merge some m68k target
3974 entries with different CPU specs that use the same ld_target
3977 * configure.in: Add sparc*-*-coff.
3978 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
3979 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
3980 (em_coff_sparc.c): Add dependencies and build rules.
3982 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
3984 Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3986 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
3988 (command_line_option): Accept and ignore them (for now).
3989 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
3990 where n is a number.
3992 Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3994 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
3995 not in bfd_com_section, create the section in the BFD so that it
3996 can be placed in the right output section.
3998 Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4000 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
4001 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
4002 (OTHER_READONLY_SECTIONS): Define for .reginfo.
4003 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
4004 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
4005 Move OTHER_READONLY_SECTIONS after all the other readonly
4006 sections. Don't use DATA_ADDR twice.
4008 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
4009 p is in a common section, make sure the BFD has a section of that
4012 * ldlang.c (lang_common): Add newline to error message.
4014 Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
4016 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
4017 Lynx-specific script instead of m68kcoff.
4018 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
4019 (ENTRY): Define as __main.
4020 (TEXT_START_ADDR): Define as 0.
4021 (PAGE_SIZE): Define as 0x1000.
4022 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
4023 * scripttempl/m68klynx.sc: New file.
4025 Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4027 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
4028 arguments rather than treating them as emulation names.
4030 Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
4032 * configure.in: Support x86 unixware and netware plus generic netware.
4034 Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4036 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
4039 Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
4041 * Makefile.in (distclean): Don't delete dvi or info files.
4042 (ld.info): Update dependency list.
4043 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
4045 Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4047 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
4048 Set output_filename instead of creating a new node.
4049 (open_output): Don't set output_filename.
4050 (lang_final): Create the new node here.
4051 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
4053 Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4055 From Pete Hoogenboom (hoogen@cs.utah.edu):
4057 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
4058 edata, _edata, end): Add definitions of these symbols.
4059 (__end): Remove definition of this symbol.
4060 (__data_start): Move definition of this symbol.
4062 * emultempl/hppaosf.em: Various fixes and support for linker stub
4064 (hppaosf_finish, hppaosf_search_for_padding_statements,
4065 hppaosf_create_output_section_statements): New functions in
4066 support of linker stub generation.
4067 (ld_hppaosf_emulation): Redefine to include new
4068 emulation-specific routines.
4070 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
4071 Pass abs_output_section rather than NULL to avoid invalidating
4074 Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4076 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
4077 (em_i386mach.c): New rule.
4078 * configure.in (i[34]86-*-mach*): New case.
4079 * config/i386-mach.mt: New file.
4080 * emulparams/i386mach.sh: New file.
4082 Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4084 * ld.h (flag_is_*): Removed macros.
4085 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
4086 Consistently check the BFD symbol flags directly, rather than
4087 using file_is_* macros.
4089 Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
4091 * configure.in (sparc*-*-lynxos*): New target.
4092 * Makefile.in: Add rule for em_sparclynx.c.
4093 (ALL_EMULATIONS): Add Lynx emulations.
4094 * config/sparc-lynx.mt: New file.
4095 * emulparams/sparclynx.sh: New file.
4096 * scripttempl/sparccoff.sc: New file.
4098 Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4100 * Makefile.in: Add dependency for $(EMULATION_OFILES).
4102 Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4104 * relax.c (write_relax): Check return value of bfd_seclet_link.
4106 Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
4108 * ldlang.c (delete_output_file_on_failure): New variable.
4109 (open_output): Set it after bfd open succeeds.
4110 * ldmisc.c (vfinfo): Test it.
4112 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
4114 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
4117 * ldemul.c: Support was added to allow emulation-specific
4118 processing to occur. This support was added primarily for linker
4119 stub generation in the elf32-hppa gld.
4120 (ldemul_finish, ldemul_create_output_section_statements): New
4122 * ldemul.h: Support was added to allow emulation-specific
4123 processing to occur. (As described above.) Added finish and
4124 create_output_section_statements fields to
4125 ld_emulation_xfer_struct structure.
4126 * ldlang.c: Add calls to emulation-specific routines.
4127 (lang_process): Add call to
4128 ldemul_create_output_section_statements function.
4129 (lang_process): Add call to a emulation-specific routine (and
4130 some processing after the call).
4132 Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
4134 * configure.in: mips*- instead of mips-, mips*el changes
4136 Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4138 * configure.in (alpha-*-osf*): New target; use alpha.mt.
4139 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
4140 (em_alpha.c): New target; use alpha.sh and alpha.sc.
4141 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
4142 * config/alpha.mt: New file.
4143 * emulparams/alpha.sh: New file.
4144 * scripttempl/alpha.sc: New file.
4146 Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
4148 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
4149 types of different sizes (eg: 64 and 32 bits), so coerce.
4150 * ld.h (ALIGN_N): Add warning about usage.
4152 Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4154 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
4155 which we already have a definition, rather than checking in
4156 several different places whether the symbol is weak.
4158 Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4160 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
4161 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
4162 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
4163 expanded within them.
4164 * config/mipsb-elf32.mt: New file.
4165 * emulparams/elf32mipb.sh: New file.
4166 * Makefile.in (em_elf32mipb.c): New target.
4168 Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
4170 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
4171 lang_input_file_is_search_file_enum so objects brought in using
4172 INPUT() do a path lookup.
4174 Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
4176 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
4177 instead of {i386,m68k}-coff.
4178 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
4179 * config/i386-lynx.mt: New file.
4180 * config/m68k-lynx.mt: New file.
4181 * emulparams/i386lynx.sh: New file.
4182 * emulparams/m68klynx.sh: New file.
4184 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
4185 but defaulting to _start.
4187 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
4188 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
4191 Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
4193 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
4194 HOSTING_LIBS for testing.
4196 Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4198 Finish up support for i386-sysv4 (without shared libraries):
4199 * ld.h (flag_is_weak): Define.
4200 * ldlang.c (print_symbol): Mention whether symbol is weak.
4201 (print_input_section): Print weak symbols as globals.
4202 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
4203 (enter_global_ref): Do not warn if a weak symbol redefines a
4204 global symbol. Do not let a weak symbol redefine a common symbol.
4205 (enter_file_symbols): Treat weak symbols as global symbols.
4206 (subfile_wanted_p): Do not pull in an object file from a archive
4207 just to resolve an undefined weak symbol.
4208 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
4209 error; the error might be that malloc has run out of space.
4210 * ldsym.c (write_file_locals): Treat weak symbols as global.
4211 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
4213 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
4214 * config/i386-elf.mt: New file; set EMUL to elf_i386.
4215 * emulparams/elf_i386.sh: New file.
4216 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
4217 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
4218 (ALL_EMULATIONS): Add em_elf_i386.o.
4219 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
4220 (em_elf_i386.c): New target, like other em_*.c targets.
4221 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
4222 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
4223 nonempty, and configured for native, add it to LIB_PATH.
4225 Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
4227 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
4228 Added statements to pass stab and stabstr sections through and
4229 mark them as NOLOAD, which makes GDB happier.
4231 Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
4233 * configure.in: Accept m68k-lynx-lynxos config.
4235 * Makefile.in: Use $(SHELL) to run genscripts.sh.
4237 Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
4239 * config/coff-h8300.mt: Add EMUL=h8300h.
4241 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
4243 Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
4245 * Makefile.in: Changed CXX back to g++.
4247 Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
4249 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
4251 Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4253 * Makefile.in (TAGS): Use shell wildcards.
4255 Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
4257 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
4259 Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
4261 * ld.texinfo: re-enable included config file; conditionalize doc
4262 for -oformat to interact properly with SingleFormat doc config
4263 var; rename @up/@down to @raisesections/@lowersections.
4265 Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4267 * configure.in: recognize m88110.
4269 Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4271 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
4272 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
4273 ELF emulation is "elf32-hppa" not "elf-big".
4274 (hppaosf_before_parse): Remove unneeded processing of environment
4276 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
4277 .text segment of output file.
4278 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
4280 Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4282 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
4285 * ldlang.c, ld.h: updated copyright.
4287 Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4289 * ldlang.c (open_output, lang_check): Check return value of
4292 Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
4294 * scripttempl/h8500.sc: Start all sections in a different segment.
4295 * scripttempl/z8ksim.sc: Handle constructors
4297 Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
4299 * Makefile.in: revert earlier changes back to execute runtest
4300 with make check. cdtest and bootstrap now function as they
4301 did within the Makefile.
4303 Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4305 * Makefile.in: Update dependencies.
4307 * configure.in: Set EMULATION_OFILES in Makefile based on
4308 --with-targets option.
4310 Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
4312 * Makefile.in: check targets reimplemented to old way.
4314 Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
4316 * config/i386v.mh, config/irix4.mh: Use gcc
4317 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
4318 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
4319 bfd/configure.host change.
4321 Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4323 * scripttempl/elf.sc: Handle .line and .debug* sections.
4325 * ldlex.l: Use bfd_scan_vma, not strtoul.
4327 Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4329 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
4330 Remove inital caps in some error messages, change "can't" to
4331 "cannot", add missing colons.
4332 * ldmisc.c (vfinfo): Print "%%" as a single %.
4333 For '%' followed by unrecognized character, print them both
4334 verbatim instead of expecting a char * arg.
4335 For '%C', don't put the function name in parens.
4337 * ldexp.c (invalid): Pass "%%", not "% ".
4339 Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4341 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
4342 (BSS_VAR): Removed; now always define _fbss.
4343 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
4346 Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
4348 * configure.in: z8k-coff is the same as z8k-sim
4350 Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
4352 * testsuite/lib/ld.exp: new file
4353 * testsuite/config/unix-ld.exp: new file
4354 * testsuite/ld.bootstrap/bootstrap.exp: new file
4355 * Makefile.in: add dejagnu support for make check
4357 Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4359 * ldlex.l (comment): Add missing newline in message.
4360 * ldindr.c (add_indirect): Ditto.
4361 * ldexp.c (exp_fold_tree): Ditto.
4363 Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4365 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
4368 * ldmisc.c (multiple_warn): New function.
4369 * ldmisc.h: Declare it.
4370 * ldmain.c (enter_global_ref): Call it.
4371 * ld.h (ld_config_type): Add warn_common.
4372 * ldlex.l, ldgram.y: Set it with -warn-common option.
4373 * ldver.c (help): Document it.
4375 Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4377 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
4378 target-specific sections, and for changing data section vma.
4380 Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4382 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
4383 terminals, for Solaris.
4384 (dirlist_ptr): New static variable.
4385 (command_line_option): Accept new options.
4387 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
4390 * config/sun4sol2.mt: Pass emulation name without ".sh".
4392 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
4393 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
4395 Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4397 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
4398 .dtors, .data1, .rodata1 sections, instead of combining them into
4399 other sections. For `-r', set all section start addresses to
4402 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
4403 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
4404 (MAXPAGESIZE): Renamed from PAGE_SIZE.
4406 Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4408 * genscripts.sh: If this is the default emulation, set
4410 * emultempl/*.em: Use it to determine whether to compile in the
4413 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
4414 genscripts.sh. Pass the current emulation name without ".sh" on
4416 * genscripts.sh: Take an default emulation arg.
4417 Use the current emulation name as EMULATION_NAME.
4418 Make default lib path for cross-compiling ':', not null.
4419 * emulparams/*.sh: Don't set EMULATION_NAME.
4420 * ldemul.c (ldemul_get_script): Take isfile arg.
4421 Pass it to emulation's get_script function.
4422 * ldemul.h: Adjust get_script prototypes.
4423 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
4425 * ldfile.h: Declare it.
4426 * ldgram.y: Accept a script on the command line again,
4427 for parsing compiled-in scripts.
4428 * ldmain.c (main): If ld script is a file, parse it as a -T
4429 option, otherwise parse it directly.
4430 * emultempl/*.em (*get_script): Return the scripts themselves if
4431 this is the default emulation; otherwise return their file names.
4432 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
4434 * emulparams/m88kbcs.sh: Use it.
4436 * ld.h (ld_config_type::unix_relocate): Remove unused element.
4438 Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4440 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
4441 there's no change log entry yet, tsk tsk) from the list of
4442 emulations compiled in until Mark gets around to checking in
4443 emulparams/i386linux.sh.
4444 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
4445 changed, this file gets updated.
4447 Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
4449 * ldgram.y (OPTION_Lfile): New token.
4450 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
4451 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
4453 Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
4455 * configure.in: h8/300h support needs own .mt file.
4456 config/coff-h8300h.mt: New file.
4458 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4460 * ldmain.c: Don't include sys/stat.h; it already got included
4461 somewhere along the way.
4463 Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
4465 * Makefile.in: Add h8300h support.
4466 emulparams/h8300h.sh: New file.
4467 scripttempl/h8300h.sc: New file.
4469 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4471 * ldfile.c (ldfile_open_file): In error message, use the name the
4472 user gave (e.g., "-lc"), rather than the base file name.
4474 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
4476 * ldmain.[ch]: Remove initial Q_ from function names.
4477 * ldexp.c, ldindr.c, ldlang.c: Change callers.
4479 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
4481 * ldlang.c (lang_process): Move loading of default script from
4482 here to main. Add a "/" to start of script name to prevent
4483 finding it in "." first.
4485 * ldmain.c (set_scripts_dir): Don't look in "." first.
4487 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
4490 Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
4492 * Makefile.in (em_m88kbcs.c): Correct dependency.
4493 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
4494 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
4495 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
4497 Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4499 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
4500 main.c (main): Print the errno string in the error message.
4502 Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
4504 * configure.in: Accept h8300h for target cpu.
4506 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
4507 present (demangle is smart enough to know whether to do it or not).
4509 Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4511 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
4512 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
4514 * ldlang.c (lang_process): Use sizeof instead of magic constant.
4516 * ldmain.c (get_emulation, check_for_scripts_dir,
4517 set_scripts_dir): New functions.
4520 Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4522 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
4523 Create symbol "end" instead of "__end". Comment out some parts
4524 that may not be needed (yet) for elf.
4526 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
4528 Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4530 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
4532 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
4533 when no prototype is being supplied.
4534 (ldmalloc, ldrealloc): Size argument is now size_t.
4536 * ldmisc.c (finfo): New function, accepts FILE* argument.
4537 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
4538 without leading zeros.
4539 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
4540 bfd_vma value, instead of fprintf(%x) which won't hold a long long
4542 (concat, buystring): String lengths are size_t.
4543 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
4545 * ldlang.c (new_statement): Size argument is now size_t. Added
4546 forward declaration with prototype.
4548 Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4550 * ldgram.y (OPTION_v): Don't turn on verbose output.
4552 Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4554 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
4557 Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
4559 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
4560 collect2 doesn't look for gld any more anyhow.
4562 Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
4564 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
4565 now have a non NULL srefs_chain.
4567 * config/hp300hpux.mt: Use emulation hp3hpux rather than
4568 hp300hpux, since the latter does not exist.
4570 Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4572 * genscripts.sh: Put the scripts in the ldscripts directory, not
4574 * configure.in (ldscripts): Make, instead of emulations.
4575 * Makefile.in (scriptdir): Take off the "ld" part.
4576 (install, clean, distclean): Use ldscripts, not emulations.
4577 In tests, don't pass -Lemulations.
4578 Don't pass tooldir/lib to genscripts.sh.
4579 * genscripts.sh: Don't take tooldir/lib arg.
4580 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
4581 default script file.
4583 Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
4585 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
4587 Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
4589 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
4591 Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4593 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
4594 run in parallel without colliding on yacc's static file names.
4595 Without the stub rule, make will try to start two yacc's
4596 concurrently which fails because of yacc's static file names.
4598 Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
4600 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
4603 Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4605 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
4606 different from libdir.
4608 * Makefile.in (scriptdir): Base on tooldir, not datadir.
4610 Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4612 * ldver.c (help): New function.
4613 * ldver.h: Declare it.
4614 * ldlex.l, ldgram.y: Recognize new options --help and --version.
4616 Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
4618 * Makefile.in (INCLUDES): Don't need ../include any more.
4620 Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4622 * ldlex.l, ldgram.y: Support new -oformat option.
4623 Remove attempt at supporting script fragments on the command line.
4624 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
4625 * mri.c (mri_format), ldgram.y: Change callers.
4626 * ldlang.h: Change prototype.
4628 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
4630 * Makefile.in: canonicalize install.sh; for use within
4631 this directory (and subdirs)
4633 Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4635 * ldgram.y: Tweak grammar to make reporting of invalid options work.
4637 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
4640 Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4642 * ldfile.c (ldfile_open_command): Don't try .ld extension.
4643 It wasn't documented (or likely used) and wastes time.
4644 (try_open): If EXTEN is empty, don't try it.
4646 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
4647 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
4648 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
4649 with normal function declarations.
4651 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
4652 Move *.sc-sh to scripttempl/*.sc.
4653 * {emultempl,emulparams,scripttempl}/README: New files.
4654 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
4655 removed, replaced with generic.em.
4656 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
4657 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
4659 * *.em (*_get_script): Return script name instead of script contents.
4660 * ldlang.c (lang_process): Change caller.
4662 * ldlex.l, ldgram.y: Recognize -m option.
4663 Check for input files after *all* options in grammar.
4664 * ldmain.c (main): Check for -m options. Add default directory
4667 * mkscript.c: File removed.
4668 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
4669 to add to the default LIB_PATH.
4670 Look for input files in the new subdirectories.
4671 Create the scripts in emulations subdirectory and don't filter
4672 them through mkscript.
4673 * configure.in: Make the emulations subdirectory.
4675 * Makefile.in: Account for all of the above changes.
4676 Remove unused .SUFFIXES. Get libgcc.a path with gcc
4677 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
4678 Put CFLAGS last in the compilation rules.
4679 Add -I../bfd to INCLUDES so sysdep.h is found.
4681 Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4683 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
4685 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
4686 dependent on RELOCATING, not RELOCATION.
4687 * hp3hpux.sh (SHLIB_PATH): Define it.
4689 Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4691 * ldfile.c (try_open): If opening without the extension fails,
4692 try with the extension even if -v or -V was given.
4693 had_script is imported (from ldgram.y), not exported.
4695 Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
4697 * Makefile.in: remove parentdir support, use INSTALL_XFORM
4699 Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
4701 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
4702 * ldgram.y (statement_list_opt): New nonterminal, either empty or
4704 (section): Use statement_list_opt, not statement_list.
4705 * m68kcoff.sc-sh: Gather constructors and destructors and define
4706 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
4707 * sa29200.sc-sh: Gather constructors and destructors and define
4708 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
4710 Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
4712 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
4713 * configure.in: No longer need to configure to get sysdep.h.
4715 Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4717 * Makefile.in: remove install:all and install-info:info
4718 dependencies (these cause some spurious rebuilds at 'make install'
4721 Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
4723 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
4724 (mips-idt-ecoff*): Added trailing '*'.
4725 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
4726 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
4727 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
4729 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
4730 incorrect definitions.
4732 Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
4734 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
4735 symbols, unless stripping.
4737 Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
4739 * Makefile.in: configure looks for ####, so remove lines with many
4741 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
4742 and HOSTING_LIBS correctly so that ``make check'' will work.
4744 Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
4746 * mips.sc-sh: Define _etext, _edata, and _end, in addition
4747 to etext, edata, and end. Needed for IRIX 4.0.5F.
4748 Patch from mwp@iconix.oz.au (Michael Paddon).
4750 * Version 2.2.1 released.
4752 Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4754 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
4755 * mipsbsd.sh (EMULATION_NAME): Use new file name.
4757 Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4759 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
4762 * Version 2.2 released.
4764 Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4766 * ldver.c (ldversion): Bump version number to 2.2.
4768 Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
4772 Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
4774 * mips.sc-sh: Don't define BSS_VAR unless relocating.
4776 Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
4778 * Makefile.in (mkscript.o, mkscript): Build mkscript via
4779 mkscript.o, rather than directly from mkscript.c.
4781 Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4783 * configure.in: Look for ${target_makefile_frag} relative to
4784 ${srcdir}, not relative to build directory.
4786 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
4787 * configure.in: Recognize hppa*-hp-osf.
4788 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
4789 (em_hppaosf.c): Build it.
4790 * config/hppaosf.mh, hppaosf.mt: New files.
4792 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
4793 some system header files. All uses changed.
4795 * configure.in: Recognize i386-aix configurations as i386-coff
4798 * configure.in: Recognize m68*-*-hpux.
4799 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
4800 the value of STACKZERO.
4801 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
4802 (em_hp3hpux.c): Build it.
4803 * hp3hpux.sh, config/hp300hpux.mt: New files.
4805 Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
4807 * mips.sc-sh: Put constructors in the .data section.
4808 * Makefile.in (cdtest): Added dependency on ld.new.
4810 Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
4812 * Makefile.in: Change definition of $(tooldir) to match FSF.
4813 * vax.sh, config/vax.mt, configure.in, Makefile.in:
4814 Support VAX Ultrix and BSD.
4816 Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4818 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
4820 Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
4822 * ldlang.h (struct memory_region): Change `length' and
4823 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
4824 * ldlang.c, mri.c: Corresponding changes, plus lint.
4826 Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
4828 * configure.in: For all i386 targets, accept i486 as well.
4830 Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
4832 * ldlang.c (wild_doit): Preserve all flags for a
4833 SEC_SHARED_LIBRARY section.
4834 (size_input_section): Consider any SEC_HAS_CONTENTS section when
4835 computing largest_section.
4837 Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
4839 * ldlang.c (lang_output_section_statement_lookup): Initialize all
4840 fields of newly created structure.
4842 Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
4844 * ldmain.c (g_switch_value): New variable.
4845 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
4846 (command_line_option): Accept -G and set g_switch_value.
4847 * ldlex.l (COMMAND): Accept -G.
4848 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
4850 Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4852 Support for linking and loading at different places:
4854 * ldlex.l: Add "AT" keyword.
4855 * ldgram.y: Cleanup, and parse AT.
4856 * ldlang.c (print_output_section_statement): Print output address
4857 of section in map. (lang_size_sections): Fill sections' lma with
4859 * ldlang.h (lang_output_section_statement_type): Add load_base
4862 * ldindr.c (add_indirect): Keep more information in the alias
4864 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
4865 attribute from an input section.
4866 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
4867 default. (Q_enter_file_symbos): Indirect symbols now are known by
4868 their section, not a special symbol flag.
4869 * ldsym.c (write_file_locals): Indirect symbols aren't local.
4870 (write_file_globals): Write the mapping for an indirect symbol.
4871 * relax.c (build_it): When forced to write a NEVER_LOAD section,
4874 Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
4876 * ld.texinfo: changes for q1
4878 Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4880 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
4882 Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4884 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
4886 Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
4888 * mips.sc-sh: Added variables which may be overridden by a
4890 * mipsidt.sh: New file; emulation for IDT MIPS board.
4891 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
4892 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
4893 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
4894 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
4896 Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4898 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
4900 * i386bsd.sh, config/i386bsd.mt: New files.
4901 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
4903 Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
4905 * mri.c: Add extern declaration of strdup.
4906 * ldsym.c (KEEP macro): Add spaces around '=' for the
4907 sake of old (e.g. PCC) compilers.
4909 Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
4911 * ldver.c: Bump to version 2.1.
4913 Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4915 * ldgram.y: allow section types without address expressions.
4916 * ldlang.c (lang_relocate_globals): avoid possible hang with
4917 undefined but unreferenced symbols.
4918 * relax.c (relax_section): don't complain if the script file isn't
4919 relaxable but -relax is set
4921 Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4923 * configure.in: go32 is the 3rd part of the triple, not the 2nd
4925 Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
4927 * mipsbig.sh: New file. Big endian MIPS emulation.
4928 * config/mips-big.mt: New file. Use mipsbig emulation.
4929 * configure.in (mips-sgi-irix*): Use target mips-big.
4930 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
4931 (em_mipsbig.c): New target. Uses mipsbig.sh.
4933 Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
4935 * mips.sc-sh: Put .scommon sections into .sbss section.
4937 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
4938 rather than always putting them in bfd_com_section.
4939 * ldlang.c (lang_common): If a common symbol is not in
4940 bfd_com_section, put in a section of the same name, rather than
4941 always putting it in section COMMON.
4943 Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
4945 * ldmain.c (subfile_wanted_p): If we already have a common
4946 definition of a symbol, don't necessarily pull in an object file
4947 that provides a non-common definition.
4949 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
4950 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
4952 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
4953 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
4955 Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
4957 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
4960 Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
4962 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
4963 checking for equality to bfd_com_section.
4965 Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
4967 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
4968 targets, linker script.
4969 * mipslit.sh: New file. Little endian MIPS emulation.
4970 * config/mips-lit.mt: New file. Use mipslit emulation.
4971 * configure.in (mips-dec-ultrix*): Use target mips-lit.
4972 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
4973 (em_mipslit.c): New target. Uses mipslit.sh.
4975 Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
4977 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
4978 $(tooldir)/bin/gld, so that gcc can find it with or without
4981 Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4983 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
4984 write_norel. All linking is now done via write_relax. Call
4985 ldsym_write before calling write_relax.
4986 * relax.c: Added copyright.
4987 (write_relax): Renamed from write_relaxnorel. Added relocateable
4988 argument. seclet_dump renamed to bfd_seclet_link.
4989 * relax.h: Added copyright.
4991 Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4993 * ldmain.c (decode_library_subfile): Patch from
4994 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
4996 Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4998 * config/vxworks960.mt renamed to config/i960.mt
5000 * configure.in: sparc-aout emulates a sun4, as does
5001 sparc*-vxworks, i960-nindy uses gld960 emulation
5003 Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5005 Fix support for NOLOAD, add INCLUDE
5006 * ldfile.c (ldfile_open_command_file): pass file name to
5008 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
5009 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
5012 Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5014 * Makefile.in, config.h: no more default emulation. Make the lack
5015 of emulation a compile time error
5017 Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5019 * configure.in: recognise all sparclite variants, not just 'sparclite'
5021 Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
5023 * m68kcoff.sc-sh: define _end as well as end, for consistency with
5026 * configure.in: accept *-ericsson-ose for any m68k CPU.
5028 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
5029 for each output section.
5031 Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
5033 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
5034 macro bfd_asymbol_bfd as appropriate.
5035 * Makefile.in: Un-duplicate ldlex.c dependency.
5036 * condigure.in: Replace my_host case table by sourcing
5037 ../bfd/configure.host. Allow std-host as the default.
5038 * ldmisc.c: Change logic for C++ name demangling: There is
5039 no initial '_' to remove from stab-derived function names.
5041 Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5043 * ldlang.c (lang_init_script_file): don't attach the output file
5044 sections to the script file.
5046 Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5047 * ldlang.c (wild): run expansion loop over command line bfd too.
5048 (lang_ini_script_file): initialize more parts of the command line
5050 * ldlex.l: fix DEFINED start states.
5052 Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5054 * ld.texinfo: new doc.
5055 * ldgram.y, ldlex.l: understand -y<symbol>
5056 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
5057 print info. (add_ysym): new function.
5058 * ldsym.h: (ldsym_type): new define SYM_Y.
5060 Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
5062 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
5063 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
5064 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
5065 macros with PARAMS. Recreational cleanup. Update copyrights.
5067 Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5069 * Makefile.in: pass down the bfd source directory for includes
5071 Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
5073 * ldlang.c (lang_size_sections): don't change size and address for
5074 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
5077 Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5079 * relax.c (build_it): re-enable the processing of data_statements
5080 in scripts, makes counted contructor lists work again.
5082 Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
5084 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
5086 Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
5088 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
5091 Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
5093 * Support for i386-sysv.
5094 configure.in: check for i386-*-sysv* and i386-*-sco*.
5095 i386coff.sc-sh: rewrote to support SVR3 by default.
5096 ldctor.c (find_constructors): preserve stat_ptr.
5097 ldlang.c (wild_doit): initialize vma and size of new output
5098 section to corresponding input section. This is required for
5099 shared library support.
5100 (lang_size_sections): don't modify vma and size of sections which
5101 are never loaded (for shared libraries).
5102 ldwrite.c (copy_and_relocate): copy the contents of any section
5103 which has contents, not just sections which are loaded (for shared
5106 Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5108 * ldlang.c (size_input_section): count the sizes of all sections
5111 Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5113 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
5114 to demangle symbols better
5116 Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
5118 * ldlang.c (lang_finish): don't warn if -e start symbol does not
5119 exist when linking with -r.
5121 Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
5123 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
5126 Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5128 * ldmain.c (linear_library): don't even think about processing
5129 an object file if it's already been done
5131 Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5133 * configure.in: the hp9000/300 config file is now hp300
5135 Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5137 * config/z8ksim.mt: new file
5139 Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
5141 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
5142 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
5144 * ld.h (strip_symbols_type): Add value STRIP_SOME.
5145 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
5146 * ldlang.c (lang_add_keepsyms_file): New function.
5147 * ldlex.l: Handle "-retain-symbols-file".
5148 * ldsym.c (keepsyms_file, kept_syms): New vars.
5149 (process_keepsyms): New functihon; reads file, marks symbols for
5151 (write_file_locals): File symbols should always be kept.
5152 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
5153 and "-s". Process retain-symbols file before setting symtab.
5154 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
5155 (keepsyms_file, kept_syms): Declare them.
5157 * ldmain.c (main): Non-fatal errors should still cause non-zero
5158 exit status even with -r.
5160 Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5162 Added initial support for the z8k
5163 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
5164 * configure.in, Makefile.in: modified to reflect above
5166 * ldlang.c (lang_check): when linking conflicting architectures,
5167 make the output file reflect at least one of the bad inputs.
5169 Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
5171 * Makefile.in (install): if $(tooldir) exists, install ld in
5174 Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5176 * Makefile.in, configure.in: modified to support i386-coff
5177 * i386coff.sh: new file
5179 Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
5181 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
5182 added m68k-coff emulation mode, stolen from a29k emulation.
5183 Almost certainly wrong, but perhaps better than sun3.
5185 Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
5187 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
5188 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
5189 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
5190 This is one character shorter, and lets people build on
5191 SVR3 system. (ld__h8300xray.[co] was the killer there;
5192 h8300xray.sc-sh is also overlong, but seems harmless.)
5193 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
5194 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
5195 * configure.in: Add host isc.
5197 * ldver.c: Call it version 2.0.
5199 Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
5201 * ldver.c: Bump to version 0.98.
5204 * Makefile.in: Added mostlyclean, distclean, realclean rules.
5206 Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
5208 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
5209 * ldlex.l: Moved comment() to end, since some compilers
5210 otherwise have problems with input() used before it is defined.
5212 Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5214 * configure.in: added Solaris 2 and Irix 4 host support.
5216 Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5218 * Makefile.in: remove -S flag from the FLEX definition
5220 * configure.in: rewrote, using new style case statement. use
5221 m68k.mt for m68k-aout systems
5223 Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
5225 * Makefile.in: map "ld" through program_transform_name when
5228 Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
5230 * cplus-dem.c: Removed. Use the version in libiberty now.
5231 * ldmisc.c: Use new libiberty version of cplus_demangle().
5233 Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
5235 * gld960.em (gld960_choose_target): default to little endian, not
5238 Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5240 * ldlang.c (lang_process): don't pass null pointers when
5241 abs_output_section is what is required.
5242 * ldwrite.c (ldwrite): use malloc to allocate the largest space
5243 used, and pass that down.
5244 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
5247 Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
5249 * configure.in, config/ose68.mt: renamed OSE to ose.
5251 Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
5253 * ldsym.c (write_file_locals): Reorder check for common or
5254 undefined symbols so that it works.
5256 Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
5258 * configure.in: accept all m68K family members.
5260 * Makefile.in: always create installation directories.
5262 Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5264 * ldlex.l: now parses comment correctly, added ~ to acceptable
5267 * ldexp.c (exp_unop): pass down abs_output_section - now can have
5268 unary -ve constants.
5270 * ldlang.c (lang_finish): warn when an entry symbol supplied on
5271 the command line can't be found.
5273 Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5275 * ldlang.h: add new field "loadable" to output_section_statement.
5276 * ldlang.c (lang_output_section_statement_lookup): initilize new
5277 field. (wild_doit): if new field is not set, then stop output
5278 section from being loadable.
5279 (lang_enter_output_section_statement): set the field from the
5281 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
5282 * h8300hms.sc-sh, h8300hms.em: get -r right.
5284 Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
5286 * ldint.texinfo: New internals manual (beginnings thereof).
5287 * PORTING: Removed, merged into ldint.texinfo.
5289 Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
5291 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
5292 cdtest.exp: A test program (copied from libg++/test-install)
5293 that tests that constructor and destructors are handled
5296 Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5298 * Makefile.in (install): install from ld.new, renaming during the
5299 copy, or else the next 'make install' needs to re-link ld.
5301 Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
5303 * configure.in: generalise hp recognition (from sef).
5305 Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5307 * configure.in: recognize bsd and hpux hppa configurations.
5308 error messages echo to stderr, not stdout
5310 Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5312 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
5313 ldmisc.c: removed rcsid's.
5315 Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5317 * ldlang.c (lang_map): print changes in sizes due to relaxing
5318 (size_input_section): maintain the delta information.
5319 * ldlang.h: add new field to struct to contain delta info.
5320 * relax.c (relax_section): complain if input not relaxable.
5321 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
5324 Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5326 * ldmain.c(main): prevent -r and -relax from being on at the same
5329 Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5331 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
5335 Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5337 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
5339 * ldlang.c(open_output): set the target arch and machine as soon
5340 as we can. (lang_size_sections): use new macros for setting vma
5343 Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
5345 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
5346 Also deleted an unreachable path to wrs.
5348 Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
5350 * Makefile.in (install): use -d test for $tooldir before
5351 installing ld there so that $tooldir can be inherited from
5354 Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
5356 * ldlang.c: Two non-substantial changes for the sake of
5357 the old Portable C Compiler.
5359 Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5361 * ldgram.y, ldlex.l: parse ABSOLUTE
5362 * ldexp.c: add support for ABSOLUTE
5364 Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
5366 * Makefile.in: Added default definitions for HOSTING_CRT0,
5367 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
5368 * config/*.mh: Miscellaneous clean-up: Removed definitions
5369 of YACC (since it is not longer used in the Makefile).
5370 Remove HOSTING_* definitions that are subsumed by the
5371 ones added to Makefile.in. Removed most definitions of CC.
5372 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
5373 These are no longer needed.
5375 Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
5377 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
5378 rules, since these are used when building a distribution.
5379 * Makefile.in (ldlex.c): Don't re-direct output, since that
5380 leaves a bogus output files if it fails.
5382 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
5383 * ldlex.c: Fix some unnecessary flex-specific-isms.
5385 Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5387 * ldgram.y: move spurious semicolon
5388 * ldexp.h: fix prototype
5390 Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
5392 * ld.texinfo: references to linker now say "ld" not "gld".
5394 Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5396 changed calling convention for Q_enter_global_ref
5397 * ldexp.c, ldlang.c, ldmain.c: reflect this
5398 * ldver.c: bump version to 1.97.1
5399 * ldindr.c (add_indirect): when an edict declaring an indirect
5400 symbol is found, make sure that any ideas about the symbol being
5401 common are changed if it now known to be defined.
5402 * ldmain.c (linear_library): complain once if archive isn't
5404 * ldlang.h, ldlang.c: make room for and initialize the complain
5407 Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5409 * Makefile.in: use flex & bison from ../ if they exist.
5411 Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5413 * relax.c (build_it): don't allocate space in the output file for
5414 stuff if -R flag applys to it.
5415 * ldfile.c: merge in VMS filename support
5416 * ldmain.c (main): take out ./ from library path, and close file
5417 before unlinking. Make multiple defs of a symbol create an
5419 * ldmisc.c: fatal errosrs delete output file
5421 Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
5423 * ldver.c: Increase version number to 1.97, for consistency
5426 Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
5428 * Makefile.in: FLEX -> LEX.
5430 * ld.texinfo: {} -> @{@}.
5432 Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
5434 * ld.texinfo: describe alternate, MRI-compatible linker scripts
5435 (and associated change in -c option, now used for these scripts)
5437 Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5439 * ldver.c: Bumped version to 1.96 - new release, resync with the
5441 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
5442 rather than with raw malloc, makes it easier to track where memory
5444 * ldsym.h, ldsym.c: create obstack for all global symbols too.
5445 * ldwrite.c (ldwrite): moved malloc so only used when needed.
5446 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
5449 Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
5451 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
5453 * Makefile.in: use bootstrap for check.
5455 Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5457 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
5459 * Makefile.in: now use flex, not lex
5460 * ldlex.l, ldlang.c, ldctor.c: lint
5462 Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5464 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
5465 different sorts of filenames on the command line than in a script.
5467 Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5469 * Makefile.in: rework CFLAGS so that they can be passed on the
5470 make command line. Remove MINUS_G. Default CFLAGS to -g.
5472 Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5474 * relax.c: added handling for new "padding" seclet type, used to
5475 fill out gaps between section.
5476 * ldgram.y, ldlex.l: now -defsym on the command line is done
5479 Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5481 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
5483 Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5485 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
5488 Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
5490 * Makefile.in (install): Install second copy in $(tooldir)/bin
5491 without $(program_prefix), since that's what gcc expects.
5493 Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5495 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
5496 * h8300*: fix bit rot and add support for h8300xray target
5497 * go32.sh: target emulation for go32.
5499 Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
5501 * gld960.em, i960.sc-sh. Fix i960 bit rot
5503 Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
5505 * Makefile.in: install man page.
5507 Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5509 * config/mt-<foo> renamed to <foo>.mt
5510 * config/mh-<foo> renamed to <foo>.mt
5511 * configure.in changed to reflect this
5512 * genscripts.sh now make .xbn files rather than .xN files
5514 Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
5516 * ldver.h: fix decl of ldversion.
5518 Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
5520 * Makefile.in: added check target.
5522 Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5524 * ldmain.c (Q_enter_file_symbols): now aliases work again
5526 Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
5528 * Makefile.in: added clean-info target.
5530 Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5532 * ldexp.c (exp_print_tree): don't try and follow null pointers
5534 * ldgram.y: remove 11 shift reduce errors
5536 Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5538 * Makefile.in: added tooldir and program_prefix.
5540 Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
5542 * ldlang.c (size_input_section): don't move absolute sections
5546 Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
5548 * cplus-dem.c: yet another copy of this - maybe it should go into
5550 * ldgram.y: now -V and -v have different actions
5551 * ldver.c: if -V, prints list of emulations compiled in
5552 * ldmisc.c: support for cplus demangling
5555 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
5557 * Makefile.in, configure.in: removed traces of namesubdir,
5558 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
5559 copyrights to '92, changed some from Cygnus to FSF.
5561 Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
5563 * Makefile.in: Change mkscript rule into one for ./mkscript
5564 (for the sake of makes that don't realize they're the same).
5565 * PORTING: Add more details.
5566 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
5568 Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
5570 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
5571 config/mt-hp300bsd: New port to hp300 running BSD.
5573 Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
5575 Major rewrite of how ld is configured. The major idea
5576 is to use shell scripts to generate everything.
5577 * generic.em replaces ldtemplate.
5578 * Other *.em files replace various *.c files.
5579 A *.em file is a shell script that generates the corresponding
5580 ld__*.c file that implements an emulation. This is usually
5581 a straight 'cat' of a here-document, possibly with substitutions.
5582 * Script files (*.sc) are places by *.sc-sh scripts.
5583 Again, these are simple shell scripts that 'cat'
5584 here-documents, usually with some substitutions.
5585 The output a *.sc-sh is a script file.
5586 * Each emulation is defined by a short shell script with
5587 extension *.sh that specifies the emulation-specific
5588 parameters (such as the name of the *.sh-sc and *.em
5590 * genscript.sh is the master shell script used to generate
5591 an emulation. It is passed various argument, including
5592 the name a the emulation-speciic *.sh file that it
5593 "sources" to set variables to emulation-specifc parameters.
5594 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
5595 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
5596 * config/mh-foo: Rename LDEMULATION names as appropriate
5597 (usually 'gldfoo' -> plain 'foo').
5598 * ldwrite.c: Fixed a typo in a comment.
5599 * Makefile.in: Major changes. Removed some the sed
5600 magic to converts scripts, since that is now handled
5601 by genscripts.sh and the *.sc-sh scipt generators.
5602 * config.h: Remove a bunch of macros defining emulations
5603 and targets. This becomes one less file to edit when
5604 adding emulations or targets.
5605 * ldemul.h (struct ld_emulation_xfer_struct): Add
5606 emulation_name and target_name fields.
5607 * ldemul.c, ldemul.h: Define some default functions used
5608 by most emulations (and remove from the *.em scripts).
5609 * ldemul.c (ldemul_choose_target): Search the new
5610 ld_emulations array using a loop (instead of a hardwired
5611 nested if statement).
5612 Define the ld_emulation from the automatically-geenrated
5613 ldemul-list.h. This means you no longer have to edit ldemul.c
5614 to add a new emulation.
5615 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
5616 their expansions, since the former no longer exist.
5617 * PORTING: A very rough first draft of a porting guide.
5619 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
5620 to be terminated by a new-line (instead of requiring a semicolon).
5622 Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5624 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
5625 tests for NULL pointers all over the place.
5626 * ldlang.c (lang_process): remember to relocate global symbols
5627 *after* relaxing has done it stuff.
5629 Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5631 * config/mt-coff-h8300: use EMUL like everything else
5632 * ldlang.c: (print_padding_statement): print the right address.
5633 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
5636 Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5638 * ldlex.l: Put pack -noinhibit-exec and -sort-common
5639 * ldlang.c (print_data_statement): print the right address.
5641 Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
5643 * Makefile.in: The rule for testing ld by re-linking itself
5644 via an intermediate -r link was moved to the ld1 rule
5645 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
5646 which allows the bootstrap rule to work.
5647 * ldctor.c (find_constructors): Don't create a constructor
5648 list if it is already defined (as would happen if ld is
5649 invoked by collect).
5651 Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5653 * config/mh-sparc.h: now uses libgcc.a
5654 * ldmain.c: quit using exit
5655 * *sc: use *(COMMON) rather than [COMMON]
5656 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
5657 to allow preprocessing of .l file.
5658 * Makefile.in: New ldlex.l mangling
5659 * ldexp.c (fold_binary): perform expressions with % and / in
5661 * ldfile.c (open_a): open archives on VMS in a special way
5664 Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5666 * ldgram.y: map -M behave in the same way as -Map (sets file name
5668 * ldsym.c, ldlang.c: remember that size of a section is dependent on
5669 whether or not relaxing has been done.
5670 * ldmain.c: don't open a map file if it doesn't have a name
5671 * relax.c: all the brains have moved into bfd.
5672 * ldwrite.c: ammend comment
5674 Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5676 * Makefile.in: added relax, also made three stage go through a
5679 * config.h: if GNU960 defined, then default emulation mode is
5681 * ldexp.h, ldexp.c: map to file hooks
5682 * ldlang.c: map to file hooks
5683 * ldgram.y: added -Map -relax
5684 * ldlex.l: added -relax, -Map
5685 * ldmain.c: open map file
5686 * ldmisc.c: support for map file
5687 * ldwrite.c: new relax magic
5689 Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
5691 * Makefile.in, config/tm-*.h: Clean up make output, only
5692 pass DEFAULT_EMULATION to ldmain.c.
5694 Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
5696 * ldver.c: Bump to version 1.94.
5698 Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5700 * Makefile.in: infodir belongs in datadir.
5702 Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
5704 * Makefile.in: Pass -y to bison. (Again;
5705 accidentally deleted by Rich.)
5706 * news.sc, ldgld68k.sc: Define __end as well as _end.
5708 Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
5710 * ldindr.h: added to contain prototypes of ldindr.c
5711 * ldfile.c: include ctype.h
5712 * ldmain.c: include the requried prototype headers
5713 * ldwrite.c: get_reloc_upper_bound has been renamed
5714 bfd_get_reloc_upper_bound
5716 Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5718 * Makefile.in: punt "fundamental" mode because it breaks my emacs
5719 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
5720 spaces following hyphens, bsd make can't cope. added
5721 standards.text support and made it look like all the other
5724 * configure.in: configure now runs entirely in objdir so make file
5725 existence checks against ${srcdir}. Mark this directory as
5728 Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5730 * Makefile.in: idestdir and ddestdir go away. Added copyrights
5731 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
5732 and mandir now keyed off datadir by default.
5734 Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
5736 * ldver.c: Bumped version to 1.93.
5737 * Makefile.in: Pass -y to bison.
5739 Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
5741 * config.h: h8 is now coff, not ieee
5742 * h8300hds.sc: reflect the same
5744 Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
5746 * ldver.c (ldversion()): Update to 1.92.
5747 * ldctor.c: There are two places constructor sets
5748 can be defined. One of them checked for an existing
5749 duplicate, the other didn't. Unfortunately, the latter
5750 was called after the former ...
5751 So, factor out code for inserting a new element into
5752 constructor_name_list (after checking for a duplicate)
5753 into a new function add_constructor_name, and call
5754 it from both aforementioned places (ldlang_add_constructor
5755 and ldlang_check_for_constructors).
5757 Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
5759 * Makefile.in: Rename .c files generated from ldtemplate
5760 to have names starting with ld__. This helps 'make clean'.
5762 Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
5764 * Makefile.in: Take out the version number for install
5765 * m88kbcs.sc: put in contructor blocks.
5767 Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
5769 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
5770 parameter, a format, and an arg pointer, and rename it to
5771 vfinfo(). Write info() in terms of new vfinfo().
5772 New einfo() is the same as info(), except it writes to stderr.
5773 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
5774 ldmisc.c: Replace "error" calls to info() by new einfo().
5776 Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
5778 * ldlex.l ldgram.y: made -V option do same as -v
5779 * Makefile.in: Added $(MINUS_G) flag so debugging can be
5782 Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
5783 i386 aout changes from Bob Kukura
5784 * Makefile.in, config.h: added i386aout support
5785 * configure.in: fixed /h-{myhost} typo
5786 * ldgram.y: -MM now gives more boring map.
5787 * ldlang.c: now does D_PAGED flag the right way.
5788 * ldsym.c: -MM flags does the right thing.
5790 Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
5792 * configure.in: Fixed typo. Also, a fix for hp300bsd.
5793 * ldlang.c (init_os): Compensate for BFD change,
5794 where bfd_make_section now returns NULL for a duplicate
5795 section request, instead of the old section.
5797 Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
5799 * ldver.c: Bump to version 1.91 (consistent with binutils).
5801 Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
5803 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
5804 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
5805 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
5806 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
5807 Add or update copyright notices.
5809 Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
5812 * Makefile.in: Changed installation directory name scheme
5813 to be consistent with gcc. Also changed 'install'.
5815 Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
5817 * Makefile.in: new targets ld.mm, ld.me
5819 Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
5821 * Makefile.in, ldtemplate: Need to use separate scripts
5822 for -n and -N options. Yet more complication.
5824 Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
5826 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
5827 work). Add some lines to avoid Sun Make VPATH bugs.
5829 Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
5831 * news.sc: Add alignment for data segment.
5832 * ldtemplate: Add (yet another) script to get for -n or -N
5833 options. (These need different alignment than ZMAGIC files.)
5834 * Makefile.in: Add stuff for new foo.xn scripts.
5835 These are generated by replacing "ALIGN(0x...00)" by ".".
5837 Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
5839 * Makefile.in: new targets ld.ms, ld-index.ms
5840 ld.texinfo: remove tabs, other cleanups for texi2roff
5842 Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
5844 * ldmain.c (main): Make config.magic_demand_paged be true
5845 by default. Don't the WP_TEXT and D_PAGED flags of
5846 output_bfd here; it's too late, so set it when output_bfd
5847 is created (in ldlang.c). Also fix setting of EXEC_P flag
5848 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
5849 * ldlang.c: Remove some duplicate extern declarations.
5850 * ldgram.y: Fixes to -N and -n options.
5851 * Makefile.in: Recognize upper case letters in sed script
5852 to remove assignments from script files.
5853 * ldtemplate: Don't assukme that -N or -n options
5854 imply use of -r script.
5855 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
5857 Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
5859 * ldtemplate: include bfd.h before sysdep.h.
5861 Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
5863 Restructure configuration scheme for bfd, binutils, ld.
5865 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
5866 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
5867 Change some config names to match other dirs.
5868 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
5870 * config/: Rename some config files to match up h-*.h names.
5871 Remove all the HOST_SYS definitions from the config files.
5873 Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
5875 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
5876 * ldtemplate: Remove ldfile_add_library_path calls;
5877 just use the SEARCH_DIR commands in the script files.
5878 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
5879 the SEARCH_DIR commands in the scripts (using ugly sed magic).
5880 This is primarily intended for cross-linking, where you would
5881 place libaries in a different place than native libraries.
5882 Also, emulations made from ldtemplate now use $(srcdir).
5883 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
5884 form; people can use the Makefile's LIB_PATH to override.
5886 Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
5888 * Makefile.in: fix target ld.dvi, add target ld.info
5889 ld.texinfo: make info filename ld.info
5891 Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
5893 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
5895 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
5896 few BFD types & enums.
5903 version-control: never