1 2011-10-24 Nick Clifton <nickc@redhat.com>
3 * po/ja.po: Updated Japanese translation.
5 2011-10-20 Alan Modra <amodra@gmail.com>
8 * plugin.c (plugin_should_reload): New function.
9 * plugin.h (plugin_should_reload): Declare.
10 * ldlang.c (open_input_bfds): Use above function.
12 2011-10-19 Alan Modra <amodra@gmail.com>
15 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
16 -z text, -z notext, -z textoff options for all targets having
19 2011-10-15 Alan Modra <amodra@gmail.com>
21 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Remove toc check.
23 2011-10-13 Dave Korn <dave.korn.cygwin@gmail.com>
25 * pe-dll.c (generate_reloc): Don't emit a base reloc for an
26 underlying BFD reloc that will be discarded in eh_frame data.
28 2011-10-10 Nick Clifton <nickc@redhat.com>
30 * po/bg.po: Updated Bulgarian translation.
31 * po/es.po: Updated Spanish translation.
32 * po/fi.po: Updated Finnish translation.
33 * po/fr.po: Updated French translation.
35 2011-10-10 Alan Modra <amodra@gmail.com>
37 * ldmain.c (main): Move code twiddling various config and link_info
39 * lexsup.c (parse_args): ..here. Move plugin_load_plugins call
41 * plugin.c (set_tv_header): Test link_info.executable, not
43 (is_visible_from_outside): Likewise. Delete redundant
44 is_ir_dummy_bfd check and "section" parameter.
46 2011-10-10 Alan Modra <amodra@gmail.com>
48 * emultempl/ppc64elf.em (ppc_add_stub_section): Align to 32 bytes.
50 2011-10-09 Alan Modra <amodra@gmail.com>
52 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Add
53 missing colon to error message.
54 (ppc_before_allocation): Likewise.
56 2011-10-06 Alan Modra <amodra@gmail.com>
59 * plugin.c (tv_header_tags): Add LDPT_GET_SYMBOLS_V2.
60 (set_tv_header): Handle it. Adjust LDPT_GET_SYMBOLS. Return void.
61 (get_symbols): Add def_ironly_exp param. Return that value for
62 syms exported from shared libs.
63 (get_symbols_v1, get_symbols_v2): New wrapper functions.
64 * testplug.c: Update for above changes.
66 2011-09-27 Kai Tietz <ktietz@redhat.com>
68 * scripttempl/pe.sc (.text): Add support for
69 .gnu.linkonce.t.* section.
70 (.debug_info): Only use .gnu.linkonce.wi.* for
72 * scripttempl/pep.sc: Likewise.
74 2011-09-22 Tristan Gingold <gingold@adacore.com>
76 * NEWS: Add marker for 2.22.
78 2011-09-20 Alan Modra <amodra@gmail.com>
81 * ldlang.h (lang_input_statement_type): Add "reload" bitfield.
83 * ldlang.c (new_afile): Init new field.
84 (load_symbols): Don't call ldlang_add_file when reloading.
85 (open_input_bfds): Reload as-needed libs during plugin rescan.
87 2011-09-15 H.J. Lu <hongjiu.lu@intel.com>
90 * ldlang.c (lang_elf_version_info): Removed.
91 (lang_register_vers_node): Replace lang_elf_version_info with
92 link_info.version_info.
93 (lang_add_vers_depend): Likewise.
94 * pe-dll.c (process_def_file_and_drectve): Likewise.
95 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
97 * ldlang.h (lang_elf_version_info): Removed.
99 * plugin.c (is_visible_from_outside): Check if symbol is hidden
102 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
103 Remove lang_elf_version_info.
105 2011-09-15 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
108 * ldmain.c (add_archive_element): Support thin archive member
111 2011-08-26 Nick Clifton <nickc@redhat.com>
113 * po/es.po: Updated Spanish translation.
115 2011-08-26 Nick Clifton <nickc@redhat.com>
117 * NEWS: Mention that --no-copy-dt-needed-entries is now the
120 2011-08-22 Michael Matz <matz@suse.de>
122 * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
123 * ld.texinfo (--copy-dt-needed-entries): Mention new default.
125 2011-08-17 Alan Modra <amodra@gmail.com>
128 * ldlang.c (section_already_linked): Revert 2011-07-09 changes.
129 * plugin.c: Likewise.
130 (asymbol_from_plugin_symbol): Create linkonce section for syms
133 2011-08-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
135 * emultempl/armelf.em (fix_arm1176): New variable.
136 (arm_elf_create_output_section_statements): Pass
137 fix_arm1176 option to bfd backend.
138 (OPTION_FIX_ARM1176): New define.
139 (OPTION_NO_FIX_ARM1176): Likewise.
140 (PARSE_AND_LIST_LONGOPTS): Add new command line options.
141 (PARSE_AND_LIST_OPTIONS): Likewise.
142 (PARSE_AND_LIST_ARGS_CASES): Likewise.
143 * ld.texinfo: Document new command line options.
145 2011-08-09 Alan Modra <amodra@gmail.com>
148 * plugin.c (add_symbols): Revert 2011-08-05.
150 2011-08-06 Kai Tietz <ktietz@redhat.com>
152 * scripttempl/pep.sc: Add .debug_macro section.
153 * scripttempl/pe.sc: Likewise.
155 2011-08-05 Alan Modra <amodra@gmail.com>
158 * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
159 table if already seen.
161 2011-08-04 H.J. Lu <hongjiu.lu@intel.com>
163 * ldmain.c (main): Replace remove_output with ld_cleanup in
166 2011-07-26 Alan Modra <amodra@gmail.com>
168 * emulparams/elf32ppc.sh: Source plt_unwind.sh.
169 * emulparams/elf64ppc.sh: Likewise.
170 * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
171 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
172 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
174 * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
175 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
176 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
179 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
181 * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
184 (eelf_k1om_fbsd.c): Likewise.
185 * Makefile.in: Regenerated.
187 * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
188 is supported. Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
189 (targ_extra_emuls): Likewise.
191 * emulparams/elf_k1om.sh: New.
192 * emulparams/elf_k1om_fbsd.sh: Likewise.
194 2011-07-16 Roland McGrath <roland@hack.frob.com>
196 * ld.h (args_type): New field print_output_format.
197 * lexsup.c (enum option_values, ld_options, parse_args):
198 Handle --print-output-format.
199 * ldmain.c (main): Implement --print-output-format.
200 * ld.texinfo (Options): Document it.
202 * ldlang.c (lang_get_output_target): Don't return current_target
205 2011-07-15 Alan Modra <amodra@gmail.com>
207 * Makefile.am (e*.c): Sort.
208 * Makefile.in: Regenerate.
210 2011-07-14 Alan Modra <amodra@gmail.com>
212 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
213 gld${EMULATION_NAME}_list_options): Don't condition -z relro
214 and -z norelro on COMMONPAGESIZE being defined.
216 2011-07-14 Alan Modra <amodra@gmail.com>
218 * emultempl/ppc64elf.em (plt_static_chain): New var.
219 (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
220 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
221 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
222 --plt-static-chain and --no-plt-static-chain.
224 2011-07-14 Alan Modra <amodra@gmail.com>
226 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
227 gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
228 Provide --build-id, -z defs, -z muldefs, -z max-page-size,
229 -z common-page-size, -z execstack, -z noexecstack for all targets.
230 Add help for --exclude-libs.
231 (OPTION_LD_GENERATED_UNWIND_INFO,
232 OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
233 (gld${EMULATION_NAME}_handle_option): ..and code handling
234 --ld-generated-unwind-info and --no-ld-generated-unwind-info..
235 * emulparams/plt_unwind.sh: ..to here. New file. Add help.
236 * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
237 * emulparams/elf_i386.sh: Likewise.
238 * emulparams/elf_i386_chaos.sh: Likewise.
239 * emulparams/elf_i386_ldso.sh: Likewise.
240 * emulparams/elf_l1om.sh: Likewise.
241 * emulparams/elf_x86_64.sh: Likewise.
243 2011-07-11 Catherine Moore <clm@codesourcery.com>
245 * ld.h (section_flag_list): Add field to struct wildcard_spec.
246 * ld.texinfo (INPUT_SECTION_FLAGS): Document.
247 * ldgram.y (flag_info_list, flag_info): Add to union.
248 (INPUT_SECTION_FLAGS): New token.
249 (wildcard_spec): Initialize section_flag_list to NULL for
251 (sect_flag_list, sect_flags): New rules.
252 (input_section_spec_no_keep): Add alternatives to recognize
254 * ldlang.c (walk_wild_consider_section): Initialize
255 section_flag_info field of the section struct.
256 (lang_add_section): Check input section flags.
257 (lang_add_wild): Initialize section_flag_list field of
258 the statement struct.
259 * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
260 (lang_wild_statement_struct): Likewise.
261 * ldlex.l (INPUT_SECTION_FLAGS): New token.
262 * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
263 * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
265 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
268 * ldlang.c (section_already_linked): Pass "struct already_linked *"
269 to bfd_section_already_linked.
270 (lang_process): Set link_info.loading_lto_outputs before
272 * plugin.c: Include "libbfd.h".
273 (add_symbols): Call bfd_section_already_linked with comdat_key.
275 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
277 * configure.tgt: Revert x32 change.
279 2011-06-20 Jakub Jelinek <jakub@redhat.com>
282 * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
283 OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
284 (gld${EMULATION_NAME}_handle_option): Handle
285 --ld-generated-unwind-info and --no-ld-generated-unwind-info.
286 * ld.texinfo (--ld-generated-unwind-info,
287 --no-ld-generated-unwind-info): Document.
289 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
291 * configure.tgt: Support x32.
293 2011-06-15 Nick Clifton <nickc@redhat.com>
295 * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
297 2011-06-13 Walter Lee <walt@tilera.com>
299 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
301 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
302 (eelf32tilegx.c): New target.
303 (eelf32tilepro.c): Likewise.
304 (eelf64tilegx.c): Likewise.
305 * Makefile.in: Regenerate.
306 * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
307 * emulparams/elf32tilegx.sh: New file.
308 * emulparams/elf64tilegx.sh: New file.
309 * emulparams/elf32tilepro.sh: New file.
311 2011-06-13 Alan Modra <amodra@gmail.com>
313 * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
314 warning symbols here.
315 * emultempl/pe.em (pr_sym): Remove redundant test.
316 * emultempl/pep.em (pr_sym): Likewise.
318 2011-06-09 Nick Clifton <nickc@redhat.com>
321 * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
322 for sections that have been removed by garbage collection.
324 2011-06-08 Alan Modra <amodra@gmail.com>
326 * ldlang.c (lang_one_common): Handle warning symbols.
328 2011-06-07 Nick Clifton <nickc@redhat.com>
330 * configure.tgt: Accept any V850 architecture.
332 2011-06-03 Nick Clifton <nickc@redhat.com>
334 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
335 Add rule to build eelf32am33lin.c
336 * Makefile.in: Regenerate.
338 2011-06-02 Nick Clifton <nickc@redhat.com>
340 * lexsup.c: Fix spelling mistake in comment.
341 * scripttempl/epocpe.sc: Likewise.
342 * scripttempl/i386beos.sc: Likewise.
343 * scripttempl/mcorepe.sc: Likewise.
344 * scripttempl/pe.sc: Likewise.
345 * scripttempl/pep.sc: Likewise.
346 * po/ld.pot: Regenerate.
348 2011-05-27 Nick Clifton <nickc@redhat.com>
350 * scripttempl/v850.sc (_heap_start): Provide.
352 2011-05-23 Alan Modra <amodra@gmail.com>
354 * ldmisc.c (vfinfo): Add %H.
355 * ldmain.c (reloc_overflow): Use %H rather than %C.
356 (reloc_dangerous, unattached_reloc): Likewise.
358 2011-05-23 Alan Modra <amodra@gmail.com>
361 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
362 like sections to existing .sdata2, and similarly for orphan TLS
364 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
366 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
369 * emultempl/rxelf.em (ignore_lma): New variable.
370 (rx_elf_create_output_section_statements): Pass the setiing of
371 ignore_lma to bfd_elf32_rx_set_target_flags.
372 (OPTION_IGNORE_LMA): Define.
373 (OPTION_NO_IGNORE_LMA): Define.
374 (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
375 (PARSE_AND_LIST_OPTIONS): Add ignore lma.
376 (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
378 2011-05-17 Alan Modra <amodra@gmail.com>
381 * ldmain.c (notice): Add "flags" and "string" param.
382 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
383 and constructor syms.
385 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
387 * ldlang.c (print_assignment): Use the symbol's section if we
389 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
390 comment on copying symbol type.
392 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
395 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
398 2011-05-16 Alan Modra <amodra@gmail.com>
400 * ldlang.c (lang_leave_output_section_statement): Don't copy
401 previous lma_region if given address.
403 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
405 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
406 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
407 * Makefile.am (ALL_EMULATIONS): Add these files.
408 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
409 * Makefile.in: Regenerated.
410 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
412 * emulparams/elf32_tic6x_elf_be.sh: New file.
413 * emulparams/elf32_tic6x_elf_le.sh: New file.
414 * emulparams/elf32_tic6x_linux_be.sh: New file.
415 * emulparams/elf32_tic6x_linux_le.sh: New file.
416 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
417 (tic6x-*-*): Replaced by these.
419 2011-05-13 Jan Beulich <jbeulich@novell.com>
421 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
423 2011-05-09 Paul Brook <paul@codesourcery.com>
425 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
426 (compare_output_sec_vma): New function.
427 (gld${EMULATION_NAME}_after_allocation): New function.
428 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
429 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
430 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
431 (LDEMUL_AFTER_ALLOCATION): Set.
432 * ld.texinfo: Document c6x --no-merge-exidx-entries.
434 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
437 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
438 (__rt_psrelocs_end): Likewise.
439 (__rt_psrelocs_size): Likewise difference between the above.
440 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
441 immediately after end of pseudo-reloc data.
442 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
443 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
444 calculate backward from list end.
445 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
446 * scripttempl/pep.sc: Likewise.
448 2011-05-06 Tristan Gingold <gingold@adacore.com>
450 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
452 2011-05-04 Tristan Gingold <gingold@adacore.com>
454 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
455 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
456 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
457 (gld${EMULATION_NAME}_add_options): New function.
458 (gld${EMULATION_NAME}_list_options): Ditto.
459 (gld${EMULATION_NAME}_handle_option): Ditto.
460 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
461 (LDEMUL_LIST_OPTIONS): Define.
463 2011-05-04 Alan Modra <amodra@gmail.com>
466 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
467 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
468 assign to dot when lang_assigning_phase_enum.
469 * ldlang.h (lang_do_assignments): Update prototype.
470 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
472 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
473 lang_do_assignments calls.
475 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
478 * emultempl/pe.em (_after_open): Correctly check whether symbol is
481 2011-04-26 Kai Tietz <ktietz@redhat.com>
483 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
484 * scripttempl/pep.sc: Likewise.
486 2011-04-24 Alan Modra <amodra@gmail.com>
490 * ldmain.c (notice): Delete "name" param, add "h".
491 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
492 redefinitions of IR symbols in real BFDs.
493 (plugin_multiple_definition, plugin_multiple_common): Delete.
494 (non_ironly_hash, init_non_ironly_hash): Delete.
495 (is_visible_from_outside): Traverse entry_symbol chain.
496 (get_symbols): Use non_ir_ref flag rather than hash lookup.
498 2011-04-21 Tristan Gingold <gingold@adacore.com>
500 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
502 2011-04-20 Tristan Gingold <gingold@adacore.com>
504 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
506 2011-04-20 Alan Modra <amodra@gmail.com>
508 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
510 2011-04-20 Alan Modra <amodra@gmail.com>
513 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
515 * ldmain.c (add_archive_element): ..and similar code here..
516 * plugin.c (plugin_maybe_claim): ..to here. New function.
517 (plugin_call_claim_file): Make static.
518 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
519 (plugin_multiple_common): New function.
520 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
521 * plugin.h (plugin_call_claim_file): Don't declare.
522 (plugin_maybe_claim): Declare.
524 2011-04-20 Alan Modra <amodra@gmail.com>
527 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
528 pointer arg rather than "name", "obfd", "osec", "oval". Add code
529 removed from linker.c. Hack around xcofflink.c oddity in
531 (multiple_common): Similarly.
532 * plugin.c (orig_allow_multiple_defs): Delete.
533 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
534 (plugin_multiple_definition): Update.
536 2011-04-18 Kai Tietz <ktietz@redhat.com>
538 * deffilep.y (def_aligncomm): Avoid duplets.
540 * deffilep.y (def_pool_str): New type.
541 (pool_strs): Local static.
542 (def_pool_alloc): Local function.
543 (def_pool_strdup): Likewise.
544 (def_pool_free): Likewise.
545 (opt_name): Replace xmalloc/xstrdup by
546 def_pool_alloc/def_pool_strdup.
547 (dot_name): Likewise.
548 (anylang_id): Likewise.
550 (def_file_parse): Call def_pool_free on
551 exit and cleanup directives elements.
552 (def_file_add_directive): Call def_pool_free.
554 2011-04-18 Paul Brook <paul@codesourcery.com>
556 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
557 for unwinding tables.
559 2011-04-18 Alan Modra <amodra@gmail.com>
563 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
564 when no_more_claiming.
565 * ldmain.c (add_archive_element): Likewise.
566 (multiple_definition): Remove plugin_multiple_definition call.
567 (notice): Remove plugin_notice call.
568 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
570 (plugin_insert): New static var.
571 (open_input_bfds): Only rescan libs after plugin insert point.
572 (lang_gc_sections): Omit plugin claimed files.
573 (lang_process): Set plugin_insert. Only rescan when plugin adds
575 * plugin.h (no_more_claiming): Declare.
576 (plugin_notice, plugin_multiple_definition): Don't declare.
577 * plugin.c: Formatting.
578 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
579 plugin_callbacks): New static vars.
580 (no_more_claiming): Make global.
581 (plugin_cached_allow_multiple_defs): Delete.
582 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
583 use newer bfd_make_section variant. Make COMMON section too.
584 Error handling. Correct setting of gp size.
585 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
586 (message): Likewise for ACONCAT.
587 (asymbol_from_plugin_symbol): Use our COMMON section.
588 (get_symbols): When report_plugin_symbols, show visibility too.
589 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
590 (plugin_load_plugins): Save state of linker callbacks, set up to
591 call plugin_notice instead. Call init_non_ironly_hash here.
592 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
594 (plugin_notice): Rewrite.
595 (plugin_multiple_definition): Make static, call original callback.
597 2011-04-15 Alan Modra <amodra@gmail.com>
600 * ldlang.c (enum open_bfd_mode): New.
601 (open_input_bfds): Replace "force" param with "mode". Reload
602 archives for rescan. Update all callers.
603 (lang_process): Make another open_input_bfds pass for plugins.
605 2011-04-13 Kai Tietz <ktietz@redhat.com>
608 * deffile.h (def_file_add_export): Add is_dup argument.
609 (def_file_add_import): Likewise.
610 * deffilep.y (are_names_equal): New helper.
611 (cmp_export_elem): New helper.
612 (find_export_in_list): Add search routine for exports.
613 (def_file_add_export): Check for duplicates.
614 (cmp_import_elem): New helper.
615 (find_import_in_list): Add search routine for imports.
616 (def_file_add_import): Check for duplicates.
617 (def_exports): Handle duplicates.
618 (def_imports): Likewise.
619 * pe-dll.c (process_def_file_and_drectve): Likewise.
620 (pe_implied_import_dll): Likewise.
622 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
624 * scripttempl/elf.sc (.exception_ranges): Add new section.
626 2011-04-08 Hector Oron <hector.oron@gmail.com>
629 * configure.tgt: Add support for arm-*-gnueabihf targets.
631 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
633 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
635 2011-04-07 Joseph Myers <joseph@codesourcery.com>
637 * configure.tgt: Remove stray ;;.
639 2011-04-06 Joseph Myers <joseph@codesourcery.com>
641 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
642 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
643 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
644 xscale-*-coff, xscale-*-elf): Remove targets.
646 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
648 * configure.tgt: Add elf_l1om to targ_extra_libpath for
651 * emulparams/elf_l1om.sh: Remove duplicates.
653 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
655 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
656 GENERATE_SHLIB_SCRIPT): New defines.
657 (TEXT_START_ADDR): Define differently depending on target.
658 (.got): Redefine to include "*(.dsbt)".
659 (SDATA_START_SYMBOLS): Remove, replace with
660 (OTHER_GOT_SYMBOLS): New.
661 (OTHER_BSS_SECTIONS): Define only for ELF targets.
662 * emultempl/tic6xdsbt.em: New file.
663 * gen-doc.texi: Set C6X.
664 * ld.texinfo: Likewise.
665 (Options specific to C6X uClinux targets): New section.
667 2011-03-29 Alan Modra <amodra@gmail.com>
670 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
672 2011-03-26 John Marino <binutils@marino.st>
674 * configure.host: Update *-*-dragonfly* host entry.
675 * configure.tgt: Update *-*-dragonfly* target entry.
676 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
678 2011-03-28 Joseph Myers <joseph@codesourcery.com>
680 * configure.in: Check for windows.h, not Windows.h.
681 * configure: Regenerate.
682 * plugin.c: Include windows.h, not Windows.h.
684 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
686 * Makefile.in: Regenerate.
688 2011-03-23 Joseph Myers <joseph@codesourcery.com>
690 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
691 are enabled. Mark level as possibly unused.
693 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
695 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
696 (eavrxmega?.c): Likewise.
697 * configure.tgt (targ_extra_emuls): Likewise.
698 * emulparams/avrxmega1.sh: New file.
699 * emulparams/avrxmega2.sh: Likewise.
700 * emulparams/avrxmega3.sh: Likewise.
701 * emulparams/avrxmega4.sh: Likewise.
702 * emulparams/avrxmega5.sh: Likewise.
703 * emulparams/avrxmega6.sh: Likewise.
704 * emulparams/avrxmega7.sh: Likewise.
705 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
706 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
708 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
710 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
712 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
714 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
717 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
719 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
720 instead of dynamic_sections_created.
722 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
724 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
726 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
728 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
730 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
732 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
733 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
734 * ldmain.c (add_archive_element): Set it if the member is claimed.
735 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
736 (find_replacements_insert_point): New helper function.
737 (lang_process): After adding and opening replacement files passed
738 from plugin, splice them into correct place in statement list and
739 file chains to preserve critical link order.
740 (lang_list_insert_after): New helper function.
741 (lang_list_remove_tail): Likewise.
743 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
745 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
746 (IRONLY_SUFFIX_LEN): Delete.
747 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
748 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
749 enclosing lang input statement instead.
751 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
753 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
754 alignment of input sections when creating orphan output sections
755 during relocatable link.
756 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
758 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
760 * ld.texinfo: Document --verbose[=NUMBER].
762 * lexsup.c (ld_options): Update --verbose.
763 (parse_args): Set report_plugin_symbols.
765 * plugin.c (report_plugin_symbols): New.
766 (get_symbols): Report plugin symbols if report_plugin_symbols
769 * plugin.h (report_plugin_symbols): New.
771 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
774 * testplug.c: Don't include "filenames.h".
775 (onclaim_file): Don't use filename_cmp.
777 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
779 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
780 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
782 (gld${EMULATION_NAME}_stat_needed): Likewise.
783 (gld${EMULATION_NAME}_check_needed): Likewise.
784 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
785 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
786 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
787 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
788 * ldfile.c (ldfile_open_file): Likewise.
789 * ldlang.c (wild_sort): Likewise.
790 (lookup_name): Likewise.
791 (check_excluded_libs): Likewise.
792 * ldmisc.c (vfinfo): Likewise.
793 * pe-dll.c (libnamencmp): Likewise.
794 (auto_export): Likewise.
795 (pe_dll_generate_implib): Likewise.
796 * testplug.c (onclaim_file): Likewise.
798 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
801 * plugin.c (get_symbols): Don't check entry symbol here.
802 (init_non_ironly_hash): Add entry_symbol chain into
805 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
808 * plugin.c (get_symbols): Don't mark entry symbol IR only.
810 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
813 emulparams/hppalinux.sh (DATA_ADDR): Define.
814 (SHLIB_DATA_ADDR): Likewise.
816 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
818 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
821 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
823 * pe-dll.c (process_def_file_and_drectve): Don't strip
824 leading underscore from symbol by calling bfd_find_version_for_sym.
826 2011-02-14 Mike Frysinger <vapier@gentoo.org>
828 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
829 the bfd_demangle of sym, change users of sym to c_sym when not
830 already demangling, and free when done. Change callers of
831 cplus_demangle to bfd_demangle.
833 2011-02-14 Alan Modra <amodra@gmail.com>
835 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
836 .text section, use newer bfd_make_section variant. Error handling.
837 Correct setting of gp size.
838 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
839 (message): Likewise for ACONCAT.
840 (get_symbols): Formatting.
842 2011-02-14 Alan Modra <amodra@gmail.com>
844 * ldmain.c (remove_output): Rename to..
845 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
847 * plugin.c (plugin_call_cleanup): Make global.
848 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
849 * plugin.h (plugin_call_cleanup): Declare.
851 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
853 * configure: Regenerate.
855 2011-02-10 Alan Modra <amodra@gmail.com>
857 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
858 * scripttempl/avr.sc: Likewise.
859 * scripttempl/elf32cr16.sc: Likewise.
860 * scripttempl/elf32crx.sc: Likewise.
861 * scripttempl/elf32msp430.sc: Likewise.
862 * scripttempl/elf32msp430_3.sc: Likewise.
863 * scripttempl/elf32sh-symbian.sc: Likewise.
864 * scripttempl/elf64hppa.sc: Likewise.
865 * scripttempl/elf_chaos.sc: Likewise.
866 * scripttempl/elfd10v.sc: Likewise.
867 * scripttempl/elfd30v.sc: Likewise.
868 * scripttempl/elfi370.sc: Likewise.
869 * scripttempl/elfm68hc11.sc: Likewise.
870 * scripttempl/elfm68hc12.sc: Likewise.
871 * scripttempl/elfxtensa.sc: Likewise.
872 * scripttempl/ip2k.sc: Likewise.
873 * scripttempl/iq2000.sc: Likewise.
874 * scripttempl/mep.sc: Likewise.
875 * scripttempl/mmo.sc: Likewise.
876 * scripttempl/v850.sc: Likewise.
877 * scripttempl/xstormy16.sc: Likewise.
878 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
880 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
882 * Makefile.am (CXX): Removed.
884 * configure.in: Add AC_PROG_CXX.
886 * Makefile.in: Regenerated.
887 * configure: Likewise.
889 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
891 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
892 private data and GP size.
894 2011-01-21 Alan Modra <amodra@gmail.com>
896 * ldexp.c (fold_binary): Set result section for arithmetic and
897 logical operations to NULL when both operands are in same section.
898 * ld.texinfo (Expression Section): Describe this.
900 2011-01-14 Alan Modra <amodra@gmail.com>
902 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
903 attempt to put non-alloc orphans before debug sections, just place
906 2011-01-14 J. Park <grassman@gmail.com>
909 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
911 2011-01-14 Alan Modra <amodra@gmail.com>
913 * Makefile.am: Sort emulation rules.
914 (eelf32am33lin.c): Delete.
915 (ALL_EMULATION_SOURCES): Sort, add missing entries.
916 (ALL_64_EMULATION_SOURCES): Likewise.
917 * Makefile.in: Regenerate.
919 2011-01-13 Alan Modra <amodra@gmail.com>
922 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
923 (Expression Section): Update.
924 * ld.h (ld_config_type): Add sane_expr.
925 * ldgram.y (ifile_p1): Add LD_FEATURE.
926 * ldlex.l (LD_FEATYRE): New.
927 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
928 * ldexp.h (struct ldexp_control): Delete uses_defined.
929 * ldexp.c: Remove all uses of uses_defined.
930 (fold_name): Test config.sane_expr rather than ld_compatibility.
931 (exp_fold_tree_1): Likewise. Adjust handling of assignments
933 * ldlang.h (ld_compatibility): Delete.
934 (lang_ld_feature): Declare.
935 * ldlang.c (ld_compatibility): Delete.
936 (open_input_bfds): Only handle assignments for --defsym.
937 (lang_ld_feature): New function.
940 * ldexp.h (exp_assop): Delete.
941 (exp_assign, exp_defsym): Declare.
942 * ldexp.c (exp_assop): Make static, handle all assignment variations.
943 (exp_assign, exp_defsym): New functions.
944 (exp_provide): Use exp_assop.
945 * ldgram.y (defsym_expr): Use exp_defsym.
946 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
947 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
948 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
950 2011-01-12 Alan Modra <amodra@gmail.com>
953 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
954 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
955 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
956 to detect when we've finished sizing sections.
957 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
958 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
959 that we are not inside an output section statement.
960 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
961 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
962 lang_final_phase_enum here.
963 (lang_process): Set lang_final_phase_enum here.
965 2011-01-10 Nick Clifton <nickc@redhat.com>
967 * po/da.po: Updated Danish translation.
969 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
971 * ldlang.c (startup_file): Removed.
972 (lang_startup): Updated.
974 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
977 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
978 before accessing its flags field.
980 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
982 * ldver.c (ldversion): Update copyright to 2011.
984 For older changes see ChangeLog-2010
990 version-control: never