1 2011-08-06 Kai Tietz <ktietz@redhat.com>
3 * scripttempl/pep.sc: Add .debug_macro section.
4 * scripttempl/pe.sc: Likewise.
6 2011-08-05 Alan Modra <amodra@gmail.com>
9 * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
10 table if already seen.
12 2011-08-04 H.J. Lu <hongjiu.lu@intel.com>
14 * ldmain.c (main): Replace remove_output with ld_cleanup in
17 2011-07-26 Alan Modra <amodra@gmail.com>
19 * emulparams/elf32ppc.sh: Source plt_unwind.sh.
20 * emulparams/elf64ppc.sh: Likewise.
21 * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
22 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
23 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
25 * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
26 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
27 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
30 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
32 * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
35 (eelf_k1om_fbsd.c): Likewise.
36 * Makefile.in: Regenerated.
38 * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
39 is supported. Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
40 (targ_extra_emuls): Likewise.
42 * emulparams/elf_k1om.sh: New.
43 * emulparams/elf_k1om_fbsd.sh: Likewise.
45 2011-07-16 Roland McGrath <roland@hack.frob.com>
47 * ld.h (args_type): New field print_output_format.
48 * lexsup.c (enum option_values, ld_options, parse_args):
49 Handle --print-output-format.
50 * ldmain.c (main): Implement --print-output-format.
51 * ld.texinfo (Options): Document it.
53 * ldlang.c (lang_get_output_target): Don't return current_target
56 2011-07-15 Alan Modra <amodra@gmail.com>
58 * Makefile.am (e*.c): Sort.
59 * Makefile.in: Regenerate.
61 2011-07-14 Alan Modra <amodra@gmail.com>
63 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
64 gld${EMULATION_NAME}_list_options): Don't condition -z relro
65 and -z norelro on COMMONPAGESIZE being defined.
67 2011-07-14 Alan Modra <amodra@gmail.com>
69 * emultempl/ppc64elf.em (plt_static_chain): New var.
70 (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
71 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
72 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
73 --plt-static-chain and --no-plt-static-chain.
75 2011-07-14 Alan Modra <amodra@gmail.com>
77 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
78 gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
79 Provide --build-id, -z defs, -z muldefs, -z max-page-size,
80 -z common-page-size, -z execstack, -z noexecstack for all targets.
81 Add help for --exclude-libs.
82 (OPTION_LD_GENERATED_UNWIND_INFO,
83 OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
84 (gld${EMULATION_NAME}_handle_option): ..and code handling
85 --ld-generated-unwind-info and --no-ld-generated-unwind-info..
86 * emulparams/plt_unwind.sh: ..to here. New file. Add help.
87 * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
88 * emulparams/elf_i386.sh: Likewise.
89 * emulparams/elf_i386_chaos.sh: Likewise.
90 * emulparams/elf_i386_ldso.sh: Likewise.
91 * emulparams/elf_l1om.sh: Likewise.
92 * emulparams/elf_x86_64.sh: Likewise.
94 2011-07-11 Catherine Moore <clm@codesourcery.com>
96 * ld.h (section_flag_list): Add field to struct wildcard_spec.
97 * ld.texinfo (INPUT_SECTION_FLAGS): Document.
98 * ldgram.y (flag_info_list, flag_info): Add to union.
99 (INPUT_SECTION_FLAGS): New token.
100 (wildcard_spec): Initialize section_flag_list to NULL for
102 (sect_flag_list, sect_flags): New rules.
103 (input_section_spec_no_keep): Add alternatives to recognize
105 * ldlang.c (walk_wild_consider_section): Initialize
106 section_flag_info field of the section struct.
107 (lang_add_section): Check input section flags.
108 (lang_add_wild): Initialize section_flag_list field of
109 the statement struct.
110 * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
111 (lang_wild_statement_struct): Likewise.
112 * ldlex.l (INPUT_SECTION_FLAGS): New token.
113 * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
114 * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
116 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
119 * ldlang.c (section_already_linked): Pass "struct already_linked *"
120 to bfd_section_already_linked.
121 (lang_process): Set link_info.loading_lto_outputs before
123 * plugin.c: Include "libbfd.h".
124 (add_symbols): Call bfd_section_already_linked with comdat_key.
126 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
128 * configure.tgt: Revert x32 change.
130 2011-06-20 Jakub Jelinek <jakub@redhat.com>
133 * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
134 OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
135 (gld${EMULATION_NAME}_handle_option): Handle
136 --ld-generated-unwind-info and --no-ld-generated-unwind-info.
137 * ld.texinfo (--ld-generated-unwind-info,
138 --no-ld-generated-unwind-info): Document.
140 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
142 * configure.tgt: Support x32.
144 2011-06-15 Nick Clifton <nickc@redhat.com>
146 * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
148 2011-06-13 Walter Lee <walt@tilera.com>
150 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
152 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
153 (eelf32tilegx.c): New target.
154 (eelf32tilepro.c): Likewise.
155 (eelf64tilegx.c): Likewise.
156 * Makefile.in: Regenerate.
157 * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
158 * emulparams/elf32tilegx.sh: New file.
159 * emulparams/elf64tilegx.sh: New file.
160 * emulparams/elf32tilepro.sh: New file.
162 2011-06-13 Alan Modra <amodra@gmail.com>
164 * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
165 warning symbols here.
166 * emultempl/pe.em (pr_sym): Remove redundant test.
167 * emultempl/pep.em (pr_sym): Likewise.
169 2011-06-09 Nick Clifton <nickc@redhat.com>
172 * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
173 for sections that have been removed by garbage collection.
175 2011-06-08 Alan Modra <amodra@gmail.com>
177 * ldlang.c (lang_one_common): Handle warning symbols.
179 2011-06-07 Nick Clifton <nickc@redhat.com>
181 * configure.tgt: Accept any V850 architecture.
183 2011-06-03 Nick Clifton <nickc@redhat.com>
185 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
186 Add rule to build eelf32am33lin.c
187 * Makefile.in: Regenerate.
189 2011-06-02 Nick Clifton <nickc@redhat.com>
191 * lexsup.c: Fix spelling mistake in comment.
192 * scripttempl/epocpe.sc: Likewise.
193 * scripttempl/i386beos.sc: Likewise.
194 * scripttempl/mcorepe.sc: Likewise.
195 * scripttempl/pe.sc: Likewise.
196 * scripttempl/pep.sc: Likewise.
197 * po/ld.pot: Regenerate.
199 2011-05-27 Nick Clifton <nickc@redhat.com>
201 * scripttempl/v850.sc (_heap_start): Provide.
203 2011-05-23 Alan Modra <amodra@gmail.com>
205 * ldmisc.c (vfinfo): Add %H.
206 * ldmain.c (reloc_overflow): Use %H rather than %C.
207 (reloc_dangerous, unattached_reloc): Likewise.
209 2011-05-23 Alan Modra <amodra@gmail.com>
212 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
213 like sections to existing .sdata2, and similarly for orphan TLS
215 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
217 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
220 * emultempl/rxelf.em (ignore_lma): New variable.
221 (rx_elf_create_output_section_statements): Pass the setiing of
222 ignore_lma to bfd_elf32_rx_set_target_flags.
223 (OPTION_IGNORE_LMA): Define.
224 (OPTION_NO_IGNORE_LMA): Define.
225 (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
226 (PARSE_AND_LIST_OPTIONS): Add ignore lma.
227 (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
229 2011-05-17 Alan Modra <amodra@gmail.com>
232 * ldmain.c (notice): Add "flags" and "string" param.
233 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
234 and constructor syms.
236 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
238 * ldlang.c (print_assignment): Use the symbol's section if we
240 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
241 comment on copying symbol type.
243 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
246 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
249 2011-05-16 Alan Modra <amodra@gmail.com>
251 * ldlang.c (lang_leave_output_section_statement): Don't copy
252 previous lma_region if given address.
254 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
256 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
257 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
258 * Makefile.am (ALL_EMULATIONS): Add these files.
259 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
260 * Makefile.in: Regenerated.
261 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
263 * emulparams/elf32_tic6x_elf_be.sh: New file.
264 * emulparams/elf32_tic6x_elf_le.sh: New file.
265 * emulparams/elf32_tic6x_linux_be.sh: New file.
266 * emulparams/elf32_tic6x_linux_le.sh: New file.
267 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
268 (tic6x-*-*): Replaced by these.
270 2011-05-13 Jan Beulich <jbeulich@novell.com>
272 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
274 2011-05-09 Paul Brook <paul@codesourcery.com>
276 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
277 (compare_output_sec_vma): New function.
278 (gld${EMULATION_NAME}_after_allocation): New function.
279 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
280 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
281 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
282 (LDEMUL_AFTER_ALLOCATION): Set.
283 * ld.texinfo: Document c6x --no-merge-exidx-entries.
285 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
288 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
289 (__rt_psrelocs_end): Likewise.
290 (__rt_psrelocs_size): Likewise difference between the above.
291 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
292 immediately after end of pseudo-reloc data.
293 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
294 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
295 calculate backward from list end.
296 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
297 * scripttempl/pep.sc: Likewise.
299 2011-05-06 Tristan Gingold <gingold@adacore.com>
301 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
303 2011-05-04 Tristan Gingold <gingold@adacore.com>
305 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
306 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
307 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
308 (gld${EMULATION_NAME}_add_options): New function.
309 (gld${EMULATION_NAME}_list_options): Ditto.
310 (gld${EMULATION_NAME}_handle_option): Ditto.
311 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
312 (LDEMUL_LIST_OPTIONS): Define.
314 2011-05-04 Alan Modra <amodra@gmail.com>
317 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
318 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
319 assign to dot when lang_assigning_phase_enum.
320 * ldlang.h (lang_do_assignments): Update prototype.
321 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
323 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
324 lang_do_assignments calls.
326 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
329 * emultempl/pe.em (_after_open): Correctly check whether symbol is
332 2011-04-26 Kai Tietz <ktietz@redhat.com>
334 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
335 * scripttempl/pep.sc: Likewise.
337 2011-04-24 Alan Modra <amodra@gmail.com>
341 * ldmain.c (notice): Delete "name" param, add "h".
342 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
343 redefinitions of IR symbols in real BFDs.
344 (plugin_multiple_definition, plugin_multiple_common): Delete.
345 (non_ironly_hash, init_non_ironly_hash): Delete.
346 (is_visible_from_outside): Traverse entry_symbol chain.
347 (get_symbols): Use non_ir_ref flag rather than hash lookup.
349 2011-04-21 Tristan Gingold <gingold@adacore.com>
351 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
353 2011-04-20 Tristan Gingold <gingold@adacore.com>
355 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
357 2011-04-20 Alan Modra <amodra@gmail.com>
359 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
361 2011-04-20 Alan Modra <amodra@gmail.com>
364 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
366 * ldmain.c (add_archive_element): ..and similar code here..
367 * plugin.c (plugin_maybe_claim): ..to here. New function.
368 (plugin_call_claim_file): Make static.
369 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
370 (plugin_multiple_common): New function.
371 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
372 * plugin.h (plugin_call_claim_file): Don't declare.
373 (plugin_maybe_claim): Declare.
375 2011-04-20 Alan Modra <amodra@gmail.com>
378 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
379 pointer arg rather than "name", "obfd", "osec", "oval". Add code
380 removed from linker.c. Hack around xcofflink.c oddity in
382 (multiple_common): Similarly.
383 * plugin.c (orig_allow_multiple_defs): Delete.
384 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
385 (plugin_multiple_definition): Update.
387 2011-04-18 Kai Tietz <ktietz@redhat.com>
389 * deffilep.y (def_aligncomm): Avoid duplets.
391 * deffilep.y (def_pool_str): New type.
392 (pool_strs): Local static.
393 (def_pool_alloc): Local function.
394 (def_pool_strdup): Likewise.
395 (def_pool_free): Likewise.
396 (opt_name): Replace xmalloc/xstrdup by
397 def_pool_alloc/def_pool_strdup.
398 (dot_name): Likewise.
399 (anylang_id): Likewise.
401 (def_file_parse): Call def_pool_free on
402 exit and cleanup directives elements.
403 (def_file_add_directive): Call def_pool_free.
405 2011-04-18 Paul Brook <paul@codesourcery.com>
407 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
408 for unwinding tables.
410 2011-04-18 Alan Modra <amodra@gmail.com>
414 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
415 when no_more_claiming.
416 * ldmain.c (add_archive_element): Likewise.
417 (multiple_definition): Remove plugin_multiple_definition call.
418 (notice): Remove plugin_notice call.
419 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
421 (plugin_insert): New static var.
422 (open_input_bfds): Only rescan libs after plugin insert point.
423 (lang_gc_sections): Omit plugin claimed files.
424 (lang_process): Set plugin_insert. Only rescan when plugin adds
426 * plugin.h (no_more_claiming): Declare.
427 (plugin_notice, plugin_multiple_definition): Don't declare.
428 * plugin.c: Formatting.
429 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
430 plugin_callbacks): New static vars.
431 (no_more_claiming): Make global.
432 (plugin_cached_allow_multiple_defs): Delete.
433 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
434 use newer bfd_make_section variant. Make COMMON section too.
435 Error handling. Correct setting of gp size.
436 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
437 (message): Likewise for ACONCAT.
438 (asymbol_from_plugin_symbol): Use our COMMON section.
439 (get_symbols): When report_plugin_symbols, show visibility too.
440 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
441 (plugin_load_plugins): Save state of linker callbacks, set up to
442 call plugin_notice instead. Call init_non_ironly_hash here.
443 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
445 (plugin_notice): Rewrite.
446 (plugin_multiple_definition): Make static, call original callback.
448 2011-04-15 Alan Modra <amodra@gmail.com>
451 * ldlang.c (enum open_bfd_mode): New.
452 (open_input_bfds): Replace "force" param with "mode". Reload
453 archives for rescan. Update all callers.
454 (lang_process): Make another open_input_bfds pass for plugins.
456 2011-04-13 Kai Tietz <ktietz@redhat.com>
459 * deffile.h (def_file_add_export): Add is_dup argument.
460 (def_file_add_import): Likewise.
461 * deffilep.y (are_names_equal): New helper.
462 (cmp_export_elem): New helper.
463 (find_export_in_list): Add search routine for exports.
464 (def_file_add_export): Check for duplicates.
465 (cmp_import_elem): New helper.
466 (find_import_in_list): Add search routine for imports.
467 (def_file_add_import): Check for duplicates.
468 (def_exports): Handle duplicates.
469 (def_imports): Likewise.
470 * pe-dll.c (process_def_file_and_drectve): Likewise.
471 (pe_implied_import_dll): Likewise.
473 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
475 * scripttempl/elf.sc (.exception_ranges): Add new section.
477 2011-04-08 Hector Oron <hector.oron@gmail.com>
480 * configure.tgt: Add support for arm-*-gnueabihf targets.
482 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
484 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
486 2011-04-07 Joseph Myers <joseph@codesourcery.com>
488 * configure.tgt: Remove stray ;;.
490 2011-04-06 Joseph Myers <joseph@codesourcery.com>
492 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
493 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
494 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
495 xscale-*-coff, xscale-*-elf): Remove targets.
497 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
499 * configure.tgt: Add elf_l1om to targ_extra_libpath for
502 * emulparams/elf_l1om.sh: Remove duplicates.
504 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
506 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
507 GENERATE_SHLIB_SCRIPT): New defines.
508 (TEXT_START_ADDR): Define differently depending on target.
509 (.got): Redefine to include "*(.dsbt)".
510 (SDATA_START_SYMBOLS): Remove, replace with
511 (OTHER_GOT_SYMBOLS): New.
512 (OTHER_BSS_SECTIONS): Define only for ELF targets.
513 * emultempl/tic6xdsbt.em: New file.
514 * gen-doc.texi: Set C6X.
515 * ld.texinfo: Likewise.
516 (Options specific to C6X uClinux targets): New section.
518 2011-03-29 Alan Modra <amodra@gmail.com>
521 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
523 2011-03-26 John Marino <binutils@marino.st>
525 * configure.host: Update *-*-dragonfly* host entry.
526 * configure.tgt: Update *-*-dragonfly* target entry.
527 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
529 2011-03-28 Joseph Myers <joseph@codesourcery.com>
531 * configure.in: Check for windows.h, not Windows.h.
532 * configure: Regenerate.
533 * plugin.c: Include windows.h, not Windows.h.
535 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
537 * Makefile.in: Regenerate.
539 2011-03-23 Joseph Myers <joseph@codesourcery.com>
541 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
542 are enabled. Mark level as possibly unused.
544 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
546 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
547 (eavrxmega?.c): Likewise.
548 * configure.tgt (targ_extra_emuls): Likewise.
549 * emulparams/avrxmega1.sh: New file.
550 * emulparams/avrxmega2.sh: Likewise.
551 * emulparams/avrxmega3.sh: Likewise.
552 * emulparams/avrxmega4.sh: Likewise.
553 * emulparams/avrxmega5.sh: Likewise.
554 * emulparams/avrxmega6.sh: Likewise.
555 * emulparams/avrxmega7.sh: Likewise.
556 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
557 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
559 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
561 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
563 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
565 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
568 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
570 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
571 instead of dynamic_sections_created.
573 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
575 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
577 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
579 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
581 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
583 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
584 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
585 * ldmain.c (add_archive_element): Set it if the member is claimed.
586 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
587 (find_replacements_insert_point): New helper function.
588 (lang_process): After adding and opening replacement files passed
589 from plugin, splice them into correct place in statement list and
590 file chains to preserve critical link order.
591 (lang_list_insert_after): New helper function.
592 (lang_list_remove_tail): Likewise.
594 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
596 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
597 (IRONLY_SUFFIX_LEN): Delete.
598 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
599 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
600 enclosing lang input statement instead.
602 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
604 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
605 alignment of input sections when creating orphan output sections
606 during relocatable link.
607 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
609 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
611 * ld.texinfo: Document --verbose[=NUMBER].
613 * lexsup.c (ld_options): Update --verbose.
614 (parse_args): Set report_plugin_symbols.
616 * plugin.c (report_plugin_symbols): New.
617 (get_symbols): Report plugin symbols if report_plugin_symbols
620 * plugin.h (report_plugin_symbols): New.
622 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
625 * testplug.c: Don't include "filenames.h".
626 (onclaim_file): Don't use filename_cmp.
628 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
630 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
631 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
633 (gld${EMULATION_NAME}_stat_needed): Likewise.
634 (gld${EMULATION_NAME}_check_needed): Likewise.
635 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
636 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
637 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
638 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
639 * ldfile.c (ldfile_open_file): Likewise.
640 * ldlang.c (wild_sort): Likewise.
641 (lookup_name): Likewise.
642 (check_excluded_libs): Likewise.
643 * ldmisc.c (vfinfo): Likewise.
644 * pe-dll.c (libnamencmp): Likewise.
645 (auto_export): Likewise.
646 (pe_dll_generate_implib): Likewise.
647 * testplug.c (onclaim_file): Likewise.
649 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
652 * plugin.c (get_symbols): Don't check entry symbol here.
653 (init_non_ironly_hash): Add entry_symbol chain into
656 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
659 * plugin.c (get_symbols): Don't mark entry symbol IR only.
661 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
664 emulparams/hppalinux.sh (DATA_ADDR): Define.
665 (SHLIB_DATA_ADDR): Likewise.
667 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
669 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
672 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
674 * pe-dll.c (process_def_file_and_drectve): Don't strip
675 leading underscore from symbol by calling bfd_find_version_for_sym.
677 2011-02-14 Mike Frysinger <vapier@gentoo.org>
679 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
680 the bfd_demangle of sym, change users of sym to c_sym when not
681 already demangling, and free when done. Change callers of
682 cplus_demangle to bfd_demangle.
684 2011-02-14 Alan Modra <amodra@gmail.com>
686 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
687 .text section, use newer bfd_make_section variant. Error handling.
688 Correct setting of gp size.
689 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
690 (message): Likewise for ACONCAT.
691 (get_symbols): Formatting.
693 2011-02-14 Alan Modra <amodra@gmail.com>
695 * ldmain.c (remove_output): Rename to..
696 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
698 * plugin.c (plugin_call_cleanup): Make global.
699 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
700 * plugin.h (plugin_call_cleanup): Declare.
702 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
704 * configure: Regenerate.
706 2011-02-10 Alan Modra <amodra@gmail.com>
708 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
709 * scripttempl/avr.sc: Likewise.
710 * scripttempl/elf32cr16.sc: Likewise.
711 * scripttempl/elf32crx.sc: Likewise.
712 * scripttempl/elf32msp430.sc: Likewise.
713 * scripttempl/elf32msp430_3.sc: Likewise.
714 * scripttempl/elf32sh-symbian.sc: Likewise.
715 * scripttempl/elf64hppa.sc: Likewise.
716 * scripttempl/elf_chaos.sc: Likewise.
717 * scripttempl/elfd10v.sc: Likewise.
718 * scripttempl/elfd30v.sc: Likewise.
719 * scripttempl/elfi370.sc: Likewise.
720 * scripttempl/elfm68hc11.sc: Likewise.
721 * scripttempl/elfm68hc12.sc: Likewise.
722 * scripttempl/elfxtensa.sc: Likewise.
723 * scripttempl/ip2k.sc: Likewise.
724 * scripttempl/iq2000.sc: Likewise.
725 * scripttempl/mep.sc: Likewise.
726 * scripttempl/mmo.sc: Likewise.
727 * scripttempl/v850.sc: Likewise.
728 * scripttempl/xstormy16.sc: Likewise.
729 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
731 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
733 * Makefile.am (CXX): Removed.
735 * configure.in: Add AC_PROG_CXX.
737 * Makefile.in: Regenerated.
738 * configure: Likewise.
740 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
742 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
743 private data and GP size.
745 2011-01-21 Alan Modra <amodra@gmail.com>
747 * ldexp.c (fold_binary): Set result section for arithmetic and
748 logical operations to NULL when both operands are in same section.
749 * ld.texinfo (Expression Section): Describe this.
751 2011-01-14 Alan Modra <amodra@gmail.com>
753 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
754 attempt to put non-alloc orphans before debug sections, just place
757 2011-01-14 J. Park <grassman@gmail.com>
760 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
762 2011-01-14 Alan Modra <amodra@gmail.com>
764 * Makefile.am: Sort emulation rules.
765 (eelf32am33lin.c): Delete.
766 (ALL_EMULATION_SOURCES): Sort, add missing entries.
767 (ALL_64_EMULATION_SOURCES): Likewise.
768 * Makefile.in: Regenerate.
770 2011-01-13 Alan Modra <amodra@gmail.com>
773 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
774 (Expression Section): Update.
775 * ld.h (ld_config_type): Add sane_expr.
776 * ldgram.y (ifile_p1): Add LD_FEATURE.
777 * ldlex.l (LD_FEATYRE): New.
778 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
779 * ldexp.h (struct ldexp_control): Delete uses_defined.
780 * ldexp.c: Remove all uses of uses_defined.
781 (fold_name): Test config.sane_expr rather than ld_compatibility.
782 (exp_fold_tree_1): Likewise. Adjust handling of assignments
784 * ldlang.h (ld_compatibility): Delete.
785 (lang_ld_feature): Declare.
786 * ldlang.c (ld_compatibility): Delete.
787 (open_input_bfds): Only handle assignments for --defsym.
788 (lang_ld_feature): New function.
791 * ldexp.h (exp_assop): Delete.
792 (exp_assign, exp_defsym): Declare.
793 * ldexp.c (exp_assop): Make static, handle all assignment variations.
794 (exp_assign, exp_defsym): New functions.
795 (exp_provide): Use exp_assop.
796 * ldgram.y (defsym_expr): Use exp_defsym.
797 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
798 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
799 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
801 2011-01-12 Alan Modra <amodra@gmail.com>
804 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
805 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
806 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
807 to detect when we've finished sizing sections.
808 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
809 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
810 that we are not inside an output section statement.
811 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
812 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
813 lang_final_phase_enum here.
814 (lang_process): Set lang_final_phase_enum here.
816 2011-01-10 Nick Clifton <nickc@redhat.com>
818 * po/da.po: Updated Danish translation.
820 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
822 * ldlang.c (startup_file): Removed.
823 (lang_startup): Updated.
825 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
828 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
829 before accessing its flags field.
831 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
833 * ldver.c (ldversion): Update copyright to 2011.
835 For older changes see ChangeLog-2010
841 version-control: never