3 * pe-dll.c (autofilter_objectlist): Add startup objects
5 (auto-export): Constify char * p.
6 Extract file basename and use strcmp rather than ststr
11 * ldmain.c (get_emulation): Improve comment about the handling
16 * po/POTFILES.in: Regenerate.
20 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
21 -z nocopyreloc and -z nocombreloc usage strings.
25 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
30 * scripttempl/armaout.sc: Place .bss section after end of aligned
31 data section to match behaviour of aout code in constructrion of
36 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
37 startup files for mingw32 dlls to list.
41 * emultempl/elf32.em: Fix shell 'if' usage for portability.
45 * configure.tgt (targ): Add arm9e-*-elf.
49 * genscripts.sh: Fix a typo in the last change.
53 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
54 -z nocombreloc in usage.
58 * genscripts.sh: Include a comment at the top of each generated
59 script, explaining its purpose.
63 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
64 * NEWS: Mention -z nocopyreloc.
65 * ld.texinfo (Options): Describe nocopyreloc.
69 * configure: Regenerate.
73 * ldver.h (ld_program_version): Remove declaration.
74 * lexsup.c (parse_args): Move printing of copyright message..
75 * ldver.c (ldversion): .. to here.
76 Use BFD_VERSION_STRING in place of BFD_VERSION.
77 (ld_program_version): Remove.
78 * Makefile.am (Makefile): Depend on bfd/configure.in.
80 * Makefile.in: Regenerate.
84 * Makefile.am: Update dependencies with "make dep-am".
85 * Makefile.in: Regenerate.
89 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
90 * lexsup.c: Add --no-define-common commandline option.
91 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
93 * ld.h: Add command_line.inhibit_common_definition.
94 * ldmain.c (main): Initialize.
95 * ld.texinfo: Document.
99 * ldmisc.c (USE_STDARG): Remove.
100 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
105 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
106 declarations. Update copyright.
110 * pe-dll.c: Remove obsoleted declaration of
111 pe_get_data_import_dll_name.
112 (pe_create_import_fixup): Fix thinko.
114 * ld.texinfo(enable-auto-import): Clarify the explanation.
118 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
119 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
120 DLL_SUPPORT controlled code.
124 * emultempl/pe.em(pe_data_import_dll): Make static.
125 (pe_get_data_import_dll_name): New accessor function.
126 * pe-dll.c(pe_create_import_fixup): call
127 pe_get_data_import_dll_name() from pe.em, instead of
128 directly accessing pe_data_import_dll variable from pe.em.
132 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
133 (def_file_add_directive): Use ISSPACE instead of isspace.
134 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
135 isdigit/isxdigit/isalpha/isalnum.
136 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
137 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
138 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
139 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
141 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
142 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
144 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
145 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
146 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
147 (ctor_prio): Use ISDIGIT instead of isdigit.
148 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
149 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
150 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
152 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
153 (stricpy): Use TOLOWER instead of isupper/tolower.
154 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
155 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
156 (lex_warn_invalid): Use ISPRINT instead of isprint.
157 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
158 (main): For gettext, also set the LC_CTYPE locate facet.
159 (add_keepsyms_file): Use ISSPACE instead of isspace.
160 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
161 (is_num, parse_args): Use ISDIGIT instead of isdigit.
162 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
163 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
164 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
165 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
166 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
167 (quoteput): Use ISSPACE instead of isspace.
168 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
173 * deffilep.y (def_stash_module): Constify "name" param.
175 * pe-dll.c: Replace CONST with const throughout.
176 (quick_symbol): Constify "n1", "n2", "n3" params.
177 (make_singleton_name_thunk): Constify "import" param. Make
178 "buffer_len" a size_t.
179 (make_import_fixup_entry): Constify "name", "fixup_name",
180 "dll_symname" params.
181 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
182 (pe_get32): Likewise.
183 (pe_implied_import_dll): Likewise.
185 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
186 (sort_by_section_name): Likewise.
188 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
189 (make_import_fixup): Cast printf arg, rel->address to long rather
191 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
195 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
196 defines BufferSize. Increase buffer size by one.
200 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
204 * configure.tgt: Add arm-openbsd target.
208 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
210 (ALL_64_EMULATIONS): Here.
211 * Makefile.in: Regenerated.
215 * emultempl/pe.em(make_import_fixup): change signature to
216 take asection as well as arelec; we need this for proper
217 error reporting. Only call pe_create_import_fixup() if
218 there is no attempt to add a constant addend to the reloc;
219 otherwise, report error condition.
220 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
221 since final argument is a pointer to make_import_fixup().
222 Change call to cb() to match make_import_fixup() signature.
223 (make_import_fixup_mark): make buffer_len unsigned.
224 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
228 * ld.texinfo: add verbose documentation for auto-import
229 direct-addressing workaround, to compliment the terse
234 * scripttempl/v850.sc: Add gcc_except_table sections.
238 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
239 * emulparams/h8300self.sh: Similarly.
243 * ld.texinfo (Options, --stack): Correct default value for stack
248 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
252 * emultempl/beos.em: Declare prototypes for comparions functions,
257 * emultempl/aix.em: Add missing prototype.
258 * emultempl/lnk960.em: Likewise.
259 * emultempl/vanilla.em: Likewise.
260 * emultempl/armcoff.em: Likewise.
261 * emultempl/armelf_oabi.em: Likewise.
262 * emultempl/beos.em: Likewise.
263 * emultempl/gld960c.em: Likewise.
264 * emultempl/gld960.em: Likewise.
266 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
267 for prototype declaration.
272 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
276 * emultempl/pe.em: Add missing prototypes.
277 (gld_${EMULATION_NAME}_after_open): Remove extra args to
278 pe_find_data_imports.
279 (pr_sym): Add unused attribute.
283 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
284 default from coff to elf.
288 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
290 * emulparams/h8300self.sh: Similarly.
294 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
296 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
297 * configure.tgt (h8300-*-elf*): New case.
298 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
299 * emulparams/h8300self.sh: New file.
300 * Makefile.in: Regenerated.
304 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
310 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
311 (eelf64ppc.c, eelf64lppc.c): Add make targets.
313 * Makefile.in: Regenerate.
314 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
315 entries to correct alphabetical position.
316 * emulparams/elf64ppc.sh: New.
317 * emulparams/elf64lppc.sh: New.
321 * ldmain.c (main): Declare BSIZE as static.
325 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
326 into .rel.dyn resp. .rela.dyn if combreloc.
327 (get_script): If .x linker script is equal to .xn, only put it
328 once into the binary.
329 Add .xc and .xsc scripts.
330 (parse_args): Handle -z combreloc and -z nocombreloc.
331 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
332 For .xc and .xsc scripts put all .rel* or .rela* input sections
333 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
334 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
336 Strip trailing whitespace from script.
337 Generate .xc and .xsc scripts if requested.
338 * ldmain.c (main): Initialize link_info.combreloc and
339 link_info.spare_dynamic_tags.
340 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
341 (ld_options): Add --spare-dynamic-tags option.
342 (parse_args): Likewise.
343 * ld.texinfo: Document -z combreloc and -z nocombreloc.
344 * ldint.texinfo: Document .xc and .xsc linker scripts.
345 * NEWS: Add notes about -z combreloc and SHF_MERGE.
349 * emulparams/elf32fr30.sh: Add a newline.
353 * deffilep.y: Add missing prototypes.
354 * pe-dll.c: Likewise.
358 * ldlang.c (insert_pad): Fix typos in last patch.
360 * ldlang.c: When traversing lang_statement_union_type lists,
361 consistently use "header.next" rather than "next".
362 * mpw-eppcmac.c: Likewise.
363 * emultempl/beos.em: Likewise.
364 * emultempl/hppaelf.em: Likewise.
365 * emultempl/pe.em: Likewise.
366 * ldlang.h (union lang_statement_union): Remove "next" field.
368 * ldlang.c (insert_pad): Use offsetof macro.
369 (lang_size_sections): Always neuter padding statements.
370 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
372 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
373 passed to lang_size_sections.
374 (pe_exe_fill_sections): Likewise.
375 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
376 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
380 * emultempl/aix.em: Formatting fixes.
384 * ldlang.c (insert_pad): Make use of an existing pad statement if
385 available. Move code calculating alignment, adjusting section
386 alignment power, and adjusting dot to ..
387 (size_input_section): .. here. Remove unused relax param.
388 (lang_size_sections): Change boolean `relax' param to boolean *.
389 Adjust call to size_input_section. Make use of insert_pad to
390 place pad after the assignment statement. If relaxing, zap
392 (reset_memory_regions): Reset output_bfd section sizes too.
393 (relax_again): Move to..
394 (lang_process): ..here. Adjust call to lang_size_sections, and
395 remove duplicated code.
396 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
400 * ld.texinfo: Document that fill values now use the four least
402 * emulparams/elf32fr30.sh (NOP): Update.
403 * emulparams/elf32mcore.sh: Likewise.
404 * emulparams/elf64_s390.sh: Likewise.
405 * emulparams/elf_i386.sh: Likewise.
406 * emulparams/elf_i386_be.sh: Likewise.
407 * emulparams/elf_i386_chaos.sh: Likewise.
408 * emulparams/elf_i386_ldso.sh: Likewise.
409 * emulparams/elf_s390.sh: Likewise.
410 * emulparams/elf_x86_64.sh: Likewise.
411 * emulparams/i386moss.sh: Likewise.
412 * emulparams/i386nw.sh: Likewise.
413 * emulparams/m68kelf.sh: Likewise.
414 * scripttempl/elf.sc: Update NOP comment.
415 * scripttempl/elfi370.sc: Likewise.
416 * scripttempl/elfm68hc11.sc: Likewise.
417 * scripttempl/elfm68hc12.sc: Likewise.
418 * scripttempl/nw.sc: Likewise.
422 * ldgram.y (saved_script_handle): Initialize to NULL.
423 * ldmain.c (main): Change check on saved_script_handle.
427 * emultempl/elf32.em: Formatting fixes.
428 (output_prev_sec_find): Test for bfd_ind_section too; do so by
429 looking at sec->owner.
430 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
431 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
432 unused code, and reorganize orphan section placement code.
434 * ldlang.c (wild_doit): Rename to lang_add_section.
435 * ldlang.h: Here too.
436 * mpw-elfmips.c: And here.
437 * emultempl/beos.em: And here.
438 * emultempl/elf32.em: And here.
439 * emultempl/hppaelf.em: And here.
440 * emultempl/pe.em: And here.
444 * emultempl/needrelax.em: New file.
445 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
446 * Makefile.am (eelf64_ia64.c): Depend on it.
447 * Makefile.in: Rebuild.
451 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
452 output_section is set non-NULL.
454 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
455 `true' for SEC_EXCLUDE sections so that the generic code doesn't
456 needlessly create an output_section_statement. Treat a correctly
457 named output_section_statement with NULL bfd_section as compatible.
461 * emultempl/generic.em: Support EXTRA_EM_FILE.
462 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
463 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
464 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
465 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
466 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
467 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
468 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
469 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
470 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
471 LDEMUL_FIND_POTENTIAL_LIBRARIES.
475 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
476 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
477 scripttempl/v850.sc: Keep .jcr data.
483 * ldgram.y (had_script): Change name to saved_script_handle.
484 Change type to file handle.
485 * ld.h (had_script): Rename and retype.
486 * ldfile.c (ldfile_open_command_file): Save the file handle
487 used in saved_script_handle.
488 * lexsup.c (parse_args): Do not allow -c option to alter
490 * ldmain.c (main): Print out the linker script used if
491 --verbose is given. Check saved_script_handle to obtain the
492 external linker script used, or if NULL, dump the builtin
494 * ld.texinfo: Document that --verbose now dumps the linker
495 script used, regardless of whether it was an internal or an
500 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
502 * configure: Regenerate.
506 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
508 * scripttempl/elf.sc: Move non-text .dynamic section before
509 .plt/.got/.sdata* group.
510 (OTHER_GOT_SECTIONS): Move to immediately after .got.
511 (OTHER_SDATA_SECTIONS): Add.
512 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
514 * emulparams/crislinux.sh: Likewise.
515 * emulparams/elf32b4300.sh: Likewise.
516 * emulparams/elf32bmip.sh: Likewise.
517 * emulparams/elf32bmipn32.sh: Likewise.
518 * emulparams/elf32bsmip.sh: Likewise.
519 * emulparams/elf32btsmip.sh: Likewise.
520 * emulparams/elf32ebmip.sh: Likewise.
521 * emulparams/elf32elmip.sh: Likewise.
522 * emulparams/elf32l4300.sh: Likewise.
523 * emulparams/elf32lmip.sh: Likewise.
524 * emulparams/elf32lsmip.sh: Likewise.
525 * emulparams/elf32ltsmip.sh: Likewise.
526 * emulparams/elf64bmip.sh: Likewise.
527 * emulparams/elf64btsmip.sh: Likewise.
528 * emulparams/elf64ltsmip.sh: Likewise.
532 * genscripts.sh: Source the emulparams script before each output
533 script is generated so that variables like `RELOCATING' may affect
534 variables defined in the emulparams script.
538 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
541 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
542 ie. iterate over wild_statement.section_list.
543 (gld${EMULATION_NAME}_place_orphan): Likewise.
547 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
548 .fini[0-4] sections used by _exit
549 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
550 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
551 * scripttempl/elfm68hc11.sc: Likewise.
555 * emultempl/beos.em (init): Add the missing initialization.
559 * ld.texinfo (Input Section Basics): Clarify ordering of output
561 * ldlang.c (callback_t): Add wildcard_list param.
562 (walk_wild_section): Remove "section" param. Rewrite for
563 lang_wild_statement_type change. Remove unique_section_p test.
564 (walk_wild_file): Remove "section" param.
565 (walk_wild): Remove "section" and "file" params.
566 (lang_gc_wild): Likewise.
567 (wild): Likewise. Modify for lang_wild_statement_type change.
568 (wild_sort): Likewise. Add "sec" param.
569 (gc_section_callback): Likewise.
570 (output_section_callback): Likewise. Do unique_section_p test.
571 (map_input_to_output_sections): Modify call to wild.
572 (lang_gc_sections_1): Likewise.
573 (print_wild_statement): Modify for lang_wild_statement_type
575 (lang_add_wild): Replace filename, filenames_sorted param with
576 filespec. Replace section_name, sections_sorted,
577 exclude_filename_list with section_list.
578 * ldlang.h (lang_add_wild): Here too.
579 (lang_wild_statement_type): Replace section_name, sections_sorted,
580 and exclude_filename_list with section_list.
581 * ldgram.y (current_file): Delete.
582 (%union): Add wildcard_list.
583 (file_NAME_list): Set type to wildcard_list. Build a linked list
584 rather than calling lang_add_wild for each entry.
585 (input_section_spec_no_keep): Call lang_add_wild here instead.
586 * ld.h (struct wildcard_list): Declare.
587 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
591 * ldmain.c (main): initialize link_info.pei386_auto_import
592 * pe-dll.c: new tables for auto-export filtering
593 (auto_export): change API, pass abfd for contextual filtering.
594 Loop thru tables of excluded symbols instead of comparing
599 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
600 static variable current_sec (static struct sec *). Add
601 forward declaration for add_bfd_to_link.
602 (process_def_file): Don't export undefined symbols. Do not
603 export symbols starting with "_imp__". Call auto_export()
605 (pe_walk_relocs_of_symbol): New function.
606 (generate_reloc): add optional extra debugging
607 (pe_dll_generate_def_file): eliminate extraneous initial blank
609 (make_one): enlarge symtab to make room for __nm__ symbols
610 (DATA auto-import support).
611 (make_singleton_name_thunk): New function.
612 (make_import_fixup_mark): New function.
613 (make_import_fixup_entry): New function.
614 (pe_create_import_fixup): New function.
615 (add_bfd_to_link): Specify that 'name' argument is a CONST
617 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
618 declare new functions pe_walk_relocs_of_symbol and
619 pe_create_import_fixup.
620 * emultempl/pe.em: add new options --enable-auto-import,
621 --disable-auto-import, and --enable-extra-pe-debug.
622 (make_import_fixup): New function.
623 (pe_find_data_imports): New function.
624 (pr_sym): New function.
625 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
626 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
631 * ld.texinfo: add additional documentation for
632 --export-all-symbols. Document --out-implib,
633 --enable-auto-image-base, --disable-auto-image-base,
634 --dll-search-prefix, --enable-auto-import, and
635 --disable-auto-import.
636 * ldint.texinfo: Add detailed documentation on auto-import
641 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
646 * Makefile.am: Update dependencies with "make dep-am".
647 * Makefile.in: Regenerate
651 * ldcref.c (check_section_sym_xref): New function.
652 (check_nocrossrefs): Call it.
653 (check_nocrossref): Interate over h->refs here instead of..
654 (check_refs): ..here. Pass in the symbol name, section, and bfd
655 rather than hash_entry pointers.
656 (struct check_refs_info): Keep symbol name rather than hash entry.
658 (check_reloc_refs): Tweak for above changes in check_refs_info.
659 Only report references to section syms when symname is NULL to
660 prevent duplicate messages for the same reloc.
664 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
665 available. Do not print NULL trees.
666 (exp_print_token): Print unknown tokens with values > 126 as
667 decimal values not ASCII characters.
669 * ldlang.c (lang_leave_overlay): If a region is specified assign
670 it to all sections inside the overlay unless they have been
671 assigned to the own, non-default, memory region.
673 * README: Add header for consistency with other README files.
677 * emultempl/elf32.em (output_prev_sec_find): Never return
678 bfd_abs_section_ptr, bfd_com_section_ptr nor
683 * Makefile.am (em32relf.c): Change dependency from generic.em to
685 * Makefile.in: Regenerate.
689 * configure.tgt (i386-*-netbsdelf*): New target.
690 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
694 * emultempl/elf32.em (output_prev_sec_find): New.
695 (place_orphan): Use it.
699 * ldmain.c (main): Fix typos in the last change.
703 * ldmain.c (main): Disallow -F and -f without -shared.
707 * emultempl/pe.em (after_open): Check for the output_bfd not
708 having any coff_data structure allocated to it.
712 * emultempl/elf32.em: Do not assuming that contents of the buffer
713 returned from basename function will remain unchanged accross other
718 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
719 2001-07-03. It creates dynamic entries even for static binaries.
723 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
724 (DYNAMIC): Use it to reserve few dynamic entries for
729 * emulparams/hppa64linux.sh: New file.
730 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
731 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
732 (ehppa64linux.c): Add rule to make it.
734 * Makefile.in: Regenerate.
738 * ld.texinfo (Options, -r): Mention restrictions when using
739 different object formats.
743 * ldlang.c (lang_check): Emit fatal error if relocatable link
744 between different object flavours with relocations in input.
748 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
749 (--version-script): Mention the language support.
753 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
757 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
758 (diststuff): Add $(MANS).
759 * Makefile.in: Regenerated.
765 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
766 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
767 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
768 * ld.h (args_type): Remove member export_dynamic. All users
769 changed to use struct bfd_link_info member.
771 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
772 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
773 * Makefile.in: Regenerate.
777 * ldlang.c (init_os): Add the newline to the einfo call.
778 (lang_check): Likewise.
779 (lang_do_version_exports_section): Likewise.
783 * lexsup.c (parse_args); Save optind to report unrecognized
788 * ldlang.c (lang_check): Emit fatal error if relocatable link
789 between different object flavours.
791 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
792 Set new link_info member export_dynamic.
793 * ldmain.c (main): Initialize new link_info member export_dynamic.
797 * ldlang.c (walk_wild): Only call walk_wild_file if
798 lookup_name returns something.
799 (lookup_name): If load_symbols fails, return NULL.
800 (load_symbols): Change to a boolean function.
801 (open_input_bfds): If load_symbols fails then do not make the
806 * ldlang.c (record_bfd_errors): Remove.
808 * emultempl/aix.em: Fix copyright dates.
812 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
813 (TEXT_START_ADDR): Likewise.
817 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
821 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
825 * ldlang.c (open_input_bfds): Don't change the bfd error
826 handler whilst loading symbols.
830 * configure.tgt: Remove i370-mvs architecture, it is not currently
835 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
836 like emulparams/aixppc.sh.
840 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
841 setting of output_filename after bfd_scan_arch.
842 * emultempl/pe.em: Likewise.
846 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
847 like emulparams/aixppc.sh.
849 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
850 instead of ${srcdir}/emultempl/stringify.sed.
854 * emulparams/elf64_aix.sh: Change settings to match IBM linker
859 * configure.host: Replace linuxoldld with linux*oldld.
860 * configure.tgt: Likewise.
864 * emultempl/stringify.sed: Removed again.
868 * emultempl/aix.em (OUTPUT_ARCH): Defined.
869 (gld${EMULATION_NAME}_before_parse): Initialize
870 ldfile_output_architecture, ldfile_output_machine and
871 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
872 * emultempl/beos.em: Likewise.
873 * emultempl/elf32.em: Likewise.
874 * emultempl/linux.em: Likewise.
875 * emultempl/mipsecoff.em: Likewise.
876 * emultempl/pe.em: Likewise.
877 * emultempl/sunos.em: Likewise.
881 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
882 udate import file format.
883 (change_symbol_mode) New, same
884 (is_syscall) New, same
885 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
886 * emulparams/aixppc64.sh : same
887 * emulparams/aixrs6.sh : same
888 * emulparams/ppcmacos.sh : same
889 * emultempl/aix.em : use strtoull to parse options
890 * Makefile.am : add eaixppc64 emulation for xcoff64
892 * configure.tgt : same
894 * scripttempl/aix.sc : default text section offset to 0x10000000
895 default data section offset to 0x20000000
896 add .sv3264 and .sv64 pseudo sections
897 loader and debug sections use the currect section offset.
899 * emultempl/aix.em : Add xcoff64 support
900 Add -binitfini support
901 (gld${EMULATION_NAME}_before_parse) -binitfini
902 (gld${EMULATION_NAME}_parse_args) same
903 (gld${EMULATION_NAME}_before_allocation) format change for special
906 * emulparams/aixppc64.sh : New file for xcoff64 support
910 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
911 variable to avoid non-portable shell construct.
915 * ldmain.c (get_emulation): Add -mips5 command line argument.
919 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
920 (ELF_INTERPRETER_NAME): Define it.
921 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
923 * configure.tgt (targ_emul, targ_extra_emuls)
924 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
925 as primary, elf_i386 as extra.
926 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
927 (eelf_i386_ldso.c): New rule.
928 * Makefile.in: Rebuilt.
932 * lexsup.c (ld_options): Allow -I to be an alias for
933 --dynamic-linker. This is for Solaris compatability.
934 * ld.texinfo: Document that -I can be used.
939 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
940 whether an input section is the first one assigned to an output
942 Assorted formatting fixes.
946 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
947 * Makefile.in: Ditto.
951 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
952 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
954 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
958 * ldlang.c (lang_process): Call bfd_merge_sections.
962 * ldgram.y: Fix typo.
966 * emultempl/elf32.em: Include "libiberty.h".
967 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
968 basename of the bfd filename.
969 (gld${EMULATION_NAME}_stat_needed): Likewise.
970 (gld${EMULATION_NAME}_try_needed): Likewise.
971 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
975 * emultempl/pe.em: Include <ctype.h>.
979 * emulparams/elf32openrisc.sh: New file.
981 * Makefile.am: Add OpenRISC target.
982 * Makefile.in: Regenerated.
984 * configure.tgt: Add openrisc-*-* mapping.
988 * emultempl/aix.em: Replace buystring with xstrdup.
989 * emultempl/beos.em: Replace buystring with xstrdup.
993 * ldfile.c: Include "libiberty.h".
996 * ldmisc.c (buystring): Removed.
997 * ldmisc.h: Likewise.
999 * ldfile.c: Replace buystring with xstrdup.
1000 * ldlang.c: Likewise.
1001 * ldlex.l: Likewise.
1002 * ldmain.c: Likewise.
1003 * ldmisc.c: Likewise.
1004 * lexsup.c: Likewise.
1005 * mpw-eppcmac.c: Likewise.
1009 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1013 * ldlang.c (load_symbols): Give emulation a chance
1014 to process unrecognized file before fatal error is
1015 reported, not after.
1019 * configure.tgt: Add arm-vxworks target.
1020 * scripttempl/armcoff.sc: Support .text or .data as a section name
1026 * ld.texinfo: Document --fatal-warnings.
1029 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
1030 warnings have been turned into errors.
1031 * lexsup.c (OPTION_WARN_FATAL): Define.
1032 (ld_options): Entry for --fatal-warnings.
1033 (parse_args): Handle OPTION_WARN_FATAL.
1034 * ld.h (ld_config_type): Add fatal_warnings field.
1038 * ldmain.c (main): Default to discard_sec_merge.
1039 * lexsup.c (OPTION_DISCARD_NONE): Define.
1040 (ld_options): Add --discard-none.
1041 (parse_args): Handle OPTION_DISCARD_NONE.
1042 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1043 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1044 all its input sections match.
1048 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1049 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1050 (eelf32ltsmip.c): New target.
1051 (eelf64btsmip.c): Likewise.
1052 (eelf64ltsmip.c): Likewise.
1053 * Makefile.in: Regenerated.
1055 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1057 (mips*-*-linux-gnu*): Likewise.
1059 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1061 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
1063 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1068 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1069 correct value of __Stext here.
1070 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1073 * emulparams/crislinux.sh: Remove FIXME.
1077 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1078 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1082 * configure.tgt (cris-*-*): Change default emulation to criself.
1083 (cris-*-*aout*): New rule.
1087 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1088 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1092 * ld.texinfo (Overview): Fix syntax in texi code.
1096 * ld.texinfo: Put @c man indications to generate the ld man page.
1097 When generating man, define all the variables. Define SEEALSO
1098 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1099 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1100 (ld.1): Generate from ld.texinfo.
1101 * Makefile.in: Regenerate.
1105 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
1106 and '-fdata-sections'. Set the VMA of STABS sections to zero.
1110 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1111 is an absolute path look only for this file and not along the path.
1115 * emultempl/elf32.em (OPTION_GROUP): New macro.
1116 Add new option Bgroup to longopts.
1117 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1118 (gld*_list_options): Add -Bgroup and -z defs.
1119 * ld.1: Document -Bgroup and -z defs.
1120 * ld.texinfo: Likewise.
1124 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1125 with sections created by -fdata-sections.
1126 (.dynbss,.bss): Ditto.
1130 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1131 after_allocation_default, not gld..._before_allocation.
1135 * configure.in (BFD_VERSION): New.
1136 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1137 * configure: Regenerate.
1138 * Makefile.am: Run "make dep-am"
1139 * Makefile.in: Regenerate.
1143 * emulparams/elf64_aix.sh: Add additional read-only sections;
1144 uncomment lines which are now required.
1148 * ldlang.c (open_input_bfds): Set the bfd error handler so
1149 that problems can be caught whilst loading symbols.
1150 (record_bfd_errors): New function: Report BFD errors and mark
1151 the executable output as being invalid.
1155 * configure.host: Add configuration for ia64-*-aix*.
1156 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1157 Add dependencies for eelf64_aix.c.
1158 * Makefile.in: Regenerate.
1159 * configure.tgt: Add ia64-*-aix* mapping.
1160 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
1161 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
1166 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1167 false if we found the file.
1171 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1172 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1176 * Makefile.am: Add PDP-11 target.
1177 * configure.tgt: Likewise.
1178 * emulparams/pdp11.sh: New file.
1182 * configure.host: Add a generic FreeBSD configuration entry such that
1183 all [modern] FreeBSD systems on all platforms will look the same.
1187 * configure.tgt: Remove mention of earmelf_linux26.
1191 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1195 * ldexp.h (node_type): Add etree_provided.
1196 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1197 type to etree_provided if defined by PROVIDE. Allow updating
1199 (exp_print_tree): Handle etree_provided.
1200 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1205 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1206 .IA_64.unwind.* pattern to unwind table section and
1207 .IA_64.unwind_info* pattern to unwind info section.
1211 * Makefile.am: Add linux target for S/390.
1212 * Makefile.in: Likewise.
1213 * configure.host: Likewise.
1214 * configure.tgt: Likewise.
1215 * emulparams/elf64_s390.sh: New file.
1216 * emulparams/elf_s390.sh: New file.
1220 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1222 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1226 * Makefile.am: Remove mention of earmelf_linux26.
1227 * Makefile.in: Regenerate.
1231 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1232 * emulparams/armelf_linux26.sh: Delete.
1233 * configure.tgt: Remove mention of armelf_linux26 emulation.
1237 * ld.1: Replace occurances of -oformat with --oformat.
1241 * ldlang.c (lang_leave_overlay): Don't set lma_region when
1242 load_base is specified.
1246 * emultempl/elf32.em: Correct spelling in comments and listed
1251 * ldlang.c (lang_leave_overlay): Only set lma_region from the
1252 default for the first section of a group of overlay sections.
1256 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1257 * Makefile.in: Regenerate.
1258 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1259 Check for null tool_dir.
1263 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1264 and IA_64.unwind.info.
1268 * ldlang.c (lang_check): Merge the private data only if the
1269 input file has contents.
1273 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1275 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1276 enabling search for libmilli. On a relocatable link, make .text
1278 (LDEMUL_AFTER_PARSE): Define.
1279 (hppaelf_finish): Correct spelling of relocatable in comments.
1281 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1282 rummage through the script for sections on the unique list.
1283 Correct length of strncmp for ".note".
1284 (gld${EMULATION_NAME}_check_needed): Rearrange function.
1286 * ldlang.c (unique_section_list): New var.
1287 (unique_section_p): New function.
1288 (walk_wild_section): Don't match sections on unique_section_list.
1289 (lang_add_unique): New function.
1290 Correct spelling of relocatable in comments.
1292 * ldlang.h (struct unique_sections): Declare.
1293 (unique_section_list): Declare.
1294 (unique_section_p): Declare.
1295 (lang_add_unique): Declare.
1297 * lexsup.c (ld_options): Allow --unique to take an optional arg.
1298 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1300 * ld.texinfo (--unique): Update.
1304 * lexsup.c (parse_args): Remove spurious white space.
1308 * lexsup.c (parse_args): Update copyright date.
1312 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1316 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
1317 * scripttempl/h8300h.sc: Fix formatting.
1318 * scripttempl/h8300s.sc: Likewise.
1319 * scripttempl/h8500.sc: Likewise.
1320 * scripttempl/h8500b.sc: Likewise.
1321 * scripttempl/h8500c.sc: Likewise.
1322 * scripttempl/h8500m.sc: Likewise.
1323 * scripttempl/h8500s.sc: Likewise.
1327 * emultempl/elf32.em: Only perform Linux ld hints processing when
1332 * ld.texinfo (Bug Reporting): Update email address for reports.
1336 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1337 options by checking for a return value of '?' not -1.
1341 * lexsup.c (struct ld_option): Add new enum value:
1343 (ld_options[]): Change -omagic, -output and -oformat options
1344 to be EXACTLY_TWO_DASHES.
1345 (OUTPUT_COUNT): Use ARRAY_SIZE.
1346 (parse_args): Change parameter 'argc' to unsigned.
1347 Place EXACTLY_TWO_DASHES options into new really_longopts
1349 If getopt_long_only fails, try calling getopt_long using the
1350 really_longopts array.
1351 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1354 * ldlex.h: Fix prototype of parse_args.
1356 * ld.texinfo: Document that long options starting with 'o'
1357 must be preceeded by two dashes. Change example of a single
1358 dashed long option from -oformat to -trace-symbol.
1362 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1363 (longopts[]): New --no-default-excludes option.
1364 (gld_${EMULATION_NAME}_list_options): Document.
1365 (gld_${EMULATION_NAME}_parse_args): Handle.
1369 * ldlang.c (new_stat): Revert the last beautification with "innocent"
1370 whitespace, it breaks the K&R C preprocessor.
1374 * ld.texinfo: Add notes about --whole-archive and gcc.
1378 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1379 (ld_options): Entry for --allow-shlib-undefined.
1380 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1381 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1383 * ld.texinfo: Document new command line switch.
1387 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1388 .fixup is actually read/write.
1389 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1390 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1391 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1395 * NEWS: Add note about x86_64 architecture.
1399 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1400 Set DWARF2 sections to a VMA of zero.
1404 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
1406 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1407 (sparc*-*-rtems*): Switched from a.out to ELF.
1411 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1412 (eelf_x86_64.c): New.
1413 * Makefile.in: Regenerate.
1414 * configure.tgt: Add support for x86_64-*-linux-gnu*.
1415 * emulparams/elf_x86_64.sh: New.
1419 * emulparams/crislinux.sh (ENTRY): Change back to _start.
1420 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1422 * scripttempl/crisaout.sc: Change all RELOCATING not related to
1423 merging non-a.out sections into CONSTRUCTING.
1427 * ld.1 (COPYING): Mention that the GNU Free Documentation
1428 License is present in the sources, but not the output, and
1429 also available from the GNU website.
1430 (GNU Free Documentation License): Comment out this section.
1434 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1439 * ld.1: Remove old date so it does not give the impression the manpage
1444 * configure.tgt (xscale-coff): Add target.
1445 (xscale-elf): Add target.
1449 * ldmain.c (main): Remove redundant init of config.make_executable
1454 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1458 * scripttempl/h8300.sc: Fix formatting.
1459 * scripttempl/h8300h.sc: Likewise.
1460 * scripttempl/h8300s.sc: Likewise.
1464 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1468 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1469 around orphan sections whose names can be represented in C.
1473 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1474 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
1478 * ld.texinfo: Add GNU Free Documentation License.
1479 * ldint.texinfo: Add GNU Free Documentation License.
1480 * ld.1: Add GNU Free Documentation License.
1484 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1485 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1487 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1488 Move 2000-11-02 Makefile.in changes to this file.
1489 * Makefile.in: Regenerate.
1493 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1494 constructors and destructors.
1495 * scripttempl/h8300h.sc: Ditto.
1496 * scripttempl/h8300s.sc: Ditto.
1497 * scripttempl/h8500.sc: Ditto.
1498 * scripttempl/h8500b.sc: Ditto.
1499 * scripttempl/h8500c.sc: Ditto.
1500 * scripttempl/h8500m.sc: Ditto.
1501 * scripttempl/h8500s.sc: Ditto.
1502 * scripttempl/v850.sc: Ditto.
1503 * scripttempl/w65.sc: Ditto.
1504 * scripttempl/z8000.sc: Ditto.
1508 * Makefile.in (e_i386_chaos.c): New rule.
1509 (ALL_EMULATIONS): Added e_i386_chaos.o.
1510 * emulparams/elf_i386_chaos.sh: New file.
1511 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1515 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1516 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1517 Fix sed invocation, so that it coped with '/' in Solaris 64bit
1518 library path suffix.
1523 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1524 for consecutive sections.
1528 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1530 * ld.texinfo: Added notes about this new option.
1534 * emultempl/pe.em (_after_open): Add tests of return values from
1535 bfd functions. Emit appropriate error messages if necessary.
1539 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
1540 local variables - they are not used, but leave in the call to
1541 bfd_canonicalize_symtab.
1542 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1543 pe_dll_search_prefix.
1547 * emultempl/pe.em (pe_dll_search_prefix): New variable,
1548 (longopts): New --dll-search-prefix option.
1549 (gld_${EMULATION_NAME}_list_options): Document.
1550 (gld_${EMULATION_NAME}_parse_args): Handle.
1551 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
1552 dynamically, search for a dll named '<prefix><basename>.dll'
1553 in preference to 'lib<basename>.dll' if --dll-search-prefix
1558 * ldlang.c (section_already_linked): Set kept_section instead of
1563 * deffile.h: Fix formatting.
1564 * lexsup.c: Likewise.
1569 * pe-dll.c (make_one): Do not generate code thunk for DATA
1571 (process_def_file): deduce DATA flag for auto-export sumbols.
1575 * ld.h: Fix formatting.
1576 * ldcref.c: Likewise.
1577 * ldctor.h: Likewise.
1578 * ldemul.c: Likewise.
1579 * ldemul.h: Likewise.
1580 * ldexp.c: Likewise.
1581 * ldexp.h: Likewise.
1582 * ldfile.c: Likewise.
1583 * ldfile.h: Likewise.
1584 * ldlang.c: Likewise.
1585 * ldlang.h: Likewise.
1586 * ldmain.c: Likewise.
1587 * pe-dll.c: Likewise.
1589 * pe-dll.c: Revert some formatting fixes.
1593 * pe-dll.c: Fix formatting.
1597 * ldlang.c: Fix formatting.
1601 * pe-dll.c (fill_edata): initialize entire block
1602 (make_one): fill in correct section.
1606 * ldexp.c: Fix formatting.
1610 * emultempl/pe.em (gld_*_after_open): detect case where there two
1611 import libraries for same dll; rename one to ensure proper link
1614 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
1616 (generate_edata): fix typo
1620 * scripttempl/crisaout.sc (ENTRY): Now __start.
1621 (.text): Add default setting for __start.
1622 Remove CONSTRUCTORS handling.
1623 (/DISCARD/): Add .gnu.warning.*.
1624 * emulparams/crislinux.sh (ENTRY): Now __start.
1625 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
1626 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
1627 (ENTRY): Now __start.
1628 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
1629 (EXECUTABLE_SYMBOLS): Add default setting for __start.
1633 * deffile.h: Fix formatting.
1635 * ldcref.c: Likewise.
1636 * ldctor.c: Likewise.
1637 * ldctor.h: Likewise.
1638 * ldemul.c: Likewise.
1639 * ldemul.h: Likewise.
1640 * ldexp.c: Likewise.
1641 * ldexp.h: Likewise.
1642 * ldfile.c: Likewise.
1643 * ldfile.h: Likewise.
1644 * ldlang.c: Likewise.
1645 * ldlang.h: Likewise.
1646 * lexsup.c: Likewise.
1648 * pe-dll.c: Likewise.
1652 * pe-dll.c (process_def_file): Uninitialized data wasn't
1653 exported with --export-all-symbols switch.
1657 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
1658 noname work properly.
1662 * ld.texinfo (HPPA ELF32): New section.
1664 * emultempl/hppaelf.em (group_size): New.
1665 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
1666 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
1667 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
1668 options to prevent abbreviations matching.
1669 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
1670 (PARSE_AND_LIST_ARGS_CASES): Handle it.
1674 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
1675 on the m68*-*-elf target. Make it support COFF input objects.
1679 * ldmain.c: Fix formatting.
1680 * ldmisc.c: Likewise.
1681 * ldver.c: Likewise.
1682 * ldwrite.c: Likewise.
1686 * ldwrite.c (clone_section): Silence gcc warnings.
1690 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
1691 out of memory failure.
1693 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
1694 (clone_section): Handle out of memory failures. Rename var to
1695 avoid c++ reserved word.
1699 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
1700 stub_name param to stub_sec_name.
1701 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
1705 * emultempl/m68kelf.em: New file.
1706 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
1707 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
1708 * Makefile.in: Regenerate.
1712 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
1717 * ldmain.c (multiple_definition): Disable relaxation if
1718 multiple symbol definitions are encountered - otherwise the
1719 linker could abort with an assertion failure.
1723 * mri.c: Fix formatting.
1727 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1728 * configure: Rebuild.
1732 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
1733 * Makefile.in: Rebuild.
1737 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
1738 broken list handling. Create __start_SECNAME and __stop_SECNAME
1739 when no place-holder. Add some comments. Test both SEC_CODE and
1740 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
1741 Handle case where no output section statement created.
1745 * configure.tgt (sh-*-linux*): Added.
1746 * Makefile.am: Added eshelf_linux and eshlelf_linux.
1747 * Makefile.in: Rebuilt.
1748 * emulparams/shelf_linux.sh: New file.
1749 * emulparams/shlelf_linux.sh: New file.
1753 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1754 try shuffling sections when the orphan happens to be the place
1755 holder. Keep count of unique section names generated so we speed
1756 the search for a new name.
1760 * configure: Rebuilt with new libtool.m4.
1764 * Makefile.in: Regenerate.
1765 * aclocal.m4: Regenerate.
1766 * configure: Regenerate.
1767 * config.in: Regenerate.
1768 * po/ld.pot: Regenerate.
1770 * ldint.texinfo: Remove CVS revision marker - it foils local
1773 * emultempl/ticoff.em: Remove extraneous comma.
1777 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
1778 to stub section flags.
1779 (hppa_for_each_input_file_wrapper): New.
1780 (hppa_lang_for_each_input_file): New.
1781 (lang_for_each_input_file): Define to call above.
1782 (multi_subspace): New.
1783 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
1784 (PARSE_AND_LIST_PROLOGUE): Define.
1785 (PARSE_AND_LIST_LONGOPTS): Define.
1786 (PARSE_AND_LIST_OPTIONS): Define.
1787 (PARSE_AND_LIST_ARGS_CASES): Define.
1788 (hppaelf_finish): Call elf32_hppa_set_gp.
1789 (hppaelf_set_output_arch): Remove.
1790 (LDEMUL_SET_OUTPUT_ARCH): Remove.
1792 * emulparams/hppalinux.sh (ELFSIZE): Define.
1794 (OTHER_READONLY_SECTIONS): Define.
1796 (GENERATE_SHLIB_SCRIPT): Define.
1798 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
1799 to const throughout. Change `void *' to `PTR' throughout.
1800 (lang_memory_default): Function is local to file, add `static'.
1802 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1803 (ehppalinux.c): Likewise.
1804 (earmelf.c): Likewise.
1805 (earmelf_linux.c): Likewise.
1806 (earmelf_linux26.c): Likewise.
1807 * Makefile.in: Regenerate.
1809 * ld.h (ld_config_type): Add unique_orphan_sections.
1810 * lexsup.c (OPTION_UNIQUE): Define.
1811 (ld_options): Add "--unique".
1812 (parse_args): Handle it.
1813 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1814 search for an existing output section if unique_orphan_sections is
1815 set. Make use of bfd_get_unique_section_name rather than
1816 duplicating code here.
1817 * ld.texinfo: Describe --unique.
1819 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1820 optional arg to split-by-file.
1821 (parse_args): Handle them.
1822 * ld.texinfo: Update description of these options.
1823 * ldwrite.c (clone_section): Pass in the section name. Replace
1824 local code with bfd_get_unique_section_name.
1825 (split_sections): Tidy code and comments. Use a list traversal
1826 more appropriate to the list construction. Handle cooked section
1827 sizes. Split when split_by_reloc reached rather than exceeded.
1828 Track section size and split when split_by_file reached. Fix
1829 link_order_tail (even though it's not used).
1830 (ldwrite): Modify condition for calling split_sections to suit
1831 changed split_by_reloc and split_by_file.
1832 * ldmain.c (main): Init config.split_by_reloc and
1833 config.split_by_file to -1.
1834 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1835 Change split_by_file to bfd_size_type.
1839 * configure.in: Increase version number to 2.10.91.
1840 * NEWS: Mention new ability to support removal of duplicate DWARF2
1842 * configure: Regenerate.
1843 * aclocal.m4: Regenerate.
1844 * config.in: Regenerate.
1848 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1850 * scripttempl/elf32avr.sc: Ditto.
1851 * scripttempl/elfd10v.sc: Ditto.
1852 * scripttempl/elfd30v.sc: Ditto.
1853 * scripttempl/elfi370.sc: Ditto.
1854 * scripttempl/elfm68hc11.sc: Ditto.
1855 * scripttempl/elfm68hc12.sc: Ditto.
1856 * scripttempl/elfi386beos.sc: Ditto.
1857 * scripttempl/v850.sc: Ditto.
1861 * acinclude.m4: Include libtool and gettext macros from the
1863 * aclocal.m4, configure: Rebuilt.
1867 * ldlang.c (open_output): When choosing the target for a
1868 particular endianness, do nothing if the target is not
1873 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1874 check -rpath nor LD_RUN_PATH for cross link.
1875 * ld.texinfo: Document the change.
1879 * NEWS: Mention support for CRIS.
1883 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1884 the current runpath list from bfd_elf_get_runpath_list ()
1889 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1890 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1891 LD_LIBRARY_PATH for native linker. Display the needed DSO if
1892 trace_file_tries is non-zero.
1893 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1894 if trace_file_tries is non-zero.
1896 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
1901 * NEWS: Mention i860 support.
1905 * scripttempl/elf.sc: Fix last change to use correct comment
1910 * scripttempl/elf.sc: Add a comment giving the correspondence
1911 between sections, per-datum sections, and linkonce sections. Make
1912 the comment true even for .bss, .sdata, .sdata2, .sbss, and
1917 * emulparams/elf32_i860.sh: New file.
1918 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1919 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1920 (eelf32_i860.c): New rule.
1921 * Makefile.in: Regenerate.
1925 * emulparams/mipspe.sh (ENTRY): Add definition.
1929 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1934 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1935 the final size of .bss section.
1936 * scripttempl/elfm68hc12.sc: Likewise.
1940 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1941 gld${EMULATION_NAME}_parse_args for consistency. Combine
1942 lastoptind and prevoptind vars, and keep track of last optind.
1943 (gld_${EMULATION_NAME}_list_options): Rename to
1944 gld${EMULATION_NAME}_list_options.
1948 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1949 (i586-sco-sysv5uw7.1.0).
1953 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1954 (PARSE_AND_LIST_PROLOGUE): New.
1955 (PARSE_AND_LIST_LONGOPTS): Likewise.
1956 (PARSE_AND_LIST_OPTIONS): Likewise.
1957 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1958 (PARSE_AND_LIST_EPILOGUE): Likewise.
1962 * emultempl/armelf.em: Elide functions common to elf32.em,
1963 ie. most of the file.
1964 (arm_elf_after_open): New. Do arm specific things then call
1965 gld${EMULATION_NAME}_after_open.
1966 (arm_elf_before_allocation): New. Call
1967 gld${EMULATION_NAME}_before_allocation then do arm specifics.
1968 (PARSE_AND_LIST_PROLOGUE): Define.
1969 (PARSE_AND_LIST_SHORTOPTS): Define.
1970 (PARSE_AND_LIST_LONGOPTS): Define.
1971 (PARSE_AND_LIST_OPTIONS): Define.
1972 (PARSE_AND_LIST_ARGS_CASES): Define.
1973 (LDEMUL_AFTER_OPEN): Define.
1974 (LDEMUL_BEFORE_ALLOCATION): Define.
1975 (LDEMUL_BEFORE_PARSE): Define.
1976 (LDEMUL_FINISH): Define.
1978 * emultempl/hppaelf.em: Similarly zap most of this file.
1979 (hppaelf_add_stub_section): Prototype.
1980 (hppaelf_layaout_sections_again): Prototype.
1981 (hook_in_stub): Prototype.
1982 (LDEMUL_SET_OUTPUT_ARCH): Define.
1983 (LDEMUL_FINISH): Define.
1984 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1986 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1987 (EXTRA_EM_FILE): New.
1988 * emulparams/armelf_linux.sh: Likewise.
1989 * emulparams/armelf_linux26.sh: Likewise.
1990 * emulparams/hppalinux.sh: Likewise.
1991 * emulparams/hppaelf.sh: Likewise.
1994 * emultempl/elf32.em: Fix formatting.
1995 (EXTRA_EM_FILE): Source it.
1996 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1997 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1998 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1999 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2000 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2001 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2002 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2003 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2004 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2005 allow functions in this file to be overridden.
2006 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2008 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2010 * emultempl/elf32.em: Reorganize file.
2014 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2015 specific option to fit 64-bit executable in the lower
2016 31-bit address range. This is done by changing start
2017 address of .interp (the very first section of executable)
2018 and then setting EF_ALPHA_32BIT elf header flag.
2022 * emultempl/m68kcoff.em: New file.
2023 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2024 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2026 * Makefile.in: Regenerate.
2030 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2031 and "disable-new-dtags" to stop getopt from treating -d/-e as
2032 abbreviations for these options.
2036 * ld.texinfo: Add documentation for --disable-new-dtags and
2039 * ldmain.c (main): Initialize link_info.new_dtags to false.
2041 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2042 --disable-new-dtags and --enable-new-dtags.
2043 (gld_${EMULATION_NAME}_list_options): Likewise.
2047 * lexsup.c: Add optional style to demangle switch
2048 * ld.texinfo: Document optional style to demangle switch.
2052 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2054 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2055 Regenerate dependencies.
2056 * Makefile.in: Rebuild.
2057 * configure.tgt (cris-*-*): New target.
2058 * emulparams/crisaout.sh, emulparams/criself.sh,
2059 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2060 * po/POTFILES.in, po/ld.pot: Regenerate.
2064 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2065 Print out ignored -z options.
2069 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2070 (PARSE_AND_LIST_PROLOGUE): New.
2071 (PARSE_AND_LIST_LONGOPTS): Likewise.
2072 (PARSE_AND_LIST_OPTIONS): Likewise.
2073 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2075 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2077 * lexsup.c (ld_options): Comment out 'z'.
2078 (parse_args): Likewise.
2080 * emultempl/elf32.em: Include "elf/common.h".
2081 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2083 (gld_${EMULATION_NAME}_list_options): Likewise.
2085 * ld.texinfo: Add documentation for the recognized -z options.
2089 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2090 bfd_elf_set_dt_needed_soname ().
2094 * pe-dll.c (pe_dll_id_target): check object target name also
2098 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2099 ${INIT_END} if relocating.
2100 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2104 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
2105 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2106 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2107 errors introduced by the old dynamic lib search order.
2111 * pe-dll.c (process_def_file): auto-export data items also
2112 (pe_process_import_defs): also see if _imp_ form needed
2116 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2117 for dll import libraries
2121 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
2122 gcc 2.95.2 and later.
2126 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2131 * ldemul.h (struct lang_input_statement_struct): Remove forward
2133 (struct search_dirs): Likewise.
2134 * ldfile.h (struct lang_input_statement_struct): Likewise.
2135 Protect file from multiple inclusion.
2136 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2137 declaration from macro to file scope.
2139 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2140 * ldgram.y: Likewise here.
2141 * ldlang.c: And here.
2142 * ldmain.c: And here.
2143 * mpw-elfmips.c: And here.
2144 * mpw-eppcmac.c: And here.
2145 * emultempl/aix.em: And here.
2146 * emultempl/armcoff.em: And here.
2147 * emultempl/armelf.em: And here.
2148 * emultempl/armelf_oabi.em: And here.
2149 * emultempl/beos.em: And here.
2150 * emultempl/elf32.em: And here.
2151 * emultempl/hppaelf.em: And here.
2152 * emultempl/linux.em: And here.
2153 * emultempl/lnk960.em: And here.
2154 * emultempl/pe.em: And here.
2155 * emultempl/sunos.em: And here.
2156 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2157 * mpw-idtmips.c: Ditto.
2158 * emultempl/generic.em: Ditto.
2159 * emultempl/gld960.em: Ditto.
2160 * emultempl/gld960c.em: Ditto.
2161 * emultempl/mipsecoff.em: Ditto.
2162 * emultempl/ticoff.em: Ditto.
2163 * emultempl/vanilla.em: Ditto.
2165 * pe-dll.c: Include ldfile.h
2166 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2168 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2169 arguments to bfd_elf32_size_dynamic_sections call.
2170 (gldelf32ebmip_place_orphan): Add missing arguments to
2171 lang_leave_output_section_statement call.
2175 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2177 (strhash): Likewise.
2178 (compute_dll_image_base): Likewise.
2179 (pe_undef_found_sym): Likewise.
2180 (pe_undef_cdecl_match): Likewise.
2181 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2182 argument "arch" with ATTRIBUTE_UNUSED.
2186 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2189 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
2193 Changes to create multiple linker stubs, positioned immediately
2194 before the section where they are required.
2195 * emultempl/hppaelf.em: Include elf32-hppa.h.
2196 (stub_sec, file_chain): Delete.
2197 (hppaelf_create_output_section_statements): Don't make a stub
2199 (hook_stub_info): New struct.
2200 (hook_in_stub): New function.
2201 (hppaelf_add_stub_section): New function.
2202 (hppaelf_finish): Do nothing for relocateable links. Modify the
2203 call to elf32_hppa_size_stubs. Move code for updating section
2205 (hppaelf_layaout_sections_again): ..to here, a new function.
2207 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2208 broken list handling. Pass in a pointer to the list.
2209 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2211 (hppaelf_before_parse): Prototype.
2212 (hppaelf_set_output_arch): Prototype.
2213 (hppaelf_create_output_section_statements): Prototype.
2214 (hppaelf_delete_padding_statements): Prototype.
2215 (hppaelf_finish): Prototype.
2218 * emultempl/hppaelf.em: Include ctype.h.
2219 (struct orphan_save): New.
2220 (gld${EMULATION_NAME}_place_orphan): New.
2221 (output_rel_find): New.
2222 (hppaelf_get_script): Update from elf32.em.
2223 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2224 Change emulation_name field to "${EMULATION_NAME}". Add
2225 gld${EMULATION_NAME}_place_orphan.
2227 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
2228 ehppalinux.o, sort it. Regenerate dependencies.
2229 (ehppalinux.c): Depend on hppaelf.em
2230 * Makefile.in: Regenerate.
2232 * configure.tgt: targ_emul=hppalinux for hppa*linux
2234 * emulparams/hppalinux.sh: New.
2235 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2239 * lexsup.c (parse_args): Copy section name.
2243 * emultempl/pe.em: institute the following search order for
2244 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2245 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
2246 static lib (libfoo.a) if none of the above are found.
2250 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
2251 (longopts): New --{enable,disable}-auto-image-base options.
2252 (gld_${EMULATION_NAME}_list_options): Document.
2253 (gld_${EMULATION_NAME}_parse): Handle.
2254 (strhash): New static function.
2255 (compute_dll_image_base): New static function.
2256 (gld_${EMULATION_NAME}_set_symbols): Use.
2264 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2265 * emulparams/elf32btsmip.sh: New file.
2266 * Makefile.am: Add traditional mips target.
2267 * Makefile.in: Rebuild.
2271 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2272 automake to use YLWRAP.
2273 * Makefile.in: Rebuild.
2277 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2278 (CLEANFILES): Add DEPA.
2279 * Makefile.in: Regenerate.
2281 2000-06-30 Timothy Wall <twall@ppc>
2283 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2284 the page in the upper octet of the address.
2288 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2292 * NEWS: arm-elf does --gc-sections too.
2296 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2298 * Makefile.in: Regenerate.
2302 * Makefile.am: Rebuild dependency.
2303 * Makefile.in: Rebuild.
2307 * Makefile.am: Rebuild dependency.
2308 * Makefile.in: Rebuild.
2312 * scripttempl/tic54xcoff.sc: New.
2313 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2314 * gen-doc.texi: Add flag for TI COFF.
2315 * ld.texinfo: Add documentation for TI COFF handling switches.
2316 * emultempl/ticoff.em: New. TI COFF handling.
2317 * configure.tgt: Add tic54x target.
2318 * Makefile.am: Add tic54x target.
2319 * Makefile.in: Ditto.
2323 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2324 checking for backslashes.
2328 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2332 * NEWS: Update list of targets supporting --gc-sections.
2334 * scripttempl/elf.sc: KEEP .eh_frame contents.
2335 * scripttempl/elfd30v.sc: Same here.
2339 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2341 * Makefile.in: Rebuild.
2342 * configure.tgt: Recognize m68hc12 and m68hc11.
2343 * scripttempl/elfm68hc12.sc: New file.
2344 * emulparams/m68hc12elfb: New emulation.
2345 * emulparams/m68hc12elf: New emulation.
2346 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2347 (includes a memory.x script to define the ROM and RAM banks).
2348 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2349 New configuration files for support of Motorola 68hc11
2353 * ldmain.c (main): Only change SEC_READONLY for final link.
2357 * configure: Regenerate.
2361 * configure.in (VERSION): Update to show this is the CVS mainline.
2365 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2366 input objects to be ECOFF.
2367 (check_sections): einfo takes %B, not %P, to print a BFD name.
2371 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
2374 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
2378 * emulparams/avr1200.sh (STACK): Define as 0.
2379 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2380 * emulparams/avr4433.sh (STACK): Likewise.
2381 * emulparams/avr44x4.sh (STACK): Likewise.
2382 * emulparams/avr85xx.sh (STACK): Likewise.
2383 * emulparams/avrmega103.sh (STACK): Likewise.
2384 * emulparams/avrmega161.sh (STACK): Likewise.
2385 * emulparams/avrmega603.sh (STACK): Likewise.
2386 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2387 (__stack): Define from ${STACK} for main().
2391 * Makefile.am: Update dependencies with "make dep-am"
2392 * Makefile.in: Regenerate.
2396 * ldmain.c: Include filenames.h.
2397 (set_scripts_dir): Support backslashes in program name.
2401 * ldmain.c (main): When deciding if ".text" section should be
2402 read-only, don't forget to reset SEC_READONLY because it
2403 could be already set.
2407 * ld.1: Add documentation for new command line option:
2408 --section-start <sectionname>=<sectionorg>
2409 This is a generic version of -Ttext etc. which accepts
2410 any section name as a parameter instead of just text/data/
2412 * ld.texinfo: More docs.
2414 * lexsup.c: (parse_args): Recognize new command line option.
2415 (ld_options): Add new option.
2419 * lexsup.c (parse_args): `i' == `r', not `q'.
2423 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2428 Add support for '-q' == '--emit-relocs' switch.
2429 * ldmain.c (main): Default to false.
2430 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2431 * NEWS: Describe the emitrelocations switch.
2432 * ld.texinfo: Describe the emitrelocations switch.
2436 * emultempl/pe.em (_open_dynamic_archive): New function: Search
2437 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2438 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2443 * lexsup.c (parse_args): Update the year in the copyright notice.
2447 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2448 Replace defines with those from intl/libgettext.h to quieten gcc
2453 * ldlang.c (open_input_bfds): Don't load the same file within
2454 a group again if the whole archive has been loaded already.
2459 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2464 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
2466 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2467 host "ia64-*-linux-gnu*".
2471 * ld.h: Correctly check GCC version.
2475 * Makefile.am: Add PA64 support. Add missing dependencies for
2477 * Makefile.in: Rebuilt.
2478 * configure.tgt: Add PA64 support (currently disabled).
2482 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2483 (output_rel_find): New function.
2484 (hold_section, hold_use): Delete.
2485 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2486 hold_interp): Make local to place_orphan.
2487 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2488 rather than place_section to find possible previous use of orphan.
2489 Similarly find the place-holder output sections. Use returned
2490 value from lang_enter_output_section_statement rather than calling
2491 lang_output_section_statement_lookup.
2492 * emultempl/armelf.em: Same here.
2493 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2495 * ldlang.c (lang_enter_output_section_statement): Return output
2497 * ldlang.h (lang_enter_output_section_statement): Change
2500 * ldlang.h (lang_output_section_statement): Export it.
2501 * ldlang.c (lang_output_section_statement): Ditto.
2505 * ld.texinfo (Output Section Data): Add note that section data
2506 commands cannot appear outside of section directives.
2510 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2515 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2516 (eelf64_ia64.c): New rule.
2517 * Makefile.in: Rebuild.
2518 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2519 * emulparams/elf64_ia64.sh: New file.
2523 * scripttempl/elfd30v.sc: Place .gcc_except_table.
2527 * dep-in.sed: Match space at start of file name, not at end.
2531 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2532 lang_leave_output_section_statement () after calling
2533 lang_enter_output_section_statement ().
2534 * emultempl/armelf.em: Likewise.
2538 * emultempl/elf32.em (struct orphan_save): Add section field.
2539 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2540 better order, and place first orphan section as we did before the
2541 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
2542 Don't call make_bfd_section here, let wild_doit do the job for us.
2543 Don't build a statement list when we'll only throw it away.
2544 * emultempl/armelf.em: Ditto.
2545 * emultempl/pe.em: Similarly.
2549 * scripttempl/elfppc.sc: Remove.
2550 * emulparams/elf32ppc.sh: Use elf.sc.
2551 * emulparams/elf32lppc.sh: Use elf.sc.
2552 * emulparams/elf32ppclinux.sh: Use elf.sc.
2553 * emulparams/elf32ppcsim.sh: New file.
2554 * emulparams/elf32lppcsim.sh: New file.
2555 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
2556 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
2557 * Makefile.in: Regenerate.
2558 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2562 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
2563 ~SEC_ALLOC sections too. Init start address of debug sections.
2564 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2565 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2566 Also set all relocateable section start addresses.
2570 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
2571 Add new BSS_PLT variable for when .plt need not be contained in
2572 the file. Move _etext so that it is also after .fini, and provide
2573 both etext and _etext with a leading underscore. Mark the start
2578 * emultempl/elf32.em (struct orphan_save): New.
2579 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2580 hold_interp): Make them struct orphan_save.
2581 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
2582 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
2583 the end of the relevant section list. Also add associated section
2584 statements to the end of any previous orphan statements.
2585 * emultempl/armelf.em: Similarly.
2586 * emultempl/pe.em: Similarly.
2590 * ld.texinfo (Simple Example): Remove extraneous paragraph.
2594 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
2595 --enable-build-warnings option.
2596 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2597 * Makefile.in, configure: Re-generate.
2601 * po/ld.pot: Regenerate.
2603 * lexsup.c (help): Restore translated part of bug string.
2605 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2606 (DEP): Quote when passing vars to sub-make. Add warning message
2608 (DEP1): Rewrite for "gcc -MM".
2609 (CLEANFILES): Add DEP2.
2610 Update dependencies.
2611 * Makefile.in: Regenerate.
2615 * ld.h: #include "bin-bugs.h"
2616 * lexsup.c (help): Use REPORT_BUGS_TO.
2620 * configure.tgt (avr-*-*): New target support.
2621 * Makefile.am: Likewise.
2622 * scripttempl/elf32avr.sc: New script file.
2623 * emulparams/avr1200.sh: New file.
2624 * emulparams/avr23xx.sh: New file.
2625 * emulparams/avr4433.sh New file.
2626 * emulparams/avr44x4.sh New file.
2627 * emulparams/avr85xx.sh New file.
2628 * emulparams/avrmega103.sh New file.
2629 * emulparams/avrmega161.sh New file.
2630 * emulparams/avrmega603.sh New file.
2631 * Makefile.in: Regenerate.
2635 * Makefile.am (check-DEJAGNU): Also unset LANG.
2636 * Makefile.in: Rebuild.
2640 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
2645 * emulparams/elf32mcore.sh: Include "getopt.h".
2649 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
2653 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
2654 * emulparams/shpe.sh: Likewise.
2658 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
2659 to unused parameters.
2661 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
2662 functions only used by DLL code.
2663 (_place_orphan): Initialise 'dollar'.
2667 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
2668 indicate if the undefined symbol is a fatal error or not.
2669 Don't delete the output file if "fatal" is false.
2673 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
2674 Set LC_COLLATE and LC_ALL to null and export them. It is for
2675 sort which expects the C locale.
2676 Add $(LIBS) to all $(HOSTING_LIBS).
2677 * Makefile.in: Rebuild.
2681 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
2682 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
2683 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
2684 (ld_emulation_xfer_struct): Add missing NULL initialiser for
2685 find_potential_libraries.
2689 * ldgram.y (exclude_name_list): Don't require a comma to separate
2690 list entries; the lexer considers commas to be valid part of a
2691 filename, so in something like `foo, bar' the comma is considered
2692 part of the first filename, `foo,'.
2693 * ld.texinfo: Update section on EXCLUDE_FILE lists.
2697 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2698 host "i[3456]86-*-freebsdelf*".
2702 * scripttempl/i386go32.sc: Move misplaced semicolons.
2706 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
2707 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
2708 (eelf64hppa.c, ehppaelf.c): Remove targets.
2709 * Makefile.in: Rebuild.
2713 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
2714 GNU/Linux/sparc, but keep the default as 32.
2716 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
2717 it default if sparcv9 or sparc64.
2721 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
2722 * Makefile.in: Regenerate.
2723 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
2725 * ldemul.h (ld_emulation_xfer_struct): Add new field:
2726 find_potential_libraries.
2727 * ldemul.c (ldemul_find_potential_libraries): New function.
2729 * ldfile.c (ldfile_open_file_search): Allow function to be
2731 (ldfile_open_file): Call ldemul_find_potential_libraries.
2732 * ldfile.h: Add prototype for ldfile_open_file_search.
2734 * pe-dll.c: Add support for ARM, MIPS and SH targets.
2736 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
2737 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
2739 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
2740 (gld_X_find_potential_libraries): New function. Search for
2741 libraries called "*.lib".
2743 * scripttempl/pe.sc: Add .pdata section.
2747 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
2748 Add and use memory regions.
2752 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
2754 * Makefile.am: Add support for Linux/IBM 370.
2755 * configure.tgt: Likewise.
2757 * Makefile.in: Regenerate.
2761 * ldlang.c (print_input_section, print_data_statement,
2762 print_reloc_statement, print_padding_statement, insert_pad,
2763 size_input_section, lang_check_section_addresses,
2764 lang_size_sections, lang_do_assignments, lang_set_startof,
2765 lang_one_common): Change `opb' to unsigned.
2766 (lang_do_assignments): Also change `size' to unsigned.
2770 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
2774 * mri.c (mri_draw_tree): Add default LMA region argument to call
2775 to lang_leave_output_section_statement.
2776 * ldlang.h: Update prototypes with LMA region arguments.
2777 * ldlang.c (lang_size_sections): Encapsulate region bounds
2778 checking in os_check_region call.
2779 (os_check_region): New function.
2780 (lang_output_section_statement_lookup): Initialize lma_region.
2781 (lang_leave_output_section_statement): Add LMA region argument.
2782 (lang_leave_overlay): Ditto.
2783 * ldgram.y: Handle LMA region syntax.
2784 * ld.texinfo (Output Section Description): Describe LMA region usage.
2785 * emultempl/armelf.em (gld$place_orphan): Add default value for
2786 lma region in call to lang_leave_output_section_statement.
2787 * emultempl/elf32.em (gld$place_orphan): Add default value for
2788 lma region in call to lang_leave_output_section_statement.
2789 * emultempl/pe.em (gld$place_orphan): Add default value for
2790 lma region in call to lang_leave_output_section_statement.
2795 * ldlang.c (lang_check_section_addresses): Use bytes instead of
2796 octets when calculating section end addresses.
2800 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2804 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
2806 * ldlang.c (print_input_section, print_data_statement,
2807 print_reloc_statement, print_padding_statement): Print target
2808 address values and section sizes as bytes, not octets.
2809 (insert_pad) Calculate padding size in octets, and adjust "dot"
2811 (size_input_section) Always adjust "dot" by bytes, not octets.
2812 (lang_check_section_addresses, lang_do_assignments) Adjust
2813 "dot" by bytes, not octets. Use the larger of the directive size
2814 or octets_per_byte for the number of octets actually allocated in
2816 (lang_set_startof) Make sure STARTOF returns a target address.
2817 (lang_one_common) Record size changes in octets.
2818 (lang_abs_symbol_at_end_of) Section end symbol's value is
2819 recorded in target bytes.
2820 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
2821 to be clear about behavior when an octet is smaller than one byte.
2825 * ldcref.c (output_cref): Don't pass message strings to printf
2829 * ldmisc.c (vfinfo): Same here.
2834 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2835 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2836 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2837 Add missing NULL initialisers, and comments.
2839 * testsuite/ld-srec/sr3.cc (__rethrow): New.
2843 * ldlang.c (lang_size_sections): Fix typo in comment.
2847 * ldlang.c (lang_size_sections): Also update the current
2848 address of a region if the SEC_NEVER_LOAD bit is not set.
2852 * configure.tgt (arm*-*-conix*): New target.
2856 * ld.texinfo (Options): Remind users to preceed linker command
2857 line switches with -Wl, (or whatever is appropriate) if it is
2858 being invoked by a comnpiler driver program.
2859 Fix description of the behaviour of the -n command line switch.
2863 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
2865 * ld.texinfo (EXCLUDE_FILE): Update documentation.
2866 * ldgram.y (wildcard_spec): Support a list of excluded_files.
2867 (exclude_name_list): New.
2868 ldlang.c (walk_wild_section): Support list of excluded files.
2869 (print_wild_statement): Likewise.
2870 (lang_add_wild): Likewise.
2871 * ldlang.h (lang_wild_statement_type): Likewise.
2872 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2876 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2877 (process_def_file): Use.
2878 (pe_dll_compat_implib): New variable.
2881 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2882 pe_dll_compat_implib.
2884 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
2885 compat-implib options.
2886 (gld_${EMULATION_NAME}_list_options): List new options.
2887 (gld_${EMULATION_NAME}_parse_args): Handle.
2889 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
2892 * deffilep.y (opt_name): Allow "." in name.
2894 For older changes see ChangeLog-9899
2900 version-control: never