3 * Makefile.am (AM_MAKEINFOFLAGS): Define.
5 (ldver.texi): Depend on distributed files instead of built files.
6 (ld.info): Include $(srcdir) in the rule target. Remove actions.
7 (ld.dvi): Remove actions.
8 (MAINTAINERCLEANFILES): Add configdoc.texi.
9 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
10 (install-data-local): Renamed from install.
11 (Makefile): Remove explicit dependency.
12 * acinclude.m4: Remove obsolete code.
13 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
14 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
18 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
19 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
23 * ldgram.y: Add SPECIAL token.
24 (sect_constraint): Handle SPECIAL.
25 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
26 (map_input_to_output_sections): Likewise.
27 * ldlex.l (SPECIAL): Define.
28 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
29 GOT, PLT, GOTPLT): Define.
30 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
31 (ppc_after_open): New function.
32 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
33 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
34 (PARSE_AND_LIST_OPTIONS): Document them.
35 (PARSE_AND_LIST_ARGS_CASES): Handle them.
36 (LDEMUL_AFTER_OPEN): Define.
37 * scripttempl/elf.sc (PLT): Don't override existing define.
38 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
39 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
43 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
44 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
45 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
46 DATA_SEGMENT_RELRO_END in script.
50 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
51 Don't use a removed section.
55 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
56 is defined in the ABS section.
60 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
61 Put back !link_info.relocatable.
66 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
67 Just check link_info.executable.
71 * Update the address and phone number of the FSF organization in
72 the GPL notices in the following files:
73 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
74 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
75 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
76 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
77 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
78 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
79 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
80 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
81 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
82 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
83 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
84 emultempl/m68kcoff.em, emultempl/m68kelf.em,
85 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
86 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
87 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
88 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
89 emultempl/vanilla.em, emultempl/xtensaelf.em
93 * scripttempl/elf.sc: Document the usage of __bss_start.
97 * Makefile.am: Add eelf_i386_vxworks.
98 * Makefile.in: Regenerate.
99 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
100 * emulparams/elf_i386_vxworks.sh: New file.
101 * emulparams/vxworks.sh: New file.
102 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
106 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
107 Call _bfd_elf_provide_section_bound_symbols.
111 * ldemul.c: Include bfdlink.h.
112 (ldemul_before_allocation): Assume before_allocation is non-zero.
113 (before_allocation_default): Call strip_excluded_output_sections.
114 * ldlang.c (stripped_excluded_sections): New variable.
115 (lang_add_section): Build input section list for each output
116 section, attached via map_head and map_tail pointers.
117 (strip_excluded_output_sections): Make global. Traverse the
118 input section lists to find which output sections can go. Clear
119 link_order pointers and set stripped_excluded_sections.
120 (lang_process): Call strip_excluded_output_sections.
121 * ldlang.h (strip_excluded_output_sections): Declare.
122 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
123 * emultempl/aix.em (before_allocation): Call
124 strip_excluded_output_sections.
125 * emultempl/armcoff.em (before_allocation): Likewise.
126 * emultempl/beos.em (before_allocation): Likewise.
127 * emultempl/linux.em (before_allocation): Likewise.
128 * emultempl/pe.em (before_allocation): Likewise.
129 * emultempl/sunos.em (before_allocation): Likewise.
130 * emultempl/elf32.em (before_allocation): Likewise. Call
131 bfd_elf_size_dynsym_hash_dynstr too.
132 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
133 (ld_lnk960): Use before_allocation_default.
137 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
138 Updated for bfd_section_list_remove change.
139 * ldlang.c (lang_insert_orphan): Likewise.
140 (strip_excluded_output_sections): Likewise.
141 (sort_sections_by_lma): New.
142 (lang_check_section_addresses): Sort the sections before
147 * configure.tgt: Add h8300*-*-rtemscoff.
148 Switch h8300*-*-rtems* to elf.
152 * ldgram.y (lang_memory_region_type): Make static.
153 (ldgram_want_filename): Likewise.
154 * ldemul.c (ld_emulation): Make static.
155 * ldfile.h (ldfile_find_command_file): Remove extern.
156 * ldfile.c (ldfile_find_command_file): Make static.
157 * ldlang.h (unique_section_list): Remove extern declaration.
158 * ldlang.c (unique_section_list): Make static.
159 * mri.h (symbol_truncate): Remove extern declaration.
160 * mri.c (symbol_truncate): Make static.
161 (order, only_load, address, alias): Likewise.
162 (alignment, subalignment): Likewise.
166 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
167 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
168 last SEC_ALLOC section if such a section doesn't exist.
172 * configure.host: Add *-*-openbsd support.
176 * ld.texinfo: Document --use-blx.
177 * emultempl/armelf.em (use_blx): New variable.
178 (arm_elf_create_output_section_statements): Communicate value of
180 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
181 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
182 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
186 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
187 * configure.in: Include ../bfd/warning.m4 contents.
188 * Makefile.in: Regenerate.
189 * configure: Regenerate.
193 * Makefile.am: Run "make dep-am".
194 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
195 * Makefile.in: Regenerate.
196 * config.in: Regenerate.
200 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
201 as_needed libs that were not needed.
202 (gld${EMULATION_NAME}_check_needed): Likewise.
206 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
207 ldfile.h can use the lang_input_statement type.
211 * ldlang.c: Formatting.
212 (walk_wild_consider_section): Remember return value from wildcardp.
213 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
214 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
218 * ld.h (lean_section_userdata_type): Remove.
219 (fat_section_userdata_type): Remove file field.
220 (SECTION_USERDATA_SIZE): Remove.
221 * ldlang.c (init_os): Eliminate initialization of unused
222 lean_section_userdata_type.
224 * ldlang.h (callback_t, walk_wild_section_handler_t): New
226 (struct lang_wild_statement_struct): Add walk_wild_section_handler
227 and handler_data fields.
228 * ldlang.c (callback_t): Removed.
229 (walk_wild_consider_section, walk_wild_section_general,
230 section_iterator_callback, find_section, is_simple_wild,
231 match_simple_wild, walk_wild_section_specs1_wild0,
232 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
233 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
234 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
236 (lang_add_wild): Call analyze_walk_wild_section_handler.
237 (walk_wild_section): Renamed to walk_wild_section_general and
238 created a wrapper function.
239 (section_iterator_callback_data): New typedef.
243 * configure.in: Add a check for <unistd.h> providing a prototype
244 for getopt() which is compatible with the one in
245 include/getopt.h. If so then define HAVE_DECL_GETOPT.
246 * configure: Regenerate.
247 * config.in (HAVE_DECL_GETOPT): Add.
248 * ldemul.c: Include config.h
249 * lexsup.c: Likewise.
250 * emultempl/elf32.sc: Likewise.
254 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
255 New function, extracted from static void gld${EMULATION_NAME}_finish.
256 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
257 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
258 * emultempl/ppc64elf.em: Revert last change.
259 (ppc_layout_sections_again): Use
260 gld${EMULATION_NAME}_layout_sections_again.
261 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
262 gld${EMULATION_NAME}_strip_empty_sections and
263 gld${EMULATION_NAME}_provide_init_fini_syms.
264 * emultempl/hppaelf.em: Similarly.
268 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
269 (ppc_finish): Don't call bfd_elf_discard_info.
270 * emultempl/hppaelf.em: Similarly.
274 * po/fr.po: Updated French translation.
279 * configure.host: Accept any C library to accompany a GNU Linux
280 implementation, not just the GNU C library.
281 * configure.tgt: Likewise.
282 * emultempl/elf32.em: Likewise.
286 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
287 (gld${EMULATION_NAME}_finish): Call
288 gld${EMULATION_NAME}_provide_bound_symbols to provide
289 __preinit_array_start, __preinit_array_end, __init_array_start,
290 __init_array_end, __fini_array_start and __fini_array_end.
292 * scripttempl/elf.sc: Don't provide __preinit_array_start,
293 __preinit_array_end, __init_array_start, __init_array_end,
294 __fini_array_start nor __fini_array_end.
298 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
299 SEC_EXCLUDE on .gnu.warning sections.
303 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
307 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
309 (LDEMUL_AFTER_ALLOCATION): Define.
313 * emultempl/ppc64elf.em (ppc_finish): Rename from
314 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
315 (LDEMUL_FINISH): Update.
316 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
317 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
321 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
323 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
324 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
328 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
329 bfd_section when removing unused empty output sections for
330 non-relocatable link.
334 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
335 traversing the bfd section list to find pointer to new section.
339 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
340 input sections into .sdata and .sbss output respectively.
345 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
346 (lang_check_section_addresses): Ignore zero size sections here.
350 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
351 unused empty output sections for non-relocatable link.
353 * ld.h (args_type): Remove gc_sections.
355 * ldlang.c (lang_mark_used_section): New.
356 (lang_gc_sections): Use link_info.gc_sections instead of
357 command_line.gc_sections.
358 * ldmain.c (main): Likewise.
359 * lexsup.c (parse_args): Likewise.
360 * ldlang.c (lang_process): Call lang_mark_used_section.
362 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
367 * configure.in (werror): New switch: Add -Werror to the
368 compiler command line. Enabled by default. Disable via
370 * configure: Regenerate.
374 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
375 (OTHER_RELRO_SECTIONS): Set this instead.
379 * NEWS: Add cutoff for changes in 2.16 release.
383 * configure.tgt (x86_64-elf): Add target.
387 * po/es.po: Commit new Spanish translation.
391 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
392 Tidy etree_assert case.
396 * po/tr.po: Commit new Turkish translation.
400 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
401 * Makefile.in: Regenerated.
402 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
406 * po/fr.po: Updated translation.
410 * po/ld.pot: Regenerate.
414 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
415 * pe-dll.c (pe_dll_generate_implib): Likewise.
419 * ldfile.c: Remove GNU960 conditional code.
420 * emultempl/gld960.em: Likewise.
421 * emultempl/gld960c.em: Likewise.
422 * emultempl/lnk960.em: Likewise.
426 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
427 empty string from calls to concat.
431 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
432 arguments passed to concat() with a NULL.
434 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
435 define types needed by ldfile.h
439 * pe-dll.c: Warning fixes.
440 * emultempl/sunos.em: Likewise.
444 * ldlang.c (section_already_linked): Don't call
445 bfd_section_already_linked for dynamic objects.
449 * ldexp.c: Warning fixes.
450 * ldwrite.c: Likewise.
451 * emultempl/elf32.em: Likewise.
455 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
457 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
458 and ECOFF output only.
462 * config.in: Regenerate.
463 * configure: Regenerate.
467 * ldexp.c (assigning_to_dot): New global flag.
468 (fold_name): If assigning_to_dot is true, object immediately to
470 (exp_fold_tree): Set and clear assigning_to_dot around the
471 recursive call to exp_fold_tree to process the right-hand side
472 of an assignment to the location counter.
476 * scripttempl/armbpabi.sc: Add dummy name to version block.
480 * ldexp.c (new_abs): Init new.str.
484 * configure.in (AC_CHECK_FUNCS): Add glob.
485 * configure: Regenerated.
486 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
488 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
489 if HAVE_GLOB is not defined.
493 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
494 lib_path if NATIVE is yes.
498 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
499 an error creating fake bfd fatal.
500 (ppc_before_allocation): Continue on after errors.
501 (gld${EMULATION_NAME}_finish): Likewise.
505 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
506 not declared. It is not used and its presence causes a compile
511 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
512 If st.st_ino is zero, do not treat the library as a duplicate.
516 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
517 Set BFD_LINKER_CREATED on the stubs bfd.
518 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
523 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
525 (Image$$ER_RO$$Base): Define whenever RELOCATING.
526 (Image$$ER_RO$$Limit): Likewise.
527 (SHT$$INIT_ARRAY$$Base): Likewise.
528 (SHT$$INIT_ARRAY$$Limit): Likeise.
532 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
536 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
537 to include o32 and n64 emulations.
538 (mips64*-*-linux-gnu*): Likewise.
542 * ldmain.c (warning_callback, warning_find_reloc): Prepend
543 "warning: " to warning messages.
547 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
548 look up symbol for etree_provide here.
552 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
557 * ld.texinfo (Source Code Reference): New node describing how to
558 access linker script defined variables from source code.
562 * ld.texinfo: Clarify --as-needed operation.
566 * configure: Regenerate to track ../gettext.m4.
570 * ldver.c (ldversion): Bump reported copyright date to 2005.
574 * configure.tgt: Remove obsolete targets m68k-lynxos and
579 * emultempl/armelf.em (fix_v4bx): New variable.
580 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
582 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
583 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
584 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
585 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
586 * NEWS: Mention --fix-v4bx.
587 * ld.texinfo: Document --fix-v4bx.
591 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
592 as to include .ARM.exidx$${Base,Limit}.
593 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
594 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
595 Put .init_array, .fini_array, etc. into the read-only data
600 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
601 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
602 only needed by an as-needed lib that didn't get linked.
606 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
607 __DTOR_LIST__ description.
611 * ld.texinfo (Location Counter <dot outside sections>): Document
612 effects of orphan section placement, and ". = ." workaround.
613 * Makefile.in: Regenerate.
617 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
618 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
622 * ldgram.y (AS_NEEDED): New token.
623 (input_list): Handle AS_NEEDED ( input_list ).
624 * ldlex.l (AS_NEEDED): Add.
625 * ld.texinfo: Document AS_NEEDED ().
626 * NEWS: Mention AS_NEEDED ().
630 * ldlang.c (lang_reasonable_defaults): Remove.
631 (lang_process): Don't call lang_reasonable_defaults.
633 * ldexp.c (exp_assop): Remove #if 0'd code.
634 (exp_print_tree): Likewise.
635 * ldlang.c (lang_memory_region_lookup): Likewise.
636 (open_output): Likewise.
637 (lang_do_assignments_1): Likewise.
638 (lang_place_orphans): Likewise.
639 (lang_enter_output_section_statement): Likewise.
640 (lang_reasonable_defaults): Likewise.
641 * ldlang.h (struct lang_input_statement_struct): Likewise.
642 * mri.c (mri_draw_tree): Likewise.
643 (mri_load): Likewise.
644 * pe-dll.c (generate_reloc): Likewise.
645 (make_import_fixup_entry): Likewise.
647 * emultempl/beos.em (set_pe_subsystem): Likewise.
648 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
649 * emultempl/pe.em: Likewise.
650 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
654 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
655 (earmelfb_linux_eabi.c): New target.
656 * Makefile.in: Regenerated.
657 * configure.tgt (arm*b-*-linux-gnueabi): New target.
658 * emulparams/armelfb_linux_eabi.sh: New file.
663 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
664 Handle bfd_elf32_hppa_nbsd_vec.
668 * ldmain.h (ld_sysroot): Change type to a constant string.
669 * ldmain.c (ld_sysroot): Likewise.
670 (get_relative_sysroot, get_sysroot): New functions, adding command-line
671 support for changing the sysroot.
672 (main): Call the new functions.
673 * lexsup.c (OPTION_SYSROOT): New.
674 (ld_options): Add --sysroot.
675 (parse_args): Add a dummy handler for it.
676 * ld.texinfo (--sysroot): Document.
677 * NEWS: Mention the new --sysroot option.
681 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
682 (lang_place_orphans): Don't abort on just_syms_flag, instead call
687 * defilep.y (def_name, def_library): Combine into...
688 (def_image_name): New function. Strip name to basename,
693 * configure.in: Be sure to invoke config.sub using the shell.
694 * configure: Regenerate.
698 * configure.host: Correct sed patterns for last change.
703 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
704 to determine whether config.make_executable should be set to FALSE in
705 conjunction with config.fatal_warnings.
706 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
707 (einfo): Pass TRUE as the extra argument.
711 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
712 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
713 (ia64-*-aix): Delete - this target is obsolete, and would be
714 broken by this patch.
718 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
719 (sparc64-sun-solaris2*): New host.
723 * Makefie.am: Add earmelf_vxworks.
724 * Makefile.in: Regenerate.
725 * configure.tgt: Make arm-*-vxworks a separate case.
726 * emulparams/armelf_vxworks.sh: New function.
730 * emultempl/ppc64elf.em (no_multi_toc): New var.
731 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
732 (OPTION_NO_MULTI_TOC): Define.
733 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
734 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
739 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
740 Standard's specification for parsable error messages.
744 * Makefile.am: Correct dependency for earmsymbian.c.
745 * Makefile.in: Regenerate.
749 * emultempl/pe.em (set_pe_subsystem): Change second arg to
750 lang_add_entry to FALSE.
755 * emulparams/shelf.sh (.stack): Increase stack start address to
760 * ldmain.c (main): Issue an error message if -static and -shared
765 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
766 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
767 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
768 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
769 PT_GNU_RELRO segment end.
773 * configure.tgt: Add s390x-ibm-tpf support.
777 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
782 * ldemul.h: Forward declare struct option.
786 * scripttempl/pe.sc (.data): Add .jcr subsection.
790 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
794 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
795 * Makefile.in: Regenerate.
799 * emultempl/pe.em: Add --subsystem:xbox as well as
801 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
802 and numeric subsystems.
806 * ldexp.c (fold_name): Correct PR 338 fix.
810 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
811 (earmelf_linux_eabi.c): New target.
812 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
813 * emulparams/armelf_linux_eabi.sh: New file.
814 * Makefile.in: Regenerated.
819 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
820 LENGTH fields in the MEMORY command, to explicitly state that
821 symbols cannot be used in their expressions.
825 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
826 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
827 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
828 which return the length and origin of a memory.
829 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
830 * NEWS: Mention support for ORIGIN and LENGTH operators.
834 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
835 a dynamic object for stubs.
839 * ld.texinfo: Document --default-imported-symver.
840 * ldmain.c (main): Set link_info.default_imported_symver.
841 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
842 (ld_options): Add --default-imported-symver.
843 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
848 * Makefile.am: Add entries for new maxq-coff target.
849 * Makefile.in: Regenerate.
850 * configure.tgt: Add support for maxq.
851 * emulparams/maxqcoff.sh: New File.
852 * scripttempl/maxqcoff.sc: New linker script for target maxq.
853 * NEWS: Mention the new target.
857 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
858 (earmelf_oabi.c): Remove rule.
859 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
860 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
861 * Makefile.in: Regenerated.
865 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
866 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
868 (INIT_END): Remove emitted "jump [sp+]".
873 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
874 (no_opd_opt, no_toc_opt): New static vars.
875 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
877 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
878 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
879 (PARSE_AND_LIST_OPTIONS): Describe new options.
880 (PARSE_AND_LIST_ARGS_CASES): Handle them.
884 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
885 parameter to invocation of lang_section_start.
886 * emultempl/aix.em (_handle_option): Likewise.
888 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
889 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
890 * Makefile.in: Regenerate.
894 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
895 __exidx_{start,end} when not relocating.
899 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
900 * ldexp.h (segment_type): New type.
901 (segments): New variable.
902 * ldexp.c (segments): New variable.
903 (exp_print_token): Handle SEGMENT_START.
904 (fold_binary): Likewise.
905 * ldgram.y (SEGMENT_START): Declare it as a token.
906 (exp): Handle SEGMENT_START.
907 * ldlang.h (lang_address_statement_type): Add segment field.
908 (lang_section_start): Change prototype.
909 * ldlang.c (map_input_to_output_sections): Do not process section
910 assignments if a corresponding SEGMENT_START has already been
912 (lang_section_start): Add segment parameter.
913 * ldlex.l (SEGMENT_START): Add it.
914 * lexsup.c (seg_segment_start): New function.
915 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
916 * ld.texinfo (SEGMENT_START): Document it.
917 * emulparams/armsymbian.sh (EMBEDDED): Set it.
918 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
919 base addresses. Do not map relocations.
920 * NEWS: Mention SEGMENT_START.
924 * ld.texinfo: Document --default-symver.
925 * ldmain.c (main): Set link_info.create_default_symver.
926 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
927 (ld_options): Add default-symver.
928 (parse_args): Handle OPTION_DEFAULT_SYMVER.
932 * pe-dll.c (process_def_file): Don't export all symbols by default if
933 building a position-independent executable.
938 * ldmain.c (reloc_overflow): Accept a pointer to struct
939 bfd_link_hash_entry. Report symbol location for relocation
944 * genscripts.sh (libpath.exp): Really generate for first
949 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
950 comparison and replacement of filenames.
955 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
956 option on linker script as the one for linker script.
960 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
961 (check_excluded_libs): New.
962 (load_symbols): Call check_excluded_libs.
963 * ldlang.h (add_excluded_libs): New prototype.
964 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
965 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
966 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
967 * ld.texinfo (Command Line Variables): Document --exclude-libs.
968 (Options Specific to i386 PE Targets): Remove --exclude-libs.
972 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
973 failing link script assert.
975 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
980 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
981 (SMALL_DATA_DTOR): Set.
982 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
983 (SMALL_DATA_DTOR): Unset.
984 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
985 after .data. If SMALL_DATA_DTOR is set, move .dtors after
991 * ldlang.h (lang_output_section_statement_type): Make "next" a
992 struct lang_output_section_statement_struct *.
993 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
994 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
995 * ldlang.c (lang_output_section_find_1): Adjust for changed
996 output_section_statement "next".
997 (strip_excluded_output_sections): Likewise.
998 (lang_record_phdrs): Likewise.
999 (lang_output_section_find_by_flags): New function.
1000 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1001 (lang_insert_orphan): New function. Tail end of elf32.em's
1002 place_orphan merged with that from pe.em. Allow bfd_section to
1003 be placed first. New heuristic for placing new output section
1004 statement in existing script, and accompanying split of __start
1005 symbol alignment into a separate assignment to dot.
1006 (lang_add_section): Consistently use output->bfd_section rather than
1007 an alias, section->output_section.
1008 (map_input_to_output_sections): Rename overly long arg. Move
1009 initialization of data_statement output section to here..
1010 (lang_check_section_addresses): ..from here.
1011 (print_assignment): Correct printing of etree_assert.
1012 (print_all_symbols): Don't bomb if userdata is NULL.
1013 (IGNORE_SECTION): Rearrange.
1014 * emultempl/elf32.em (output_rel_find): Adjust interator.
1015 (output_prev_sec_find): Delete.
1016 (struct orphan_save): Delete.
1017 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1018 flags without creating a duplicate output section statement.
1019 Revise code holding history of various orphan section placements.
1020 Allow orphan sections to place before script specified output
1021 sections. Call lang_output_section_find_by_flags when placement
1022 by name fails. Use lang_insert_orphan.
1023 * emultempl/mmo.em (output_prev_sec_find): Delete.
1024 (struct orphan_save): Delete.
1025 (mmo_place_orphan): Revise code holding history of orphan placement.
1026 Allow orphans to place before existing output sections. Use
1028 * emultempl/pe.em (output_prev_sec_find): Delete.
1029 (struct orphan_save): Delete.
1030 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1035 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1041 * ldcref.c (check_section_sym_xref): Delete.
1042 (check_local_sym_xref): New function.
1043 (check_nocrossrefs): Adjust call.
1044 * emultempl/pe.em (struct orphan_save): Add os_tail.
1045 (place_orphan): Backport assorted fixes from elf32.em.
1049 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1053 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1054 getline for portability.
1056 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1057 (gld${EMULATION_NAME}_parse_ld_so_conf,
1058 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1059 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1064 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1065 rejected when linking statically.
1069 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1073 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1074 assembler-generated longcall sequences. Describe new --size-opt
1076 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1077 * emultempl/xtensaelf.em (remove_section,
1078 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1079 elf_xtensa_after_open): New.
1080 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1081 OPTION_NO_LITERAL_MOVEMENT): Define.
1082 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1083 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1084 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1085 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1086 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1087 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1088 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1089 * Makefile.am (eelf32xtensa.c): Update dependencies.
1090 * Makefile.in: Regenerate.
1094 * lexsup.c: Handle --warn-shared-textrel option.
1095 (ld_options): Restore alpha sorting of options.
1096 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1097 * ld.texinfo: Add documentation for --warn-shared-textrel.
1098 * NEWS: Added mention of --warn-shared-textrel option.
1102 * emultempl/crxelf.em (disable_relaxation): Add.
1103 (crxelf_before_allocation): Enable --relax option by default.
1104 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1105 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1106 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1110 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1111 --sort-section name|alignment.
1113 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1114 --sort-section name|alignment.
1116 * ld.h (sort_type): New enum.
1117 (wildcard_spec): Change the type of `sorted' to sort_type.
1119 * ldgram.y (SORT): Removed.
1120 (SORT_BY_NAME): Added.
1121 (SORT_BY_ALIGNMENT): Added.
1122 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1124 (input_section_spec_no_keep): Updated `sorted'.
1125 (statement): Replace SORT with SORT_BY_NAME.
1127 * ldlang.c (compare_section): New function to compare 2
1128 sections with different sorting schemes.
1129 (wild_sort): Updated. Use compare_section.
1130 (update_wild_statements): New function.
1131 (lang_process): Call update_wild_statements before
1132 map_input_to_output_sections.
1134 * ldlex.l (SORT_BY_NAME): New.
1135 (SORT_BY_ALIGNMENT): New.
1136 (SORT): Return SORT_BY_NAME.
1138 * ldmain.c (sort_section): New. Defined.
1139 (main): Initialize it to none.
1141 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1142 (ld_options): Add an entry for OPTION_SORT_SECTION.
1143 (parse_args): Handle OPTION_SORT_SECTION.
1145 * mri.c (mri_draw_tree): Updated `sorted'.
1149 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1150 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1152 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1153 and . as second argument.
1154 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1155 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1156 (fold_binary): Add it here. Insert padding to make relro_end
1157 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1158 exp_dataseg_relro_adjust phase just use previously computed
1160 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1161 relro_adjust here. Call lang_size_sections_1 once more if there
1162 was too big padding at DATA_SEGMENT_RELRO_END.
1163 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1167 * emulparams/armelf.sh: Add unwinding table sections.
1171 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1172 correct base address for position independant executables.
1173 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1174 executables as DLLs.
1178 * ld.texinfo: Document --target2=abs.
1179 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1183 * scripttempl/xstormy16.sc: Only perform the assignments to the
1184 ROM region when not performing a relocatable link. The ROM region
1185 does not start at address 0, but the sections will.
1186 * Makefile.am: Fix linker script dependency for the generation of
1188 * Makefile.in: Regenerate.
1192 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1193 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1194 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1196 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1197 the alignment is lower than the target page size.
1201 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1202 def_file_parse to handle pe_def_file if NULL and prevent crash with
1207 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1208 --emit-stub-syms automatically when --emit-relocs.
1212 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1213 .fini_array sections.
1217 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1218 base so that relro end is suitably aligned.
1222 * ld.texinfo: Rename arm-specific section. Document --target*
1223 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1224 * emulparams/armelf_linux.sh: Ditto.
1225 * emulparams/armelf_nbsd.sh: Ditto.
1226 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1227 (target2_type): New variable.
1228 (arm_elf_before_allocation): Don't pass target1_type.
1229 (arm_elf_create_output_section_statements): New function.
1230 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1231 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1232 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1233 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1234 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1235 argument to bfd_elf32_arm_process_before_allocation.
1239 * ldexp.c (fold_name): Update u.undef.next refs.
1240 * emultempl/pe.em: Likewise.
1241 * emultempl/sunos.em: Likewise.
1245 * Makefile.am: Run "make dep-am".
1246 * Makefile.in: Regenerate.
1247 * config.in: Regenerate.
1248 * configure: Regenerate.
1249 * aclocal.m4: Regenerate.
1250 * po/ld.pot: Regenerate.
1254 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1260 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1261 to bfd_elf32_arm_process_before_allocation call.
1265 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1266 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1270 * configure: Regenerated with autconfig 2.13.
1274 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1275 alignment before adjusting DATA_SEGMENT_RELRO_END.
1279 * emulparams/armsymbian.sh: Use armbpabi script.
1280 * scripttempl/armbpabi.sc: New script.
1284 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1285 (earmsymbian.c): New target.
1286 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1287 * Makefile.in: Regenerated.
1288 * aclocal.m4: Likewise.
1289 * configure: Likewise.
1290 * emulparams/armsymbian.sh: New file.
1294 * scripttempl/elf32crx.sc: Edit file with comments.
1295 (.init): Add new section.
1297 (.ctor): Control the linkage order.
1302 * emultempl/pe.em (after_open): Do not assume that either bfd is
1307 * ldlang.c (lang_init): Don't compare with TRUE.
1311 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1312 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1316 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1320 * configure.tgt (arm*-*-symbianelf*): New target.
1321 (arm*-*-eabi*): Likewise.
1325 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1326 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1327 (OPTION_NON_OVERLAPPING_OPD): Define.
1328 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1329 --non-overlapping-opd option.
1334 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1335 was already on the undefs list.
1339 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1340 prefix the symbol field too.
1344 * ldmain.c (link_callbacks): Remove "error_handler".
1345 * ldmisc.c: Include elf-bfd.h.
1346 (vfinfo): Sort comment. Handle %A. Use %A instead of
1347 bfd_get_section_indent.
1348 (error_handler): Delete.
1349 * ldmisc.h (error_handler): Delete declaration.
1353 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1354 ppc64_elf_restore_symbols.
1358 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1359 .toc is too large on relocatable linking.
1363 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1364 (LDEMUL_AFTER_OPEN): Don't define.
1368 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1372 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1377 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1381 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1382 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1384 * configure.tgt: Likewise.
1385 * emulparams/msp430all.sh: Likewise.
1386 * Makefile.in: Regenerate.
1390 * emultempl/elf32.em (_place_orphan): Use an already existing
1391 section name if that section does not have any flags set.
1395 * ldlang.c (already_linked_hash_entry): Removed.
1396 (already_linked): Likewise.
1397 (already_linked_table): Likewise.
1398 (section_already_linked): Call bfd_section_already_linked.
1399 (lang_process): Replace already_linked_table_init with
1400 bfd_section_already_linked_table_init and check return. Replace
1401 already_linked_table_free with bfd_section_already_linked_table_free.
1405 * ldlang.c (init_os): Make sure that the newly allocated userdata
1406 structure is zeroed out.
1410 * NEWS: Mention the new --add-needed/--no-add-needed and
1411 --as-needed/--no-as-needed options.
1415 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1416 check the add_needed field.
1417 (dt_needed): New struct.
1418 (gld${EMULATION_NAME}_try_needed): Change the first argument
1419 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1420 bit in the file where the DT_NEEDED entry comes from.
1421 (gld${EMULATION_NAME}_search_needed): Change the second
1422 argument to a pointer to struct dt_needed.
1423 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1424 (gld${EMULATION_NAME}_after_open): Likewise.
1426 * ld.texinfo: Add --add-needed document.
1427 * ldlang.c (new_afile): Set p->add_needed.
1428 * ldlang.h (lang_input_statement_type): Add add_needed field.
1429 * ldmain.h (add_needed): Declare.
1430 * ldmain.c (add_needed): New global var.
1431 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1432 OPTION_NO_ADD_NEEDED.
1433 (ld_options): Likewise.
1434 (parse_args): Handle them.
1438 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1439 for endian-ness of extracted addend.
1443 * pe-dll.c (auto_export): Filter on just the import prefix,
1444 "_imp_", not "_imp__".
1448 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1452 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1453 (eelf32crx.c): New target.
1454 * Makefile.in: Regenerate.
1455 * configure.tgt: Handle crx-*-elf*.
1456 * emulparams/elf32crx.sh: New file.
1457 * emultempl/crxelf.em: New file.
1458 * scripttempl/elf32crx.sc: New file.
1459 * NEWS: Mention new target.
1463 * Makefile.am: Add eshlsymbian.c.
1464 * Makefile.in: Regenerate.
1465 * configure.tgt: Add sh*-symbian-elf target.
1466 * emulparams/shlsymbian.sh: New file. Configure the
1467 sh-symbian-elf linker scripts.
1468 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1469 template for the sh-symbian-elf target.
1473 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1474 * emulparams/hppalinux.sh: Likewise.
1475 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1476 data segment and PLT_BEFORE_GOT is defined.
1480 * ld.texinfo (WIN32): Document PE weak symbols.
1484 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1488 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1493 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1498 * ldlang.c (print_output_section_statement): Don't print size before
1500 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1502 * ldexp.c (fold_name): .. See below.
1503 * ldlang.c (section_already_linked, print_output_section_statement,
1504 print_input_section, insert_pad, size_input_section,
1505 lang_check_section_addresses, lang_size_sections_1,
1506 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1507 lang_one_common, lang_reset_memory_regions, lang_process,
1508 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1509 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1510 * pe-dll.c (process_def_file, generate_reloc): ..
1511 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1512 gld${EMULATION_NAME}_before_allocation): ..
1513 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1514 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1515 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1516 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1517 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1518 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1519 "size" instead of "_raw_size" and "_cooked_size". Expand
1520 bfd_section_size macro invocations.
1524 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1525 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1526 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1528 (.tls): Define ___tls_start__ and ___tls_end__.
1532 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1536 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1537 * configure: Regenerate.
1541 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1542 .gcc_except_table output sections lost accidentally with
1547 * ldwrite.c (build_link_order): Use bfd_get_section_size
1548 instead of bfd_get_section_size_before_reloc or _raw_size.
1549 * pe-dll.c (process_def_file): Likewise.
1554 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1558 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1559 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1563 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1565 * lexsup.c: Formatting. Wrap long lines.
1566 * ldwrite.c: Update copyright date.
1568 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1569 (output_section_callback): Nor SEC_KEEP here.
1570 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1571 (lang_gc_wild): Delete. Fold into..
1572 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1574 (lang_process): Always call lang_gc_sections.
1575 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1576 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1581 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1582 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1583 * ldlang.c (lang_add_section): Likewise.
1587 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1588 sections when doing a final link. Clear SEC_EXCLUDE when doing
1589 a relocable link, except for SEC_DEBUGGING sections.
1590 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1591 same condition here to drop SEC_EXCLUDE orphan sections.
1595 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1596 only when not a relocatable link.
1597 (print_input_section): Handle SEC_EXCLUDE sections.
1598 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1599 (lang_do_assignments_1): Likewise.
1600 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1601 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1602 * emultempl/hppaelf.em (build_section_lists): Likewise.
1603 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1604 (build_section_lists): Likewise.
1608 * ld.texinfo (Options): Fix typo in last change.
1612 * ld.h (ld_config_type): Add new field: hash_table_size.
1613 * ldmain.c: Initialise the new field to zero. If it is non-zero
1614 after parsing the linker's command line call
1615 bfd_hash_set_default_size.
1616 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1617 (ld_options): Add hash-size.
1618 (parse_args): Parse --hash-size option. Allow
1619 --reduce-memory-overheads to set the default hash table size as
1621 * ld.texinfo: Document the new switch. Also mention that
1622 --reduce-memory-overheads can affect the hash table size.
1623 * NEWS: Mention the new feature.
1627 * NEWS: Mention new linker map file generation and the
1628 --reduce-memory-overheads option.
1629 * ld.texinfo: Document --reduce-memory-overheads option.
1630 * ld.h (map_symbol_def): New struct.
1631 (struct user_section_struct, section_userdata_type): Rename to:
1632 (struct lean_user_section_struct, lean_section_userdata_type).
1633 (struct fat_user_section_struct, fat_section_userdata_type): New.
1634 (SECTION_USERDATA_SIZE): Define.
1635 (args_type): New member reduce_memory_overheads.
1636 * ldlang.c (map_obstack): New static variable.
1637 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1638 (lang_map): Unless command_line.reduce_memory_overheads is set,
1639 initialize lists of defined symbols for each section.
1640 (print_input_section): Unless command_line.reduce_memory_overheads
1641 is set, use print_all_symbols.
1642 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1643 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1644 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1645 (ld_options): Add entry for --reduce-memory-overheads.
1646 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1650 * ldgram.y (sect_constraint): New.
1651 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1652 (section): Add sect_constraint. Pass additional argument
1653 to lang_enter_output_section_statement.
1654 * mri.c (mri_draw_tree): Pass additional argument to
1655 lang_enter_output_section_statement.
1656 * emultempl/pe.em (place_orphan): Likewise.
1657 (output_prev_sec_find): Disregard output section statements with
1659 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1660 (mmo_place_orphan): Pass additional argument to
1661 lang_enter_output_section_statement.
1662 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1663 statements with constraint == -1.
1664 (place_orphan): Pass additional argument to
1665 lang_enter_output_section_statement.
1666 * ldlang.c (lang_enter_overlay_section): Likewise.
1667 (lang_output_section_find_1): New.
1668 (lang_output_section_find): Use it.
1669 (lang_output_section_statement_lookup_1): New.
1670 (lang_output_section_statement_lookup): Use it.
1671 (check_section_callback, check_input_sections): New.
1672 (map_input_to_output_sections): Check if all input sections
1673 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1674 (strip_excluded_output_sections): Disregard output section statements
1675 with constraint == -1.
1676 (lang_record_phdrs): Likewise.
1677 (lang_enter_output_section_statement): Add constraint argument.
1678 Use lang_output_section_statement_lookup_1.
1679 * ldlang.h (lang_output_section_statement_type): Add constraint
1680 and all_input_readonly fields.
1681 (lang_enter_output_section_statement): Adjust prototype.
1682 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1683 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1684 segment if all input sections are readonly.
1688 * scripttempl/i386lynx.sc: Remove file.
1692 * ld.texinfo (Output Section Address): Correct subsection name.
1696 * configure.tgt (powerpc-*-lynxos* case): New case.
1697 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1698 * emulparams/ppclynx.sh: New file.
1699 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1700 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1701 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1702 (eppclynx.c): New rule.
1703 * Makefile.in: Regenerate.
1707 * configure.tgt (or32-*-rtems*): Switch to elf and
1708 support versioned targets.
1712 * po/fr.po: Updated French translation.
1716 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1717 for binaries, -shared and -pie.
1718 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1719 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1720 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1721 (OTHER_RELRO_SECTIONS): ... this.
1722 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1723 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1724 -z relro and -z norelro.
1725 (gld${EMULATION_NAME}_list_options): Add it to usage.
1726 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1727 -z relro scripts when appropriate.
1728 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1729 Create separate .got.plt section if SEPARATE_GOTPLT.
1730 Move sections which are only written during relocation handling
1731 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1732 before .data. Add DATA_SEGMENT_RELRO_END directive.
1733 Include OTHER_RELRO_SECTIONS.
1734 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1735 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1736 (fold_unary): Likewise.
1737 (fold_binary): Handle -z relro.
1738 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1739 exp_dataseg_relro_adjust phases. Add relro_end field.
1740 * ldmain.c (main): Initialize link_info.relro to FALSE.
1741 * ldlang.c (lang_size_sections): Handle -z relro.
1745 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1749 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1750 before printing it with %W.
1755 * emultempl/pe.em (real_flags): New static.
1756 (OPTION_LARGE_ADDRESS_AWARE): New define.
1757 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1758 (gld_${EMULATION_NAME}_list_options): Likewise.
1759 (gld${EMULATION_NAME}_handle_option): Likewise.
1760 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1761 * ld.texinfo: Document it.
1766 * NEWS: Mention DWARF 2 support for i386pe.
1770 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1775 * ldlang.c (unique_section_p): Pass section parm, return true on
1777 (output_section_callback): Adjust.
1778 * ldlang.h (unique_section_p): Update prototype.
1779 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1783 * ld.texinfo (--gc-sections): Remove restriction for
1788 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1789 for DWARF 2/3. Update stab section's syntax.
1793 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1794 (fill_edata): Correct pointer arithmetic.
1798 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1799 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1800 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1801 (EXTRA_EM_FILE): Use mipsecoff.em
1802 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1803 (EXTRA_EM_FILE): Use mipsecoff.em
1804 * emultempl/mipsecoff.em: Restructure to be included as an
1805 extra emulation file.
1806 (check_sections, gld${EMULATION_NAME}_after_open)
1807 (gld${EMULATION_NAME}_after_allocation)
1808 (gld${EMULATION_NAME}_get_script)
1809 (ld_${EMULATION_NAME}_emulation): Remove
1810 (gld${EMULATION_NAME}_before_parse): Rename to...
1811 (mipsecoff_before_parse): This.
1812 (LDEMUL_BEFORE_PARSE): Define.
1813 * emultempl/mipself.em: Remove file.
1814 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1815 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1817 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1818 * Makefile.in: Regenerate.
1822 * ld.texinfo (synthesizing on H8/300): Information about linker
1823 relaxation support for bit manipulation instructions and system
1824 control instructions is added.
1828 * NEWS: Mention change in DEFINED semantics.
1832 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1833 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1834 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1838 * ld.texinfo (Simple Example): Add missing punctuation.
1842 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1846 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1851 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1852 with default priority. Likewise for dtors.
1856 * configure.host: Remove mips*-dec-bsd* target.
1857 * configure.tgt: Likewise.
1861 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1862 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1863 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1864 * emultempl/irix.em: New file.
1865 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1867 * Makefile.in: Regenerate.
1871 * emultempl/armelf.em (byteswap_code): Add.
1872 (arm_elf_before_allocation): Pass extra parameter.
1873 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1874 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1875 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1876 * emultempl/armelf_oabi.em: Pass extra parameter.
1877 * ld.texinfo: Document --be8.
1881 Remove long-obsolete MPW support.
1882 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1883 * Makefile.am (mpw): Remove file-presynthesizing actions.
1884 * Makefile.in: Likewise.
1885 * ldfile.c (slash): Remove MPW case.
1886 * ldlex.l [MPW]: Remove unused definition.
1890 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1891 (eelf32cr16c.c): New target.
1892 * Makefile.in: Regenerate.
1893 * configure.tgt: Handle cr16c-*-elf*.
1894 * emulparams/elf32cr16c.sh: New file.
1895 * scripttempl/elfcr16c.sc: Likewise
1896 * NEWS: Mention support for new target.
1900 * po/sv.po: Updated Swedish translation.
1904 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1905 * emultempl/hppaelf.em: Likewise.
1906 * emultempl/ppc64elf.em: Likewise.
1907 * emultempl/sh64elf.em: Likewise.
1911 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1912 size_dynamic_sections call.
1917 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1918 link_info.wrap_char.
1922 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1923 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1927 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1931 * config.in: Regenerate.
1932 * po/ld.pot: Regenerate.
1936 * ld.texinfo: Add --as-needed doco.
1937 * ldmain.c (as_needed): New global var.
1938 * ldmain.h (as_needed): Declare.
1939 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1940 OPTION_NO_AS_NEEDED.
1941 (ld_options): Likewise.
1942 (parse_args): Handle them.
1943 * ldlang.h (lang_input_statement_type): Add as_needed field.
1944 * ldlang.c (new_afile): Set p->as_needed.
1945 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1946 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1947 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1949 * ldlang.c (open_input_bfds): Remove useless cast.
1950 (lang_do_assignments_1): Likewise.
1951 (lang_for_each_input_section): Delete.
1955 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1959 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1960 private when building implib.
1964 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1966 (IGNORE_SECTION): Ignore .tbss sections too.
1967 (lang_size_sections_1): .tbss sections do not advance dot.
1971 * ld.texinfo (Options): Fix example for --wrap.
1975 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1980 * ldlang.c (lang_check): Use %P, not %E, in error message.
1984 * ldlang.h (struct lang_output_section_state): Change processed
1986 * ldexp.c (check, invalid): Remove.
1987 (fold_name): Move valid_p assignments. Create undefined symbol
1988 when needed. Directly exampine section's processd flag.
1989 * ldlang.c (lang_output_section_statement_lookup): Adjust
1990 processed field init.
1991 (lang_size_sections_1): Allow LOADADDR when determining section's
1992 VMA. Adjust error message. Fold data statement's expr.
1993 (lang_size_sections): Correctly increment lang_statement_iteration.
1997 * ldexp.c (fold_tree): Follow indirect symbols.
2001 * ldgram.y (exp): Add two operand ALIGN.
2002 * ldexp.c (fold_binary): Add ALIGN_K case.
2003 * ld.texinfo (ALIGN): Document two operand version.
2007 * ldlang.c (map_input_to_output_sections): Initialize sections
2008 mentioned in a data statement expression.
2009 (lang_do_assignments_1): Add data statement's expression's
2014 * ldgram.y (statement_anywhere): Add assert rule.
2015 * ldlang.c (exp_init_os): Add assert case.
2019 * ldmain.c (remove_output): Call bfd_cache_close.
2023 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2024 .MIPS.content* and .MIPS.events* sections.
2028 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2029 .note.gnu.arm.ident to after allocated sections. Mark its
2034 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2035 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2036 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2037 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2038 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2042 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2046 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2050 * genscripts.sh: Fix typo.
2052 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2056 * emulparams/elf64_ia64.sh: Put .rela.opd into
2057 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2061 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2062 * ld.texinfo (--omagic): Note that writable text section
2063 does not conform to published PE-COFF specs.
2064 (--enable-auto-import): Likewise.
2068 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2072 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2073 which if true will prevent the LMA region being used as a
2074 replacement for a default VMA region.
2075 (lang_leave_output_section_statement): Pass extra parameter.
2076 (lang_leave_overlay): Likewise.
2077 * ld.texinfo (Output Section LMA): Document that the LMA
2078 region can be set to the VMA region if no VMA has been set.
2079 * ldlang.h (struct lang_output_section_phdr_list): Create a
2080 typedef for this type. Minor formatting fixes.
2084 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2085 assume that the section should be allocated.
2089 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2090 sections. Do ignore SEC_NEVER_LOAD sections.
2091 (lang_size_sections_1): Remove test made redundant with the above.
2095 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2096 program_header_size.
2101 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2103 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2104 (MAXPAGESIZE): Set to 64Kb.
2105 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2106 __ROFIXUP_END__. Don't map .rofixup.got any more.
2107 * emulparams/elf32frv.sh (NOP): Set.
2109 * configure.tgt: Add frv-*-*linux*.
2111 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2112 (eelf32frvfd.c): New.
2113 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2114 * emulparams/elf32frv.sh: Reverted previous two patches.
2115 * emulparams/elf32frvfd.sh: New.
2116 * Makefile.in: Rebuilt.
2118 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2119 .rofixup.got to .rofixup.
2121 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2122 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2126 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2127 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2131 * ldexp.c (align_n): Make static.
2132 * ldexp.h (align_n): Delete declaration.
2133 * ldlang.h (lang_enter_output_section_statement): Remove
2135 * ldlang.c (lang_enter_output_section_statement): Likewise.
2136 (TO_ADDR, TO_SIZE): Define.
2137 (opb_shift): New var.
2138 (init_opb): New function.
2139 (print_input_section): Call init_opb and use TO_ADDR.
2140 (print_data_statement, print_reloc_statement): Likewise.
2141 (print_padding_statement): Likewise.
2142 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2143 (lang_check_section_addresses): Likewise.
2144 (lang_size_sections_1): Likewise.
2145 (lang_do_assignments_1): Likewise.
2146 (lang_set_startof): Likewise.
2147 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2148 (lang_process): Call init_opb.
2149 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2150 (lang_enter_overlay_section): Adjust
2151 lang_enter_output_section_statement call.
2152 * ldgram.y: Likewise.
2153 * mri.c (mri_draw_tree): Likewise.
2154 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2155 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2156 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2158 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2159 * ldfile.h (ldfile_set_output_arch): Ditto.
2160 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2161 ldfile_set_output_arch.
2162 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2163 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2164 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2165 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2166 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2167 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2168 * ldgram.y: Adjust ldfile_set_output_arch call.
2169 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2170 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2171 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2172 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2173 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2174 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2175 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2179 * configure.tgt: Add m68k-uClinux target.
2181 For older changes see ChangeLog-0203
2187 version-control: never