1 2011-08-09 Alan Modra <amodra@gmail.com>
4 * plugin.c (add_symbols): Revert 2011-08-05.
6 2011-08-06 Kai Tietz <ktietz@redhat.com>
8 * scripttempl/pep.sc: Add .debug_macro section.
9 * scripttempl/pe.sc: Likewise.
11 2011-08-05 Alan Modra <amodra@gmail.com>
14 * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
15 table if already seen.
17 2011-08-04 H.J. Lu <hongjiu.lu@intel.com>
19 * ldmain.c (main): Replace remove_output with ld_cleanup in
22 2011-07-26 Alan Modra <amodra@gmail.com>
24 * emulparams/elf32ppc.sh: Source plt_unwind.sh.
25 * emulparams/elf64ppc.sh: Likewise.
26 * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
27 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
28 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
30 * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
31 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
32 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
35 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
37 * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
40 (eelf_k1om_fbsd.c): Likewise.
41 * Makefile.in: Regenerated.
43 * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
44 is supported. Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
45 (targ_extra_emuls): Likewise.
47 * emulparams/elf_k1om.sh: New.
48 * emulparams/elf_k1om_fbsd.sh: Likewise.
50 2011-07-16 Roland McGrath <roland@hack.frob.com>
52 * ld.h (args_type): New field print_output_format.
53 * lexsup.c (enum option_values, ld_options, parse_args):
54 Handle --print-output-format.
55 * ldmain.c (main): Implement --print-output-format.
56 * ld.texinfo (Options): Document it.
58 * ldlang.c (lang_get_output_target): Don't return current_target
61 2011-07-15 Alan Modra <amodra@gmail.com>
63 * Makefile.am (e*.c): Sort.
64 * Makefile.in: Regenerate.
66 2011-07-14 Alan Modra <amodra@gmail.com>
68 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
69 gld${EMULATION_NAME}_list_options): Don't condition -z relro
70 and -z norelro on COMMONPAGESIZE being defined.
72 2011-07-14 Alan Modra <amodra@gmail.com>
74 * emultempl/ppc64elf.em (plt_static_chain): New var.
75 (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
76 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
77 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
78 --plt-static-chain and --no-plt-static-chain.
80 2011-07-14 Alan Modra <amodra@gmail.com>
82 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
83 gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
84 Provide --build-id, -z defs, -z muldefs, -z max-page-size,
85 -z common-page-size, -z execstack, -z noexecstack for all targets.
86 Add help for --exclude-libs.
87 (OPTION_LD_GENERATED_UNWIND_INFO,
88 OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
89 (gld${EMULATION_NAME}_handle_option): ..and code handling
90 --ld-generated-unwind-info and --no-ld-generated-unwind-info..
91 * emulparams/plt_unwind.sh: ..to here. New file. Add help.
92 * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
93 * emulparams/elf_i386.sh: Likewise.
94 * emulparams/elf_i386_chaos.sh: Likewise.
95 * emulparams/elf_i386_ldso.sh: Likewise.
96 * emulparams/elf_l1om.sh: Likewise.
97 * emulparams/elf_x86_64.sh: Likewise.
99 2011-07-11 Catherine Moore <clm@codesourcery.com>
101 * ld.h (section_flag_list): Add field to struct wildcard_spec.
102 * ld.texinfo (INPUT_SECTION_FLAGS): Document.
103 * ldgram.y (flag_info_list, flag_info): Add to union.
104 (INPUT_SECTION_FLAGS): New token.
105 (wildcard_spec): Initialize section_flag_list to NULL for
107 (sect_flag_list, sect_flags): New rules.
108 (input_section_spec_no_keep): Add alternatives to recognize
110 * ldlang.c (walk_wild_consider_section): Initialize
111 section_flag_info field of the section struct.
112 (lang_add_section): Check input section flags.
113 (lang_add_wild): Initialize section_flag_list field of
114 the statement struct.
115 * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
116 (lang_wild_statement_struct): Likewise.
117 * ldlex.l (INPUT_SECTION_FLAGS): New token.
118 * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
119 * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
121 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
124 * ldlang.c (section_already_linked): Pass "struct already_linked *"
125 to bfd_section_already_linked.
126 (lang_process): Set link_info.loading_lto_outputs before
128 * plugin.c: Include "libbfd.h".
129 (add_symbols): Call bfd_section_already_linked with comdat_key.
131 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
133 * configure.tgt: Revert x32 change.
135 2011-06-20 Jakub Jelinek <jakub@redhat.com>
138 * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
139 OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
140 (gld${EMULATION_NAME}_handle_option): Handle
141 --ld-generated-unwind-info and --no-ld-generated-unwind-info.
142 * ld.texinfo (--ld-generated-unwind-info,
143 --no-ld-generated-unwind-info): Document.
145 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
147 * configure.tgt: Support x32.
149 2011-06-15 Nick Clifton <nickc@redhat.com>
151 * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
153 2011-06-13 Walter Lee <walt@tilera.com>
155 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
157 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
158 (eelf32tilegx.c): New target.
159 (eelf32tilepro.c): Likewise.
160 (eelf64tilegx.c): Likewise.
161 * Makefile.in: Regenerate.
162 * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
163 * emulparams/elf32tilegx.sh: New file.
164 * emulparams/elf64tilegx.sh: New file.
165 * emulparams/elf32tilepro.sh: New file.
167 2011-06-13 Alan Modra <amodra@gmail.com>
169 * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
170 warning symbols here.
171 * emultempl/pe.em (pr_sym): Remove redundant test.
172 * emultempl/pep.em (pr_sym): Likewise.
174 2011-06-09 Nick Clifton <nickc@redhat.com>
177 * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
178 for sections that have been removed by garbage collection.
180 2011-06-08 Alan Modra <amodra@gmail.com>
182 * ldlang.c (lang_one_common): Handle warning symbols.
184 2011-06-07 Nick Clifton <nickc@redhat.com>
186 * configure.tgt: Accept any V850 architecture.
188 2011-06-03 Nick Clifton <nickc@redhat.com>
190 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
191 Add rule to build eelf32am33lin.c
192 * Makefile.in: Regenerate.
194 2011-06-02 Nick Clifton <nickc@redhat.com>
196 * lexsup.c: Fix spelling mistake in comment.
197 * scripttempl/epocpe.sc: Likewise.
198 * scripttempl/i386beos.sc: Likewise.
199 * scripttempl/mcorepe.sc: Likewise.
200 * scripttempl/pe.sc: Likewise.
201 * scripttempl/pep.sc: Likewise.
202 * po/ld.pot: Regenerate.
204 2011-05-27 Nick Clifton <nickc@redhat.com>
206 * scripttempl/v850.sc (_heap_start): Provide.
208 2011-05-23 Alan Modra <amodra@gmail.com>
210 * ldmisc.c (vfinfo): Add %H.
211 * ldmain.c (reloc_overflow): Use %H rather than %C.
212 (reloc_dangerous, unattached_reloc): Likewise.
214 2011-05-23 Alan Modra <amodra@gmail.com>
217 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
218 like sections to existing .sdata2, and similarly for orphan TLS
220 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
222 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
225 * emultempl/rxelf.em (ignore_lma): New variable.
226 (rx_elf_create_output_section_statements): Pass the setiing of
227 ignore_lma to bfd_elf32_rx_set_target_flags.
228 (OPTION_IGNORE_LMA): Define.
229 (OPTION_NO_IGNORE_LMA): Define.
230 (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
231 (PARSE_AND_LIST_OPTIONS): Add ignore lma.
232 (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
234 2011-05-17 Alan Modra <amodra@gmail.com>
237 * ldmain.c (notice): Add "flags" and "string" param.
238 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
239 and constructor syms.
241 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
243 * ldlang.c (print_assignment): Use the symbol's section if we
245 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
246 comment on copying symbol type.
248 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
251 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
254 2011-05-16 Alan Modra <amodra@gmail.com>
256 * ldlang.c (lang_leave_output_section_statement): Don't copy
257 previous lma_region if given address.
259 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
261 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
262 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
263 * Makefile.am (ALL_EMULATIONS): Add these files.
264 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
265 * Makefile.in: Regenerated.
266 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
268 * emulparams/elf32_tic6x_elf_be.sh: New file.
269 * emulparams/elf32_tic6x_elf_le.sh: New file.
270 * emulparams/elf32_tic6x_linux_be.sh: New file.
271 * emulparams/elf32_tic6x_linux_le.sh: New file.
272 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
273 (tic6x-*-*): Replaced by these.
275 2011-05-13 Jan Beulich <jbeulich@novell.com>
277 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
279 2011-05-09 Paul Brook <paul@codesourcery.com>
281 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
282 (compare_output_sec_vma): New function.
283 (gld${EMULATION_NAME}_after_allocation): New function.
284 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
285 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
286 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
287 (LDEMUL_AFTER_ALLOCATION): Set.
288 * ld.texinfo: Document c6x --no-merge-exidx-entries.
290 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
293 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
294 (__rt_psrelocs_end): Likewise.
295 (__rt_psrelocs_size): Likewise difference between the above.
296 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
297 immediately after end of pseudo-reloc data.
298 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
299 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
300 calculate backward from list end.
301 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
302 * scripttempl/pep.sc: Likewise.
304 2011-05-06 Tristan Gingold <gingold@adacore.com>
306 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
308 2011-05-04 Tristan Gingold <gingold@adacore.com>
310 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
311 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
312 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
313 (gld${EMULATION_NAME}_add_options): New function.
314 (gld${EMULATION_NAME}_list_options): Ditto.
315 (gld${EMULATION_NAME}_handle_option): Ditto.
316 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
317 (LDEMUL_LIST_OPTIONS): Define.
319 2011-05-04 Alan Modra <amodra@gmail.com>
322 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
323 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
324 assign to dot when lang_assigning_phase_enum.
325 * ldlang.h (lang_do_assignments): Update prototype.
326 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
328 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
329 lang_do_assignments calls.
331 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
334 * emultempl/pe.em (_after_open): Correctly check whether symbol is
337 2011-04-26 Kai Tietz <ktietz@redhat.com>
339 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
340 * scripttempl/pep.sc: Likewise.
342 2011-04-24 Alan Modra <amodra@gmail.com>
346 * ldmain.c (notice): Delete "name" param, add "h".
347 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
348 redefinitions of IR symbols in real BFDs.
349 (plugin_multiple_definition, plugin_multiple_common): Delete.
350 (non_ironly_hash, init_non_ironly_hash): Delete.
351 (is_visible_from_outside): Traverse entry_symbol chain.
352 (get_symbols): Use non_ir_ref flag rather than hash lookup.
354 2011-04-21 Tristan Gingold <gingold@adacore.com>
356 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
358 2011-04-20 Tristan Gingold <gingold@adacore.com>
360 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
362 2011-04-20 Alan Modra <amodra@gmail.com>
364 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
366 2011-04-20 Alan Modra <amodra@gmail.com>
369 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
371 * ldmain.c (add_archive_element): ..and similar code here..
372 * plugin.c (plugin_maybe_claim): ..to here. New function.
373 (plugin_call_claim_file): Make static.
374 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
375 (plugin_multiple_common): New function.
376 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
377 * plugin.h (plugin_call_claim_file): Don't declare.
378 (plugin_maybe_claim): Declare.
380 2011-04-20 Alan Modra <amodra@gmail.com>
383 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
384 pointer arg rather than "name", "obfd", "osec", "oval". Add code
385 removed from linker.c. Hack around xcofflink.c oddity in
387 (multiple_common): Similarly.
388 * plugin.c (orig_allow_multiple_defs): Delete.
389 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
390 (plugin_multiple_definition): Update.
392 2011-04-18 Kai Tietz <ktietz@redhat.com>
394 * deffilep.y (def_aligncomm): Avoid duplets.
396 * deffilep.y (def_pool_str): New type.
397 (pool_strs): Local static.
398 (def_pool_alloc): Local function.
399 (def_pool_strdup): Likewise.
400 (def_pool_free): Likewise.
401 (opt_name): Replace xmalloc/xstrdup by
402 def_pool_alloc/def_pool_strdup.
403 (dot_name): Likewise.
404 (anylang_id): Likewise.
406 (def_file_parse): Call def_pool_free on
407 exit and cleanup directives elements.
408 (def_file_add_directive): Call def_pool_free.
410 2011-04-18 Paul Brook <paul@codesourcery.com>
412 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
413 for unwinding tables.
415 2011-04-18 Alan Modra <amodra@gmail.com>
419 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
420 when no_more_claiming.
421 * ldmain.c (add_archive_element): Likewise.
422 (multiple_definition): Remove plugin_multiple_definition call.
423 (notice): Remove plugin_notice call.
424 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
426 (plugin_insert): New static var.
427 (open_input_bfds): Only rescan libs after plugin insert point.
428 (lang_gc_sections): Omit plugin claimed files.
429 (lang_process): Set plugin_insert. Only rescan when plugin adds
431 * plugin.h (no_more_claiming): Declare.
432 (plugin_notice, plugin_multiple_definition): Don't declare.
433 * plugin.c: Formatting.
434 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
435 plugin_callbacks): New static vars.
436 (no_more_claiming): Make global.
437 (plugin_cached_allow_multiple_defs): Delete.
438 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
439 use newer bfd_make_section variant. Make COMMON section too.
440 Error handling. Correct setting of gp size.
441 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
442 (message): Likewise for ACONCAT.
443 (asymbol_from_plugin_symbol): Use our COMMON section.
444 (get_symbols): When report_plugin_symbols, show visibility too.
445 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
446 (plugin_load_plugins): Save state of linker callbacks, set up to
447 call plugin_notice instead. Call init_non_ironly_hash here.
448 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
450 (plugin_notice): Rewrite.
451 (plugin_multiple_definition): Make static, call original callback.
453 2011-04-15 Alan Modra <amodra@gmail.com>
456 * ldlang.c (enum open_bfd_mode): New.
457 (open_input_bfds): Replace "force" param with "mode". Reload
458 archives for rescan. Update all callers.
459 (lang_process): Make another open_input_bfds pass for plugins.
461 2011-04-13 Kai Tietz <ktietz@redhat.com>
464 * deffile.h (def_file_add_export): Add is_dup argument.
465 (def_file_add_import): Likewise.
466 * deffilep.y (are_names_equal): New helper.
467 (cmp_export_elem): New helper.
468 (find_export_in_list): Add search routine for exports.
469 (def_file_add_export): Check for duplicates.
470 (cmp_import_elem): New helper.
471 (find_import_in_list): Add search routine for imports.
472 (def_file_add_import): Check for duplicates.
473 (def_exports): Handle duplicates.
474 (def_imports): Likewise.
475 * pe-dll.c (process_def_file_and_drectve): Likewise.
476 (pe_implied_import_dll): Likewise.
478 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
480 * scripttempl/elf.sc (.exception_ranges): Add new section.
482 2011-04-08 Hector Oron <hector.oron@gmail.com>
485 * configure.tgt: Add support for arm-*-gnueabihf targets.
487 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
489 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
491 2011-04-07 Joseph Myers <joseph@codesourcery.com>
493 * configure.tgt: Remove stray ;;.
495 2011-04-06 Joseph Myers <joseph@codesourcery.com>
497 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
498 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
499 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
500 xscale-*-coff, xscale-*-elf): Remove targets.
502 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
504 * configure.tgt: Add elf_l1om to targ_extra_libpath for
507 * emulparams/elf_l1om.sh: Remove duplicates.
509 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
511 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
512 GENERATE_SHLIB_SCRIPT): New defines.
513 (TEXT_START_ADDR): Define differently depending on target.
514 (.got): Redefine to include "*(.dsbt)".
515 (SDATA_START_SYMBOLS): Remove, replace with
516 (OTHER_GOT_SYMBOLS): New.
517 (OTHER_BSS_SECTIONS): Define only for ELF targets.
518 * emultempl/tic6xdsbt.em: New file.
519 * gen-doc.texi: Set C6X.
520 * ld.texinfo: Likewise.
521 (Options specific to C6X uClinux targets): New section.
523 2011-03-29 Alan Modra <amodra@gmail.com>
526 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
528 2011-03-26 John Marino <binutils@marino.st>
530 * configure.host: Update *-*-dragonfly* host entry.
531 * configure.tgt: Update *-*-dragonfly* target entry.
532 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
534 2011-03-28 Joseph Myers <joseph@codesourcery.com>
536 * configure.in: Check for windows.h, not Windows.h.
537 * configure: Regenerate.
538 * plugin.c: Include windows.h, not Windows.h.
540 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
542 * Makefile.in: Regenerate.
544 2011-03-23 Joseph Myers <joseph@codesourcery.com>
546 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
547 are enabled. Mark level as possibly unused.
549 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
551 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
552 (eavrxmega?.c): Likewise.
553 * configure.tgt (targ_extra_emuls): Likewise.
554 * emulparams/avrxmega1.sh: New file.
555 * emulparams/avrxmega2.sh: Likewise.
556 * emulparams/avrxmega3.sh: Likewise.
557 * emulparams/avrxmega4.sh: Likewise.
558 * emulparams/avrxmega5.sh: Likewise.
559 * emulparams/avrxmega6.sh: Likewise.
560 * emulparams/avrxmega7.sh: Likewise.
561 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
562 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
564 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
566 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
568 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
570 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
573 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
575 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
576 instead of dynamic_sections_created.
578 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
580 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
582 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
584 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
586 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
588 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
589 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
590 * ldmain.c (add_archive_element): Set it if the member is claimed.
591 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
592 (find_replacements_insert_point): New helper function.
593 (lang_process): After adding and opening replacement files passed
594 from plugin, splice them into correct place in statement list and
595 file chains to preserve critical link order.
596 (lang_list_insert_after): New helper function.
597 (lang_list_remove_tail): Likewise.
599 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
601 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
602 (IRONLY_SUFFIX_LEN): Delete.
603 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
604 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
605 enclosing lang input statement instead.
607 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
609 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
610 alignment of input sections when creating orphan output sections
611 during relocatable link.
612 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
614 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
616 * ld.texinfo: Document --verbose[=NUMBER].
618 * lexsup.c (ld_options): Update --verbose.
619 (parse_args): Set report_plugin_symbols.
621 * plugin.c (report_plugin_symbols): New.
622 (get_symbols): Report plugin symbols if report_plugin_symbols
625 * plugin.h (report_plugin_symbols): New.
627 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
630 * testplug.c: Don't include "filenames.h".
631 (onclaim_file): Don't use filename_cmp.
633 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
635 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
636 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
638 (gld${EMULATION_NAME}_stat_needed): Likewise.
639 (gld${EMULATION_NAME}_check_needed): Likewise.
640 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
641 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
642 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
643 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
644 * ldfile.c (ldfile_open_file): Likewise.
645 * ldlang.c (wild_sort): Likewise.
646 (lookup_name): Likewise.
647 (check_excluded_libs): Likewise.
648 * ldmisc.c (vfinfo): Likewise.
649 * pe-dll.c (libnamencmp): Likewise.
650 (auto_export): Likewise.
651 (pe_dll_generate_implib): Likewise.
652 * testplug.c (onclaim_file): Likewise.
654 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
657 * plugin.c (get_symbols): Don't check entry symbol here.
658 (init_non_ironly_hash): Add entry_symbol chain into
661 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
664 * plugin.c (get_symbols): Don't mark entry symbol IR only.
666 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
669 emulparams/hppalinux.sh (DATA_ADDR): Define.
670 (SHLIB_DATA_ADDR): Likewise.
672 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
674 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
677 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
679 * pe-dll.c (process_def_file_and_drectve): Don't strip
680 leading underscore from symbol by calling bfd_find_version_for_sym.
682 2011-02-14 Mike Frysinger <vapier@gentoo.org>
684 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
685 the bfd_demangle of sym, change users of sym to c_sym when not
686 already demangling, and free when done. Change callers of
687 cplus_demangle to bfd_demangle.
689 2011-02-14 Alan Modra <amodra@gmail.com>
691 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
692 .text section, use newer bfd_make_section variant. Error handling.
693 Correct setting of gp size.
694 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
695 (message): Likewise for ACONCAT.
696 (get_symbols): Formatting.
698 2011-02-14 Alan Modra <amodra@gmail.com>
700 * ldmain.c (remove_output): Rename to..
701 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
703 * plugin.c (plugin_call_cleanup): Make global.
704 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
705 * plugin.h (plugin_call_cleanup): Declare.
707 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
709 * configure: Regenerate.
711 2011-02-10 Alan Modra <amodra@gmail.com>
713 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
714 * scripttempl/avr.sc: Likewise.
715 * scripttempl/elf32cr16.sc: Likewise.
716 * scripttempl/elf32crx.sc: Likewise.
717 * scripttempl/elf32msp430.sc: Likewise.
718 * scripttempl/elf32msp430_3.sc: Likewise.
719 * scripttempl/elf32sh-symbian.sc: Likewise.
720 * scripttempl/elf64hppa.sc: Likewise.
721 * scripttempl/elf_chaos.sc: Likewise.
722 * scripttempl/elfd10v.sc: Likewise.
723 * scripttempl/elfd30v.sc: Likewise.
724 * scripttempl/elfi370.sc: Likewise.
725 * scripttempl/elfm68hc11.sc: Likewise.
726 * scripttempl/elfm68hc12.sc: Likewise.
727 * scripttempl/elfxtensa.sc: Likewise.
728 * scripttempl/ip2k.sc: Likewise.
729 * scripttempl/iq2000.sc: Likewise.
730 * scripttempl/mep.sc: Likewise.
731 * scripttempl/mmo.sc: Likewise.
732 * scripttempl/v850.sc: Likewise.
733 * scripttempl/xstormy16.sc: Likewise.
734 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
736 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
738 * Makefile.am (CXX): Removed.
740 * configure.in: Add AC_PROG_CXX.
742 * Makefile.in: Regenerated.
743 * configure: Likewise.
745 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
747 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
748 private data and GP size.
750 2011-01-21 Alan Modra <amodra@gmail.com>
752 * ldexp.c (fold_binary): Set result section for arithmetic and
753 logical operations to NULL when both operands are in same section.
754 * ld.texinfo (Expression Section): Describe this.
756 2011-01-14 Alan Modra <amodra@gmail.com>
758 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
759 attempt to put non-alloc orphans before debug sections, just place
762 2011-01-14 J. Park <grassman@gmail.com>
765 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
767 2011-01-14 Alan Modra <amodra@gmail.com>
769 * Makefile.am: Sort emulation rules.
770 (eelf32am33lin.c): Delete.
771 (ALL_EMULATION_SOURCES): Sort, add missing entries.
772 (ALL_64_EMULATION_SOURCES): Likewise.
773 * Makefile.in: Regenerate.
775 2011-01-13 Alan Modra <amodra@gmail.com>
778 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
779 (Expression Section): Update.
780 * ld.h (ld_config_type): Add sane_expr.
781 * ldgram.y (ifile_p1): Add LD_FEATURE.
782 * ldlex.l (LD_FEATYRE): New.
783 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
784 * ldexp.h (struct ldexp_control): Delete uses_defined.
785 * ldexp.c: Remove all uses of uses_defined.
786 (fold_name): Test config.sane_expr rather than ld_compatibility.
787 (exp_fold_tree_1): Likewise. Adjust handling of assignments
789 * ldlang.h (ld_compatibility): Delete.
790 (lang_ld_feature): Declare.
791 * ldlang.c (ld_compatibility): Delete.
792 (open_input_bfds): Only handle assignments for --defsym.
793 (lang_ld_feature): New function.
796 * ldexp.h (exp_assop): Delete.
797 (exp_assign, exp_defsym): Declare.
798 * ldexp.c (exp_assop): Make static, handle all assignment variations.
799 (exp_assign, exp_defsym): New functions.
800 (exp_provide): Use exp_assop.
801 * ldgram.y (defsym_expr): Use exp_defsym.
802 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
803 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
804 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
806 2011-01-12 Alan Modra <amodra@gmail.com>
809 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
810 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
811 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
812 to detect when we've finished sizing sections.
813 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
814 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
815 that we are not inside an output section statement.
816 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
817 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
818 lang_final_phase_enum here.
819 (lang_process): Set lang_final_phase_enum here.
821 2011-01-10 Nick Clifton <nickc@redhat.com>
823 * po/da.po: Updated Danish translation.
825 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
827 * ldlang.c (startup_file): Removed.
828 (lang_startup): Updated.
830 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
833 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
834 before accessing its flags field.
836 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
838 * ldver.c (ldversion): Update copyright to 2011.
840 For older changes see ChangeLog-2010
846 version-control: never