1 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3 * ldlang.c (section_already_linked): Set kept_section instead of
6 2000-10-10 Kazu Hirata <kazu@hxi.com>
8 * deffile.h: Fix formatting.
12 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
14 * pe-dll.c (make_one): Do not generate code thunk for DATA
16 (process_def_file): deduce DATA flag for auto-export sumbols.
18 2000-10-09 Kazu Hirata <kazu@hxi.com>
20 * ld.h: Fix formatting.
34 * pe-dll.c: Revert some formatting fixes.
36 2000-10-08 Kazu Hirata <kazu@hxi.com>
38 * pe-dll.c: Fix formatting.
40 2000-10-05 Kazu Hirata <kazu@hxi.com>
42 * ldlang.c: Fix formatting.
44 2000-10-03 DJ Delorie <dj@redhat.com>
46 * pe-dll.c (fill_edata): initialize entire block
47 (make_one): fill in correct section.
49 2000-10-03 Kazu Hirata <kazu@hxi.com>
51 * ldexp.c: Fix formatting.
53 2000-10-02 DJ Delorie <dj@redhat.com>
55 * emultempl/pe.em (gld_*_after_open): detect case where there two
56 import libraries for same dll; rename one to ensure proper link
59 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
61 (generate_edata): fix typo
63 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
65 * scripttempl/crisaout.sc (ENTRY): Now __start.
66 (.text): Add default setting for __start.
67 Remove CONSTRUCTORS handling.
68 (/DISCARD/): Add .gnu.warning.*.
69 * emulparams/crislinux.sh (ENTRY): Now __start.
70 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
71 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
73 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
74 (EXECUTABLE_SYMBOLS): Add default setting for __start.
76 2000-09-29 Kazu Hirata <kazu@hxi.com>
78 * deffile.h: Fix formatting.
95 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
97 * pe-dll.c (process_def_file): Uninitialized data wasn't
98 exported with --export-all-symbols switch.
100 2000-09-28 DJ Delorie <dj@redhat.com>
102 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
103 noname work properly.
105 2000-09-28 Alan Modra <alan@linuxcare.com.au>
107 * ld.texinfo (HPPA ELF32): New section.
109 * emultempl/hppaelf.em (group_size): New.
110 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
111 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
112 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
113 options to prevent abbreviations matching.
114 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
115 (PARSE_AND_LIST_ARGS_CASES): Handle it.
117 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
119 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
120 on the m68*-*-elf target. Make it support COFF input objects.
122 2000-09-21 Kazu Hirata <kazu@hxi.com>
124 * ldmain.c: Fix formatting.
125 * ldmisc.c: Likewise.
127 * ldwrite.c: Likewise.
129 2000-09-21 Alan Modra <alan@linuxcare.com.au>
131 * ldwrite.c (clone_section): Silence gcc warnings.
133 2000-09-20 Alan Modra <alan@linuxcare.com.au>
135 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
136 out of memory failure.
138 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
139 (clone_section): Handle out of memory failures. Rename var to
140 avoid c++ reserved word.
142 2000-09-18 Alan Modra <alan@linuxcare.com.au>
144 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
145 stub_name param to stub_sec_name.
146 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
148 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
150 * emultempl/m68kelf.em: New file.
151 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
152 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
153 * Makefile.in: Regenerate.
155 2000-09-15 Alan Modra <alan@linuxcare.com.au>
157 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
160 2000-09-13 Nick Clifton <nickc@redhat.com>
162 * ldmain.c (multiple_definition): Disable relaxation if
163 multiple symbol definitions are encountered - otherwise the
164 linker could abort with an assertion failure.
166 2000-09-10 Nick Clifton <nickc@redhat.com>
168 * mri.c: Fix formatting.
170 2000-09-07 H.J. Lu <hjl@gnu.org>
172 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
173 * configure: Rebuild.
175 2000-09-07 H.J. Lu <hjl@gnu.org>
177 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
178 * Makefile.in: Rebuild.
180 2000-09-07 Alan Modra <alan@linuxcare.com.au>
182 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
183 broken list handling. Create __start_SECNAME and __stop_SECNAME
184 when no place-holder. Add some comments. Test both SEC_CODE and
185 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
186 Handle case where no output section statement created.
188 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
190 * configure.tgt (sh-*-linux*): Added.
191 * Makefile.am: Added eshelf_linux and eshlelf_linux.
192 * Makefile.in: Rebuilt.
193 * emulparams/shelf_linux.sh: New file.
194 * emulparams/shlelf_linux.sh: New file.
196 2000-09-06 Alan Modra <alan@linuxcare.com.au>
198 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
199 try shuffling sections when the orphan happens to be the place
200 holder. Keep count of unique section names generated so we speed
201 the search for a new name.
203 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
205 * configure: Rebuilt with new libtool.m4.
207 2000-09-05 Nick Clifton <nickc@redhat.com>
209 * Makefile.in: Regenerate.
210 * aclocal.m4: Regenerate.
211 * configure: Regenerate.
212 * config.in: Regenerate.
213 * po/ld.pot: Regenerate.
215 * ldint.texinfo: Remove CVS revision marker - it foils local
218 * emultempl/ticoff.em: Remove extraneous comma.
220 2000-09-05 Alan Modra <alan@linuxcare.com.au>
222 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
223 to stub section flags.
224 (hppa_for_each_input_file_wrapper): New.
225 (hppa_lang_for_each_input_file): New.
226 (lang_for_each_input_file): Define to call above.
227 (multi_subspace): New.
228 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
229 (PARSE_AND_LIST_PROLOGUE): Define.
230 (PARSE_AND_LIST_LONGOPTS): Define.
231 (PARSE_AND_LIST_OPTIONS): Define.
232 (PARSE_AND_LIST_ARGS_CASES): Define.
233 (hppaelf_finish): Call elf32_hppa_set_gp.
234 (hppaelf_set_output_arch): Remove.
235 (LDEMUL_SET_OUTPUT_ARCH): Remove.
237 * emulparams/hppalinux.sh (ELFSIZE): Define.
239 (OTHER_READONLY_SECTIONS): Define.
241 (GENERATE_SHLIB_SCRIPT): Define.
243 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
244 to const throughout. Change `void *' to `PTR' throughout.
245 (lang_memory_default): Function is local to file, add `static'.
247 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
248 (ehppalinux.c): Likewise.
249 (earmelf.c): Likewise.
250 (earmelf_linux.c): Likewise.
251 (earmelf_linux26.c): Likewise.
252 * Makefile.in: Regenerate.
254 * ld.h (ld_config_type): Add unique_orphan_sections.
255 * lexsup.c (OPTION_UNIQUE): Define.
256 (ld_options): Add "--unique".
257 (parse_args): Handle it.
258 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
259 search for an existing output section if unique_orphan_sections is
260 set. Make use of bfd_get_unique_section_name rather than
261 duplicating code here.
262 * ld.texinfo: Describe --unique.
264 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
265 optional arg to split-by-file.
266 (parse_args): Handle them.
267 * ld.texinfo: Update description of these options.
268 * ldwrite.c (clone_section): Pass in the section name. Replace
269 local code with bfd_get_unique_section_name.
270 (split_sections): Tidy code and comments. Use a list traversal
271 more appropriate to the list construction. Handle cooked section
272 sizes. Split when split_by_reloc reached rather than exceeded.
273 Track section size and split when split_by_file reached. Fix
274 link_order_tail (even though it's not used).
275 (ldwrite): Modify condition for calling split_sections to suit
276 changed split_by_reloc and split_by_file.
277 * ldmain.c (main): Init config.split_by_reloc and
278 config.split_by_file to -1.
279 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
280 Change split_by_file to bfd_size_type.
282 2000-09-02 Nick Clifton <nickc@redhat.com>
284 * configure.in: Increase version number to 2.10.91.
285 * NEWS: Mention new ability to support removal of duplicate DWARF2
287 * configure: Regenerate.
288 * aclocal.m4: Regenerate.
289 * config.in: Regenerate.
291 2000-09-02 Daniel Berlin <dberlin@redhat.com>
293 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
295 * scripttempl/elf32var.sc: Ditto.
296 * scripttempl/elfd10v.sc: Ditto.
297 * scripttempl/elfd30v.sc: Ditto.
298 * scripttempl/elfi370.sc: Ditto.
299 * scripttempl/elfm68hc11.sc: Ditto.
300 * scripttempl/elfm68hc12.sc: Ditto.
301 * scripttempl/elfi386beos.sc: Ditto.
302 * scripttempl/v850.sc: Ditto.
304 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
306 * acinclude.m4: Include libtool and gettext macros from the
308 * aclocal.m4, configure: Rebuilt.
310 2000-08-25 Nick Clifton <nickc@redhat.com>
312 * ldlang.c (open_output): When choosing the target for a
313 particular endianness, do nothing if the target is not
316 2000-08-25 H.J. Lu <hjl@gnu.org>
318 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
319 check -rpath nor LD_RUN_PATH for cross link.
320 * ld.texinfo: Document the change.
322 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
324 * NEWS: Mention support for CRIS.
326 2000-08-23 H.J. Lu <hjl@gnu.org>
328 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
329 the current runpath list from bfd_elf_get_runpath_list ()
332 2000-08-22 H.J. Lu <hjl@gnu.org>
334 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
335 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
336 LD_LIBRARY_PATH for native linker. Display the needed DSO if
337 trace_file_tries is non-zero.
338 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
339 if trace_file_tries is non-zero.
341 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
344 2000-08-14 Jason Eckhardt <jle@cygnus.com>
346 * NEWS: Mention i860 support.
348 2000-08-14 Andreas Schwab <schwab@suse.de>
350 * scripttempl/elf.sc: Fix last change to use correct comment
353 2000-08-10 Geoff Keating <geoffk@cygnus.com>
355 * scripttempl/elf.sc: Add a comment giving the correspondence
356 between sections, per-datum sections, and linkonce sections. Make
357 the comment true even for .bss, .sdata, .sdata2, .sbss, and
360 2000-08-10 Jason Eckhardt <jle@cygnus.com>
362 * emulparams/elf32_i860.sh: New file.
363 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
364 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
365 (eelf32_i860.c): New rule.
366 * Makefile.in: Regenerate.
368 2000-08-10 Nick Clifton <nickc@cygnus.com>
370 * emulparams/mipspe.sh (ENTRY): Add definition.
372 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
374 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
377 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
379 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
380 the final size of .bss section.
381 * scripttempl/elfm68hc12.sc: Likewise.
383 2000-08-04 Alan Modra <alan@linuxcare.com.au>
385 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
386 gld${EMULATION_NAME}_parse_args for consistency. Combine
387 lastoptind and prevoptind vars, and keep track of last optind.
388 (gld_${EMULATION_NAME}_list_options): Rename to
389 gld${EMULATION_NAME}_list_options.
391 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
393 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
394 (i586-sco-sysv5uw7.1.0).
396 2000-07-27 H.J. Lu <hjl@gnu.org>
398 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
399 (PARSE_AND_LIST_PROLOGUE): New.
400 (PARSE_AND_LIST_LONGOPTS): Likewise.
401 (PARSE_AND_LIST_OPTIONS): Likewise.
402 (PARSE_AND_LIST_ARGS_CASES): Likewise.
403 (PARSE_AND_LIST_EPILOGUE): Likewise.
405 2000-07-28 Alan Modra <alan@linuxcare.com.au>
407 * emultempl/armelf.em: Elide functions common to elf32.em,
408 ie. most of the file.
409 (arm_elf_after_open): New. Do arm specific things then call
410 gld${EMULATION_NAME}_after_open.
411 (arm_elf_before_allocation): New. Call
412 gld${EMULATION_NAME}_before_allocation then do arm specifics.
413 (PARSE_AND_LIST_PROLOGUE): Define.
414 (PARSE_AND_LIST_SHORTOPTS): Define.
415 (PARSE_AND_LIST_LONGOPTS): Define.
416 (PARSE_AND_LIST_OPTIONS): Define.
417 (PARSE_AND_LIST_ARGS_CASES): Define.
418 (LDEMUL_AFTER_OPEN): Define.
419 (LDEMUL_BEFORE_ALLOCATION): Define.
420 (LDEMUL_BEFORE_PARSE): Define.
421 (LDEMUL_FINISH): Define.
423 * emultempl/hppaelf.em: Similarly zap most of this file.
424 (hppaelf_add_stub_section): Prototype.
425 (hppaelf_layaout_sections_again): Prototype.
426 (hook_in_stub): Prototype.
427 (LDEMUL_SET_OUTPUT_ARCH): Define.
428 (LDEMUL_FINISH): Define.
429 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
431 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
432 (EXTRA_EM_FILE): New.
433 * emulparams/armelf_linux.sh: Likewise.
434 * emulparams/armelf_linux26.sh: Likewise.
435 * emulparams/hppalinux.sh: Likewise.
436 * emulparams/hppaelf.sh: Likewise.
439 * emultempl/elf32.em: Fix formatting.
440 (EXTRA_EM_FILE): Source it.
441 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
442 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
443 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
444 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
445 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
446 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
447 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
448 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
449 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
450 allow functions in this file to be overridden.
451 (PARSE_AND_LIST_SHORTOPTS): Handle it.
453 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
455 * emultempl/elf32.em: Reorganize file.
457 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
459 * emulparams/elf64alpha.sh: Implement "-taso" emulation
460 specific option to fit 64-bit executable in the lower
461 31-bit address range. This is done by changing start
462 address of .interp (the very first section of executable)
463 and then setting EF_ALPHA_32BIT elf header flag.
465 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
467 * emultempl/m68kcoff.em: New file.
468 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
469 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
471 * Makefile.in: Regenerate.
473 2000-07-20 H.J. Lu <hjl@gnu.org>
475 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
476 and "disable-new-dtags" to stop getopt from treating -d/-e as
477 abbreviations for these options.
479 2000-07-20 H.J. Lu <hjl@gnu.org>
481 * ld.texinfo: Add documentation for --disable-new-dtags and
484 * ldmain.c (main): Initialize link_info.new_dtags to false.
486 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
487 --disable-new-dtags and --enable-new-dtags.
488 (gld_${EMULATION_NAME}_list_options): Likewise.
490 2000-07-05 Kenneth Block <krblock@computer.org>
492 * ld/lexsup.c: Add optional style to demangle switch
493 * ld/ld.texinfo: Document optional style to demangle switch.
495 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
497 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
499 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
500 Regenerate dependencies.
501 * Makefile.in: Rebuild.
502 * configure.tgt (cris-*-*): New target.
503 * emulparams/crisaout.sh, emulparams/criself.sh,
504 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
505 * po/POTFILES.in, po/ld.pot: Regenerate.
507 2000-07-20 H.J. Lu <hjl@gnu.org>
509 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
510 Print out ignored -z options.
512 2000-07-19 H.J. Lu <hjl@gnu.org>
514 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
515 (PARSE_AND_LIST_PROLOGUE): New.
516 (PARSE_AND_LIST_LONGOPTS): Likewise.
517 (PARSE_AND_LIST_OPTIONS): Likewise.
518 (PARSE_AND_LIST_ARGS_CASES): Likewise.
520 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
522 * lexsup.c (ld_options): Comment out 'z'.
523 (parse_args): Likewise.
525 * emultempl/elf32.em: Include "elf/common.h".
526 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
528 (gld_${EMULATION_NAME}_list_options): Likewise.
530 * ld.texinfo: Add documentation for the recognized -z options.
532 2000-07-19 H.J. Lu <hjl@gnu.org>
534 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
535 bfd_elf_set_dt_needed_soname ().
537 2000-07-18 DJ Delorie <dj@cygnus.com>
539 * pe-dll.c (pe_dll_id_target): check object target name also
541 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
543 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
544 ${INIT_END} if relocating.
545 (.fini): Likewise ${FINI_START} and ${FINI_END}.
547 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
549 * src/ld/emultempl/pe.em (gld_*_open_dynamic_archive): New search
550 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
551 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
552 errors introduced by the old dynamic lib search order.
554 2000-07-17 DJ Delorie <dj@cygnus.com>
556 * pe-dll.c (process_def_file): auto-export data items also
557 (pe_process_import_defs): also see if _imp_ form needed
559 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
561 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
562 for dll import libraries
564 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
566 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
567 gcc 2.95.2 and later.
569 2000-07-11 Kazu Hirata <kazu@hxi.com>
571 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
574 2000-07-10 Alan Modra <alan@linuxcare.com.au>
576 * ldemul.h (struct lang_input_statement_struct): Remove forward
578 (struct search_dirs): Likewise.
579 * ldfile.h (struct lang_input_statement_struct): Likewise.
580 Protect file from multiple inclusion.
581 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
582 declaration from macro to file scope.
584 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
585 * ldgram.y: Likewise here.
586 * ldlang.c: And here.
587 * ldmain.c: And here.
588 * mpw-elfmips.c: And here.
589 * mpw-eppcmac.c: And here.
590 * emultempl/aix.em: And here.
591 * emultempl/armcoff.em: And here.
592 * emultempl/armelf.em: And here.
593 * emultempl/armelf_oabi.em: And here.
594 * emultempl/beos.em: And here.
595 * emultempl/elf32.em: And here.
596 * emultempl/hppaelf.em: And here.
597 * emultempl/linux.em: And here.
598 * emultempl/lnk960.em: And here.
599 * emultempl/pe.em: And here.
600 * emultempl/sunos.em: And here.
601 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
602 * mpw-idtmips.c: Ditto.
603 * emultempl/generic.em: Ditto.
604 * emultempl/gld960.em: Ditto.
605 * emultempl/gld960c.em: Ditto.
606 * emultempl/mipsecoff.em: Ditto.
607 * emultempl/ticoff.em: Ditto.
608 * emultempl/vanilla.em: Ditto.
610 * pe-dll.c: Include ldfile.h
611 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
613 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
614 arguments to bfd_elf32_size_dynamic_sections call.
615 (gldelf32ebmip_place_orphan): Add missing arguments to
616 lang_leave_output_section_statement call.
618 2000-07-10 H.J. Lu <hjl@gnu.org>
620 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
623 (compute_dll_image_base): Likewise.
624 (pe_undef_found_sym): Likewise.
625 (pe_undef_cdecl_match): Likewise.
626 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
627 argument "arch" with ATTRIBUTE_UNUSED.
629 2000-07-10 Alan Modra <alan@linuxcare.com.au>
631 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
633 From Ryan Bradetich <rbradetich@uswest.net>
634 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
636 2000-07-09 Alan Modra <alan@linuxcare.com.au>
638 Changes to create multiple linker stubs, positioned immediately
639 before the section where they are required.
640 * emultempl/hppaelf.em: Include elf32-hppa.h.
641 (stub_sec, file_chain): Delete.
642 (hppaelf_create_output_section_statements): Don't make a stub
644 (hook_stub_info): New struct.
645 (hook_in_stub): New function.
646 (hppaelf_add_stub_section): New function.
647 (hppaelf_finish): Do nothing for relocateable links. Modify the
648 call to elf32_hppa_size_stubs. Move code for updating section
650 (hppaelf_layaout_sections_again): ..to here, a new function.
652 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
653 broken list handling. Pass in a pointer to the list.
654 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
656 (hppaelf_before_parse): Prototype.
657 (hppaelf_set_output_arch): Prototype.
658 (hppaelf_create_output_section_statements): Prototype.
659 (hppaelf_delete_padding_statements): Prototype.
660 (hppaelf_finish): Prototype.
663 * emultempl/hppaelf.em: Include ctype.h.
664 (struct orphan_save): New.
665 (gld${EMULATION_NAME}_place_orphan): New.
666 (output_rel_find): New.
667 (hppaelf_get_script): Update from elf32.em.
668 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
669 Change emulation_name field to "${EMULATION_NAME}". Add
670 gld${EMULATION_NAME}_place_orphan.
672 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
673 ehppalinux.o, sort it. Regenerate dependencies.
674 (ehppalinux.c): Depend on hppaelf.em
675 * Makefile.in: Regenerate.
677 * configure.tgt: targ_emul=hppalinux for hppa*linux
679 * emulparams/hppalinux.sh: New.
680 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
682 2000-07-08 Alan Modra <alan@linuxcare.com.au>
684 * lexsup.c (parse_args): Copy section name.
686 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
688 * emultempl/pe.em: institute the following search order for
689 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
690 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
691 static lib (libfoo.a) if none of the above are found.
693 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
695 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
696 (longopts): New --{enable,disable}-auto-image-base options.
697 (gld_${EMULATION_NAME}_list_options): Document.
698 (gld_${EMULATION_NAME}_parse): Handle.
699 (strhash): New static function.
700 (compute_dll_image_base): New static function.
701 (gld_${EMULATION_NAME}_set_symbols): Use.
703 2000-07-05 DJ Delorie <dj@redhat.com>
707 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
709 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
710 * emulparams/elf32btsmip.sh: New file.
711 * Makefile.am: Add traditional mips target.
712 * Makefile.in: Rebuild.
714 2000-07-01 H.J. Lu <hjl@gnu.org>
716 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
717 automake to use YLWRAP.
718 * Makefile.in: Rebuild.
720 2000-07-01 Alan Modra <alan@linuxcare.com.au>
722 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
723 (CLEANFILES): Add DEPA.
724 * Makefile.in: Regenerate.
726 2000-06-30 Timothy Wall <twall@ppc>
728 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
729 the page in the upper octet of the address.
731 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
733 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
735 2000-06-24 Alan Modra <alan@linuxcare.com.au>
737 * NEWS: arm-elf does --gc-sections too.
739 2000-06-22 Alan Modra <alan@linuxcare.com.au>
741 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
743 * Makefile.in: Regenerate.
745 2000-06-21 H.J. Lu <hjl@gnu.org>
747 * Makefile.am: Rebuild dependency.
748 * Makefile.in: Rebuild.
750 2000-06-20 H.J. Lu <hjl@gnu.org>
752 * Makefile.am: Rebuild dependency.
753 * Makefile.in: Rebuild.
755 2000-06-20 Timothy Wall <twall@cygnus.com>
757 * scripttempl/tic54xcoff.sc: New.
758 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
759 * gen-doc.texi: Add flag for TI COFF.
760 * ld.texinfo: Add documentation for TI COFF handling switches.
761 * emultempl/ticoff.em: New. TI COFF handling.
762 * configure.tgt: Add tic54x target.
763 * Makefile.am: Add tic54x target.
764 * Makefile.in: Ditto.
766 2000-06-20 Alan Modra <alan@linuxcare.com.au>
768 * ldmain.c (set_scripts_dir): Correct pointer comparison when
769 checking for backslashes.
771 2000-06-19 Alan Modra <alan@linuxcare.com.au>
773 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
775 2000-06-18 Alan Modra <alan@linuxcare.com.au>
777 * NEWS: Update list of targets supporting --gc-sections.
779 * scripttempl/elf.sc: KEEP .eh_frame contents.
780 * scripttempl/elfd30v.sc: Same here.
782 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
784 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
786 * Makefile.in: Rebuild.
787 * configure.tgt: Recognize m68hc12 and m68hc11.
788 * scripttempl/elfm68hc12.sc: New file.
789 * emulparams/m68hc12elfb: New emulation.
790 * emulparams/m68hc12elf: New emulation.
791 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
792 (includes a memory.x script to define the ROM and RAM banks).
793 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
794 New configuration files for support of Motorola 68hc11
796 2000-06-15 Alan Modra <alan@linuxcare.com.au>
798 * ldmain.c (main): Only change SEC_READONLY for final link.
800 2000-06-13 H.J. Lu <hjl@gnu.org>
802 * configure: Regenerate.
804 2000-06-08 David O'Brien <obrien@FreeBSD.org>
806 * configure.in (VERSION): Update to show this is the CVS mainline.
808 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
810 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
811 input objects to be ECOFF.
812 (check_sections): einfo takes %B, not %P, to print a BFD name.
814 2000-06-05 Michael Matz <matz@ifh.de>
816 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
819 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
821 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
823 * emulparams/avr1200.sh (STACK): Define as 0.
824 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
825 * emulparams/avr4433.sh (STACK): Likewise.
826 * emulparams/avr44x4.sh (STACK): Likewise.
827 * emulparams/avr85xx.sh (STACK): Likewise.
828 * emulparams/avrmega103.sh (STACK): Likewise.
829 * emulparams/avrmega161.sh (STACK): Likewise.
830 * emulparams/avrmega603.sh (STACK): Likewise.
831 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
832 (__stack): Define from ${STACK} for main().
834 2000-05-26 Alan Modra <alan@linuxcare.com.au>
836 * Makefile.am: Update dependencies with "make dep-am"
837 * Makefile.in: Regenerate.
839 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
841 * ldmain.c: Include filenames.h.
842 (set_scripts_dir): Support backslashes in program name.
844 2000-05-22 Igor Shevlyakov <igor@windriver.com>
846 * ldmain.c (main): When deciding if ".text" section should be
847 read-only, don't forget to reset SEC_READONLY because it
848 could be already set.
850 2000-05-22 Thomas de Lellis <tdel@windriver.com>
852 * ld.1: Add documentation for new command line option:
853 --section-start <sectionname>=<sectionorg>
854 This is a generic version of -Ttext etc. which accepts
855 any section name as a parameter instead of just text/data/
857 * ld.texinfo: More docs.
859 * lexsup.c: (parse_args): Recognize new command line option.
860 (ld_options): Add new option.
862 2000-05-18 H.J. Lu <hjl@gnu.org>
864 * lexsup.c (parse_args): `i' == `r', not `q'.
866 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
868 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
870 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
871 Rick Gorton <gorton@scrugs.lkg.dec.com>
873 Add support for '-q' == '--emit-relocs' switch.
874 * ldmain.c (main): Default to false.
875 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
876 * NEWS: Describe the emitrelocations switch.
877 * ld.texinfo: Describe the emitrelocations switch.
879 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
881 * ld/emultempl/pe.em (_open_dynamic_archive): New function: Search
882 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
883 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
886 2000-05-15 David O'Brien <obrien@FreeBSD.org>
888 * lexsup.c (parse_args): Update the year in the copyright notice.
890 2000-05-13 Alan Modra <alan@linuxcare.com.au>
892 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
893 Replace defines with those from intl/libgettext.h to quieten gcc
896 2000-05-10 H.J. Lu <hjl@gnu.org>
898 * ldlang.c (open_input_bfds): Don't load the same file within
899 a group again if the whole archive has been loaded already.
901 2000-05-03 Alan Modra <alan@linuxcare.com.au>
903 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
904 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
907 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
909 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
911 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
912 host "ia64-*-linux-gnu*".
914 2000-04-29 Andreas Jaeger <aj@suse.de>
916 * ld.h: Correctly check GCC version.
918 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
920 * Makefile.am: Add PA64 support. Add missing dependencies for
922 * Makefile.in: Rebuilt.
923 * configure.tgt: Add PA64 support (currently disabled).
925 2000-04-25 Alan Modra <alan@linuxcare.com.au>
927 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
928 (output_rel_find): New function.
929 (hold_section, hold_use): Delete.
930 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
931 hold_interp): Make local to place_orphan.
932 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
933 rather than place_section to find possible previous use of orphan.
934 Similarly find the place-holder output sections. Use returned
935 value from lang_enter_output_section_statement rather than calling
936 lang_output_section_statement_lookup.
937 * emultempl/armelf.em: Same here.
938 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
940 * ldlang.c (lang_enter_output_section_statement): Return output
942 * ldlang.h (lang_enter_output_section_statement): Change
945 * ldlang.h (lang_output_section_statement): Export it.
946 * ldlang.c (lang_output_section_statement): Ditto.
948 2000-04-24 Nick Clifton <nickc@cygnus.com>
950 * ld.texinfo (Output Section Data): Add note that section data
951 commands cannot appear outside of section directives.
953 2000-04-2 Matthew Green <mrg@cygnus.com>
955 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
957 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
958 David Mosberger <davidm@hpl.hp.com>
960 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
961 (eelf64_ia64.c): New rule.
962 * Makefile.in: Rebuild.
963 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
964 * emulparams/elf64_ia64.sh: New file.
966 2000-04-21 Richard Henderson <rth@cygnus.com>
968 * scripttempl/elfd30v.sc: Place .gcc_except_table.
970 2000-04-19 Alan Modra <alan@linuxcare.com.au>
972 * dep-in.sed: Match space at start of file name, not at end.
974 2000-04-18 H.J. Lu <hjl@gnu.org>
976 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
977 lang_leave_output_section_statement () after calling
978 lang_enter_output_section_statement ().
979 * emultempl/armelf.em: Likewise.
981 2000-04-18 Alan Modra <alan@linuxcare.com.au>
983 * emultempl/elf32.em (struct orphan_save): Add section field.
984 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
985 better order, and place first orphan section as we did before the
986 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
987 Don't call make_bfd_section here, let wild_doit do the job for us.
988 Don't build a statement list when we'll only throw it away.
989 * emultempl/armelf.em: Ditto.
990 * emultempl/pe.em: Similarly.
992 2000-04-14 Geoff Keating <geoffk@cygnus.com>
994 * scripttempl/elfppc.sc: Remove.
995 * emulparams/elf32ppc.sh: Use elf.sc.
996 * emulparams/elf32lppc.sh: Use elf.sc.
997 * emulparams/elf32ppclinux.sh: Use elf.sc.
998 * emulparams/elf32ppcsim.sh: New file.
999 * emulparams/elf32lppcsim.sh: New file.
1000 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
1001 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1002 * Makefile.in: Regenerate.
1003 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1005 2000-04-14 Alan Modra <alan@linuxcare.com.au>
1007 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1008 ~SEC_ALLOC sections too. Init start address of debug sections.
1009 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1010 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1011 Also set all relocateable section start addresses.
1013 2000-04-13 Geoff Keating <geoffk@cygnus.com>
1015 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1016 Add new BSS_PLT variable for when .plt need not be contained in
1017 the file. Move _etext so that it is also after .fini, and provide
1018 both etext and _etext with a leading underscore. Mark the start
1021 2000-04-12 Alan Modra <alan@linuxcare.com.au>
1023 * emultempl/elf32.em (struct orphan_save): New.
1024 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1025 hold_interp): Make them struct orphan_save.
1026 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1027 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1028 the end of the relevant section list. Also add associated section
1029 statements to the end of any previous orphan statements.
1030 * emultempl/armelf.em: Similarly.
1031 * emultempl/pe.em: Similarly.
1033 2000-04-11 Alan Modra <alan@linuxcare.com.au>
1035 * ld.texinfo (Simple Example): Remove extraneous paragraph.
1037 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1039 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1040 --enable-build-warnings option.
1041 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1042 * Makefile.in, configure: Re-generate.
1044 2000-04-04 Alan Modra <alan@linuxcare.com.au>
1046 * po/ld.pot: Regenerate.
1048 * lexsup.c (help): Restore translated part of bug string.
1050 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1051 (DEP): Quote when passing vars to sub-make. Add warning message
1053 (DEP1): Rewrite for "gcc -MM".
1054 (CLEANFILES): Add DEP2.
1055 Update dependencies.
1056 * Makefile.in: Regenerate.
1058 2000-04-03 Alan Modra <alan@linuxcare.com.au>
1060 * ld.h: #include "bin-bugs.h"
1061 * lexsup.c (help): Use REPORT_BUGS_TO.
1063 2000-03-27 Denis Chertykov <denisc@overta.ru>
1065 * configure.tgt (avr-*-*): New target support.
1066 * Makefile.am: Likewise.
1067 * scripttempl/elf32avr.sc: New script file.
1068 * emulparams/avr1200.sh: New file.
1069 * emulparams/avr23xx.sh: New file.
1070 * emulparams/avr4433.sh New file.
1071 * emulparams/avr44x4.sh New file.
1072 * emulparams/avr85xx.sh New file.
1073 * emulparams/avrmega103.sh New file.
1074 * emulparams/avrmega161.sh New file.
1075 * emulparams/avrmega603.sh New file.
1076 * Makefile.in: Regenerate.
1078 2000-03-09 Andreas Jaeger <aj@suse.de>
1080 * Makefile.am (check-DEJAGNU): Also unset LANG.
1081 * Makefile.in: Rebuild.
1083 2000-03-06 Ian Lance Taylor <ian@zembu.com>
1085 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1088 2000-03-02 H.J. Lu <hjl@gnu.org>
1090 * emulparams/elf32mcore.sh: Include "getopt.h".
1092 2000-03-01 Ian Lance Taylor <ian@zembu.com>
1094 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1096 2000-03-01 H.J. Lu <hjl@gnu.org>
1098 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1099 * emulparams/shpe.sh: Likewise.
1101 2000-03-01 Nick Clifton <nickc@cygnus.com>
1103 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1104 to unused parameters.
1106 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1107 functions only used by DLL code.
1108 (_place_orphan): Initialise 'dollar'.
1110 2000-03-01 H.J. Lu <hjl@gnu.org>
1112 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1113 indicate if the undefined symbol is a fatal error or not.
1114 Don't delete the output file if "fatal" is false.
1116 2000-02-29 H.J. Lu <hjl@gnu.org>
1118 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1119 Set LC_COLLATE and LC_ALL to null and export them. It is for
1120 sort which expects the C locale.
1121 Add $(LIBS) to all $(HOSTING_LIBS).
1122 * Makefile.in: Rebuild.
1124 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
1126 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1127 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1128 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1129 (ld_emulation_xfer_struct): Add missing NULL initialiser for
1130 find_potential_libraries.
1132 2000-02-28 Jim Blandy <jimb@redhat.com>
1134 * ldgram.y (exclude_name_list): Don't require a comma to separate
1135 list entries; the lexer considers commas to be valid part of a
1136 filename, so in something like `foo, bar' the comma is considered
1137 part of the first filename, `foo,'.
1138 * ld.texinfo: Update section on EXCLUDE_FILE lists.
1140 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
1142 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1143 host "i[3456]86-*-freebsdelf*".
1145 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
1147 * scripttempl/i386go32.sc: Move misplaced semicolons.
1149 2000-02-25 Ian Lance Taylor <ian@zembu.com>
1151 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1152 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1153 (eelf64hppa.c, ehppaelf.c): Remove targets.
1154 * Makefile.in: Rebuild.
1156 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1158 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1159 GNU/Linux/sparc, but keep the default as 32.
1161 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
1162 it default if sparcv9 or sparc64.
1164 2000-02-24 Nick Clifton <nickc@cygnus.com>
1166 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1167 * Makefile.in: Regenerate.
1168 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1170 * ldemul.h (ld_emulation_xfer_struct): Add new field:
1171 find_potential_libraries.
1172 * ldemul.c (ldemul_find_potential_libraries): New function.
1174 * ldfile.c (ldfile_open_file_search): Allow function to be
1176 (ldfile_open_file): Call ldemul_find_potential_libraries.
1177 * ldfile.h: Add prototype for ldfile_open_file_search.
1179 * pe-dll.c: Add support for ARM, MIPS and SH targets.
1181 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
1182 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
1184 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1185 (gld_X_find_potential_libraries): New function. Search for
1186 libraries called "*.lib".
1188 * scriptempl/pe.sc: Add .pdata section.
1190 2000-02-23 Richard Henderson <rth@cygnus.com>
1192 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1193 Add and use memory regions.
1195 2000-02-23 Linas Vepstas (linas@linas.org)
1197 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1199 * Makefile.am: Add support for Linux/IBM 370.
1200 * configure.tgt: Likewise.
1202 * Makefile.in: Regenerate.
1204 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
1206 * ldlang.c (print_input_section, print_data_statement,
1207 print_reloc_statement, print_padding_statement, insert_pad,
1208 size_input_section, lang_check_section_addresses,
1209 lang_size_sections, lang_do_assignments, lang_set_startof,
1210 lang_one_common): Change `opb' to unsigned.
1211 (lang_do_assignments): Also change `size' to unsigned.
1213 2000-02-16 Richard Henderson <rth@cygnus.com>
1215 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1217 2000-02-16 Timothy Wall <twall@cygnus.com>
1219 * mri.c (mri_draw_tree): Add default LMA region argument to call
1220 to lang_leave_output_section_statement.
1221 * ldlang.h: Update prototypes with LMA region arguments.
1222 * ldlang.c (lang_size_sections): Encapsulate region bounds
1223 checking in os_check_region call.
1224 (os_check_region): New function.
1225 (lang_output_section_statement_lookup): Initialize lma_region.
1226 (lang_leave_output_section_statement): Add LMA region argument.
1227 (lang_leave_overlay): Ditto.
1228 * ldgram.y: Handle LMA region syntax.
1229 * ld.texinfo (Output Section Description): Describe LMA region usage.
1230 * emultempl/armelf.em (gld$place_orphan): Add default value for
1231 lma region in call to lang_leave_output_section_statement.
1232 * emultempl/elf32.em (gld$place_orphan): Add default value for
1233 lma region in call to lang_leave_output_section_statement.
1234 * emultempl/pe.em (gld$place_orphan): Add default value for
1235 lma region in call to lang_leave_output_section_statement.
1238 2000-02-04 Timothy Wall <twall@redhat.com>
1240 * ldlang.c (lang_check_section_addresses): Use bytes instead of
1241 octets when calculating section end addresses.
1243 2000-02-04 Timothy Wall <twall@redhat.com>
1245 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
1247 2000-02-03 Timothy Wall <twall@redhat.com>
1249 * ld/ldexp.c (fold_name): Make SIZEOF operator return byte count, not
1251 * ld/ldlang.c (print_input_section, print_data_statement,
1252 print_reloc_statement, print_padding_statement): Print target
1253 address values and section sizes as bytes, not octets.
1254 (insert_pad) Calculate padding size in octets, and adjust "dot"
1256 (size_input_section) Always adjust "dot" by bytes, not octets.
1257 (lang_check_section_addresses, lang_do_assignments) Adjust
1258 "dot" by bytes, not octets. Use the larger of the directive size
1259 or octets_per_byte for the number of octets actually allocated in
1261 (lang_set_startof) Make sure STARTOF returns a target address.
1262 (lang_one_common) Record size changes in octets.
1263 (lang_abs_symbol_at_end_of) Section end symbol's value is
1264 recorded in target bytes.
1265 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
1266 to be clear about behavior when an octet is smaller than one byte.
1268 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
1270 * ldcref.c (output_cref): Don't pass message strings to printf
1274 * ldmisc.c (vfinfo): Same here.
1277 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
1279 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
1280 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
1281 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
1282 Add missing NULL initialisers, and comments.
1284 * testsuite/ld-srec/sr3.cc (__rethrow): New.
1286 2000-01-21 Nick Clifton <nickc@cygnus.com>
1288 * ldlang.c (lang_size_sections): Fix typo in comment.
1290 2000-01-18 H.J. Lu <hjl@gnu.org>
1292 * ldlang.c (lang_size_sections): Also update the current
1293 address of a region if the SEC_NEVER_LOAD bit is not set.
1295 2000-01-10 Philip Blundell <pb@futuretv.com>
1297 * configure.tgt (arm*-*-conix*): New target.
1299 2000-01-07 Nick Clifton <nickc@cygnus.com>
1301 * ld.texinfo (Options): Remind users to preceed linker command
1302 line switches with -Wl, (or whatever is appropriate) if it is
1303 being invoked by a comnpiler driver program.
1304 Fix description of the behaviour of the -n command line switch.
1306 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
1308 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
1310 * ld.texinfo (EXCLUDE_FILE): Update documentation.
1311 * ldgram.y (wildcard_spec): Support a list of excluded_files.
1312 (exclude_name_list): New.
1313 ldlang.c (walk_wild_section): Support list of excluded files.
1314 (print_wild_statement): Likewise.
1315 (lang_add_wild): Likewise.
1316 * ldlang.h (lang_wild_statement_type): Likewise.
1317 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
1319 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1321 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
1322 (process_def_file): Use.
1323 (pe_dll_compat_implib): New variable.
1326 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
1327 pe_dll_compat_implib.
1329 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
1330 compat-implib options.
1331 (gld_${EMULATION_NAME}_list_options): List new options.
1332 (gld_${EMULATION_NAME}_parse_args): Handle.
1334 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
1337 * deffilep.y (opt_name): Allow "." in name.
1339 1999-12-02 Nick Clifton <nickc@cygnus.com>
1341 * Makefile.am: Fix arm-epoc-pe dependencies.
1342 * Makefile.in: Regenerate.
1344 * emulparams/arm_epoc_pe.sh (SCRIPT_NAME): Set to epocpe.
1346 * scripttempl/epocpe.sc: New file: copy of pe.sc, customised for
1347 EPOC by placing .rdata into .text.
1349 1999-11-26 Andreas Schwab <schwab@suse.de>
1351 * configure.in: Put AC_MSG_CHECKING/AC_MSG_RESULT around check for
1352 STRINGIFY. Use yes/no instead of true/false as value for cache
1354 * configure: Regenerate.
1356 1999-11-24 Nick Clifton <nickc@cygnus.com>
1358 * ldlang.c (IGNORE_SECTION): Section must have both ALLOC and LOAD
1359 attributes in order to be checked.
1361 1999-11-22 Nick Clifton <nickc@cygnus.com>
1363 * ldlang.c (lang_check_section_addresses): Fix test to determine
1364 if a section should be tested.
1365 (IGNORE_SECTION): New macro.
1367 Wed Nov 3 23:31:19 1999 Jeffrey A Law (law@cygnus.com)
1369 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1370 Clean up code to use EXTRA_SHLIB_EXTENSION.
1372 1999-11-03 Nick Clifton <nickc@cygnus.com>
1374 * emulparams/elf32mcore.sh (OUTPUT_FORMAT): Change to little endian.
1375 * emulparams/mcorepe.sh (OUTPUT_FORMAT): Change to little endian.
1377 1999-11-01 Steve Chamberlain <sac@pobox.com>
1379 * ldlang.c (section_already_linked): Rework to use hash table.
1380 (already_linked_newfunc): New function.
1381 (already_linked_table_init): New function.
1382 (already_linked_table_free): New function.
1383 (lang_process): Initialize and free the already_linked hash table.
1385 1999-10-27 Andreas Jaeger <aj@suse.de>
1387 * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1388 target "mips*-*-linux-gnu*".
1390 1999-10-27 Scott Bambrough <scottb@netwinder.org>
1392 * emultempl/armelf.em: Include ctype.h to prevent compile time
1395 1999-10-26 Nick Clifton <nickc@cygnus.com>
1397 * emultempl/armcoff.em (gld{}_finish): Remove extraneous
1398 underscore from prototype.
1399 * emultempl/armelf.em (gld{}_finish): Remove extraneous
1400 underscore from prototype.
1402 1999-10-07 Geoffrey Keating <geoffk@cygnus.com>
1404 * scripttempl/elf.sc (.rel.sdata): Combine all the sdata relocs
1405 being .rel.sdata, .rel.sdata.*, .rel.gnu.linkonce.s*.
1406 (.rela.sdata): Likewise for .rela.sdata.* and .rela.gnu.linkonce.s*.
1407 (.rel.sbss): Make like .rel.bss.
1408 (.rela.sbss): Make like .rel.bss.
1409 (.sdata): Don't include .gnu.linkonce.s.* or .sdata.* when
1411 (.sbss): Do the same things as for .bss: include SDATA_START_SYMBOLS,
1414 1999-09-29 Andrew Haley <aph@cygnus.com>
1416 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Defer
1417 merging sections when not relocating.
1419 1999-09-28 Mumit Khan <khan@xraylith.wisc.edu>
1421 * pe-dll.c (process_def_file): Move the offset lookup from here to
1422 (fill_exported_offsets): here. New static function.
1425 1999-09-28 Mumit Khan <khan@xraylith.wisc.edu>
1427 * deffilep.y (tokens): Add upper and lower case versions of DATA,
1428 CONSTANT, NONAME and PRIVATE tokens.
1429 (command): Use DATAU.
1430 (expline): Allow for drectve syntax as well.
1431 (exp_opt_list): Likewise.
1432 (exp_opt): Likewise.
1433 * pe-dll.c (make_one): Only generate the idata entries for data
1436 1999-09-28 Geoffrey Keating <geoffk@cygnus.com>
1438 * scripttempl/elf.sc (.sdata): Include .gnu.linkonce.s.* sections
1441 1999-09-26 Nick Clifton <nickc@cygnus.com>
1443 * scripttempl/elf.sc (.bss): Accept sections named .bss.*
1444 (.sbss): Accept sections names .sbss.*
1446 1999-09-22 Nick Clifton <nickc@cygnus.com>
1448 * Makefile.am: Add earm_epoc_pe.c build target.
1450 Sat Sep 18 07:57:10 1999 Jeffrey A Law (law@cygnus.com)
1452 * emulparms/elf64hppa.sh (OTHER_READONLY_SYMBOLS): Remove ".stubs",
1453 they've been renamed to ".stub", which is handled automatically
1456 Fri Sep 17 11:00:33 1999 Jeffrey A Law (law@cygnus.com)
1458 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Kill completely.
1459 (DATA_START_SYMBOLS): Kill __hp_load_map definition
1461 Thu Sep 16 10:59:56 1999 Jeffrey A Law (law@cygnus.com)
1463 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1464 Use the same filename extension for the bfd_elf_dt_needed_name call
1465 as we did for finding the library.
1467 * emulparms/elf64hppa.sh (DATA_START_SYMBOLS): Define.
1468 (OTHER_READWRITE_SECTIONS): No longer define __hp_load_map.
1470 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Define.
1472 Wed Sep 15 02:47:43 1999 Jeffrey A Law (law@cygnus.com)
1474 * emulparms/elf64hppa.sh (SHLIB_TEXT_START_ADDR): Define.
1475 (SHLIB_DATA_ADDR): Likewise.
1477 * emulparms/elf64hppa.sh (TEXT_DYNAMIC): Define.
1479 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): No longer combine
1480 the .plt, .dlt, .opd into a single output section. Provide values
1481 for __gp and __hp_load_map.
1483 1999-09-14 Michael Meissner <meissner@cygnus.com>
1485 * configure.in (Canonicalization of target names): Remove adding
1486 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
1487 generates $ac_config_sub with a ${CONFIG_SHELL} already.
1488 * configure: Regenerate.
1490 1999-09-14 Donn Terry <donn@interix.com>
1492 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): allow for
1495 1999-09-14 Ulrich Drepper <drepper@cygnus.com>
1497 * configure.in: Define EXTRA_SHLIB_EXTENSION to ".sl" for HP target.
1498 * config.in: Add EXTRA_SHLIB_EXTENSION.
1500 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1501 Search for second shared lib extension only if EXTRA_SHLIB_EXTENSION
1504 1999-09-14 Nick Clifton <nickc@cygnus.com>
1506 * Makefile.in: Add earm_epoc_pe.c build target.
1508 Tue Sep 14 05:26:34 1999 Jeffrey A Law (law@cygnus.com)
1510 * emulparms/elf64hppa.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.dlt.
1512 1999-09-13 Donn Terry <donn@interix.com>
1514 * emultempl/pe.em: Remove the output file at the start, in case it
1517 Mon Sep 13 00:17:18 1999 Jeffrey A Law (law@cygnus.com)
1519 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1520 Search for file with .sl extension if no file with a .so extension
1523 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Put .plt
1524 at the start of the .dlt output section.
1526 1999-09-12 Ian Lance Taylor <ian@zembu.com>
1528 * pe.em: Don't include "../bfd/libbfd.h".
1529 (gld_${EMULATION_NAME}_after_open): Use xmalloc rather than
1532 * pe-dll.h: New file.
1533 * pe-dll.c: Include "pe-dll.h". Mark unused arguments as needed
1535 (edata_sz, reloc_sz): Change from int to size_t.
1536 (pe_details_type): Change type of imagebase_reloc from int to
1538 (pe_detail_list): Fully initialize last entry.
1539 (pe_dll_id_target): Change parameter to const.
1540 (pe_dll_generate_def_file): Likewise.
1541 (pe_dll_generate_implib): Likewise.
1542 (pe_implied_import_dll): Likewise. Change dll_name to const.
1543 * emultempl/pe.em: Include "pe-dll.h". Remove declarations now in
1545 (init): Fully initialize __dll__ entry.
1546 (gld_${EMULATION_NAME}_after_open): Remove unused variables
1547 sequence, elt, and i.
1548 * deffile.h: Add preprocessor guard.
1549 * deffilep.y (def_debug): Remove.
1550 * Makefile.am: Rebuild dependencies.
1551 (HFILES): Add pe-dll.h.
1553 1999-09-12 Donn Terry <donn@interix.com>
1555 * ld.h (ld_abort): Declare.
1557 * ldmisc.c (ld_abort): Define.
1559 * scripttempl/pe.sc: Use ${ENTRY} rather than _mainCRTStartup.
1560 Move .bss section after .rdata. Move .reloc section after .rsrc.
1562 * lexsup.c (parse_args): Use strtoul for --split-by-reloc
1565 * lexsup.c (parse_args): If we get an unrecognized argument,
1568 * ldlang.c (section_already_linked): Use comdat information if it
1571 * emultempl/pe.em (PE_DEF_SECTION_ALIGNMENT): If
1572 OVERRIDE_SECTION_ALIGNMENT is defined, change to that.
1573 (gld_${EMULATION_NAME}_before_parse): Use EXECUTABLE_NAME if it is
1574 defined, rather than a.exe.
1575 (init): Define __subsystem__ as ${SUBSYSTEM}.
1576 (set_pe_subsystem): Add ${INITIAL_SYMBOL_CHAR} before entry symbol
1579 1999-09-12 Ian Lance Taylor <ian@zembu.com>
1581 * ldlang.c (open_output): Change local variable desired_endian
1582 from int to enum bfd_endian.
1584 * emulparams/arm_epoc_pe.sh: Define ENTRY, SUBSYSTEM and
1585 INITIAL_SYMBOL_CHAR.
1586 * emulparams/armpe.sh: Likewise.
1587 * emulparams/morepe.sh: Likewise.
1588 * emulparams/ppcpe.sh: Likewise.
1589 * emulparams/i386pe.sh (ENTRY): Define as _mainCRTStartup.
1590 (SUBSYSTEM): Define as PE_DEF_SUBSYSTEM.
1592 Fri Sep 10 00:22:50 1999 Jeffrey A Law (law@cygnus.com)
1594 * emulparms/elf64hppa.sh (LIB_PATH): Define.
1596 * emulparms/elf64hppa.sh (OTHER_READONLY_SECTIONS): Put stubs before
1597 unwinders so that they are closer to the text section.
1598 (OTHER_BSS_SECTIONS): Define.
1599 (EXECUTABLE_SYMBOLS): Provide __SYSTEM_ID and _FPU_STATUS.
1600 (INIT_START, INIT_END): Define.
1601 (FINI_START, FINI_END): Define.
1602 * scripttempl/elf.sc: Add support for INIT_START, INIT_END,
1603 FINI_START, FINI_END and OTHER_BSS_SECTIONS.
1605 Thu Sep 9 21:43:58 1999 Jeffrey A Law (law@cygnus.com)
1607 * emulparms/elf64hppa.sh (TEXT_START_ADDR): Move up one page.
1608 (DATA_ADDR): Define.
1610 1999-09-09 Stan Shebs <shebs@andros.cygnus.com>
1612 * emulparams/d10velf.sh (READONLY_START_ADDR): Set to 0x2000004.
1614 1999-09-09 Andreas Schwab <schwab@suse.de>
1616 * ld.texinfo: Fix arguments of @var to not contain punctuation.
1618 Thu Sep 9 05:52:34 1999 Jeffrey A Law (law@cygnus.com)
1620 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Define.
1622 1999-09-08 Ulrich Drepper <drepper@cygnus.com>
1624 * emulparams/elf64hppa.sh (ELFSIZE): New. Set to 64.
1626 Wed Sep 8 00:07:39 1999 Jeffrey A Law (law@cygnus.com)
1628 * emulparms/elf64hppa.sh (ENTRY): Define to main.
1630 1999-09-03 Scott Bambrough <scottb@netwinder.org>
1632 * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1633 target "arm*-*-linux-gnu*"
1635 1999-09-04 Steve Chamberlain <sac@pobox.com>
1637 * configure.tgt (pjl-*-*, pj-*-*): New targets.
1638 * emulparams/pjelf.sh: New file.
1639 * emulparams/pjlelf.sh: New file.
1640 * scripttempl/pj.sc: New file.
1641 * Makefile.am (ALL_EMULATIONS): Add epjelf.o and epjlelf.o.
1642 (epjelf.o, epjlelf.o): New targets.
1643 * Makefile.in: Rebuild.
1645 Fri Sep 3 20:17:08 1999 Jeffrey A Law (law@cygnus.com)
1647 * emulparams/elf64hppa.sh (MAXPAGESIZE): Define.
1648 (OTHER_READONLY_SECTIONS, DATA_PLT): Likewise.
1650 Thu Sep 2 14:32:03 1999 Jeffrey A Law (law@cygnus.com)
1652 * emulparams/elf64hppa.sh: New file.
1653 * configure.tgt (hppa*w-*-*): Use elf64hppa emulation.
1654 * Makefile.am (ALL_64_EMULATIONS): Add eelf64hppa.o
1655 (eelf64hppa.c): Add dependencies.
1656 * Makefile.in: Rebuilt.
1658 1999-08-25 Philip Blundell <pb@nexus.co.uk>
1660 * emulparams/armelf.sh (OTHER_BSS_SYMBOLS): Add __end__.
1661 * emulparams/armelf_linux.sh: Likewise.
1662 * emulparams/armelf_linux26.sh: Likewise.
1664 1999-08-24 Nick Clifton <nickc@cygnus.com>
1666 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
1668 * configure.tgt (arm-*-netbsd*): New target.
1669 * Makefile.am (ALL_EMULATIONS): Add earmnbsd.o.
1670 (earmnbsd.c): New rule with deps.
1671 * Makefile.on: Regenerate.
1672 * emulparams/armnbsd.sh: New file.
1674 1999-08-23 Nick Clifton <nickc@cygnus.com>
1676 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Define.
1677 Implement --base-file command line switch.
1679 * emultempl/elf32.em: Add ability for individual targets to have
1680 their own command line switches by defining PARSE_AND_LIST_ARGS.
1682 1999-08-19 Andreas Schwab <schwab@suse.de>
1684 * configure.host: Use ${CC} instead of gcc for finding compiler
1687 1999-08-11 Nick Clifton <nickc@cygnus.com>
1689 * scripttempl/mcorepe.sc (OUTPUT_FORMAT): Fix typo.
1691 1999-08-09 Mark Elbrecht <snowball3@bigfoot.com>
1693 * scripttempl/i386go32.sc: Handle g++ exception sections.
1695 1999-08-09 Ian Lance Taylor <ian@zembu.com>
1697 From Wally Iimura <iimura@microunity.com>:
1698 * ldlang.c (lang_size_sections): When checking whether an address
1699 is within a region, don't get confused by wrapping around at the
1700 end of the address space.
1702 1999-08-08 Ian Lance Taylor <ian@zembu.com>
1704 * ldlang.c (wild_doit): Update for renaming of SEC_SHORT to
1707 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
1708 MKDEP. Rebuild dependencies.
1709 * Makefile.in: Rebuild.
1711 1999-08-08 Jakub Jelinek <jj@ultra.linux.cz>
1713 * configure.host (sparc-*-linux-gnu*): New host.
1714 (sparc64-*-linux-gnu*): New host.
1716 1999-08-06 Ian Lance Taylor <ian@zembu.com>
1718 * lexsup.c (is_num): Reindent.
1719 (parse_args): Mention program name in error message.
1721 * emultempl/ostring.sed: Rename from stringify.sed.
1722 * emultempl/astring.sed: New file.
1723 * Makefile.am (stringify.sed): New target.
1724 (GEN_DEPENDS): Change $(srcdir)/emultempl/stringify.sed to
1726 * configure.in: Define and substitute STRINGIFY.
1727 * emultempl/*.em: Use stringify.sed from build directory rather
1728 than source directory.
1729 * emultempl/elf32.em: Use stringify.sed rather than inline sed
1731 * emultempl/gld960.em, emultempl/gld960c.em: Likewise.
1732 * emultempl/hppaelf.em, emultempl/linux.em: Likewise.
1733 * emultempl/lnk960.em, emultempl/sunos.em: Likewise.
1734 * configure, Makefile.in: Rebuild.
1736 1999-08-05 Donn Terry <donn@interix.com>
1738 * emulparams/i386pe.sh: Define ENTRY, SUBSYSTEM, and
1739 INITIAL_SYMBOL_CHAR.
1740 * emulparams/i386pe_posix.sh: New file.
1741 * Makefile.am (YACC): If bison is not in the source tree, use
1742 @YACC@ rather than bison -y.
1743 (LEX): If flex is not in the source tree, use @LEX@ rather than
1745 (ALL_EMULATIONS): Add ei386pe_posix.o.
1746 (ei386pe_posix.c): New target.
1747 * configure.tgt (i[3456]86-*-interix*): New target.
1748 * configure.host (i[3456]86-pc-interix*): New host.
1749 * Makefile.in: Rebuild.
1751 1999-08-03 Ian Lance Taylor <ian@zembu.com>
1753 * emulparams/elf32ppc.sh (MAXPAGESIZE): Change to 0x10000.
1754 * emulparams/elf32ppclinux.sh (MAXPAGESIZE): Likewise.
1756 1999-08-03 H.J. Lu <hjl@gnu.org>
1758 * Makefile.am (ALL_EMULATIONS): Remove ego32.o.
1760 * Makefile.in: Rebuild.
1762 1999-07-22 Philip Blundell <pb@nexus.co.uk>
1764 * emulparams/armelf_linux26.sh (DATA_START_SYMBOLS): Define.
1765 (OTHER_BSS_SYMBOLS, OTHER_BSS_END_SYMBOLS): Likewise.
1766 * emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Define.
1768 * configure.tgt (arm*-*-uclinux*, thumb-*-uclinux*,
1769 thumb-*-linux-gnu*): New targets.
1771 1999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
1773 * scripttempl/i386go32.sc: Add handling of linkonce sections.
1775 * configure.bat: Remove; obsolete.
1776 * emulparams/go32.sh: Remove; obsolete.
1777 * scripttempl/go32coff.sc: Remove; obsolete.
1779 1999-07-21 H.J. Lu <hjl@gnu.org>
1781 * configure.tgt (mips*el-*-vxworks*): New target.
1783 1999-07-21 Brad M. Garcia <bgarcia@fore.com>
1785 * configure.tgt (i[3456]86-*-vxworks*): New target.
1787 Tue Jul 20 15:18:46 1999 Bob Manson <manson@charmed.cygnus.com>
1789 * ldlang.c (lang_gc_sections): Only handle the start symbol
1790 specially if there is one.
1792 Mon Jul 19 14:19:14 1999 Mark P. Mitchell <mark@codesourcery.com>
1794 * emulparams/elf32bmipn32.sh (OTHER_RELOCATING_SECTIONS): Add
1795 .MIPS.events and .MIPS.content handling.
1796 * emulparams/elf64bmip.sh (OTHER_RELOCATING_SECTIONS): Likewise.
1798 1999-07-17 Nick Clifton <nickc@cygnus.com>
1800 * ldlang.c (get_target): New function: Return true iff the
1801 given target is the target being sought.
1802 (stricpy): New function: Like strcpy but convert to lower
1804 (strcut): New function: Like strstr but remove the located
1806 (name_compare): New function: Compute a compatability rating
1807 for two target names.
1808 (winner): New variable: Best target found by
1809 closest_target_match() so far.
1810 (closest_target_match): New function: Find the target which is
1811 the closest match to the original target.
1812 (get_first_input_target): New function: Find the target format
1813 of the first of the linker's input file.
1814 (open_output): Be more clever about deciding the output target
1817 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
1819 * emulparams/elf64_sparc.sh: Add 64-bit directories to native LIB_PATH.
1821 Thu Jul 15 15:55:15 1999 Mark P. Mitchell <mark@codesourcery.com>
1823 * configure.host: Set up HOSTING_CRT0 and HOSTING_LIBS for IRIX6.
1825 1999-07-15 Ian Lance Taylor <ian@zembu.com>
1827 * configure.in: Bump version number to 2.9.5.
1828 * configure: Rebuild.
1830 1999-07-14 Richard Henderson <rth@cygnus.com>
1832 * ldlang.c (wild_doit): Copy SEC_SHORT to output section.
1834 * scripttempl/elf.sc: Re-order .rel[a].foo outputs to the
1835 same order seen for the main sections. Add
1836 OTHER_READONLY_RELOC_SECTIONS and OTHER_GOT_RELOC_SECTIONS.
1838 1999-07-12 Andreas Schwab <schwab@suse.de>
1840 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Fill in
1841 structure initializations.
1843 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Add missing
1844 comma in initializer.
1846 1999-07-11 Ian Lance Taylor <ian@zembu.com>
1848 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
1849 as appropriate. Fill in structure initializations.
1851 1999-07-10 Ian Lance Taylor <ian@zembu.com>
1853 * ldfile.c: Revert patch of 1999-07-08.
1854 (ldfile_try_open_bfd): If we are searching for the file, skip
1855 files with an incompatible architecture.
1857 1999-07-09 Nick Clifton <nickc@cygnus.com>
1859 * scripttempl/armcoff.sc (OUTPUT_FORMAT): Include big endian and
1860 little endian formats.
1862 1999-07-08 Felix Lee <flee@cygnus.com>
1864 * scripttempl/mcorepe.sc: fix quoting problem, for bash 2.x
1866 1999-07-08 Jakub Jelinek <jj@ultra.linux.cz>
1868 * ldfile.c (ldfile_open_file_search): Skip libraries made for
1869 incompatible architectures in the search path. Let the user know
1870 about any such skips.
1872 Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
1874 * configure.tgt (hppa*-linux-gnu*): New target.
1876 1999-07-07 Mark Mitchell <mark@codesourcery.com>
1878 * Makefile.am (ALL_64_EMULATIONS): Add eelf64bmip.
1879 (eelf64bmip): New target.
1880 * Makefile.in: Regenerated.
1881 * configure.tgt (mips-sgi-irix6*): Add 64-bit emulation.
1882 * emulparams/elf64bmip.sh: New file.
1884 1999-07-05 Nick Clifton <nickc@cygnus.com>
1886 * emultempl/pe.em (after_open): Abort if input format is ARM and
1887 output format is not.
1888 * emultempl/armcoff.em (after_open): Abort if input format is ARM
1889 and output format is not.
1890 * emultempl/armelf.em (after_open): Abort if input format is ARM
1891 and output format is not.
1893 1999-07-02 Ian Lance Taylor <ian@zembu.com>
1895 * ldlang.c: Revert change of 1999-06-23.
1897 1999-06-30 Mark Mitchell <mark@codesourcery.com>
1899 * Makefile.am (ALL_EMULATIONS): Add eelf32bmipn32.o.
1900 (eelf32bmipn32.c): New target.
1901 * Makefile.in: Regenerated.
1902 * configure.tgt (mips-sgi-irix6*): Make n32 the default
1904 * emulparams/elf32bmipn32.sh: New file.
1906 1999-06-28 Jim Pick <jim@jimpick.com>
1908 * emultempl/armelf.em: Added code so that .xs linker scripts are
1909 called so that ARM shared libraries are built correctly.
1911 1999-06-22 Mark Mitchell <mark@codesourcery.com>
1913 * ldmain.c (main): Initialize link_info.init_function and
1914 link_info.fini_function.
1915 * lexsup.c (OPTION_INIT): New macro.
1916 (OPTION_FINI): Likewise.
1917 (ld_options): Add descriptions for them.
1918 (parse_args): Handle them.
1920 1999-06-23 Ian Lance Taylor <ian@zembu.com>
1922 * ldlang.c (section_already_linked): Only discard link once
1923 sections if we are building constructors.
1925 1999-06-22 Nick Clifton <nickc@cygnus.com>
1927 * ld.texinfo (Location Counter): Describe behaviour of
1928 location counter inside section statements.
1930 1999-06-20 Mark Mitchell <mark@codesourcery.com>
1932 * scripttempl/elf.sc (WRITABLE_RODATA): New variable for
1933 controlling whether or not .rodata is in the data segment or the
1936 1999-06-18 Nick Clifton <nickc@cygnus.com>
1938 * emultempl/pe.em: Add new command line switch --thumb-entry.
1939 * emultempl/armelf.em: Add new command line switch --thumb-entry.
1940 * emultempl/armcoff.em: Add new command line switch --thumb-entry.
1941 * ld.texinfo: Document new ARM command line switch: --thumb-entry.
1943 1999-06-20 H.J. Lu <hjl@gnu.org>
1945 * configure.in (all_libpath): Accumulate across all enabled targets.
1947 Sun Jun 20 14:10:33 1999 Richard Henderson <rth@cygnus.com>
1949 * emultempl/armelf.em: Watch EMULATION_LIBPATH instead of
1951 * emultempl/elf32.em: Likewise.
1952 * emultempl/sunos.em: Likewise.
1954 Fri Jun 18 15:24:48 1999 Richard Henderson <rth@cygnus.com>
1956 * Makefile.am (GENSCRIPTS): Pass EMULATION_LIBPATH, not EMUL.
1957 * configure.in (all_emuls): Add targ_extra_libpath.
1958 (all_libpath, EMULATION_LIBPATH): Define.
1959 * configure.tgt (powerpc-*-linux-gnu*): Define targ_extra_libpath.
1960 * genscripts.sh (LIB_PATH): Define if emulation in EMULATION_LIBPATH.
1962 Mon Jun 14 10:38:36 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1964 * ld.texinfo: Fix use of @item vs. @itemx.
1966 1999-06-13 Ian Lance Taylor <ian@zembu.com>
1968 From Thomas Zenker <thz@lennartz-electronic.de>:
1969 * ldgram.y (attributes_opt): Use attributes_list instead of NAME.
1970 (attributes_list, attributes_string): New nonterminals.
1971 * ldlang.c (lang_set_flags): Add invert parameter. Don't handle
1973 * ldlang.c (lang_set_flags): Update declaration.
1975 1999-06-12 Ian Lance Taylor <ian@zembu.com>
1977 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Don't add
1978 entry_symbol as an undefined symbol when doing a relocateable
1979 link. From <jeffdb@goodnet.com>.
1981 1999-06-12 David O'Brien <obrien@freebsd.org>
1983 * configure.tgt: (i[3456]86-*-freebsd*): Now defaults to ELF.
1985 1999-06-09 Nick Clifton <nickc@cygnus.com>
1987 * lexsup.c (help): Restore previous format of output.
1989 1999-06-04 Nick Clifton <nickc@cygnus.com>
1991 * emultempl/pe.em: If compiling for arm_epoc_pe rename
1992 interworking functions to avoid a name space clash.
1994 1999-06-02 Jason Merrill <jason@yorick.cygnus.com>
1996 * scripttempl/v850.sc: Add initp support.
1998 1999-06-02 Nick Clifton <nickc@cygnus.com>
2000 * emultempl/pe.em: Rename global arm interworking functions to
2001 avoid name collision when all targets BFD is built.
2003 1999-05-30 Cort Dougan <cort@attis.cs.nmt.edu>
2005 * Makefile.am (ALL_EMULATIONS): Add eelf32ppclinux.o.
2006 * configure.tgt (powerpc-*-linux-gnu): Use it.
2007 * emulparams/elf32ppclinux.sh: New file.
2009 1999-05-29 Ian Lance Taylor <ian@zembu.com>
2011 * ld.texinfo (Options): Clarify that options which refer to files
2012 must be properly ordered.
2014 1999-05-29 Nick Clifton <nickc@cygnus.com>
2016 * emultempl/armelf.em (..._parse_args): New function: Parse
2017 command line option. Accept arm-elf specific command line option
2018 '-p' or '--no-pipeline-knowledge'.
2019 (..._list_options): New function: Describe the new command line
2021 (..._before_allocation): Pass the value of the new variable
2022 no_pipeline_knowledge to bfd_elf32_arm_process_before_allocation.
2024 * emultemp/armelf_oabi.em (..._before_allocation): Pass zero as
2025 the third parameter to bfd_elf32_arm_process_before_allocation.
2027 1999-05-28 Nick Clifton <nickc@cygnus.com>
2029 * lexsup.c (help): Minor formatting changes.
2031 1999-05-28 Martin Dorey <mdorey@madge.com>
2033 * configure.tgt (i960-*-elf*): New target.
2034 * emulparams/elf32_i960.sh: New file.
2035 * Makefile.am (ALL_EMULATIONS): Add eelf32_i960.o.
2036 (eelf32_i960.c): New target.
2037 * Makefile.in: Rebuild.
2039 1999-05-26 Nick Clifton <nickc@cygnus.com>
2041 * emulparams/armelf_oabi.sh (TEMPLATE_NAME): Set to armelf_oabi.
2043 1999-05-24 Philip Blundell <philb@gnu.org>
2045 * emultempl/armelf.em (before_parse): Set config.dynamic_link and
2047 * emulparams/armelf.sh (GENERATE_SHLIB_SCRIPT): Define.
2048 * emulparams/armelf_linux.sh (GENERATE_SHLIB_SCRIPT): Likewise.
2050 1999-04-13 Philip Blundell <philb@gnu.org>
2052 * emultempl/armelf.em: Add definitions related to shared objects
2053 (copied from elf32.em).
2055 Wed May 19 12:44:26 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2057 * Makefile.am (ALL_EMULATIONS): Remove earmlinux.o and
2058 earm26linux.o, add earmelf_linux.o and earmelf_linux26.o.
2059 * Makefile.in: Regenerated.
2061 1999-05-16 Nick Clifton <nickc@cygnus.com>
2063 * emulparams/elf32mcore.sh (GENERATE_SHLIB_SCRIPT): Define.
2064 (TEMPLATE_NAME): Define.
2066 Thu May 13 09:48:09 1999 Joel Sherrill (joel@OARcorp.com)
2068 * configure.tgt (i386-*-rtemself*, sh-*-rtemself*): New targets.
2069 (mips*el-*-rtems*, powerpcle-*-rtems*): New targets.
2071 1999-05-10 DJ Delorie <dj@cygnus.com>
2073 * scripttempl/pe.sc: Specify the output arch, which Ian says is
2074 the Right Thing to do.
2076 * emultempl/pe.em: various changes to parameterize the
2077 target-specific information.
2078 (gld_i386pe_after_open): Detect and fix MS import libraries
2079 by renaming the member objects (which are all named the same).
2081 * pe-dll.c: various changes to parameterize the target-specific
2083 (generate_reloc): support relocs more generically to allow for
2085 (pe_exe_build_sections): new; used to add .relocs to .exes
2086 (pe_exe_fill_sections): ditto
2088 1999-05-10 Catherine Moore <clm@cygnus.com>
2090 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
2091 Check for TARGET_IS_arm_epoc_pe.
2092 (gld_${EMULATION_NAME}_before_allocation): Likewise.
2094 1999-05-12 Anthony Green <green@cygnus.com>
2096 * ldlang.c (walk_wild, walk_wild_file, walk_wild_section,
2097 output_section_callback, gc_section_callback): New functions for
2098 generic section walks.
2099 (wild, lang_gc_wild): Use walk_wild.
2100 (wild_file, lang_gc_wild_file): Deleted. Common logic moved to
2102 (wild_section, lang_gc_wild_section): Deleted. Common logic moved
2103 to walk_fild_section. Unique logic moved into callbacks
2104 output_section_callback and gc_section_callback.
2106 1999-04-26 Tom Tromey <tromey@cygnus.com>
2108 * aclocal.m4, configure: Updated for new version of libtool.
2110 1999-04-12 Philip Blundell <pb@nexus.co.uk>
2112 * emulparams/armelf_linux.sh: New file. Support for ARM
2114 * emulparams/armelf_linux26.sh: New file. APCS-26 version of above.
2115 * configure.tgt: For arm*-*-linux-gnu*, set default emulation to
2116 `armelf_linux', and also include `armelf_linux26' and `armelf'.
2117 * Makefile.am: Add rules to make earmlinux.c and earmlinux26.c.
2118 (ALL_EMULATIONS): Add earmlinux.o and earmlinux26.o.
2119 * Makefile.in: Regenerate.
2121 1999-04-11 Richard Henderson <rth@cygnus.com>
2123 * Makefile.am (ALL_EMULATIONS): Add elf_i386_be.o.
2124 * configure.tgt (i[3456]86-*-beos*): Use it.
2125 * emulparams/elf_i386_be.sh: New file.
2126 * Makefile.in: Rebuild.
2128 * configure.in (environ): Detect declaration.
2129 * ldmain.c (main): Don't declare environ.
2130 * sysdep.h (environ): Declare if needed.
2131 * configure, config.in: Rebuild.
2133 1999-04-11 Richard Henderson <rth@cygnus.com>
2135 * ldgram.y (ldgram_vers_current_lang): New.
2136 (vers_defns): Accept `extern "lang" { }' syntax.
2137 * ldlex.l (vers_node_nesting): New.
2138 (V_IDENTIFIER): Accept . and $ in symbols.
2139 (VERS_NODE): Accept `extern "lang" { }' tokens. Nest VERS_NODE states.
2140 * ldlang.c (lang_new_vers_regex): New `lang' argument. Update callers.
2141 (lang_vers_match_lang_c): New function.
2142 (lang_vers_match_lang_cplusplus): New function.
2143 (lang_vers_match_lang_java): New function.
2144 (lang_do_version_exports_section): Fix iteration. Don't free
2145 section contents, as it is still in use by the patterns.
2147 1999-04-10 Richard Henderson <rth@cygnus.com>
2149 * ldmain.c (main): Init link_info.no_undefined.
2150 * lexsup.c: Add command-line option --no-undefined.
2152 1999-04-06 Ian Lance Taylor <ian@zembu.com>
2154 * ld.h (LC_MESSAGES): Never define.
2155 * ldmain.c (main): Don't pass LC_MESSAGES to setlocale if the
2156 system does not define it.
2158 1999-04-06 H.J. Lu <hjl@gnu.org>
2160 * ldmain.h (demangling): Declare.
2161 * ldmain.c (demangling): New global variable.
2162 (main): Initialize demangling.
2163 * ldmisc.c (vfinfo): Don't demangle symbol if ! demangling.
2164 * lexsup.c (ld_options, parse_args): Handle --demangle and
2166 * ld.texinfo, ld.1: Document --demangle/--no-demangle.
2168 * ldlex.l (V_IDENTIFIER): Allow '.' in symbol.
2170 1999-04-05 Chris Torek <torek@BSDI.COM>
2172 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Check that
2173 a shared library really exists, avoiding broken symlinks.
2175 * ldfile.c (ldfile_open_file): Generate a better error message if
2176 we can't find a -l file.
2178 1999-04-05 DJ Delorie <dj@cygnus.com>
2180 * configure.tgt (i386-*-pe): add targ_extra_ofiles for other PE
2181 targets (i386-pe and i386-winnt)
2183 1999-04-04 Ian Lance Taylor <ian@zembu.com>
2185 * deffilep.y: Include "sysdep.h" and "ldmisc.h".
2186 (def_file_add_directive): Change return type to void. Remove
2187 unused locals sh_reserve, sh_commit, and j.
2188 (def_ungetc): Always return a value.
2189 (def_lex): Correct parenthesization of || within &&.
2190 * deffile.h (def_file_add_directive): Update declaration.
2191 * pe-dll.c: Include <time.h>, <ctype.h>, and "ldemul.h".
2192 (generate_edata): Remove unused local i.
2193 (quoteput): Add cast to avoid warning.
2194 (pe_dll_generate_def_file): Fix type in format string.
2195 (quick_symbol): Remove unused local blhe.
2196 (pe_dll_generate_implib): Add cast to avoid warning.
2197 (pe_process_import_defs): Remove unused locals ar_head, ar_tail,
2199 (pe_as16): Comment out.
2201 1999-04-04 Don Bowman <don@pixsci.com>
2203 * configure.tgt: Add mips*-*-vxworks* target.
2205 1999-03-31 Nick Clifton <nickc@cygnus.com>
2207 * Makefile.in (ALL_EMULATIONS): Add earm_epoc_pe.o
2208 Add build rule and dependencies for earm_epoc_pe.c.
2210 * emulparams/arm_epoc_pe.sh: New file.
2212 * configure.tgt: Add 'targ_extra_ofiles' for ARM based PE
2215 1999-03-31 Philip Blundell <pb@nexus.co.uk>
2217 * configure.tgt: Match `arm*-*-linux-gnu*' not
2218 `armv*-*-linux-gnu'.
2220 1999-03-26 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2222 * scripttempl/elf.sc: Put the .eh_frame and .gcc_except_table
2223 sections in the data segment.
2225 Fri Mar 26 12:05:51 1999 Catherine Moore <clm@cygnus.com>
2227 * ld.h (wildcard_spec): Add exclude_name.
2228 * ldgram.y (EXCLUDE_FILE): New token.
2229 (wildcard_spec): Set exclude_name.
2230 (file_NAME_list): Recognize EXCLUDE_FILE.
2231 * ldlang.c (wild_section): Check for excluded files.
2232 (print_wild_statement): Print excluded files.
2233 (lang_add_wild): New argument exclude_filename.
2234 Set exclude_filename.
2235 * ldlang.h (lang_wild_statement_type): Add exclude_filename.
2236 * ldlex.l: New token EXCLUDE_FILE.
2237 * mri.c (mri_draw_tree): Add argument to lang_add_wild.
2238 * scripttempl/elf.sc (CTOR, DTOR): Exclude crtend.o from ctor wildcard.
2239 Reorder sorted and unsorted ctors.
2240 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
2241 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
2242 * scripttempl/elfppc.sc (CTOR, DTOR): Likewise.
2244 1999-03-26 Nick Clifton <nickc@cygnus.com>
2246 * ldlang.c (lang_gc_sections): If entry_symbol is not defined,
2249 1999-03-03 Nick Clifton <nickc@cygnus.com>
2251 * scripttempl/elf.sc: Add explicit placements for the .eh_frame
2252 and .gcc_except_table sections.
2254 Wed Mar 3 09:13:34 1999 Catherine Moore <clm@cygnus.clm>
2256 * scripttempl/elf.sc: Remove .end.ctors and .end.dtors
2257 sections. Reorder .ctors section entries.
2258 * scripttempl/elfd10v.sc: Likewise.
2259 * scripttempl/elfd30v.sc: Likewise.
2260 * scripttempl/elfppc.sc: Likewise.
2262 1999-02-26 Jim Lemke <jlemke@cygnus.com>
2264 * ldmain.c (main): Wrong error msg for -r and --mpc860c0.
2266 1999-02-25 Nick Clifton <nickc@cygnus.com>
2268 * ldlang.c (lang_check_section_addresses): Remove extraneous
2271 Thu Feb 25 15:07:24 1999 Catherine Moore <clm@cygnus.com>
2273 * scripttempl/elf.sc: Don't gather .ctor and .dtor sections
2274 for relocateable links.
2275 * scripttempl/elfd10v.sc: Likewise.
2276 * scripttempl/elfd30v.sc: Likewise.
2277 * scripttempl/elfppc.sc: Likewise.
2279 1999-02-22 Jim Lemke <jlemke@cygnus.com>
2281 * ldint.texinfo: remove extraneous right brace.
2282 * ldmain.c (main): initialize and check option "mpc860c0".
2283 * lexsup.c (ld_options, parse_args): add option "mpc860c0".
2285 Wed Feb 17 12:10:06 1999 Stan Cox <scox@cygnus.com>
2287 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Remove special
2288 .reginfo section handling.
2289 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Likewise.
2290 * emulparams/elf32elmip.sh (INITIAL_READONLY_SECTIONS): Removed
2291 * emulparams/elf32ebmip.sh (INITIAL_READONLY_SECTIONS): Removed
2293 1999-02-17 Nick Clifton <nickc@cygnus.com>
2295 Patch from: Scott Bambrough <scottb@corelcomputer.com>
2297 * configure.tgt: Added armv*-*-linux-gnu to $targ_emul
2300 Wed Feb 17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2302 * emultempl/armelf_oabi.em
2303 (bfd_elf32_arm_allocate_interworking_sections,
2304 bfd_elf32_arm_get_bfd_for_interworking,
2305 bfd_elf32_arm_process_before_allocation): Define them to use the
2306 old ABI versions of the functions.
2308 Tue Feb 16 16:48:19 1999 Ian Lance Taylor <ian@cygnus.com>
2310 * configure.in: Change AC_PREREQ to 2.13. Change AM_PROG_INSTALL
2311 to AC_PROG_INSTALL. Change AM_EXEEXT to AC_EXEEXT.
2312 * Makefile.am (earmelf_oabi.c): Changes spaces to tab.
2313 * acconfig.h: Remove.
2314 * aclocal.m4: Rebuild.
2315 * configure: Rebuild.
2316 * Makefile.in: Rebuild.
2318 Mon Feb 15 18:21:48 1999 Vladimir N. Makarov <vmakarov@cygnus.com>
2320 * ldexp.h (struct etree_value_type): Change valid onto valid_p.
2322 * ldexp.c (new_abs): Ditto.
2323 (new_rel, new_rel_from_section, fold_binary, invalid, fold_name,
2324 exp_fold_tree, exp_binop, exp_trinop, stat_alloc,
2325 exp_get_abs_int): Ditto
2327 * ldlang.c (print_assignment, lang_size_sections,
2328 lang_do_assignments): Ditto.
2330 1999-02-11 Nick Clifton <nickc@cygnus.com>
2332 * ldlang.c (lang_check_section_addresses): New function: Check
2333 addresses assigned to section for overlaps.
2334 (lang_process): Call lang_check_section_addresses if suitable.
2336 * ld.h: Add new boolean field to args_type structure:
2337 'check_section_addresses'.
2339 * ldmain.c: Initialise check_section_addresses field to true.
2341 * lexsup.c: Add new command line options '--no-check-sections' and
2344 * ld.texinfo: Document new command line options '--check-sections'
2345 and '--no-check-sections'.
2347 1999-02-08 Nick Clifton <nickc@cygnus.com>
2349 * configure.tgt: Add support for StrongARM target.
2351 Wed Feb 3 19:41:01 1999 Ian Lance Taylor <ian@cygnus.com>
2353 * ldctor.c (ldctor_build_sets): Just set SEC_KEEP once. Check for
2354 an owner of a section before using it to look up a reloc type.
2355 Don't set SEC_KEEP for the absolute section.
2357 Mon Feb 1 11:39:46 1999 Catherine Moore <clm@cygnus.com>
2359 * Makefile.am (earmelf_oabi.o): New.
2360 * Makefile.in: Regenerate.
2361 * configure.tgt (arm-*-oabi): New.
2362 (thumb-*-oabi): New.
2363 * emulparams/armelf_oabi.sh: New.
2364 * emultempl/armelf_oabi.em: New.
2366 1999-01-31 17:57:31 1998 Michael Meissner <meissner@cygnus.com>
2368 * scripttempl/elfppc.sc: Add support for -fleading-underscores
2369 switch in all linker generated symbols.
2371 * configure.tgt (powerpc{,le}*-*-vxworks): Add as aliases for
2372 powerpc{,le}-*-eabi.
2374 Wed Jan 20 17:01:48 1999 Ian Lance Taylor <ian@cygnus.com>
2376 * configure.tgt (i[3456]86-*-solaris2*): New target. From Pavel
2377 Roskin <pavel_roskin@geocities.com>.
2379 1999-01-19 Nick Clifton <nickc@cygnus.com>
2381 * ldlang.c (lang_size_sections): Count loadable sections as
2382 contributing to the size of the current segment.
2384 1999-01-15 Nick Clifton <nickc@cygnus.com>
2386 * ldlang.c (lang_size_sections): Only update the current
2387 address of a region if the section just placed into it is an
2390 1999-01-12 Nick Clifton <nickc@cygnus.com>
2392 * Makefile.am: Replace efr30.o with eelf32fr30.o.
2393 * Makefile.in: Regenerate.
2395 * configure.tgt: Replace fr30 with elf32fr30.
2397 * emulparams/elf32fr30.sh: New file: Replaces fr30.sh, and uses
2398 generic elf.sc script. Also replaces the .stack section with a
2399 user definable symbol __stack.
2401 1999-01-11 Nick Clifton <nickc@cygnus.com>
2403 * scripttempl/fr30.sc: Fill .init and .fini sections with NOP
2406 1999-01-03 Ken Raeburn <raeburn@cygnus.com>
2408 * Makefile.am (check-DEJAGNU): No longer provide HOSTING_EMU,
2409 HOSTING_CRT0, HOSTING_LIBS; the test suite can extract them from
2410 configure.host and configure.tgt now.
2411 * Makefile.in: Rebuild.
2413 1998-12-27 Ulrich Drepper <drepper@cygnus.com>
2415 * lexsup.c (parse_args, case OPTION_RPATH): Avoid adding duplicate
2418 Thu Dec 10 11:12:28 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2420 * Makefile.am (ALL_EMULATIONS): Remove pe-dll.o and deffilep.o.
2421 (ALL_EMUL_EXTRA_OFILES): New variable. Put them here instead.
2422 * configure.in: Set EMUL_EXTRA_OFILES to $(ALL_EMUL_EXTRA_OFILES)
2423 if configuring with all targets.
2424 * configure, Makefile.in, aclocal.m4: Rebuild.
2426 * emultempl/pe.em (pe_enable_stdcall_fixup): Make static.
2427 (pe_dll_do_default_excludes): Removed, unused.
2428 (pe_def_file, pe_dll_export_everything, pe_dll_kill_ats,
2429 pe_dll_stdcall_aliases): Don't initialize them, this file may be
2430 compiled more than once.
2431 * pe-dll.c (pe_def_file, pe_dll_export_everything,
2432 pe_dll_do_default_excludes, pe_dll_kill_ats,
2433 pe_dll_stdcall_aliases): Define and initialize them here instead.
2434 (generate_reloc): Fix allocation of reloc_addresses array to use
2435 bfd_vma instead of unsigned long. Fix element size in qsort call.
2436 (reloc_sort): Compare pointers to bfd_vma instead of unsigned
2439 Mon Dec 7 21:10:09 1998 J.J. van der Heijden <j.j.vanderheijden@student.utwente.nl>
2441 * configure.tgt (i[3456]86-*-mingw32*): Add cygwin target specific
2444 Sun Dec 6 16:33:33 1998 Ian Lance Taylor <ian@cygnus.com>
2446 * configure.tgt (m68*-*-gnu*): New target. From Aymeric Vincent
2447 <aymeric.vincent@emi.u-bordeaux.fr>.
2449 1998-12-04 Nick Clifton <nickc@cygnus.com>
2451 * emulparams/fr30.sh (TEXT_START_ADDR): Change TEXT_START_ADDR
2452 from 0x100000 to 0x10000 so that it fits in 20 bits.
2454 Sat Nov 28 22:32:20 1998 Ian Lance Taylor <ian@cygnus.com>
2456 * ldemul.h (ldemul_recognized_file): Declare.
2458 Sat Nov 28 22:30:55 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2460 * ldlang.c (lang_add_wild): Don't pretend that there is an input
2461 file if the filename is a wildcard pattern.
2463 1998-11-25 DJ Delorie <dj@cygnus.com>
2465 * ldemul.h (ld_emulation_xfer_struct): new hook "recognized_file"
2466 * ldemul.c (ldemul_recognized_file): new function, new hook
2467 * ldint.texinfo: document new hook.
2468 * ldlang.c (load_symbols): call recognized_hook for all objects we
2469 do recognize, in case the emulation needs to handle them
2470 specially. PE DLLs use this.
2471 * pe-dll.c (pe_dll_generate_def_file): take out hack and debug
2473 * emultempl/pe.em (gld_i386_recognized_file): new function
2474 (gld_i486_unrecognized_file): take out hack
2476 1998-11-23 DJ Delorie <dj@cygnus.com>
2478 * pe-dll.c (fill_edata): fill in timestamp
2479 (make_head): name object files sequentially to ensure
2480 they link in the right order.
2481 (make_tail): same here
2482 (pe_process_import_defs): use sequential names for bfds to ensure
2484 (pe_implied_import_dll): new function; handles linking directly
2485 against DLLs by simulating IMPORTS directives. * emultempl/pe.em
2486 (gld_i386pe_before_parse): hack bfd to not recognize .dll files
2487 via bfd_pe_dll_not_recognized_hack
2489 1998-11-23 DJ Delorie <dj@cygnus.com>
2491 * emultempl/pe.em (gld_i386pe_parse_args): Conditionalize call to
2494 Mon Nov 23 14:36:18 1998 Nick Clifton <nickc@cygnus.com>
2496 * emultempl/pe.em (after_parse): Only create an undefined entry
2497 symbol if one has been specified.
2499 1998-11-23 DJ Delorie <dj@cygnus.com>
2501 * emultempl/pe.em (gld_i386pe_after_open): call
2502 pe_process_import_defs
2503 * pe-dll.c (pe_dll_generate_def_file): calculate BASE from
2504 pe_data, only print if actually set. Print version only if
2506 (save_relocs): save relocs for both input and output.
2507 (make_one): support internal/external different names.
2508 (pe_dll_generate_implib): support new make_one
2509 (pe_process_import_defs): new function; handles IMPORT
2510 directives in .def files.
2512 Fri Nov 20 13:06:49 1998 Nick Clifton <nickc@cygnus.com>
2514 * ldmisc.c (vfinfo): Cope with empty symbol names.
2516 Thu Nov 19 13:31:15 1998 Nick Clifton <nickc@cygnus.com>
2518 * scripttempl/pe.sc: Add provision of '_end' symbol.
2520 Wed Nov 18 18:18:43 1998 Geoffrey Noer <noer@cygnus.com>
2522 * configure.tgt: change refs from cygwin32* to cygwin*.
2523 * aclocal.m4: regenerate
2524 * configure.in: don't need to call AM_CYGWIN32.
2525 * configure: regenerate
2527 Mon Nov 16 22:14:07 1998 DJ Delorie <dj@cygnus.com>
2529 * emultempl/pe.em (gld_i386_finish): generate import library
2530 * deffile.h: add hint member.
2531 * pe-dll.c (pe_dll_generate_implib): New function with helpers;
2532 generates the import library directly from the export table.
2533 (fill_edata): remember the actual hint for the import library.
2535 Sat Nov 14 14:36:24 1998 Ian Lance Taylor <ian@cygnus.com>
2537 * ld.1: Some cleanups from NOKUBI Hirotaka <hnokubi@yyy.or.jp>.
2539 Thu Nov 12 19:21:57 1998 Dave Brolley <brolley@cygnus.com>
2541 * po/ld.pot: Regenerated.
2542 * po/POTFILES.in: Regenerated.
2543 * configure: Regenerated.
2544 * aclocal.m4: Regenerated.
2545 * Makefile.in: Regenerated.
2547 Wed Nov 11 18:10:15 1998 DJ Delorie <dj@cygnus.com>
2549 * pe-dll.c (generate_reloc): don't output PE relocs for sections
2550 that won't be loaded.
2552 Wed Nov 11 13:44:54 1998 DJ Delorie <dj@cygnus.com>
2554 * pe-dll.c (fill_edata): don't strip underscores
2556 Tue Nov 10 21:28:19 1998 DJ Delorie <dj@cygnus.com>
2558 * ld.texinfo: added i386pe option summary
2560 Tue Nov 10 17:53:17 1998 DJ Delorie <dj@cygnus.com>
2562 * pe-dll.c (process_def_file): properly note undefined exported
2563 symbols, clean up old code.
2564 (pe_dll_generate_def_file): don't crash if pe_def_file is NULL
2565 * emultempl/pe.em (gld_i386_parse_args): add
2566 (en/dis)able-stdcall-fixups
2567 (pe_fixup_stdcalls): warn about stdcall fixups
2568 (gld_i386_unrecognized_file): make exported symbols undefs so that
2569 archive members get pulled in
2571 Tue Nov 10 14:50:51 1998 Catherine Moore <clm@cygnus.com>
2573 * scripttempl/elfd10v.sc: Add KEEP attribute to .init,
2574 .fini, .dtors and .ctors. Add .data and .text
2575 wildcards to support section garbage collection.
2577 Mon Nov 9 22:52:50 1998 DJ Delorie <dj@indy.delorie.com>
2579 * deffilep.y: properly handle relocs with multiple def_files,
2580 cache import module names
2582 Mon Nov 9 22:44:58 1998 DJ Delorie <dj@cygnus.com>
2584 * pe-dll.c (process_def_file): don't assume exports won't move
2587 Mon Nov 9 16:41:30 1998 DJ Delorie <dj@cygnus.com>
2589 * pe-dll.c: New file; direct support for PE DLLs
2590 * deffile.h: New file; direct support for PE DLLs
2591 * deffilep.y: New file; direct support for PE DLLs
2592 * emultempl/pe.em: add direct support for PE DLLs
2593 * configure.tgt: allow target-specific extra files
2594 * configure.in: allow target-specific extra files
2595 * ldlang.c (lang_add_assignment): return the assignment so that
2596 one can change the value later based on the object files (pe-dll
2598 * ldint.texinfo: add section for emulation walkthrough
2599 * Makefile.am: add new files and target-specific extra files
2600 * emultempl/pe.em (gld_i386_list_options): list dll-specific
2602 * pe-dll.c (process_def_file): auto-export everything if
2603 nothing is otherwise exported.
2605 Wed Nov 4 16:39:18 1998 Nick Clifton <nickc@cygnus.com>
2607 * Makefile.am: Add support for FR30 target.
2608 * configure.tgt: Add support for FR30 target.
2609 * Makefile.in: Regenerate.
2610 * emulparams/fr30.sh: New file.
2611 * scripttemp/fr30.sc: New file.
2613 Mon Nov 2 14:47:15 1998 Catherine Moore <clm@cygnus.com>
2615 * ldmain.c (main): Don't report error for dynamic links and
2618 1998-10-26 16:05 Ulrich Drepper <drepper@cygnus.com>
2620 * lexsup.c (ld_options): Change text of -O to Optimize output file".
2621 (parse_args): Set link_info.optimize based on -O argument.
2622 * ldmain.c (main): Initialize link_info.optimze to false.
2623 * ld.texinfo: Describe -O option.
2626 Mon Oct 12 14:29:56 1998 Nick Clifton <nickc@cygnus.com>
2628 * scripttempl/v850.sc: Move .sbss and .scommon sections into their
2629 own segment, so that they can be next to the .bss section and so
2630 initialised by the same piece of code.
2632 Fri Oct 9 15:59:52 1998 Catherine Moore <clm@cygnus.com>
2634 * scripttempl/elf.sc: Merge .sdata.* etc sections.
2635 * ldctor.c (ldctor_build_sets): Set SEC_KEEP for
2638 Mon Oct 5 09:40:43 1998 Catherine Moore <clm@cygnus.com>
2640 * ldmain.c (main): Error if --gc-sections and
2642 * scripttempl/v850.sc: Add KEEP attribute to .init,
2643 .fini, .dtors and .ctors. Add .data and .text
2644 wildcards to support section garbage collection.
2646 Wed Sep 30 11:19:15 1998 Nick Clifton <nickc@cygnus.com>
2648 * scripttempl/v850.sc: Rename .call_table section to
2649 .call_table_data and create a new section called
2652 Sun Sep 20 00:43:26 1998 Ian Lance Taylor <ian@cygnus.com>
2654 * scripttempl/elf.sc: Add alignment at the end of the .bss
2655 section, so that it is included in the memsize of the segment.
2657 Fri Sep 18 13:42:42 1998 Catherine Moore <clm@cygnus.com>
2659 * emultempl/elf32.em (gld_place_orphan): Don't process for
2660 sections with SEC_EXCLUDE flag.
2662 Fri Sep 4 09:24:02 1998 Nick Clifton <nickc@cygnus.com>
2664 * emulparams/d30velf.sh (TEXT_SIZE): Increased to 2000K.
2665 (DATA_SIZE): Increased to 2000K.
2667 Thu Sep 3 17:30:58 1998 Richard Henderson <rth@cygnus.com>
2669 * emulparams/d10velf.sh (TEMPLATE_NAME): Use elf32.
2671 Mon Aug 31 01:06:00 1998 Catherine Moore <clm@cygnus.com>
2673 * Makefile.am: Change armelf.sc to elf.sc
2674 * Makefile.in: Regenerate.
2676 Mon Aug 31 11:12:04 1998 Catherine Moore <clm@cygnus.com>
2678 * emulparams/armelf.sh: Change SCRIPT_NAME to
2679 elf. Change TEXT_START_ADDR to 0x8000. Define
2680 OTHER_TEXT_SECTIONS, OTHER_BSS_SYMBOLS and
2681 OTHER_BSS_END_SYMBOLS.
2682 * scripttempl/elf.sc: Modify to use
2683 OTHER_BSS_END_SYMBOLS.
2684 * scripttempl/elfarm.sc: Remove file.
2686 Tue Aug 18 12:05:34 1998 Catherine Moore <clm@cygnus.com>
2688 * emultempl/armelf.em (gld_armelf_before_allocation):
2689 Add bfd_ prefix to elf32_arm_process_before_allocation
2690 and elf32_arm_allocate_interworking_sections.
2691 (gld_armelf_after_open): Add bfd_ prefix to
2692 elf32_arm_get_bfd_for_interworking.
2694 Fri Aug 14 15:34:29 1998 Ian Lance Taylor <ian@cygnus.com>
2696 * Makefile.am: Rebuild dependencies.
2697 * Makefile.in: Rebuild.
2699 * ldgram.y: Include "ldctor.h".
2700 (statement): Accept SORT around CONSTRUCTORS.
2701 * ldctor.c: Include <ctype.h>.
2702 (constructors_sorted): New global variable.
2703 (ctor_prio, ctor_cmp): New static functions.
2704 (ldctor_build_sets): Sort constructors if requested.
2705 * ldctor.h (constructors_sorted): Declare.
2706 * ldlang.c (print_statement): Print sorted CONSTRUCTORS
2708 * scripttempl/elf.sc: Add sort around CONSTRUCTORS.
2709 * ld.texinfo (Output Section Keywords): Document SORT
2712 Thu Aug 13 12:20:39 1998 Catherine Moore <clm@cygnus.com>
2714 * emulparams/armelf.sh: Define TEMPLATE_NAME to armelf.
2715 * scripttempl/elfarm.sc: Include .glue_7t and .glue7
2717 * emultempl/armelf.em: New file.
2719 Thu Aug 13 12:52:45 1998 H.J. Lu <hjl@gnu.org>
2721 * Makefile.am (ld.dvi): Use " instead of ' for MAKEINFO.
2722 * Makefile.in: Rebuild.
2724 Tue Aug 11 16:17:01 1998 Catherine Moore <clm@cygnus.com>
2726 * scripttempl/elfarm.sc: Change text start address
2729 Tue Aug 11 10:01:12 1998 Jeffrey A Law (law@cygnus.com)
2731 * emulparms/mn10200.sh (MAX_PAGESIZE): Define to 1.
2732 * emulparms/mn10300.sh (MAX_PAGESIZE): Define to 1.
2734 Sun Aug 9 20:31:27 1998 Catherine Moore <clm@cygnus.com>
2736 * scripttempl/elfarm.sc: Set text start address to
2737 0x8000. Add __bss_end definition.
2739 Sat Aug 1 11:47:37 1998 Catherine Moore <clm@cygnus.com>
2741 * scripttempl/elfarm.sc: New file.
2742 * emulparams/armelf.sh: Set SCRIPT_NAME to elfarm.
2744 Fri Jul 31 15:56:16 1998 Catherine Moore <clm@cygnus.com>
2746 * emulparams/armelf.sh: New file.
2747 * configure.tgt: Recognize thumb-elf and arm-elf.
2748 * Makefile.am (earmelf.o): New.
2749 * Makefile.in: Rebuild.
2751 Fri Jul 24 12:00:57 1998 Ian Lance Taylor <ian@cygnus.com>
2753 * Makefile.am (install-exec-local): Don't remove the file before
2754 checking whether $(bindir) == $(tooldir)/bin. From Maciej
2755 W. Rozycki <macro@ds2.pg.gda.pl>.
2756 * Makefile.in: Rebuild.
2758 * configure.tgt: Recognize h8[35]00*-coff* as well as -hms*.
2760 Thu Jul 23 11:15:12 1998 Ian Lance Taylor <ian@cygnus.com>
2762 * scripttempl/aout.sc: If ALIGNMENT is defined, use it to set
2763 alignment of end symbol.
2764 * scripttempl/elf.sc: Likewise.
2765 * emulparams/sun4.sh (ALIGNMENT): Define.
2766 * emulparams/elf32_sparc.sh (ALIGNMENT): Define.
2767 * ldint.texinfo (emulation parameters): Document ALIGNMENT.
2769 * lexsup.c (parse_args): Add missing break statement.
2771 * ldlang.c (lang_gc_sections_1): Add default case to switch to
2774 Tue Jul 14 15:42:17 1998 Richard Henderson <rth@cygnus.com>
2776 * configure.tgt (i?86-*-beos{pe,elf,}*): Recognize.
2777 * Makefile.am (ei386beos.o): New.
2778 * emulparams/i386beos.sh: New file.
2779 * emultempl/beos.em, scripttempl/i386beos.sc: New file.
2781 Tue Jul 14 15:35:42 1998 Richard Henderson <rth@cygnus.com>
2783 * lexsup.c: New option --version-exports-section.
2784 * ld.h (struct args_type): Add version_exports_section.
2785 * ldlang.c (lang_do_version_exports_section): New function.
2786 (lang_process): Call it.
2788 Mon Jul 13 13:20:23 1998 Steve Chamberlain <sac@transmeta.com>
2790 * ldlex.l: Accept ASSERT.
2791 * ldgram.y (exp): Add ASSERT_K case.
2792 * ldexp.h (node_type): Add etree_assert to node_class enum.
2793 (etree_type): Add assert_s field.
2794 (exp_assert): Declare.
2795 * ldexp.c (exp_fold_tree): Handle etree_assert.
2796 (exp_assert): New function.
2797 (exp_print_tree): Handle etree_assert.
2798 * ld.texinfo (Miscellaneous Commands): Document ASSERT.
2800 Wed Jul 8 14:03:12 1998 Ian Lance Taylor <ian@cygnus.com>
2802 * ldgram.y: Change MAX to MAX_K and MIN to MIN_K, to avoid
2803 conflicts with system header files. Change all uses.
2805 * Makefile.am (MAINTAINERCLEANFILES): Define.
2806 * Makefile.in: Rebuild.
2808 Tue Jul 7 18:03:22 1998 Ian Lance Taylor <ian@cygnus.com>
2810 * Makefile.am (ldver.texi): New target.
2811 (ld.info, ld.dvi): Depend upon ldver.texi.
2812 * ld.texinfo: Include ldver.texi. Mention version number on title
2813 page and in top node.
2814 * Makefile.in: Rebuild.
2816 Mon Jul 6 14:55:13 1998 Ian Lance Taylor <ian@cygnus.com>
2818 * configure.tgt (i[3456]86-*-solaris*): New target.
2820 Fri Jul 3 14:19:06 1998 Ian Lance Taylor <ian@cygnus.com>
2822 * ldlang.c (wild_section): Don't get an assertion failure if the
2823 section is discarded.
2825 * scripttempl/pe.sc: Use SORT to sort sections appropriately.
2826 * emultempl/pe.em (sort_by_file_name): Remove.
2827 (sort_by_section_name): Remove.
2828 (sort_sections_1, sort_sections): Remove.
2829 (gld_${EMULATION_NAME}_before_allocation): Don't call
2831 (hold_section, hold_section_name): New static variables.
2832 (hold_use, hold_text, hold_rdata, hold_data, hold_bss): Likewise.
2833 (gld_${EMULATION_NAME}_place_orphan): Rewrite. Look for a good
2834 place to put the section. Align the section. Sort the input
2836 (gld_${EMULATION_NAME}_place_section): New static function.
2838 * ldlang.c (wild_sort): When sorting by file name, sort by archive
2841 * emultempl/pe.em (set_pe_subsystem): Don't call
2843 (gld_${EMULATION_NAME}_after_parse): New static function.
2844 (ld_${EMULATION_NAME}_emulation): Use new after_parse function
2845 rather than after_parse_default.
2847 * ldgram.y (extern_name_list): Do not require symbols to be
2848 separated by commas.
2849 (ifile_p1): Add EXTERN.
2850 * ldlex.l: Accept EXTERN in BOTH and SCRIPT mode as well as MRI
2852 * ld.texinfo (Options): Mention that EXTERN is equivalent to -u.
2853 (Miscellaneous Commands): Document EXTERN.
2855 Wed Jul 1 19:40:34 1998 Richard Henderson <rth@cygnus.com>
2857 * ld.h (args_type): Add gc_sections.
2858 * ldgram.y (ldgram_had_keep, KEEP): New.
2859 (input_section_spec_no_keep): Rename from old input_section_spec.
2860 (input_section_spec): New. Recognize KEEP.
2861 * ldlang.c (wild_section): Handle keep sections.
2862 (lang_gc_wild_section, lang_gc_wild_file, lang_gc_wild): New.
2863 (lang_gc_sections_1, lang_gc_sections): New.
2864 (lang_process): Invoke lang_gc_sections.
2865 (lang_add_wild): Add keep argument. Update all callers.
2866 * ldlang.h (lang_wild_statement_struct): Add keep_sections.
2867 * ldlex.l (KEEP): Match it.
2868 * ldmain.c (main): Error on -r and --gc-sections.
2869 * lexsup.c: Add --gc-sections.
2871 * scripttempl/elf.sc: Merge .text.* etc sections appropriately.
2872 Mark startup sections with KEEP.
2873 * scripttempl/elfppc.sc: Likewise.
2875 * ld.texinfo: Update for --gc-sections and KEEP.
2877 Wed Jul 1 15:21:20 1998 Ian Lance Taylor <ian@cygnus.com>
2879 From Peter Jordan <pjordan@chla.usc.edu>:
2880 * scripttempl/i386go32.sc: Correct constructor handling for -u.
2882 Tue Jun 23 15:17:27 1998 Ian Lance Taylor <ian@cygnus.com>
2884 * Makefile.am (install-data-local): Make ldscripts subdirectory.
2885 * Makefile.in: Rebuild.
2887 Tue Jun 23 15:17:04 1998 Mike Stump <mrs@wrs.com>
2889 * Makefile.am (install-exec-local): Don't let EXEEXT interfere
2890 with the program transform name.
2891 * Makefile.in: Rebuild.
2893 Sun Jun 21 23:55:16 1998 Jeffrey A Law (law@cygnus.com)
2895 * ld.texinfo: Note that -relax may make symbolic debugging
2896 impossible on some platforms.
2898 Tue Jun 16 12:51:13 1998 Geoff Keating <geoffk@ozemail.com.au>
2900 * Makefile.am (Makefile): Remove target.
2901 (config.status): New target.
2902 * Makefile.in: Rebuild.
2904 * configure.host (powerpc*-*-linux-gnu*): New host.
2906 Fri Jun 12 17:38:07 1998 Doug Evans <devans@seba.cygnus.com>
2908 * scripttempl/elf.sc (INPUT_FILES): Optional INPUT spec.
2910 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Change top of
2913 Fri Jun 12 19:33:17 1998 Ian Lance Taylor <ian@cygnus.com>
2915 * Makefile.am (HFILES): Remove config.h.
2916 (EMULATION_OFILES, POTFILES): Move patch of May 14 from
2917 Makefile.in to Makefile.am.
2918 (earmcoff.c): Depend upon armcoff.em, not generic.em.
2919 * po/Make-in (all-yes): Correct misspelling in $(PACKAGE).
2920 ($(srcdir)/$(PACKAGE).pot): Pass -C to $(XGETTEXT).
2921 * Makefile.in, po/POTFILES.in, po/ld.pot: Rebuild.
2923 Fri Jun 12 13:43:17 1998 Tom Tromey <tromey@cygnus.com>
2925 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
2926 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
2928 Tue Jun 9 09:36:48 1998 Nick Clifton <nickc@cygnus.com>
2930 * ldlang.c (lang_finish): Add CONST type modifier to declaration
2933 Fri Jun 5 18:19:59 1998 Ian Lance Taylor <ian@cygnus.com>
2935 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
2936 config.has_shared to true.
2937 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
2939 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse):
2942 Tue Jun 2 12:55:03 1998 Ian Lance Taylor <ian@cygnus.com>
2944 * ldlang.c (lang_finish): If the entry symbol is not found, try
2945 parsing it as a number.
2946 * ld.texinfo (Options): Document this.
2948 Mon Jun 1 14:01:20 1998 Ian Lance Taylor <ian@cygnus.com>
2950 * ld.texinfo (Input Section Wildcards): Document SORT keyword.
2952 Mon May 18 12:42:53 1998 Doug Evans <devans@canuck.cygnus.com>
2954 * ld.h (ld_config_type): New member has_shared.
2955 * ldmain.c (main): Initialize it.
2956 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set it.
2957 * lexsup.c (parse_args): Treat -shared as error if not supported.
2959 Mon May 18 13:14:43 1998 Ian Lance Taylor <ian@cygnus.com>
2961 From Jason Merrill <jason@cygnus.com>:
2962 * ldlang.c (wild_sort): Correct order of sort.
2963 * scripttempl/elf.sc: Put *crtbegin.o before other .ctors and
2965 * scripttempl/elfd10v.sc: Likewise.
2966 * scripttempl/elfd30v.sc: Likewise.
2967 * scripttempl/elfppc.sc: Likewise.
2969 Fri May 15 00:22:35 1998 Ian Lance Taylor <ian@cygnus.com>
2971 * ldlex.l: Recognize keyword SORT.
2972 * ldgram.y (current_file): Change to struct wildcard_spec.
2973 (%union): Add new fields cname and wildcard.
2974 (wildcard_name, wildcard_spec): New nonterminals.
2975 (file_NAME_list): Use wildcard_spec.
2976 (input_section_spec): Change current_file usage.
2977 * ld.h (struct wildcard_spec): Define.
2978 * ldlang.h (lang_wild_statement_struct): Add new fields
2979 sections_sorted and filenames_sorted.
2980 (lang_add_wild): Update declaration.
2981 * ldlang.c (wild_sort): New static function.
2982 (wild_section): Use wild_sort.
2983 (print_wild_statement): Print sorting information.
2984 (lang_add_wild): Add new parameters sections_sorted and
2985 filenames_sorted. Change all callers.
2986 * mri.c (mri_draw_tree): Update calls to lang_add_wild.
2987 * scripttempl/elf.sc: Sort .ctors.* and .dtors.* by section name.
2988 * scripttempl/elfd10v.sc: Likewise.
2989 * scripttempl/elfd30v.sc: Likewise.
2990 * scripttempl/elfppc.sc: Likewise.
2992 Thu May 14 18:39:16 1998 Richard Henderson <rth@cygnus.com>
2994 * emulparams/m32relf.sh (TEMPLATE_NAME): Define.
2996 Thu May 14 14:51:24 1998 Nick Clifton <nickc@cygnus.com>
2998 * ldemul.h: Add new prototype: ldemul_list_emulation_options.
2999 (ld_emulation_xfer_struct): Add new field: list_options.
3000 * ldemul.c (ldemul_list_options): New function. Call the
3001 list_options field of the ld_emulation_xfer_struct for each
3002 supported emulation, if such a function is present.
3003 * lexsup.c (help): Call ldemul_list_emulation_options.
3004 * emultempl/pe.em (gld_<>_list_options): New function. Describe
3005 the pe emulation specific command line options.
3006 * emultempl/armcoff.em (gld<>_list_options): New function.
3007 Describe the armcoff emulation specific command line options.
3009 * emultempl/pe.em: Add a new command line option:
3011 * emultempl/armcoff.em: Ditto.
3012 * ld.texinfo: Document the --support-old-code option.
3014 * Makefile.in: Add emulation files for POTFILES.in target.
3015 * emultempl/pe.em: Internationalise suitable strings.
3016 * emultempl/armcoff.em: Internationalise suitable strings.
3017 * po/POTFILES.in: Rebuilt.
3019 Sun May 10 22:36:30 1998 Jeffrey A Law (law@cygnus.com)
3021 * po/Make-in (install-info): New target.
3023 Tue Apr 28 19:18:30 1998 Tom Tromey <tromey@cygnus.com>
3025 * ldmain.c (main): Conditionally call setlocale.
3026 * ld.h: Include <locale.h> if HAVE_LOCALE_H.
3027 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
3029 Mon Apr 27 11:56:21 1998 Ian Lance Taylor <ian@cygnus.com>
3031 * configure.in: Change version number to 2.9.4
3032 * configure: Rebuild.
3034 * ld.texinfo (Options) [-rpath-link]: Mention ld.so.conf.
3036 Based on patch from H.J. Lu <hjl@gnu.org>:
3037 * emultempl/elf32.em (global_vercheck_needed): New file static
3039 (global_vercheck_failed): New file static variable.
3040 (gld${EMULATION_NAME}_after_open): Check for shared libraries
3041 twice, once with force set to 0 and once with it set to 1.
3042 (gld${EMULATION_NAME}_check_ld_so_conf): Add force parameter.
3044 (gld${EMULATION_NAME}_search_needed): Likewise.
3045 (gld${EMULATION_NAME}_try_needed): Likewise. If not force, check
3046 whether the libraries needs any incompatible versions.
3047 (gld${EMULATION_NAME}_vercheck): New static function.
3049 Wed Apr 22 16:01:35 1998 Tom Tromey <tromey@cygnus.com>
3051 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
3053 Wed Apr 22 12:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
3055 * Makefile.am (check-DEJAGNU): Add $(INTLLIBS) to LIBIBERTY when
3057 * Makefile.in: Rebuild.
3059 * lexsup.c (parse_args): Change -l options into --library options
3060 to avoid confusion between -li and -library.
3062 * ld.texinfo (MEMORY): Clarify use of >REGION.
3064 Tue Apr 21 23:12:40 1998 Tom Tromey <tromey@scribbles.cygnus.com>
3066 * Many files: Added gettext invocations around user-visible
3068 * ld.h: Added gettext-related includes and defines.
3069 * ldmain.c: Call setlocale, bindtextdomain, textdomain.
3070 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
3071 HAVE_LC_MESSAGES): Define.
3072 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
3073 po/Makefile. Use AM_PROG_LEX.
3074 (TDIRS): AC_SUBST early on, to avoid having value split when it
3075 happens to cross line 90 of the generated sed script.
3076 * Makefile.am (SUBDIRS): New macro.
3077 (POTFILES): Likewise.
3078 (po/POTFILES.in): New target.
3079 (ld_new_LDADD): Added INTLLIBS.
3080 (ld_new_DEPENDENCIES): Added INTLDEPS.
3081 * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
3083 Tue Apr 21 23:07:07 1998 Ian Lance Taylor <ian@cygnus.com>
3085 * ld.texinfo (Simple Example): Rewrite a few things as suggested
3086 by Nick Clifton <nickc@cygnus.com>.
3087 (PROVIDE): Likewise.
3089 Tue Apr 21 09:55:06 1998 Nick Clifton <nickc@cygnus.com>
3091 * emultempl/pe.em: Rename external arm interworking functions
3092 to conform to BFD naming conventions. Add code to _after_open()
3093 function to obtain a bfd for use by the interworking code.
3095 * emultempl/armcoff.em: Rename external arm interworking functions
3096 to conform to BFD naming conventions. Add new _after_open()
3097 function to obtain a bfd for use by the interworking code.
3099 Sun Apr 19 19:23:09 1998 Richard Henderson <rth@cygnus.com>
3101 * ldlang.c (lang_size_sections) [case lang_assignment_statement_enum]:
3102 Update dot and the default memory section even when relaxing.
3104 Sat Apr 18 18:41:12 1998 Richard Henderson <rth@cygnus.com>
3106 * ldlang.c (lang_one_common): Manipulate the section's cooked size
3107 rather than its raw size.
3109 Tue Apr 7 13:35:29 1998 H.J. Lu <hjl@gnu.org>
3111 * configure.in (TESTBFDLIB): New. Defined and substituted.
3112 * Makefile.am (TESTBFDLIB): Changed to @TESTBFDLIB@.
3113 * configure, Makefile.in: Rebuild.
3115 Mon Apr 6 15:33:39 1998 Ian Lance Taylor <ian@cygnus.com>
3117 * Makefile.am (ld.info): Invoke makeinfo with -I options directly
3118 rather than relying on default rule. Don't depend upon
3121 (bfdsumm.texi): Remove target.
3122 (CLEANFILES): Take bfdsumm.texi out of value.
3123 * Makefile.in: Rebuild.
3125 Sun Apr 5 13:07:57 1998 Ian Lance Taylor <ian@cygnus.com>
3127 * scripttempl/pe.sc: Use shell variables to avoid depending upon
3128 how $ is handled when expanding a shell substitution.
3130 Fri Apr 3 00:56:50 1998 Ian Lance Taylor <ian@cygnus.com>
3132 * Makefile.am (MOSTLYCLEANFILES): Add ld.log and ld.sum.
3133 (DISTCLEANFILES): Add site.exp and site.bak.
3134 * Makefile.in: Rebuild.
3136 * configure.in: Put the tdirs in a file and use AC_SUBST_FILE,
3137 rather than in a shell variable and using AC_SUBST.
3138 * Makefile.am (DISTCLEANFILES): Remove ldscripts. Add tdirs.
3139 (distclean-local): New target.
3140 * configure, Makefile.in: Rebuild.
3142 * ld.texinfo: Completely rewrite linker script documentation.
3144 Mon Mar 30 12:47:33 1998 Ian Lance Taylor <ian@cygnus.com>
3146 * configure.in: Set version to 2.9.1.
3147 * configure: Rebuild.
3149 * Branched binutils 2.9.
3151 Sat Mar 28 16:48:19 1998 Ian Lance Taylor <ian@cygnus.com>
3153 * Makefile.am (MOSTLYCLEANFILES): Remove tmpdir.
3154 (mostlyclean-local): New target to remove tmpdir.
3155 * Makefile.in: Rebuild.
3157 Fix some gcc -Wall warnings:
3158 * ldcref.c (output_cref): Add casts to avoid warnings.
3159 * ldfile.c (ldfile_add_arch): Likewise.
3160 * ldlang.c (lang_leave_overlay_section): Likewise.
3161 * lexsup.c (OPTION_COUNT): Likewise.
3162 (parse_args): Likewise.
3163 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan):
3165 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Likewise.
3166 * ldlang.c (lang_check): Initialize variables to avoid warnings.
3167 * ldwrite.c (build_link_order): Likewise.
3168 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Likewise.
3169 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_allocation):
3170 Remove unused variables.
3172 * Makefile.am (MOSTLYCLEANFILES): Correct name (was
3174 * Makefile.in: Rebuild.
3176 Fri Mar 27 16:39:25 1998 Ian Lance Taylor <ian@cygnus.com>
3178 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Put
3179 ARM code inside ifdef TARGET_IS_armpe.
3181 Wed Mar 25 11:34:13 1998 Ian Lance Taylor <ian@cygnus.com>
3183 Based on patch from H.J. Lu <hjl@gnu.org>:
3184 * Makefile.am (LDDISTSTUFF): New variable.
3185 (diststuff): New target.
3186 * Makefile.in: Rebuild.
3188 * scripttempl/pe.sc: Only include .idata\$[0-7] in .idata when
3191 Tue Mar 24 15:59:29 1998 Nick Clifton <nickc@cygnus.com>
3193 * scripttempl/pe.sc (.text): Add .glue_7 and .glue_7t sections to
3194 hold Arm/Thumb stubs.
3196 * emultempl/pe.em (gld_pe_before_allocation): Call
3197 arm_process_before_allocation (for ARM/Thumb targets) in order to
3198 gather interworking stb information.
3200 Mon Mar 23 18:54:15 1998 Joel Sherrill <joel@OARcorp.com>
3202 * configure.tgt: (sh*-*-rtems*): Switched from ELF to COFF.
3204 Fri Mar 20 19:17:13 1998 Ian Lance Taylor <ian@cygnus.com>
3206 * aclocal.m4, configure: Rebuild with libtool 1.2.
3208 Thu Mar 19 14:54:45 1998 Geoffrey Noer <noer@cygnus.com>
3210 * scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy
3211 section to avoid copying certain data on fork. The linker used to
3212 include this between __data_start__ and __data_end__, but that
3213 breaks building the cygwin32 dll. The fix is to rename the
3214 section ".data_cygwin_nocopy" and explictly include it after
3217 Wed Mar 18 09:42:24 1998 Nick Clifton <nickc@cygnus.com>
3219 * configure.tgt (targ_extra_emuls): Add thumb-pe target.
3221 Sun Mar 8 23:34:14 1998 Stan Cox <scox@equinox.cygnus.com>
3223 * configure.tgt (sparclite*-*-elf): Added.
3225 Mon Mar 2 19:24:08 1998 Michael Meissner <meissner@cygnus.com>
3227 * ldlang.c (lang_size_sections): If the default memory region is
3228 *default*, see if there is a memory region that could be used.
3230 Thu Feb 26 17:09:53 1998 Michael Meissner <meissner@cygnus.com>
3232 * scripttempl/elfd30v.sc: Add support for .eit_v section and put
3234 * emulparams/d30v{elf,_o,_e}.sh: Ditto.
3236 Mon Feb 23 17:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
3238 * emultempl/pe.em (sort_sections): Permit the wildcard to include
3239 a trailing '*' when sorting grouped sections.
3240 * scripttempl/pe.sc: Include grouped sections using NAME\$*. Only
3241 include them when relocating.
3243 Wed Feb 18 23:39:46 1998 Richard Henderson <rth@cygnus.com>
3245 * Makefile.am (install-exec-local): Install properly when ln
3246 fails or tooldir == prefix.
3248 Fri Feb 13 15:24:06 1998 Ian Lance Taylor <ian@cygnus.com>
3250 * Makefile.am (AUTOMAKE_OPTIONS): Define.
3251 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
3253 Thu Feb 12 14:10:44 1998 Ian Lance Taylor <ian@cygnus.com>
3255 * scripttempl/elf.sc: Align the _end symbol according to the ELF
3256 format size. From Gordon W. Ross <gwr@mc.com>.
3258 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
3259 * configure.host (alpha*-*-netbsd*): New host.
3260 * configure.tgt (alpha*-*-netbsd*, powerpc-*-netbsd*): New
3263 * lexsup.c (help): Update bug-gnu-utils address.
3264 * ld.texinfo (Bug Reporting): Likewise.
3266 Tue Feb 10 18:05:56 1998 Ian Lance Taylor <ian@cygnus.com>
3268 * ldlang.c (lang_size_sections): Warn if some memory regions were
3269 defined, but a loadable section is going into the default memory
3272 Tue Feb 10 16:17:20 1998 H.J. Lu <hjl@gnu.org>
3274 * ldlex.l (V_IDENTIFIER): Allow '.' as symbol prefix.
3276 Tue Feb 10 15:09:45 1998 Ian Lance Taylor <ian@cygnus.com>
3278 * Makefile.am (Makefile): Add target, for dependencies on
3279 configure.host and configure.tgt.
3280 * configure.host, configure.tgt: Change -linux* to -linux-gnu*.
3281 * Makefile.in: Rebuild.
3283 Mon Feb 9 13:44:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
3285 * scripttempl/elfd10v.sc (.stack): Move stack to 0x00..7FFE.
3287 * emulparams/d10velf.sh (READONLY_START_ADDR): Read only section
3288 moved to 0x00.....4.
3290 Sat Feb 7 15:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
3292 * configure, aclocal.m4: Rebuild with new libtool.
3294 Thu Feb 5 12:16:11 1998 Ian Lance Taylor <ian@cygnus.com>
3296 * scripttempl/pe.sc: Remove ${RELOCATING-0} from all sections.
3297 From Thomas de Lellis <tdel@wrs.com>.
3299 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
3301 Wed Feb 4 13:02:32 1998 Ian Lance Taylor <ian@cygnus.com>
3303 * Makefile.am (ld_new_LDADD): Remove @LEXLIB@.
3304 * Makefile.in: Rebuild.
3306 Mon Feb 2 19:34:54 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
3308 Add tms320c30 support:
3309 * configure.tgt (tic30-*-*aout*, tic30-*-*coff*): New targets.
3310 * emulparams/tic30aout.sh: New file.
3311 * emulparams/tic30coff.sh: New file.
3312 * scripttempl/tic30aout.sc: New file.
3313 * scripttempl/tic30coff.sc: New file.
3314 * Makefile.am (ALL_EMULATIONS): Add etic30aout.o and
3316 (etic30aout.c, etic30coff.c): New targets.
3317 * Makefile.in: Rebuild.
3319 Mon Feb 2 14:10:59 1998 Ian Lance Taylor <ian@cygnus.com>
3321 * configure.host: Correct HOSTING_CRT0 in alpha*-*-linux* case to
3322 accept either ld.so or ld-linux.so.
3324 Fri Jan 30 19:16:28 1998 Doug Evans <devans@canuck.cygnus.com>
3326 * Makefile.am ({CC,CXX}_FOR_TARGET): Change program_transform_name
3328 * Makefile.in: Regenerate.
3330 Fri Jan 30 19:15:17 1998 Geoff Keating <geoffk@ozemail.com.au>
3332 * scripttempl/elfppc.sc: Put .dynsbss in .sbss.
3334 Fri Jan 30 11:43:49 1998 H.J. Lu <hjl@gnu.ai.mit.edu>
3336 * Makefile.am (eelf32bsmip.c, eelf32lsmip.c): New targets.
3337 * Makefile.in: Rebuild.
3339 Thu Jan 29 16:04:21 1998 Mumit Khan <khan@xraylith.wisc.edu>
3341 * ldfile.c (slash): Set to backslash if _WIN32 but not
3343 (ldfile_open_file_search): If __MSDOS__ or _WIN32, accept a
3344 leading backslash or a leading x: as an absolute path.
3345 (ldfile_find_command_file): Use slash rather than / when
3346 generating name to try.
3347 * lexsup.c (PATH_SEPARATOR): Define.
3348 (set_default_dirlist): Use PATH_SEPARATOR rather than ':'.
3350 Wed Jan 28 14:06:30 1998 Richard Henderson <rth@cygnus.com>
3352 * emulparams/elf64_sparc.sh (ELFSIZE): 64
3353 (TEXT_START_ADDR): Round off, since SIZEOF_HEADERS is added later.
3354 (DATA_PLT): Needed by v9 abi.
3356 Wed Jan 28 16:37:27 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
3358 * configure.tgt (i[3456]86-*-mingw32*): New entry.
3360 Wed Jan 28 15:51:58 1998 Ian Lance Taylor <ian@cygnus.com>
3362 * scripttempl/elf.sc: Only include linkonce sections in final
3363 sections when relocating.
3365 Wed Jan 28 14:10:01 1998 Ian Lance Taylor <ian@cygnus.com>
3367 * ld.texinfo (Options): Add a brief description of the types of
3368 information included in a link map.
3370 * ld.texinfo (Options): Mention LDEMULATION in description of -m.
3371 (Environment): Mention LDEMULATION.
3373 * ld.texinfo (Options): Clarify --export-dynamic a bit.
3375 Thu Jan 22 16:07:23 1998 Richard Henderson <rth@cygnus.com>
3377 * ldlex.l (<SCRIPT>{WILDCHAR}*): Take care for the comments this
3378 pattern could match.
3380 Wed Jan 21 22:26:46 1998 Ian Lance Taylor <ian@cygnus.com>
3382 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): When doing
3383 a relocateable link, set the image base to 0, and don't define the
3385 * emulparams/i386pe.sh (RELOCATEABLE_OUTPUT_FORMAT): Define.
3386 * scripttempl/pe.sc: Swap the .data and .bss sections so that
3387 .data comes first. If doing a relocateable link, use
3388 RELOCATEABLE_OUTPUT_FORMAT if it is defined, and start the
3389 sections at 0, and don't define any symbols.
3391 * ldlang.c (lang_memory_default): Correct parenthisization of
3394 Wed Jan 21 21:20:32 1998 Manfred Hollstein <manfred@s-direktnet.de>
3396 * emultempl/sunos.em: Don't include sys/types.h and sys/stat.h
3397 here; they are included already via sysdep.h.
3399 Tue Jan 6 13:40:02 1998 Richard Henderson <rth@cygnus.com>
3401 * scripttempl/i960.sc: Don't explicitly set .data and .bss start.
3403 Fri Jan 2 20:15:37 1998 Michael Meissner <meissner@cygnus.com>
3405 * ldgram.y (attributes_opt): Pass region pointer to
3406 lang_set_flags, not ®ion->flags.
3408 * ldlang.c (lang_memory_default): New function to figure out a
3409 default memory region for a section if it was not specified.
3410 (lang_memory_region_lookup): Zero flags, not_flags field.
3411 (lang_map{,_flags}): Print attribute flags in memory map.
3412 (lang_size_sections): Call lang_memory_default to get default
3414 (lang_set_flags): Implement attribute flags for real. Take new
3415 argument to give the flags we are to skip for this region.
3417 * ldlang.h (memory_region_struct): Add not_flags field, make both
3418 flags fields flagword type.
3419 (lang_output_section_state): Make flags field flagword type.
3420 (lang_set_flags): Update prototype to match new calling sequence.
3421 (lang_memory_region_default): Add prototype.
3423 * emulparams/d30v{_e,_o,elf}.sh ({TEXT,DATA,EMEM}_DEF_SECTION):
3424 Define whether or not the region gets default sections, and if so,
3427 * scripttempl/elfd30v.sc (MEMORY): Set up which of the regions get
3430 Thu Jan 1 22:58:04 1998 Michael Meissner <meissner@cygnus.com>
3432 * scripttempl/elfd30v.sc (.eh_frame): Link into the data section.
3434 Thu Jan 1 18:04:51 1998 Jeffrey A Law (law@cygnus.com)
3436 * scripttempl/h8300h.sc: Fix typo.
3437 * scripttempl/h8300s.sc: Likewise.
3439 Sun Dec 21 12:51:49 1997 Ian Lance Taylor <ian@cygnus.com>
3441 * ldexp.c (fold_name): Don't crash if the symbol is defined in a
3442 section with no output section, such as a shared library section.
3444 Wed Dec 17 12:14:11 1997 Ian Lance Taylor <ian@cygnus.com>
3446 * lexsup.c (parse_args): Keep track of where we are in the option
3447 parsing before calling ldemul_parse_args, so that we don't call it
3448 multiple times on the same argument and confuse the getopt
3451 Thu Dec 11 09:00:15 1997 Michael Meissner <meissner@cygnus.com>
3453 * configure.tgt (d30v-elf-*): Rename d30velf_e to d30v_e and
3454 d30velf_o to d30v_o to work in DOS environments.
3455 * Makefile.{am,in}: Ditto.
3457 * emulparams/d30v_{o,e}: Rename from d30velf_{o,e}.
3458 * emulparams/d30velf_{o,e}: Deleted.
3460 Wed Dec 10 17:40:08 1997 Nick Clifton <nickc@cygnus.com>
3462 * scripttempl/armcoff.sc: Add glue sections (code taken from Arm
3465 * emulparams/armcoff.sh (TEMPLATE_NAME): Set to armcoff.
3467 * emultempl/armcoff.em: New file, imported from Arm branch.
3469 Wed Dec 10 14:10:44 1997 Michael Meissner <meissner@cygnus.com>
3471 * scripttempl/elfd30v.sc: Add .rel and .rela sections for all
3472 defined sections. Set up __{D,C}TOR_{LIST,END}__. Add onchip and
3473 external memory sections for rodata. Delete .string, .rodata1,
3474 and .data1 sections.
3476 Tue Dec 9 15:28:17 1997 Michael Meissner <meissner@cygnus.com>
3478 * Makefile.am: Add Oct 23 changes to Makefile.in here.
3480 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed10velf.o.
3482 * Makefile.{am,in}: (ALL_EMULATIONS): Add etic80coff.o.
3484 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed30velf{,_e,_o}.o.
3485 (ed30velf_e.c): Like d30velf, except .text/.data/etc always go in
3487 (ed30velf_o.c): Like d30velf, except .text/.data/etc always go in
3490 * emulparams/d30velf.sh (STACK_START_ADDR): Top of default
3492 ({TEXT,DATA,EMEM}_SIZE): Sizes of the 3 memory areas.
3493 ({TEXT,DATA,BSS}_MEMORY): Which memory region .text, .data, and
3496 * emulparams/d30velf_{e,o}.sh: New files to be explicit whether
3497 .text, .data, etc go in external memory or onchip memory.
3499 * configure.tgt (d30v-*-*ext*): New configuration to default
3500 .text, .data, etc. in external memory.
3501 (d30v-*-*onchip*): New configuration to default .text, .data,
3502 etc. in onchip memory.
3503 (d30v-*-*): Add d30velf_{e,o} emulations.
3505 * scripttempl/elfd30v.sc: Allow .text, .data, .bss to be put in
3506 either the onchip text/data areas or the external memory area.
3507 (MEMORY): Get sizes from d30velf.sh.
3508 (.e{data,text,bss}): Put sections in the external memory region.
3509 (.stext): Put section in the onchip text region.
3510 (.s{data,bss}): Put sections in the onchip data region.
3511 (__stack): Assign from ${STACK_START_ADDR}.
3512 (.text): Put in ${TEXT_MEMORY} memory region.
3513 (.data{,1}/.strings/.rodata{,1}): Put in ${DATA_MEMORY} memory
3515 (.bss): Put in ${BSS_MEMORY} memory region.
3517 Tue Dec 2 10:14:47 1997 Nick Clifton <nickc@cygnus.com>
3519 * configure.tgt (targ_extra_emuls): Add support for Thumb target.
3521 Sat Nov 22 15:23:19 1997 Ian Lance Taylor <ian@cygnus.com>
3523 * ldlex.l: Don't define hex_mode. Correct number regexp to not
3524 accept hex digits without a leading $ or 0x. Handle leading $
3525 correctly. Pass 0 rather than hex_mode to bfd_scan_vma.
3526 * ldlex.h (hex_mode): Don't declare.
3528 Sun Nov 16 20:16:45 1997 Michael Meissner <meissner@cygnus.com>
3530 * emulparams/d30velf.sh ({DATA,EMEM}_START_ADDR): Define as start
3531 of internal data area and external memory on chip.
3533 * scripttempl/elfd30v.sc: Define a MEMORY region that describes
3534 the 3 regions of memory on the chip. Put .text/.init/.fini into
3535 the text memory region, put other segments into the data memory
3536 region. Add more of the standard elf sections. Default __stack
3537 to be 0x20008000, which is 1 byte beyond end of the internal data
3540 Thu Nov 13 13:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
3542 * configure.tgt (targ_extra_emuls): Make FreeBSD a i386bsd
3545 Sun Nov 2 14:51:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3547 * configure.host (alpha*-*-linux*): Correct HOSTING_CRT0. Set
3550 Thu Oct 30 12:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
3552 * ld.h (args_type): Add warn_mismatch field.
3553 * ldmain.c (main): Initialize warn_mismatch field.
3554 * lexsup.c (parse_args): Handle --no-warn-mismatch option.
3555 * ldlang.c (ignore_bfd_error): New static function.
3556 (lang_check): If warn_mismatch is false, don't warn about
3557 mismatched input files.
3558 * ld.texinfo, ld.1: Document new option.
3560 Thu Oct 23 14:38:18 1997 Nick Clifton <nickc@cygnus.com>
3562 * scripttempl/v850.sc: Rename linker symbol '_stack' to '__stack'
3563 to avoid conflicts with C code which is defining a variable called
3566 Thu Oct 23 00:57:45 1997 Richard Henderson <rth@dot.cygnus.com>
3568 * Makefile.in (ALL_EMULATIONS): Move eelf64_sparc.o ...
3569 (ALL_64_EMULATIONS): ... here.
3570 (eelf64_sparc.c): Template should be elf32 not generic.
3571 * emulparams/elf64_sparc.sh (TEMPLATE_NAME): New definition.
3573 Thu Oct 23 00:44:20 1997 Richard Henderson <rth@dot.cygnus.com>
3575 * configure.tgt: Add sparc64-*-linux*.
3576 * emulparams/elf64_sparc.sh (GENERATE_SHLIB_SCRIPT, NOP): New.
3578 Wed Oct 22 11:29:25 1997 Ian Lance Taylor <ian@cygnus.com>
3580 * scripttempl/pe.sc: Put .eh_frame in .rdata.
3582 Fri Oct 17 00:00:13 1997 Richard Henderson <rth@cygnus.com>
3584 * ldlang.c (lang_register_vers_node): Only check globals<=>locals,
3585 since we need to be able to export different versions of the same
3588 Wed Oct 15 14:52:36 1997 Ian Lance Taylor <ian@cygnus.com>
3590 * scripttempl/pe.sc: Put .stab and .stabstr sections at end.
3592 Wed Oct 8 12:37:05 1997 Richard Henderson <rth@cygnus.com>
3594 * configure.tgt, configure.host: Change alpha-*-* to alpha*-*-*;
3595 config.guess now recognizes alphaev5 etc.
3597 Fri Oct 3 14:23:02 1997 Ian Lance Taylor <ian@cygnus.com>
3599 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Don't treat
3600 -s and -u as -static and -unix.
3602 Thu Oct 2 18:40:28 1997 Ian Lance Taylor <ian@cygnus.com>
3604 * ldlang.c (wild_doit): Rewrite flag handling for clarity. If we
3605 are not adding the first input section, and SEC_READONLY is clear
3606 on the output section, then don't copy it from the input section.
3607 If SEC_READONLY is not set on the input section, then clear it on
3610 * configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
3612 (mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
3614 (mips*-*-linux*): Likewise.
3615 * emulparams/elf32bsmip.sh: New file; just like elf32bmip.sh, but
3616 setting ENTRY to __start.
3617 * emulparams/elf32lsmip.sh: New file; just like elf32lmip.sh, but
3618 setting ENTRY to __start.
3619 * scripttempl/elf.sc: Always set ENTRY to _start if it was not
3622 Wed Oct 1 16:41:00 1997 Nick Clifton <nickc@cygnus.com>
3624 * emulparams/v850.sh (ROZDATA_START_ADDR, ROSDATA_START_ADDR): New
3627 * scripttempl/v850.sc: Move read only areas out of zero and small
3628 data sections and into their own sections.
3630 Wed Sep 24 16:59:15 1997 Joel Sherrill <joel@oarcorp.com>
3632 * configure.tgt (sh*-*-rtems*): New target, like sh-*-elf*.
3634 Wed Sep 24 11:33:14 1997 Ian Lance Taylor <ian@cygnus.com>
3636 * ld.texinfo (Section Options): Improve documentation of NOLOAD
3639 * aclocal.m4: Rebuild with new libtool.
3640 * configure: Rebuild.
3642 Mon Sep 22 17:24:06 1997 Ian Lance Taylor <ian@cygnus.com>
3644 * ldlang.c (wild_doit): Revert patch of September 3.
3646 Wed Sep 17 16:45:34 1997 Nick Clifton <nickc@cygnus.com>
3648 * Makefile.am, Makefile.in: Add rule for ev850.c
3649 * configure.tgt (targ_extra_emuls): Add v850 target.
3651 Wed Sep 17 16:43:39 1997 Nick Clifton <nickc@cygnus.com>
3653 * emulparams/v850.sh (CALL_TABLE_START_ADDR): New entry.
3654 * scripttempl/v850.sc: Add call table data area
3656 Mon Sep 15 11:29:13 1997 Ken Raeburn <raeburn@cygnus.com>
3658 Merge change from Martin Hunt:
3660 * scripttempl/elfd30v.sc: Put .rodata in the .text section.
3662 Tue Sep 9 07:49:56 1997 Fred Fish <fnf@ninemoons.com>
3664 * ldlang.c (lang_memory_region_lookup): Remove extraneous
3665 initialization of p.
3667 Thu Sep 4 09:03:33 1997 Ian Lance Taylor <ian@cygnus.com>
3669 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): In
3670 expression produced for -bpT and -bpD options, align to a 32 byte
3671 boundary rather than an 8 byte boundary.
3672 * scripttempl/aix.sc: Put .tocbss at start of .bss section.
3674 * ldmisc.h, ldmisc.c, ldcref.c: Rename finfo to lfinfo, to avoid
3675 function name conflict with AIX 4.2 unistd.h header file.
3677 Wed Sep 3 15:12:32 1997 Ian Lance Taylor <ian@cygnus.com>
3679 * ldlang.c (wild_doit): Clear SEC_HAS_CONTENTS from a
3682 Fri Aug 29 00:32:31 1997 Ian Lance Taylor <ian@cygnus.com>
3684 * Makefile.am (ld_new_DEPENDENCIES): Remove @LEXLIB@.
3685 * Makefile.in: Rebuild.
3687 Thu Aug 28 10:12:10 1997 Doug Evans <dje@canuck.cygnus.com>
3689 * configure.tgt (arc-*-elf*): Recognize.
3690 * Makefile.am (ALL_EMULATIONS): Add earcelf.o.
3691 * Makefile.in: Regenerate.
3692 * emulparams/arcelf.sh: New file.
3694 Wed Aug 20 11:14:13 1997 Ian Lance Taylor <ian@cygnus.com>
3696 * ldlang.c (wildcardp): Don't let a backslash by itself cause a
3697 pattern to be treated as a wildcard pattern.
3699 * ldgram.y (atype): Accept parentheses with no type.
3701 * ld.texinfo (Section Definition): Clarify use of whitespace.
3702 (Section Placement): Likewise.
3704 Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
3706 * configure.tgt (targ_extra_emuls): Add support for v850e target.
3708 Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
3710 * configure.tgt (targ_extra_emuls): Add support for v850e target.
3712 Sat Aug 9 00:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
3714 * Makefile.am (ld.info): Change dependency from
3715 $(BFDDIR)/doc/bfdsumm.texi to bfdsumm.texi.
3717 (bfdsumm.texi): New target.
3718 (CLEANFILES): Add bfdsumm.texi.
3719 * Makefile.in: Rebuild.
3721 * Makefile.am: New file, based on old Makefile.in.
3722 * acinclude.m4: New file, from old aclocal.m4.
3723 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
3724 shared library handling; now handled by libtool. Replace
3725 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
3726 AC_PROG_LEX, and AC_DECL_YYTEXT. Call AM_MAINTAINER_MODE,
3727 AM_CYGWIN32, and AM_EXEEXT. Don't call CY_CYGWIN32 or CY_EXEEXT.
3728 * configure.host: Don't set HLDFLAGS, HLDENV, or RPATH_ENVVAR.
3729 * acconfig.h: Mention PACKAGE and VERSION.
3730 * stamp-h.in: New file.
3731 * ldver.c (ld_program_version): Set ld_program_version from
3733 * ldgram.y, ldlex.l: Replace VERSION with VERSIONK.
3734 * Makefile.in: Now built with automake.
3735 * aclocal.m4: Now built with aclocal.
3736 * configure, config.in: Rebuild.
3738 Mon Jul 28 19:04:50 1997 Rob Savoye <rob@chinadoll.cygnus.com>
3740 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
3742 * configure: Regenerated with autoconf 2.12.
3743 * Makefile.in: Add $(EXEEXT) to executable.
3745 Tue Jul 22 18:50:38 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
3747 * emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".
3748 (SEGMENT_SIZE): Set to 0x200.
3749 * scripttempl/i386go32.sc: Rewrite.
3750 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
3752 Mon Jul 7 12:39:42 1997 Ian Lance Taylor <ian@cygnus.com>
3754 From Manfred Hollstein <manfred@s-direktnet.de>:
3755 * configure.host (i[3456]86-*-linux*libc1*): Renamed from
3757 (i[3456]86-*-linux*): New host.
3759 Thu Jun 26 13:54:03 1997 Ian Lance Taylor <ian@cygnus.com>
3761 * scripttempl/pe.sc: Put .rsrc after .reloc. Put input .rsrc
3762 sections in the output .rsrc section.
3764 Wed Jun 25 12:48:41 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3766 * configure.host (m68*-*-linux*libc1*): Renamed from
3768 (m68*-*-linux*): New configuration for use with GNU libc 2.
3770 Mon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>
3772 * scripttempl/elfppc.sc: Correct .rela.sdata entries.
3774 * scripttempl/elfppc.sc: Put the PLT between the small and large
3776 * emulparams/elf32ppc.sh (TEXT_START_ADDR): The ABI says `A
3777 program base of 0x02000000 is recommended...' because otherwise
3778 shared libraries are less efficient. We use 0x01800000 because
3779 otherwise it's impossible to branch to location 0, for instance if
3780 you have an undefined weak symbol.
3782 Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3784 * ldlang.c (lang_place_undefineds): Add \n in einfo call.
3785 (lang_size_sections): Likewise.
3786 * ldlex.l: Likewise.
3787 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
3788 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open):
3790 (check_sections): Likewise.
3791 (gld${EMULATION_NAME}_after_allocation): Likewise.
3792 * emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
3794 * mpw-eppcmac.c (gldppcmacos_read_file): Likewise.
3795 * mpw-idtmips.c (gldmipsidt_after_open): Likewise.
3796 (check_sections): Likewise.
3797 (gldmipsidt_after_allocation): Likewise.
3799 * ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
3801 Fri Jun 6 23:47:42 1997 Ian Lance Taylor <ian@cygnus.com>
3803 * scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
3806 Thu May 29 13:13:22 1997 Ian Lance Taylor <ian@cygnus.com>
3808 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Don't
3809 crash if an output section has no BFD section.
3811 Fri May 23 15:23:25 1997 Fred Fish <fnf@cygnus.com>
3813 * lexsup.c (ld_options): Add entry for the new "task-link" option.
3814 (parse_args): Handle the "task-link" option.
3815 (OPTION_TASK_LINK): Add define.
3817 Wed May 21 17:44:15 1997 Ian Lance Taylor <ian@cygnus.com>
3819 * ldmain.c (main): Correct check of fclose return value when
3820 handling --force-exe-suffix.
3822 Thu May 15 11:35:29 1997 Nick Clifton <nickc@cygnus.com>
3824 * ldlang.c (lang_check): Add test of the return value from the
3825 call to bfd_merge_private_bfd_data().
3827 Mon May 12 23:22:58 1997 Ian Lance Taylor <ian@cygnus.com>
3829 * scripttempl/elfmips.sc: Remove.
3830 * scripttempl/elf.sc: Set ENTRY based on target. Permit
3831 TEXT_DYNAMIC to control .dynamic segment. Permit
3832 SHLIB_TEXT_START_ADDR to set start of shared object. Support
3833 INITIAL_READONLY_SECTIONS. Put .stub in .text. Only put
3834 .gnu.linkonce.t* in .text when relocating. Support
3835 OTHER_TEXT_SECTIONS. Support SHLIB_DATA_ADDR as well as
3836 DATA_ADDR. Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS.
3837 * emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf.
3838 (DATA_ADDR): Don't set.
3839 (INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS.
3840 (OTHER_TEXT_SECTIONS): Set.
3841 (OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS.
3842 (MACHINE): Set to empty string.
3843 * emulparams/elf32l4300.sh: Likewise.
3844 * emulparams/elf32ebmip.sh: Likewise.
3845 * emulparams/elf32elmip.sh: Likewise.
3846 * emulparams/elf32bmip.sh: Likewise. Also:
3847 (TEXT_DYNAMIC): Set.
3848 * emulparams/elf32lmips.sh: Likewise.
3849 * Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than
3851 (eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
3853 Mon May 12 11:11:06 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3855 * scripttempl/elf.sc: Don't align the data segment on the next 8
3856 byte boundary, instead let the linker use whatever the individual
3859 Fri May 9 17:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
3861 * configure.tgt (i[3456]86-*-gnu*): Don't include Mach support.
3863 Tue May 6 13:21:19 1997 Ian Lance Taylor <ian@cygnus.com>
3865 From Sean McNeil <sean@mcneil.com>:
3866 * emultempl/pe.em (sort_by_file_name): Sort by archive name
3868 (sort_sections): Sort all sections, not just sections in the same
3871 Mon May 5 18:19:55 1997 Philip Blundell <pjb27@cam.ac.uk>
3873 * configure.tgt, configure.host: cope with '*-*-linux-gnuaout'
3876 Fri May 2 15:54:28 1997 Mike Meissner <meissner@cygnus.com>
3878 * scripttempl/tic80coff.sc (.text): Add a leading underscore to
3879 __{D,C}TOR_{LIST,END}__ definations. Rearrange the order of items
3880 in the .text section. Move .const, .ctors, .dtors into separate
3883 Wed Apr 30 12:23:21 1997 Manfred Hollstein <manfred@s-direktnet.de>
3885 * scripttempl/m88kbcs.sc (__.initp.end, _etext): Added whitespace
3886 around assignment of current location pointer.
3888 Thu Apr 17 13:07:18 1997 Ian Lance Taylor <ian@cygnus.com>
3890 * ldctor.c (ldctor_build_sets): Make sure the set is aligned
3893 Tue Apr 15 13:19:26 1997 Ian Lance Taylor <ian@cygnus.com>
3895 * Makefile.in (INSTALL): Set to @INSTALL@.
3896 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
3897 (install): Depend upon ld.new and installdirs. Use
3898 $(program_transform_name) directly, rather than using
3899 $(INSTALL_XFORM) and $(INSTALL_XFORM1).
3900 (installdirs): New target.
3901 (install-info): Run mkinstalldirs.
3903 Mon Apr 14 12:06:15 1997 Ian Lance Taylor <ian@cygnus.com>
3905 * Makefile.in (INSTALL): Change install.sh to install-sh.
3907 From Thomas Graichen <graichen@rzpd.de>:
3908 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
3909 * configure: Rebuild.
3911 Fri Apr 4 11:42:41 1997 Ian Lance Taylor <ian@cygnus.com>
3913 * emultempl/pe.em: Include "libiberty.h".
3914 (sort_sections_1): Use xmalloc rather than alloca.
3916 * ldlex.l: Recognize SQUAD.
3917 * ldgram.y (length): Add SQUAD.
3918 * ldctor.c (ldctor_build_sets): Use SQUAD for a signed 8 byte
3920 * ldlang.c (print_data_statement): Handle SQUAD.
3921 (lang_size_sections, lang_do_assignments): Likewise.
3922 * ldexp.c (exp_print_token): Add SQUAD to table.
3923 * ldwrite.c (build_link_order): Handle SQUAD.
3924 * ld.texinfo (Section Data Expressions): Document SQUAD.
3926 Thu Apr 3 13:19:40 1997 Ian Lance Taylor <ian@cygnus.com>
3928 * ldver.c (ld_program_version): Set to 2.8.1.
3930 * Branched binutils 2.8.
3932 Wed Apr 2 11:55:27 1997 Ian Lance Taylor <ian@cygnus.com>
3934 * mpw-idtmips.c: Rename from mpw-emipsidt.c.
3935 * mpw-elfmips.c: Rename from mpw-emipself.c.
3936 * mpw-config.in: Update accordingly.
3938 * ldlang.c (lang_process): Call lang_check immediately after
3939 opening the input files, rather than at the end of the link.
3941 Mon Mar 31 23:44:00 1997 Ian Lance Taylor <ian@cygnus.com>
3943 * emultempl/pe.em (init): Fully bracket initializer.
3944 (set_pe_stack_heap): Remove locals begin_commit and end.
3945 (gld_${EMULATION_NAME}_after_open): Remove unused local i.
3946 (gld${EMULATION_NAME}_place_orphan): Remove unused local ptr.
3948 Mon Mar 31 16:35:51 1997 Joel Sherrill <joel@oarcorp.com>
3950 * configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
3952 Fri Mar 28 15:29:23 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3954 Contributed by David S. Miller <davem@caip.rutgers.edu>:
3955 * configure.tgt (sparc*-*-linuxaout*): New target.
3956 (sparc*-*-linux*): New target.
3957 * emulparams/sparclinux.sh: New file.
3958 * Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
3959 (esparclinux.c): New target.
3961 Fri Mar 28 14:30:12 1997 Ian Lance Taylor <ian@cygnus.com>
3963 From Ralf Baechle <ralf@gnu.ai.mit.edu>:
3964 * configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
3965 mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
3968 Thu Mar 27 17:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
3970 * lexsup.c (parse_args): Update copyright date in version
3973 Fri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3975 * emulparams/delta68.sh (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
3977 Tue Mar 18 11:16:23 1997 Ian Lance Taylor <ian@cygnus.com>
3979 * Makefile.in: Rebuild dependencies.
3981 * emultempl/aix.em: Include "obstack.h".
3983 Mon Mar 17 19:26:06 1997 Ian Lance Taylor <ian@cygnus.com>
3985 * ldlang.c: Include "obstack.h".
3987 Sat Mar 15 23:23:46 1997 Fred Fish <fnf@cygnus.com>
3989 * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
3991 Sat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
3993 * ldemul.h (ldemul_list_emulations): Use full prototype.
3994 * ldlang.c (print_one_symbol): Add declaration.
3995 * ldlang.h (dprint_statements): Declare.
3996 * ldmain.c (remove_output): Declare.
3997 * ldmisc.c (vfinfo): Declare.
3998 * ldwrite.c (clone_section): Declare.
3999 (split_sections): Make static. Declare.
4000 * mri.c: Include libiberty.h.
4001 (strdup): Don't declare.
4002 (mri_alias): Use xstrdup rather than strdup.
4004 Fri Mar 14 21:30:06 1997 Ian Lance Taylor <ian@cygnus.com>
4006 * scripttempl/elfmips.sc: Change handling of data area when
4007 generating a shared library to not skip a large block of memory.
4008 From Per Fogelstrom <pefo@cvs.openbsd.org>.
4010 Wed Mar 12 21:33:09 1997 Ian Lance Taylor <ian@cygnus.com>
4012 * ldmain.c (multiple_definition): Only skip the warning if the
4013 output section is absolute when the input section is not
4016 * ldlex.l: Accept whitespace in VERS_START state. Warn about
4017 invalid characters in VERS_* states.
4019 Tue Mar 11 13:51:31 1997 Ian Lance Taylor <ian@cygnus.com>
4021 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Don't let a
4022 trailing space lead us to think that there is a zero address.
4024 Sun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
4026 * ldgram.y (vers_node): Correct typo of '(' for '{'.
4028 Fri Mar 7 18:40:12 1997 Fred Fish <fnf@cygnus.com>
4030 * scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
4032 (__edata): Define this rather than "edata".
4033 (__end): Define this rather than "end".
4035 Tue Mar 4 17:18:35 1997 Michael Meissner <meissner@cygnus.com>
4037 * configure.tgt (tic80-*-*): Allow dropping of -coff.
4039 Sun Mar 2 22:59:49 1997 Fred Fish <fnf@cygnus.com>
4041 * Makefile.in (ld.dvi): Set MAKEINFO environment variable as well
4042 as TEXINPUTS. Needed for building in separate build dir.
4043 * ldint.texinfo (SCRIPT_NAME): Fix typo.
4044 * emulparams/tic80coff.sh: Rewrite to include internal documentation
4045 about each shell variable that is set (or not set).
4046 * scripttempl/tic80coff.sc: Complete rewrite.
4048 Fri Feb 28 17:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
4050 * ldmain.c (main): Call bfd_set_default_target.
4051 * Makefile.in (ldmain.o): Define TARGET when compiling.
4053 Thu Feb 27 11:41:03 1997 Ian Lance Taylor <ian@cygnus.com>
4055 * ldmain.c (main): Don't initialize link_info.lprefix or
4056 link_info.lprefix_len.
4057 * emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
4059 * emultempl/m88kbcs.em: Remove.
4060 * emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set.
4061 * Makefile.in (em88kbcs.c): Depend upon generic.em rather than
4064 * mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
4065 to lang_enter_output_section_statement. From Mark Rasin
4066 <mark.rasin@telrad.co.il>.
4068 Wed Feb 26 11:51:44 1997 Ian Lance Taylor <ian@cygnus.com>
4070 * ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
4073 Tue Feb 25 20:38:11 1997 Stan Shebs <shebs@andros.cygnus.com>
4075 * configure.tgt (mips*-*-lnews*): New target.
4076 * Makefile.in (emipslnews.c): New target.
4077 * emulparams/mipslnews.sh: New file.
4079 Tue Feb 25 16:04:09 1997 Ian Lance Taylor <ian@cygnus.com>
4081 * emultempl/elf32.em (hold_interp): New static variable.
4082 (gld${EMULATION_NAME}_place_orphan): Put loadable .note sections
4083 after hold_interp. Choose a unique output section name.
4084 (gld${EMULATION_NAME}_place_section): Don't set hold_use if the
4085 SEC_LOAD or SEC_ALLOC flags differ. Set hold_interp.
4087 Mon Feb 24 18:16:09 1997 Ian Lance Taylor <ian@cygnus.com>
4089 From Eric Youngdale <eric@andante.jic.com>:
4090 * ldlex.l (V_TAG, V_IDENTIFIER): New macros.
4091 (VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
4093 (ldlex_version_script, ldlex_version_file): New functions.
4094 * ldlex.h (enum input_enum): Add input_version_script.
4095 (ldlex_version_script): Declare.
4096 (ldlex_version_file): Declare.
4097 * ldgram.y (%union): Add deflist, versyms, and versnode.
4098 (VERS_TAG, VERS_IDENTIFIER): New terminals.
4099 (GLOBAL, LOCAL, VERSION, INPUT_VERSION_SCRIPT): New terminals.
4100 (file): Accept INPUT_VERSION_SCRIPT.
4101 (ifile_p1): Accept version.
4102 (version_script_file): New nonterminal.
4103 (version, vers_nodes, vers_node): Likewise.
4104 (verdep, vers_tag, ver_defns): Likewise.
4105 * ldlang.c (lang_elf_version_info): New global variable.
4106 (lang_new_vers_regex): New function.
4107 (lang_new_vers_node): New function.
4108 (version_index): New static variable.
4109 (lang_register_vers_node): New function.
4110 (lang_add_vers_depend): New function.
4111 * ldlang.h (lang_elf_version_info): Declare.
4112 (lang_new_vers_regex, lang_new_vers_node): Declare.
4113 (lang_add_vers_depend, lang_register_vers_node): Declare.
4114 * lexsup.c (OPTION_VERSION_SCRIPT): Define.
4115 (ld_options): Add "version-script".
4116 (parse_args): Handle OPTION_VERSION_SCRIPT.
4117 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4118 Pass lang_elf_version_info to size_dynamic_sections.
4119 * scripttempl/elf.sc: Add .gnu.version sections.
4120 * ld.texinfo: Document symbol versioning.
4122 Fri Feb 21 17:37:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
4124 * Makefile.in (ed30velf.c): New target.
4125 * configure.tgt (d30v-*-*): New target.
4126 * emulparams/d30velf.sh: New file.
4127 * scripttempl/elfd30v.sc: New file.
4129 Fri Feb 14 18:28:31 1997 Ian Lance Taylor <ian@cygnus.com>
4131 * ld.texinfo (Option Commands): Document the INCLUDE command.
4133 Thu Feb 13 20:31:37 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
4135 * configure.in: Call BFD_NEED_DECLARATION on getenv.
4136 * acconfig.h (NEED_DECLARATION_GETENV): New macro.
4137 * sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
4138 * ldemul.c (ld_emul_default_target): Do not cast getenv return
4140 * ldmain.c (get_emulation): Likewise.
4141 * configure, config.in: Rebuild.
4143 Tue Feb 11 15:34:26 1997 Ian Lance Taylor <ian@cygnus.com>
4145 * scripttempl/elfmips.sc: When relocating, put .mips16.fn.* and
4146 .mips16.call.* in .text.
4148 Sun Feb 9 18:09:13 1997 Fred Fish <fnf@cygnus.com>
4150 * emulparams/tic80coff.sh: New (dummy) file for TIc80.
4151 * scripttempl/tic80coff.sc: New (dummy) file for TIc80.
4152 * Makefile.in (etic80coff.c): Add target and rule to build it.
4153 * configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
4155 Fri Jan 31 13:16:53 1997 Ian Lance Taylor <ian@cygnus.com>
4157 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
4158 ".so" in the name, not ".so.".
4159 (gld${EMULATION_NAME}_search_dir): Accept a plain .so file.
4161 * Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
4162 <alan@spri.levels.unisa.edu.au>.
4164 Thu Jan 30 11:31:52 1997 Ian Lance Taylor <ian@cygnus.com>
4166 * emultempl/sunos.em: Include <ctype.h>.
4167 (gld${EMULATION_NAME}_find_so): Skip the directory name when
4168 searching for ".so.".
4169 (gld${EMULATION_NAME}_search_dir): Make sure that the library name
4170 has a version number, and that only version numbers follow .so.
4172 Wed Jan 29 18:15:00 1997 Geoffrey Noer <noer@cygnus.com>
4174 * scripttempl/pe.sc:
4175 * scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
4176 section so Win32 executables are valid.
4178 Mon Jan 27 12:28:43 1997 Ian Lance Taylor <ian@cygnus.com>
4180 * scripttempl/elf.sc: Put linkonce reloc section in other
4181 appropriate reloc sections.
4182 * scripttempl/elfmips.sc: Add linkonce support.
4183 * scripttempl/elfppc.sc: Likewise.
4185 Fri Jan 24 10:44:09 1997 Jeffrey A Law (law@cygnus.com)
4187 * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
4188 stack up to 0x80000.
4189 * emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
4191 Tue Jan 21 12:11:10 1997 Doug Evans <dje@seba.cygnus.com>
4193 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
4196 Thu Jan 16 17:07:52 1997 Ian Lance Taylor <ian@cygnus.com>
4198 * ld.h (args_type): Rename auxiliary_filter_shlib to
4199 auxiliary_filters, and make it char **.
4200 * lexsup.c (parse_args): Handle -f by setting up an array.
4201 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4202 new name of auxiliary_filters.
4204 * ld.texinfo (Options): Improve documentation of --filter and
4207 Tue Jan 14 15:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
4209 * ld.texinfo (Options): Clarify that the normal usage is -T.
4210 (Commands): Likewise.
4212 Thu Jan 9 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
4214 * scripttempl/armcoff.sc: Correct mask used for .data address.
4216 Wed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
4218 * emultempl/pe.em: make default executable a.exe instead of
4221 Fri Jan 3 17:33:34 1997 Richard Henderson <rth@tamu.edu>
4223 * scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
4224 shifting .plt back. Rumour has it that the NetBSD ld.so depends
4225 on .dynamic being after .got, so we leave that.
4227 Fri Jan 3 14:04:40 1997 Ian Lance Taylor <ian@cygnus.com>
4229 * Makefile.in (clean): Don't remove configdoc.texi.
4230 (maintainer-clean): Do remove configdoc.texi.
4232 * ld.texinfo (Operators): Remove '@' from @smallexmple in comment
4233 to avoid confusing texi2roff.
4235 Fri Jan 3 11:27:02 1997 Michael Meissner <meissner@tiktok.cygnus.com>
4237 * scripttempl/v850.sc (.zdata): Add .zcommon section.
4238 (.tdata): Add .tcommon and .tcommon_byte sections.
4240 Thu Jan 2 18:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
4242 * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
4243 * scripttempl/elfmips.sc: Use __start as the entry address for
4246 Tue Dec 31 14:48:30 1996 Ian Lance Taylor <ian@cygnus.com>
4248 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
4250 * ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
4252 * lexsup.c (parse_args): Recognize --auxiliary/-f and
4254 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4255 Pass filter_shlib and auxiliary_filter_shlib to
4256 size_dynamic_sections.
4257 * ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
4259 Mon Dec 30 13:55:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4261 * scripttempl/v850.sc (.tdata) Add .tbss and .tbyte sections.
4263 Wed Dec 18 22:57:35 1996 Stan Shebs <shebs@andros.cygnus.com>
4265 * mpw-make.sed: Use NewFolderRecursive for installation.
4267 Fri Dec 13 14:08:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4269 * scripttempl/v850.sc: Make sure __{e,g}p start relative to the
4270 {s,t}data sections. Do not emit any linker generated symbols if
4271 -r. Use {TEXT,{Z,S,T}DATA}_START_ADDR variables to initialize
4272 where the different sections go. Change some whitespace.
4274 * emulparams/v850.sh ({TEXT,{Z,S,T}DATA}_START_ADDR): Define
4275 appropriately. Remove crud not used anymore.
4277 Fri Dec 13 10:19:57 1996 Jeffrey A Law (law@cygnus.com)
4279 * Makefile.in (emn10200.c): Add dependencies.
4280 * configure.tgt: Handle mn10200.
4281 * emulparms/mn10200.sh: New file.
4283 Thu Dec 12 17:04:55 1996 Ian Lance Taylor <ian@cygnus.com>
4285 * emultempl/gld960c.em: Include <ctype.h>.
4286 (gld960_set_output_arch): Get the machine type from the -A option
4287 if there is one, rather than always using core.
4289 Sat Dec 7 10:07:51 1996 Jeffrey A Law (law@cygnus.com)
4291 * emulparms/mn10300.sh: Handle leading underscores.
4293 Thu Dec 5 13:45:58 1996 Ian Lance Taylor <ian@cygnus.com>
4295 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Only
4296 set hold_rel if SEC_ALLOC is set.
4298 Tue Dec 3 11:29:20 1996 Ian Lance Taylor <ian@cygnus.com>
4300 * ldlang.c (section_already_linked): Set the output_offset as well
4301 as the output_section when only reading symbols from a file.
4303 Mon Dec 2 11:43:50 1996 Ian Lance Taylor <ian@cygnus.com>
4305 * emulparams/*.sh: Make sure that each set of parameters which
4306 uses the elf.sc script sets MACHINE.
4308 Wed Nov 27 03:22:05 1996 Jason Merrill <jason@yorick.cygnus.com>
4310 * scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
4311 * scripttempl/elfd10v.sc: Likewise.
4312 * scripttempl/v850.sc: Likewise.
4314 Tue Nov 26 16:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
4316 * configure: Rebuild with autoconf 2.12.
4318 Mon Nov 25 12:17:55 1996 Jim Wilson <wilson@cygnus.com>
4320 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Add case
4321 for bfd_vma to init loop.
4323 Mon Nov 25 09:55:07 1996 Jeffrey A Law (law@cygnus.com)
4325 * emulparms/mn10300.sh: Remove bogus '_' prefix for
4326 entry symbol and ctor/dtor stuff.
4328 Fri Nov 15 13:00:18 1996 Jeffrey A Law (law@cygnus.com)
4330 * Makefile.in (emn10300.c): Add dependencies.
4331 * configure.tgt: Handle mn10300.
4332 * emulparms/mn10300.sh: New file.
4334 Tue Nov 5 10:57:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4336 * emulparams/d10velf.sh (READONLY_START_ADDR): Changed to 0x2000004.
4339 Fri Nov 1 10:01:27 1996 Ian Lance Taylor <ian@cygnus.com>
4341 * ld.texinfo: Add section on reporting bugs.
4343 * scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
4344 symbols are correctly aligned.
4346 Thu Oct 31 09:28:59 1996 Jeffrey A Law (law@cygnus.com)
4348 * scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
4351 Tue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4353 * emulparams/d10velf.sh: Changes needed for D10V-EVA board.
4354 Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
4357 * scripttempl/elfd10v.sc: Fix calculation of .text. Change
4358 .stack to start at 0x2007ffe.
4360 Mon Oct 28 15:37:00 1996 Doug Evans <dje@canuck.cygnus.com>
4362 * configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
4364 Wed Oct 23 16:17:22 1996 Jeffrey A Law (law@cygnus.com)
4366 * scriptempl/v850.sc (zdata): Fix typo "zrodata" -> "rozdata".
4368 * scriptempl/v850.sc (zdata): Make sure this stays
4371 Tue Oct 22 11:36:47 1996 Jeffrey A Law (law@cygnus.com)
4373 * scripttempl/v850.sc (__ep): Put it at the start
4376 * scriptempl/v850.sc: Move all "normal" sections into
4377 the external memory region (0x100000 - 0x200000).
4379 Mon Oct 21 17:16:59 1996 Michael Meissner <meissner@wogglebug.tiac.net>
4381 * scripttempl/elfd10v.sc: Clone from elf.sc, move .text to
4382 0x10000, so that is more room for data.
4384 * emulparams/d10velf.sh (TEXT_START_ADDR): Now 0x100000.
4385 (READONLY_START_ADDR): Now 0x0.
4386 (SCRIPT_NAME): Now elfd10v.
4388 * Makefile.in (ed10velf.c): Depend on elfd10v.sc, not elf.sc.
4390 Fri Oct 18 22:12:49 1996 Doug Evans <dje@canuck.cygnus.com>
4392 * emulparams/m32relf.sh (TEXT_START_ADDR): Change from 0 to 0x100.
4394 Fri Oct 18 15:43:38 1996 Ian Lance Taylor <ian@cygnus.com>
4396 * Makefile.in (ALL_EMULATIONS): Remove eelf64alpha.o.
4397 (ALL_64_EMULATIONS): New variable.
4398 * configure.in: Accept --enable-64-bit-bfd option. If it is set
4399 with --enable-targets=all, include ALL_64_EMULATIONS in
4401 * configure: Rebuild.
4403 Fri Oct 18 12:58:35 1996 Jeffrey A Law (law@cygnus.com)
4405 * scripttempl/v850.sc (__gp, __ep): Define.
4407 Thu Oct 17 18:14:07 1996 Ian Lance Taylor <ian@cygnus.com>
4409 * ld.texinfo: Try to consistently use a single or a double dash
4412 Thu Oct 17 10:17:20 1996 Doug Evans <dje@canuck.cygnus.com>
4414 * emulparams/m32relf.sh (EMBEDDED): Define.
4416 Thu Oct 17 10:56:49 1996 Jeffrey A Law (law@cygnus.com)
4418 * scripttempl/v850.sc (.zdata): Add this before .text.
4419 (.sdata): Also include .rosdata as part of the .sdata.
4420 (.tdata): Include this just before .sdata.
4422 * emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
4423 * scripttempl/v850.sc: Wrap script with a "cat << EOF".
4425 Wed Oct 16 23:10:01 1996 Jeffrey A Law (law@cygnus.com)
4427 * scripttempl/v850.sc: New linker script for the V850.
4428 * Makefile.in: Use it.
4430 Thu Oct 10 17:57:00 1996 Ian Lance Taylor <ian@cygnus.com>
4432 * emulparams/elf32b4300.sh: Define _gp in OTHER_GOT_SYMBOLS, not
4433 OTHER_READWRITE_SECTIONS.
4434 * emulparams/elf32l4300.sh: Likewise.
4436 Wed Oct 9 14:36:18 1996 Ian Lance Taylor <ian@cygnus.com>
4438 * ld.h (ld_config_type): Add warn_section_align field.
4439 * lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
4440 (ld_options): Add --warn-section-align.
4441 (parse_args): Handle --warn-section-align.
4442 * ldlang.c (lang_size_sections): If warn_section_align, warn if
4443 the start of a section changes due to alignment.
4444 * ld.texinfo, ld.1: Document --warn-section-align.
4445 * ld.texinfo: Change some single dashes to double dashes.
4447 * emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
4448 subsystem type. Ifdef out os2 type. Recognize a version number.
4450 Tue Oct 8 12:07:13 1996 Ian Lance Taylor <ian@cygnus.com>
4452 * emultempl/pe.em (set_pe_subsystem): When setting the subsystem
4453 to windows, set the entry point.
4455 * Makefile.in (ldlex.c): Don't pass any options to $(LEX).
4457 Mon Oct 7 17:29:05 1996 Ian Lance Taylor <ian@cygnus.com>
4459 * ld.texinfo (Options): Mention .so extensions for shared
4462 Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
4464 * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
4466 Fri Oct 4 18:49:31 1996 Ian Lance Taylor <ian@cygnus.com>
4468 * scripttempl/m68kcoff.sc: Only set the address of .text if
4471 Fri Oct 4 10:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
4473 * emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
4474 * scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
4475 (OUTPUT_FORMAT): Support bi-endian targets.
4477 Thu Oct 3 13:52:03 1996 Ian Lance Taylor <ian@cygnus.com>
4479 * fnmatch.h, fnmatch.c: Remove (now in libiberty).
4480 * Makefile.in: Rebuild dependencies.
4481 (CFILES): Remove fnmatch.c.
4482 (HFILES): Remove fnmatch.h.
4483 (OFILES): Remove fnmatch.o.
4485 Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
4487 * Makefile.in (mostlyclean): Move config.log to distclean.
4489 Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
4491 * emultmpl/pe.em: increase size of stack reserve to 0x2000000
4492 (necessary in order to compile parse.c in gcc sources under NT)
4494 Wed Oct 2 14:49:10 1996 Ian Lance Taylor <ian@cygnus.com>
4496 * lexsup.c (ld_options): Fix typo in --rpath-link description.
4497 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
4498 --rpath if a needed library is not found.
4500 Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com>
4502 * configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
4504 Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com>
4506 * ld.texinfo (Options): Give more detail on -l option.
4508 * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
4509 elf.sc does, so that glibc works better.
4511 * ldver.c (ld_program_version): New variable.
4512 (ldversion): Use it.
4513 * ldver.h (ld_program_version): Declare.
4514 * lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
4515 --version. Change --version handling to match current GNU
4517 (help): Print bug report address.
4519 Mon Sep 30 12:14:43 1996 Doug Evans <dje@canuck.cygnus.com>
4521 * Makefile.in (em32relf.c): Add rule for.
4522 * configure.tgt (m32r-*-*): Recognize.
4523 * emulparams/m32relf.sh: New file.
4525 Thu Sep 26 13:58:47 1996 Stan Shebs <shebs@andros.cygnus.com>
4527 * mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
4528 * mpw-config.in: Add mips-*-* case as mips-elf, and use more
4529 wildcards in matching.
4530 * mpw-emipself.c: New file, pregenerated mips elf emulation.
4532 Tue Sep 17 12:18:21 1996 Ian Lance Taylor <ian@cygnus.com>
4534 * ldint.texinfo: Rewrote.
4536 * configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
4538 Mon Sep 16 17:55:21 1996 Ian Lance Taylor <ian@cygnus.com>
4540 * scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
4541 syntax error on __end__ line.
4543 * scripttempl/armcoff.sc: For -N or -n, don't align .data. From
4544 Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
4546 Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com)
4548 * emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
4550 Sun Sep 15 10:38:16 1996 Mark Alexander <marka@cygnus.com>
4552 * emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
4553 stack at top of simulator memory.
4555 Fri Sep 13 15:49:45 1996 Ian Lance Taylor <ian@cygnus.com>
4557 * ldlex.l (SYMBOLCHARN): Add $, _, and ~.
4559 Wed Sep 11 23:30:42 1996 Ian Lance Taylor <ian@cygnus.com>
4561 * ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
4563 Thu Sep 5 15:24:12 1996 Ian Lance Taylor <ian@cygnus.com>
4565 * ldlang.c (section_already_linked): Accept a lang_input_statement
4566 as the PTR argument. If the file is symbols only, discard all
4568 (ldlang_add_file): Pass entry to bfd_map_over_sections.
4570 Wed Sep 4 15:53:43 1996 Ian Lance Taylor <ian@cygnus.com>
4572 * configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
4575 Tue Sep 3 00:52:54 1996 Jeffrey A Law (law@cygnus.com)
4577 * emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
4579 Sun Sep 1 21:48:58 1996 Jeffrey A Law (law@cygnus.com)
4581 * emulparms/v850.sh: Set EMBEDDED.
4583 Fri Aug 30 22:30:30 1996 Jeffrey A Law (law@cygnus.com)
4585 * emulparms/v850.sh: Entry symbol is "_start", tweak
4588 Fri Aug 30 18:32:31 1996 Ian Lance Taylor <ian@cygnus.com>
4590 * configure.tgt (sh-*-elf*): New target.
4591 * emulparams/shelf.sh: New file.
4592 * emulparams/shlelf.sh: New file.
4593 * Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
4594 (eshelf.c, eshlelf.c): New targets.
4595 * scripttempl/elf.sc: If EMBEDDED is defined, then don't add
4596 SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END
4597 around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
4598 OTHER_RELOCATING_SECTIONS if RELOCATING.
4600 Thu Aug 29 16:57:46 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4602 * configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
4605 Mon Aug 26 12:58:11 1996 Ian Lance Taylor <ian@cygnus.com>
4607 * ldgram.y (section): Add opt_nocrossrefs; pass value to
4609 (opt_nocrossrefs): New nonterminal.
4610 * ldlex.l: Recognize NOCROSSREFS keyword in EXPRESSION mode.
4611 * ldlang.c (overlay_nocrossrefs): New static variable.
4612 (lang_enter_overlay): Add nocrossrefs parameter.
4613 (lang_leave_overlay): Only add nocrossrefs if overlay_nocrossrefs
4614 is set. Initialize overlay_nocrossrefs.
4615 * ldlang.h (lang_enter_overlay): Update declaration.
4616 * ld.texinfo (Overlays): Update documentation.
4618 * ldver.c (ldversion): Print GNU ld in the version message.
4620 Thu Aug 22 17:10:40 1996 Ian Lance Taylor <ian@cygnus.com>
4622 * configure.host: Set HLDENV.
4623 * configure.in: Substitute HLDENV.
4624 * configure: Rebuild.
4625 * Makefile.in (HLDENV): New variable.
4626 ($(LD_PROG)): Use $(HLDENV).
4628 Thu Aug 22 16:29:28 1996 Jeffrey A Law (law@cygnus.com)
4630 * Makefile.in (ev850.c): New target.
4631 * configure.tgt (v850-*-*): New target.
4632 * emulparams/v850.sh: New file.
4634 Thu Aug 22 11:16:02 1996 Stan Shebs <shebs@andros.cygnus.com>
4636 * mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
4638 Wed Aug 21 11:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
4640 * scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
4641 containing sections.
4643 Mon Aug 19 13:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
4645 * fnmatch.c: Include sysdep.h.
4647 Mon Aug 19 11:28:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4649 * genscripts.sh: Undo 8/16 change.
4651 * emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
4653 Fri Aug 16 19:18:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4655 * genscripts.sh: Explicitly reset any shell variables set or used
4656 by the various .sc scripts to allow inadvertant use of these
4657 names as normal environment variables by the person running
4660 * Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
4662 Fri Aug 16 14:15:41 1996 James G. Smith <jsmith@cygnus.co.uk>
4664 * scripttempl/armcoff.sc (__bss_start__, __bss_end__,
4665 __data_start__, __data_end__): Added to keep in sync. with the
4666 default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
4668 Thu Aug 8 14:24:56 1996 Ian Lance Taylor <ian@cygnus.com>
4670 * ldcref.c (check_reloc_refs): If info->same, look for any symbol
4671 defined in info->defsec, not just the section symbol.
4673 Wed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
4675 * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
4676 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
4677 (NEED_DECLARATION_SBRK): New macro.
4678 * configure, config.in: Rebuild.
4679 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
4680 * ldmain.c (sbrk): Declare if HAVE_SBRK and
4681 NEED_DECLARATION_SBRK.
4683 * ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
4685 Mon Aug 5 16:26:14 1996 Ian Lance Taylor <ian@cygnus.com>
4687 * ldlex.l: Recognize OVERLAY.
4688 * ldgram.y: Add section_phdr field to %union.
4689 (section): Handle phdr_opt result. Add OVERLAY case.
4690 (opt_exp_without_type): New nonterminal.
4691 (phdr_opt): Return list of phdrs.
4692 (overlay_section): New nonterminal.
4693 * ldlang.c: Include <ctype.h>.
4694 (lang_leave_output_section_statement): Add phdrs parameter.
4696 (lang_section_in_phdr): Remove.
4697 (overlay_vma, overlay_lmn, overlay_max): New static variables.
4698 (struct overlay_list): Define.
4699 (overlay_list): New static variable.
4700 (lang_enter_overlay, lang_enter_overlay_section): New functions.
4701 (lang_leave_overlay_section, lang_leave_overlay): New functions.
4702 * ldlang.h (lang_leave_output_section_statement): Update
4703 declaration for new parameter.
4704 (lang_section_in_phdr): Don't declare.
4705 (lang_enter_overlay, lang_enter_overlay_section): Declare.
4706 (lang_leave_overlay_section, lang_leave_overlay): Declare.
4707 * ld.texinfo (Overlays): New node under SECTIONS, documenting
4710 * ldlex.l: Recognize MAX and MIN.
4711 * ldgram.y (MAX, MIN): New terminals.
4712 (exp): Recognize MAX and MIN.
4713 * ldexp.c (fold_binary): Handle MAX and MIN.
4714 * ld.texinfo (Arithmetic Functions): Document MAX and MIN.
4716 * ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
4719 * ldgram.y (SIZEOF, ADDR): Do not specify type.
4721 * ldcref.c (check_nocrossref): Skip symbols with no output
4724 Fri Aug 2 14:57:49 1996 Ian Lance Taylor <ian@cygnus.com>
4726 * ldgram.y (LOADADDR): New terminal.
4727 (exp): Handle LOADADDR.
4728 * ldlex.l: Recognize LOADADDR.
4729 * ldexp.c (exp_print_token): Add LOADADDR.
4730 (fold_name): Implement LOADADDR.
4731 * ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
4732 * ld.texinfo (Arithmetic Functions): Document LOADADDR.
4734 Thu Aug 1 12:52:19 1996 Ian Lance Taylor <ian@cygnus.com>
4736 * ld.h (check_nocrossrefs): Declare.
4737 * ldlang.h (struct lang_nocrossref): Define.
4738 (struct lang_nocrossrefs): Define.
4739 (nocrossref_list): Declare.
4740 (lang_add_nocrossref): Declare.
4741 * ldlex.l: Recognize NOCROSSREFS keyword.
4742 * ldgram.y (%union): Add nocrossref field.
4743 (NOCROSSREFS): New terminal.
4744 (ifile_p1): Recognize NOCROSSREFS.
4745 (nocrossref_list): New nonterminal.
4746 * ldlang.c (nocrossref_list): Define.
4747 (lang_add_nocrossref): New function.
4748 * ldmain.c (main): If nocrossref_list is not NULL, call
4750 (warning_callback): Free symbols if there is no place to store
4752 (notice): Call add_cref if nocrossref_list is not NULL.
4753 * ldcref.c: Include "ldexp.h" and "ldlang.h".
4754 (check_nocrossrefs): New function.
4755 (check_nocrossref): New static function.
4756 (struct check_refs_info): Define.
4757 (check_refs, check_reloc_refs): New static functions.
4758 * Makefile.in: Rebuild dependencies.
4759 * ld.texinfo (Option Commands): Document NOCROSSREFS.
4761 * ld.texinfo (Section Placement): Improve the wording of the
4762 wildcard documentation. Mention that wildcards are only searched
4763 for on the command line, not in the file system.
4765 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
4766 definition of lib_path inside condition where it is used.
4768 Wed Jul 31 13:17:10 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4770 * emulparams/d10velf.sh: Now works with elf.sc.
4772 Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4774 * emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
4776 Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
4778 * ldlang.c (lang_size_sections): Add the section VMA to the result
4779 value when computing the address of a section.
4781 * ld.h (args_type): Add cref field.
4782 * lexsup.c (parse_args): Set command_line.cref.
4783 * ldmain.c (main): Check command_line.cref rather than
4784 link_info.notice_all.
4787 * ldcref.c (output_one_cref): Don't crash if a symbol is defined
4788 in a section without an owner.
4790 Mon Jul 29 17:23:33 1996 Ian Lance Taylor <ian@cygnus.com>
4792 * fnmatch.h, fnmatch.c: New files.
4793 * ldlex.l: Remove unused definition of FILENAME. Add definition
4794 of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a
4796 * ldgram.y (file_NAME_list): Accept '*' and '?' specially.
4797 (input_section_spec): Accept '?' specially.
4798 (statement): Change exp to mustbe_exp in length and FILL cases.
4799 (section): Call ldlex_script before section statements, and call
4800 ldlex_popstate after them.
4801 * ldlang.c: Include "fnmatch.h".
4802 (wildcardp): New static function.
4803 (wild_section): Permit the section name to be a wildcard.
4804 (wild_file): New static function, broken out of wild.
4805 (wild): Call wild_file. Permit the file name to be a wildcard.
4806 (open_input_bfds): Don't call lookup_name for a wildcard pattern.
4807 * Makefile.in: Rebuild dependencies.
4808 (CFILES): Add fnmatch.c.
4809 (HFILES): Add fnmatch.h.
4810 (OFILES): Add fnmatch.o.
4811 * ld.texinfo: Document that file and section names can now be
4814 * ldlang.c (lang_place_orphans): Correct condition: place a common
4815 section if not relocateable or if common definitions are forced.
4817 Wed Jul 24 12:16:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4819 * emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
4821 Wed Jul 24 13:38:22 1996 Michael Meissner <meissner@wogglebug.tiac.net>
4823 * configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
4825 Tue Jul 23 10:36:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4827 * Makefile.in (ed10velf.c): New target.
4828 * configure.tgt (d10v-*-elf*): New target.
4829 * emulparams/d10velf.sh: New file.
4831 Thu Jul 18 16:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
4833 * configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
4834 <ANDREWG@microlise.co.uk>.
4836 * configure.host: Change irix5 to irix[56]*.
4837 * configure.tgt: Likewise.
4839 Wed Jul 17 10:52:46 1996 Kim Knuttila <krk@cygnus.com>
4841 * emultempl/pe.em (sort_sections): Pay attention to return code.
4843 * ldmisc.c (demangle): Remove all prefix '.'s from a name.
4845 Mon Jul 15 11:49:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4847 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round
4848 the value of __start_SECNAME to the alignment required by the
4849 section to be placed.
4851 Tue Jul 9 12:09:02 1996 Ian Lance Taylor <ian@cygnus.com>
4853 * configure.tgt (mips*el-*-elf*): Use elf32elmip.
4854 (mips*-*-elf*): Use elf32ebmip.
4855 * emulparams/elf32bmip.sh (EMBEDDED): Don't define.
4856 * emulparams/elf32lmip.sh (EMBEDDED): Don't define.
4857 * emulparams/elf32elmip.sh: New file; copy of elf32lmip.sh with
4859 * emulparams/elf32ebmip.sh: New file; copy of elf32bmip.sh with
4861 * emulparams/elf32b4300.sh (EMBEDDED): Define.
4862 * emulparams/elf32l4300.sh (EMBEDDED): Define.
4863 * Makefile.in (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
4864 (eelf32ebmip.c, eelf32elmip.c): New targets.
4866 Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
4868 * ldver.c (ldversion): Set version to cygnus-2.7.1.
4870 * Released binutils 2.7.
4872 * emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
4873 System V file name limitations.
4874 * configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
4875 pc532macha rather than pc532machaout.
4876 * Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
4878 (epc532macha.c): Rename target from epc532machaout.c.
4880 Wed Jul 3 11:40:10 1996 Ian Lance Taylor <ian@cygnus.com>
4882 * ldlang.c (print_padding_statement): Use %u, not %x, to print
4885 Sun Jun 30 11:16:43 1996 Stan Shebs <shebs@andros.cygnus.com>
4887 * mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
4889 Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
4891 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
4892 file just before the .so file, rather than just after.
4894 * configure.host: Use -print-file-name=FILE rather than piping
4895 -print-libgcc-file-name through sed.
4896 (i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
4897 crtend.o files, in case gcc doesn't use them.
4898 * Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
4900 Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
4902 * configure.tgt (mips*-dec-osf*): New target.
4904 Tue Jun 25 22:15:29 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
4906 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
4907 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
4909 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
4910 (AC_PROG_INSTALL): Added.
4911 * configure: Rebuilt.
4913 Mon Jun 24 18:48:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4915 * scripttempl/elfppc.sc (_GLOBAL_OFFSET_TABLE_): Don't do a
4916 PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
4919 Mon Jun 24 17:55:31 1996 Jouke Numan <jnuman@bazis.nl>
4921 * ldlang.h (enum section_type): Define.
4922 (lang_output_section_statement_type): Remove loadable field. Add
4924 (lang_enter_output_section_statement): Change flags parameter in
4925 prototype to sectype.
4926 * ldgram.y (typebits): Remove.
4927 (sectype): New static variable.
4928 (opt_at): Use sectype rather than typebits.
4929 (type): Set sectype rather than typebits.
4931 * ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
4933 * ldlang.c (lang_output_section_statement_lookup): Set sectype
4934 field rather than loadable field.
4935 (wild_doit): Check sectype rather than loadable.
4936 (lang_record_phdrs): Likewise.
4937 (lang_enter_output_section_statement): Rename flags parameter to
4938 sectype. Set sectype field rather than loadable field. Set flags
4939 field based on sectype.
4941 Mon Jun 24 12:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
4943 * scripttempl/elf.sc: Force .stab* and .comment sections to start
4946 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
4947 using shared libraries.
4948 * configure: Rebuild with autoconf 2.10.
4950 Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
4952 * configure.tgt: Add support for *-*-rtems* configurations.
4954 Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
4956 * configure.tgt (alpha-*-linuxecoff*): New target.
4957 (alpha-*-linux*): Use elf64alpha.
4958 * emulparams/elf64alpha.sh: New file.
4959 * emultempl/elf32.em: If ELFSIZE is not set, set it to 32. Use
4960 ${ELFSIZE} rather than 32 when calling BFD routines.
4961 (hold_rodata): New static variable.
4962 (gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
4963 readonly section that is not code.
4964 (gld${EMULATION_NAME}_place_section): Set hold_rodata. Don't use
4965 a .rel section unless its bfd_section field is not NULL.
4966 * Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
4967 (eelf64alpha.c): New target.
4969 Fri Jun 21 12:45:46 1996 Ian Lance Taylor <ian@cygnus.com>
4971 * ldmisc.c (vfinfo): Correct handling of 0 in %W case.
4973 Thu Jun 20 13:55:28 1996 Ian Lance Taylor <ian@cygnus.com>
4975 Add enough support to understand the gcc svr3.ifile script:
4976 * ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context. Add
4978 * ldgram.y: Add BIND token.
4979 (section): Recognize GROUP.
4980 (opt_ext_with_type): Recognize a couple of cases of BIND.
4981 * ldlang.c (init_os): Don't do anything if section is already
4982 initialized. Call exp_init_os on addr_tree field.
4983 (exp_init_os): New static function.
4984 (map_input_to_output_sections): Call exp_init_os on assignment
4986 (lang_place_orphans): Check for common sections by name COMMON
4987 rather than by common_section field. Don't warn about absence of
4990 * ldlang.h (lang_input_statement_type): Remove useless fields
4991 common_section, common_output_section, and complained, as well as
4992 all references to them.
4994 * ldexp.c: Reindent a lot of code.
4995 (exp_fold_tree): Call FAIL rather than einfo in default case.
4997 Wed Jun 19 11:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
4999 * configure.host (m88*-*-dgux*): Quote HOSTING_CRT0. From
5000 <randall.hron@medaphis.com>.
5002 Tue Jun 18 15:53:09 1996 Jeffrey A. Law <law@rtl.cygnus.com>
5004 * scripttempl/h8300s.sc: New file for H8/S.
5005 * emulpararms/h8300s.sh: New file for H8/S.
5006 * Makefile.in (ALL_EMULATIONS): Add H8/S.
5007 (e_h8300s.c): Add dependencies.
5008 * configure.tgt: Add H8/S to targ_extra_emuls.
5010 Tue Jun 18 17:55:39 1996 Ian Lance Taylor <ian@cygnus.com>
5012 * configure.tgt (i[345]86*-*-isc*): New target. From
5013 <uddeborg@carmen.se>.
5015 Wed Jun 12 12:46:21 1996 Ian Lance Taylor <ian@cygnus.com>
5017 * lexsup.c: Include "libiberty.h".
5018 (parse_args): Copy the -Y argument into memory.
5019 (set_default_dirlist): Don't put the ':' back into the directory
5022 Fri Jun 7 11:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
5024 * emultempl/sunos.em: Include libiberty.h.
5025 (gld${EMULATION_NAME}_set_symbols): New static function to add
5026 LD_LIBRARY_PATH to the list of search directories.
5027 (ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
5029 Thu Jun 6 11:50:31 1996 Ian Lance Taylor <ian@cygnus.com>
5031 * emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
5032 rather than . when computing _gp value. From Per Fogelstrom.
5033 * emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
5035 * ldmain.c (main): Don't close and unlink the file on error, since
5036 remove_output will do it anyhow.
5037 * ldlang.c (open_output): Set boolean variable to true, not 1.
5039 Wed Jun 5 18:34:14 1996 James G. Smith <jsmith@cygnus.co.uk>
5041 * emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
5042 elfmips instead of elf.
5044 Tue Jun 4 18:43:07 1996 Ian Lance Taylor <ian@cygnus.com>
5046 * ldcref.c: New file.
5047 * ld.h (add_cref, output_cref): Declare.
5048 * ldmain.c (main): Initialize notice_all field. If it is set at
5049 end of link, call output_cref.
5050 (notice): Rename from notice_ysym. Check notice_all.
5051 * ldmisc.c (finfo): Make globally visible.
5052 * ldmisc.h (finfo): Declare.
5053 * lexsup.c (OPTION_CREF): Define.
5054 (ld_options): Add "cref".
5055 (parse_args): Handle OPTION_CREF.
5056 * Makefile.in: Rebuild dependencies.
5057 (CFILES): Add ldcref.c.
5058 (OFILES): Add ldcref.o.
5059 * ld.texinfo, ld.1: Document --cref.
5061 Tue Jun 4 12:12:25 1996 Tom Tromey <tromey@csk3.cygnus.com>
5063 * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
5065 Fri May 31 12:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
5067 * emultempl/pe.em (sort_sections): Don't assume that a
5068 wild_statement has a section name.
5070 Wed May 29 13:13:35 1996 Ian Lance Taylor <ian@cygnus.com>
5072 * scripttempl/elfmips.sc: Quote test -z argument.
5074 * ld.texinfo: Clarify the CONSTRUCTORS command.
5076 Thu May 23 16:07:44 1996 Ian Lance Taylor <ian@cygnus.com>
5078 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
5081 Wed May 22 11:31:30 1996 Doug Evans <dje@seba.cygnus.com>
5083 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
5085 * emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
5086 (sort_by_section_name, sort_sections_1): New functions.
5087 (sort_sections): Only sort by file name sections in .idata.
5088 Add "Grouped Sections" support.
5089 (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
5091 (gld${EMULATION_NAME}_place_section): Delete.
5092 * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
5093 (.CRT,.rsrc): Rewrite to use Grouped Section support.
5095 Tue May 21 14:31:48 1996 Stan Shebs <shebs@andros.cygnus.com>
5097 * mpw-eppcmac.c: Update to reflect changes to aix.em.
5099 Sun May 19 16:59:44 1996 Doug Evans <dje@seba.cygnus.com>
5101 * ldlang.c (dprint_statement): Stop printing at end of list.
5103 Sat May 18 13:12:05 1996 Steve Chamberlain <sac@slash.cygnus.com>
5105 Support for --force-exe-suffix
5106 * ld.h (args_type): Add force_exe_suffix.
5107 * ld.texinfo: Add documentation.
5108 * ldmain.c (main): Add support for option.
5109 * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
5110 (ld_options, parse_args): Add support for option.
5112 Wed May 15 12:50:25 1996 Jim Wilson <wilson@chestnut.cygnus.com>
5114 * emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
5116 Fri May 10 16:28:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5118 * scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
5119 referenced but not defined.
5121 Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
5123 * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
5124 Set a new variable to signify if the final target is an embedded
5126 * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
5127 .text for an embedded system.
5129 Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
5131 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
5132 (gld${EMULATION_NAME}_place_section): New function.
5133 (hold_{section,use,text,rdata,data}): New static locals.
5134 (ld_${EMULATION_NAME}_emulation): Update orphan field.
5135 * scripttempl/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
5136 (INIT,FINI): Delete, unused.
5137 (.text): Document orphan .text.foo sections.
5138 (.rdata): Document orphan .rdata.foo sections.
5139 (.data): Document orphan .data.foo sections.
5141 Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
5143 * scripttempl/h8300.sc: Place ".tiny" sections right
5144 after ".data" sections.
5145 * scripttempl/h8300h.sc: Place ".tiny" sections into
5146 the "tiny" memory region, 0xff8000 through 0xffff00.
5148 * scripttempl/h8300.sc: Set the entry point to the value of
5149 "_start" rather than the start of the text segment.
5150 * scripttempl/h8300h.sc: Likewise.
5152 * scripttempl/h8300.sc: Place .rodata sections before .text
5153 sections in main ram.
5154 * scripttempl/h8300h.sc: Likewise.
5156 Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
5158 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
5159 8-bit region and 8-bit sections.
5161 Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
5163 * ldlang.c (section_already_linked): Fix typos.
5165 Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
5167 * scripttempl/pe.sc (.endjunk): Define __end__.
5169 Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
5171 * ldlang.c (longest_section_name): Remove.
5172 (SECTION_NAME_MAP_LENGTH): Define.
5173 (print_size, print_alignment, print_fill, print_section): Remove.
5174 (print_flags): Remove.
5175 (lang_map): Rewrite.
5176 (print_output_section_statement): Rewrite.
5177 (print_assignment): Rewrite.
5178 (print_one_symbol): Rewrite.
5179 (print_input_section): Rewrite.
5180 (print_fill_statement): Rewrite.
5181 (print_data_statement): Rewrite.
5182 (print_address_statement): New static function.
5183 (print_reloc_statement): Rewrite.
5184 (print_padding_statement): Rewrite.
5185 (print_wild_statement): Rewrite.
5186 (print_statement_list): Clean up.
5187 (print_statement): Clean up. Some minor output changes.
5188 (print_statements): Clean up.
5189 (load_symbols): Put another - before -whole-archive.
5190 * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
5191 print 0x and to omit leading zeroes. For etree_rel, use %B to
5192 print the BFD. For etree_assign, remove the space after the
5194 * ldwrite.c: Include "libiberty.h".
5195 (clone_section): Call xstrdup, not strdup.
5196 (ldwrite): Don't print any map information.
5197 (print_symbol_table, print_file_stuff, print_symbol): Remove.
5198 * ldmain.c (main): Call lang_map when appropriate.
5199 * ldmisc.c (vfinfo): Add support for %W.
5200 (print_address): Remove.
5201 * ldmisc.h (print_address): Don't declare.
5202 * Makefile.in: Rebuild dependencies.
5204 Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5206 * configure.host (m68*-*-linux*): Add -dynamic-linker to
5207 HOSTING_CRT0. Search -lgcc both before and after -lc in
5208 HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
5210 (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
5213 Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
5215 * ldmisc.h (demangle): Declare.
5216 * ldmisc.c: Include "libiberty.h". Include demangle.h with "",
5218 (demangle): Make non-static. Remove remove_underscore paramter.
5219 Always return an allocated string.
5220 (vfinfo): Free result of demangle. Add case 'G'. Use %T to print
5221 functionname, rather than calling demangle. Print a colon between
5222 the BFD(section+offset) and the line number.
5223 * ldmain.c (add_archive_element): Improve format of archive
5224 information in map file.
5225 (constructor_callback): Don't print anything to the map file.
5226 * ldlang.c (lang_one_common): Improve format of common symbol
5227 information in map file.
5228 * ldctor.c (ldctor_build_sets): If producing a map file, print set
5230 * ldwrite.c (print_symbol_table): Print a newline before the
5231 header in the map file.
5232 * Makefile.in: Rebuild dependencies.
5234 * ldmisc.c (vfinfo): Reindent.
5236 Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
5238 * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
5239 don't clobber it when not relaxing.
5241 * ld.h (ld_config_type): Remove traditional_format field.
5242 * ldmain.c (main): Use link_info.traditional_format rather than
5243 config.traditional_format.
5244 * ldlang.c (ldlang_open_output): Likewise.
5245 * lexsup.c (parse_args): Likewise.
5246 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
5247 * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
5249 * ldlang.c (wild_doit): Discard debugging sections if we are
5250 stripping debugging information.
5252 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
5254 Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
5256 * ldexp.c (fold_binary): Correct handling of subtraction with
5258 (fold_name): Permit symbols in lang_allocating_phase_enum.
5260 * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
5261 accidental changes in last patch.
5263 Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5265 * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
5266 (powerpcle*-*-{sysv,solaris}): Ditto.
5268 Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
5270 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
5271 in m68k/crt0.S without things blowing up.
5273 Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
5275 * scripttempl/m68kcoff.sc: Remove default address for .data so
5276 .text, .data, and .bss are all sequential.
5278 Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
5280 * scripttempl/m68kcoff.sc: Remove regions and simplify.
5282 Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
5284 * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
5285 bytes of the address space. Put data from the ".eight" sections
5286 into the 8-bit area.
5287 * scripttempl/h8300h.sc: Likewise.
5289 Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
5291 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
5292 Pass $ARCH to ldfile_set_output_arch instead of setting
5293 ldfile_output_architecture directly.
5295 Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5297 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
5298 next to .text. Put _etext after .text, .init, .fini, and
5299 .rodata{,2} sections.
5301 Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
5303 * ld.texinfo: Rearrange option documentation.
5305 * lexsup.c (ld_options): New static array.
5306 (parse_args): Build shortopts and longopts from ld_options array.
5307 (help): New static function.
5308 * ldver.h (help): Don't declare.
5309 * ldver.c (ldversion): Reindent.
5312 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
5314 Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
5316 * emultempl/elf32.em: When checking for a native emulation, check
5317 that the current emulation is the default emulation.
5318 * emultempl/sunos.em: Likewise.
5320 * configure.in: Permit --enable-shared to specify a list of
5322 * configure: Rebuild.
5324 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
5325 for HP/UX compatibility.
5327 Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
5329 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
5330 static function, if ${host} = ${target}.
5331 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
5332 needed shared library if ${host} = $[target}.
5334 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
5335 HOSTING_CRT0. Search -lgcc both before and after -lc in
5338 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
5339 Polstra <jdp@polstra.com>.
5341 Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
5343 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
5344 architecture number.
5345 * scripttempl/elf.sc: Use $MACHINE definition if present.
5346 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
5349 Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
5351 * ldlang.c (lang_size_sections): Change region check to handle
5352 regions which end at the highest possible address correctly.
5353 From Roland Weber <roweber@ira.uka.de>.
5355 * ldlang.c (section_already_linked): New static function.
5356 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
5357 relocateable link. Don't worry about section being NULL, since it
5358 never should be. Don't call init_os unless the section is going
5360 (ldlang_add_file): Call section_already_linked for each section.
5361 * ldmain.c (multiple_definition): Don't warn about multiple
5362 definitions in sections which are being discarded.
5364 Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
5366 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
5367 * emultempl/pe.em (init): Remove special case PPC code.
5369 Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
5371 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
5372 so as not to overwrite the magic syscall entry at 0xc4.
5373 * scripttempl/h8300h.sc: Likewise.
5375 Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
5377 * configure.tgt (sparc64-*-solaris2*): Delete.
5378 Stick with sparc-*-solaris2*.
5380 Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
5382 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
5383 * ldlang.c (init_os): Fail on an attempt to initialize any section
5384 named DISCARD_SECTION_NAME.
5385 (wild_doit): Discard input sections assigned to an output section
5386 named DISCARD_SECTION_NAME.
5387 * ld.texinfo: Document use of /DISCARD/.
5389 * ldlang.c: Fix some indentation and comments.
5391 Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
5393 * ldmain.c (main): Call bfd_set_error_program_name.
5395 Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
5397 * ld.texinfo: Fix a couple of indexing entries. Mention that
5398 --verbose displays builtin linker scripts.
5400 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
5401 and the local symbol name does not match the filename, print the
5404 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
5405 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
5406 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
5409 Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5411 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
5413 Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
5415 * ldmain.c (add_wrap): New function.
5416 * ldmain.h (add_wrap): Declare.
5417 * lexsup.c (parse_args): Call add_wrap.
5419 Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
5421 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
5423 Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
5425 * scripttempl/h8300.sc: Change name of page zero memory
5426 from "null" to "vectors". Create an output section for
5427 vectors. Add comments on how to explicitly place items
5428 in the vector table.
5429 * scripttempl/h8300h.sc: Likewise.
5431 Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
5433 * emultempl/lnk960.em (machine_table): Add jx and hx.
5435 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
5438 Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
5440 * ld.h (ld_config_type): Add warn_multiple_gp field.
5441 * lexsup.c (parse_args): Handle --warn-multiple-gp.
5442 * ldmain.c (warning_callback): Suppress multiple gp values warning
5443 if --warn_multiple_gp was not used.
5444 * ld.texinfo, ld.1: Document --warn-multiple-gp.
5446 Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
5448 * lexsup.c (parse_args): Handle --wrap.
5449 * ldmain.c (main): Initialize link_info.wrap_hash.
5450 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
5452 * ld.texinfo, ld.1: Document --wrap.
5454 * configure: Rebuild with autoconf 2.8.
5456 Don't do SunOS style dynamic linking for sparc-aout:
5457 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
5458 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
5459 (sparc*-wrs-vxworks*): Likewise.
5460 * emulparams/sparcaout.sh: New file.
5461 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
5462 (esparcaout.c): New target.
5464 Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
5466 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
5467 in a different manner to work around differences in shell variable
5470 Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
5472 * ldemul.h (ldemul_unrecognized_file): Declare.
5473 (ldemulation_xfer_type): Add unrecognized_file field.
5474 * ldemul.c (ldemul_unrecognized_file): New function.
5475 * ldlang.c (load_symbols): If a file can not be recognized, call
5476 ldemul_unrecognized_file before trying it as a linker script.
5477 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
5479 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
5480 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
5482 Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
5484 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
5485 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
5487 Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5489 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
5490 Search trinary.cond rather than searching trinary.lhs twice.
5492 Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
5494 * mpw-make.sed: Edit out shared library support.
5495 (@TDIRS@): Edit out, can't use genscripts.
5497 Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5499 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
5500 * emulparams/m68klinux.sh: New file.
5501 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
5502 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
5503 bfd_linux_size_dynamic_sections.
5504 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
5505 (em68klinux.c): New target.
5506 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
5508 Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
5510 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
5511 Fill in missing entries.
5513 * lexsup.c (parse_args): Recognize --no-whole-archive.
5514 * ldlang.h (lang_input_statement_type): Add whole_archive field.
5515 * ldlang.c (new_afile): Set whole_archive field.
5516 (load_symbols): Check input file specific whole_archive field
5517 rather than global variable.
5518 * ld.texinfo, ld.1: Document --no-whole-archive.
5520 Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
5522 * configure.tgt: Correct gldi960 to gld960.
5524 Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
5526 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
5527 the SONAME if it is available.
5528 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
5529 filename, when checking for conflicting library versions. Don't
5530 assume that the suffix is only numbers and dots.
5532 * ld.texinfo: Mention that -R can be used for -rpath.
5534 Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
5536 * configure.host: Check for 'do not mix' from native linker before
5537 trying to use -rpath.
5539 Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
5541 * configure.in: Remove explicit substitution of CFLAGS; autoconf
5543 * configure: Rebuild.
5544 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
5546 * configure.in: Call AC_PROG_CC before configure.host.
5547 * configure: Rebuild.
5548 * configure.host: Remove go32 host, since it should no longer be
5549 necessary. Don't set CC for romp host.
5551 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
5552 the text segment ends exactly on a page boundary.
5554 * configure.in: Substitute RPATH_ENVVAR.
5555 * configure: Rebuild.
5556 * configure.host: Set RPATH_ENVVAR.
5557 * Makefile.in (RPATH_ENVVAR): New variable.
5558 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
5560 Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
5562 * configure.in: Redo emulation handling so that each emulation
5563 searches the correct tool directory, based on the target alias.
5564 For example, "configure --enable-targets=m68k-coff i386-linux"
5565 will search /usr/local/i386-linux/lib for linux and
5566 /usr/local/m68k-coff/lib for m68k-coff.
5567 * configure: Rebuild.
5568 * configure.tgt: Add special tdir settings for Linux.
5569 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
5570 for each eEMUL.c target.
5571 * genscripts.sh: Accept specific alias as 9th argument, and use it
5574 Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
5576 * ldlang.c (lang_set_startof): Don't do anything for a
5579 * ldgram.y (mri_script_file): Call mri_draw_tree.
5580 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
5581 create memory regions.
5582 (mri_load): Don't call mri_draw_tree.
5583 * mri.h (mri_draw_tree): Declare.
5585 * configure.tgt (m68*-*-psos): New target.
5586 * emulparams/m68kpsos.sh: New file.
5587 * scripttempl/psos.sc: New file.
5588 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
5589 (em68kpsos.c): New target.
5591 Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
5593 * configure.tgt (*-*-ieee*): New target; use vanilla.
5595 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
5596 `:foo' from ${ARCH}.
5598 Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
5600 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
5603 Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
5605 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
5607 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
5608 it looks like we might be linking in two different versions of the
5609 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
5611 Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
5613 * ldlang.c (lang_size_sections): Increment the section size when a
5614 padding statement is encountered.
5616 Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
5618 * configure.in: Look for --enable-shared. Change the value of
5619 BFDLIB when linking against a shared library on SunOS.
5620 * configure: Rebuild.
5621 * configure.host: If using a shared BFD library, try to pass a
5622 reasonable -rpath option when linking.
5623 * Makefile.in (BFDLIB): Set to @BFDLIB@.
5625 Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
5627 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
5628 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
5630 Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
5632 Support for building bfd and opcodes as shared libraries, based on
5633 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
5634 * configure.in (HLDFLAGS): New substitution.
5635 * configure: Rebuild.
5636 * configure.host: Set HLDFLAGS on SunOS.
5637 * Makefile.in (HLDFLAGS): New variable.
5638 (BFDDEP): New variable.
5639 (BFDLIB): Change to -L../bfd -lbfd.
5640 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
5641 $(HLDFLAGS) in link.
5642 (check): Set LD_LIBRARY_PATH in the environment.
5644 Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
5646 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
5647 in the read-only section, not read/write unless we are making a
5649 (.debug*): Add dwarf debug sections.
5650 (.rela.{sdata*,sbss*}): Add sections.
5652 Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
5654 * configure: Regenerate.
5656 Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
5658 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
5659 for SVR4 compatibility.
5661 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
5663 Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
5665 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
5666 * emultempl/pe.em (definfo init): Make the default stack reserve
5669 Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
5671 * configure.tgt (m68*-apple-aux*): New target.
5672 * emulparams/m68kaux.sh: New file.
5673 * scripttempl/m68kaux.sc: New file.
5674 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
5675 (em68kaux.c): New target.
5677 Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
5679 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
5680 -bnoentry, since the right thing tends to happen anyhow.
5682 Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
5684 * ld.texinfo, ld.1: Document -export-dynamic.
5686 Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5688 * emultempl/sunos.em: Check for native compile by comparing
5689 ${target} and ${host}.
5691 Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
5693 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
5694 TEXT_START_ADDR to allow use on IDT and PMON systems.
5696 Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
5698 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
5701 Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
5703 * configure.tgt (sparc64-*-solaris2*): New configuration.
5704 (sparc64-*-aout*): Renamed from sparc64*.
5706 Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5708 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
5709 * genscripts.sh: Set host, target and target_alias variables.
5710 Check for native compile by comparing ${target} and ${host}.
5711 * emultempl/elf32.em: Likewise.
5712 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
5714 Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5716 * scripttempl/elfppc.sc: Refine eabi support to better support
5717 .sdata, .sdata2, .sbss, etc. sections.
5719 Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
5721 * ldgram.y (%union): Add phdr field.
5722 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
5723 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
5724 (opt_hdrs, hdr): Remove.
5725 (phdr_val): New nonterminal.
5726 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
5727 and phdrs parameters. Add flags parameter.
5728 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
5730 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
5731 phdrs fields. Add flags field.
5732 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
5733 (lang_new_phdr): Update declaration.
5734 * ld.texinfo: Document FLAGS.
5736 Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
5738 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
5739 Don't make a shared library because of an undefined reference to
5740 __GLOBAL_OFFSET_TABLE_.
5742 Add some Irix 5 support, mostly from Kazumoto Kojima
5743 <kkojima@info.kanagawa-u.ac.jp>:
5744 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
5745 (SHLIB_TEXT_START_ADDR): Define.
5746 (OTHER_GOT_SYMBOLS): Define.
5747 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
5748 (EXECUTABLE_SYMBOLS): Don't define.
5749 (DYNAMIC_LINK): Don't define.
5750 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
5751 * scripttempl/elfmips.sc: New file.
5752 * configure.host (mips*-dec-bsd*): Change mips to mips*.
5753 (mips*-sgi-irix4*): Likewise.
5754 (mips*-sgi-irix5*): New entry.
5755 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
5757 (eelf32lmip.c): Likewise.
5759 Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5761 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
5762 .rela.got.neg section.
5764 Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
5766 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
5768 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
5769 ANSI_PROTOTYPES is defined. Remove special handling of
5770 WINDOWS_NT. Various indendation fixes.
5771 (vfinfo): Change fmt parameter to const char *.
5772 (info_msg): Write <stdarg.h> version.
5773 (einfo, minfo, finfo): Likewise.
5774 (info_assert): Change file parameter to const char *.
5775 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
5776 defined, use a real prototype.
5777 (info_assert): Change first parameter to be const char *.
5779 Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5781 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
5782 in old support that 2.7.2 needs, but the current compiler does
5785 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
5786 correct Linker script template.
5788 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
5790 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
5792 Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
5794 * scripttempl/alpha.sc: Put .rconst right after .rdata.
5796 Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
5798 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
5799 sort using right pointer.
5801 Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5803 * scripttempl/elfppc.sc: Remove support for creating special
5804 labels for eabi section begin/end here. The compiler now uses
5805 crt{i,n}.o to create these symbols.
5807 Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
5809 * configure.host: Change existing Linux HOSTING_CRT0 to be used
5810 for a.out only, and put in appropriate HOSTING_CRT0 and
5811 HOSTING_LIBS values for Linux ELF.
5813 Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
5815 * scripttempl/h8300.sc: Use all 64K for ram.
5816 * scripttempl/h8300h.sc: Define 256K ram size.
5818 Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
5820 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
5821 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
5822 was used, regardless of whether -bE was used.
5824 Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
5826 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
5827 relocateable before calling ldctor_build_sets if the output file
5828 is in an XCOFF format.
5830 Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
5832 * ldwrite.c (build_link_order): When handling a data statement, if
5833 the endianness of the output file is unknown, use the endianness
5836 Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
5838 * mpw-config.in: Recognize mips-*-* as equivalent to
5840 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
5841 * mpw-ld.r: Add version resources.
5842 (cfrg): Use symbolic instead of literal name for executable.
5844 Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
5846 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
5848 Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
5850 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
5851 (print_statement_list): Renamed from print_statement. All callers
5853 (print_statement): New function to print just one statement.
5854 (print_{data,reloc,padding}_statement): Don't crash if
5855 output_section == NULL.
5856 (dprint_statement): New function.
5858 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
5859 call to sort_sections.
5861 Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
5863 * emultempl/aix.em (unix_ld): New static variable.
5864 (gld${EMULATION_NAME}_parse_args): Handle -unix.
5865 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
5866 gc as false and export_defineds as true to size_dynamic_sections.
5868 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
5869 phase if the current section is abs_output_section.
5872 Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
5874 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
5877 Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
5879 * ldgram.y (PHDRS): New token.
5880 (ifile_p1): Accept phdrs.
5881 (section): Accept phdr_opt at the end of the section definition.
5882 (phdr_op): New nonterminal.
5883 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
5884 * ldlex.l: Accept PHDRS.
5885 * ldlang.h (struct lang_output_section_phdr_list): Define.
5886 (lang_output_section_statement_type): Add phdrs field.
5887 (struct lang_phdr): Define.
5888 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
5889 (lang_new_phdr): Declare.
5890 * ldlang.c (lang_phdr_list): New static variable.
5891 (lang_output_section_statement_lookup): Initialize phdrs field.
5892 (lang_process): Call lang_record_phdrs.
5893 (lang_new_phdr): New function.
5894 (lang_section_in_phdr): New function.
5895 (lang_record_phdrs): New static function.
5896 * ld.texinfo: Document PHDRS.
5898 Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
5900 * scripttempl/ppcpe.sc: Moved .edata into its own section to
5903 Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5905 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
5906 HOSTING_LIBS for testing.
5907 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
5910 Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
5912 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
5915 Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
5917 * configure: Rebuild with autoconf 2.7.
5919 Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
5921 * scripttempl/pe.sc: Two .junk's is too much junk.
5923 Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
5925 * configure.in: Use BFD_NEED_DECLARATION.
5926 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
5927 * configure, config.in: Rebuild with autoconf 2.6.
5929 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
5930 being unsupported if this is not a relocateable link and the input
5931 BFD supports it, since ldctor_build_sets can cope with that case.
5933 Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
5935 * configure.tgt (powerpc-*-macos*): New target.
5936 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
5937 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
5938 (eppcmacos.c): New target.
5939 * mpw-eppcmacos.c: Update.
5940 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
5942 Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
5944 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
5945 $(host_canonical) and $(target_canonical).
5946 (CXX_FOR_TARGET): Likewise.
5948 Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
5950 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
5951 so the malloc heap begins at a sane place.
5953 Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
5955 Version 2.6 released.
5956 * ldver.c (ldversion): Update to 2.6.
5958 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
5959 $(GENERATED_*FILES), since they need to be retained by distclean.
5960 (maintainer-clean, realclean): Delete them here.
5962 Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
5964 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
5965 base file with FOPEN_WB, not "w".
5967 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
5968 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
5970 (gld${EMULATION_NAME}_before_allocation): Use the environment
5971 variable LD_RUN_PATH if -rpath was not used.
5972 * ld.texinfo, ld.1: Document LD_RUN_PATH.
5974 Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
5976 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
5977 -bl and -bloadmap options.
5979 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
5980 report a better error.
5982 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
5983 new local variable special_sections, and pass it to
5984 size_dynamic_sections. Look through the results, and move the
5985 sections around in the mapping so that they are defined correctly.
5987 Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
5989 * ldemul.c (ldemul_default_target): Cast getenv return value.
5991 Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
5993 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
5995 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
5998 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
5999 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
6001 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
6002 (gld_$_before_allocation): added hooks for toc construction based
6005 Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
6007 * ld.texinfo: The linker does not use _main as an entry point.
6009 Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
6011 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
6014 Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
6016 * configure.in: Add test for whether free must be declared.
6017 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
6018 * acconfig.h: Explain NEED_DECLARATION_FREE.
6019 * configure, config.in: Rebuild.
6021 * lexsup.c (parse_args): Take B:: out of shortopts.
6023 Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
6025 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
6026 for now, as with m68k4kbsd, until shared library support gets
6029 * configure.host: For i386 BSD variants, crt0.o lives in
6030 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
6032 Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
6034 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
6035 (edelta68.c): New target.
6036 * configure.tgt (m68*-motorola-sysv*): New target.
6037 * emulparams/delta68.sh: New file.
6038 * scripttempl/delta68.sc: New file.
6040 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
6043 Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
6045 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
6046 ALIGN and ALIGNMOD statements.
6048 * emultempl/aix.em: Include ldgram.h.
6049 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
6051 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
6053 Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
6055 * configure.host (alpha-*-linux*): New host.
6056 * configure.tgt (alpha-*-linux*): New target.
6058 Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
6060 * emultempl/aix.em (export_files): Remove.
6061 (import_files): Make static.
6062 (struct export_symbol_list): Define.
6063 (export_symbols): New static variable.
6064 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
6065 correctly. Call read_file for an export file.
6066 (gld${EMULATION_NAME}_before_allocation): Call
6067 bfd_xcoff_export_symbol for each export symbol, rather than
6068 calling read_file for each export file.
6069 (gld${EMULATION_NAME}_read_file): For an export file, make the
6070 exported symbols undefined, and store them on the export_symbols
6073 Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
6075 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
6076 Don't hang if last option is unrecognised.
6077 (gld_${EMULATION_NAME}_set_symbols): Insert created
6078 symbols into ABS output section.
6080 Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
6082 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
6084 (em68k4knbsd.c): New rule.
6086 * configure.tgt: Added support for the NetBSD m68k4k arch.
6088 * genscripts.sh, ldint.texinfo,
6089 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
6090 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
6091 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
6092 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
6093 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
6094 pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
6095 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
6096 PAGE_SIZE to TARGET_PAGE_SIZE.
6098 * emulparams/m68knbsd.h: Ditto.
6099 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
6100 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
6103 * emulparams/m68k4knbsd.sh: New file.
6105 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
6107 Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
6109 * emultempl/aix.em: Include ldctor.h.
6110 (gld${EMULATION_NAME}_after_open): New static function.
6111 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
6112 (gld${EMULATION_NAME}_find_relocs): New static function.
6113 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
6114 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
6115 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
6116 * ldctor.c (struct set_info): Move definition into ldctor.h.
6117 (struct set_element): Likewise.
6118 (sets): Make non-static.
6119 (ldctor_add_set_entry): Add name parameter. Save it in the new
6121 (ldctor_build_sets): Avoid being called twice. Pass set element
6122 name to lang_add_reloc.
6123 * ldctor.h (struct set_info): Move definition here from ldctor.c.
6124 (struct set_element): Likewise. Add new field name.
6126 (ldctor_add_set_entry): Declare new name parameter.
6127 * ldwrite.c (build_link_order): Don't insist that either name or
6128 section be NULL in a lang_reloc_statement.
6129 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
6131 (constructor_callback): Pass name to ldctor_add_new_set_entry for
6134 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
6136 Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
6138 * mpw-config.in: Add PowerMac target support, generate config.h.
6139 * mac-ld.r: New file, Mac resources.
6140 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
6141 * mpw-make.in: Remove.
6142 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
6144 Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
6146 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
6147 -static as a synonym for -bnso.
6149 * scripttempl/aix.sc: Move special symbols inside sections.
6150 Always start .data at 0.
6152 Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
6154 * Makefile.in (diststuff): Also make info.
6155 (maintainer-clean realclean): Also delete *.info*.
6157 Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
6159 * emultempl/aix.em: Add support for various AIX linker options,
6160 for AIX import and export files, and for AIX shared objects.
6161 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
6163 * ldmain.c (main): Initialize new field link_info.static_link.
6165 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
6166 (constructor_callback): Likewise.
6167 * ldmisc.c (vfinfo): Likewise.
6168 * ldwrite.c (build_link_order): Likewise.
6170 * ld.texinfo: The MRI ALIGN directive is supported.
6172 Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
6174 * emulparams/elf32vr4300.sh: Deleted.
6175 * emulparams/elf32vr4300el.sh: Deleted.
6176 * emulparams/elf32b4300.sh: Added.
6177 * emulparams/elf32l4300.sh: Added.
6178 * configure.tgt, Makefile.in: Updated the build to use the
6179 new 8.3 unique names.
6181 Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
6183 * ldlang.c (entry_symbol): Make non-static.
6184 * ldlang.h (entry_symbol): Declare.
6186 * ldlex.l: Treat PROVIDE as a keyword in expression state.
6188 Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
6190 * scripttempl/pe.sc (.bss): Move to be after .text
6192 Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
6194 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
6195 Search trinary.cond rather than searching trinary.lhs twice. From
6196 linli@ihp.PHys.ethz.CH.
6198 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
6199 directory searching code into gld${EMULATION_NAME}_search_dir.
6200 (gld${EMULATION_NAME}_search_dir): New static function, extracted
6201 from gld${EMULATION_NAME}_find_so.
6202 (global_needed, global_found): New static variables.
6203 (gld${EMULATION_NAME}_after_open): New static function.
6204 (gld${EMULATION_NAME}_search_needed): New static function.
6205 (gld${EMULATION_NAME}_try_needed): New static function.
6206 (gld${EMULATION_NAME}_check_needed): New static function.
6207 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
6208 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
6210 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
6211 (eelf32lppc.c): Likewise.
6212 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
6213 (GENERATE_SHLIB_SCRIPT): Define as yes.
6215 Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
6217 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
6218 bfd_link_needed-list; make appropriate changes.
6220 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
6221 (rs6000-*-aix*): New target; use aixrs6.
6222 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
6223 * emultempl/aix.em: New file.
6224 * scripttempl/aix.sc: New file.
6225 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
6226 (eaixppc.c, eaixrs6.c): New targets.
6228 Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
6230 * scripttemp/pe.sc (.reloc): Move to the end.
6232 Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
6234 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
6235 section which was not linked into the final output.
6237 Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
6239 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
6242 Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
6244 * ld.h (args_type): Add rpath_link field.
6245 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
6246 required dependencies in rpath_link path. Only search
6247 LD_LIBRARY_PATH when configured native.
6248 * lexsup.c (parse_args): Recognize -rpath-link.
6249 * ld.1, ld.texinfo: Document -rpath-link.
6251 Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
6253 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
6254 bother searching for needed libraries unless doing a final link.
6256 Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
6258 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6260 * ld/ld.1: Fix formatting bugs.
6262 Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
6264 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
6265 * ldexp.h (exp_get_abs_int): Update declaration.
6266 * ldlang.c (print_output_section_statement): Use fprintf_vma to
6267 print return value of exp_get_abs_int.
6269 Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
6271 * emultempl/elf32.em (global_stat): New file static variable.
6272 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
6273 that the file has not already been included under another name.
6274 (gld${EMULATION_NAME}_stat_needed): New static function.
6276 Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
6278 * scripttempl/armcoff.sc: Start .text at 0x8000.
6279 Start .data at 0x40000.
6281 Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
6283 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
6284 command_line.rpath is set, use it, rather than the -L options, to
6285 build the rules section.
6286 * ld.texinfo: Document this use of -rpath.
6288 * lexsup.c (parse_args): Don't set link_info.shared for -assert
6289 pure-text. Pass true, not 1, to lang_add_entry.
6290 * emultempl/sunos.em (find_assign): New static variable.
6291 (found_assign): New static variable.
6292 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
6293 If not a relocateable link, and no start symbol was specified on
6294 the command line, and there are any undefined symbols, set
6295 link_info.shared. If link_info.shared is set, set the address of
6296 the .text section to 0x20.
6297 (gld${EMULATION_NAME}_find_assignment): Rename from
6298 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
6299 set, then just set found_assign based on whether an assignment is
6300 found to find_assign.
6301 (gld${EMULATION_NAME}_get_script): Don't use a special script when
6302 producing a shared library.
6303 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
6304 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
6305 * ldlang.c (entry_from_cmdline): New global variable.
6306 (lang_add_entry): Change cmdline parameter from int to boolean.
6307 Use global entry_from_cmdline rather than function static
6309 * ldlang.h (entry_from_cmdline): Declare.
6310 (lang_add_entry): Change declaration of second parameter from int
6312 * ldgram.y: Pass false, not 0, to lang_add_entry.
6314 Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
6316 * ld.h (parsing_defsym): Declare.
6317 * ldlex.h (lex_string): Declare.
6318 * ldlex.l (lex_string): Define.
6319 * lexsup.c (parsing_defsym): Define.
6320 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
6321 lex_redirect, and clear it after calling yyparse. Set
6322 parsing_defsym around call to yyparse.
6323 * ldmain.c (main): Set lex_string before calling lex_redirect, and
6324 clear it after calling yyparse.
6325 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
6326 in linker scripts correctly.
6328 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
6329 COFF targets, allowing for the leading underscore used on SPARC
6332 * lexsup.c (parse_args): Handle -assert.
6333 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
6334 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
6335 shared library script when appropriate.
6336 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
6337 section at SIZEOF_HEADERS.
6339 Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
6341 * Makefile.in (earmcoff.c): Build.
6342 * configure.tgt (arm-*-coff): New target
6343 * emulparms/armcoff.sh: New file.
6344 * scripttempl/armcoff.sc: New file.
6346 Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
6348 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
6350 Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
6352 * ldfile.c (ldfile_set_output_arch): Make arch const.
6354 Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6356 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
6357 beginning of the .bss area, not at the end of data. Add
6358 __sbss_{start,end} symbols.
6360 Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
6362 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
6363 (CXX_FOR_TARGET, install): Likewise.
6365 Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
6367 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
6368 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
6369 (CXX_FOR_TARGET): Likewise.
6370 (install): Likewise.
6371 (GENERATED_HFILES): Remove config.h.
6372 (.dep): Depend upon config.h.
6374 Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
6376 * configure.tgt (mips*-dec-netbsd*): New target.
6378 Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
6380 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
6382 Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
6384 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
6386 Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
6388 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
6389 Start .text section on the right boundary. Always align
6392 Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
6394 * Makefile.in (maintainer-clean): New target.
6396 * ldmain.c (struct warning_callback_info): Define.
6397 (warning_callback): Add new parameter symbol. Call
6398 warning_find_reloc to try to find the section and VMA.
6399 (warning_find_reloc): New static function.
6400 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6401 Pass NULL as symbol parameter to warning callback.
6403 * ld.texinfo: Clarify -L option.
6405 * ldlang.c (lang_one_common): Add cast to avoid warning.
6406 (topower): Likewise. Also, reindent.
6407 * ldwrite.c (clone_section): Change i to unsigned int.
6408 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
6409 cast to avoid warning.
6411 Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
6413 * Makefile.in (config.status): Depend upon configure.tgt.
6415 * ldemul.h (ldemul_set_symbols): Declare.
6416 (ldemul_parse_args): Declare.
6417 * ldemul.c (ldemul_parse_args): Fix indentation.
6419 * configure.in: Call AC_HEADER_DIRENT.
6420 * configure, config.in: Rebuild.
6421 * emultempl/sunos.em: Use autoconf recommend mechanism to define
6422 DIR and struct dirent.
6424 * configure.tgt (mips*-*-bsd*): New case.
6426 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
6428 * configure.tgt (i[345]86-*-ptx*): New case.
6430 Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
6432 * config.in: Rename from config.h.in.
6433 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
6434 Check for config.h:config.in when creating stamp-h.
6435 * configure: Rebuild.
6436 * Makefile.in (stamp-h): Depend upon config.in rather than
6437 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
6438 calling config.status.
6440 * Makefile.in (distclean): Remove config.h and stamp-h.
6442 * configure.host (sparc-*-sunos64*): Remove.
6443 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
6445 * ldexp.c (exp_fold_tree): Don't warn about moving the location
6446 counter backward in the absolute section.
6448 Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
6450 * configure.in: Rewrite to use autoconf.
6451 * configure.host: New file.
6452 * configure.tgt: New file.
6453 * aclocal.m4: New file.
6454 * configure: New file, built by autoconf.
6455 * acconfig.h: New file.
6456 * config.h.in: New file, built by autoheader.
6457 * sysdep.h: New file.
6458 * ld.h: Incorporate old contents of config.h.
6460 * Makefile.in: Various changes for new configure script. Also:
6461 (CC_FOR_BUILD): Remove.
6462 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
6463 (dep.sed): Use @SRCDIR@, not @srcdir@.
6464 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
6465 * genscripts.sh: Create ldscripts if it does not exist.
6466 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
6467 * mpw-esh.c, emultemp/*.em: Likewise.
6468 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
6470 * config/*.mt, config/*.mh: Remove.
6472 Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
6474 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
6475 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
6477 Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
6479 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
6481 Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
6483 * ldmain.c (warning_callback): Add abfd, section, and address
6485 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6486 Change call to warning accordingly.
6488 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
6489 relocateable and not shared, put .gnu.warning.SYMBOL sections into
6492 Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
6494 * configure.in: Added mips*vr4300-idt-elf* and
6495 mips*vr4300el-idt-elf* targets.
6496 * Makefile.in: Added eelf32vr4300* targets.
6497 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
6498 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
6500 Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
6502 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
6503 <brendan@cygnus.com>.
6505 Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
6507 * ldemul.c (ldemul_parse_args): New.
6508 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
6509 * lexsup.c (all pe stuff): Moved into pe.em
6510 (parse_args): Call emulation arg parser.
6511 * emultempl/pe.em (parse_args): handle PE specfic args.
6513 Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
6515 * ldlang.c (lang_memory_region_lookup): Don't use the first region
6516 as the default region. Create a new region instead.
6518 Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
6520 * ldemul.c (ldemul_set_symbols): New function.
6521 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
6522 * ldmain.c (main): Add call to ldemul_set_symbols.
6523 * lexsup.c (set_pe_value): New args.
6525 (parse_args): Cope with new set_pe_value args.
6526 * emultempl/pe.em (set_symbols): New function.
6527 (ld_emulation_xfer_struct): Add set_symbols.
6528 * scripttempl/pe.sc: Use new symbols.
6530 Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
6532 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
6533 For -Y, ignore a leading `P,', and only call set_default_dirlist
6534 after processing all the other arguments.
6536 Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
6538 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
6539 * emulparams/armpe.sh: Run PE script.
6541 Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
6543 * ldmain.c (main): Remove PE stuff.
6544 * lexsup.c (options): Load more PE options.
6545 (set_pe_value): New function.
6547 Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
6550 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
6551 * emultempl/pe.sc: New file performs generic PE support and sorts
6553 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
6554 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
6555 * scripttempl/pe.sc: New.
6556 * Makefile.in: Use new files.
6558 Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
6560 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
6561 (.strings,.ctors,.dtors): Likewise.
6563 Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
6565 * scripttempl/armpe.sc: Always start code at 0x401000, even
6567 * ldwrite.c (strdup): New extern declaration.
6568 * ldgram.y (atype): New rule to clarify type parsing.
6569 * ldlang.c (init_os): Remove commented out code.
6570 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
6571 unless told not to by the link script.
6573 Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
6575 * ldlang.c (lang_set_startof): New static function.
6576 (lang_process): Call it.
6578 * ldgram.y: Tweak casesymlist to avoid bison errors.
6580 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
6581 Solaris compatibility.
6583 Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
6585 * ldgram.y (YYDEBUG): If not defined, define as 1.
6586 (CASE, EXTERN, START): New tokens.
6587 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
6588 (casesymlist): New nonterminal.
6589 (extern_name_list): New nonterminal.
6590 * ldlex.l: Accept lower case trailing base specifiers. Don't
6591 ignore the first digit when the base is a suffix. Accept many
6592 EXPRESSION state tokens in MRI state. Support MRI continuation
6593 lines and MRI semicolon comments. Accept all MRI keywords in
6594 lower case. Add CASE, EXTERN, and START MRI keywords.
6596 Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6598 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
6601 Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6603 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
6604 $r/../gcc/xgcc unless it is present.
6606 Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
6608 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
6610 * scripttempl/m68klynx.sc: Likewise.
6611 * scripttempl/nw.sc: Likewise.
6612 * scripttempl/sa29200.sc: Likewise.
6613 * scripttempl/sparclynx.sc: Likewise.
6615 Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
6617 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
6619 Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
6621 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
6623 Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
6625 * scripttempl/i386pe.sc: Cope with constructors.
6626 * scripttempl/z8ksim.sc: Deleted.
6627 * scripttempl/z8000.sc: Resurrected as this, but
6628 can handle z8001 and z8002 formats.
6629 * emulparams/z8ksim.sh: Deleted.
6630 * emulparams/{z8001.sh, z8002.sh}: New files.
6631 * config/z8ksim.mt: Deleted
6632 * config/z8k-coff.mt: New, generates both emulations.
6634 Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
6636 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
6637 %B, in case it is in an archive.
6639 Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
6641 * ldlang.c (lang_process): Call reset_memory_regions for each
6644 Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
6646 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
6649 Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
6651 * ldmain.c (constructor_callback): Allocate set_name in stack
6652 frame, rather than always calling alloca with a fixed size.
6654 Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
6656 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
6657 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
6659 Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
6661 * ldwrite.c (clone_section): Set the alignment of the clone
6662 section to that of the section being cloned.
6664 * ldwrite.c (split_sections): Don't split the first input section
6665 into a new output section.
6667 Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
6669 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
6670 (GENERATE_SHLIB_SCRIPT): Define as yes.
6672 Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
6674 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
6676 * ldver.c (help): Update list of options to match currently
6679 Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
6681 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
6684 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
6685 it takes a size_t anyhow.
6686 (exp_binop): Likewise.
6687 (exp_trinop): Likewise.
6688 (exp_unop): Likewise.
6689 (exp_nameop): Likewise.
6690 (exp_assop): Likewise.
6691 * ldlang.c (lang_memory_region_lookup): Likewise.
6692 (init_os): Likewise.
6693 (ldlang_add_undef): Likewise.
6694 (insert_pad): Likewise.
6695 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
6698 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
6700 Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
6702 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
6704 (ld_emulation_xfer_type): Add search parameter to
6705 open_dynamic_archive entry point.
6706 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
6707 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
6708 make non-static. Change all callers to use new name.
6709 (ldfile_open_file_search): Make static. If entry is dynamic, call
6710 ldemul_open_dynamic_archive.
6711 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
6712 * ldfile.h (ldfile_open_file_search): Don't declare.
6713 (ldfile_try_open_bfd): Declare.
6714 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
6715 Accept search parameter. Don't search for a library, just look in
6717 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
6720 Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
6722 * ldmain.c (set_scripts_dir): Don't base script directory on
6725 Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
6727 * ldmisc.c (vfinfo): Don't print the line number if it isn't
6730 Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
6732 * ld.h (ld_config_type): Add field warn_constructors.
6733 * ldmain.c (add_to_set): Warn if config.warn_constructors.
6734 (constructor_callback): Likewise.
6735 * lexsup.c (parse_args): Handle -warn-constructors.
6736 * ld.texinfo, ld.1: Document -warn-constructors.
6738 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
6739 get confused by directory names if we searched for the file.
6741 Based on patches from H.J. Lu <hjl@nynexst.com>:
6742 * ldlang.h (lang_input_statement_type): Add new field dynamic.
6743 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
6744 * ldfile.c: Include bfdlink.h.
6745 (ldfile_open_file): Check dynamic field of entry, not global
6746 dynamic_link field. Don't do a dynamic search when doing a
6748 * ldmain.c (main): Don't warn about dynamic_link for a
6750 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
6752 (gld${EMULATION_NAME}_create_output_section_statements): Always
6753 loop over input files.
6754 * Makefile.in: Rebuild dependencies.
6756 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
6759 Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
6761 * ldmain.c (main): Set link_info.symbolic to false.
6762 * lexsup.c (parse_args): Handle -Bsymbolic.
6764 Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
6766 * ldmain.c (HAVE_SBRK): Define for everything except
6767 specific systems that are known to not support sbrk.
6768 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
6770 Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
6772 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
6773 Handle etree_provide.
6775 * emultempl/elf32.em (global_needed): New static variable.
6776 (global_found): Likewise.
6777 (gld${EMULATION_NAME}_after_open): New static function.
6778 (gld${EMULATION_NAME}_search_needed): Likewise.
6779 (gld${EMULATION_NAME}_try_needed): Likewise.
6780 (gld${EMULATION_NAME}_check_needed): Likewise.
6781 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
6782 gld${EMULATION_NAME}_after_open.
6784 Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
6786 * configure.in (i386-*-win32): New target.
6788 Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
6790 * lexsup.c (parse_args): Let -G either set the small data size or
6791 be equivalent to --shared, depending on the next argument. Accept
6792 and ignore -z for Solaris compatibility.
6794 Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
6796 * lexsup.c (parse_args): Cast fopen result to PTR before storing
6797 it in link_info.base_file. Fix indentation.
6799 Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
6801 * ldmain.c (main): Always initialize PE info in link_info.
6802 * lexsup.c (OPTION_BASE_FILE): New option.
6803 (parse_args): Handle new option.
6804 * emulparams/armpe.sh: Output pei.
6805 * emultempl/i386pe.em: Add newline to end.
6806 * scripttempl/armpe.sc: Change output and quote the $s.
6807 * scripttempl/i386pe.sc: Change output and quote the $s.
6809 Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6811 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
6813 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
6814 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
6815 (i386msdos.o): New target.
6816 * config/i386-msdos.mt: Created.
6817 * emulparams/i386msdos.sh: Created.
6818 * scripttempl/i386msdos.sc: Created.
6820 Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6822 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
6823 that contains pointers to be relocated.
6825 Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
6827 * mpw-esh.c: New file, modified for MPW from esh.c.
6828 * scripttempl/sh.sc: Reformatted to simplify MPWification,
6829 use *() to concat stab sections instead of [].
6831 Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
6833 * scripttempl/armpe.sc: Add constructor support.
6835 Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
6837 * ldlang.c (lang_size_sections): Any section with a DATA
6838 statement has contents.
6840 Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6842 * emulparams/m68kelf.sh (NOP): Define.
6843 (DYNAMIC_LINK): Don't define.
6844 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
6845 will come from the linker script.
6847 Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
6849 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
6851 Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6853 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
6855 Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6857 From Andrew Cagney <cagney@highland.com.au>
6858 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
6861 Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
6863 Add support for ARM-PE.
6864 * Makefile.in (ALL_EMULATIONS): Add armpe.o
6865 * configure.in: Recognize armpe.
6866 * config/arm-pe.mt: New file.
6867 * emulparams/armpe.sh: New file.
6868 * scripttempl/armpe.sc: New file.
6871 Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
6873 * configure.in (h8300h-*-hms): Deleted
6874 * config/cf-h8300h.mt: Deleted.
6876 Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6878 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
6880 From David Taylor (dtaylor@armltd.co.uk)
6881 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
6882 * configure.in: Recognize arm{,e[lb]-*-aout.
6883 * config/arm[lb]-aout.mt: New files.
6884 * emulparams/armaout[lb].sh: New files.
6885 * scripttempl/armaout.sc: New file.
6887 Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6889 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
6890 be unique in 8 characters for DOS.
6892 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
6893 * emulparams/elf32ppcle.sh: Deleted.
6895 Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
6896 Tom Griest <griest@cs.yale.edu>
6898 Initial support for PE executables (eg NT, win32)
6900 * Makefile.in (configure.in, ei386pe): Add support.
6901 * ldmain.c (main): Initialize PE argument info.
6902 * ldwrite.c (print_file_stuff): Don't print out .drectve
6903 and .debug section info.
6904 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
6905 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
6906 Handle new arguments.
6907 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
6910 Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
6912 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
6913 segment. This allows ld -r to preserve unwind sections.
6915 Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6917 * configure.in: Add little endian PowerPC support.
6919 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
6920 (eelf32ppcle.c): Support for little endian PowerPC.
6922 * config/ppcle-elf32.mt: New file for little endian PowerPC.
6923 * emulparams/elf32ppcle.sh: Ditto.
6925 Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6927 * ldlang.c (print_output_section_statement): Check
6928 subsection_alignment, instead of checking section_alignment twice.
6929 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
6931 Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
6933 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
6935 Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
6937 * ldwrite.c (ldwrite): Before doing anything, reset the error
6938 code. If bfd_final_link returns an error, but the error code is
6939 unset, don't issue an extra message. Assume a correct error
6940 message was already set.
6942 Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6944 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
6945 (em68kelf.o): New target.
6946 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
6947 * configure.in: Use them for m68*-*-elf.
6949 Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
6951 Merge in support for Mac MPW as a host.
6952 (Old change descriptions retained for informational value.)
6954 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
6955 (i386-unknown-coff): Remove.
6956 (sh-hitachi-hms): New target.
6957 (emulation_ofiles): Set correctly for each target.
6958 (version, TDEFINES): Add to makefile fragment.
6959 * mpw-make.in (BISON): Use byacc instead of bison.
6960 (em_*.c): Replace with e*.c everywhere.
6961 (ldgram.h): Separate action from ldgram.c generation.
6962 (LD_PROG): Depend on Version.r.
6963 (Version.r): generate from version info.
6964 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
6966 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
6967 i386-unknown-aout, i386-unknown-coff): New targets.
6968 (m68k-aout, m68k-coff): Remove targets.
6969 (mk.tmp): Add definition of EMUL.
6971 * mpw-config.in (emulname): Set based on target.
6972 (ldemul-list.h): Construct.
6973 * mpw-make.in (install-only): New target.
6974 (install): Depend on install-only.
6976 * mpw-make.in (bindir): Fix pathname.
6977 (install): Move here from mpw-build.in.
6979 * mpw-config.in: New file, MPW configuration fragment.
6980 * mpw-make.in: New file, MPW makefile fragment.
6981 (This file is semi-automatically generated from Makefile.in.)
6982 * ldfile.c (slash): If MPW, set to `:'.
6983 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
6984 prevent redefinition errors.
6986 Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
6988 * ldwrite.c (clone_section): Align clone sections on even
6991 Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
6993 * configure.in: Change linux to default to elf. Using
6994 i[345]86-*-linuxaout will build a linker which defaults to a.out.
6995 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
6996 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
6997 * config/i386-lelf.mt: Remove.
6999 Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
7001 * ldmain.c (main): If opening the map file fails, call
7002 bfd_set_error before calling einfo.
7004 * ld.texinfo, ld.1: Document the -no-keep-memory option.
7006 Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
7008 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
7009 does mark shared libraries as executable.
7011 Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
7013 * ldlang.c (lang_common): Change power to int. Pass larger values
7014 before smaller values.
7015 (lang_one_common): Treat info as int *. Don't bother to check for
7016 last value, since it is now zero.
7018 Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
7020 * ldlang.c (load_symbols): An empty archive is OK.
7022 Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
7024 * ldmain.c (progress.h): Include.
7025 (main): Call START_PROGRESS and END_PROGRESS.
7027 Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
7029 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
7030 .dtors sections, so that these pointers get relocated also.
7031 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
7032 and end of the constructors/destructors.
7034 Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7036 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
7037 describes an archive, call bfd_link_add_symbols on each member.
7038 * ldmain.c (whole_archive): New variable.
7039 (main): Initialize it to false.
7040 * ldmain.h: Declare whole_archive.
7041 * lexsup.c (parse_args): Grok --whole-archive switch.
7042 * ld.texinfo, ld.1: Document --whole-archive.
7044 Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
7046 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
7047 using the default emulation.
7049 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
7051 * config/hppaelf.mh (HOSTING_EMU): Likewise.
7053 Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
7055 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
7056 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
7058 Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
7060 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
7062 * ldlex.l: Return -lFILENAME as the token LNAME.
7063 * ldgram.y: Add token LNAME.
7064 (input_list): Treat LNAME like NAME, but pass it to
7065 lang_add_input_file as lang_input_file_is_l_enum.
7066 * ld.texinfo: Document using -lFILENAME in INPUT.
7068 Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7070 * ldlang.c (lang_check): If the architectures are compatible call
7071 bfd_merge_private_bfd_data to let the backend do additional
7074 Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
7076 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
7077 all supported emulations.
7079 Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
7081 * ldemul.c (ldemul_list_emulations): New function.
7082 * ldemul.h (ldemul_list_emulations): Declare.
7083 * ldver.c (help): List supported targets and emulations.
7085 Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
7087 * scripttempl/elf.sc (.debug): Relocate to address 0.
7088 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
7089 .debug_sfnames, .line): Likewise.
7091 Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
7093 * emultempl/elf32.em (hold_rel): New static variable.
7094 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
7095 contents whose names begin with ".rel" after hold_rel. Remove the
7096 assertion which checked for unplaced .rel sections. Don't try to
7097 sort the section into place if place->bfd_section is NULL.
7098 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
7099 section beginning with ".rel".
7101 Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
7103 Doc note from pierre@phi.la.tce.com (Pierre Willard):
7104 * ld.texinfo: -X and -x work even if -s or -S are not specified.
7105 * ld.1: Similar change.
7107 Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
7109 * emulparams/gld960coff.sh (COFF_CTORS): Define.
7110 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
7112 Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
7114 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
7115 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
7116 * config/i386-lelf.mt: New file.
7117 * config/i386-gelf.mt: New file.
7119 Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
7121 * configure.in: Match on mips-ecoff, and default to the IDT
7124 Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
7126 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
7127 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
7128 to double the size of the table.
7130 Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
7132 * Makefile.in (distclean): Do recursive deletion, since ldscripts
7135 Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
7137 * ldmain.c (main): If trace_file_tries is true, and we are using
7138 an internal linker script, print out the script.
7139 * ldfile.c (try_open): Reindent function. Make the messages about
7140 opening script files more informative.
7142 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
7143 * ld.texinfo, ld.1: Update accordingly.
7145 Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
7147 * ldlang.c (lang_one_common): Adjust references to common symbol
7148 information for new structure.
7150 Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
7152 * ldmain.c (undefined_symbol): Handle section being NULL.
7154 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
7155 * ldexp.c (fold_name): Likewise.
7156 * ldlang.c (print_one_symbol): Likewise.
7157 (lang_finish): Likewise.
7158 * ldmain.c (multiple_common): Likewise.
7159 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
7160 renamed to bfd_link_hash_undefweak.
7162 * scripttempl/alpha.sc: Set address of .data section correctly
7163 when -n or -N is used. Patch from Chris G Demetriou
7164 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
7165 * scripttempl/mips.sc: Similar change.
7167 Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
7169 * ldlang.c (lang_size_sections): Clarify error message when user
7170 specified start addr conflicts with region. Fix resetting of
7173 Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
7175 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
7176 in lang_allocating_phase_enum.
7178 Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
7180 * Makefile.in (distclean): Depend upon clean. Don't bother to
7181 remove files which will be removed by clean. From patch by
7182 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
7184 Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
7186 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
7187 a MIPS target, clobber the size of all but the first input
7188 .reginfo section to be 0, so that lang_size_sections sets the
7189 correct size for the output .reginfo section.
7191 Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
7193 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
7194 Remove unused variable is.
7196 Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7198 * configure.in: Add support for powerpc-*-eabi.
7200 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
7203 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
7204 elf.sc, which defines some new symbols PowerPC elf needs.
7206 Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7208 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
7209 constructor entry is in the absolute section.
7211 Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7213 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
7214 * config/i386-gnu.mt: New file. Include ELF support.
7216 Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7218 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
7219 there are any input sections named .gnu.warning, treat them as
7220 containing a warning message to be printed by the linker, and
7221 clobber the size so that the message is not copied into the output
7223 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
7226 Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
7228 * configure.in (w65-*-*): New target.
7229 * Makefile.in: Update.
7230 * scripttempl/w65.sc: New.
7231 * config/coff-w65.mt: New.
7233 Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
7235 * ldlang.c (lang_place_orphans): Don't ignore files with
7236 just_syms_flag set. Instead, put all their sections in
7237 bfd_abs_section_ptr, using the section VMA as the output_offset.
7239 Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
7241 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
7242 name `reloc_howto_type', since it's now defined to be const.
7243 * ldlang.c (lang_add_reloc): Ditto.
7244 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
7246 Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7248 * ldexp.c (fold_binary): Adding or subtracting an absolute value
7249 to a relative value does not require forcing the relative value to
7250 be absolute. Also, reindent function.
7252 Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7254 * ldwrite.c (clone_section): Create a symbol with the
7255 same name as the section.
7257 Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7259 * ld.h (split_by_reloc, split_by_file): New flags.
7260 * ldwrite.c (clone_section, split_sections): New functions.
7261 * lexsup.c (parse_args): Understand new split options.
7263 Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7265 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
7266 .data segment. They must be writable when creating a shared
7267 library. From H.J. Lu <hjl@nynexst.com>.
7269 Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
7271 * emultempl/miposecoff.em: New file.
7272 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
7273 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
7274 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
7275 provide __runtime_reloc_start and __runtime_reloc_stop if they are
7276 used. Align _fdata to a 16 byte boundary.
7277 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
7279 (emipsidtl.c): Likewise.
7280 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
7282 * ld.h (args_type): Add new field embedded_relocs.
7283 * ldemul.h (ldemul_after_open, after_open_default): Declare.
7284 (ld_emulation_xfer_struct): Add new field after_open.
7285 * ldemul.c (ldemul_after_open): New function.
7286 (after_open_default): New function.
7287 * ldlang.c (lang_process): Call ldemul_after_open.
7288 * lexsup.c (parse_args): Handle --embedded-relocs.
7289 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
7290 new after_open field to after_open_default.
7291 * emultempl/generic.em, emultempl/gld960.em: Likewise.
7292 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
7293 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
7294 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
7295 * ld.texinfo, ld.1: Mention -embedded-relocs.
7297 Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7299 * Makefile.in: Add eshl.o.
7300 * config/coff-sh.mt: Add shl emulation.
7302 Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7304 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
7305 Youngdale <eric@aib.com>.
7307 Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7309 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
7310 * config/i386linux.mh: New file; set HOSTING_CRT0.
7311 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
7312 /usr/lib, since that is already in LIB_PATH.
7314 Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
7316 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
7318 (.data, .bss): If "-N", then place the data/bss just after the end
7319 of the .text section rather than at the default 0x40000000.
7321 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
7324 Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7326 Patches from Eric Youngdale <eric@aib.com>:
7327 * ldlang.c (lang_finish): Don't warn if entry symbol not found
7328 when generating a shared library.
7329 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
7330 attempting to place an orphaned relocation section when generating
7331 a dynamically linked object.
7333 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
7336 Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7338 * ld.h (args_type): Add field export_dynamic.
7339 * lexsup.c (parse_args): Recognize --export-dynamic.
7340 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
7341 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
7343 Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7345 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
7346 we allocate common symbols.
7348 Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
7350 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
7351 .rela.fini to the list of .rel* sections.
7353 Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7355 * ldlang.c (load_symbols): Add new argument place. Only accept
7356 linker scripts if place is not NULL. Put commands found in an
7357 assumed linker script into place.
7358 (lookup_name): Pass NULL as place argument to load_symbols.
7359 (open_input_bfds): In lang_input_statement_enum case, pass a place
7360 argument to load_symbols, and store any new statements after the
7363 Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7365 * ldver.c (ldversion): Bump to 2.5.3.
7367 Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7369 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
7371 Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7373 * Makefile.in (check): Add missing "else true" clause.
7375 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
7377 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
7378 entry point to "start". Align at end of each section to 0x200.
7379 Start .text section 0x1000 later. Add _etext, _edata, _end
7382 Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7384 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
7385 composed of different object file formats.
7386 (ldctor_build_sets): If the output format does not support the
7387 reloc, and we are not generating a relocateable link, try getting
7388 the reloc from the input format.
7390 Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
7392 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
7393 (em68knbsd.c): New target.
7395 * config/m68k-nbsd.mt: New file.
7396 * emulparams/m68knbsd.sh: New file.
7397 * configure.in (m68*-*-netbsd*): Use above configs.
7399 Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7401 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
7402 appropriately named static library, stop the search at that
7405 Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
7407 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
7408 and esparcnbsd.o; sorted entries.
7409 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
7411 * config/netbsd532.mt: Removed.
7412 * emulparams/netbsd532.sh: Removed.
7414 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
7415 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
7416 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
7417 sparc*-*-netbsd*): Use above configs.
7419 Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7421 * ldmain.c (multiple_common): One of the types may now be
7422 bfd_link_hash_indirect. The old BFD argument may be NULL.
7424 Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7426 * configure.in: Add * at the end of m68k-hp-hpux.
7428 Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7430 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
7433 Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
7435 * scripttempl/nw.sc: Gather constructors and destructors and
7436 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
7438 Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
7440 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
7441 (ei386nw.c, eppcnw.c): New targets.
7443 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
7444 scripttempl/nw.sc: New files, for i386 and powerpc netware.
7446 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
7447 instead of {i386,ppc}-elf.
7449 * configure.in (sparc*-*-netware): Removed. There is no such
7452 * ldint.texinfo: Move misplaced `@end iftex'.
7454 Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
7456 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
7457 .rela.dtors to the list of .rel* sections.
7459 Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7461 * ldver.c (ldversion): Update to version 2.5.
7462 * Version 2.5 released.
7464 * configure.in (all_targets): Handle i386-linux*.
7466 Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7468 * scripttempl/aout.sc: Set _etext and __etext to ., not
7469 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
7470 will not break any other system. From Eric Valette
7473 Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7475 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
7476 --verbose to get the old -V behaviour.
7477 * ld.1, ld.texinfo: Document this change.
7479 Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7481 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
7482 assertion, since it could fail with a user defined linker script.
7484 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
7485 name in the hash table during the first phase--the hash table does
7486 not even exist at that point, much less have the right value.
7488 * Makefile.in (CC): Define.
7489 (CXX): Move definition, change from g++ to gcc.
7490 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
7491 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
7492 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
7493 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
7494 (.cc.o): Comment out.
7496 (site.exp): Don't create testdir or set tmpdir.
7497 (check): Run checks even if not running native. Use CC_FOR_TARGET
7498 instead of RUNTEST_CC, and likewise for CXX.
7499 (cdtest targets): Comment out.
7500 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
7501 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
7502 * cdtest-main.cc, cdtest.exp: Remove.
7504 Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7506 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
7507 file naming problems.
7508 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
7509 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
7510 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
7511 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
7512 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
7513 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
7514 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
7516 * genscripts.sh: Always search /usr/local/TARGET/lib.
7518 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
7520 Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7522 * configure.in: Handle i386-bsdi* targets like i386-bsd.
7524 Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7526 * lexsup.c (parse_args): Add support for -a for HP/UX
7529 * lexsup.c (parse_args): -c takes an argument.
7531 Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7533 * ld.h (args_type): Add new field endian.
7534 * lexsup.c (parse_args): Handle -EB and -EL by setting
7535 command_line.endian.
7536 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
7537 * ldlang.c (lang_add_output_format): Add arguments big and little.
7538 If command_line.endian is set, use it to select big or little
7539 rather than the default. Changed all callers.
7540 * ldlang.h (lang_add_output_format): Update declaration.
7541 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
7542 LITTLE_OUTPUT_FORMAT.
7543 * emulparams/elf32mipl.sh: Likewise.
7544 * emulparams/mipsbig.sh: Likewise.
7545 * emulparams/mipsbsd.sh: Likewise.
7546 * emulparams/mipsidt.sh: Likewise.
7547 * emulparams/mipsidtl.sh: Likewise.
7548 * emulparams/mipslit.sh: Likewise.
7549 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
7550 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
7552 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
7553 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
7554 * scripttempl/mipsbsd.sc: Likewise.
7556 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
7557 depending upon ldgram.c, so that a parallel make does not try to
7560 * configure.in (mips*el-elf*): New target.
7561 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
7562 (eelf32mipl.c): New target.
7564 * config/mipsl-elf32.mt: New file.
7565 * emulparams/elf32mipl.sh: New file.
7567 Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7569 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
7572 Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7574 * ldmisc.c (vfinfo): Print BFD file name as well as file name
7575 returned by find_nearest_line, in case the file name is something
7576 unhelpful such as a .h file. Handle %u.
7578 Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7580 * ldlang.c (lang_do_assignments): Make sure output statement
7581 has an attached bfd_section before trying to dereference it.
7583 Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7585 * ld.h (ld_config_type): Add new field warn_once.
7586 * ldmain.c (undefined_symbol): Handle -warn-once.
7587 * lexsup.c (parse_args): Recognize -warn-once.
7588 * ld.texinfo (Options): Document -warn-once.
7591 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
7592 name. For %C, print the function name on a separate line, to keep
7593 the length of error messages under control.
7594 * ldmain.c (multiple_definition): Use %D for ``first defined
7596 (undefined_symbol): Use %D for ``more undefined references
7599 * ldmisc.c (multiple_warn): Remove; no longer used.
7600 * ldmisc.h (multiple_warn): Don't declare.
7602 Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7604 * ldlang.c (print_output_section_statement): Print all lines
7607 Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7609 * ldlang.c (load_symbols): Check for archive before object. Use
7610 bfd_check_format_matches, and, if ambiguous, print a list of
7611 matching formats. If file format is not recognized, treat file as
7613 * ldgram.y (yyerror): If assuming an object file is a script,
7614 mention that. Tweak the format of the error messages.
7615 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
7616 guess that this is not actually a script, and just report that the
7617 file format was not recognized.
7618 * ld.texinfo (Options): Admit that -( may be used more than once.
7619 Add note that unrecognized object files are now treated as linker
7622 * ldfile.c (ldfile_input_filename): Make const.
7623 (ldfile_assumed_script): New variable.
7624 (try_open): Change arguments types to const.
7625 (ldfile_find_command_file): Likewise.
7626 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
7627 * ldfile.h: Update declarations for ldfile.c changes.
7628 * ldlex.l: Include <ctype.h>.
7629 (file_name_stack): Change to be const char *.
7630 (lineno_stack): New static variable.
7631 (<<EOF>>): Set lineno as well as ldfile_input_filename.
7632 (lex_push_file): Make name argument const. Initialize
7634 (lex_redirect): Initialize lineno_stack entry.
7635 (lex_warn_invalid): Handle non printable characters nicely.
7636 * ldlex.h (lex_push_file): Declare second argument as const.
7638 * ldgram.y (ifile_p1): Recognize GROUP.
7639 * ldlex.l: Recognize GROUP.
7640 * ld.texinfo (Option Commands): Document GROUP.
7642 Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7644 * config/m68klynx.mh: New file.
7646 Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
7648 * emultempl/hppaelf.em: Add newlines to the error messages.
7650 Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7652 * config/i386lynx.mh: New file.
7653 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
7654 unless CONSTRUCTING.
7656 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7658 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
7659 (GENERATE_SHLIB_SCRIPT): Define as yes.
7660 (DYNAMIC_LINK): Define as false.
7661 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
7662 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
7663 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
7664 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
7667 Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7669 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
7671 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7673 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
7674 .got section is now explicitly handled in elf.sc.
7676 Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7678 * scripttempl/alpha.sc: Redo script to set . outside of sections
7679 and not bother to explicitly specify section addresses.
7680 Explicitly place .sdata section.
7682 Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7684 * scripttempl/m68kcoff.sc: Put .bss in data segment.
7686 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
7687 0, and to only be marked as NOLOAD if relocating.
7688 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
7689 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
7690 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
7691 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
7692 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
7693 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
7694 * scripttempl/sparclynx.sc: Likewise.
7696 Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
7698 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
7699 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
7702 Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
7704 * ld.h (args_type): Add field soname.
7705 * lexsup.c (parse_args): Handle -soname argument.
7706 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
7708 * ld.texinfo: Document -soname.
7710 Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7712 * ldlang.c (lang_check): Don't try to set the architecture if the
7713 input and output files are incompatible. Just warn.
7715 Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7717 * configure.in: Change i[34]86 to i[345]86.
7719 Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7721 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
7723 Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7725 Make the ELF linker handle orphaned sections reasonably. Also,
7726 define __start_SECNAME and __stop_SECNAME around sections whose
7727 names can be represented in C, for the benefit of symbol sets in
7729 * ldemul.h (ldemul_place_orphan): Declare.
7730 (ld_emulation_xfer_type): Add place_orphan field.
7731 * ldemul.c (ldemul_place_orphan): New function.
7732 * ldlang.h (wild_doit): Declare.
7733 * ldlang.c (wild_doit): Make nonstatic.
7734 (lang_place_orphans): Call ldemul_place_orphan.
7735 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
7736 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
7738 (gld${EMULATION_NAME}_place_orphan): New static function.
7739 (gld${EMULATION_NAME}_place_section): New static function.
7740 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
7742 Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
7744 * scripttempl/aout.sc: Add .linux-dynamic after .data.
7746 Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7748 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
7749 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
7751 Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7753 * ldexp.h (exp_get_abs_int): Declare.
7755 Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7757 * ldlang.c (lang_do_assignments): Handle complex AT's better.
7758 * ldexp.c (exp_get_abs_int): New function.
7760 Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
7762 * configure.in: add i960-nindy-coff support.
7764 Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7766 * ldlex.l (yy_create_string_buffer): Handle change to internal
7767 interface in flex 2.4.7.
7769 Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
7771 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
7772 New function; add 0x20 to any use of -Ttext.
7773 (gld${EMULATION_NAME}_create_output_section_statements): New
7775 (ld_${EMULATION_NAME}_emulation): Use the new function
7776 gld${EMULATION_NAME}_create_output_section_statements.
7778 Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7780 * scripttempl/mips.sc: Redo script to set . outside of sections
7781 and not bother to explicitly specify section addresses.
7783 Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7785 * scripttempl/elf.sc: Copy several more relocation sections into
7786 the output. Put .got.plt sections into .got.
7788 Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7790 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
7792 Add a new script operator, PROVIDE, to define a symbol only if it
7794 * ldgram.y (PROVIDE): New token.
7795 (assignment): Accept PROVIDE.
7796 * ldlex.l (PROVIDE): New token.
7797 * ldexp.h (node_type): Add etree_provide to node_class enum.
7798 (exp_provide): Declare.
7799 * ldexp.c (exp_fold_tree): Handle etree_provide.
7800 (exp_provide): New function.
7801 (exp_print_tree): Handle etree_provide.
7802 * ld.texinfo: Document PROVIDE.
7804 * ldlang.c (lang_common): Pass desired alignment to
7805 lang_one_common as power of two.
7806 (lang_one_common): Get common symbol alignment from linker hash
7807 table entry. Treat desired alignment as a power of two.
7809 * ldlang.c (wild_section): Attach all section with the given name,
7810 not just the first one. If there is no name, attach all sections
7811 even if the SEC_IS_COMMON flag is set.
7813 Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7815 * ld.h (args_type): Add field rpath.
7816 * lexsup.c (S_ISDIR): Define if not already defined.
7817 (parse_args): Add support for -rpath. If -R is used to name a
7818 directory, treat it as -rpath for Solaris compatibility.
7819 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
7820 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
7821 * ldmain.c (main): Initialize command_line.rpath to NULL.
7822 * ld.texinfo: Document -rpath option.
7824 Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
7826 * emulparams/pc532machaout.sh: New file. Pc532 mach script
7829 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
7831 * config/pc532mach.mt: New file. Pc532 mach target support.
7833 * config/pc532mach.mh: New file. Pc532 mach host support.
7835 * config/netbsd532.mt: New file. Netbsd 532 target support.
7837 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
7839 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
7842 Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7844 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
7845 bfd_abs_section_ptr, not &bfd_abs_section.
7847 * lexsup.c (parse_args): Changed "retain-symbols-file" from
7848 no_argument to required_argument. From djm.
7850 Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7852 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
7853 sections to force a VMA of 0; needed for ELF backends which have
7854 not been converted to the new linker style.
7856 Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
7858 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
7859 it was for the HPUX dynamic loader's use and it creates problems
7862 Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
7864 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
7865 * ldlang.h (lang_do_assignments): Put external decl here.
7866 * emultempl/hppaelf.em: Minor cleanups throughout file.
7867 (hppa_elf_create_output_section_statements): Rewrite.
7868 (hppaelf_finish): Rewrite.
7870 Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7872 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
7874 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
7876 * ld.texinfo: -Bstatic is not ignored.
7878 Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
7880 * ldlex.l: Recognize \r the same as \n.
7882 Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7884 Preliminary support for generating shared libraries, from Eric
7885 Youngdale <ericy@cais.cais.com>.
7886 * genscripts.sh: If the emulation parameter file sets
7887 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
7888 CREATE_SHLIB defined.
7889 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
7890 link_info.shared is set, use the .xs script file.
7891 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
7892 .interp section, and don't include TEXT_START_ADDR in the starting
7893 address of the first section.
7894 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
7895 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
7897 Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7899 * configure.in: Change --with-targets to --enable-targets.
7901 Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7903 * lexsup.c (parse_args): Add support for new options -( -) with
7904 synonyms --start-group --end-group.
7905 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
7906 (lang_group_statement_type): Define new struct.
7907 (lang_statement_union_type): Add group_statement field.
7908 (lang_enter_group, lang_leave_group): Declare.
7909 * ldlang.c (lang_for_each_statement_worker): Handle
7910 lang_group_statement_enum.
7911 (map_input_to_output_sections, print_statement): Likewise.
7912 (lang_size_sections, lang_do_assignments): Likewise.
7913 (open_input_bfds): Completely rewrite. Now does its own looping,
7914 rather than using lang_for_each_statement. Handle groups.
7915 (lang_process): Update call to open_input_bfds.
7916 (print_group): New static function.
7917 (lang_enter_group, lang_leave_group): New static functions.
7918 * ldfile.c (ldfile_open_file): If the file has already been
7919 opened, just return rather than taking an assertion failure.
7920 * ldver.c (help): Mention new options.
7921 * ld.texinfo: Document new options.
7923 * ldlang.c (end_of_data_section_statement_list): Don't define.
7924 (lang_leave_output_section_statement): Don't set obsolete variable
7925 end_of_data_section_statement_list.
7927 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
7930 * ldlang.c (lang_size_sections): Adjust current region address
7931 even for sections with an explicit address. From
7932 ralphc@pyramid.com (Ralph Campbell).
7934 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
7935 From jrs@world.std.com (Rick Sladkey).
7937 * scripttempl/mipsbsd.sc: Let sections align to their natural
7940 Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7942 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
7944 (lang_abs_symbol_at_beginning_of): Likewise.
7945 (lang_abs_symbol_at_end_of): Likewise.
7946 (lang_size_sections): Use bfd_is_abs_section to check for the
7947 absolute section. Don't try to set the VMA or output_offset or
7948 size of the absolute section.
7949 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
7952 Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
7954 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
7955 when generating relocatable objects.
7957 Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
7959 * emultempl/linux.em: New file providing support for linking
7960 against Linux shared libraries.
7961 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
7962 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
7964 Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7966 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
7967 * ldmain.c (main): Initialize link_info.shared to false. Give
7968 error if link_info.relocateable and link_info.shared are both set.
7970 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
7971 it as naming an emulation to be added to EMULATION_OFILES.
7972 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
7974 * Makefile.in: Rebuilt dependencies.
7975 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
7976 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
7977 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
7978 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
7979 (ei386linux.c): Remove; now in Makefile.in.
7980 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
7981 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
7982 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
7983 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
7984 (eelf64_sparc.c): Remove; now in Makefile.in.
7985 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
7986 (eelf32_sparc.c): Remove; now in Makefile.in.
7988 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
7989 no owner--it might be bfd_abs_section. From Eric Youngdale
7990 <ericy@cais.cais.com>.
7992 * scripttempl/aout.sc: Let sections align to their natural
7995 Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7997 * ldemul.h (ldemul_open_dynamic_archive): Declare.
7998 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
7999 * ldemul.c: Include ldexp.h and ldlang.h.
8000 (ldemul_open_dynamic_archive): New function.
8001 * ldfile.h (ldfile_open_file_search): Declare.
8002 * ldfile.c: Include ldemul.h.
8003 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
8004 argument, not bfd *. Change all callers.
8005 (ldfile_open_file_search): Rename from open_a. Return boolean
8006 argument, not bfd *. Clean up. Change all callers.
8007 (ldfile_open_file): If doing a dynamic link, call
8008 ldemul_open_dynamic_archive rather than assuming the extension of
8009 a dynamic object is ".so".
8010 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
8012 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
8014 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
8016 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
8017 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
8018 Accept -static as a synonym for -non_shared.
8020 Let the user change the dynamic linker used by ELF code.
8021 * ld.h (args_type): Add new field interpreter.
8022 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
8024 * ldmain.c (main): Initialize command_line.interpreter to NULL.
8025 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
8026 the ELF backend to return the .interp section. If
8027 command_line.interpreter is not NULL, set the contents of .interp
8029 * ld.texinfo: Mention -dynamic-linker.
8031 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
8034 * lexsup.c (parse_args): Sort out the option macros and change the
8035 definitions to make it easier to add a new option.
8037 * scripttempl/aout.sc: Define __etext and __edata to go along with
8040 * ld.h (ld_config_type): Add new field traditional_format.
8041 * lexsup.c (parse_args): Add traditional-format to longopts, and
8043 * ldmain.c (main): Initialize config.traditional_format to false.
8044 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
8045 flags of output_bfd according to config.traditional_format.
8046 * ldver.c (help): Mention -traditional-format.
8047 * ld.texinfo: Document -traditional-format.
8049 Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8051 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
8052 they are encountered.
8054 Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
8056 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
8057 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
8059 Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8061 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
8062 _FTEXT, _ETEXT and _FDATA. Dont define _END.
8064 * ldfile.c (open_a): If this is not an archive, try to open it in
8065 the current directory before searching for it.
8067 * lexsup.c (parse_args): Treat -i as a synonym for -r.
8069 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
8070 BLOCK works in a section address as documented.
8072 * ldgram.y (YYDEBUG): Don't define.
8074 Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8076 * emultempl/gld960.em: Pass false for new argument to
8077 ldfile_add_library_path.
8078 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
8080 * emultempl/sunos.em: Only look for .so files if doing a dynamic
8083 Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
8085 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
8087 Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
8089 * Makefile.in (check): Delete ld.new dependency so that a regression
8090 test doesn't trigger a rebuild of the linker.
8092 Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8094 * ldlang.c (map_input_to_output_sections): For lang_address, call
8095 init_os if it hasn't already been called.
8097 Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8099 Add support for SunOS shared libraries.
8100 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
8101 shared library support code.
8102 * emultempl/sunos.em: New file.
8103 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
8104 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
8105 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
8106 (esun3.c): Likewise.
8108 * ldlang.c: Minor formatting cleanups.
8109 (lang_for_each_input_file): New function.
8110 * ldlang.h (lang_for_each_input_file): Declare.
8112 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
8114 (search_head): Declare.
8115 (ldfile_add_library_path): Add new cmdline argument in prototype.
8116 * ldfile.c (search_head): Make non-static.
8117 (search_dirs_type): Move to ldfile.h.
8118 (ldfile_add_library_path): Accept cmdline argument, and save it.
8119 * lexsup.c (parse_args): Pass true for new cmdline argument of
8120 ldfile_add_library_path.
8121 (set_default_dirlist): Likewise.
8122 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
8123 argument of ldfile_add_library_path.
8124 * ldgram.y (ifile_p1): Likewise.
8126 Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8128 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
8129 total_size, superfile and chain.
8130 * ldfile.c (open_a): Don't clear search_dirs_flag.
8131 (ldfile_open_file): Don't try to open superfile. Assert that file
8132 has not already been opened.
8133 * ldlang.c (new_afile): Don't initialize superfile.
8134 * ldmain.c (add_archive_element): Don't initialize subfiles or
8135 chain or superfile. Initialize search_dirs_flag to false.
8137 Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8139 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
8141 Changes from binutils-2.4 release:
8143 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
8144 variables, use whitespace, so scripts don't break.
8146 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
8148 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
8150 * cdtest-bar.cc: Renamed from cdtest-func.cc.
8151 * Makefile.in: Noted change.
8153 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
8154 don't know where that's supposed to come from, or why it's
8157 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
8159 * configure.bat: update to latest makefile.in
8160 * emulpara/go32.sh: set to coff-go32 not aout
8161 * emultemp/generic.em: strength-reduce the structure of
8162 this shell script, since the only available shell for
8163 DOS can't handle complex syntax.
8164 * emultemp/stringify.sed: for "sed -f" instead of inline.
8165 * makefile.in: depend on stringify.sed as well as genscripts.sh
8166 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
8167 * genscripts.sh: empty variables aren't always considered "set",
8168 so set them to "y" instead.
8170 Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8172 * ldlang.c (entry_symbol): Make static.
8173 (lang_add_entry): Add cmdline argument.
8174 * ldlang.h (lang_add_entry): Change prototype.
8175 * ldgram.y (statement_anywhere): Change lang_add_entry call.
8176 * lexsup.c (parse_args): Likewise.
8178 Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8180 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
8181 .reginfo an address.
8182 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
8183 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
8184 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
8186 Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8188 Add support for ELF shared libraries.
8189 * ld.h (ld_config_type): Add field dynamic_link.
8190 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
8191 on attempts to use -r with -relax, -call_shared or -s.
8192 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
8193 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
8194 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
8195 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
8196 OPTION_NON_SHARED by setting dynamic_link field accordingly.
8197 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
8199 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
8200 opening a file with a .so extension first.
8201 * emultempl/elf32.em: New file.
8202 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
8203 (NONPAGED_TEXT_START_ADDR): Likewise.
8204 (TEMPLATE_NAME): Define as elf32.
8206 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
8207 * scripttempl/elf.sc: Add placement for new dynamic sections.
8208 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
8209 outside of any section. Don't use ALIGN(8); just let one section
8210 VMA follow another. Put .dynbss in .bss. Don't mention debugging
8211 sections; they'll be handled correctly anyhow.
8212 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
8214 Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
8216 * Makefile.in (install): Redirect output of ln to /dev/null.
8218 Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
8220 * emultempl/hppaelf.em: Change all references of
8221 .hppa_linker_stubs to .PARISC.stubs.
8222 * scripttempl/hppaelf.sc: Likewise.
8224 Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8226 * ldlang.c (print_output_section_statement): Change ``no attached
8227 output section'' message slightly.
8228 (lang_do_assignments): Don't recurse down if there is no real
8231 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
8232 match corresponding change in emulation templates.
8233 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
8234 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
8236 Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8238 * ldver.c (ldversion): Updated version number.
8240 * cdtest-foo.cc: Use explicit "#pragma implementation".
8241 * cdtest-bar.cc: Renamed from cdtest-func.cc.
8242 * Makefile.in: References to cdtest-func.o changed to
8245 Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8247 Don't create unnecessary output sections.
8248 * ldlang.c (out_bfd_get_section_by_name): Remove.
8249 (wild_section): Call bfd_get_section_by_name rather than
8250 our_bfd_get_section_by_name. Don't call wild_doit if there is no
8252 (lang_create_output_section_statements): Remove.
8253 (map_input_to_output_sections): For several cases, call init_os if
8254 it has not already been called.
8255 (lang_size_sections): If output section was not created, skip it.
8256 (lang_process): Don't call lan_create_output_section_statements.
8257 (lang_place_orphans): Skip files with just_syms_flags set to true.
8258 * ld.texinfo: Document change.
8260 Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8262 * ldlang.c (wild_doit): Don't bother initializing the vma and
8263 section size. Don't special case SEC_SHARED_LIBRARY.
8264 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
8267 Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
8269 * config/go32.mh : New file for Xgo32X.
8271 Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8273 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
8274 before calling einfo, since we are reporting an fopen failure.
8275 From jrs@world.std.com (Rick Sladkey).
8277 * configure.in: Use "e" rather than "em_" as prefix for
8280 Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
8282 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
8284 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
8285 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
8287 * Makefile.in: Changed all generated file names.
8288 (ldemul-list.h): Depend on Makefile, not config.status. Changed
8289 sed patterns to handle new filenames.
8291 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
8292 * configure.in: Adjusted.
8294 Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8296 * Makefile.in (install-info): Don't use "$<*", it doesn't always
8297 work. Instead, check build dir and $srcdir explicitly, and use
8298 `echo' to get all the filenames.
8300 * configure.in (h8300h-*-hms): Changed ld_target name to
8302 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
8305 * config/i960coff.mt: New file.
8306 * emulparams/gld960coff.sh: New file.
8307 * emultempl/gld960c.em: New file.
8308 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
8309 i960coff configuration.
8310 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
8312 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
8313 code isn't included in FSF releases, and it can still be
8314 explicitly selected.
8315 (distclean): Remove site.bak and tmpdir.
8316 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
8317 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
8319 Patches from Ralph Campbell:
8320 * config/mipsbsd.mh: New file.
8321 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
8322 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
8323 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
8326 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
8328 Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8330 * config/m68k.mt (EMUL): Set to m68kaout.
8331 * emulparams/m68kaout.sh: New file.
8332 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
8333 (em_m68kaout.c): New target.
8335 * ldlang.c (lang_size_sections): If dot moves because of an
8336 assignment, don't try to insert a pad into the absolute output
8337 section, just change the address of the default memory region
8340 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
8341 cdtest-ur.out, and cdtest-ur.tmp.
8343 Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8345 * scripttempl/sa29200.sc: Align all sections to four byte
8348 Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
8350 * Makefile.in, configure.in: Support for go32 coff.
8351 * config/i386-go32.mt: New file
8352 * emulparams/i386go32.sh: New file
8353 * scripttempl/i386go32.sc: New file
8355 Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
8357 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
8358 Lynx-specific script templates.
8359 * configure.in (sparclite*-*-coff): Use coff-sparc.
8360 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
8361 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
8362 (ENTRY): Set to __main.
8363 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
8364 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
8365 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
8367 Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8369 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
8370 byte boundary, in case the global constructors do not take up an
8373 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
8374 exist, get crtbegin based on gcc -print-libgcc-file-name.
8375 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
8377 Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8379 * ldlang.c (lang_size_sections): When no address is given for a
8380 section, align it according to its requirements.
8382 Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8384 * Makefile.in (clean, distclean): Remove configdoc.texi.
8386 Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
8388 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
8390 Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8392 * ldlang.c (lang_size_sections): When relaxing, adjust the
8393 position of a padding statement, and adjust dot accordingly.
8395 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
8397 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
8399 Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8401 * scripttempl/i386coff.sc: If relocating, don't put .init and
8402 .fini sections into .text; keep them separate.
8403 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
8404 exist, get crtbegin based on gcc -print-libgcc-file-name.
8405 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
8407 Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
8409 * Makefile.in (check): Set TCL_LIBRARY for runtest.
8411 Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8413 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
8416 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
8417 if building a final executable.
8419 Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8421 * ldmain.c (main): Check the return value of bfd_close.
8423 Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8425 * scripttempl/alpha.sc: Clean up section alignment to ensure that
8426 sections never overlap when using -r.
8428 Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8430 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
8431 changes: get_symtab_upper_bound renamed and returns long,
8432 bfd_canonicalize_symtab returns long, check for error indications.
8434 Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8436 * ldlang.c (print_input_section): For section size, use
8437 _cooked_size if it is non-zero, size otherwise.
8438 (size_input_section): Likewise.
8439 (lang_do_assignments): Likewise (case lang_input_section_enum).
8441 Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8443 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
8444 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
8445 (lang_add_input_file): Pass true to new_afile for add_to_list.
8446 (lookup_name): Remove force_load argument. Changed all callers.
8447 Pass false to new_afile for add_to_list. Split loading of symbols
8448 out into separate function.
8449 (load_symbols): New function split out of lookup_name. Don't load
8450 the symbols if they are already loaded.
8451 (open_input_bfds): For lang_input_statement_enum call load_symbols
8452 rather than lookup_name.
8453 (lang_process): Pass abs_output_section rather than NULL to
8455 (lang_startup): Set real field of first_file to true.
8457 Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8459 * ldlang.c (had_relax): Removed.
8460 (relax_again): New static variable.
8461 (lang_size_sections): Change call to bfd_relax_section to
8462 correspond to BFD changes. Set relax_again appropriately.
8463 (lang_process): Remove #if 0 code. When relaxing, keep calling
8464 lang_do_assignments and lang_size_sections until relax_again
8467 * emultemp/gld960.em: Include libiberty.h
8468 (gld960_before_parse): Pass NULL as final argument to concat.
8470 Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8472 * scripttempl/aout.sc: Force _end and __end to be aligned to a
8475 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
8476 building a bfd_data_link_order, rather than by setting the section
8477 contents immediately.
8479 Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8481 Changes to make -Ur work again.
8482 * ldmain.c (add_to_set): Now takes reloc argument rather than
8483 bitsize. Check config.build_constructors here. If an new hash
8484 table entry is created, mark it as undefined.
8485 (constructor_callback): No longer takes bitsize argument. Pass
8486 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
8487 BFD backend supports it.
8488 (reloc_overflow): Handle a NULL abfd argument.
8489 (reloc_dangerous, unattached_reloc): Likewise.
8490 * ldctor.c: Include ldmain.h.
8491 (struct set_info): Change bitsize field to reloc.
8492 (ldctor_add_set_entry): Now takes reloc argument rather than
8493 bitsize. Don't bother to check config.build_constructors here.
8494 (ldctor_build_sets): Get the size from the reloc howto. If
8495 generating relocateable output, call lang_add_reloc rather than
8497 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
8499 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
8500 (lang_reloc_statement_type): New structure.
8501 (lang_statement_union_type): Add reloc_statement field.
8502 (lang_add_reloc): Declare new function.
8503 * ldlang.c (lang_for_each_statement_worker): Handle
8504 lang_reloc_statement_enum.
8505 (map_input_to_output_sections, print_statement): Likewise.
8506 (lang_size_sections, lang_do_assignments): Likewise.
8507 (print_reloc_statement): New function.
8508 (lang_add_reloc): New function.
8509 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
8511 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
8512 (cdtest-ur, cdtest-ur.out): New targets.
8513 (check-cdtest): Now also check that -Ur works correctly.
8515 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
8517 Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8519 * ldlang.c (lang_process): Move lang_common call before
8520 map_input_to_output_sections, to ensure that any alignment
8521 constraints set by common symbols are copied over to the output
8524 Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8526 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
8527 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
8528 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
8529 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
8532 Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8534 * config/i386bsd.mh: New file.
8536 Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8538 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
8540 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
8541 (DATA_START_SYMBOLS): Define _fdata.
8543 Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
8545 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
8547 Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8549 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
8550 works again. Attach some output symbols to the stub file bfd.
8552 * emultempl/hppaelf.em: Include elf32-hppa.h.
8553 (file_chain): Add decl.
8554 (hppa_look_for_stubs_in_section): Delete decl.
8555 (hppaelf_finish): Reenable code. Do not pass symbols
8556 down to hppa_look_for_stubs_in_section.
8558 Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
8560 * ldmain.c (write_map): Don't define. Removed all references.
8561 Just use map_file or map_filename instead.
8562 (add_archive_element): Use minfo to write map information, not
8564 (constructor_callback): Use fprintf to write map information, not
8566 * ldmain.h (write_map): Don't declare.
8567 * ldgram.y (mri_script_command): Removed reference to write_map.
8568 * ldlang.c (lang_one_common): Likewise.
8569 * lexsup.c (parse_args): Likewise.
8571 Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
8573 * scripttempl/elf.sc: Force all sections to be aligned.
8575 * ldgram.y (section): Reverse the order of memspec_opt and
8576 fill_opt to avoid an ambiguity when both are used.
8577 * ld.texinfo: Changed accordingly.
8579 * ldgram.y: Move include of ldlex.h back with other includes.
8580 * ldlex.h (input_type): Don't initialize enum constants to
8582 * ldlex.l: Use a switch to return the right token based on
8583 input_type, rather than knowing that input_type has a value based
8586 * ldgram.y (dirlist_ptr): Removed; not used.
8587 * lexsup.c: Include ldver.h.
8588 * Makefile.in: Rebuilt dependencies.
8590 Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
8592 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
8593 (ldlang_add_file): call it here instead.
8595 Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8597 * ldgram.y: Include ldlex.h after %token decls, for byacc.
8599 Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8601 * emultempl/hppaelf.em: First attempt to clean this file up.
8602 Add comments in several functions as to their purpose and
8603 how they function (or my current best guess). Clean up horrible
8604 spacing and indention that never should have been accepted in the
8605 first place. Add FIXMEs for issues which need to be resolved.
8606 Disable linker-stub generation until it gets fixed. This allows
8607 the linker to at least work on simple code for testing purposes.
8609 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
8610 it via hppaelf_finish). Prototype moved into ldlang.h.
8611 (lang_process): Move problematic extra call to lang_size_sections
8612 into the PA ELF specific code.
8613 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
8614 lang_size_sections moved here.
8616 Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
8618 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
8619 * config/ppc-elf32.mt: New file.
8620 * emulparams/elf32ppc.sh: New file.
8621 * emultempl/ppc.em: New file.
8622 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
8623 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
8624 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
8626 Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8628 * lexsup.c (parse_args): Use symbolic numbers for long options.
8629 Fix misunderstanding in -Y and -call_shared et al.
8631 Use getopt instead of lex and yacc to parse the command line.
8633 * ld.texinfo (Options): Document changes to option syntax.
8634 * Makefile.in: Update dependencies.
8635 * ldver.c (help): Tweak dashes in usage message.
8636 * ldgram.y (%union): Remove unused members.
8637 Remove %tokens for command line options; add ones for input types.
8638 (command_line): Rules removed.
8639 (file): Instead of command line, recognize an
8640 input type indicator, then use the nonterminal for that type.
8641 (defsym_expr): New nonterminal from code formerly in command_line.
8642 * ldlex.h: Declare parser input type enum and variable.
8643 Don't declare parse_line.
8644 * ldlex.l: Remove unused variables. Make some used ones static
8646 (COMMAND): Start state and its rules removed.
8647 At start of yylex, return input state token if at start of input.
8648 (lex_redirect): Don't need to set yyout.
8649 (ldlex_command): Function removed.
8650 * ldmain.c (main): Instead of calling parse_line, set up the
8651 redirections and call yyparse directly.
8652 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
8654 * lexsup.c: Remove #if 0'd code.
8655 (parse_line): Function removed.
8656 (parse_args): Rewrite to use getopt_long_only.
8657 (set_default_dirlist): New function from code formerly in
8658 ldgram.y:command_line.
8659 (set_section_start): New function.
8660 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
8661 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
8662 compiled-in link scripts in "{" and "}", as the grammar no longer
8665 Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
8667 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
8668 require that it be in $(srcdir).
8670 Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
8672 * ldlang.c (lang_size_sections): Only align section to alignment
8673 required by linker script, not to maximum alignment of input
8676 * ldlang.h (largest_section): Don't declare.
8677 * ldlang.c (largest_section): Don't define.
8678 (size_input_section): Don't set largest_section; not used.
8680 Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
8682 * ldlang.c (new_afile): Pass NULL as last argument to concat.
8684 Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8686 * ldlang.c, ldmain.c: Include libiberty.h.
8688 * ldmisc.h (concat): Don't declare.
8689 * ldmisc.c (concat): Don't define; just use the one in libiberty.
8691 * ld.h (as_output_section_statement): Removed; not used.
8693 Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8695 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
8696 bfd_set_error and new error names.
8698 Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8700 * ldwrite.c (build_link_order): If the cooked size of the section
8701 has been set, use it, for determining link_order size.
8702 (ldwrite): In the error message displayed if bfd_final_link fails,
8703 indicate that it was in fact the final link step that failed.
8705 * ldlang.c (lang_size_sections): Clear bfd_error before calling
8706 bfd_relax_section, in case it returns false but doesn't flag an
8707 error. If an error is returned, indicate which one it is in the
8710 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
8711 it'll get picked up from $(srcdir) if appropriate.
8713 Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8715 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
8716 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
8718 Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8720 * ldlex.l (comment): Increment line number when newline is read.
8722 Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8724 * ldlang.c (lookup_name): Take new argument, force_load. If true,
8725 reload the file even if it is already loaded.
8726 (wild): Call lookup_name with force_load argument of 0.
8727 (open_input_bfds): Call lookup_name with force_load argument of 1.
8728 (print_symbol): Remove declaration of non-existent function.
8729 (print_one_symbol): Return true rather than falling off end.
8731 Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8733 * ldmain.c (main): Use %ld when printing long values.
8735 * scripttempl/elf.sc: Move _edata after the .sdata section.
8736 Permit OTHER_BSS_SYMBOLS to be defined.
8737 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
8739 Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8741 * Rename all "hppaosf" files to "hppaelf".
8742 * Change all "osf" references to "elf" in hppaelf files.
8743 * Makefile.in: Likewise.
8744 * configure.in: Likewise.
8746 Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8748 * ldmain.c (main): Call xatexit, not atexit.
8749 Call xmalloc_set_program_name.
8751 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
8754 Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8756 * emultempl/lnk960.em (append), emultempl/hppaosf.em
8757 (hppaosf_finish): Call xmalloc, not ldmalloc.
8758 * ldmain.c (preserve_output): Function removed.
8759 (main): Do it here instead.
8761 Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8763 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
8764 GNU C specific macros.
8766 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
8767 call to LANG_FOR_EACH_INPUT_SECTION.
8769 Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8771 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
8772 deleted; will use libiberty versions instead.
8773 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
8774 mri.c Makefile.in: Change callers.
8776 * ldmisc.c (vfinfo): Remove cleanup code.
8777 * ldmain.c (remove_output): Put it here (new function).
8778 (preserve_output): New function.
8779 (main): Register remove_output and preserve_output with atexit.
8780 * ldmain.c ldgram.y: Call xexit instead of exit.
8781 * ldmisc.h: Declare xexit.
8783 Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
8785 * Makefile.in: Lots of new H8/500 memory models.
8787 Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8789 * ldlex.l: Removed duplicate rules.
8790 (yywrap): Provide default definition, needed with some versions of
8793 Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8795 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
8796 the archive filename too.
8798 * ldlex.l: Add rule to catch invalid input characters instead of
8799 printing them. Include "ldmain.h" for program_name decl.
8800 (lex_warn_invalid): New function.
8801 * Makefile.in: Add dependency.
8803 Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8805 * Makefile.in (check): Don't bother running any tests of
8806 cross-linker until the test suite no longer assumes native mode.
8808 Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
8810 * ldlang.c (print_one_symbol, print_input_section): Print
8811 global symbols in symbol table again.
8813 Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8815 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
8816 exit successfully instead of complaining if no input files are
8819 Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
8821 * Makefile.in: Format variable definitions consistently.
8822 (LD_PROG): Remove unnecessary variables from link command,
8823 change variable LOADLIBES to EXTRALIBS.
8825 * ldmain.c (main): Compute and display total execution time.
8826 * ld.texinfo (-stats): Document the option.
8828 Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8830 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
8833 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
8836 * ldlang.c (relaxing): Removed global variable.
8837 (lang_size_sections): If the canonical symbols have not already
8838 been read in, read them in before relaxing.
8839 * ldlang.h (relaxing): Removed declaration.
8841 Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8843 * ldlang.c (new_afile): Initialize loaded field to false.
8844 (lookup_name): If file was already loaded, don't call the
8845 add_symbols entry point again.
8847 Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8849 * ld.texinfo: Clarify what -T option does.
8851 Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
8853 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
8856 Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8858 * ldmain.c (add_archive_element): If trace_files or
8859 trace_file_tries, print file name.
8860 * ldlang.c (lookup_name): Likewise.
8861 (ldlang_add_file): Don't put files on input_bfds list in reverse
8864 * scripttempl/elf.sc: Correct typo.
8866 Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8868 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
8869 their arguments optional, for compatibility with the old GNU ld.
8871 Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8873 * scripttempl/elf.c: Define __bss_start before the .sbss section.
8875 Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8877 * ldmain.c (add_to_set): Add bitsize argument.
8878 (constructor_callback): New function.
8879 (link_callbacks): Add constructor_callback.
8880 * ldctor.c (struct set_info): Add bitsize field.
8881 (ldctor_add_set_entry): Add bitsize argument.
8882 (ldctor_build_sets): Base the size of the elements of the set on
8883 the bitsize, rather than always using LONG.
8884 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
8886 * ld.h (QUAD_SIZE): Define.
8887 * ldgram.y (QUAD): New token.
8888 (length): Handle it.
8889 * ldlex.l: Return QUAD.
8890 * lexsup.c (keywords): Add QUAD.
8891 * ldwrite.c (build_link_order): Handle QUAD.
8892 * ldlang.c (print_data_statement): Handle QUAD.
8893 (lang_size_sections): Likewise.
8894 (lang_do_assignments): Likewise.
8895 * ldexp.c (exp_print_token): Add QUAD to table.
8896 * ld.texinfo: Describe QUAD.
8898 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
8899 since the Alpha doesn't use them.
8901 Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8903 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
8905 Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
8907 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
8908 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
8910 Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8912 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
8913 needed for i386mach. (Should be a no-op on other systems.)
8915 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
8916 (PAGE_SIZE): Don't define; not used.
8918 Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8920 * ldgram.y (yyerror): Make argument const char *, and actually
8921 print it out rather than assuming it is a syntax error.
8922 * ldmisc.h: Change declaration of yyerror.
8923 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
8925 Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8927 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
8928 exec header offset, since the exec header isn't loaded.
8929 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
8931 Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8933 A major rewrite to move the bulk of the linker into BFD so that
8934 more efficient backend code can be written for specific object
8936 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
8937 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
8938 * ldctor.c, ldctor.h: Complete rewrite.
8939 * ldwrite.c, ldwrite.h: Complete rewrite.
8940 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
8941 link_info.strip instead. Changed all uses.
8942 (discard_locals_type, discard_locals): Removed. Use
8943 link_info.discard instead. Changed all uses.
8944 (ld_config_type): Removed relocateable_output field; use
8945 link_info.relocateable instead; changed all uses. Added stats
8947 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
8948 set_loader_symbol): Removed.
8949 * ldexp.h (node_class): Added etree_rel.
8950 (etree_type): Added rel field.
8951 * ldexp.c (exp_print_token): Bracketed table initialization.
8952 (exp_relop): New function.
8953 (fold_name): Use linker hash table rather than ldsym functions.
8954 (exp_fold_tree): Likewise. Also, handle etree_rel case.
8955 (exp_print_tree): Handle etree_rel.
8956 * ldgram.y (strip_symbols, discard_locals): Removed.
8957 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
8958 (REL): New token. Does not appear in grammar, but needed for
8960 (file): Don't call lang_final; it's called by main anyhow.
8961 * ldlex.l: Accept -stats and -no-keep-memory options.
8962 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
8963 * ldlang.c: Consistently use fill_type for fill argument.
8964 (lang_init_script_file, script_file): Removed.
8965 (create_object_symbols): Removed. Use
8966 link_info.create_object_symbols_section instead. Changed all
8968 (lang_add_keepsyms_file): Removed.
8969 (lookup_name): Call bfd_link_add_symbols instead of
8970 ldmain_open_file_read_symbol.
8971 (wild): Don't iterate over script_file.
8972 (open_output): Create link hash table.
8973 (lang_place_undefineds): Rewrote.
8974 (lang_size_sections): Handle relaxing (doesn't work yet).
8975 (lang_relocate_globals): Removed.
8976 (lang_finish): Use link hash table rather than ldsym functions.
8977 (lang_common): Rewrote.
8978 (lang_one_common): New function.
8979 (ldlang_add_file): Add file to link_info.input_bfds list. Set
8981 (create_symbol): Removed.
8982 (lang_process): Don't call lang_init_script_file. Call
8983 ldctor_build_sets rather than find_constructors. Don't call
8984 lang_relocate_globals.
8985 (lang_abs_symbol_at_beginning_of): Rewrote.
8986 (lang_abs_symbol_at_end_of): Rewrote.
8987 * ldmain.c (had_y): Removed.
8988 (lprefix, lprefix_len): Removed; use link_info fields instead.
8990 (multiple_def_count, commons_pending, undefined_global_sym_count,
8991 total_symbols_seen, total_files_seen): Removed.
8992 (link_callbacks, link_info): New variables.
8993 (main): Initialize link_info. Don't call init_bfd_error_vector or
8994 ldsym_init. Don't set now unused variables. Handle -stats.
8995 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
8996 (add_ysym): Rewrote.
8997 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
8998 search_library, gnu960_check_format, decode_library_subfile,
8999 linear_library, symdef_library, clear_syms, subfile_wanted_p):
9001 (add_keepsyms_file, add_archive_element, multiple_definition,
9002 multiple_common, add_to_set, warning_callback, undefined_symbol,
9003 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
9005 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
9006 require symbols for %C; look them up instead.
9007 * emultempl/hppaosf.em: Pass link_info to
9008 hppa_look_for_stubs_in_section.
9009 * Makefile.in: Rebuilt dependencies.
9010 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
9012 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
9014 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
9015 ldlang.h and ldctor.h.
9017 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
9018 declarations of free and malloc from flex output. Change malloc
9019 to ldmalloc in flex output.
9021 Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
9023 * ldmain.c (lprefix): Change default from a char to a string
9024 with only one character.
9025 (lprefix_len): Set default to one.
9027 * ldmain.h (lprefix_len): Declare.
9029 * ldsym.c (write_file_locals): Use strncmp rather than a character
9030 comparison for lprefix.
9032 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
9035 * emultmpl/hppaosf.em: Include ldexp.h.
9036 (before_parse): Set lprefix and lprefix_len correctly.
9038 Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9040 * ldlex.h: Don't declare yywrap if it is a macro.
9041 * ldlex.l: Include sysdep.h.
9042 * ldlang.c (lang_for_each_statement_worker,
9043 lang_for_each_statement): Forgot to use PARAMS.
9045 Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9047 * Makefile.in: Added .PHONY targets where appropriate. Added some
9049 (gcclibdir, version): Removed unused variables.
9050 (DEP): New variable, set to mkdep.
9051 (ALL_CFLAGS): New variable. Used in .c.o target.
9052 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
9054 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
9055 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
9056 mostly obsolete variables. Adjusted remaining uses.
9057 (DEF_EMUL): Removed variable.
9058 (ldmain.o): Handle undefined EMUL error correctly.
9059 (ldemul-list.h): Depend on config.status rather than Makefile.
9060 Create via temporary file.
9061 (ver960.c, roll, make): Removed obsolete targets.
9062 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
9064 * dep-in.sed: New file, used when rebuilding dependencies.
9066 Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
9068 Made many changes to eliminate gcc warnings. Made various
9069 cosmetic changes, declared various things in header files, removed
9070 various extern declarations from .c files. No substantive
9073 * ldlang.c (lang_process): Ifdef out final call to
9074 lang_size_sections again (reverting change of Nove 2), since it
9075 breaks the Sun4 linker.
9077 Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9079 * configure.in (alpha-*-netware*): New target; use alpha.
9081 Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
9083 * configure.in: Group targets by CPU. Merge some m68k target
9084 entries with different CPU specs that use the same ld_target
9087 * configure.in: Add sparc*-*-coff.
9088 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
9089 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
9090 (em_coff_sparc.c): Add dependencies and build rules.
9092 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
9094 Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9096 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
9098 (command_line_option): Accept and ignore them (for now).
9099 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
9100 where n is a number.
9102 Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9104 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
9105 not in bfd_com_section, create the section in the BFD so that it
9106 can be placed in the right output section.
9108 Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9110 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
9111 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
9112 (OTHER_READONLY_SECTIONS): Define for .reginfo.
9113 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
9114 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
9115 Move OTHER_READONLY_SECTIONS after all the other readonly
9116 sections. Don't use DATA_ADDR twice.
9118 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
9119 p is in a common section, make sure the BFD has a section of that
9122 * ldlang.c (lang_common): Add newline to error message.
9124 Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
9126 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
9127 Lynx-specific script instead of m68kcoff.
9128 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
9129 (ENTRY): Define as __main.
9130 (TEXT_START_ADDR): Define as 0.
9131 (PAGE_SIZE): Define as 0x1000.
9132 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
9133 * scripttempl/m68klynx.sc: New file.
9135 Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9137 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
9138 arguments rather than treating them as emulation names.
9140 Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
9142 * configure.in: Support x86 unixware and netware plus generic netware.
9144 Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9146 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
9149 Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
9151 * Makefile.in (distclean): Don't delete dvi or info files.
9152 (ld.info): Update dependency list.
9153 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
9155 Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9157 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
9158 Set output_filename instead of creating a new node.
9159 (open_output): Don't set output_filename.
9160 (lang_final): Create the new node here.
9161 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
9163 Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
9165 From Pete Hoogenboom (hoogen@cs.utah.edu):
9167 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
9168 edata, _edata, end): Add definitions of these symbols.
9169 (__end): Remove definition of this symbol.
9170 (__data_start): Move definition of this symbol.
9172 * emultempl/hppaosf.em: Various fixes and support for linker stub
9174 (hppaosf_finish, hppaosf_search_for_padding_statements,
9175 hppaosf_create_output_section_statements): New functions in
9176 support of linker stub generation.
9177 (ld_hppaosf_emulation): Redefine to include new
9178 emulation-specific routines.
9180 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
9181 Pass abs_output_section rather than NULL to avoid invalidating
9184 Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9186 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
9187 (em_i386mach.c): New rule.
9188 * configure.in (i[34]86-*-mach*): New case.
9189 * config/i386-mach.mt: New file.
9190 * emulparams/i386mach.sh: New file.
9192 Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9194 * ld.h (flag_is_*): Removed macros.
9195 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
9196 Consistently check the BFD symbol flags directly, rather than
9197 using file_is_* macros.
9199 Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
9201 * configure.in (sparc*-*-lynxos*): New target.
9202 * Makefile.in: Add rule for em_sparclynx.c.
9203 (ALL_EMULATIONS): Add Lynx emulations.
9204 * config/sparc-lynx.mt: New file.
9205 * emulparams/sparclynx.sh: New file.
9206 * scripttempl/sparccoff.sc: New file.
9208 Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9210 * Makefile.in: Add dependency for $(EMULATION_OFILES).
9212 Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9214 * relax.c (write_relax): Check return value of bfd_seclet_link.
9216 Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
9218 * ldlang.c (delete_output_file_on_failure): New variable.
9219 (open_output): Set it after bfd open succeeds.
9220 * ldmisc.c (vfinfo): Test it.
9222 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
9224 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
9227 * ldemul.c: Support was added to allow emulation-specific
9228 processing to occur. This support was added primarily for linker
9229 stub generation in the elf32-hppa gld.
9230 (ldemul_finish, ldemul_create_output_section_statements): New
9232 * ldemul.h: Support was added to allow emulation-specific
9233 processing to occur. (As described above.) Added finish and
9234 create_output_section_statements fields to
9235 ld_emulation_xfer_struct structure.
9236 * ldlang.c: Add calls to emulation-specific routines.
9237 (lang_process): Add call to
9238 ldemul_create_output_section_statements function.
9239 (lang_process): Add call to a emulation-specific routine (and
9240 some processing after the call).
9242 Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
9244 * configure.in: mips*- instead of mips-, mips*el changes
9246 Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9248 * configure.in (alpha-*-osf*): New target; use alpha.mt.
9249 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
9250 (em_alpha.c): New target; use alpha.sh and alpha.sc.
9251 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
9252 * config/alpha.mt: New file.
9253 * emulparams/alpha.sh: New file.
9254 * scripttempl/alpha.sc: New file.
9256 Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
9258 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
9259 types of different sizes (eg: 64 and 32 bits), so coerce.
9260 * ld.h (ALIGN_N): Add warning about usage.
9262 Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9264 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
9265 which we already have a definition, rather than checking in
9266 several different places whether the symbol is weak.
9268 Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9270 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
9271 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
9272 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
9273 expanded within them.
9274 * config/mipsb-elf32.mt: New file.
9275 * emulparams/elf32mipb.sh: New file.
9276 * Makefile.in (em_elf32mipb.c): New target.
9278 Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
9280 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
9281 lang_input_file_is_search_file_enum so objects brought in using
9282 INPUT() do a path lookup.
9284 Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
9286 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
9287 instead of {i386,m68k}-coff.
9288 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
9289 * config/i386-lynx.mt: New file.
9290 * config/m68k-lynx.mt: New file.
9291 * emulparams/i386lynx.sh: New file.
9292 * emulparams/m68klynx.sh: New file.
9294 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
9295 but defaulting to _start.
9297 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
9298 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
9301 Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
9303 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
9304 HOSTING_LIBS for testing.
9306 Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9308 Finish up support for i386-sysv4 (without shared libraries):
9309 * ld.h (flag_is_weak): Define.
9310 * ldlang.c (print_symbol): Mention whether symbol is weak.
9311 (print_input_section): Print weak symbols as globals.
9312 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
9313 (enter_global_ref): Do not warn if a weak symbol redefines a
9314 global symbol. Do not let a weak symbol redefine a common symbol.
9315 (enter_file_symbols): Treat weak symbols as global symbols.
9316 (subfile_wanted_p): Do not pull in an object file from a archive
9317 just to resolve an undefined weak symbol.
9318 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
9319 error; the error might be that malloc has run out of space.
9320 * ldsym.c (write_file_locals): Treat weak symbols as global.
9321 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
9323 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
9324 * config/i386-elf.mt: New file; set EMUL to elf_i386.
9325 * emulparams/elf_i386.sh: New file.
9326 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
9327 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
9328 (ALL_EMULATIONS): Add em_elf_i386.o.
9329 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
9330 (em_elf_i386.c): New target, like other em_*.c targets.
9331 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
9332 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
9333 nonempty, and configured for native, add it to LIB_PATH.
9335 Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
9337 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
9338 Added statements to pass stab and stabstr sections through and
9339 mark them as NOLOAD, which makes GDB happier.
9341 Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
9343 * configure.in: Accept m68k-lynx-lynxos config.
9345 * Makefile.in: Use $(SHELL) to run genscripts.sh.
9347 Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
9349 * config/coff-h8300.mt: Add EMUL=h8300h.
9351 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
9353 Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
9355 * Makefile.in: Changed CXX back to g++.
9357 Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
9359 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
9361 Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9363 * Makefile.in (TAGS): Use shell wildcards.
9365 Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
9367 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
9369 Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
9371 * ld.texinfo: re-enable included config file; conditionalize doc
9372 for -oformat to interact properly with SingleFormat doc config
9373 var; rename @up/@down to @raisesections/@lowersections.
9375 Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
9377 * configure.in: recognize m88110.
9379 Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9381 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
9382 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
9383 ELF emulation is "elf32-hppa" not "elf-big".
9384 (hppaosf_before_parse): Remove unneeded processing of environment
9386 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
9387 .text segment of output file.
9388 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
9390 Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
9392 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
9395 * ldlang.c, ld.h: updated copyright.
9397 Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9399 * ldlang.c (open_output, lang_check): Check return value of
9402 Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
9404 * scripttempl/h8500.sc: Start all sections in a different segment.
9405 * scripttempl/z8ksim.sc: Handle constructors
9407 Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
9409 * Makefile.in: revert earlier changes back to execute runtest
9410 with make check. cdtest and bootstrap now function as they
9411 did within the Makefile.
9413 Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9415 * Makefile.in: Update dependencies.
9417 * configure.in: Set EMULATION_OFILES in Makefile based on
9418 --with-targets option.
9420 Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
9422 * Makefile.in: check targets reimplemented to old way.
9424 Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
9426 * config/i386v.mh, config/irix4.mh: Use gcc
9427 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
9428 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
9429 bfd/configure.host change.
9431 Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9433 * scripttempl/elf.sc: Handle .line and .debug* sections.
9435 * ldlex.l: Use bfd_scan_vma, not strtoul.
9437 Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9439 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
9440 Remove inital caps in some error messages, change "can't" to
9441 "cannot", add missing colons.
9442 * ldmisc.c (vfinfo): Print "%%" as a single %.
9443 For '%' followed by unrecognized character, print them both
9444 verbatim instead of expecting a char * arg.
9445 For '%C', don't put the function name in parens.
9447 * ldexp.c (invalid): Pass "%%", not "% ".
9449 Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9451 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
9452 (BSS_VAR): Removed; now always define _fbss.
9453 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
9456 Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
9458 * configure.in: z8k-coff is the same as z8k-sim
9460 Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
9462 * testsuite/lib/ld.exp: new file
9463 * testsuite/config/unix-ld.exp: new file
9464 * testsuite/ld.bootstrap/bootstrap.exp: new file
9465 * Makefile.in: add dejagnu support for make check
9467 Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9469 * ldlex.l (comment): Add missing newline in message.
9470 * ldindr.c (add_indirect): Ditto.
9471 * ldexp.c (exp_fold_tree): Ditto.
9473 Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9475 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
9478 * ldmisc.c (multiple_warn): New function.
9479 * ldmisc.h: Declare it.
9480 * ldmain.c (enter_global_ref): Call it.
9481 * ld.h (ld_config_type): Add warn_common.
9482 * ldlex.l, ldgram.y: Set it with -warn-common option.
9483 * ldver.c (help): Document it.
9485 Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9487 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
9488 target-specific sections, and for changing data section vma.
9490 Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9492 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
9493 terminals, for Solaris.
9494 (dirlist_ptr): New static variable.
9495 (command_line_option): Accept new options.
9497 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
9500 * config/sun4sol2.mt: Pass emulation name without ".sh".
9502 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
9503 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
9505 Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9507 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
9508 .dtors, .data1, .rodata1 sections, instead of combining them into
9509 other sections. For `-r', set all section start addresses to
9512 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
9513 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
9514 (MAXPAGESIZE): Renamed from PAGE_SIZE.
9516 Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9518 * genscripts.sh: If this is the default emulation, set
9520 * emultempl/*.em: Use it to determine whether to compile in the
9523 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
9524 genscripts.sh. Pass the current emulation name without ".sh" on
9526 * genscripts.sh: Take an default emulation arg.
9527 Use the current emulation name as EMULATION_NAME.
9528 Make default lib path for cross-compiling ':', not null.
9529 * emulparams/*.sh: Don't set EMULATION_NAME.
9530 * ldemul.c (ldemul_get_script): Take isfile arg.
9531 Pass it to emulation's get_script function.
9532 * ldemul.h: Adjust get_script prototypes.
9533 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
9535 * ldfile.h: Declare it.
9536 * ldgram.y: Accept a script on the command line again,
9537 for parsing compiled-in scripts.
9538 * ldmain.c (main): If ld script is a file, parse it as a -T
9539 option, otherwise parse it directly.
9540 * emultempl/*.em (*get_script): Return the scripts themselves if
9541 this is the default emulation; otherwise return their file names.
9542 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
9544 * emulparams/m88kbcs.sh: Use it.
9546 * ld.h (ld_config_type::unix_relocate): Remove unused element.
9548 Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9550 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
9551 there's no change log entry yet, tsk tsk) from the list of
9552 emulations compiled in until Mark gets around to checking in
9553 emulparams/i386linux.sh.
9554 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
9555 changed, this file gets updated.
9557 Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
9559 * ldgram.y (OPTION_Lfile): New token.
9560 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
9561 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
9563 Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
9565 * configure.in: h8/300h support needs own .mt file.
9566 config/coff-h8300h.mt: New file.
9568 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9570 * ldmain.c: Don't include sys/stat.h; it already got included
9571 somewhere along the way.
9573 Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
9575 * Makefile.in: Add h8300h support.
9576 emulparams/h8300h.sh: New file.
9577 scripttempl/h8300h.sc: New file.
9579 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9581 * ldfile.c (ldfile_open_file): In error message, use the name the
9582 user gave (e.g., "-lc"), rather than the base file name.
9584 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
9586 * ldmain.[ch]: Remove initial Q_ from function names.
9587 * ldexp.c, ldindr.c, ldlang.c: Change callers.
9589 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
9591 * ldlang.c (lang_process): Move loading of default script from
9592 here to main. Add a "/" to start of script name to prevent
9593 finding it in "." first.
9595 * ldmain.c (set_scripts_dir): Don't look in "." first.
9597 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
9600 Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
9602 * Makefile.in (em_m88kbcs.c): Correct dependency.
9603 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
9604 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
9605 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
9607 Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9609 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
9610 main.c (main): Print the errno string in the error message.
9612 Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
9614 * configure.in: Accept h8300h for target cpu.
9616 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
9617 present (demangle is smart enough to know whether to do it or not).
9619 Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9621 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
9622 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
9624 * ldlang.c (lang_process): Use sizeof instead of magic constant.
9626 * ldmain.c (get_emulation, check_for_scripts_dir,
9627 set_scripts_dir): New functions.
9630 Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9632 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
9633 Create symbol "end" instead of "__end". Comment out some parts
9634 that may not be needed (yet) for elf.
9636 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
9638 Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9640 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
9642 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
9643 when no prototype is being supplied.
9644 (ldmalloc, ldrealloc): Size argument is now size_t.
9646 * ldmisc.c (finfo): New function, accepts FILE* argument.
9647 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
9648 without leading zeros.
9649 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
9650 bfd_vma value, instead of fprintf(%x) which won't hold a long long
9652 (concat, buystring): String lengths are size_t.
9653 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
9655 * ldlang.c (new_statement): Size argument is now size_t. Added
9656 forward declaration with prototype.
9658 Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9660 * ldgram.y (OPTION_v): Don't turn on verbose output.
9662 Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9664 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
9667 Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
9669 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
9670 collect2 doesn't look for gld any more anyhow.
9672 Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
9674 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
9675 now have a non NULL srefs_chain.
9677 * config/hp300hpux.mt: Use emulation hp3hpux rather than
9678 hp300hpux, since the latter does not exist.
9680 Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9682 * genscripts.sh: Put the scripts in the ldscripts directory, not
9684 * configure.in (ldscripts): Make, instead of emulations.
9685 * Makefile.in (scriptdir): Take off the "ld" part.
9686 (install, clean, distclean): Use ldscripts, not emulations.
9687 In tests, don't pass -Lemulations.
9688 Don't pass tooldir/lib to genscripts.sh.
9689 * genscripts.sh: Don't take tooldir/lib arg.
9690 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
9691 default script file.
9693 Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
9695 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
9697 Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
9699 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
9701 Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
9703 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
9704 run in parallel without colliding on yacc's static file names.
9705 Without the stub rule, make will try to start two yacc's
9706 concurrently which fails because of yacc's static file names.
9708 Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
9710 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
9713 Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9715 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
9716 different from libdir.
9718 * Makefile.in (scriptdir): Base on tooldir, not datadir.
9720 Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9722 * ldver.c (help): New function.
9723 * ldver.h: Declare it.
9724 * ldlex.l, ldgram.y: Recognize new options --help and --version.
9726 Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
9728 * Makefile.in (INCLUDES): Don't need ../include any more.
9730 Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9732 * ldlex.l, ldgram.y: Support new -oformat option.
9733 Remove attempt at supporting script fragments on the command line.
9734 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
9735 * mri.c (mri_format), ldgram.y: Change callers.
9736 * ldlang.h: Change prototype.
9738 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
9740 * Makefile.in: canonicalize install.sh; for use within
9741 this directory (and subdirs)
9743 Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9745 * ldgram.y: Tweak grammar to make reporting of invalid options work.
9747 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
9750 Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9752 * ldfile.c (ldfile_open_command): Don't try .ld extension.
9753 It wasn't documented (or likely used) and wastes time.
9754 (try_open): If EXTEN is empty, don't try it.
9756 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
9757 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
9758 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
9759 with normal function declarations.
9761 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
9762 Move *.sc-sh to scripttempl/*.sc.
9763 * {emultempl,emulparams,scripttempl}/README: New files.
9764 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
9765 removed, replaced with generic.em.
9766 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
9767 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
9769 * *.em (*_get_script): Return script name instead of script contents.
9770 * ldlang.c (lang_process): Change caller.
9772 * ldlex.l, ldgram.y: Recognize -m option.
9773 Check for input files after *all* options in grammar.
9774 * ldmain.c (main): Check for -m options. Add default directory
9777 * mkscript.c: File removed.
9778 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
9779 to add to the default LIB_PATH.
9780 Look for input files in the new subdirectories.
9781 Create the scripts in emulations subdirectory and don't filter
9782 them through mkscript.
9783 * configure.in: Make the emulations subdirectory.
9785 * Makefile.in: Account for all of the above changes.
9786 Remove unused .SUFFIXES. Get libgcc.a path with gcc
9787 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
9788 Put CFLAGS last in the compilation rules.
9789 Add -I../bfd to INCLUDES so sysdep.h is found.
9791 Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9793 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
9795 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
9796 dependent on RELOCATING, not RELOCATION.
9797 * hp3hpux.sh (SHLIB_PATH): Define it.
9799 Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9801 * ldfile.c (try_open): If opening without the extension fails,
9802 try with the extension even if -v or -V was given.
9803 had_script is imported (from ldgram.y), not exported.
9805 Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
9807 * Makefile.in: remove parentdir support, use INSTALL_XFORM
9809 Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
9811 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
9812 * ldgram.y (statement_list_opt): New nonterminal, either empty or
9814 (section): Use statement_list_opt, not statement_list.
9815 * m68kcoff.sc-sh: Gather constructors and destructors and define
9816 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
9817 * sa29200.sc-sh: Gather constructors and destructors and define
9818 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
9820 Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
9822 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
9823 * configure.in: No longer need to configure to get sysdep.h.
9825 Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9827 * Makefile.in: remove install:all and install-info:info
9828 dependencies (these cause some spurious rebuilds at 'make install'
9831 Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
9833 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
9834 (mips-idt-ecoff*): Added trailing '*'.
9835 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
9836 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
9837 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
9839 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
9840 incorrect definitions.
9842 Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
9844 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
9845 symbols, unless stripping.
9847 Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
9849 * Makefile.in: configure looks for ####, so remove lines with many
9851 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
9852 and HOSTING_LIBS correctly so that ``make check'' will work.
9854 Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
9856 * mips.sc-sh: Define _etext, _edata, and _end, in addition
9857 to etext, edata, and end. Needed for IRIX 4.0.5F.
9858 Patch from mwp@iconix.oz.au (Michael Paddon).
9860 * Version 2.2.1 released.
9862 Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9864 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
9865 * mipsbsd.sh (EMULATION_NAME): Use new file name.
9867 Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9869 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
9872 * Version 2.2 released.
9874 Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9876 * ldver.c (ldversion): Bump version number to 2.2.
9878 Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
9882 Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
9884 * mips.sc-sh: Don't define BSS_VAR unless relocating.
9886 Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
9888 * Makefile.in (mkscript.o, mkscript): Build mkscript via
9889 mkscript.o, rather than directly from mkscript.c.
9891 Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9893 * configure.in: Look for ${target_makefile_frag} relative to
9894 ${srcdir}, not relative to build directory.
9896 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
9897 * configure.in: Recognize hppa*-hp-osf.
9898 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
9899 (em_hppaosf.c): Build it.
9900 * config/hppaosf.mh, hppaosf.mt: New files.
9902 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
9903 some system header files. All uses changed.
9905 * configure.in: Recognize i386-aix configurations as i386-coff
9908 * configure.in: Recognize m68*-*-hpux.
9909 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
9910 the value of STACKZERO.
9911 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
9912 (em_hp3hpux.c): Build it.
9913 * hp3hpux.sh, config/hp300hpux.mt: New files.
9915 Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
9917 * mips.sc-sh: Put constructors in the .data section.
9918 * Makefile.in (cdtest): Added dependency on ld.new.
9920 Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
9922 * Makefile.in: Change definition of $(tooldir) to match FSF.
9923 * vax.sh, config/vax.mt, configure.in, Makefile.in:
9924 Support VAX Ultrix and BSD.
9926 Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9928 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
9930 Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
9932 * ldlang.h (struct memory_region): Change `length' and
9933 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
9934 * ldlang.c, mri.c: Corresponding changes, plus lint.
9936 Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
9938 * configure.in: For all i386 targets, accept i486 as well.
9940 Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
9942 * ldlang.c (wild_doit): Preserve all flags for a
9943 SEC_SHARED_LIBRARY section.
9944 (size_input_section): Consider any SEC_HAS_CONTENTS section when
9945 computing largest_section.
9947 Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
9949 * ldlang.c (lang_output_section_statement_lookup): Initialize all
9950 fields of newly created structure.
9952 Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
9954 * ldmain.c (g_switch_value): New variable.
9955 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
9956 (command_line_option): Accept -G and set g_switch_value.
9957 * ldlex.l (COMMAND): Accept -G.
9958 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
9960 Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9962 Support for linking and loading at different places:
9964 * ldlex.l: Add "AT" keyword.
9965 * ldgram.y: Cleanup, and parse AT.
9966 * ldlang.c (print_output_section_statement): Print output address
9967 of section in map. (lang_size_sections): Fill sections' lma with
9969 * ldlang.h (lang_output_section_statement_type): Add load_base
9972 * ldindr.c (add_indirect): Keep more information in the alias
9974 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
9975 attribute from an input section.
9976 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
9977 default. (Q_enter_file_symbos): Indirect symbols now are known by
9978 their section, not a special symbol flag.
9979 * ldsym.c (write_file_locals): Indirect symbols aren't local.
9980 (write_file_globals): Write the mapping for an indirect symbol.
9981 * relax.c (build_it): When forced to write a NEVER_LOAD section,
9984 Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
9986 * ld.texinfo: changes for q1
9988 Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9990 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
9992 Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9994 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
9996 Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
9998 * mips.sc-sh: Added variables which may be overridden by a
10000 * mipsidt.sh: New file; emulation for IDT MIPS board.
10001 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
10002 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
10003 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
10004 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
10006 Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
10008 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
10009 ralphc@pyramid.com.
10010 * i386bsd.sh, config/i386bsd.mt: New files.
10011 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
10013 Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
10015 * mri.c: Add extern declaration of strdup.
10016 * ldsym.c (KEEP macro): Add spaces around '=' for the
10017 sake of old (e.g. PCC) compilers.
10019 Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
10021 * ldver.c: Bump to version 2.1.
10023 Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
10025 * ldgram.y: allow section types without address expressions.
10026 * ldlang.c (lang_relocate_globals): avoid possible hang with
10027 undefined but unreferenced symbols.
10028 * relax.c (relax_section): don't complain if the script file isn't
10029 relaxable but -relax is set
10031 Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10033 * configure.in: go32 is the 3rd part of the triple, not the 2nd
10035 Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
10037 * mipsbig.sh: New file. Big endian MIPS emulation.
10038 * config/mips-big.mt: New file. Use mipsbig emulation.
10039 * configure.in (mips-sgi-irix*): Use target mips-big.
10040 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
10041 (em_mipsbig.c): New target. Uses mipsbig.sh.
10043 Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
10045 * mips.sc-sh: Put .scommon sections into .sbss section.
10047 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
10048 rather than always putting them in bfd_com_section.
10049 * ldlang.c (lang_common): If a common symbol is not in
10050 bfd_com_section, put in a section of the same name, rather than
10051 always putting it in section COMMON.
10053 Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
10055 * ldmain.c (subfile_wanted_p): If we already have a common
10056 definition of a symbol, don't necessarily pull in an object file
10057 that provides a non-common definition.
10059 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
10060 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
10062 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
10063 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
10065 Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
10067 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
10070 Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
10072 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
10073 checking for equality to bfd_com_section.
10075 Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
10077 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
10078 targets, linker script.
10079 * mipslit.sh: New file. Little endian MIPS emulation.
10080 * config/mips-lit.mt: New file. Use mipslit emulation.
10081 * configure.in (mips-dec-ultrix*): Use target mips-lit.
10082 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
10083 (em_mipslit.c): New target. Uses mipslit.sh.
10085 Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
10087 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
10088 $(tooldir)/bin/gld, so that gcc can find it with or without
10091 Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10093 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
10094 write_norel. All linking is now done via write_relax. Call
10095 ldsym_write before calling write_relax.
10096 * relax.c: Added copyright.
10097 (write_relax): Renamed from write_relaxnorel. Added relocateable
10098 argument. seclet_dump renamed to bfd_seclet_link.
10099 * relax.h: Added copyright.
10101 Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
10103 * ldmain.c (decode_library_subfile): Patch from
10104 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
10106 Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10108 * config/vxworks960.mt renamed to config/i960.mt
10110 * configure.in: sparc-aout emulates a sun4, as does
10111 sparc*-vxworks, i960-nindy uses gld960 emulation
10113 Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
10115 Fix support for NOLOAD, add INCLUDE
10116 * ldfile.c (ldfile_open_command_file): pass file name to
10118 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
10119 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
10122 Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10124 * Makefile.in, config.h: no more default emulation. Make the lack
10125 of emulation a compile time error
10127 Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10129 * configure.in: recognise all sparclite variants, not just 'sparclite'
10131 Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
10133 * m68kcoff.sc-sh: define _end as well as end, for consistency with
10136 * configure.in: accept *-ericsson-ose for any m68k CPU.
10138 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
10139 for each output section.
10141 Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
10143 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
10144 macro bfd_asymbol_bfd as appropriate.
10145 * Makefile.in: Un-duplicate ldlex.c dependency.
10146 * condigure.in: Replace my_host case table by sourcing
10147 ../bfd/configure.host. Allow std-host as the default.
10148 * ldmisc.c: Change logic for C++ name demangling: There is
10149 no initial '_' to remove from stab-derived function names.
10151 Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10153 * ldlang.c (lang_init_script_file): don't attach the output file
10154 sections to the script file.
10156 Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10157 * ldlang.c (wild): run expansion loop over command line bfd too.
10158 (lang_ini_script_file): initialize more parts of the command line
10160 * ldlex.l: fix DEFINED start states.
10162 Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10164 * ld.texinfo: new doc.
10165 * ldgram.y, ldlex.l: understand -y<symbol>
10166 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
10167 print info. (add_ysym): new function.
10168 * ldsym.h: (ldsym_type): new define SYM_Y.
10170 Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
10172 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
10173 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
10174 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
10175 macros with PARAMS. Recreational cleanup. Update copyrights.
10177 Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10179 * Makefile.in: pass down the bfd source directory for includes
10181 Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
10183 * ldlang.c (lang_size_sections): don't change size and address for
10184 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
10187 Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10189 * relax.c (build_it): re-enable the processing of data_statements
10190 in scripts, makes counted contructor lists work again.
10192 Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
10194 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
10196 Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
10198 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
10201 Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
10203 * Support for i386-sysv.
10204 configure.in: check for i386-*-sysv* and i386-*-sco*.
10205 i386coff.sc-sh: rewrote to support SVR3 by default.
10206 ldctor.c (find_constructors): preserve stat_ptr.
10207 ldlang.c (wild_doit): initialize vma and size of new output
10208 section to corresponding input section. This is required for
10209 shared library support.
10210 (lang_size_sections): don't modify vma and size of sections which
10211 are never loaded (for shared libraries).
10212 ldwrite.c (copy_and_relocate): copy the contents of any section
10213 which has contents, not just sections which are loaded (for shared
10216 Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10218 * ldlang.c (size_input_section): count the sizes of all sections
10221 Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10223 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
10224 to demangle symbols better
10226 Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
10228 * ldlang.c (lang_finish): don't warn if -e start symbol does not
10229 exist when linking with -r.
10231 Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
10233 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
10236 Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10238 * ldmain.c (linear_library): don't even think about processing
10239 an object file if it's already been done
10241 Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10243 * configure.in: the hp9000/300 config file is now hp300
10245 Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10247 * config/z8ksim.mt: new file
10249 Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
10251 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
10252 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
10254 * ld.h (strip_symbols_type): Add value STRIP_SOME.
10255 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
10256 * ldlang.c (lang_add_keepsyms_file): New function.
10257 * ldlex.l: Handle "-retain-symbols-file".
10258 * ldsym.c (keepsyms_file, kept_syms): New vars.
10259 (process_keepsyms): New functihon; reads file, marks symbols for
10261 (write_file_locals): File symbols should always be kept.
10262 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
10263 and "-s". Process retain-symbols file before setting symtab.
10264 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
10265 (keepsyms_file, kept_syms): Declare them.
10267 * ldmain.c (main): Non-fatal errors should still cause non-zero
10268 exit status even with -r.
10270 Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10272 Added initial support for the z8k
10273 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
10274 * configure.in, Makefile.in: modified to reflect above
10276 * ldlang.c (lang_check): when linking conflicting architectures,
10277 make the output file reflect at least one of the bad inputs.
10279 Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
10281 * Makefile.in (install): if $(tooldir) exists, install ld in
10284 Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10286 * Makefile.in, configure.in: modified to support i386-coff
10287 * i386coff.sh: new file
10289 Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
10291 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
10292 added m68k-coff emulation mode, stolen from a29k emulation.
10293 Almost certainly wrong, but perhaps better than sun3.
10295 Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
10297 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
10298 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
10299 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
10300 This is one character shorter, and lets people build on
10301 SVR3 system. (ld__h8300xray.[co] was the killer there;
10302 h8300xray.sc-sh is also overlong, but seems harmless.)
10303 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
10304 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
10305 * configure.in: Add host isc.
10307 * ldver.c: Call it version 2.0.
10309 Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
10311 * ldver.c: Bump to version 0.98.
10314 * Makefile.in: Added mostlyclean, distclean, realclean rules.
10316 Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
10318 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
10319 * ldlex.l: Moved comment() to end, since some compilers
10320 otherwise have problems with input() used before it is defined.
10322 Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10324 * configure.in: added Solaris 2 and Irix 4 host support.
10326 Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10328 * Makefile.in: remove -S flag from the FLEX definition
10330 * configure.in: rewrote, using new style case statement. use
10331 m68k.mt for m68k-aout systems
10333 Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
10335 * Makefile.in: map "ld" through program_transform_name when
10338 Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
10340 * cplus-dem.c: Removed. Use the version in libiberty now.
10341 * ldmisc.c: Use new libiberty version of cplus_demangle().
10343 Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
10345 * gld960.em (gld960_choose_target): default to little endian, not
10348 Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10350 * ldlang.c (lang_process): don't pass null pointers when
10351 abs_output_section is what is required.
10352 * ldwrite.c (ldwrite): use malloc to allocate the largest space
10353 used, and pass that down.
10354 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
10357 Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
10359 * configure.in, config/ose68.mt: renamed OSE to ose.
10361 Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
10363 * ldsym.c (write_file_locals): Reorder check for common or
10364 undefined symbols so that it works.
10366 Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
10368 * configure.in: accept all m68K family members.
10370 * Makefile.in: always create installation directories.
10372 Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10374 * ldlex.l: now parses comment correctly, added ~ to acceptable
10377 * ldexp.c (exp_unop): pass down abs_output_section - now can have
10378 unary -ve constants.
10380 * ldlang.c (lang_finish): warn when an entry symbol supplied on
10381 the command line can't be found.
10383 Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10385 * ldlang.h: add new field "loadable" to output_section_statement.
10386 * ldlang.c (lang_output_section_statement_lookup): initilize new
10387 field. (wild_doit): if new field is not set, then stop output
10388 section from being loadable.
10389 (lang_enter_output_section_statement): set the field from the
10391 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
10392 * h8300hms.sc-sh, h8300hms.em: get -r right.
10394 Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
10396 * ldint.texinfo: New internals manual (beginnings thereof).
10397 * PORTING: Removed, merged into ldint.texinfo.
10399 Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
10401 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
10402 cdtest.exp: A test program (copied from libg++/test-install)
10403 that tests that constructor and destructors are handled
10406 Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10408 * Makefile.in (install): install from ld.new, renaming during the
10409 copy, or else the next 'make install' needs to re-link ld.
10411 Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
10413 * configure.in: generalise hp recognition (from sef).
10415 Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10417 * configure.in: recognize bsd and hpux hppa configurations.
10418 error messages echo to stderr, not stdout
10420 Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10422 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
10423 ldmisc.c: removed rcsid's.
10425 Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10427 * ldlang.c (lang_map): print changes in sizes due to relaxing
10428 (size_input_section): maintain the delta information.
10429 * ldlang.h: add new field to struct to contain delta info.
10430 * relax.c (relax_section): complain if input not relaxable.
10431 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
10432 start of a filename
10434 Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10436 * ldmain.c(main): prevent -r and -relax from being on at the same
10439 Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10441 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
10445 Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10447 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
10449 * ldlang.c(open_output): set the target arch and machine as soon
10450 as we can. (lang_size_sections): use new macros for setting vma
10453 Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
10455 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
10456 Also deleted an unreachable path to wrs.
10458 Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
10460 * Makefile.in (install): use -d test for $tooldir before
10461 installing ld there so that $tooldir can be inherited from
10462 top-level Makefile.
10464 Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
10466 * ldlang.c: Two non-substantial changes for the sake of
10467 the old Portable C Compiler.
10469 Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10471 * ldgram.y, ldlex.l: parse ABSOLUTE
10472 * ldexp.c: add support for ABSOLUTE
10474 Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
10476 * Makefile.in: Added default definitions for HOSTING_CRT0,
10477 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
10478 * config/*.mh: Miscellaneous clean-up: Removed definitions
10479 of YACC (since it is not longer used in the Makefile).
10480 Remove HOSTING_* definitions that are subsumed by the
10481 ones added to Makefile.in. Removed most definitions of CC.
10482 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
10483 These are no longer needed.
10485 Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
10487 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
10488 rules, since these are used when building a distribution.
10489 * Makefile.in (ldlex.c): Don't re-direct output, since that
10490 leaves a bogus output files if it fails.
10492 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
10493 * ldlex.c: Fix some unnecessary flex-specific-isms.
10495 Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10497 * ldgram.y: move spurious semicolon
10498 * ldexp.h: fix prototype
10500 Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
10502 * ld.texinfo: references to linker now say "ld" not "gld".
10504 Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10506 changed calling convention for Q_enter_global_ref
10507 * ldexp.c, ldlang.c, ldmain.c: reflect this
10508 * ldver.c: bump version to 1.97.1
10509 * ldindr.c (add_indirect): when an edict declaring an indirect
10510 symbol is found, make sure that any ideas about the symbol being
10511 common are changed if it now known to be defined.
10512 * ldmain.c (linear_library): complain once if archive isn't
10514 * ldlang.h, ldlang.c: make room for and initialize the complain
10517 Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10519 * Makefile.in: use flex & bison from ../ if they exist.
10521 Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10523 * relax.c (build_it): don't allocate space in the output file for
10524 stuff if -R flag applys to it.
10525 * ldfile.c: merge in VMS filename support
10526 * ldmain.c (main): take out ./ from library path, and close file
10527 before unlinking. Make multiple defs of a symbol create an
10529 * ldmisc.c: fatal errosrs delete output file
10531 Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
10533 * ldver.c: Increase version number to 1.97, for consistency
10536 Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
10538 * Makefile.in: FLEX -> LEX.
10540 * ld.texinfo: {} -> @{@}.
10542 Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
10544 * ld.texinfo: describe alternate, MRI-compatible linker scripts
10545 (and associated change in -c option, now used for these scripts)
10547 Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10549 * ldver.c: Bumped version to 1.96 - new release, resync with the
10551 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
10552 rather than with raw malloc, makes it easier to track where memory
10554 * ldsym.h, ldsym.c: create obstack for all global symbols too.
10555 * ldwrite.c (ldwrite): moved malloc so only used when needed.
10556 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
10559 Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
10561 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
10563 * Makefile.in: use bootstrap for check.
10565 Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10567 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
10569 * Makefile.in: now use flex, not lex
10570 * ldlex.l, ldlang.c, ldctor.c: lint
10572 Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10574 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
10575 different sorts of filenames on the command line than in a script.
10577 Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10579 * Makefile.in: rework CFLAGS so that they can be passed on the
10580 make command line. Remove MINUS_G. Default CFLAGS to -g.
10582 Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10584 * relax.c: added handling for new "padding" seclet type, used to
10585 fill out gaps between section.
10586 * ldgram.y, ldlex.l: now -defsym on the command line is done
10589 Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10591 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
10593 Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10595 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
10598 Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
10600 * Makefile.in (install): Install second copy in $(tooldir)/bin
10601 without $(program_prefix), since that's what gcc expects.
10603 Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10605 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
10606 * h8300*: fix bit rot and add support for h8300xray target
10607 * go32.sh: target emulation for go32.
10609 Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
10611 * gld960.em, i960.sc-sh. Fix i960 bit rot
10613 Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
10615 * Makefile.in: install man page.
10617 Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10619 * config/mt-<foo> renamed to <foo>.mt
10620 * config/mh-<foo> renamed to <foo>.mt
10621 * configure.in changed to reflect this
10622 * genscripts.sh now make .xbn files rather than .xN files
10624 Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
10626 * ldver.h: fix decl of ldversion.
10628 Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
10630 * Makefile.in: added check target.
10632 Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10634 * ldmain.c (Q_enter_file_symbols): now aliases work again
10636 Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
10638 * Makefile.in: added clean-info target.
10640 Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10642 * ldexp.c (exp_print_tree): don't try and follow null pointers
10644 * ldgram.y: remove 11 shift reduce errors
10646 Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10648 * Makefile.in: added tooldir and program_prefix.
10650 Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
10652 * ldlang.c (size_input_section): don't move absolute sections
10656 Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
10658 * cplus-dem.c: yet another copy of this - maybe it should go into
10660 * ldgram.y: now -V and -v have different actions
10661 * ldver.c: if -V, prints list of emulations compiled in
10662 * ldmisc.c: support for cplus demangling
10665 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
10667 * Makefile.in, configure.in: removed traces of namesubdir,
10668 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
10669 copyrights to '92, changed some from Cygnus to FSF.
10671 Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
10673 * Makefile.in: Change mkscript rule into one for ./mkscript
10674 (for the sake of makes that don't realize they're the same).
10675 * PORTING: Add more details.
10676 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
10678 Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
10680 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
10681 config/mt-hp300bsd: New port to hp300 running BSD.
10683 Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
10685 Major rewrite of how ld is configured. The major idea
10686 is to use shell scripts to generate everything.
10687 * generic.em replaces ldtemplate.
10688 * Other *.em files replace various *.c files.
10689 A *.em file is a shell script that generates the corresponding
10690 ld__*.c file that implements an emulation. This is usually
10691 a straight 'cat' of a here-document, possibly with substitutions.
10692 * Script files (*.sc) are places by *.sc-sh scripts.
10693 Again, these are simple shell scripts that 'cat'
10694 here-documents, usually with some substitutions.
10695 The output a *.sc-sh is a script file.
10696 * Each emulation is defined by a short shell script with
10697 extension *.sh that specifies the emulation-specific
10698 parameters (such as the name of the *.sh-sc and *.em
10700 * genscript.sh is the master shell script used to generate
10701 an emulation. It is passed various argument, including
10702 the name a the emulation-speciic *.sh file that it
10703 "sources" to set variables to emulation-specifc parameters.
10704 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
10705 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
10706 * config/mh-foo: Rename LDEMULATION names as appropriate
10707 (usually 'gldfoo' -> plain 'foo').
10708 * ldwrite.c: Fixed a typo in a comment.
10709 * Makefile.in: Major changes. Removed some the sed
10710 magic to converts scripts, since that is now handled
10711 by genscripts.sh and the *.sc-sh scipt generators.
10712 * config.h: Remove a bunch of macros defining emulations
10713 and targets. This becomes one less file to edit when
10714 adding emulations or targets.
10715 * ldemul.h (struct ld_emulation_xfer_struct): Add
10716 emulation_name and target_name fields.
10717 * ldemul.c, ldemul.h: Define some default functions used
10718 by most emulations (and remove from the *.em scripts).
10719 * ldemul.c (ldemul_choose_target): Search the new
10720 ld_emulations array using a loop (instead of a hardwired
10721 nested if statement).
10722 Define the ld_emulation from the automatically-geenrated
10723 ldemul-list.h. This means you no longer have to edit ldemul.c
10724 to add a new emulation.
10725 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
10726 their expansions, since the former no longer exist.
10727 * PORTING: A very rough first draft of a porting guide.
10729 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
10730 to be terminated by a new-line (instead of requiring a semicolon).
10732 Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10734 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
10735 tests for NULL pointers all over the place.
10736 * ldlang.c (lang_process): remember to relocate global symbols
10737 *after* relaxing has done it stuff.
10739 Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10741 * config/mt-coff-h8300: use EMUL like everything else
10742 * ldlang.c: (print_padding_statement): print the right address.
10743 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
10746 Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10748 * ldlex.l: Put pack -noinhibit-exec and -sort-common
10749 * ldlang.c (print_data_statement): print the right address.
10751 Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
10753 * Makefile.in: The rule for testing ld by re-linking itself
10754 via an intermediate -r link was moved to the ld1 rule
10755 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
10756 which allows the bootstrap rule to work.
10757 * ldctor.c (find_constructors): Don't create a constructor
10758 list if it is already defined (as would happen if ld is
10759 invoked by collect).
10761 Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10763 * config/mh-sparc.h: now uses libgcc.a
10764 * ldmain.c: quit using exit
10765 * *sc: use *(COMMON) rather than [COMMON]
10766 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
10767 to allow preprocessing of .l file.
10768 * Makefile.in: New ldlex.l mangling
10769 * ldexp.c (fold_binary): perform expressions with % and / in
10771 * ldfile.c (open_a): open archives on VMS in a special way
10774 Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10776 * ldgram.y: map -M behave in the same way as -Map (sets file name
10778 * ldsym.c, ldlang.c: remember that size of a section is dependent on
10779 whether or not relaxing has been done.
10780 * ldmain.c: don't open a map file if it doesn't have a name
10781 * relax.c: all the brains have moved into bfd.
10782 * ldwrite.c: ammend comment
10784 Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10786 * Makefile.in: added relax, also made three stage go through a
10787 partial link stage.
10789 * config.h: if GNU960 defined, then default emulation mode is
10791 * ldexp.h, ldexp.c: map to file hooks
10792 * ldlang.c: map to file hooks
10793 * ldgram.y: added -Map -relax
10794 * ldlex.l: added -relax, -Map
10795 * ldmain.c: open map file
10796 * ldmisc.c: support for map file
10797 * ldwrite.c: new relax magic
10799 Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
10801 * Makefile.in, config/tm-*.h: Clean up make output, only
10802 pass DEFAULT_EMULATION to ldmain.c.
10804 Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
10806 * ldver.c: Bump to version 1.94.
10808 Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10810 * Makefile.in: infodir belongs in datadir.
10812 Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
10814 * Makefile.in: Pass -y to bison. (Again;
10815 accidentally deleted by Rich.)
10816 * news.sc, ldgld68k.sc: Define __end as well as _end.
10818 Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
10820 * ldindr.h: added to contain prototypes of ldindr.c
10821 * ldfile.c: include ctype.h
10822 * ldmain.c: include the requried prototype headers
10823 * ldwrite.c: get_reloc_upper_bound has been renamed
10824 bfd_get_reloc_upper_bound
10826 Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10828 * Makefile.in: punt "fundamental" mode because it breaks my emacs
10829 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
10830 spaces following hyphens, bsd make can't cope. added
10831 standards.text support and made it look like all the other
10834 * configure.in: configure now runs entirely in objdir so make file
10835 existence checks against ${srcdir}. Mark this directory as
10838 Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10840 * Makefile.in: idestdir and ddestdir go away. Added copyrights
10841 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
10842 and mandir now keyed off datadir by default.
10844 Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
10846 * ldver.c: Bumped version to 1.93.
10847 * Makefile.in: Pass -y to bison.
10849 Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
10851 * config.h: h8 is now coff, not ieee
10852 * h8300hds.sc: reflect the same
10854 Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
10856 * ldver.c (ldversion()): Update to 1.92.
10857 * ldctor.c: There are two places constructor sets
10858 can be defined. One of them checked for an existing
10859 duplicate, the other didn't. Unfortunately, the latter
10860 was called after the former ...
10861 So, factor out code for inserting a new element into
10862 constructor_name_list (after checking for a duplicate)
10863 into a new function add_constructor_name, and call
10864 it from both aforementioned places (ldlang_add_constructor
10865 and ldlang_check_for_constructors).
10867 Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
10869 * Makefile.in: Rename .c files generated from ldtemplate
10870 to have names starting with ld__. This helps 'make clean'.
10872 Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
10874 * Makefile.in: Take out the version number for install
10875 * m88kbcs.sc: put in contructor blocks.
10877 Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
10879 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
10880 parameter, a format, and an arg pointer, and rename it to
10881 vfinfo(). Write info() in terms of new vfinfo().
10882 New einfo() is the same as info(), except it writes to stderr.
10883 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
10884 ldmisc.c: Replace "error" calls to info() by new einfo().
10886 Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
10888 * ldlex.l ldgram.y: made -V option do same as -v
10889 * Makefile.in: Added $(MINUS_G) flag so debugging can be
10892 Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
10893 i386 aout changes from Bob Kukura
10894 * Makefile.in, config.h: added i386aout support
10895 * configure.in: fixed /h-{myhost} typo
10896 * ldgram.y: -MM now gives more boring map.
10897 * ldlang.c: now does D_PAGED flag the right way.
10898 * ldsym.c: -MM flags does the right thing.
10900 Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
10902 * configure.in: Fixed typo. Also, a fix for hp300bsd.
10903 * ldlang.c (init_os): Compensate for BFD change,
10904 where bfd_make_section now returns NULL for a duplicate
10905 section request, instead of the old section.
10907 Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
10909 * ldver.c: Bump to version 1.91 (consistent with binutils).
10911 Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
10913 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
10914 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
10915 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
10916 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
10917 Add or update copyright notices.
10919 Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
10921 * README: New file.
10922 * Makefile.in: Changed installation directory name scheme
10923 to be consistent with gcc. Also changed 'install'.
10925 Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
10927 * Makefile.in: new targets ld.mm, ld.me
10929 Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
10931 * Makefile.in, ldtemplate: Need to use separate scripts
10932 for -n and -N options. Yet more complication.
10934 Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
10936 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
10937 work). Add some lines to avoid Sun Make VPATH bugs.
10939 Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
10941 * news.sc: Add alignment for data segment.
10942 * ldtemplate: Add (yet another) script to get for -n or -N
10943 options. (These need different alignment than ZMAGIC files.)
10944 * Makefile.in: Add stuff for new foo.xn scripts.
10945 These are generated by replacing "ALIGN(0x...00)" by ".".
10947 Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
10949 * Makefile.in: new targets ld.ms, ld-index.ms
10950 ld.texinfo: remove tabs, other cleanups for texi2roff
10952 Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
10954 * ldmain.c (main): Make config.magic_demand_paged be true
10955 by default. Don't set the WP_TEXT and D_PAGED flags of
10956 output_bfd here; it's too late, so set it when output_bfd
10957 is created (in ldlang.c). Also fix setting of EXEC_P flag
10958 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
10959 * ldlang.c: Remove some duplicate extern declarations.
10960 * ldgram.y: Fixes to -N and -n options.
10961 * Makefile.in: Recognize upper case letters in sed script
10962 to remove assignments from script files.
10963 * ldtemplate: Don't assukme that -N or -n options
10964 imply use of -r script.
10965 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
10967 Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
10969 * ldtemplate: include bfd.h before sysdep.h.
10971 Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
10973 Restructure configuration scheme for bfd, binutils, ld.
10975 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
10976 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
10977 Change some config names to match other dirs.
10978 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
10980 * config/: Rename some config files to match up h-*.h names.
10981 Remove all the HOST_SYS definitions from the config files.
10983 Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
10985 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
10986 * ldtemplate: Remove ldfile_add_library_path calls;
10987 just use the SEARCH_DIR commands in the script files.
10988 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
10989 the SEARCH_DIR commands in the scripts (using ugly sed magic).
10990 This is primarily intended for cross-linking, where you would
10991 place libaries in a different place than native libraries.
10992 Also, emulations made from ldtemplate now use $(srcdir).
10993 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
10994 form; people can use the Makefile's LIB_PATH to override.
10996 Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
10998 * Makefile.in: fix target ld.dvi, add target ld.info
10999 ld.texinfo: make info filename ld.info
11001 Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
11003 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
11005 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
11006 few BFD types & enums.
11013 version-control: never