1 Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
3 * ldver.c (ldversion): Set version to cygnus-2.7.1.
5 * Released binutils 2.7.
7 * emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
8 System V file name limitations.
9 * configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
10 pc532macha rather than pc532machaout.
11 * Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
13 (epc532macha.c): Rename target from epc532machaout.c.
15 Wed Jul 3 11:40:10 1996 Ian Lance Taylor <ian@cygnus.com>
17 * ldlang.c (print_padding_statement): Use %u, not %x, to print
20 Sun Jun 30 11:16:43 1996 Stan Shebs <shebs@andros.cygnus.com>
22 * mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
24 Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
26 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
27 file just before the .so file, rather than just after.
29 * configure.host: Use -print-file-name=FILE rather than piping
30 -print-libgcc-file-name through sed.
31 (i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
32 crtend.o files, in case gcc doesn't use them.
33 * Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
35 Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
37 * configure.tgt (mips*-dec-osf*): New target.
39 Tue Jun 25 22:15:29 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
41 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
42 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
44 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
45 (AC_PROG_INSTALL): Added.
48 Mon Jun 24 18:48:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
50 * scripttempl/elfppc.sc (_GLOBAL_OFFSET_TABLE_): Don't do a
51 PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
54 Mon Jun 24 17:55:31 1996 Jouke Numan <jnuman@bazis.nl>
56 * ldlang.h (enum section_type): Define.
57 (lang_output_section_statement_type): Remove loadable field. Add
59 (lang_enter_output_section_statement): Change flags parameter in
61 * ldgram.y (typebits): Remove.
62 (sectype): New static variable.
63 (opt_at): Use sectype rather than typebits.
64 (type): Set sectype rather than typebits.
66 * ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
68 * ldlang.c (lang_output_section_statement_lookup): Set sectype
69 field rather than loadable field.
70 (wild_doit): Check sectype rather than loadable.
71 (lang_record_phdrs): Likewise.
72 (lang_enter_output_section_statement): Rename flags parameter to
73 sectype. Set sectype field rather than loadable field. Set flags
74 field based on sectype.
76 Mon Jun 24 12:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
78 * scripttempl/elf.sc: Force .stab* and .comment sections to start
81 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
82 using shared libraries.
83 * configure: Rebuild with autoconf 2.10.
85 Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
87 * configure.tgt: Add support for *-*-rtems* configurations.
89 Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
91 * configure.tgt (alpha-*-linuxecoff*): New target.
92 (alpha-*-linux*): Use elf64alpha.
93 * emulparams/elf64alpha.sh: New file.
94 * emultempl/elf32.em: If ELFSIZE is not set, set it to 32. Use
95 ${ELFSIZE} rather than 32 when calling BFD routines.
96 (hold_rodata): New static variable.
97 (gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
98 readonly section that is not code.
99 (gld${EMULATION_NAME}_place_section): Set hold_rodata. Don't use
100 a .rel section unless its bfd_section field is not NULL.
101 * Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
102 (eelf64alpha.c): New target.
104 Fri Jun 21 12:45:46 1996 Ian Lance Taylor <ian@cygnus.com>
106 * ldmisc.c (vfinfo): Correct handling of 0 in %W case.
108 Thu Jun 20 13:55:28 1996 Ian Lance Taylor <ian@cygnus.com>
110 Add enough support to understand the gcc svr3.ifile script:
111 * ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context. Add
113 * ldgram.y: Add BIND token.
114 (section): Recognize GROUP.
115 (opt_ext_with_type): Recognize a couple of cases of BIND.
116 * ldlang.c (init_os): Don't do anything if section is already
117 initialized. Call exp_init_os on addr_tree field.
118 (exp_init_os): New static function.
119 (map_input_to_output_sections): Call exp_init_os on assignment
121 (lang_place_orphans): Check for common sections by name COMMON
122 rather than by common_section field. Don't warn about absence of
125 * ldlang.h (lang_input_statement_type): Remove useless fields
126 common_section, common_output_section, and complained, as well as
127 all references to them.
129 * ldexp.c: Reindent a lot of code.
130 (exp_fold_tree): Call FAIL rather than einfo in default case.
132 Wed Jun 19 11:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
134 * configure.host (m88*-*-dgux*): Quote HOSTING_CRT0. From
135 <randall.hron@medaphis.com>.
138 Tue Jun 18 15:53:09 1996 Jeffrey A. Law <law@rtl.cygnus.com>
140 * scripttempl/h8300s.sc: New file for H8/S.
141 * emulpararms/h8300s.sh: New file for H8/S.
142 * Makefile.in (ALL_EMULATIONS): Add H8/S.
143 (e_h8300s.c): Add dependencies.
144 * configure.tgt: Add H8/S to targ_extra_emuls.
147 Tue Jun 18 17:55:39 1996 Ian Lance Taylor <ian@cygnus.com>
149 * configure.tgt (i[345]86*-*-isc*): New target. From
150 <uddeborg@carmen.se>.
152 Wed Jun 12 12:46:21 1996 Ian Lance Taylor <ian@cygnus.com>
154 * lexsup.c: Include "libiberty.h".
155 (parse_args): Copy the -Y argument into memory.
156 (set_default_dirlist): Don't put the ':' back into the directory
159 Fri Jun 7 11:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
161 * emultempl/sunos.em: Include libiberty.h.
162 (gld${EMULATION_NAME}_set_symbols): New static function to add
163 LD_LIBRARY_PATH to the list of search directories.
164 (ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
166 Thu Jun 6 11:50:31 1996 Ian Lance Taylor <ian@cygnus.com>
168 * emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
169 rather than . when computing _gp value. From Per Fogelstrom.
170 * emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
172 * ldmain.c (main): Don't close and unlink the file on error, since
173 remove_output will do it anyhow.
174 * ldlang.c (open_output): Set boolean variable to true, not 1.
176 Wed Jun 5 18:34:14 1996 James G. Smith <jsmith@cygnus.co.uk>
178 * emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
179 elfmips instead of elf.
181 Tue Jun 4 18:43:07 1996 Ian Lance Taylor <ian@cygnus.com>
183 * ldcref.c: New file.
184 * ld.h (add_cref, output_cref): Declare.
185 * ldmain.c (main): Initialize notice_all field. If it is set at
186 end of link, call output_cref.
187 (notice): Rename from notice_ysym. Check notice_all.
188 * ldmisc.c (finfo): Make globally visible.
189 * ldmisc.h (finfo): Declare.
190 * lexsup.c (OPTION_CREF): Define.
191 (ld_options): Add "cref".
192 (parse_args): Handle OPTION_CREF.
193 * Makefile.in: Rebuild dependencies.
194 (CFILES): Add ldcref.c.
195 (OFILES): Add ldcref.o.
196 * ld.texinfo, ld.1: Document --cref.
198 Tue Jun 4 12:12:25 1996 Tom Tromey <tromey@csk3.cygnus.com>
200 * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
202 Fri May 31 12:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
204 * emultempl/pe.em (sort_sections): Don't assume that a
205 wild_statement has a section name.
207 Wed May 29 13:13:35 1996 Ian Lance Taylor <ian@cygnus.com>
209 * scripttempl/elfmips.sc: Quote test -z argument.
211 * ld.texinfo: Clarify the CONSTRUCTORS command.
213 Thu May 23 16:07:44 1996 Ian Lance Taylor <ian@cygnus.com>
215 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
218 Wed May 22 11:31:30 1996 Doug Evans <dje@seba.cygnus.com>
220 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
222 * emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
223 (sort_by_section_name, sort_sections_1): New functions.
224 (sort_sections): Only sort by file name sections in .idata.
225 Add "Grouped Sections" support.
226 (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
228 (gld${EMULATION_NAME}_place_section): Delete.
229 * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
230 (.CRT,.rsrc): Rewrite to use Grouped Section support.
232 Tue May 21 14:31:48 1996 Stan Shebs <shebs@andros.cygnus.com>
234 * mpw-eppcmac.c: Update to reflect changes to aix.em.
236 Sun May 19 16:59:44 1996 Doug Evans <dje@seba.cygnus.com>
238 * ldlang.c (dprint_statement): Stop printing at end of list.
240 Sat May 18 13:12:05 1996 Steve Chamberlain <sac@slash.cygnus.com>
242 Support for --force-exe-suffix
243 * ld.h (args_type): Add force_exe_suffix.
244 * ld.texinfo: Add documentation.
245 * ldmain.c (main): Add support for option.
246 * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
247 (ld_options, parse_args): Add support for option.
249 Wed May 15 12:50:25 1996 Jim Wilson <wilson@chestnut.cygnus.com>
251 * emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
253 Fri May 10 16:28:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
255 * scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
256 referenced but not defined.
258 Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
260 * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
261 Set a new variable to signify if the final target is an embedded
263 * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
264 .text for an embedded system.
266 Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
268 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
269 (gld${EMULATION_NAME}_place_section): New function.
270 (hold_{section,use,text,rdata,data}): New static locals.
271 (ld_${EMULATION_NAME}_emulation): Update orphan field.
272 * scripttempl/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
273 (INIT,FINI): Delete, unused.
274 (.text): Document orphan .text.foo sections.
275 (.rdata): Document orphan .rdata.foo sections.
276 (.data): Document orphan .data.foo sections.
278 Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
280 * scripttempl/h8300.sc: Place ".tiny" sections right
281 after ".data" sections.
282 * scripttempl/h8300h.sc: Place ".tiny" sections into
283 the "tiny" memory region, 0xff8000 through 0xffff00.
285 * scripttempl/h8300.sc: Set the entry point to the value of
286 "_start" rather than the start of the text segment.
287 * scripttempl/h8300h.sc: Likewise.
289 * scripttempl/h8300.sc: Place .rodata sections before .text
290 sections in main ram.
291 * scripttempl/h8300h.sc: Likewise.
293 Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
295 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
296 8-bit region and 8-bit sections.
298 Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
300 * ldlang.c (section_already_linked): Fix typos.
302 Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
304 * scripttempl/pe.sc (.endjunk): Define __end__.
306 Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
308 * ldlang.c (longest_section_name): Remove.
309 (SECTION_NAME_MAP_LENGTH): Define.
310 (print_size, print_alignment, print_fill, print_section): Remove.
311 (print_flags): Remove.
313 (print_output_section_statement): Rewrite.
314 (print_assignment): Rewrite.
315 (print_one_symbol): Rewrite.
316 (print_input_section): Rewrite.
317 (print_fill_statement): Rewrite.
318 (print_data_statement): Rewrite.
319 (print_address_statement): New static function.
320 (print_reloc_statement): Rewrite.
321 (print_padding_statement): Rewrite.
322 (print_wild_statement): Rewrite.
323 (print_statement_list): Clean up.
324 (print_statement): Clean up. Some minor output changes.
325 (print_statements): Clean up.
326 (load_symbols): Put another - before -whole-archive.
327 * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
328 print 0x and to omit leading zeroes. For etree_rel, use %B to
329 print the BFD. For etree_assign, remove the space after the
331 * ldwrite.c: Include "libiberty.h".
332 (clone_section): Call xstrdup, not strdup.
333 (ldwrite): Don't print any map information.
334 (print_symbol_table, print_file_stuff, print_symbol): Remove.
335 * ldmain.c (main): Call lang_map when appropriate.
336 * ldmisc.c (vfinfo): Add support for %W.
337 (print_address): Remove.
338 * ldmisc.h (print_address): Don't declare.
339 * Makefile.in: Rebuild dependencies.
341 Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
343 * configure.host (m68*-*-linux*): Add -dynamic-linker to
344 HOSTING_CRT0. Search -lgcc both before and after -lc in
345 HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
347 (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
350 Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
352 * ldmisc.h (demangle): Declare.
353 * ldmisc.c: Include "libiberty.h". Include demangle.h with "",
355 (demangle): Make non-static. Remove remove_underscore paramter.
356 Always return an allocated string.
357 (vfinfo): Free result of demangle. Add case 'G'. Use %T to print
358 functionname, rather than calling demangle. Print a colon between
359 the BFD(section+offset) and the line number.
360 * ldmain.c (add_archive_element): Improve format of archive
361 information in map file.
362 (constructor_callback): Don't print anything to the map file.
363 * ldlang.c (lang_one_common): Improve format of common symbol
364 information in map file.
365 * ldctor.c (ldctor_build_sets): If producing a map file, print set
367 * ldwrite.c (print_symbol_table): Print a newline before the
368 header in the map file.
369 * Makefile.in: Rebuild dependencies.
371 * ldmisc.c (vfinfo): Reindent.
373 Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
375 * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
376 don't clobber it when not relaxing.
378 * ld.h (ld_config_type): Remove traditional_format field.
379 * ldmain.c (main): Use link_info.traditional_format rather than
380 config.traditional_format.
381 * ldlang.c (ldlang_open_output): Likewise.
382 * lexsup.c (parse_args): Likewise.
383 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
384 * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
386 * ldlang.c (wild_doit): Discard debugging sections if we are
387 stripping debugging information.
389 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
391 Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
393 * ldexp.c (fold_binary): Correct handling of subtraction with
395 (fold_name): Permit symbols in lang_allocating_phase_enum.
397 * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
398 accidental changes in last patch.
400 Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
402 * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
403 (powerpcle*-*-{sysv,solaris}): Ditto.
405 Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
407 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
408 in m68k/crt0.S without things blowing up.
410 Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
412 * scripttempl/m68kcoff.sc: Remove default address for .data so
413 .text, .data, and .bss are all sequential.
415 Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
417 * scripttempl/m68kcoff.sc: Remove regions and simplify.
419 Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
421 * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
422 bytes of the address space. Put data from the ".eight" sections
424 * scripttempl/h8300h.sc: Likewise.
426 Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
428 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
429 Pass $ARCH to ldfile_set_output_arch instead of setting
430 ldfile_output_architecture directly.
432 Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
434 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
435 next to .text. Put _etext after .text, .init, .fini, and
436 .rodata{,2} sections.
438 Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
440 * ld.texinfo: Rearrange option documentation.
442 * lexsup.c (ld_options): New static array.
443 (parse_args): Build shortopts and longopts from ld_options array.
444 (help): New static function.
445 * ldver.h (help): Don't declare.
446 * ldver.c (ldversion): Reindent.
449 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
451 Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
453 * emultempl/elf32.em: When checking for a native emulation, check
454 that the current emulation is the default emulation.
455 * emultempl/sunos.em: Likewise.
457 * configure.in: Permit --enable-shared to specify a list of
459 * configure: Rebuild.
461 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
462 for HP/UX compatibility.
464 Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
466 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
467 static function, if ${host} = ${target}.
468 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
469 needed shared library if ${host} = $[target}.
471 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
472 HOSTING_CRT0. Search -lgcc both before and after -lc in
475 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
476 Polstra <jdp@polstra.com>.
478 Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
480 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
482 * scripttempl/elf.sc: Use $MACHINE definition if present.
483 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
486 Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
488 * ldlang.c (lang_size_sections): Change region check to handle
489 regions which end at the highest possible address correctly.
490 From Roland Weber <roweber@ira.uka.de>.
492 * ldlang.c (section_already_linked): New static function.
493 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
494 relocateable link. Don't worry about section being NULL, since it
495 never should be. Don't call init_os unless the section is going
497 (ldlang_add_file): Call section_already_linked for each section.
498 * ldmain.c (multiple_definition): Don't warn about multiple
499 definitions in sections which are being discarded.
501 Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
503 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
504 * emultempl/pe.em (init): Remove special case PPC code.
506 Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
508 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
509 so as not to overwrite the magic syscall entry at 0xc4.
510 * scripttempl/h8300h.sc: Likewise.
512 Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
514 * configure.tgt (sparc64-*-solaris2*): Delete.
515 Stick with sparc-*-solaris2*.
517 Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
519 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
520 * ldlang.c (init_os): Fail on an attempt to initialize any section
521 named DISCARD_SECTION_NAME.
522 (wild_doit): Discard input sections assigned to an output section
523 named DISCARD_SECTION_NAME.
524 * ld.texinfo: Document use of /DISCARD/.
526 * ldlang.c: Fix some indentation and comments.
528 Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
530 * ldmain.c (main): Call bfd_set_error_program_name.
532 Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
534 * ld.texinfo: Fix a couple of indexing entries. Mention that
535 --verbose displays builtin linker scripts.
537 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
538 and the local symbol name does not match the filename, print the
541 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
542 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
543 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
546 Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
548 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
550 Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
552 * ldmain.c (add_wrap): New function.
553 * ldmain.h (add_wrap): Declare.
554 * lexsup.c (parse_args): Call add_wrap.
556 Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
558 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
560 Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
562 * scripttempl/h8300.sc: Change name of page zero memory
563 from "null" to "vectors". Create an output section for
564 vectors. Add comments on how to explicitly place items
566 * scripttempl/h8300h.sc: Likewise.
568 Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
570 * emultempl/lnk960.em (machine_table): Add jx and hx.
572 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
575 Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
577 * ld.h (ld_config_type): Add warn_multiple_gp field.
578 * lexsup.c (parse_args): Handle --warn-multiple-gp.
579 * ldmain.c (warning_callback): Suppress multiple gp values warning
580 if --warn_multiple_gp was not used.
581 * ld.texinfo, ld.1: Document --warn-multiple-gp.
583 Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
585 * lexsup.c (parse_args): Handle --wrap.
586 * ldmain.c (main): Initialize link_info.wrap_hash.
587 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
589 * ld.texinfo, ld.1: Document --wrap.
591 * configure: Rebuild with autoconf 2.8.
593 Don't do SunOS style dynamic linking for sparc-aout:
594 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
595 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
596 (sparc*-wrs-vxworks*): Likewise.
597 * emulparams/sparcaout.sh: New file.
598 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
599 (esparcaout.c): New target.
601 Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
603 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
604 in a different manner to work around differences in shell variable
607 Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
609 * ldemul.h (ldemul_unrecognized_file): Declare.
610 (ldemulation_xfer_type): Add unrecognized_file field.
611 * ldemul.c (ldemul_unrecognized_file): New function.
612 * ldlang.c (load_symbols): If a file can not be recognized, call
613 ldemul_unrecognized_file before trying it as a linker script.
614 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
616 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
617 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
619 Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
621 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
622 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
624 Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
626 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
627 Search trinary.cond rather than searching trinary.lhs twice.
629 Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
631 * mpw-make.sed: Edit out shared library support.
632 (@TDIRS@): Edit out, can't use genscripts.
634 Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
636 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
637 * emulparams/m68klinux.sh: New file.
638 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
639 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
640 bfd_linux_size_dynamic_sections.
641 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
642 (em68klinux.c): New target.
643 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
645 Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
647 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
648 Fill in missing entries.
650 * lexsup.c (parse_args): Recognize --no-whole-archive.
651 * ldlang.h (lang_input_statement_type): Add whole_archive field.
652 * ldlang.c (new_afile): Set whole_archive field.
653 (load_symbols): Check input file specific whole_archive field
654 rather than global variable.
655 * ld.texinfo, ld.1: Document --no-whole-archive.
657 Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
659 * configure.tgt: Correct gldi960 to gld960.
661 Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
663 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
664 the SONAME if it is available.
665 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
666 filename, when checking for conflicting library versions. Don't
667 assume that the suffix is only numbers and dots.
669 * ld.texinfo: Mention that -R can be used for -rpath.
671 Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
673 * configure.host: Check for 'do not mix' from native linker before
674 trying to use -rpath.
676 Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
678 * configure.in: Remove explicit substitution of CFLAGS; autoconf
680 * configure: Rebuild.
681 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
683 * configure.in: Call AC_PROG_CC before configure.host.
684 * configure: Rebuild.
685 * configure.host: Remove go32 host, since it should no longer be
686 necessary. Don't set CC for romp host.
688 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
689 the text segment ends exactly on a page boundary.
691 * configure.in: Substitute RPATH_ENVVAR.
692 * configure: Rebuild.
693 * configure.host: Set RPATH_ENVVAR.
694 * Makefile.in (RPATH_ENVVAR): New variable.
695 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
697 Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
699 * configure.in: Redo emulation handling so that each emulation
700 searches the correct tool directory, based on the target alias.
701 For example, "configure --enable-targets=m68k-coff i386-linux"
702 will search /usr/local/i386-linux/lib for linux and
703 /usr/local/m68k-coff/lib for m68k-coff.
704 * configure: Rebuild.
705 * configure.tgt: Add special tdir settings for Linux.
706 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
707 for each eEMUL.c target.
708 * genscripts.sh: Accept specific alias as 9th argument, and use it
711 Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
713 * ldlang.c (lang_set_startof): Don't do anything for a
716 * ldgram.y (mri_script_file): Call mri_draw_tree.
717 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
718 create memory regions.
719 (mri_load): Don't call mri_draw_tree.
720 * mri.h (mri_draw_tree): Declare.
722 * configure.tgt (m68*-*-psos): New target.
723 * emulparams/m68kpsos.sh: New file.
724 * scripttempl/psos.sc: New file.
725 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
726 (em68kpsos.c): New target.
728 Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
730 * configure.tgt (*-*-ieee*): New target; use vanilla.
732 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
735 Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
737 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
740 Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
742 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
744 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
745 it looks like we might be linking in two different versions of the
746 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
748 Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
750 * ldlang.c (lang_size_sections): Increment the section size when a
751 padding statement is encountered.
753 Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
755 * configure.in: Look for --enable-shared. Change the value of
756 BFDLIB when linking against a shared library on SunOS.
757 * configure: Rebuild.
758 * configure.host: If using a shared BFD library, try to pass a
759 reasonable -rpath option when linking.
760 * Makefile.in (BFDLIB): Set to @BFDLIB@.
762 Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
764 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
765 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
767 Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
769 Support for building bfd and opcodes as shared libraries, based on
770 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
771 * configure.in (HLDFLAGS): New substitution.
772 * configure: Rebuild.
773 * configure.host: Set HLDFLAGS on SunOS.
774 * Makefile.in (HLDFLAGS): New variable.
775 (BFDDEP): New variable.
776 (BFDLIB): Change to -L../bfd -lbfd.
777 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
779 (check): Set LD_LIBRARY_PATH in the environment.
781 Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
783 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
784 in the read-only section, not read/write unless we are making a
786 (.debug*): Add dwarf debug sections.
787 (.rela.{sdata*,sbss*}): Add sections.
789 Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
791 * configure: Regenerate.
793 Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
795 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
796 for SVR4 compatibility.
798 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
800 Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
802 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
803 * emultempl/pe.em (definfo init): Make the default stack reserve
806 Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
808 * configure.tgt (m68*-apple-aux*): New target.
809 * emulparams/m68kaux.sh: New file.
810 * scripttempl/m68kaux.sc: New file.
811 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
812 (em68kaux.c): New target.
814 Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
816 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
817 -bnoentry, since the right thing tends to happen anyhow.
819 Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
821 * ld.texinfo, ld.1: Document -export-dynamic.
823 Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
825 * emultempl/sunos.em: Check for native compile by comparing
826 ${target} and ${host}.
828 Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
830 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
831 TEXT_START_ADDR to allow use on IDT and PMON systems.
833 Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
835 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
838 Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
840 * configure.tgt (sparc64-*-solaris2*): New configuration.
841 (sparc64-*-aout*): Renamed from sparc64*.
843 Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
845 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
846 * genscripts.sh: Set host, target and target_alias variables.
847 Check for native compile by comparing ${target} and ${host}.
848 * emultempl/elf32.em: Likewise.
849 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
851 Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
853 * scripttempl/elfppc.sc: Refine eabi support to better support
854 .sdata, .sdata2, .sbss, etc. sections.
856 Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
858 * ldgram.y (%union): Add phdr field.
859 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
860 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
861 (opt_hdrs, hdr): Remove.
862 (phdr_val): New nonterminal.
863 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
864 and phdrs parameters. Add flags parameter.
865 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
867 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
868 phdrs fields. Add flags field.
869 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
870 (lang_new_phdr): Update declaration.
871 * ld.texinfo: Document FLAGS.
873 Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
875 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
876 Don't make a shared library because of an undefined reference to
877 __GLOBAL_OFFSET_TABLE_.
879 Add some Irix 5 support, mostly from Kazumoto Kojima
880 <kkojima@info.kanagawa-u.ac.jp>:
881 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
882 (SHLIB_TEXT_START_ADDR): Define.
883 (OTHER_GOT_SYMBOLS): Define.
884 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
885 (EXECUTABLE_SYMBOLS): Don't define.
886 (DYNAMIC_LINK): Don't define.
887 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
888 * scripttempl/elfmips.sc: New file.
889 * configure.host (mips*-dec-bsd*): Change mips to mips*.
890 (mips*-sgi-irix4*): Likewise.
891 (mips*-sgi-irix5*): New entry.
892 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
894 (eelf32lmip.c): Likewise.
896 Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
898 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
899 .rela.got.neg section.
901 Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
903 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
905 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
906 ANSI_PROTOTYPES is defined. Remove special handling of
907 WINDOWS_NT. Various indendation fixes.
908 (vfinfo): Change fmt parameter to const char *.
909 (info_msg): Write <stdarg.h> version.
910 (einfo, minfo, finfo): Likewise.
911 (info_assert): Change file parameter to const char *.
912 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
913 defined, use a real prototype.
914 (info_assert): Change first parameter to be const char *.
916 Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
918 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
919 in old support that 2.7.2 needs, but the current compiler does
922 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
923 correct Linker script template.
925 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
927 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
929 Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
931 * scripttempl/alpha.sc: Put .rconst right after .rdata.
933 Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
935 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
936 sort using right pointer.
938 Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
940 * scripttempl/elfppc.sc: Remove support for creating special
941 labels for eabi section begin/end here. The compiler now uses
942 crt{i,n}.o to create these symbols.
944 Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
946 * configure.host: Change existing Linux HOSTING_CRT0 to be used
947 for a.out only, and put in appropriate HOSTING_CRT0 and
948 HOSTING_LIBS values for Linux ELF.
950 Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
952 * scripttempl/h8300.sc: Use all 64K for ram.
953 * scripttempl/h8300h.sc: Define 256K ram size.
955 Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
957 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
958 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
959 was used, regardless of whether -bE was used.
961 Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
963 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
964 relocateable before calling ldctor_build_sets if the output file
965 is in an XCOFF format.
967 Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
969 * ldwrite.c (build_link_order): When handling a data statement, if
970 the endianness of the output file is unknown, use the endianness
973 Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
975 * mpw-config.in: Recognize mips-*-* as equivalent to
977 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
978 * mpw-ld.r: Add version resources.
979 (cfrg): Use symbolic instead of literal name for executable.
981 Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
983 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
985 Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
987 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
988 (print_statement_list): Renamed from print_statement. All callers
990 (print_statement): New function to print just one statement.
991 (print_{data,reloc,padding}_statement): Don't crash if
992 output_section == NULL.
993 (dprint_statement): New function.
995 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
996 call to sort_sections.
998 Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
1000 * emultempl/aix.em (unix_ld): New static variable.
1001 (gld${EMULATION_NAME}_parse_args): Handle -unix.
1002 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
1003 gc as false and export_defineds as true to size_dynamic_sections.
1005 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
1006 phase if the current section is abs_output_section.
1009 Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
1011 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
1014 Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
1016 * ldgram.y (PHDRS): New token.
1017 (ifile_p1): Accept phdrs.
1018 (section): Accept phdr_opt at the end of the section definition.
1019 (phdr_op): New nonterminal.
1020 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
1021 * ldlex.l: Accept PHDRS.
1022 * ldlang.h (struct lang_output_section_phdr_list): Define.
1023 (lang_output_section_statement_type): Add phdrs field.
1024 (struct lang_phdr): Define.
1025 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
1026 (lang_new_phdr): Declare.
1027 * ldlang.c (lang_phdr_list): New static variable.
1028 (lang_output_section_statement_lookup): Initialize phdrs field.
1029 (lang_process): Call lang_record_phdrs.
1030 (lang_new_phdr): New function.
1031 (lang_section_in_phdr): New function.
1032 (lang_record_phdrs): New static function.
1033 * ld.texinfo: Document PHDRS.
1035 Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
1037 * scripttempl/ppcpe.sc: Moved .edata into its own section to
1040 Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
1042 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
1043 HOSTING_LIBS for testing.
1044 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
1047 Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
1049 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
1052 Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
1054 * configure: Rebuild with autoconf 2.7.
1056 Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
1058 * scripttempl/pe.sc: Two .junk's is too much junk.
1060 Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
1062 * configure.in: Use BFD_NEED_DECLARATION.
1063 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
1064 * configure, config.in: Rebuild with autoconf 2.6.
1066 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
1067 being unsupported if this is not a relocateable link and the input
1068 BFD supports it, since ldctor_build_sets can cope with that case.
1070 Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
1072 * configure.tgt (powerpc-*-macos*): New target.
1073 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
1074 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
1075 (eppcmacos.c): New target.
1076 * mpw-eppcmacos.c: Update.
1077 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
1079 Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
1081 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
1082 $(host_canonical) and $(target_canonical).
1083 (CXX_FOR_TARGET): Likewise.
1085 Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
1087 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
1088 so the malloc heap begins at a sane place.
1090 Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
1092 Version 2.6 released.
1093 * ldver.c (ldversion): Update to 2.6.
1095 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
1096 $(GENERATED_*FILES), since they need to be retained by distclean.
1097 (maintainer-clean, realclean): Delete them here.
1099 Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
1101 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
1102 base file with FOPEN_WB, not "w".
1104 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
1105 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
1107 (gld${EMULATION_NAME}_before_allocation): Use the environment
1108 variable LD_RUN_PATH if -rpath was not used.
1109 * ld.texinfo, ld.1: Document LD_RUN_PATH.
1111 Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
1113 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
1114 -bl and -bloadmap options.
1116 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
1117 report a better error.
1119 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
1120 new local variable special_sections, and pass it to
1121 size_dynamic_sections. Look through the results, and move the
1122 sections around in the mapping so that they are defined correctly.
1124 Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
1126 * ldemul.c (ldemul_default_target): Cast getenv return value.
1128 Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
1130 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
1132 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
1135 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
1136 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
1138 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
1139 (gld_$_before_allocation): added hooks for toc construction based
1142 Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
1144 * ld.texinfo: The linker does not use _main as an entry point.
1146 Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
1148 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
1151 Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
1153 * configure.in: Add test for whether free must be declared.
1154 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
1155 * acconfig.h: Explain NEED_DECLARATION_FREE.
1156 * configure, config.in: Rebuild.
1158 * lexsup.c (parse_args): Take B:: out of shortopts.
1160 Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
1162 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
1163 for now, as with m68k4kbsd, until shared library support gets
1166 * configure.host: For i386 BSD variants, crt0.o lives in
1167 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
1169 Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
1171 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
1172 (edelta68.c): New target.
1173 * configure.tgt (m68*-motorola-sysv*): New target.
1174 * emulparams/delta68.sh: New file.
1175 * scripttempl/delta68.sc: New file.
1177 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
1180 Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
1182 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
1183 ALIGN and ALIGNMOD statements.
1185 * emultempl/aix.em: Include ldgram.h.
1186 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
1188 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
1190 Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
1192 * configure.host (alpha-*-linux*): New host.
1193 * configure.tgt (alpha-*-linux*): New target.
1195 Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
1197 * emultempl/aix.em (export_files): Remove.
1198 (import_files): Make static.
1199 (struct export_symbol_list): Define.
1200 (export_symbols): New static variable.
1201 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
1202 correctly. Call read_file for an export file.
1203 (gld${EMULATION_NAME}_before_allocation): Call
1204 bfd_xcoff_export_symbol for each export symbol, rather than
1205 calling read_file for each export file.
1206 (gld${EMULATION_NAME}_read_file): For an export file, make the
1207 exported symbols undefined, and store them on the export_symbols
1210 Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
1212 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
1213 Don't hang if last option is unrecognised.
1214 (gld_${EMULATION_NAME}_set_symbols): Insert created
1215 symbols into ABS output section.
1217 Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
1219 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
1221 (em68k4knbsd.c): New rule.
1223 * configure.tgt: Added support for the NetBSD m68k4k arch.
1225 * genscripts.sh, ldint.texinfo,
1226 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
1227 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
1228 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
1229 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
1230 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
1231 pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
1232 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
1233 PAGE_SIZE to TARGET_PAGE_SIZE.
1235 * emulparams/m68knbsd.h: Ditto.
1236 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
1237 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
1240 * emulparams/m68k4knbsd.sh: New file.
1242 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
1244 Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
1246 * emultempl/aix.em: Include ldctor.h.
1247 (gld${EMULATION_NAME}_after_open): New static function.
1248 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
1249 (gld${EMULATION_NAME}_find_relocs): New static function.
1250 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
1251 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
1252 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
1253 * ldctor.c (struct set_info): Move definition into ldctor.h.
1254 (struct set_element): Likewise.
1255 (sets): Make non-static.
1256 (ldctor_add_set_entry): Add name parameter. Save it in the new
1258 (ldctor_build_sets): Avoid being called twice. Pass set element
1259 name to lang_add_reloc.
1260 * ldctor.h (struct set_info): Move definition here from ldctor.c.
1261 (struct set_element): Likewise. Add new field name.
1263 (ldctor_add_set_entry): Declare new name parameter.
1264 * ldwrite.c (build_link_order): Don't insist that either name or
1265 section be NULL in a lang_reloc_statement.
1266 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
1268 (constructor_callback): Pass name to ldctor_add_new_set_entry for
1271 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
1273 Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
1275 * mpw-config.in: Add PowerMac target support, generate config.h.
1276 * mac-ld.r: New file, Mac resources.
1277 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
1278 * mpw-make.in: Remove.
1279 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
1281 Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
1283 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
1284 -static as a synonym for -bnso.
1286 * scripttempl/aix.sc: Move special symbols inside sections.
1287 Always start .data at 0.
1289 Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1291 * Makefile.in (diststuff): Also make info.
1292 (maintainer-clean realclean): Also delete *.info*.
1294 Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
1296 * emultempl/aix.em: Add support for various AIX linker options,
1297 for AIX import and export files, and for AIX shared objects.
1298 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
1300 * ldmain.c (main): Initialize new field link_info.static_link.
1302 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
1303 (constructor_callback): Likewise.
1304 * ldmisc.c (vfinfo): Likewise.
1305 * ldwrite.c (build_link_order): Likewise.
1307 * ld.texinfo: The MRI ALIGN directive is supported.
1309 Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
1311 * emulparams/elf32vr4300.sh: Deleted.
1312 * emulparams/elf32vr4300el.sh: Deleted.
1313 * emulparams/elf32b4300.sh: Added.
1314 * emulparams/elf32l4300.sh: Added.
1315 * configure.tgt, Makefile.in: Updated the build to use the
1316 new 8.3 unique names.
1318 Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
1320 * ldlang.c (entry_symbol): Make non-static.
1321 * ldlang.h (entry_symbol): Declare.
1323 * ldlex.l: Treat PROVIDE as a keyword in expression state.
1325 Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
1327 * scripttempl/pe.sc (.bss): Move to be after .text
1329 Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
1331 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
1332 Search trinary.cond rather than searching trinary.lhs twice. From
1333 linli@ihp.PHys.ethz.CH.
1335 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
1336 directory searching code into gld${EMULATION_NAME}_search_dir.
1337 (gld${EMULATION_NAME}_search_dir): New static function, extracted
1338 from gld${EMULATION_NAME}_find_so.
1339 (global_needed, global_found): New static variables.
1340 (gld${EMULATION_NAME}_after_open): New static function.
1341 (gld${EMULATION_NAME}_search_needed): New static function.
1342 (gld${EMULATION_NAME}_try_needed): New static function.
1343 (gld${EMULATION_NAME}_check_needed): New static function.
1344 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
1345 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
1347 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
1348 (eelf32lppc.c): Likewise.
1349 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
1350 (GENERATE_SHLIB_SCRIPT): Define as yes.
1352 Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
1354 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
1355 bfd_link_needed-list; make appropriate changes.
1357 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
1358 (rs6000-*-aix*): New target; use aixrs6.
1359 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
1360 * emultempl/aix.em: New file.
1361 * scripttempl/aix.sc: New file.
1362 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
1363 (eaixppc.c, eaixrs6.c): New targets.
1365 Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
1367 * scripttemp/pe.sc (.reloc): Move to the end.
1369 Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
1371 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
1372 section which was not linked into the final output.
1374 Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
1376 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
1379 Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
1381 * ld.h (args_type): Add rpath_link field.
1382 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
1383 required dependencies in rpath_link path. Only search
1384 LD_LIBRARY_PATH when configured native.
1385 * lexsup.c (parse_args): Recognize -rpath-link.
1386 * ld.1, ld.texinfo: Document -rpath-link.
1388 Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
1390 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1391 bother searching for needed libraries unless doing a final link.
1393 Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
1395 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1397 * ld/ld.1: Fix formatting bugs.
1399 Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
1401 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
1402 * ldexp.h (exp_get_abs_int): Update declaration.
1403 * ldlang.c (print_output_section_statement): Use fprintf_vma to
1404 print return value of exp_get_abs_int.
1406 Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
1408 * emultempl/elf32.em (global_stat): New file static variable.
1409 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
1410 that the file has not already been included under another name.
1411 (gld${EMULATION_NAME}_stat_needed): New static function.
1413 Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
1415 * scripttempl/armcoff.sc: Start .text at 0x8000.
1416 Start .data at 0x40000.
1418 Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
1420 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
1421 command_line.rpath is set, use it, rather than the -L options, to
1422 build the rules section.
1423 * ld.texinfo: Document this use of -rpath.
1425 * lexsup.c (parse_args): Don't set link_info.shared for -assert
1426 pure-text. Pass true, not 1, to lang_add_entry.
1427 * emultempl/sunos.em (find_assign): New static variable.
1428 (found_assign): New static variable.
1429 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
1430 If not a relocateable link, and no start symbol was specified on
1431 the command line, and there are any undefined symbols, set
1432 link_info.shared. If link_info.shared is set, set the address of
1433 the .text section to 0x20.
1434 (gld${EMULATION_NAME}_find_assignment): Rename from
1435 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
1436 set, then just set found_assign based on whether an assignment is
1437 found to find_assign.
1438 (gld${EMULATION_NAME}_get_script): Don't use a special script when
1439 producing a shared library.
1440 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
1441 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
1442 * ldlang.c (entry_from_cmdline): New global variable.
1443 (lang_add_entry): Change cmdline parameter from int to boolean.
1444 Use global entry_from_cmdline rather than function static
1446 * ldlang.h (entry_from_cmdline): Declare.
1447 (lang_add_entry): Change declaration of second parameter from int
1449 * ldgram.y: Pass false, not 0, to lang_add_entry.
1451 Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
1453 * ld.h (parsing_defsym): Declare.
1454 * ldlex.h (lex_string): Declare.
1455 * ldlex.l (lex_string): Define.
1456 * lexsup.c (parsing_defsym): Define.
1457 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
1458 lex_redirect, and clear it after calling yyparse. Set
1459 parsing_defsym around call to yyparse.
1460 * ldmain.c (main): Set lex_string before calling lex_redirect, and
1461 clear it after calling yyparse.
1462 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
1463 in linker scripts correctly.
1465 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
1466 COFF targets, allowing for the leading underscore used on SPARC
1469 * lexsup.c (parse_args): Handle -assert.
1470 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
1471 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
1472 shared library script when appropriate.
1473 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
1474 section at SIZEOF_HEADERS.
1476 Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
1478 * Makefile.in (earmcoff.c): Build.
1479 * configure.tgt (arm-*-coff): New target
1480 * emulparms/armcoff.sh: New file.
1481 * scripttempl/armcoff.sc: New file.
1483 Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
1485 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
1487 Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
1489 * ldfile.c (ldfile_set_output_arch): Make arch const.
1491 Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1493 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
1494 beginning of the .bss area, not at the end of data. Add
1495 __sbss_{start,end} symbols.
1497 Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
1499 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
1500 (CXX_FOR_TARGET, install): Likewise.
1502 Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
1504 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
1505 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
1506 (CXX_FOR_TARGET): Likewise.
1507 (install): Likewise.
1508 (GENERATED_HFILES): Remove config.h.
1509 (.dep): Depend upon config.h.
1511 Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
1513 * configure.tgt (mips*-dec-netbsd*): New target.
1515 Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
1517 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
1519 Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
1521 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
1523 Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
1525 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
1526 Start .text section on the right boundary. Always align
1529 Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
1531 * Makefile.in (maintainer-clean): New target.
1533 * ldmain.c (struct warning_callback_info): Define.
1534 (warning_callback): Add new parameter symbol. Call
1535 warning_find_reloc to try to find the section and VMA.
1536 (warning_find_reloc): New static function.
1537 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1538 Pass NULL as symbol parameter to warning callback.
1540 * ld.texinfo: Clarify -L option.
1542 * ldlang.c (lang_one_common): Add cast to avoid warning.
1543 (topower): Likewise. Also, reindent.
1544 * ldwrite.c (clone_section): Change i to unsigned int.
1545 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
1546 cast to avoid warning.
1548 Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
1550 * Makefile.in (config.status): Depend upon configure.tgt.
1552 * ldemul.h (ldemul_set_symbols): Declare.
1553 (ldemul_parse_args): Declare.
1554 * ldemul.c (ldemul_parse_args): Fix indentation.
1556 * configure.in: Call AC_HEADER_DIRENT.
1557 * configure, config.in: Rebuild.
1558 * emultempl/sunos.em: Use autoconf recommend mechanism to define
1559 DIR and struct dirent.
1561 * configure.tgt (mips*-*-bsd*): New case.
1563 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
1565 * configure.tgt (i[345]86-*-ptx*): New case.
1567 Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
1569 * config.in: Rename from config.h.in.
1570 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
1571 Check for config.h:config.in when creating stamp-h.
1572 * configure: Rebuild.
1573 * Makefile.in (stamp-h): Depend upon config.in rather than
1574 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
1575 calling config.status.
1577 * Makefile.in (distclean): Remove config.h and stamp-h.
1579 * configure.host (sparc-*-sunos64*): Remove.
1580 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
1582 * ldexp.c (exp_fold_tree): Don't warn about moving the location
1583 counter backward in the absolute section.
1585 Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
1587 * configure.in: Rewrite to use autoconf.
1588 * configure.host: New file.
1589 * configure.tgt: New file.
1590 * aclocal.m4: New file.
1591 * configure: New file, built by autoconf.
1592 * acconfig.h: New file.
1593 * config.h.in: New file, built by autoheader.
1594 * sysdep.h: New file.
1595 * ld.h: Incorporate old contents of config.h.
1597 * Makefile.in: Various changes for new configure script. Also:
1598 (CC_FOR_BUILD): Remove.
1599 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
1600 (dep.sed): Use @SRCDIR@, not @srcdir@.
1601 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
1602 * genscripts.sh: Create ldscripts if it does not exist.
1603 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
1604 * mpw-esh.c, emultemp/*.em: Likewise.
1605 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
1607 * config/*.mt, config/*.mh: Remove.
1609 Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
1611 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
1612 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
1614 Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
1616 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
1618 Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
1620 * ldmain.c (warning_callback): Add abfd, section, and address
1622 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1623 Change call to warning accordingly.
1625 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
1626 relocateable and not shared, put .gnu.warning.SYMBOL sections into
1629 Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
1631 * configure.in: Added mips*vr4300-idt-elf* and
1632 mips*vr4300el-idt-elf* targets.
1633 * Makefile.in: Added eelf32vr4300* targets.
1634 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
1635 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
1637 Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
1639 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
1640 <brendan@cygnus.com>.
1642 Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
1644 * ldemul.c (ldemul_parse_args): New.
1645 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
1646 * lexsup.c (all pe stuff): Moved into pe.em
1647 (parse_args): Call emulation arg parser.
1648 * emultempl/pe.em (parse_args): handle PE specfic args.
1650 Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
1652 * ldlang.c (lang_memory_region_lookup): Don't use the first region
1653 as the default region. Create a new region instead.
1655 Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
1657 * ldemul.c (ldemul_set_symbols): New function.
1658 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
1659 * ldmain.c (main): Add call to ldemul_set_symbols.
1660 * lexsup.c (set_pe_value): New args.
1662 (parse_args): Cope with new set_pe_value args.
1663 * emultempl/pe.em (set_symbols): New function.
1664 (ld_emulation_xfer_struct): Add set_symbols.
1665 * scripttempl/pe.sc: Use new symbols.
1667 Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
1669 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
1670 For -Y, ignore a leading `P,', and only call set_default_dirlist
1671 after processing all the other arguments.
1673 Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
1675 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
1676 * emulparams/armpe.sh: Run PE script.
1678 Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
1680 * ldmain.c (main): Remove PE stuff.
1681 * lexsup.c (options): Load more PE options.
1682 (set_pe_value): New function.
1684 Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
1687 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
1688 * emultempl/pe.sc: New file performs generic PE support and sorts
1690 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
1691 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
1692 * scripttempl/pe.sc: New.
1693 * Makefile.in: Use new files.
1695 Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
1697 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
1698 (.strings,.ctors,.dtors): Likewise.
1700 Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
1702 * scripttempl/armpe.sc: Always start code at 0x401000, even
1704 * ldwrite.c (strdup): New extern declaration.
1705 * ldgram.y (atype): New rule to clarify type parsing.
1706 * ldlang.c (init_os): Remove commented out code.
1707 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
1708 unless told not to by the link script.
1710 Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
1712 * ldlang.c (lang_set_startof): New static function.
1713 (lang_process): Call it.
1715 * ldgram.y: Tweak casesymlist to avoid bison errors.
1717 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
1718 Solaris compatibility.
1720 Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
1722 * ldgram.y (YYDEBUG): If not defined, define as 1.
1723 (CASE, EXTERN, START): New tokens.
1724 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
1725 (casesymlist): New nonterminal.
1726 (extern_name_list): New nonterminal.
1727 * ldlex.l: Accept lower case trailing base specifiers. Don't
1728 ignore the first digit when the base is a suffix. Accept many
1729 EXPRESSION state tokens in MRI state. Support MRI continuation
1730 lines and MRI semicolon comments. Accept all MRI keywords in
1731 lower case. Add CASE, EXTERN, and START MRI keywords.
1733 Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
1735 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
1738 Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1740 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
1741 $r/../gcc/xgcc unless it is present.
1743 Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
1745 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
1747 * scripttempl/m68klynx.sc: Likewise.
1748 * scripttempl/nw.sc: Likewise.
1749 * scripttempl/sa29200.sc: Likewise.
1750 * scripttempl/sparclynx.sc: Likewise.
1752 Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
1754 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
1756 Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
1758 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
1760 Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
1762 * scripttempl/i386pe.sc: Cope with constructors.
1763 * scripttempl/z8ksim.sc: Deleted.
1764 * scripttempl/z8000.sc: Resurrected as this, but
1765 can handle z8001 and z8002 formats.
1766 * emulparams/z8ksim.sh: Deleted.
1767 * emulparams/{z8001.sh, z8002.sh}: New files.
1768 * config/z8ksim.mt: Deleted
1769 * config/z8k-coff.mt: New, generates both emulations.
1771 Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
1773 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
1774 %B, in case it is in an archive.
1776 Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
1778 * ldlang.c (lang_process): Call reset_memory_regions for each
1781 Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
1783 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
1786 Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
1788 * ldmain.c (constructor_callback): Allocate set_name in stack
1789 frame, rather than always calling alloca with a fixed size.
1791 Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
1793 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
1794 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
1796 Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
1798 * ldwrite.c (clone_section): Set the alignment of the clone
1799 section to that of the section being cloned.
1801 * ldwrite.c (split_sections): Don't split the first input section
1802 into a new output section.
1804 Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
1806 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
1807 (GENERATE_SHLIB_SCRIPT): Define as yes.
1809 Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
1811 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
1813 * ldver.c (help): Update list of options to match currently
1816 Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
1818 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
1821 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
1822 it takes a size_t anyhow.
1823 (exp_binop): Likewise.
1824 (exp_trinop): Likewise.
1825 (exp_unop): Likewise.
1826 (exp_nameop): Likewise.
1827 (exp_assop): Likewise.
1828 * ldlang.c (lang_memory_region_lookup): Likewise.
1829 (init_os): Likewise.
1830 (ldlang_add_undef): Likewise.
1831 (insert_pad): Likewise.
1832 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
1835 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
1837 Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
1839 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
1841 (ld_emulation_xfer_type): Add search parameter to
1842 open_dynamic_archive entry point.
1843 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
1844 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
1845 make non-static. Change all callers to use new name.
1846 (ldfile_open_file_search): Make static. If entry is dynamic, call
1847 ldemul_open_dynamic_archive.
1848 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
1849 * ldfile.h (ldfile_open_file_search): Don't declare.
1850 (ldfile_try_open_bfd): Declare.
1851 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1852 Accept search parameter. Don't search for a library, just look in
1854 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
1857 Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
1859 * ldmain.c (set_scripts_dir): Don't base script directory on
1862 Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
1864 * ldmisc.c (vfinfo): Don't print the line number if it isn't
1867 Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
1869 * ld.h (ld_config_type): Add field warn_constructors.
1870 * ldmain.c (add_to_set): Warn if config.warn_constructors.
1871 (constructor_callback): Likewise.
1872 * lexsup.c (parse_args): Handle -warn-constructors.
1873 * ld.texinfo, ld.1: Document -warn-constructors.
1875 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
1876 get confused by directory names if we searched for the file.
1878 Based on patches from H.J. Lu <hjl@nynexst.com>:
1879 * ldlang.h (lang_input_statement_type): Add new field dynamic.
1880 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
1881 * ldfile.c: Include bfdlink.h.
1882 (ldfile_open_file): Check dynamic field of entry, not global
1883 dynamic_link field. Don't do a dynamic search when doing a
1885 * ldmain.c (main): Don't warn about dynamic_link for a
1887 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
1889 (gld${EMULATION_NAME}_create_output_section_statements): Always
1890 loop over input files.
1891 * Makefile.in: Rebuild dependencies.
1893 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
1896 Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
1898 * ldmain.c (main): Set link_info.symbolic to false.
1899 * lexsup.c (parse_args): Handle -Bsymbolic.
1901 Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
1903 * ldmain.c (HAVE_SBRK): Define for everything except
1904 specific systems that are known to not support sbrk.
1905 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
1907 Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
1909 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
1910 Handle etree_provide.
1912 * emultempl/elf32.em (global_needed): New static variable.
1913 (global_found): Likewise.
1914 (gld${EMULATION_NAME}_after_open): New static function.
1915 (gld${EMULATION_NAME}_search_needed): Likewise.
1916 (gld${EMULATION_NAME}_try_needed): Likewise.
1917 (gld${EMULATION_NAME}_check_needed): Likewise.
1918 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
1919 gld${EMULATION_NAME}_after_open.
1921 Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
1923 * configure.in (i386-*-win32): New target.
1925 Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
1927 * lexsup.c (parse_args): Let -G either set the small data size or
1928 be equivalent to --shared, depending on the next argument. Accept
1929 and ignore -z for Solaris compatibility.
1931 Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
1933 * lexsup.c (parse_args): Cast fopen result to PTR before storing
1934 it in link_info.base_file. Fix indentation.
1936 Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
1938 * ldmain.c (main): Always initialize PE info in link_info.
1939 * lexsup.c (OPTION_BASE_FILE): New option.
1940 (parse_args): Handle new option.
1941 * emulparams/armpe.sh: Output pei.
1942 * emultempl/i386pe.em: Add newline to end.
1943 * scripttempl/armpe.sc: Change output and quote the $s.
1944 * scripttempl/i386pe.sc: Change output and quote the $s.
1946 Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1948 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
1950 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
1951 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
1952 (i386msdos.o): New target.
1953 * config/i386-msdos.mt: Created.
1954 * emulparams/i386msdos.sh: Created.
1955 * scripttempl/i386msdos.sc: Created.
1957 Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1959 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
1960 that contains pointers to be relocated.
1962 Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
1964 * mpw-esh.c: New file, modified for MPW from esh.c.
1965 * scripttempl/sh.sc: Reformatted to simplify MPWification,
1966 use *() to concat stab sections instead of [].
1968 Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
1970 * scripttempl/armpe.sc: Add constructor support.
1972 Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
1974 * ldlang.c (lang_size_sections): Any section with a DATA
1975 statement has contents.
1977 Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1979 * emulparams/m68kelf.sh (NOP): Define.
1980 (DYNAMIC_LINK): Don't define.
1981 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
1982 will come from the linker script.
1984 Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
1986 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
1988 Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
1990 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
1992 Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1994 From Andrew Cagney <cagney@highland.com.au>
1995 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
1998 Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
2000 Add support for ARM-PE.
2001 * Makefile.in (ALL_EMULATIONS): Add armpe.o
2002 * configure.in: Recognize armpe.
2003 * config/arm-pe.mt: New file.
2004 * emulparams/armpe.sh: New file.
2005 * scripttempl/armpe.sc: New file.
2008 Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
2010 * configure.in (h8300h-*-hms): Deleted
2011 * config/cf-h8300h.mt: Deleted.
2013 Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
2015 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
2017 From David Taylor (dtaylor@armltd.co.uk)
2018 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
2019 * configure.in: Recognize arm{,e[lb]-*-aout.
2020 * config/arm[lb]-aout.mt: New files.
2021 * emulparams/armaout[lb].sh: New files.
2022 * scripttempl/armaout.sc: New file.
2024 Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2026 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
2027 be unique in 8 characters for DOS.
2029 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
2030 * emulparams/elf32ppcle.sh: Deleted.
2032 Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
2033 Tom Griest <griest@cs.yale.edu>
2035 Initial support for PE executables (eg NT, win32)
2037 * Makefile.in (configure.in, ei386pe): Add support.
2038 * ldmain.c (main): Initialize PE argument info.
2039 * ldwrite.c (print_file_stuff): Don't print out .drectve
2040 and .debug section info.
2041 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
2042 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
2043 Handle new arguments.
2044 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
2047 Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
2049 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
2050 segment. This allows ld -r to preserve unwind sections.
2052 Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2054 * configure.in: Add little endian PowerPC support.
2056 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
2057 (eelf32ppcle.c): Support for little endian PowerPC.
2059 * config/ppcle-elf32.mt: New file for little endian PowerPC.
2060 * emulparams/elf32ppcle.sh: Ditto.
2062 Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2064 * ldlang.c (print_output_section_statement): Check
2065 subsection_alignment, instead of checking section_alignment twice.
2066 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
2068 Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
2070 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
2072 Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
2074 * ldwrite.c (ldwrite): Before doing anything, reset the error
2075 code. If bfd_final_link returns an error, but the error code is
2076 unset, don't issue an extra message. Assume a correct error
2077 message was already set.
2079 Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2081 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
2082 (em68kelf.o): New target.
2083 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
2084 * configure.in: Use them for m68*-*-elf.
2086 Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
2088 Merge in support for Mac MPW as a host.
2089 (Old change descriptions retained for informational value.)
2091 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
2092 (i386-unknown-coff): Remove.
2093 (sh-hitachi-hms): New target.
2094 (emulation_ofiles): Set correctly for each target.
2095 (version, TDEFINES): Add to makefile fragment.
2096 * mpw-make.in (BISON): Use byacc instead of bison.
2097 (em_*.c): Replace with e*.c everywhere.
2098 (ldgram.h): Separate action from ldgram.c generation.
2099 (LD_PROG): Depend on Version.r.
2100 (Version.r): generate from version info.
2101 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
2103 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
2104 i386-unknown-aout, i386-unknown-coff): New targets.
2105 (m68k-aout, m68k-coff): Remove targets.
2106 (mk.tmp): Add definition of EMUL.
2108 * mpw-config.in (emulname): Set based on target.
2109 (ldemul-list.h): Construct.
2110 * mpw-make.in (install-only): New target.
2111 (install): Depend on install-only.
2113 * mpw-make.in (bindir): Fix pathname.
2114 (install): Move here from mpw-build.in.
2116 * mpw-config.in: New file, MPW configuration fragment.
2117 * mpw-make.in: New file, MPW makefile fragment.
2118 (This file is semi-automatically generated from Makefile.in.)
2119 * ldfile.c (slash): If MPW, set to `:'.
2120 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
2121 prevent redefinition errors.
2124 Thu Apr 6 20:38:36 1995 Doug Evans <dje@chestnut.cygnus.com>
2126 * emulparams/arcelf.sh (ENTRY): Define.
2129 Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
2131 * ldwrite.c (clone_section): Align clone sections on even
2134 Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
2136 * configure.in: Change linux to default to elf. Using
2137 i[345]86-*-linuxaout will build a linker which defaults to a.out.
2138 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
2139 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
2140 * config/i386-lelf.mt: Remove.
2142 Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
2144 * ldmain.c (main): If opening the map file fails, call
2145 bfd_set_error before calling einfo.
2147 * ld.texinfo, ld.1: Document the -no-keep-memory option.
2149 Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
2151 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
2152 does mark shared libraries as executable.
2154 Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
2156 * ldlang.c (lang_common): Change power to int. Pass larger values
2157 before smaller values.
2158 (lang_one_common): Treat info as int *. Don't bother to check for
2159 last value, since it is now zero.
2161 Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
2163 * ldlang.c (load_symbols): An empty archive is OK.
2165 Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
2167 * ldmain.c (progress.h): Include.
2168 (main): Call START_PROGRESS and END_PROGRESS.
2170 Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
2172 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
2173 .dtors sections, so that these pointers get relocated also.
2174 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
2175 and end of the constructors/destructors.
2177 Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2179 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
2180 describes an archive, call bfd_link_add_symbols on each member.
2181 * ldmain.c (whole_archive): New variable.
2182 (main): Initialize it to false.
2183 * ldmain.h: Declare whole_archive.
2184 * lexsup.c (parse_args): Grok --whole-archive switch.
2185 * ld.texinfo, ld.1: Document --whole-archive.
2187 Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
2189 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
2190 using the default emulation.
2192 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
2194 * config/hppaelf.mh (HOSTING_EMU): Likewise.
2196 Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
2198 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
2199 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
2201 Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
2203 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
2205 * ldlex.l: Return -lFILENAME as the token LNAME.
2206 * ldgram.y: Add token LNAME.
2207 (input_list): Treat LNAME like NAME, but pass it to
2208 lang_add_input_file as lang_input_file_is_l_enum.
2209 * ld.texinfo: Document using -lFILENAME in INPUT.
2211 Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2213 * ldlang.c (lang_check): If the architectures are compatible call
2214 bfd_merge_private_bfd_data to let the backend do additional
2218 Tue Mar 7 21:10:28 1995 Doug Evans <dje@chestnut.cygnus.com>
2220 * emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
2221 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
2224 Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
2226 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
2227 all supported emulations.
2229 Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
2231 * ldemul.c (ldemul_list_emulations): New function.
2232 * ldemul.h (ldemul_list_emulations): Declare.
2233 * ldver.c (help): List supported targets and emulations.
2235 Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
2237 * scripttempl/elf.sc (.debug): Relocate to address 0.
2238 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
2239 .debug_sfnames, .line): Likewise.
2241 Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
2243 * emultempl/elf32.em (hold_rel): New static variable.
2244 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
2245 contents whose names begin with ".rel" after hold_rel. Remove the
2246 assertion which checked for unplaced .rel sections. Don't try to
2247 sort the section into place if place->bfd_section is NULL.
2248 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
2249 section beginning with ".rel".
2251 Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
2253 Doc note from pierre@phi.la.tce.com (Pierre Willard):
2254 * ld.texinfo: -X and -x work even if -s or -S are not specified.
2255 * ld.1: Similar change.
2257 Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
2259 * emulparams/gld960coff.sh (COFF_CTORS): Define.
2260 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
2262 Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
2264 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
2265 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
2266 * config/i386-lelf.mt: New file.
2267 * config/i386-gelf.mt: New file.
2269 Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
2271 * configure.in: Match on mips-ecoff, and default to the IDT
2274 Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
2276 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
2277 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
2278 to double the size of the table.
2281 Thu Feb 9 19:03:25 1995 Doug Evans <dje@canuck.cygnus.com>
2283 * emulparms/arcelf.sh (TEMPLATE_NAME): Comment out.
2286 Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2288 * Makefile.in (distclean): Do recursive deletion, since ldscripts
2291 Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
2293 * ldmain.c (main): If trace_file_tries is true, and we are using
2294 an internal linker script, print out the script.
2295 * ldfile.c (try_open): Reindent function. Make the messages about
2296 opening script files more informative.
2298 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
2299 * ld.texinfo, ld.1: Update accordingly.
2301 Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
2303 * ldlang.c (lang_one_common): Adjust references to common symbol
2304 information for new structure.
2306 Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
2308 * ldmain.c (undefined_symbol): Handle section being NULL.
2310 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
2311 * ldexp.c (fold_name): Likewise.
2312 * ldlang.c (print_one_symbol): Likewise.
2313 (lang_finish): Likewise.
2314 * ldmain.c (multiple_common): Likewise.
2315 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
2316 renamed to bfd_link_hash_undefweak.
2318 * scripttempl/alpha.sc: Set address of .data section correctly
2319 when -n or -N is used. Patch from Chris G Demetriou
2320 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
2321 * scripttempl/mips.sc: Similar change.
2323 Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
2325 * ldlang.c (lang_size_sections): Clarify error message when user
2326 specified start addr conflicts with region. Fix resetting of
2329 Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
2331 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
2332 in lang_allocating_phase_enum.
2334 Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
2336 * Makefile.in (distclean): Depend upon clean. Don't bother to
2337 remove files which will be removed by clean. From patch by
2338 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
2340 Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
2342 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
2343 a MIPS target, clobber the size of all but the first input
2344 .reginfo section to be 0, so that lang_size_sections sets the
2345 correct size for the output .reginfo section.
2347 Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
2349 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2350 Remove unused variable is.
2352 Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2354 * configure.in: Add support for powerpc-*-eabi.
2356 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
2359 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
2360 elf.sc, which defines some new symbols PowerPC elf needs.
2362 Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
2364 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
2365 constructor entry is in the absolute section.
2367 Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
2369 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
2370 * config/i386-gnu.mt: New file. Include ELF support.
2372 Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
2374 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
2375 there are any input sections named .gnu.warning, treat them as
2376 containing a warning message to be printed by the linker, and
2377 clobber the size so that the message is not copied into the output
2379 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
2382 Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
2384 * configure.in (w65-*-*): New target.
2385 * Makefile.in: Update.
2386 * scripttempl/w65.sc: New.
2387 * config/coff-w65.mt: New.
2389 Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
2391 * ldlang.c (lang_place_orphans): Don't ignore files with
2392 just_syms_flag set. Instead, put all their sections in
2393 bfd_abs_section_ptr, using the section VMA as the output_offset.
2395 Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
2397 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
2398 name `reloc_howto_type', since it's now defined to be const.
2399 * ldlang.c (lang_add_reloc): Ditto.
2400 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
2402 Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
2404 * ldexp.c (fold_binary): Adding or subtracting an absolute value
2405 to a relative value does not require forcing the relative value to
2406 be absolute. Also, reindent function.
2408 Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2410 * ldwrite.c (clone_section): Create a symbol with the
2411 same name as the section.
2413 Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2415 * ld.h (split_by_reloc, split_by_file): New flags.
2416 * ldwrite.c (clone_section, split_sections): New functions.
2417 * lexsup.c (parse_args): Understand new split options.
2420 Tue Dec 13 16:45:18 1994 Doug Evans <dje@canuck.cygnus.com>
2422 * configure.in (arc-elf): New target.
2423 * Makefile.in (earcelf.c): New target.
2424 * config/arc-elf.mt: New file.
2425 * emulparms/arcelf.sh: New file.
2428 Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2430 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
2431 .data segment. They must be writable when creating a shared
2432 library. From H.J. Lu <hjl@nynexst.com>.
2434 Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
2436 * emultempl/miposecoff.em: New file.
2437 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
2438 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
2439 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
2440 provide __runtime_reloc_start and __runtime_reloc_stop if they are
2441 used. Align _fdata to a 16 byte boundary.
2442 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
2444 (emipsidtl.c): Likewise.
2445 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
2447 * ld.h (args_type): Add new field embedded_relocs.
2448 * ldemul.h (ldemul_after_open, after_open_default): Declare.
2449 (ld_emulation_xfer_struct): Add new field after_open.
2450 * ldemul.c (ldemul_after_open): New function.
2451 (after_open_default): New function.
2452 * ldlang.c (lang_process): Call ldemul_after_open.
2453 * lexsup.c (parse_args): Handle --embedded-relocs.
2454 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
2455 new after_open field to after_open_default.
2456 * emultempl/generic.em, emultempl/gld960.em: Likewise.
2457 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
2458 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
2459 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
2460 * ld.texinfo, ld.1: Mention -embedded-relocs.
2462 Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2464 * Makefile.in: Add eshl.o.
2465 * config/coff-sh.mt: Add shl emulation.
2467 Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2469 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
2470 Youngdale <eric@aib.com>.
2472 Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2474 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
2475 * config/i386linux.mh: New file; set HOSTING_CRT0.
2476 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
2477 /usr/lib, since that is already in LIB_PATH.
2479 Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
2481 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
2483 (.data, .bss): If "-N", then place the data/bss just after the end
2484 of the .text section rather than at the default 0x40000000.
2486 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
2489 Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2491 Patches from Eric Youngdale <eric@aib.com>:
2492 * ldlang.c (lang_finish): Don't warn if entry symbol not found
2493 when generating a shared library.
2494 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
2495 attempting to place an orphaned relocation section when generating
2496 a dynamically linked object.
2498 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
2501 Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2503 * ld.h (args_type): Add field export_dynamic.
2504 * lexsup.c (parse_args): Recognize --export-dynamic.
2505 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2506 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
2508 Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2510 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
2511 we allocate common symbols.
2513 Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
2515 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
2516 .rela.fini to the list of .rel* sections.
2518 Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2520 * ldlang.c (load_symbols): Add new argument place. Only accept
2521 linker scripts if place is not NULL. Put commands found in an
2522 assumed linker script into place.
2523 (lookup_name): Pass NULL as place argument to load_symbols.
2524 (open_input_bfds): In lang_input_statement_enum case, pass a place
2525 argument to load_symbols, and store any new statements after the
2528 Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2530 * ldver.c (ldversion): Bump to 2.5.3.
2532 Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2534 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
2536 Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2538 * Makefile.in (check): Add missing "else true" clause.
2540 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
2542 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
2543 entry point to "start". Align at end of each section to 0x200.
2544 Start .text section 0x1000 later. Add _etext, _edata, _end
2547 Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2549 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
2550 composed of different object file formats.
2551 (ldctor_build_sets): If the output format does not support the
2552 reloc, and we are not generating a relocateable link, try getting
2553 the reloc from the input format.
2555 Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
2557 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
2558 (em68knbsd.c): New target.
2560 * config/m68k-nbsd.mt: New file.
2561 * emulparams/m68knbsd.sh: New file.
2562 * configure.in (m68*-*-netbsd*): Use above configs.
2564 Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2566 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
2567 appropriately named static library, stop the search at that
2570 Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2572 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
2573 and esparcnbsd.o; sorted entries.
2574 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
2576 * config/netbsd532.mt: Removed.
2577 * emulparams/netbsd532.sh: Removed.
2579 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
2580 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
2581 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
2582 sparc*-*-netbsd*): Use above configs.
2584 Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2586 * ldmain.c (multiple_common): One of the types may now be
2587 bfd_link_hash_indirect. The old BFD argument may be NULL.
2589 Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2591 * configure.in: Add * at the end of m68k-hp-hpux.
2593 Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2595 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
2598 Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2600 * scripttempl/nw.sc: Gather constructors and destructors and
2601 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
2603 Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
2605 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
2606 (ei386nw.c, eppcnw.c): New targets.
2608 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
2609 scripttempl/nw.sc: New files, for i386 and powerpc netware.
2611 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
2612 instead of {i386,ppc}-elf.
2614 * configure.in (sparc*-*-netware): Removed. There is no such
2617 * ldint.texinfo: Move misplaced `@end iftex'.
2619 Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
2621 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
2622 .rela.dtors to the list of .rel* sections.
2624 Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2626 * ldver.c (ldversion): Update to version 2.5.
2627 * Version 2.5 released.
2629 * configure.in (all_targets): Handle i386-linux*.
2631 Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2633 * scripttempl/aout.sc: Set _etext and __etext to ., not
2634 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
2635 will not break any other system. From Eric Valette
2638 Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
2640 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
2641 --verbose to get the old -V behaviour.
2642 * ld.1, ld.texinfo: Document this change.
2644 Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2646 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2647 assertion, since it could fail with a user defined linker script.
2649 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
2650 name in the hash table during the first phase--the hash table does
2651 not even exist at that point, much less have the right value.
2653 * Makefile.in (CC): Define.
2654 (CXX): Move definition, change from g++ to gcc.
2655 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
2656 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
2657 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
2658 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
2659 (.cc.o): Comment out.
2661 (site.exp): Don't create testdir or set tmpdir.
2662 (check): Run checks even if not running native. Use CC_FOR_TARGET
2663 instead of RUNTEST_CC, and likewise for CXX.
2664 (cdtest targets): Comment out.
2665 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
2666 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
2667 * cdtest-main.cc, cdtest.exp: Remove.
2669 Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2671 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
2672 file naming problems.
2673 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
2674 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
2675 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
2676 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
2677 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
2678 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
2679 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
2681 * genscripts.sh: Always search /usr/local/TARGET/lib.
2683 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
2685 Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
2687 * configure.in: Handle i386-bsdi* targets like i386-bsd.
2689 Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2691 * lexsup.c (parse_args): Add support for -a for HP/UX
2694 * lexsup.c (parse_args): -c takes an argument.
2696 Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2698 * ld.h (args_type): Add new field endian.
2699 * lexsup.c (parse_args): Handle -EB and -EL by setting
2700 command_line.endian.
2701 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
2702 * ldlang.c (lang_add_output_format): Add arguments big and little.
2703 If command_line.endian is set, use it to select big or little
2704 rather than the default. Changed all callers.
2705 * ldlang.h (lang_add_output_format): Update declaration.
2706 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
2707 LITTLE_OUTPUT_FORMAT.
2708 * emulparams/elf32mipl.sh: Likewise.
2709 * emulparams/mipsbig.sh: Likewise.
2710 * emulparams/mipsbsd.sh: Likewise.
2711 * emulparams/mipsidt.sh: Likewise.
2712 * emulparams/mipsidtl.sh: Likewise.
2713 * emulparams/mipslit.sh: Likewise.
2714 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
2715 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
2717 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
2718 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
2719 * scripttempl/mipsbsd.sc: Likewise.
2721 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
2722 depending upon ldgram.c, so that a parallel make does not try to
2725 * configure.in (mips*el-elf*): New target.
2726 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
2727 (eelf32mipl.c): New target.
2729 * config/mipsl-elf32.mt: New file.
2730 * emulparams/elf32mipl.sh: New file.
2732 Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2734 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
2737 Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2739 * ldmisc.c (vfinfo): Print BFD file name as well as file name
2740 returned by find_nearest_line, in case the file name is something
2741 unhelpful such as a .h file. Handle %u.
2743 Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2745 * ldlang.c (lang_do_assignments): Make sure output statement
2746 has an attached bfd_section before trying to dereference it.
2748 Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2750 * ld.h (ld_config_type): Add new field warn_once.
2751 * ldmain.c (undefined_symbol): Handle -warn-once.
2752 * lexsup.c (parse_args): Recognize -warn-once.
2753 * ld.texinfo (Options): Document -warn-once.
2756 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
2757 name. For %C, print the function name on a separate line, to keep
2758 the length of error messages under control.
2759 * ldmain.c (multiple_definition): Use %D for ``first defined
2761 (undefined_symbol): Use %D for ``more undefined references
2764 * ldmisc.c (multiple_warn): Remove; no longer used.
2765 * ldmisc.h (multiple_warn): Don't declare.
2767 Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2769 * ldlang.c (print_output_section_statement): Print all lines
2772 Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2774 * ldlang.c (load_symbols): Check for archive before object. Use
2775 bfd_check_format_matches, and, if ambiguous, print a list of
2776 matching formats. If file format is not recognized, treat file as
2778 * ldgram.y (yyerror): If assuming an object file is a script,
2779 mention that. Tweak the format of the error messages.
2780 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
2781 guess that this is not actually a script, and just report that the
2782 file format was not recognized.
2783 * ld.texinfo (Options): Admit that -( may be used more than once.
2784 Add note that unrecognized object files are now treated as linker
2787 * ldfile.c (ldfile_input_filename): Make const.
2788 (ldfile_assumed_script): New variable.
2789 (try_open): Change arguments types to const.
2790 (ldfile_find_command_file): Likewise.
2791 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
2792 * ldfile.h: Update declarations for ldfile.c changes.
2793 * ldlex.l: Include <ctype.h>.
2794 (file_name_stack): Change to be const char *.
2795 (lineno_stack): New static variable.
2796 (<<EOF>>): Set lineno as well as ldfile_input_filename.
2797 (lex_push_file): Make name argument const. Initialize
2799 (lex_redirect): Initialize lineno_stack entry.
2800 (lex_warn_invalid): Handle non printable characters nicely.
2801 * ldlex.h (lex_push_file): Declare second argument as const.
2803 * ldgram.y (ifile_p1): Recognize GROUP.
2804 * ldlex.l: Recognize GROUP.
2805 * ld.texinfo (Option Commands): Document GROUP.
2807 Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2809 * config/m68klynx.mh: New file.
2811 Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
2813 * emultempl/hppaelf.em: Add newlines to the error messages.
2815 Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2817 * config/i386lynx.mh: New file.
2818 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
2819 unless CONSTRUCTING.
2821 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2823 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
2824 (GENERATE_SHLIB_SCRIPT): Define as yes.
2825 (DYNAMIC_LINK): Define as false.
2826 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
2827 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
2828 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
2829 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
2832 Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2834 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
2836 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2838 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
2839 .got section is now explicitly handled in elf.sc.
2841 Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2843 * scripttempl/alpha.sc: Redo script to set . outside of sections
2844 and not bother to explicitly specify section addresses.
2845 Explicitly place .sdata section.
2847 Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2849 * scripttempl/m68kcoff.sc: Put .bss in data segment.
2851 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
2852 0, and to only be marked as NOLOAD if relocating.
2853 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
2854 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
2855 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
2856 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
2857 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
2858 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
2859 * scripttempl/sparclynx.sc: Likewise.
2861 Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
2863 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
2864 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
2867 Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
2869 * ld.h (args_type): Add field soname.
2870 * lexsup.c (parse_args): Handle -soname argument.
2871 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
2873 * ld.texinfo: Document -soname.
2875 Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2877 * ldlang.c (lang_check): Don't try to set the architecture if the
2878 input and output files are incompatible. Just warn.
2880 Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2882 * configure.in: Change i[34]86 to i[345]86.
2884 Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2886 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
2888 Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2890 Make the ELF linker handle orphaned sections reasonably. Also,
2891 define __start_SECNAME and __stop_SECNAME around sections whose
2892 names can be represented in C, for the benefit of symbol sets in
2894 * ldemul.h (ldemul_place_orphan): Declare.
2895 (ld_emulation_xfer_type): Add place_orphan field.
2896 * ldemul.c (ldemul_place_orphan): New function.
2897 * ldlang.h (wild_doit): Declare.
2898 * ldlang.c (wild_doit): Make nonstatic.
2899 (lang_place_orphans): Call ldemul_place_orphan.
2900 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
2901 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
2903 (gld${EMULATION_NAME}_place_orphan): New static function.
2904 (gld${EMULATION_NAME}_place_section): New static function.
2905 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
2907 Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
2909 * scripttempl/aout.sc: Add .linux-dynamic after .data.
2911 Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2913 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
2914 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
2916 Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2918 * ldexp.h (exp_get_abs_int): Declare.
2920 Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2922 * ldlang.c (lang_do_assignments): Handle complex AT's better.
2923 * ldexp.c (exp_get_abs_int): New function.
2925 Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
2927 * configure.in: add i960-nindy-coff support.
2929 Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2931 * ldlex.l (yy_create_string_buffer): Handle change to internal
2932 interface in flex 2.4.7.
2934 Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
2936 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
2937 New function; add 0x20 to any use of -Ttext.
2938 (gld${EMULATION_NAME}_create_output_section_statements): New
2940 (ld_${EMULATION_NAME}_emulation): Use the new function
2941 gld${EMULATION_NAME}_create_output_section_statements.
2943 Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2945 * scripttempl/mips.sc: Redo script to set . outside of sections
2946 and not bother to explicitly specify section addresses.
2948 Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2950 * scripttempl/elf.sc: Copy several more relocation sections into
2951 the output. Put .got.plt sections into .got.
2953 Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2955 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
2957 Add a new script operator, PROVIDE, to define a symbol only if it
2959 * ldgram.y (PROVIDE): New token.
2960 (assignment): Accept PROVIDE.
2961 * ldlex.l (PROVIDE): New token.
2962 * ldexp.h (node_type): Add etree_provide to node_class enum.
2963 (exp_provide): Declare.
2964 * ldexp.c (exp_fold_tree): Handle etree_provide.
2965 (exp_provide): New function.
2966 (exp_print_tree): Handle etree_provide.
2967 * ld.texinfo: Document PROVIDE.
2969 * ldlang.c (lang_common): Pass desired alignment to
2970 lang_one_common as power of two.
2971 (lang_one_common): Get common symbol alignment from linker hash
2972 table entry. Treat desired alignment as a power of two.
2974 * ldlang.c (wild_section): Attach all section with the given name,
2975 not just the first one. If there is no name, attach all sections
2976 even if the SEC_IS_COMMON flag is set.
2978 Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2980 * ld.h (args_type): Add field rpath.
2981 * lexsup.c (S_ISDIR): Define if not already defined.
2982 (parse_args): Add support for -rpath. If -R is used to name a
2983 directory, treat it as -rpath for Solaris compatibility.
2984 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2985 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
2986 * ldmain.c (main): Initialize command_line.rpath to NULL.
2987 * ld.texinfo: Document -rpath option.
2989 Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
2991 * emulparams/pc532machaout.sh: New file. Pc532 mach script
2994 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
2996 * config/pc532mach.mt: New file. Pc532 mach target support.
2998 * config/pc532mach.mh: New file. Pc532 mach host support.
3000 * config/netbsd532.mt: New file. Netbsd 532 target support.
3002 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
3004 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
3007 Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3009 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
3010 bfd_abs_section_ptr, not &bfd_abs_section.
3012 * lexsup.c (parse_args): Changed "retain-symbols-file" from
3013 no_argument to required_argument. From djm.
3015 Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3017 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
3018 sections to force a VMA of 0; needed for ELF backends which have
3019 not been converted to the new linker style.
3021 Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
3023 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
3024 it was for the HPUX dynamic loader's use and it creates problems
3027 Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
3029 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
3030 * ldlang.h (lang_do_assignments): Put external decl here.
3031 * emultempl/hppaelf.em: Minor cleanups throughout file.
3032 (hppa_elf_create_output_section_statements): Rewrite.
3033 (hppaelf_finish): Rewrite.
3035 Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3037 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
3039 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
3041 * ld.texinfo: -Bstatic is not ignored.
3043 Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
3045 * ldlex.l: Recognize \r the same as \n.
3047 Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3049 Preliminary support for generating shared libraries, from Eric
3050 Youngdale <ericy@cais.cais.com>.
3051 * genscripts.sh: If the emulation parameter file sets
3052 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
3053 CREATE_SHLIB defined.
3054 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
3055 link_info.shared is set, use the .xs script file.
3056 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
3057 .interp section, and don't include TEXT_START_ADDR in the starting
3058 address of the first section.
3059 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
3060 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
3062 Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3064 * configure.in: Change --with-targets to --enable-targets.
3066 Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3068 * lexsup.c (parse_args): Add support for new options -( -) with
3069 synonyms --start-group --end-group.
3070 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
3071 (lang_group_statement_type): Define new struct.
3072 (lang_statement_union_type): Add group_statement field.
3073 (lang_enter_group, lang_leave_group): Declare.
3074 * ldlang.c (lang_for_each_statement_worker): Handle
3075 lang_group_statement_enum.
3076 (map_input_to_output_sections, print_statement): Likewise.
3077 (lang_size_sections, lang_do_assignments): Likewise.
3078 (open_input_bfds): Completely rewrite. Now does its own looping,
3079 rather than using lang_for_each_statement. Handle groups.
3080 (lang_process): Update call to open_input_bfds.
3081 (print_group): New static function.
3082 (lang_enter_group, lang_leave_group): New static functions.
3083 * ldfile.c (ldfile_open_file): If the file has already been
3084 opened, just return rather than taking an assertion failure.
3085 * ldver.c (help): Mention new options.
3086 * ld.texinfo: Document new options.
3088 * ldlang.c (end_of_data_section_statement_list): Don't define.
3089 (lang_leave_output_section_statement): Don't set obsolete variable
3090 end_of_data_section_statement_list.
3092 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
3095 * ldlang.c (lang_size_sections): Adjust current region address
3096 even for sections with an explicit address. From
3097 ralphc@pyramid.com (Ralph Campbell).
3099 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
3100 From jrs@world.std.com (Rick Sladkey).
3102 * scripttempl/mipsbsd.sc: Let sections align to their natural
3105 Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3107 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
3109 (lang_abs_symbol_at_beginning_of): Likewise.
3110 (lang_abs_symbol_at_end_of): Likewise.
3111 (lang_size_sections): Use bfd_is_abs_section to check for the
3112 absolute section. Don't try to set the VMA or output_offset or
3113 size of the absolute section.
3114 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
3117 Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
3119 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
3120 when generating relocatable objects.
3122 Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
3124 * emultempl/linux.em: New file providing support for linking
3125 against Linux shared libraries.
3126 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
3127 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
3129 Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3131 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
3132 * ldmain.c (main): Initialize link_info.shared to false. Give
3133 error if link_info.relocateable and link_info.shared are both set.
3135 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
3136 it as naming an emulation to be added to EMULATION_OFILES.
3137 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
3139 * Makefile.in: Rebuilt dependencies.
3140 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
3141 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
3142 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
3143 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
3144 (ei386linux.c): Remove; now in Makefile.in.
3145 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
3146 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
3147 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
3148 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
3149 (eelf64_sparc.c): Remove; now in Makefile.in.
3150 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
3151 (eelf32_sparc.c): Remove; now in Makefile.in.
3153 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
3154 no owner--it might be bfd_abs_section. From Eric Youngdale
3155 <ericy@cais.cais.com>.
3157 * scripttempl/aout.sc: Let sections align to their natural
3160 Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3162 * ldemul.h (ldemul_open_dynamic_archive): Declare.
3163 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
3164 * ldemul.c: Include ldexp.h and ldlang.h.
3165 (ldemul_open_dynamic_archive): New function.
3166 * ldfile.h (ldfile_open_file_search): Declare.
3167 * ldfile.c: Include ldemul.h.
3168 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
3169 argument, not bfd *. Change all callers.
3170 (ldfile_open_file_search): Rename from open_a. Return boolean
3171 argument, not bfd *. Clean up. Change all callers.
3172 (ldfile_open_file): If doing a dynamic link, call
3173 ldemul_open_dynamic_archive rather than assuming the extension of
3174 a dynamic object is ".so".
3175 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
3177 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
3179 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
3181 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
3182 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
3183 Accept -static as a synonym for -non_shared.
3185 Let the user change the dynamic linker used by ELF code.
3186 * ld.h (args_type): Add new field interpreter.
3187 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
3189 * ldmain.c (main): Initialize command_line.interpreter to NULL.
3190 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
3191 the ELF backend to return the .interp section. If
3192 command_line.interpreter is not NULL, set the contents of .interp
3194 * ld.texinfo: Mention -dynamic-linker.
3196 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
3199 * lexsup.c (parse_args): Sort out the option macros and change the
3200 definitions to make it easier to add a new option.
3202 * scripttempl/aout.sc: Define __etext and __edata to go along with
3205 * ld.h (ld_config_type): Add new field traditional_format.
3206 * lexsup.c (parse_args): Add traditional-format to longopts, and
3208 * ldmain.c (main): Initialize config.traditional_format to false.
3209 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
3210 flags of output_bfd according to config.traditional_format.
3211 * ldver.c (help): Mention -traditional-format.
3212 * ld.texinfo: Document -traditional-format.
3214 Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3216 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
3217 they are encountered.
3219 Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
3221 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
3222 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
3224 Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3226 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
3227 _FTEXT, _ETEXT and _FDATA. Dont define _END.
3229 * ldfile.c (open_a): If this is not an archive, try to open it in
3230 the current directory before searching for it.
3232 * lexsup.c (parse_args): Treat -i as a synonym for -r.
3234 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
3235 BLOCK works in a section address as documented.
3237 * ldgram.y (YYDEBUG): Don't define.
3239 Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3241 * emultempl/gld960.em: Pass false for new argument to
3242 ldfile_add_library_path.
3243 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
3245 * emultempl/sunos.em: Only look for .so files if doing a dynamic
3248 Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
3250 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
3252 Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
3254 * Makefile.in (check): Delete ld.new dependency so that a regression
3255 test doesn't trigger a rebuild of the linker.
3257 Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3259 * ldlang.c (map_input_to_output_sections): For lang_address, call
3260 init_os if it hasn't already been called.
3262 Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3264 Add support for SunOS shared libraries.
3265 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
3266 shared library support code.
3267 * emultempl/sunos.em: New file.
3268 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
3269 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
3270 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
3271 (esun3.c): Likewise.
3273 * ldlang.c: Minor formatting cleanups.
3274 (lang_for_each_input_file): New function.
3275 * ldlang.h (lang_for_each_input_file): Declare.
3277 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
3279 (search_head): Declare.
3280 (ldfile_add_library_path): Add new cmdline argument in prototype.
3281 * ldfile.c (search_head): Make non-static.
3282 (search_dirs_type): Move to ldfile.h.
3283 (ldfile_add_library_path): Accept cmdline argument, and save it.
3284 * lexsup.c (parse_args): Pass true for new cmdline argument of
3285 ldfile_add_library_path.
3286 (set_default_dirlist): Likewise.
3287 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
3288 argument of ldfile_add_library_path.
3289 * ldgram.y (ifile_p1): Likewise.
3291 Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3293 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
3294 total_size, superfile and chain.
3295 * ldfile.c (open_a): Don't clear search_dirs_flag.
3296 (ldfile_open_file): Don't try to open superfile. Assert that file
3297 has not already been opened.
3298 * ldlang.c (new_afile): Don't initialize superfile.
3299 * ldmain.c (add_archive_element): Don't initialize subfiles or
3300 chain or superfile. Initialize search_dirs_flag to false.
3302 Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3304 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
3306 Changes from binutils-2.4 release:
3308 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
3309 variables, use whitespace, so scripts don't break.
3311 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
3313 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
3315 * cdtest-bar.cc: Renamed from cdtest-func.cc.
3316 * Makefile.in: Noted change.
3318 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
3319 don't know where that's supposed to come from, or why it's
3322 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
3324 * configure.bat: update to latest makefile.in
3325 * emulpara/go32.sh: set to coff-go32 not aout
3326 * emultemp/generic.em: strength-reduce the structure of
3327 this shell script, since the only available shell for
3328 DOS can't handle complex syntax.
3329 * emultemp/stringify.sed: for "sed -f" instead of inline.
3330 * makefile.in: depend on stringify.sed as well as genscripts.sh
3331 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
3332 * genscripts.sh: empty variables aren't always considered "set",
3333 so set them to "y" instead.
3335 Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3337 * ldlang.c (entry_symbol): Make static.
3338 (lang_add_entry): Add cmdline argument.
3339 * ldlang.h (lang_add_entry): Change prototype.
3340 * ldgram.y (statement_anywhere): Change lang_add_entry call.
3341 * lexsup.c (parse_args): Likewise.
3343 Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3345 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
3346 .reginfo an address.
3347 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
3348 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
3349 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
3351 Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3353 Add support for ELF shared libraries.
3354 * ld.h (ld_config_type): Add field dynamic_link.
3355 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
3356 on attempts to use -r with -relax, -call_shared or -s.
3357 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
3358 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
3359 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
3360 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
3361 OPTION_NON_SHARED by setting dynamic_link field accordingly.
3362 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
3364 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
3365 opening a file with a .so extension first.
3366 * emultempl/elf32.em: New file.
3367 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
3368 (NONPAGED_TEXT_START_ADDR): Likewise.
3369 (TEMPLATE_NAME): Define as elf32.
3371 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
3372 * scripttempl/elf.sc: Add placement for new dynamic sections.
3373 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
3374 outside of any section. Don't use ALIGN(8); just let one section
3375 VMA follow another. Put .dynbss in .bss. Don't mention debugging
3376 sections; they'll be handled correctly anyhow.
3377 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
3379 Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
3381 * Makefile.in (install): Redirect output of ln to /dev/null.
3383 Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
3385 * emultempl/hppaelf.em: Change all references of
3386 .hppa_linker_stubs to .PARISC.stubs.
3387 * scripttempl/hppaelf.sc: Likewise.
3389 Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3391 * ldlang.c (print_output_section_statement): Change ``no attached
3392 output section'' message slightly.
3393 (lang_do_assignments): Don't recurse down if there is no real
3396 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
3397 match corresponding change in emulation templates.
3398 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
3399 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
3401 Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3403 * ldver.c (ldversion): Updated version number.
3405 * cdtest-foo.cc: Use explicit "#pragma implementation".
3406 * cdtest-bar.cc: Renamed from cdtest-func.cc.
3407 * Makefile.in: References to cdtest-func.o changed to
3410 Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3412 Don't create unnecessary output sections.
3413 * ldlang.c (out_bfd_get_section_by_name): Remove.
3414 (wild_section): Call bfd_get_section_by_name rather than
3415 our_bfd_get_section_by_name. Don't call wild_doit if there is no
3417 (lang_create_output_section_statements): Remove.
3418 (map_input_to_output_sections): For several cases, call init_os if
3419 it has not already been called.
3420 (lang_size_sections): If output section was not created, skip it.
3421 (lang_process): Don't call lan_create_output_section_statements.
3422 (lang_place_orphans): Skip files with just_syms_flags set to true.
3423 * ld.texinfo: Document change.
3425 Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3427 * ldlang.c (wild_doit): Don't bother initializing the vma and
3428 section size. Don't special case SEC_SHARED_LIBRARY.
3429 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
3432 Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
3434 * config/go32.mh : New file for Xgo32X.
3436 Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3438 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
3439 before calling einfo, since we are reporting an fopen failure.
3440 From jrs@world.std.com (Rick Sladkey).
3442 * configure.in: Use "e" rather than "em_" as prefix for
3445 Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
3447 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
3449 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
3450 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
3452 * Makefile.in: Changed all generated file names.
3453 (ldemul-list.h): Depend on Makefile, not config.status. Changed
3454 sed patterns to handle new filenames.
3456 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
3457 * configure.in: Adjusted.
3459 Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3461 * Makefile.in (install-info): Don't use "$<*", it doesn't always
3462 work. Instead, check build dir and $srcdir explicitly, and use
3463 `echo' to get all the filenames.
3465 * configure.in (h8300h-*-hms): Changed ld_target name to
3467 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
3470 * config/i960coff.mt: New file.
3471 * emulparams/gld960coff.sh: New file.
3472 * emultempl/gld960c.em: New file.
3473 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
3474 i960coff configuration.
3475 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
3477 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
3478 code isn't included in FSF releases, and it can still be
3479 explicitly selected.
3480 (distclean): Remove site.bak and tmpdir.
3481 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
3482 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
3484 Patches from Ralph Campbell:
3485 * config/mipsbsd.mh: New file.
3486 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
3487 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
3488 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
3491 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
3493 Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3495 * config/m68k.mt (EMUL): Set to m68kaout.
3496 * emulparams/m68kaout.sh: New file.
3497 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
3498 (em_m68kaout.c): New target.
3500 * ldlang.c (lang_size_sections): If dot moves because of an
3501 assignment, don't try to insert a pad into the absolute output
3502 section, just change the address of the default memory region
3505 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
3506 cdtest-ur.out, and cdtest-ur.tmp.
3508 Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3510 * scripttempl/sa29200.sc: Align all sections to four byte
3513 Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
3515 * Makefile.in, configure.in: Support for go32 coff.
3516 * config/i386-go32.mt: New file
3517 * emulparams/i386go32.sh: New file
3518 * scripttempl/i386go32.sc: New file
3520 Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
3522 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
3523 Lynx-specific script templates.
3524 * configure.in (sparclite*-*-coff): Use coff-sparc.
3525 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
3526 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
3527 (ENTRY): Set to __main.
3528 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
3529 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
3530 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
3532 Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3534 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
3535 byte boundary, in case the global constructors do not take up an
3538 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
3539 exist, get crtbegin based on gcc -print-libgcc-file-name.
3540 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
3542 Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3544 * ldlang.c (lang_size_sections): When no address is given for a
3545 section, align it according to its requirements.
3547 Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3549 * Makefile.in (clean, distclean): Remove configdoc.texi.
3551 Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
3553 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
3555 Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3557 * ldlang.c (lang_size_sections): When relaxing, adjust the
3558 position of a padding statement, and adjust dot accordingly.
3560 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
3562 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
3564 Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3566 * scripttempl/i386coff.sc: If relocating, don't put .init and
3567 .fini sections into .text; keep them separate.
3568 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
3569 exist, get crtbegin based on gcc -print-libgcc-file-name.
3570 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
3572 Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
3574 * Makefile.in (check): Set TCL_LIBRARY for runtest.
3576 Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3578 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
3581 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
3582 if building a final executable.
3584 Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3586 * ldmain.c (main): Check the return value of bfd_close.
3588 Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3590 * scripttempl/alpha.sc: Clean up section alignment to ensure that
3591 sections never overlap when using -r.
3593 Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3595 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
3596 changes: get_symtab_upper_bound renamed and returns long,
3597 bfd_canonicalize_symtab returns long, check for error indications.
3599 Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3601 * ldlang.c (print_input_section): For section size, use
3602 _cooked_size if it is non-zero, size otherwise.
3603 (size_input_section): Likewise.
3604 (lang_do_assignments): Likewise (case lang_input_section_enum).
3606 Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3608 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
3609 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
3610 (lang_add_input_file): Pass true to new_afile for add_to_list.
3611 (lookup_name): Remove force_load argument. Changed all callers.
3612 Pass false to new_afile for add_to_list. Split loading of symbols
3613 out into separate function.
3614 (load_symbols): New function split out of lookup_name. Don't load
3615 the symbols if they are already loaded.
3616 (open_input_bfds): For lang_input_statement_enum call load_symbols
3617 rather than lookup_name.
3618 (lang_process): Pass abs_output_section rather than NULL to
3620 (lang_startup): Set real field of first_file to true.
3622 Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3624 * ldlang.c (had_relax): Removed.
3625 (relax_again): New static variable.
3626 (lang_size_sections): Change call to bfd_relax_section to
3627 correspond to BFD changes. Set relax_again appropriately.
3628 (lang_process): Remove #if 0 code. When relaxing, keep calling
3629 lang_do_assignments and lang_size_sections until relax_again
3632 * emultemp/gld960.em: Include libiberty.h
3633 (gld960_before_parse): Pass NULL as final argument to concat.
3635 Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3637 * scripttempl/aout.sc: Force _end and __end to be aligned to a
3640 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
3641 building a bfd_data_link_order, rather than by setting the section
3642 contents immediately.
3644 Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3646 Changes to make -Ur work again.
3647 * ldmain.c (add_to_set): Now takes reloc argument rather than
3648 bitsize. Check config.build_constructors here. If an new hash
3649 table entry is created, mark it as undefined.
3650 (constructor_callback): No longer takes bitsize argument. Pass
3651 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
3652 BFD backend supports it.
3653 (reloc_overflow): Handle a NULL abfd argument.
3654 (reloc_dangerous, unattached_reloc): Likewise.
3655 * ldctor.c: Include ldmain.h.
3656 (struct set_info): Change bitsize field to reloc.
3657 (ldctor_add_set_entry): Now takes reloc argument rather than
3658 bitsize. Don't bother to check config.build_constructors here.
3659 (ldctor_build_sets): Get the size from the reloc howto. If
3660 generating relocateable output, call lang_add_reloc rather than
3662 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
3664 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
3665 (lang_reloc_statement_type): New structure.
3666 (lang_statement_union_type): Add reloc_statement field.
3667 (lang_add_reloc): Declare new function.
3668 * ldlang.c (lang_for_each_statement_worker): Handle
3669 lang_reloc_statement_enum.
3670 (map_input_to_output_sections, print_statement): Likewise.
3671 (lang_size_sections, lang_do_assignments): Likewise.
3672 (print_reloc_statement): New function.
3673 (lang_add_reloc): New function.
3674 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
3676 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
3677 (cdtest-ur, cdtest-ur.out): New targets.
3678 (check-cdtest): Now also check that -Ur works correctly.
3680 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
3682 Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3684 * ldlang.c (lang_process): Move lang_common call before
3685 map_input_to_output_sections, to ensure that any alignment
3686 constraints set by common symbols are copied over to the output
3689 Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3691 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
3692 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
3693 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
3694 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
3697 Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3699 * config/i386bsd.mh: New file.
3701 Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3703 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
3705 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
3706 (DATA_START_SYMBOLS): Define _fdata.
3708 Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
3710 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
3712 Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3714 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
3715 works again. Attach some output symbols to the stub file bfd.
3717 * emultempl/hppaelf.em: Include elf32-hppa.h.
3718 (file_chain): Add decl.
3719 (hppa_look_for_stubs_in_section): Delete decl.
3720 (hppaelf_finish): Reenable code. Do not pass symbols
3721 down to hppa_look_for_stubs_in_section.
3723 Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
3725 * ldmain.c (write_map): Don't define. Removed all references.
3726 Just use map_file or map_filename instead.
3727 (add_archive_element): Use minfo to write map information, not
3729 (constructor_callback): Use fprintf to write map information, not
3731 * ldmain.h (write_map): Don't declare.
3732 * ldgram.y (mri_script_command): Removed reference to write_map.
3733 * ldlang.c (lang_one_common): Likewise.
3734 * lexsup.c (parse_args): Likewise.
3736 Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
3738 * scripttempl/elf.sc: Force all sections to be aligned.
3740 * ldgram.y (section): Reverse the order of memspec_opt and
3741 fill_opt to avoid an ambiguity when both are used.
3742 * ld.texinfo: Changed accordingly.
3744 * ldgram.y: Move include of ldlex.h back with other includes.
3745 * ldlex.h (input_type): Don't initialize enum constants to
3747 * ldlex.l: Use a switch to return the right token based on
3748 input_type, rather than knowing that input_type has a value based
3751 * ldgram.y (dirlist_ptr): Removed; not used.
3752 * lexsup.c: Include ldver.h.
3753 * Makefile.in: Rebuilt dependencies.
3755 Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
3757 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
3758 (ldlang_add_file): call it here instead.
3760 Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3762 * ldgram.y: Include ldlex.h after %token decls, for byacc.
3764 Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3766 * emultempl/hppaelf.em: First attempt to clean this file up.
3767 Add comments in several functions as to their purpose and
3768 how they function (or my current best guess). Clean up horrible
3769 spacing and indention that never should have been accepted in the
3770 first place. Add FIXMEs for issues which need to be resolved.
3771 Disable linker-stub generation until it gets fixed. This allows
3772 the linker to at least work on simple code for testing purposes.
3774 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
3775 it via hppaelf_finish). Prototype moved into ldlang.h.
3776 (lang_process): Move problematic extra call to lang_size_sections
3777 into the PA ELF specific code.
3778 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
3779 lang_size_sections moved here.
3781 Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
3783 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
3784 * config/ppc-elf32.mt: New file.
3785 * emulparams/elf32ppc.sh: New file.
3786 * emultempl/ppc.em: New file.
3787 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
3788 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
3789 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
3791 Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3793 * lexsup.c (parse_args): Use symbolic numbers for long options.
3794 Fix misunderstanding in -Y and -call_shared et al.
3796 Use getopt instead of lex and yacc to parse the command line.
3798 * ld.texinfo (Options): Document changes to option syntax.
3799 * Makefile.in: Update dependencies.
3800 * ldver.c (help): Tweak dashes in usage message.
3801 * ldgram.y (%union): Remove unused members.
3802 Remove %tokens for command line options; add ones for input types.
3803 (command_line): Rules removed.
3804 (file): Instead of command line, recognize an
3805 input type indicator, then use the nonterminal for that type.
3806 (defsym_expr): New nonterminal from code formerly in command_line.
3807 * ldlex.h: Declare parser input type enum and variable.
3808 Don't declare parse_line.
3809 * ldlex.l: Remove unused variables. Make some used ones static
3811 (COMMAND): Start state and its rules removed.
3812 At start of yylex, return input state token if at start of input.
3813 (lex_redirect): Don't need to set yyout.
3814 (ldlex_command): Function removed.
3815 * ldmain.c (main): Instead of calling parse_line, set up the
3816 redirections and call yyparse directly.
3817 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
3819 * lexsup.c: Remove #if 0'd code.
3820 (parse_line): Function removed.
3821 (parse_args): Rewrite to use getopt_long_only.
3822 (set_default_dirlist): New function from code formerly in
3823 ldgram.y:command_line.
3824 (set_section_start): New function.
3825 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
3826 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
3827 compiled-in link scripts in "{" and "}", as the grammar no longer
3830 Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
3832 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
3833 require that it be in $(srcdir).
3835 Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
3837 * ldlang.c (lang_size_sections): Only align section to alignment
3838 required by linker script, not to maximum alignment of input
3841 * ldlang.h (largest_section): Don't declare.
3842 * ldlang.c (largest_section): Don't define.
3843 (size_input_section): Don't set largest_section; not used.
3845 Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
3847 * ldlang.c (new_afile): Pass NULL as last argument to concat.
3849 Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3851 * ldlang.c, ldmain.c: Include libiberty.h.
3853 * ldmisc.h (concat): Don't declare.
3854 * ldmisc.c (concat): Don't define; just use the one in libiberty.
3856 * ld.h (as_output_section_statement): Removed; not used.
3858 Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3860 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
3861 bfd_set_error and new error names.
3863 Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3865 * ldwrite.c (build_link_order): If the cooked size of the section
3866 has been set, use it, for determining link_order size.
3867 (ldwrite): In the error message displayed if bfd_final_link fails,
3868 indicate that it was in fact the final link step that failed.
3870 * ldlang.c (lang_size_sections): Clear bfd_error before calling
3871 bfd_relax_section, in case it returns false but doesn't flag an
3872 error. If an error is returned, indicate which one it is in the
3875 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
3876 it'll get picked up from $(srcdir) if appropriate.
3878 Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
3880 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
3881 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
3883 Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3885 * ldlex.l (comment): Increment line number when newline is read.
3887 Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3889 * ldlang.c (lookup_name): Take new argument, force_load. If true,
3890 reload the file even if it is already loaded.
3891 (wild): Call lookup_name with force_load argument of 0.
3892 (open_input_bfds): Call lookup_name with force_load argument of 1.
3893 (print_symbol): Remove declaration of non-existent function.
3894 (print_one_symbol): Return true rather than falling off end.
3896 Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3898 * ldmain.c (main): Use %ld when printing long values.
3900 * scripttempl/elf.sc: Move _edata after the .sdata section.
3901 Permit OTHER_BSS_SYMBOLS to be defined.
3902 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
3904 Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3906 * Rename all "hppaosf" files to "hppaelf".
3907 * Change all "osf" references to "elf" in hppaelf files.
3908 * Makefile.in: Likewise.
3909 * configure.in: Likewise.
3911 Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3913 * ldmain.c (main): Call xatexit, not atexit.
3914 Call xmalloc_set_program_name.
3916 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
3919 Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3921 * emultempl/lnk960.em (append), emultempl/hppaosf.em
3922 (hppaosf_finish): Call xmalloc, not ldmalloc.
3923 * ldmain.c (preserve_output): Function removed.
3924 (main): Do it here instead.
3926 Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3928 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
3929 GNU C specific macros.
3931 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
3932 call to LANG_FOR_EACH_INPUT_SECTION.
3934 Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3936 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
3937 deleted; will use libiberty versions instead.
3938 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
3939 mri.c Makefile.in: Change callers.
3941 * ldmisc.c (vfinfo): Remove cleanup code.
3942 * ldmain.c (remove_output): Put it here (new function).
3943 (preserve_output): New function.
3944 (main): Register remove_output and preserve_output with atexit.
3945 * ldmain.c ldgram.y: Call xexit instead of exit.
3946 * ldmisc.h: Declare xexit.
3948 Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
3950 * Makefile.in: Lots of new H8/500 memory models.
3952 Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3954 * ldlex.l: Removed duplicate rules.
3955 (yywrap): Provide default definition, needed with some versions of
3958 Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3960 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
3961 the archive filename too.
3963 * ldlex.l: Add rule to catch invalid input characters instead of
3964 printing them. Include "ldmain.h" for program_name decl.
3965 (lex_warn_invalid): New function.
3966 * Makefile.in: Add dependency.
3968 Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
3970 * Makefile.in (check): Don't bother running any tests of
3971 cross-linker until the test suite no longer assumes native mode.
3973 Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3975 * ldlang.c (print_one_symbol, print_input_section): Print
3976 global symbols in symbol table again.
3978 Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3980 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
3981 exit successfully instead of complaining if no input files are
3984 Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
3986 * Makefile.in: Format variable definitions consistently.
3987 (LD_PROG): Remove unnecessary variables from link command,
3988 change variable LOADLIBES to EXTRALIBS.
3990 * ldmain.c (main): Compute and display total execution time.
3991 * ld.texinfo (-stats): Document the option.
3993 Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3995 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
3998 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
4001 * ldlang.c (relaxing): Removed global variable.
4002 (lang_size_sections): If the canonical symbols have not already
4003 been read in, read them in before relaxing.
4004 * ldlang.h (relaxing): Removed declaration.
4006 Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4008 * ldlang.c (new_afile): Initialize loaded field to false.
4009 (lookup_name): If file was already loaded, don't call the
4010 add_symbols entry point again.
4012 Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4014 * ld.texinfo: Clarify what -T option does.
4016 Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4018 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
4021 Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4023 * ldmain.c (add_archive_element): If trace_files or
4024 trace_file_tries, print file name.
4025 * ldlang.c (lookup_name): Likewise.
4026 (ldlang_add_file): Don't put files on input_bfds list in reverse
4029 * scripttempl/elf.sc: Correct typo.
4031 Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4033 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
4034 their arguments optional, for compatibility with the old GNU ld.
4036 Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4038 * scripttempl/elf.c: Define __bss_start before the .sbss section.
4040 Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4042 * ldmain.c (add_to_set): Add bitsize argument.
4043 (constructor_callback): New function.
4044 (link_callbacks): Add constructor_callback.
4045 * ldctor.c (struct set_info): Add bitsize field.
4046 (ldctor_add_set_entry): Add bitsize argument.
4047 (ldctor_build_sets): Base the size of the elements of the set on
4048 the bitsize, rather than always using LONG.
4049 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
4051 * ld.h (QUAD_SIZE): Define.
4052 * ldgram.y (QUAD): New token.
4053 (length): Handle it.
4054 * ldlex.l: Return QUAD.
4055 * lexsup.c (keywords): Add QUAD.
4056 * ldwrite.c (build_link_order): Handle QUAD.
4057 * ldlang.c (print_data_statement): Handle QUAD.
4058 (lang_size_sections): Likewise.
4059 (lang_do_assignments): Likewise.
4060 * ldexp.c (exp_print_token): Add QUAD to table.
4061 * ld.texinfo: Describe QUAD.
4063 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
4064 since the Alpha doesn't use them.
4066 Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4068 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
4070 Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
4072 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
4073 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
4075 Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4077 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
4078 needed for i386mach. (Should be a no-op on other systems.)
4080 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
4081 (PAGE_SIZE): Don't define; not used.
4083 Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4085 * ldgram.y (yyerror): Make argument const char *, and actually
4086 print it out rather than assuming it is a syntax error.
4087 * ldmisc.h: Change declaration of yyerror.
4088 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
4090 Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4092 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
4093 exec header offset, since the exec header isn't loaded.
4094 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
4096 Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4098 A major rewrite to move the bulk of the linker into BFD so that
4099 more efficient backend code can be written for specific object
4101 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
4102 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
4103 * ldctor.c, ldctor.h: Complete rewrite.
4104 * ldwrite.c, ldwrite.h: Complete rewrite.
4105 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
4106 link_info.strip instead. Changed all uses.
4107 (discard_locals_type, discard_locals): Removed. Use
4108 link_info.discard instead. Changed all uses.
4109 (ld_config_type): Removed relocateable_output field; use
4110 link_info.relocateable instead; changed all uses. Added stats
4112 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
4113 set_loader_symbol): Removed.
4114 * ldexp.h (node_class): Added etree_rel.
4115 (etree_type): Added rel field.
4116 * ldexp.c (exp_print_token): Bracketed table initialization.
4117 (exp_relop): New function.
4118 (fold_name): Use linker hash table rather than ldsym functions.
4119 (exp_fold_tree): Likewise. Also, handle etree_rel case.
4120 (exp_print_tree): Handle etree_rel.
4121 * ldgram.y (strip_symbols, discard_locals): Removed.
4122 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
4123 (REL): New token. Does not appear in grammar, but needed for
4125 (file): Don't call lang_final; it's called by main anyhow.
4126 * ldlex.l: Accept -stats and -no-keep-memory options.
4127 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
4128 * ldlang.c: Consistently use fill_type for fill argument.
4129 (lang_init_script_file, script_file): Removed.
4130 (create_object_symbols): Removed. Use
4131 link_info.create_object_symbols_section instead. Changed all
4133 (lang_add_keepsyms_file): Removed.
4134 (lookup_name): Call bfd_link_add_symbols instead of
4135 ldmain_open_file_read_symbol.
4136 (wild): Don't iterate over script_file.
4137 (open_output): Create link hash table.
4138 (lang_place_undefineds): Rewrote.
4139 (lang_size_sections): Handle relaxing (doesn't work yet).
4140 (lang_relocate_globals): Removed.
4141 (lang_finish): Use link hash table rather than ldsym functions.
4142 (lang_common): Rewrote.
4143 (lang_one_common): New function.
4144 (ldlang_add_file): Add file to link_info.input_bfds list. Set
4146 (create_symbol): Removed.
4147 (lang_process): Don't call lang_init_script_file. Call
4148 ldctor_build_sets rather than find_constructors. Don't call
4149 lang_relocate_globals.
4150 (lang_abs_symbol_at_beginning_of): Rewrote.
4151 (lang_abs_symbol_at_end_of): Rewrote.
4152 * ldmain.c (had_y): Removed.
4153 (lprefix, lprefix_len): Removed; use link_info fields instead.
4155 (multiple_def_count, commons_pending, undefined_global_sym_count,
4156 total_symbols_seen, total_files_seen): Removed.
4157 (link_callbacks, link_info): New variables.
4158 (main): Initialize link_info. Don't call init_bfd_error_vector or
4159 ldsym_init. Don't set now unused variables. Handle -stats.
4160 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
4161 (add_ysym): Rewrote.
4162 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
4163 search_library, gnu960_check_format, decode_library_subfile,
4164 linear_library, symdef_library, clear_syms, subfile_wanted_p):
4166 (add_keepsyms_file, add_archive_element, multiple_definition,
4167 multiple_common, add_to_set, warning_callback, undefined_symbol,
4168 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
4170 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
4171 require symbols for %C; look them up instead.
4172 * emultempl/hppaosf.em: Pass link_info to
4173 hppa_look_for_stubs_in_section.
4174 * Makefile.in: Rebuilt dependencies.
4175 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
4177 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
4179 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
4180 ldlang.h and ldctor.h.
4182 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
4183 declarations of free and malloc from flex output. Change malloc
4184 to ldmalloc in flex output.
4186 Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4188 * ldmain.c (lprefix): Change default from a char to a string
4189 with only one character.
4190 (lprefix_len): Set default to one.
4192 * ldmain.h (lprefix_len): Declare.
4194 * ldsym.c (write_file_locals): Use strncmp rather than a character
4195 comparison for lprefix.
4197 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
4200 * emultmpl/hppaosf.em: Include ldexp.h.
4201 (before_parse): Set lprefix and lprefix_len correctly.
4203 Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4205 * ldlex.h: Don't declare yywrap if it is a macro.
4206 * ldlex.l: Include sysdep.h.
4207 * ldlang.c (lang_for_each_statement_worker,
4208 lang_for_each_statement): Forgot to use PARAMS.
4210 Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4212 * Makefile.in: Added .PHONY targets where appropriate. Added some
4214 (gcclibdir, version): Removed unused variables.
4215 (DEP): New variable, set to mkdep.
4216 (ALL_CFLAGS): New variable. Used in .c.o target.
4217 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
4219 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
4220 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
4221 mostly obsolete variables. Adjusted remaining uses.
4222 (DEF_EMUL): Removed variable.
4223 (ldmain.o): Handle undefined EMUL error correctly.
4224 (ldemul-list.h): Depend on config.status rather than Makefile.
4225 Create via temporary file.
4226 (ver960.c, roll, make): Removed obsolete targets.
4227 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
4229 * dep-in.sed: New file, used when rebuilding dependencies.
4231 Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
4233 Made many changes to eliminate gcc warnings. Made various
4234 cosmetic changes, declared various things in header files, removed
4235 various extern declarations from .c files. No substantive
4238 * ldlang.c (lang_process): Ifdef out final call to
4239 lang_size_sections again (reverting change of Nove 2), since it
4240 breaks the Sun4 linker.
4242 Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4244 * configure.in (alpha-*-netware*): New target; use alpha.
4246 Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
4248 * configure.in: Group targets by CPU. Merge some m68k target
4249 entries with different CPU specs that use the same ld_target
4252 * configure.in: Add sparc*-*-coff.
4253 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
4254 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
4255 (em_coff_sparc.c): Add dependencies and build rules.
4257 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
4259 Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4261 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
4263 (command_line_option): Accept and ignore them (for now).
4264 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
4265 where n is a number.
4267 Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4269 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
4270 not in bfd_com_section, create the section in the BFD so that it
4271 can be placed in the right output section.
4273 Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4275 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
4276 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
4277 (OTHER_READONLY_SECTIONS): Define for .reginfo.
4278 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
4279 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
4280 Move OTHER_READONLY_SECTIONS after all the other readonly
4281 sections. Don't use DATA_ADDR twice.
4283 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
4284 p is in a common section, make sure the BFD has a section of that
4287 * ldlang.c (lang_common): Add newline to error message.
4289 Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
4291 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
4292 Lynx-specific script instead of m68kcoff.
4293 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
4294 (ENTRY): Define as __main.
4295 (TEXT_START_ADDR): Define as 0.
4296 (PAGE_SIZE): Define as 0x1000.
4297 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
4298 * scripttempl/m68klynx.sc: New file.
4300 Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4302 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
4303 arguments rather than treating them as emulation names.
4305 Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
4307 * configure.in: Support x86 unixware and netware plus generic netware.
4309 Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4311 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
4314 Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
4316 * Makefile.in (distclean): Don't delete dvi or info files.
4317 (ld.info): Update dependency list.
4318 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
4320 Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4322 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
4323 Set output_filename instead of creating a new node.
4324 (open_output): Don't set output_filename.
4325 (lang_final): Create the new node here.
4326 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
4328 Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
4330 From Pete Hoogenboom (hoogen@cs.utah.edu):
4332 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
4333 edata, _edata, end): Add definitions of these symbols.
4334 (__end): Remove definition of this symbol.
4335 (__data_start): Move definition of this symbol.
4337 * emultempl/hppaosf.em: Various fixes and support for linker stub
4339 (hppaosf_finish, hppaosf_search_for_padding_statements,
4340 hppaosf_create_output_section_statements): New functions in
4341 support of linker stub generation.
4342 (ld_hppaosf_emulation): Redefine to include new
4343 emulation-specific routines.
4345 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
4346 Pass abs_output_section rather than NULL to avoid invalidating
4349 Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4351 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
4352 (em_i386mach.c): New rule.
4353 * configure.in (i[34]86-*-mach*): New case.
4354 * config/i386-mach.mt: New file.
4355 * emulparams/i386mach.sh: New file.
4357 Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4359 * ld.h (flag_is_*): Removed macros.
4360 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
4361 Consistently check the BFD symbol flags directly, rather than
4362 using file_is_* macros.
4364 Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
4366 * configure.in (sparc*-*-lynxos*): New target.
4367 * Makefile.in: Add rule for em_sparclynx.c.
4368 (ALL_EMULATIONS): Add Lynx emulations.
4369 * config/sparc-lynx.mt: New file.
4370 * emulparams/sparclynx.sh: New file.
4371 * scripttempl/sparccoff.sc: New file.
4373 Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4375 * Makefile.in: Add dependency for $(EMULATION_OFILES).
4377 Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4379 * relax.c (write_relax): Check return value of bfd_seclet_link.
4381 Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
4383 * ldlang.c (delete_output_file_on_failure): New variable.
4384 (open_output): Set it after bfd open succeeds.
4385 * ldmisc.c (vfinfo): Test it.
4387 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
4389 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
4392 * ldemul.c: Support was added to allow emulation-specific
4393 processing to occur. This support was added primarily for linker
4394 stub generation in the elf32-hppa gld.
4395 (ldemul_finish, ldemul_create_output_section_statements): New
4397 * ldemul.h: Support was added to allow emulation-specific
4398 processing to occur. (As described above.) Added finish and
4399 create_output_section_statements fields to
4400 ld_emulation_xfer_struct structure.
4401 * ldlang.c: Add calls to emulation-specific routines.
4402 (lang_process): Add call to
4403 ldemul_create_output_section_statements function.
4404 (lang_process): Add call to a emulation-specific routine (and
4405 some processing after the call).
4407 Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
4409 * configure.in: mips*- instead of mips-, mips*el changes
4411 Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4413 * configure.in (alpha-*-osf*): New target; use alpha.mt.
4414 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
4415 (em_alpha.c): New target; use alpha.sh and alpha.sc.
4416 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
4417 * config/alpha.mt: New file.
4418 * emulparams/alpha.sh: New file.
4419 * scripttempl/alpha.sc: New file.
4421 Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
4423 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
4424 types of different sizes (eg: 64 and 32 bits), so coerce.
4425 * ld.h (ALIGN_N): Add warning about usage.
4427 Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4429 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
4430 which we already have a definition, rather than checking in
4431 several different places whether the symbol is weak.
4433 Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4435 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
4436 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
4437 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
4438 expanded within them.
4439 * config/mipsb-elf32.mt: New file.
4440 * emulparams/elf32mipb.sh: New file.
4441 * Makefile.in (em_elf32mipb.c): New target.
4443 Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
4445 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
4446 lang_input_file_is_search_file_enum so objects brought in using
4447 INPUT() do a path lookup.
4449 Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
4451 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
4452 instead of {i386,m68k}-coff.
4453 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
4454 * config/i386-lynx.mt: New file.
4455 * config/m68k-lynx.mt: New file.
4456 * emulparams/i386lynx.sh: New file.
4457 * emulparams/m68klynx.sh: New file.
4459 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
4460 but defaulting to _start.
4462 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
4463 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
4466 Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
4468 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
4469 HOSTING_LIBS for testing.
4471 Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4473 Finish up support for i386-sysv4 (without shared libraries):
4474 * ld.h (flag_is_weak): Define.
4475 * ldlang.c (print_symbol): Mention whether symbol is weak.
4476 (print_input_section): Print weak symbols as globals.
4477 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
4478 (enter_global_ref): Do not warn if a weak symbol redefines a
4479 global symbol. Do not let a weak symbol redefine a common symbol.
4480 (enter_file_symbols): Treat weak symbols as global symbols.
4481 (subfile_wanted_p): Do not pull in an object file from a archive
4482 just to resolve an undefined weak symbol.
4483 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
4484 error; the error might be that malloc has run out of space.
4485 * ldsym.c (write_file_locals): Treat weak symbols as global.
4486 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
4488 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
4489 * config/i386-elf.mt: New file; set EMUL to elf_i386.
4490 * emulparams/elf_i386.sh: New file.
4491 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
4492 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
4493 (ALL_EMULATIONS): Add em_elf_i386.o.
4494 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
4495 (em_elf_i386.c): New target, like other em_*.c targets.
4496 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
4497 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
4498 nonempty, and configured for native, add it to LIB_PATH.
4500 Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
4502 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
4503 Added statements to pass stab and stabstr sections through and
4504 mark them as NOLOAD, which makes GDB happier.
4506 Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
4508 * configure.in: Accept m68k-lynx-lynxos config.
4510 * Makefile.in: Use $(SHELL) to run genscripts.sh.
4512 Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
4514 * config/coff-h8300.mt: Add EMUL=h8300h.
4516 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
4518 Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
4520 * Makefile.in: Changed CXX back to g++.
4522 Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
4524 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
4526 Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4528 * Makefile.in (TAGS): Use shell wildcards.
4530 Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
4532 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
4534 Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
4536 * ld.texinfo: re-enable included config file; conditionalize doc
4537 for -oformat to interact properly with SingleFormat doc config
4538 var; rename @up/@down to @raisesections/@lowersections.
4540 Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4542 * configure.in: recognize m88110.
4544 Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4546 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
4547 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
4548 ELF emulation is "elf32-hppa" not "elf-big".
4549 (hppaosf_before_parse): Remove unneeded processing of environment
4551 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
4552 .text segment of output file.
4553 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
4555 Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4557 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
4560 * ldlang.c, ld.h: updated copyright.
4562 Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4564 * ldlang.c (open_output, lang_check): Check return value of
4567 Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
4569 * scripttempl/h8500.sc: Start all sections in a different segment.
4570 * scripttempl/z8ksim.sc: Handle constructors
4572 Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
4574 * Makefile.in: revert earlier changes back to execute runtest
4575 with make check. cdtest and bootstrap now function as they
4576 did within the Makefile.
4578 Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4580 * Makefile.in: Update dependencies.
4582 * configure.in: Set EMULATION_OFILES in Makefile based on
4583 --with-targets option.
4585 Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
4587 * Makefile.in: check targets reimplemented to old way.
4589 Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
4591 * config/i386v.mh, config/irix4.mh: Use gcc
4592 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
4593 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
4594 bfd/configure.host change.
4596 Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4598 * scripttempl/elf.sc: Handle .line and .debug* sections.
4600 * ldlex.l: Use bfd_scan_vma, not strtoul.
4602 Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4604 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
4605 Remove inital caps in some error messages, change "can't" to
4606 "cannot", add missing colons.
4607 * ldmisc.c (vfinfo): Print "%%" as a single %.
4608 For '%' followed by unrecognized character, print them both
4609 verbatim instead of expecting a char * arg.
4610 For '%C', don't put the function name in parens.
4612 * ldexp.c (invalid): Pass "%%", not "% ".
4614 Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4616 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
4617 (BSS_VAR): Removed; now always define _fbss.
4618 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
4621 Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
4623 * configure.in: z8k-coff is the same as z8k-sim
4625 Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
4627 * testsuite/lib/ld.exp: new file
4628 * testsuite/config/unix-ld.exp: new file
4629 * testsuite/ld.bootstrap/bootstrap.exp: new file
4630 * Makefile.in: add dejagnu support for make check
4632 Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4634 * ldlex.l (comment): Add missing newline in message.
4635 * ldindr.c (add_indirect): Ditto.
4636 * ldexp.c (exp_fold_tree): Ditto.
4638 Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4640 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
4643 * ldmisc.c (multiple_warn): New function.
4644 * ldmisc.h: Declare it.
4645 * ldmain.c (enter_global_ref): Call it.
4646 * ld.h (ld_config_type): Add warn_common.
4647 * ldlex.l, ldgram.y: Set it with -warn-common option.
4648 * ldver.c (help): Document it.
4650 Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4652 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
4653 target-specific sections, and for changing data section vma.
4655 Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4657 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
4658 terminals, for Solaris.
4659 (dirlist_ptr): New static variable.
4660 (command_line_option): Accept new options.
4662 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
4665 * config/sun4sol2.mt: Pass emulation name without ".sh".
4667 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
4668 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
4670 Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4672 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
4673 .dtors, .data1, .rodata1 sections, instead of combining them into
4674 other sections. For `-r', set all section start addresses to
4677 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
4678 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
4679 (MAXPAGESIZE): Renamed from PAGE_SIZE.
4681 Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4683 * genscripts.sh: If this is the default emulation, set
4685 * emultempl/*.em: Use it to determine whether to compile in the
4688 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
4689 genscripts.sh. Pass the current emulation name without ".sh" on
4691 * genscripts.sh: Take an default emulation arg.
4692 Use the current emulation name as EMULATION_NAME.
4693 Make default lib path for cross-compiling ':', not null.
4694 * emulparams/*.sh: Don't set EMULATION_NAME.
4695 * ldemul.c (ldemul_get_script): Take isfile arg.
4696 Pass it to emulation's get_script function.
4697 * ldemul.h: Adjust get_script prototypes.
4698 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
4700 * ldfile.h: Declare it.
4701 * ldgram.y: Accept a script on the command line again,
4702 for parsing compiled-in scripts.
4703 * ldmain.c (main): If ld script is a file, parse it as a -T
4704 option, otherwise parse it directly.
4705 * emultempl/*.em (*get_script): Return the scripts themselves if
4706 this is the default emulation; otherwise return their file names.
4707 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
4709 * emulparams/m88kbcs.sh: Use it.
4711 * ld.h (ld_config_type::unix_relocate): Remove unused element.
4713 Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4715 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
4716 there's no change log entry yet, tsk tsk) from the list of
4717 emulations compiled in until Mark gets around to checking in
4718 emulparams/i386linux.sh.
4719 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
4720 changed, this file gets updated.
4722 Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
4724 * ldgram.y (OPTION_Lfile): New token.
4725 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
4726 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
4728 Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
4730 * configure.in: h8/300h support needs own .mt file.
4731 config/coff-h8300h.mt: New file.
4733 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4735 * ldmain.c: Don't include sys/stat.h; it already got included
4736 somewhere along the way.
4738 Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
4740 * Makefile.in: Add h8300h support.
4741 emulparams/h8300h.sh: New file.
4742 scripttempl/h8300h.sc: New file.
4744 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4746 * ldfile.c (ldfile_open_file): In error message, use the name the
4747 user gave (e.g., "-lc"), rather than the base file name.
4749 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
4751 * ldmain.[ch]: Remove initial Q_ from function names.
4752 * ldexp.c, ldindr.c, ldlang.c: Change callers.
4754 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
4756 * ldlang.c (lang_process): Move loading of default script from
4757 here to main. Add a "/" to start of script name to prevent
4758 finding it in "." first.
4760 * ldmain.c (set_scripts_dir): Don't look in "." first.
4762 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
4765 Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
4767 * Makefile.in (em_m88kbcs.c): Correct dependency.
4768 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
4769 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
4770 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
4772 Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4774 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
4775 main.c (main): Print the errno string in the error message.
4777 Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
4779 * configure.in: Accept h8300h for target cpu.
4781 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
4782 present (demangle is smart enough to know whether to do it or not).
4784 Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4786 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
4787 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
4789 * ldlang.c (lang_process): Use sizeof instead of magic constant.
4791 * ldmain.c (get_emulation, check_for_scripts_dir,
4792 set_scripts_dir): New functions.
4795 Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
4797 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
4798 Create symbol "end" instead of "__end". Comment out some parts
4799 that may not be needed (yet) for elf.
4801 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
4803 Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4805 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
4807 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
4808 when no prototype is being supplied.
4809 (ldmalloc, ldrealloc): Size argument is now size_t.
4811 * ldmisc.c (finfo): New function, accepts FILE* argument.
4812 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
4813 without leading zeros.
4814 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
4815 bfd_vma value, instead of fprintf(%x) which won't hold a long long
4817 (concat, buystring): String lengths are size_t.
4818 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
4820 * ldlang.c (new_statement): Size argument is now size_t. Added
4821 forward declaration with prototype.
4823 Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4825 * ldgram.y (OPTION_v): Don't turn on verbose output.
4827 Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4829 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
4832 Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
4834 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
4835 collect2 doesn't look for gld any more anyhow.
4837 Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
4839 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
4840 now have a non NULL srefs_chain.
4842 * config/hp300hpux.mt: Use emulation hp3hpux rather than
4843 hp300hpux, since the latter does not exist.
4845 Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4847 * genscripts.sh: Put the scripts in the ldscripts directory, not
4849 * configure.in (ldscripts): Make, instead of emulations.
4850 * Makefile.in (scriptdir): Take off the "ld" part.
4851 (install, clean, distclean): Use ldscripts, not emulations.
4852 In tests, don't pass -Lemulations.
4853 Don't pass tooldir/lib to genscripts.sh.
4854 * genscripts.sh: Don't take tooldir/lib arg.
4855 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
4856 default script file.
4858 Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
4860 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
4862 Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
4864 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
4866 Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4868 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
4869 run in parallel without colliding on yacc's static file names.
4870 Without the stub rule, make will try to start two yacc's
4871 concurrently which fails because of yacc's static file names.
4873 Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
4875 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
4878 Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4880 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
4881 different from libdir.
4883 * Makefile.in (scriptdir): Base on tooldir, not datadir.
4885 Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4887 * ldver.c (help): New function.
4888 * ldver.h: Declare it.
4889 * ldlex.l, ldgram.y: Recognize new options --help and --version.
4891 Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
4893 * Makefile.in (INCLUDES): Don't need ../include any more.
4895 Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4897 * ldlex.l, ldgram.y: Support new -oformat option.
4898 Remove attempt at supporting script fragments on the command line.
4899 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
4900 * mri.c (mri_format), ldgram.y: Change callers.
4901 * ldlang.h: Change prototype.
4903 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
4905 * Makefile.in: canonicalize install.sh; for use within
4906 this directory (and subdirs)
4908 Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4910 * ldgram.y: Tweak grammar to make reporting of invalid options work.
4912 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
4915 Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4917 * ldfile.c (ldfile_open_command): Don't try .ld extension.
4918 It wasn't documented (or likely used) and wastes time.
4919 (try_open): If EXTEN is empty, don't try it.
4921 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
4922 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
4923 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
4924 with normal function declarations.
4926 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
4927 Move *.sc-sh to scripttempl/*.sc.
4928 * {emultempl,emulparams,scripttempl}/README: New files.
4929 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
4930 removed, replaced with generic.em.
4931 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
4932 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
4934 * *.em (*_get_script): Return script name instead of script contents.
4935 * ldlang.c (lang_process): Change caller.
4937 * ldlex.l, ldgram.y: Recognize -m option.
4938 Check for input files after *all* options in grammar.
4939 * ldmain.c (main): Check for -m options. Add default directory
4942 * mkscript.c: File removed.
4943 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
4944 to add to the default LIB_PATH.
4945 Look for input files in the new subdirectories.
4946 Create the scripts in emulations subdirectory and don't filter
4947 them through mkscript.
4948 * configure.in: Make the emulations subdirectory.
4950 * Makefile.in: Account for all of the above changes.
4951 Remove unused .SUFFIXES. Get libgcc.a path with gcc
4952 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
4953 Put CFLAGS last in the compilation rules.
4954 Add -I../bfd to INCLUDES so sysdep.h is found.
4956 Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4958 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
4960 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
4961 dependent on RELOCATING, not RELOCATION.
4962 * hp3hpux.sh (SHLIB_PATH): Define it.
4964 Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
4966 * ldfile.c (try_open): If opening without the extension fails,
4967 try with the extension even if -v or -V was given.
4968 had_script is imported (from ldgram.y), not exported.
4970 Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
4972 * Makefile.in: remove parentdir support, use INSTALL_XFORM
4974 Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
4976 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
4977 * ldgram.y (statement_list_opt): New nonterminal, either empty or
4979 (section): Use statement_list_opt, not statement_list.
4980 * m68kcoff.sc-sh: Gather constructors and destructors and define
4981 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
4982 * sa29200.sc-sh: Gather constructors and destructors and define
4983 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
4985 Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
4987 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
4988 * configure.in: No longer need to configure to get sysdep.h.
4990 Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4992 * Makefile.in: remove install:all and install-info:info
4993 dependencies (these cause some spurious rebuilds at 'make install'
4996 Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
4998 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
4999 (mips-idt-ecoff*): Added trailing '*'.
5000 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
5001 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
5002 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
5004 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
5005 incorrect definitions.
5007 Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
5009 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
5010 symbols, unless stripping.
5012 Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
5014 * Makefile.in: configure looks for ####, so remove lines with many
5016 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
5017 and HOSTING_LIBS correctly so that ``make check'' will work.
5019 Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
5021 * mips.sc-sh: Define _etext, _edata, and _end, in addition
5022 to etext, edata, and end. Needed for IRIX 4.0.5F.
5023 Patch from mwp@iconix.oz.au (Michael Paddon).
5025 * Version 2.2.1 released.
5027 Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5029 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
5030 * mipsbsd.sh (EMULATION_NAME): Use new file name.
5032 Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5034 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
5037 * Version 2.2 released.
5039 Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
5041 * ldver.c (ldversion): Bump version number to 2.2.
5043 Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
5047 Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
5049 * mips.sc-sh: Don't define BSS_VAR unless relocating.
5051 Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
5053 * Makefile.in (mkscript.o, mkscript): Build mkscript via
5054 mkscript.o, rather than directly from mkscript.c.
5056 Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5058 * configure.in: Look for ${target_makefile_frag} relative to
5059 ${srcdir}, not relative to build directory.
5061 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
5062 * configure.in: Recognize hppa*-hp-osf.
5063 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
5064 (em_hppaosf.c): Build it.
5065 * config/hppaosf.mh, hppaosf.mt: New files.
5067 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
5068 some system header files. All uses changed.
5070 * configure.in: Recognize i386-aix configurations as i386-coff
5073 * configure.in: Recognize m68*-*-hpux.
5074 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
5075 the value of STACKZERO.
5076 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
5077 (em_hp3hpux.c): Build it.
5078 * hp3hpux.sh, config/hp300hpux.mt: New files.
5080 Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
5082 * mips.sc-sh: Put constructors in the .data section.
5083 * Makefile.in (cdtest): Added dependency on ld.new.
5085 Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
5087 * Makefile.in: Change definition of $(tooldir) to match FSF.
5088 * vax.sh, config/vax.mt, configure.in, Makefile.in:
5089 Support VAX Ultrix and BSD.
5091 Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5093 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
5095 Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
5097 * ldlang.h (struct memory_region): Change `length' and
5098 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
5099 * ldlang.c, mri.c: Corresponding changes, plus lint.
5101 Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
5103 * configure.in: For all i386 targets, accept i486 as well.
5105 Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
5107 * ldlang.c (wild_doit): Preserve all flags for a
5108 SEC_SHARED_LIBRARY section.
5109 (size_input_section): Consider any SEC_HAS_CONTENTS section when
5110 computing largest_section.
5112 Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
5114 * ldlang.c (lang_output_section_statement_lookup): Initialize all
5115 fields of newly created structure.
5117 Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
5119 * ldmain.c (g_switch_value): New variable.
5120 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
5121 (command_line_option): Accept -G and set g_switch_value.
5122 * ldlex.l (COMMAND): Accept -G.
5123 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
5125 Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5127 Support for linking and loading at different places:
5129 * ldlex.l: Add "AT" keyword.
5130 * ldgram.y: Cleanup, and parse AT.
5131 * ldlang.c (print_output_section_statement): Print output address
5132 of section in map. (lang_size_sections): Fill sections' lma with
5134 * ldlang.h (lang_output_section_statement_type): Add load_base
5137 * ldindr.c (add_indirect): Keep more information in the alias
5139 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
5140 attribute from an input section.
5141 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
5142 default. (Q_enter_file_symbos): Indirect symbols now are known by
5143 their section, not a special symbol flag.
5144 * ldsym.c (write_file_locals): Indirect symbols aren't local.
5145 (write_file_globals): Write the mapping for an indirect symbol.
5146 * relax.c (build_it): When forced to write a NEVER_LOAD section,
5149 Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
5151 * ld.texinfo: changes for q1
5153 Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5155 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
5157 Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5159 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
5161 Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
5163 * mips.sc-sh: Added variables which may be overridden by a
5165 * mipsidt.sh: New file; emulation for IDT MIPS board.
5166 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
5167 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
5168 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
5169 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
5171 Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5173 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
5175 * i386bsd.sh, config/i386bsd.mt: New files.
5176 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
5178 Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
5180 * mri.c: Add extern declaration of strdup.
5181 * ldsym.c (KEEP macro): Add spaces around '=' for the
5182 sake of old (e.g. PCC) compilers.
5184 Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
5186 * ldver.c: Bump to version 2.1.
5188 Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5190 * ldgram.y: allow section types without address expressions.
5191 * ldlang.c (lang_relocate_globals): avoid possible hang with
5192 undefined but unreferenced symbols.
5193 * relax.c (relax_section): don't complain if the script file isn't
5194 relaxable but -relax is set
5196 Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5198 * configure.in: go32 is the 3rd part of the triple, not the 2nd
5200 Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
5202 * mipsbig.sh: New file. Big endian MIPS emulation.
5203 * config/mips-big.mt: New file. Use mipsbig emulation.
5204 * configure.in (mips-sgi-irix*): Use target mips-big.
5205 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
5206 (em_mipsbig.c): New target. Uses mipsbig.sh.
5208 Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
5210 * mips.sc-sh: Put .scommon sections into .sbss section.
5212 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
5213 rather than always putting them in bfd_com_section.
5214 * ldlang.c (lang_common): If a common symbol is not in
5215 bfd_com_section, put in a section of the same name, rather than
5216 always putting it in section COMMON.
5218 Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
5220 * ldmain.c (subfile_wanted_p): If we already have a common
5221 definition of a symbol, don't necessarily pull in an object file
5222 that provides a non-common definition.
5224 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
5225 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
5227 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
5228 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
5230 Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
5232 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
5235 Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
5237 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
5238 checking for equality to bfd_com_section.
5240 Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
5242 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
5243 targets, linker script.
5244 * mipslit.sh: New file. Little endian MIPS emulation.
5245 * config/mips-lit.mt: New file. Use mipslit emulation.
5246 * configure.in (mips-dec-ultrix*): Use target mips-lit.
5247 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
5248 (em_mipslit.c): New target. Uses mipslit.sh.
5250 Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
5252 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
5253 $(tooldir)/bin/gld, so that gcc can find it with or without
5256 Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5258 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
5259 write_norel. All linking is now done via write_relax. Call
5260 ldsym_write before calling write_relax.
5261 * relax.c: Added copyright.
5262 (write_relax): Renamed from write_relaxnorel. Added relocateable
5263 argument. seclet_dump renamed to bfd_seclet_link.
5264 * relax.h: Added copyright.
5266 Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5268 * ldmain.c (decode_library_subfile): Patch from
5269 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
5271 Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5273 * config/vxworks960.mt renamed to config/i960.mt
5275 * configure.in: sparc-aout emulates a sun4, as does
5276 sparc*-vxworks, i960-nindy uses gld960 emulation
5278 Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5280 Fix support for NOLOAD, add INCLUDE
5281 * ldfile.c (ldfile_open_command_file): pass file name to
5283 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
5284 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
5287 Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5289 * Makefile.in, config.h: no more default emulation. Make the lack
5290 of emulation a compile time error
5292 Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5294 * configure.in: recognise all sparclite variants, not just 'sparclite'
5296 Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
5298 * m68kcoff.sc-sh: define _end as well as end, for consistency with
5301 * configure.in: accept *-ericsson-ose for any m68k CPU.
5303 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
5304 for each output section.
5306 Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
5308 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
5309 macro bfd_asymbol_bfd as appropriate.
5310 * Makefile.in: Un-duplicate ldlex.c dependency.
5311 * condigure.in: Replace my_host case table by sourcing
5312 ../bfd/configure.host. Allow std-host as the default.
5313 * ldmisc.c: Change logic for C++ name demangling: There is
5314 no initial '_' to remove from stab-derived function names.
5316 Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5318 * ldlang.c (lang_init_script_file): don't attach the output file
5319 sections to the script file.
5321 Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5322 * ldlang.c (wild): run expansion loop over command line bfd too.
5323 (lang_ini_script_file): initialize more parts of the command line
5325 * ldlex.l: fix DEFINED start states.
5327 Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5329 * ld.texinfo: new doc.
5330 * ldgram.y, ldlex.l: understand -y<symbol>
5331 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
5332 print info. (add_ysym): new function.
5333 * ldsym.h: (ldsym_type): new define SYM_Y.
5335 Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
5337 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
5338 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
5339 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
5340 macros with PARAMS. Recreational cleanup. Update copyrights.
5342 Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5344 * Makefile.in: pass down the bfd source directory for includes
5346 Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
5348 * ldlang.c (lang_size_sections): don't change size and address for
5349 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
5352 Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5354 * relax.c (build_it): re-enable the processing of data_statements
5355 in scripts, makes counted contructor lists work again.
5357 Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
5359 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
5361 Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
5363 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
5366 Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
5368 * Support for i386-sysv.
5369 configure.in: check for i386-*-sysv* and i386-*-sco*.
5370 i386coff.sc-sh: rewrote to support SVR3 by default.
5371 ldctor.c (find_constructors): preserve stat_ptr.
5372 ldlang.c (wild_doit): initialize vma and size of new output
5373 section to corresponding input section. This is required for
5374 shared library support.
5375 (lang_size_sections): don't modify vma and size of sections which
5376 are never loaded (for shared libraries).
5377 ldwrite.c (copy_and_relocate): copy the contents of any section
5378 which has contents, not just sections which are loaded (for shared
5381 Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5383 * ldlang.c (size_input_section): count the sizes of all sections
5386 Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5388 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
5389 to demangle symbols better
5391 Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
5393 * ldlang.c (lang_finish): don't warn if -e start symbol does not
5394 exist when linking with -r.
5396 Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
5398 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
5401 Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5403 * ldmain.c (linear_library): don't even think about processing
5404 an object file if it's already been done
5406 Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5408 * configure.in: the hp9000/300 config file is now hp300
5410 Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5412 * config/z8ksim.mt: new file
5414 Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
5416 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
5417 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
5419 * ld.h (strip_symbols_type): Add value STRIP_SOME.
5420 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
5421 * ldlang.c (lang_add_keepsyms_file): New function.
5422 * ldlex.l: Handle "-retain-symbols-file".
5423 * ldsym.c (keepsyms_file, kept_syms): New vars.
5424 (process_keepsyms): New functihon; reads file, marks symbols for
5426 (write_file_locals): File symbols should always be kept.
5427 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
5428 and "-s". Process retain-symbols file before setting symtab.
5429 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
5430 (keepsyms_file, kept_syms): Declare them.
5432 * ldmain.c (main): Non-fatal errors should still cause non-zero
5433 exit status even with -r.
5435 Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5437 Added initial support for the z8k
5438 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
5439 * configure.in, Makefile.in: modified to reflect above
5441 * ldlang.c (lang_check): when linking conflicting architectures,
5442 make the output file reflect at least one of the bad inputs.
5444 Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
5446 * Makefile.in (install): if $(tooldir) exists, install ld in
5449 Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5451 * Makefile.in, configure.in: modified to support i386-coff
5452 * i386coff.sh: new file
5454 Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
5456 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
5457 added m68k-coff emulation mode, stolen from a29k emulation.
5458 Almost certainly wrong, but perhaps better than sun3.
5460 Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
5462 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
5463 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
5464 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
5465 This is one character shorter, and lets people build on
5466 SVR3 system. (ld__h8300xray.[co] was the killer there;
5467 h8300xray.sc-sh is also overlong, but seems harmless.)
5468 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
5469 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
5470 * configure.in: Add host isc.
5472 * ldver.c: Call it version 2.0.
5474 Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
5476 * ldver.c: Bump to version 0.98.
5479 * Makefile.in: Added mostlyclean, distclean, realclean rules.
5481 Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
5483 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
5484 * ldlex.l: Moved comment() to end, since some compilers
5485 otherwise have problems with input() used before it is defined.
5487 Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5489 * configure.in: added Solaris 2 and Irix 4 host support.
5491 Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5493 * Makefile.in: remove -S flag from the FLEX definition
5495 * configure.in: rewrote, using new style case statement. use
5496 m68k.mt for m68k-aout systems
5498 Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
5500 * Makefile.in: map "ld" through program_transform_name when
5503 Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
5505 * cplus-dem.c: Removed. Use the version in libiberty now.
5506 * ldmisc.c: Use new libiberty version of cplus_demangle().
5508 Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
5510 * gld960.em (gld960_choose_target): default to little endian, not
5513 Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5515 * ldlang.c (lang_process): don't pass null pointers when
5516 abs_output_section is what is required.
5517 * ldwrite.c (ldwrite): use malloc to allocate the largest space
5518 used, and pass that down.
5519 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
5522 Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
5524 * configure.in, config/ose68.mt: renamed OSE to ose.
5526 Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
5528 * ldsym.c (write_file_locals): Reorder check for common or
5529 undefined symbols so that it works.
5531 Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
5533 * configure.in: accept all m68K family members.
5535 * Makefile.in: always create installation directories.
5537 Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5539 * ldlex.l: now parses comment correctly, added ~ to acceptable
5542 * ldexp.c (exp_unop): pass down abs_output_section - now can have
5543 unary -ve constants.
5545 * ldlang.c (lang_finish): warn when an entry symbol supplied on
5546 the command line can't be found.
5548 Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5550 * ldlang.h: add new field "loadable" to output_section_statement.
5551 * ldlang.c (lang_output_section_statement_lookup): initilize new
5552 field. (wild_doit): if new field is not set, then stop output
5553 section from being loadable.
5554 (lang_enter_output_section_statement): set the field from the
5556 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
5557 * h8300hms.sc-sh, h8300hms.em: get -r right.
5559 Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
5561 * ldint.texinfo: New internals manual (beginnings thereof).
5562 * PORTING: Removed, merged into ldint.texinfo.
5564 Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
5566 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
5567 cdtest.exp: A test program (copied from libg++/test-install)
5568 that tests that constructor and destructors are handled
5571 Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5573 * Makefile.in (install): install from ld.new, renaming during the
5574 copy, or else the next 'make install' needs to re-link ld.
5576 Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
5578 * configure.in: generalise hp recognition (from sef).
5580 Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5582 * configure.in: recognize bsd and hpux hppa configurations.
5583 error messages echo to stderr, not stdout
5585 Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5587 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
5588 ldmisc.c: removed rcsid's.
5590 Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5592 * ldlang.c (lang_map): print changes in sizes due to relaxing
5593 (size_input_section): maintain the delta information.
5594 * ldlang.h: add new field to struct to contain delta info.
5595 * relax.c (relax_section): complain if input not relaxable.
5596 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
5599 Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5601 * ldmain.c(main): prevent -r and -relax from being on at the same
5604 Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5606 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
5610 Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5612 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
5614 * ldlang.c(open_output): set the target arch and machine as soon
5615 as we can. (lang_size_sections): use new macros for setting vma
5618 Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
5620 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
5621 Also deleted an unreachable path to wrs.
5623 Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
5625 * Makefile.in (install): use -d test for $tooldir before
5626 installing ld there so that $tooldir can be inherited from
5629 Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
5631 * ldlang.c: Two non-substantial changes for the sake of
5632 the old Portable C Compiler.
5634 Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5636 * ldgram.y, ldlex.l: parse ABSOLUTE
5637 * ldexp.c: add support for ABSOLUTE
5639 Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
5641 * Makefile.in: Added default definitions for HOSTING_CRT0,
5642 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
5643 * config/*.mh: Miscellaneous clean-up: Removed definitions
5644 of YACC (since it is not longer used in the Makefile).
5645 Remove HOSTING_* definitions that are subsumed by the
5646 ones added to Makefile.in. Removed most definitions of CC.
5647 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
5648 These are no longer needed.
5650 Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
5652 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
5653 rules, since these are used when building a distribution.
5654 * Makefile.in (ldlex.c): Don't re-direct output, since that
5655 leaves a bogus output files if it fails.
5657 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
5658 * ldlex.c: Fix some unnecessary flex-specific-isms.
5660 Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5662 * ldgram.y: move spurious semicolon
5663 * ldexp.h: fix prototype
5665 Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
5667 * ld.texinfo: references to linker now say "ld" not "gld".
5669 Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5671 changed calling convention for Q_enter_global_ref
5672 * ldexp.c, ldlang.c, ldmain.c: reflect this
5673 * ldver.c: bump version to 1.97.1
5674 * ldindr.c (add_indirect): when an edict declaring an indirect
5675 symbol is found, make sure that any ideas about the symbol being
5676 common are changed if it now known to be defined.
5677 * ldmain.c (linear_library): complain once if archive isn't
5679 * ldlang.h, ldlang.c: make room for and initialize the complain
5682 Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5684 * Makefile.in: use flex & bison from ../ if they exist.
5686 Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5688 * relax.c (build_it): don't allocate space in the output file for
5689 stuff if -R flag applys to it.
5690 * ldfile.c: merge in VMS filename support
5691 * ldmain.c (main): take out ./ from library path, and close file
5692 before unlinking. Make multiple defs of a symbol create an
5694 * ldmisc.c: fatal errosrs delete output file
5696 Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
5698 * ldver.c: Increase version number to 1.97, for consistency
5701 Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
5703 * Makefile.in: FLEX -> LEX.
5705 * ld.texinfo: {} -> @{@}.
5707 Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
5709 * ld.texinfo: describe alternate, MRI-compatible linker scripts
5710 (and associated change in -c option, now used for these scripts)
5712 Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5714 * ldver.c: Bumped version to 1.96 - new release, resync with the
5716 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
5717 rather than with raw malloc, makes it easier to track where memory
5719 * ldsym.h, ldsym.c: create obstack for all global symbols too.
5720 * ldwrite.c (ldwrite): moved malloc so only used when needed.
5721 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
5724 Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
5726 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
5728 * Makefile.in: use bootstrap for check.
5730 Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5732 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
5734 * Makefile.in: now use flex, not lex
5735 * ldlex.l, ldlang.c, ldctor.c: lint
5737 Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5739 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
5740 different sorts of filenames on the command line than in a script.
5742 Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5744 * Makefile.in: rework CFLAGS so that they can be passed on the
5745 make command line. Remove MINUS_G. Default CFLAGS to -g.
5747 Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5749 * relax.c: added handling for new "padding" seclet type, used to
5750 fill out gaps between section.
5751 * ldgram.y, ldlex.l: now -defsym on the command line is done
5754 Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5756 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
5758 Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5760 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
5763 Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
5765 * Makefile.in (install): Install second copy in $(tooldir)/bin
5766 without $(program_prefix), since that's what gcc expects.
5768 Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5770 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
5771 * h8300*: fix bit rot and add support for h8300xray target
5772 * go32.sh: target emulation for go32.
5774 Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
5776 * gld960.em, i960.sc-sh. Fix i960 bit rot
5778 Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
5780 * Makefile.in: install man page.
5782 Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5784 * config/mt-<foo> renamed to <foo>.mt
5785 * config/mh-<foo> renamed to <foo>.mt
5786 * configure.in changed to reflect this
5787 * genscripts.sh now make .xbn files rather than .xN files
5789 Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
5791 * ldver.h: fix decl of ldversion.
5793 Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
5795 * Makefile.in: added check target.
5797 Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5799 * ldmain.c (Q_enter_file_symbols): now aliases work again
5801 Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
5803 * Makefile.in: added clean-info target.
5805 Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5807 * ldexp.c (exp_print_tree): don't try and follow null pointers
5809 * ldgram.y: remove 11 shift reduce errors
5811 Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
5813 * Makefile.in: added tooldir and program_prefix.
5815 Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
5817 * ldlang.c (size_input_section): don't move absolute sections
5821 Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
5823 * cplus-dem.c: yet another copy of this - maybe it should go into
5825 * ldgram.y: now -V and -v have different actions
5826 * ldver.c: if -V, prints list of emulations compiled in
5827 * ldmisc.c: support for cplus demangling
5830 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
5832 * Makefile.in, configure.in: removed traces of namesubdir,
5833 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
5834 copyrights to '92, changed some from Cygnus to FSF.
5836 Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
5838 * Makefile.in: Change mkscript rule into one for ./mkscript
5839 (for the sake of makes that don't realize they're the same).
5840 * PORTING: Add more details.
5841 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
5843 Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
5845 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
5846 config/mt-hp300bsd: New port to hp300 running BSD.
5848 Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
5850 Major rewrite of how ld is configured. The major idea
5851 is to use shell scripts to generate everything.
5852 * generic.em replaces ldtemplate.
5853 * Other *.em files replace various *.c files.
5854 A *.em file is a shell script that generates the corresponding
5855 ld__*.c file that implements an emulation. This is usually
5856 a straight 'cat' of a here-document, possibly with substitutions.
5857 * Script files (*.sc) are places by *.sc-sh scripts.
5858 Again, these are simple shell scripts that 'cat'
5859 here-documents, usually with some substitutions.
5860 The output a *.sc-sh is a script file.
5861 * Each emulation is defined by a short shell script with
5862 extension *.sh that specifies the emulation-specific
5863 parameters (such as the name of the *.sh-sc and *.em
5865 * genscript.sh is the master shell script used to generate
5866 an emulation. It is passed various argument, including
5867 the name a the emulation-speciic *.sh file that it
5868 "sources" to set variables to emulation-specifc parameters.
5869 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
5870 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
5871 * config/mh-foo: Rename LDEMULATION names as appropriate
5872 (usually 'gldfoo' -> plain 'foo').
5873 * ldwrite.c: Fixed a typo in a comment.
5874 * Makefile.in: Major changes. Removed some the sed
5875 magic to converts scripts, since that is now handled
5876 by genscripts.sh and the *.sc-sh scipt generators.
5877 * config.h: Remove a bunch of macros defining emulations
5878 and targets. This becomes one less file to edit when
5879 adding emulations or targets.
5880 * ldemul.h (struct ld_emulation_xfer_struct): Add
5881 emulation_name and target_name fields.
5882 * ldemul.c, ldemul.h: Define some default functions used
5883 by most emulations (and remove from the *.em scripts).
5884 * ldemul.c (ldemul_choose_target): Search the new
5885 ld_emulations array using a loop (instead of a hardwired
5886 nested if statement).
5887 Define the ld_emulation from the automatically-geenrated
5888 ldemul-list.h. This means you no longer have to edit ldemul.c
5889 to add a new emulation.
5890 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
5891 their expansions, since the former no longer exist.
5892 * PORTING: A very rough first draft of a porting guide.
5894 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
5895 to be terminated by a new-line (instead of requiring a semicolon).
5897 Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5899 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
5900 tests for NULL pointers all over the place.
5901 * ldlang.c (lang_process): remember to relocate global symbols
5902 *after* relaxing has done it stuff.
5904 Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5906 * config/mt-coff-h8300: use EMUL like everything else
5907 * ldlang.c: (print_padding_statement): print the right address.
5908 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
5911 Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5913 * ldlex.l: Put pack -noinhibit-exec and -sort-common
5914 * ldlang.c (print_data_statement): print the right address.
5916 Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
5918 * Makefile.in: The rule for testing ld by re-linking itself
5919 via an intermediate -r link was moved to the ld1 rule
5920 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
5921 which allows the bootstrap rule to work.
5922 * ldctor.c (find_constructors): Don't create a constructor
5923 list if it is already defined (as would happen if ld is
5924 invoked by collect).
5926 Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5928 * config/mh-sparc.h: now uses libgcc.a
5929 * ldmain.c: quit using exit
5930 * *sc: use *(COMMON) rather than [COMMON]
5931 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
5932 to allow preprocessing of .l file.
5933 * Makefile.in: New ldlex.l mangling
5934 * ldexp.c (fold_binary): perform expressions with % and / in
5936 * ldfile.c (open_a): open archives on VMS in a special way
5939 Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5941 * ldgram.y: map -M behave in the same way as -Map (sets file name
5943 * ldsym.c, ldlang.c: remember that size of a section is dependent on
5944 whether or not relaxing has been done.
5945 * ldmain.c: don't open a map file if it doesn't have a name
5946 * relax.c: all the brains have moved into bfd.
5947 * ldwrite.c: ammend comment
5949 Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
5951 * Makefile.in: added relax, also made three stage go through a
5954 * config.h: if GNU960 defined, then default emulation mode is
5956 * ldexp.h, ldexp.c: map to file hooks
5957 * ldlang.c: map to file hooks
5958 * ldgram.y: added -Map -relax
5959 * ldlex.l: added -relax, -Map
5960 * ldmain.c: open map file
5961 * ldmisc.c: support for map file
5962 * ldwrite.c: new relax magic
5964 Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
5966 * Makefile.in, config/tm-*.h: Clean up make output, only
5967 pass DEFAULT_EMULATION to ldmain.c.
5969 Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
5971 * ldver.c: Bump to version 1.94.
5973 Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5975 * Makefile.in: infodir belongs in datadir.
5977 Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
5979 * Makefile.in: Pass -y to bison. (Again;
5980 accidentally deleted by Rich.)
5981 * news.sc, ldgld68k.sc: Define __end as well as _end.
5983 Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
5985 * ldindr.h: added to contain prototypes of ldindr.c
5986 * ldfile.c: include ctype.h
5987 * ldmain.c: include the requried prototype headers
5988 * ldwrite.c: get_reloc_upper_bound has been renamed
5989 bfd_get_reloc_upper_bound
5991 Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
5993 * Makefile.in: punt "fundamental" mode because it breaks my emacs
5994 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
5995 spaces following hyphens, bsd make can't cope. added
5996 standards.text support and made it look like all the other
5999 * configure.in: configure now runs entirely in objdir so make file
6000 existence checks against ${srcdir}. Mark this directory as
6003 Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
6005 * Makefile.in: idestdir and ddestdir go away. Added copyrights
6006 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
6007 and mandir now keyed off datadir by default.
6009 Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
6011 * ldver.c: Bumped version to 1.93.
6012 * Makefile.in: Pass -y to bison.
6014 Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
6016 * config.h: h8 is now coff, not ieee
6017 * h8300hds.sc: reflect the same
6019 Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
6021 * ldver.c (ldversion()): Update to 1.92.
6022 * ldctor.c: There are two places constructor sets
6023 can be defined. One of them checked for an existing
6024 duplicate, the other didn't. Unfortunately, the latter
6025 was called after the former ...
6026 So, factor out code for inserting a new element into
6027 constructor_name_list (after checking for a duplicate)
6028 into a new function add_constructor_name, and call
6029 it from both aforementioned places (ldlang_add_constructor
6030 and ldlang_check_for_constructors).
6032 Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
6034 * Makefile.in: Rename .c files generated from ldtemplate
6035 to have names starting with ld__. This helps 'make clean'.
6037 Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
6039 * Makefile.in: Take out the version number for install
6040 * m88kbcs.sc: put in contructor blocks.
6042 Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
6044 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
6045 parameter, a format, and an arg pointer, and rename it to
6046 vfinfo(). Write info() in terms of new vfinfo().
6047 New einfo() is the same as info(), except it writes to stderr.
6048 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
6049 ldmisc.c: Replace "error" calls to info() by new einfo().
6051 Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
6053 * ldlex.l ldgram.y: made -V option do same as -v
6054 * Makefile.in: Added $(MINUS_G) flag so debugging can be
6057 Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
6058 i386 aout changes from Bob Kukura
6059 * Makefile.in, config.h: added i386aout support
6060 * configure.in: fixed /h-{myhost} typo
6061 * ldgram.y: -MM now gives more boring map.
6062 * ldlang.c: now does D_PAGED flag the right way.
6063 * ldsym.c: -MM flags does the right thing.
6065 Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
6067 * configure.in: Fixed typo. Also, a fix for hp300bsd.
6068 * ldlang.c (init_os): Compensate for BFD change,
6069 where bfd_make_section now returns NULL for a duplicate
6070 section request, instead of the old section.
6072 Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
6074 * ldver.c: Bump to version 1.91 (consistent with binutils).
6076 Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
6078 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
6079 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
6080 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
6081 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
6082 Add or update copyright notices.
6084 Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
6087 * Makefile.in: Changed installation directory name scheme
6088 to be consistent with gcc. Also changed 'install'.
6090 Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
6092 * Makefile.in: new targets ld.mm, ld.me
6094 Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
6096 * Makefile.in, ldtemplate: Need to use separate scripts
6097 for -n and -N options. Yet more complication.
6099 Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
6101 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
6102 work). Add some lines to avoid Sun Make VPATH bugs.
6104 Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
6106 * news.sc: Add alignment for data segment.
6107 * ldtemplate: Add (yet another) script to get for -n or -N
6108 options. (These need different alignment than ZMAGIC files.)
6109 * Makefile.in: Add stuff for new foo.xn scripts.
6110 These are generated by replacing "ALIGN(0x...00)" by ".".
6112 Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
6114 * Makefile.in: new targets ld.ms, ld-index.ms
6115 ld.texinfo: remove tabs, other cleanups for texi2roff
6117 Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
6119 * ldmain.c (main): Make config.magic_demand_paged be true
6120 by default. Don't the WP_TEXT and D_PAGED flags of
6121 output_bfd here; it's too late, so set it when output_bfd
6122 is created (in ldlang.c). Also fix setting of EXEC_P flag
6123 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
6124 * ldlang.c: Remove some duplicate extern declarations.
6125 * ldgram.y: Fixes to -N and -n options.
6126 * Makefile.in: Recognize upper case letters in sed script
6127 to remove assignments from script files.
6128 * ldtemplate: Don't assukme that -N or -n options
6129 imply use of -r script.
6130 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
6132 Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
6134 * ldtemplate: include bfd.h before sysdep.h.
6136 Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
6138 Restructure configuration scheme for bfd, binutils, ld.
6140 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
6141 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
6142 Change some config names to match other dirs.
6143 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
6145 * config/: Rename some config files to match up h-*.h names.
6146 Remove all the HOST_SYS definitions from the config files.
6148 Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
6150 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
6151 * ldtemplate: Remove ldfile_add_library_path calls;
6152 just use the SEARCH_DIR commands in the script files.
6153 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
6154 the SEARCH_DIR commands in the scripts (using ugly sed magic).
6155 This is primarily intended for cross-linking, where you would
6156 place libaries in a different place than native libraries.
6157 Also, emulations made from ldtemplate now use $(srcdir).
6158 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
6159 form; people can use the Makefile's LIB_PATH to override.
6161 Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
6163 * Makefile.in: fix target ld.dvi, add target ld.info
6164 ld.texinfo: make info filename ld.info
6166 Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
6168 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
6170 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
6171 few BFD types & enums.
6178 version-control: never