1 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 Backport from mainline:
4 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6 * configure.tgt (x86_64-*-solaris2*): Use $targ_extra_emuls for
9 2011-10-25 Alan Modra <amodra@gmail.com>
11 Apply mainline patches
12 2011-10-20 Alan Modra <amodra@gmail.com>
14 * plugin.c (plugin_should_reload): New function.
15 * plugin.h (plugin_should_reload): Declare.
16 * ldlang.c (open_input_bfds): Use above function.
18 2011-10-19 Alan Modra <amodra@gmail.com>
20 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
21 -z text, -z notext, -z textoff options for all targets having
24 2011-10-15 Alan Modra <amodra@gmail.com>
25 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Remove toc check.
27 2011-10-10 Alan Modra <amodra@gmail.com>
28 * ldmain.c (main): Move code twiddling various config and link_info
30 * lexsup.c (parse_args): ..here. Move plugin_load_plugins call
32 * plugin.c (set_tv_header): Test link_info.executable, not
34 (is_visible_from_outside): Likewise. Delete redundant
35 is_ir_dummy_bfd check and "section" parameter.
37 2011-10-10 Alan Modra <amodra@gmail.com>
38 * emultempl/ppc64elf.em (ppc_add_stub_section): Align to 32 bytes.
40 2011-10-06 Alan Modra <amodra@gmail.com>
42 * plugin.c (tv_header_tags): Add LDPT_GET_SYMBOLS_V2.
43 (set_tv_header): Handle it. Adjust LDPT_GET_SYMBOLS. Return void.
44 (get_symbols): Add def_ironly_exp param. Return that value for
45 syms exported from shared libs.
46 (get_symbols_v1, get_symbols_v2): New wrapper functions.
47 * testplug.c: Update for above changes.
49 2011-10-13 Dave Korn <dave.korn.cygwin@gmail.com>
51 * pe-dll.c (generate_reloc): Don't emit a base reloc for an
52 underlying BFD reloc that will be discarded in eh_frame data.
54 2011-09-22 Tristan Gingold <gingold@adacore.com>
56 * NEWS: Add marker for 2.22.
58 2011-09-20 Alan Modra <amodra@gmail.com>
61 * ldlang.h (lang_input_statement_type): Add "reload" bitfield.
63 * ldlang.c (new_afile): Init new field.
64 (load_symbols): Don't call ldlang_add_file when reloading.
65 (open_input_bfds): Reload as-needed libs during plugin rescan.
67 2011-09-15 H.J. Lu <hongjiu.lu@intel.com>
70 * ldlang.c (lang_elf_version_info): Removed.
71 (lang_register_vers_node): Replace lang_elf_version_info with
72 link_info.version_info.
73 (lang_add_vers_depend): Likewise.
74 * pe-dll.c (process_def_file_and_drectve): Likewise.
75 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
77 * ldlang.h (lang_elf_version_info): Removed.
79 * plugin.c (is_visible_from_outside): Check if symbol is hidden
82 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
83 Remove lang_elf_version_info.
85 2011-09-15 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
88 * ldmain.c (add_archive_element): Support thin archive member
91 2011-08-26 Nick Clifton <nickc@redhat.com>
93 * po/es.po: Updated Spanish translation.
95 2011-08-26 Nick Clifton <nickc@redhat.com>
97 * NEWS: Mention that --no-copy-dt-needed-entries is now the
100 2011-08-22 Michael Matz <matz@suse.de>
102 * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
103 * ld.texinfo (--copy-dt-needed-entries): Mention new default.
105 2011-08-17 Alan Modra <amodra@gmail.com>
108 * ldlang.c (section_already_linked): Revert 2011-07-09 changes.
109 * plugin.c: Likewise.
110 (asymbol_from_plugin_symbol): Create linkonce section for syms
113 2011-08-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
115 * emultempl/armelf.em (fix_arm1176): New variable.
116 (arm_elf_create_output_section_statements): Pass
117 fix_arm1176 option to bfd backend.
118 (OPTION_FIX_ARM1176): New define.
119 (OPTION_NO_FIX_ARM1176): Likewise.
120 (PARSE_AND_LIST_LONGOPTS): Add new command line options.
121 (PARSE_AND_LIST_OPTIONS): Likewise.
122 (PARSE_AND_LIST_ARGS_CASES): Likewise.
123 * ld.texinfo: Document new command line options.
125 2011-08-09 Alan Modra <amodra@gmail.com>
128 * plugin.c (add_symbols): Revert 2011-08-05.
130 2011-08-06 Kai Tietz <ktietz@redhat.com>
132 * scripttempl/pep.sc: Add .debug_macro section.
133 * scripttempl/pe.sc: Likewise.
135 2011-08-05 Alan Modra <amodra@gmail.com>
138 * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
139 table if already seen.
141 2011-08-04 H.J. Lu <hongjiu.lu@intel.com>
143 * ldmain.c (main): Replace remove_output with ld_cleanup in
146 2011-07-26 Alan Modra <amodra@gmail.com>
148 * emulparams/elf32ppc.sh: Source plt_unwind.sh.
149 * emulparams/elf64ppc.sh: Likewise.
150 * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
151 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
152 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
154 * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
155 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
156 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
159 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
161 * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
164 (eelf_k1om_fbsd.c): Likewise.
165 * Makefile.in: Regenerated.
167 * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
168 is supported. Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
169 (targ_extra_emuls): Likewise.
171 * emulparams/elf_k1om.sh: New.
172 * emulparams/elf_k1om_fbsd.sh: Likewise.
174 2011-07-16 Roland McGrath <roland@hack.frob.com>
176 * ld.h (args_type): New field print_output_format.
177 * lexsup.c (enum option_values, ld_options, parse_args):
178 Handle --print-output-format.
179 * ldmain.c (main): Implement --print-output-format.
180 * ld.texinfo (Options): Document it.
182 * ldlang.c (lang_get_output_target): Don't return current_target
185 2011-07-15 Alan Modra <amodra@gmail.com>
187 * Makefile.am (e*.c): Sort.
188 * Makefile.in: Regenerate.
190 2011-07-14 Alan Modra <amodra@gmail.com>
192 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
193 gld${EMULATION_NAME}_list_options): Don't condition -z relro
194 and -z norelro on COMMONPAGESIZE being defined.
196 2011-07-14 Alan Modra <amodra@gmail.com>
198 * emultempl/ppc64elf.em (plt_static_chain): New var.
199 (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
200 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
201 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
202 --plt-static-chain and --no-plt-static-chain.
204 2011-07-14 Alan Modra <amodra@gmail.com>
206 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
207 gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
208 Provide --build-id, -z defs, -z muldefs, -z max-page-size,
209 -z common-page-size, -z execstack, -z noexecstack for all targets.
210 Add help for --exclude-libs.
211 (OPTION_LD_GENERATED_UNWIND_INFO,
212 OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
213 (gld${EMULATION_NAME}_handle_option): ..and code handling
214 --ld-generated-unwind-info and --no-ld-generated-unwind-info..
215 * emulparams/plt_unwind.sh: ..to here. New file. Add help.
216 * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
217 * emulparams/elf_i386.sh: Likewise.
218 * emulparams/elf_i386_chaos.sh: Likewise.
219 * emulparams/elf_i386_ldso.sh: Likewise.
220 * emulparams/elf_l1om.sh: Likewise.
221 * emulparams/elf_x86_64.sh: Likewise.
223 2011-07-11 Catherine Moore <clm@codesourcery.com>
225 * ld.h (section_flag_list): Add field to struct wildcard_spec.
226 * ld.texinfo (INPUT_SECTION_FLAGS): Document.
227 * ldgram.y (flag_info_list, flag_info): Add to union.
228 (INPUT_SECTION_FLAGS): New token.
229 (wildcard_spec): Initialize section_flag_list to NULL for
231 (sect_flag_list, sect_flags): New rules.
232 (input_section_spec_no_keep): Add alternatives to recognize
234 * ldlang.c (walk_wild_consider_section): Initialize
235 section_flag_info field of the section struct.
236 (lang_add_section): Check input section flags.
237 (lang_add_wild): Initialize section_flag_list field of
238 the statement struct.
239 * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
240 (lang_wild_statement_struct): Likewise.
241 * ldlex.l (INPUT_SECTION_FLAGS): New token.
242 * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
243 * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
245 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
248 * ldlang.c (section_already_linked): Pass "struct already_linked *"
249 to bfd_section_already_linked.
250 (lang_process): Set link_info.loading_lto_outputs before
252 * plugin.c: Include "libbfd.h".
253 (add_symbols): Call bfd_section_already_linked with comdat_key.
255 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
257 * configure.tgt: Revert x32 change.
259 2011-06-20 Jakub Jelinek <jakub@redhat.com>
262 * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
263 OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
264 (gld${EMULATION_NAME}_handle_option): Handle
265 --ld-generated-unwind-info and --no-ld-generated-unwind-info.
266 * ld.texinfo (--ld-generated-unwind-info,
267 --no-ld-generated-unwind-info): Document.
269 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
271 * configure.tgt: Support x32.
273 2011-06-15 Nick Clifton <nickc@redhat.com>
275 * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
277 2011-06-13 Walter Lee <walt@tilera.com>
279 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
281 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
282 (eelf32tilegx.c): New target.
283 (eelf32tilepro.c): Likewise.
284 (eelf64tilegx.c): Likewise.
285 * Makefile.in: Regenerate.
286 * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
287 * emulparams/elf32tilegx.sh: New file.
288 * emulparams/elf64tilegx.sh: New file.
289 * emulparams/elf32tilepro.sh: New file.
291 2011-06-13 Alan Modra <amodra@gmail.com>
293 * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
294 warning symbols here.
295 * emultempl/pe.em (pr_sym): Remove redundant test.
296 * emultempl/pep.em (pr_sym): Likewise.
298 2011-06-09 Nick Clifton <nickc@redhat.com>
301 * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
302 for sections that have been removed by garbage collection.
304 2011-06-08 Alan Modra <amodra@gmail.com>
306 * ldlang.c (lang_one_common): Handle warning symbols.
308 2011-06-07 Nick Clifton <nickc@redhat.com>
310 * configure.tgt: Accept any V850 architecture.
312 2011-06-03 Nick Clifton <nickc@redhat.com>
314 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
315 Add rule to build eelf32am33lin.c
316 * Makefile.in: Regenerate.
318 2011-06-02 Nick Clifton <nickc@redhat.com>
320 * lexsup.c: Fix spelling mistake in comment.
321 * scripttempl/epocpe.sc: Likewise.
322 * scripttempl/i386beos.sc: Likewise.
323 * scripttempl/mcorepe.sc: Likewise.
324 * scripttempl/pe.sc: Likewise.
325 * scripttempl/pep.sc: Likewise.
326 * po/ld.pot: Regenerate.
328 2011-05-27 Nick Clifton <nickc@redhat.com>
330 * scripttempl/v850.sc (_heap_start): Provide.
332 2011-05-23 Alan Modra <amodra@gmail.com>
334 * ldmisc.c (vfinfo): Add %H.
335 * ldmain.c (reloc_overflow): Use %H rather than %C.
336 (reloc_dangerous, unattached_reloc): Likewise.
338 2011-05-23 Alan Modra <amodra@gmail.com>
341 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
342 like sections to existing .sdata2, and similarly for orphan TLS
344 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
346 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
349 * emultempl/rxelf.em (ignore_lma): New variable.
350 (rx_elf_create_output_section_statements): Pass the setiing of
351 ignore_lma to bfd_elf32_rx_set_target_flags.
352 (OPTION_IGNORE_LMA): Define.
353 (OPTION_NO_IGNORE_LMA): Define.
354 (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
355 (PARSE_AND_LIST_OPTIONS): Add ignore lma.
356 (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
358 2011-05-17 Alan Modra <amodra@gmail.com>
361 * ldmain.c (notice): Add "flags" and "string" param.
362 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
363 and constructor syms.
365 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
367 * ldlang.c (print_assignment): Use the symbol's section if we
369 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
370 comment on copying symbol type.
372 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
375 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
378 2011-05-16 Alan Modra <amodra@gmail.com>
380 * ldlang.c (lang_leave_output_section_statement): Don't copy
381 previous lma_region if given address.
383 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
385 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
386 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
387 * Makefile.am (ALL_EMULATIONS): Add these files.
388 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
389 * Makefile.in: Regenerated.
390 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
392 * emulparams/elf32_tic6x_elf_be.sh: New file.
393 * emulparams/elf32_tic6x_elf_le.sh: New file.
394 * emulparams/elf32_tic6x_linux_be.sh: New file.
395 * emulparams/elf32_tic6x_linux_le.sh: New file.
396 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
397 (tic6x-*-*): Replaced by these.
399 2011-05-13 Jan Beulich <jbeulich@novell.com>
401 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
403 2011-05-09 Paul Brook <paul@codesourcery.com>
405 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
406 (compare_output_sec_vma): New function.
407 (gld${EMULATION_NAME}_after_allocation): New function.
408 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
409 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
410 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
411 (LDEMUL_AFTER_ALLOCATION): Set.
412 * ld.texinfo: Document c6x --no-merge-exidx-entries.
414 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
417 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
418 (__rt_psrelocs_end): Likewise.
419 (__rt_psrelocs_size): Likewise difference between the above.
420 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
421 immediately after end of pseudo-reloc data.
422 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
423 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
424 calculate backward from list end.
425 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
426 * scripttempl/pep.sc: Likewise.
428 2011-05-06 Tristan Gingold <gingold@adacore.com>
430 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
432 2011-05-04 Tristan Gingold <gingold@adacore.com>
434 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
435 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
436 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
437 (gld${EMULATION_NAME}_add_options): New function.
438 (gld${EMULATION_NAME}_list_options): Ditto.
439 (gld${EMULATION_NAME}_handle_option): Ditto.
440 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
441 (LDEMUL_LIST_OPTIONS): Define.
443 2011-05-04 Alan Modra <amodra@gmail.com>
446 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
447 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
448 assign to dot when lang_assigning_phase_enum.
449 * ldlang.h (lang_do_assignments): Update prototype.
450 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
452 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
453 lang_do_assignments calls.
455 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
458 * emultempl/pe.em (_after_open): Correctly check whether symbol is
461 2011-04-26 Kai Tietz <ktietz@redhat.com>
463 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
464 * scripttempl/pep.sc: Likewise.
466 2011-04-24 Alan Modra <amodra@gmail.com>
470 * ldmain.c (notice): Delete "name" param, add "h".
471 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
472 redefinitions of IR symbols in real BFDs.
473 (plugin_multiple_definition, plugin_multiple_common): Delete.
474 (non_ironly_hash, init_non_ironly_hash): Delete.
475 (is_visible_from_outside): Traverse entry_symbol chain.
476 (get_symbols): Use non_ir_ref flag rather than hash lookup.
478 2011-04-21 Tristan Gingold <gingold@adacore.com>
480 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
482 2011-04-20 Tristan Gingold <gingold@adacore.com>
484 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
486 2011-04-20 Alan Modra <amodra@gmail.com>
488 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
490 2011-04-20 Alan Modra <amodra@gmail.com>
493 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
495 * ldmain.c (add_archive_element): ..and similar code here..
496 * plugin.c (plugin_maybe_claim): ..to here. New function.
497 (plugin_call_claim_file): Make static.
498 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
499 (plugin_multiple_common): New function.
500 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
501 * plugin.h (plugin_call_claim_file): Don't declare.
502 (plugin_maybe_claim): Declare.
504 2011-04-20 Alan Modra <amodra@gmail.com>
507 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
508 pointer arg rather than "name", "obfd", "osec", "oval". Add code
509 removed from linker.c. Hack around xcofflink.c oddity in
511 (multiple_common): Similarly.
512 * plugin.c (orig_allow_multiple_defs): Delete.
513 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
514 (plugin_multiple_definition): Update.
516 2011-04-18 Kai Tietz <ktietz@redhat.com>
518 * deffilep.y (def_aligncomm): Avoid duplets.
520 * deffilep.y (def_pool_str): New type.
521 (pool_strs): Local static.
522 (def_pool_alloc): Local function.
523 (def_pool_strdup): Likewise.
524 (def_pool_free): Likewise.
525 (opt_name): Replace xmalloc/xstrdup by
526 def_pool_alloc/def_pool_strdup.
527 (dot_name): Likewise.
528 (anylang_id): Likewise.
530 (def_file_parse): Call def_pool_free on
531 exit and cleanup directives elements.
532 (def_file_add_directive): Call def_pool_free.
534 2011-04-18 Paul Brook <paul@codesourcery.com>
536 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
537 for unwinding tables.
539 2011-04-18 Alan Modra <amodra@gmail.com>
543 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
544 when no_more_claiming.
545 * ldmain.c (add_archive_element): Likewise.
546 (multiple_definition): Remove plugin_multiple_definition call.
547 (notice): Remove plugin_notice call.
548 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
550 (plugin_insert): New static var.
551 (open_input_bfds): Only rescan libs after plugin insert point.
552 (lang_gc_sections): Omit plugin claimed files.
553 (lang_process): Set plugin_insert. Only rescan when plugin adds
555 * plugin.h (no_more_claiming): Declare.
556 (plugin_notice, plugin_multiple_definition): Don't declare.
557 * plugin.c: Formatting.
558 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
559 plugin_callbacks): New static vars.
560 (no_more_claiming): Make global.
561 (plugin_cached_allow_multiple_defs): Delete.
562 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
563 use newer bfd_make_section variant. Make COMMON section too.
564 Error handling. Correct setting of gp size.
565 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
566 (message): Likewise for ACONCAT.
567 (asymbol_from_plugin_symbol): Use our COMMON section.
568 (get_symbols): When report_plugin_symbols, show visibility too.
569 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
570 (plugin_load_plugins): Save state of linker callbacks, set up to
571 call plugin_notice instead. Call init_non_ironly_hash here.
572 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
574 (plugin_notice): Rewrite.
575 (plugin_multiple_definition): Make static, call original callback.
577 2011-04-15 Alan Modra <amodra@gmail.com>
580 * ldlang.c (enum open_bfd_mode): New.
581 (open_input_bfds): Replace "force" param with "mode". Reload
582 archives for rescan. Update all callers.
583 (lang_process): Make another open_input_bfds pass for plugins.
585 2011-04-13 Kai Tietz <ktietz@redhat.com>
588 * deffile.h (def_file_add_export): Add is_dup argument.
589 (def_file_add_import): Likewise.
590 * deffilep.y (are_names_equal): New helper.
591 (cmp_export_elem): New helper.
592 (find_export_in_list): Add search routine for exports.
593 (def_file_add_export): Check for duplicates.
594 (cmp_import_elem): New helper.
595 (find_import_in_list): Add search routine for imports.
596 (def_file_add_import): Check for duplicates.
597 (def_exports): Handle duplicates.
598 (def_imports): Likewise.
599 * pe-dll.c (process_def_file_and_drectve): Likewise.
600 (pe_implied_import_dll): Likewise.
602 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
604 * scripttempl/elf.sc (.exception_ranges): Add new section.
606 2011-04-08 Hector Oron <hector.oron@gmail.com>
609 * configure.tgt: Add support for arm-*-gnueabihf targets.
611 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
613 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
615 2011-04-07 Joseph Myers <joseph@codesourcery.com>
617 * configure.tgt: Remove stray ;;.
619 2011-04-06 Joseph Myers <joseph@codesourcery.com>
621 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
622 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
623 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
624 xscale-*-coff, xscale-*-elf): Remove targets.
626 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
628 * configure.tgt: Add elf_l1om to targ_extra_libpath for
631 * emulparams/elf_l1om.sh: Remove duplicates.
633 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
635 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
636 GENERATE_SHLIB_SCRIPT): New defines.
637 (TEXT_START_ADDR): Define differently depending on target.
638 (.got): Redefine to include "*(.dsbt)".
639 (SDATA_START_SYMBOLS): Remove, replace with
640 (OTHER_GOT_SYMBOLS): New.
641 (OTHER_BSS_SECTIONS): Define only for ELF targets.
642 * emultempl/tic6xdsbt.em: New file.
643 * gen-doc.texi: Set C6X.
644 * ld.texinfo: Likewise.
645 (Options specific to C6X uClinux targets): New section.
647 2011-03-29 Alan Modra <amodra@gmail.com>
650 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
652 2011-03-26 John Marino <binutils@marino.st>
654 * configure.host: Update *-*-dragonfly* host entry.
655 * configure.tgt: Update *-*-dragonfly* target entry.
656 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
658 2011-03-28 Joseph Myers <joseph@codesourcery.com>
660 * configure.in: Check for windows.h, not Windows.h.
661 * configure: Regenerate.
662 * plugin.c: Include windows.h, not Windows.h.
664 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
666 * Makefile.in: Regenerate.
668 2011-03-23 Joseph Myers <joseph@codesourcery.com>
670 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
671 are enabled. Mark level as possibly unused.
673 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
675 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
676 (eavrxmega?.c): Likewise.
677 * configure.tgt (targ_extra_emuls): Likewise.
678 * emulparams/avrxmega1.sh: New file.
679 * emulparams/avrxmega2.sh: Likewise.
680 * emulparams/avrxmega3.sh: Likewise.
681 * emulparams/avrxmega4.sh: Likewise.
682 * emulparams/avrxmega5.sh: Likewise.
683 * emulparams/avrxmega6.sh: Likewise.
684 * emulparams/avrxmega7.sh: Likewise.
685 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
686 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
688 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
690 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
692 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
694 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
697 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
699 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
700 instead of dynamic_sections_created.
702 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
704 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
706 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
708 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
710 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
712 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
713 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
714 * ldmain.c (add_archive_element): Set it if the member is claimed.
715 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
716 (find_replacements_insert_point): New helper function.
717 (lang_process): After adding and opening replacement files passed
718 from plugin, splice them into correct place in statement list and
719 file chains to preserve critical link order.
720 (lang_list_insert_after): New helper function.
721 (lang_list_remove_tail): Likewise.
723 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
725 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
726 (IRONLY_SUFFIX_LEN): Delete.
727 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
728 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
729 enclosing lang input statement instead.
731 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
733 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
734 alignment of input sections when creating orphan output sections
735 during relocatable link.
736 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
738 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
740 * ld.texinfo: Document --verbose[=NUMBER].
742 * lexsup.c (ld_options): Update --verbose.
743 (parse_args): Set report_plugin_symbols.
745 * plugin.c (report_plugin_symbols): New.
746 (get_symbols): Report plugin symbols if report_plugin_symbols
749 * plugin.h (report_plugin_symbols): New.
751 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
754 * testplug.c: Don't include "filenames.h".
755 (onclaim_file): Don't use filename_cmp.
757 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
759 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
760 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
762 (gld${EMULATION_NAME}_stat_needed): Likewise.
763 (gld${EMULATION_NAME}_check_needed): Likewise.
764 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
765 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
766 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
767 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
768 * ldfile.c (ldfile_open_file): Likewise.
769 * ldlang.c (wild_sort): Likewise.
770 (lookup_name): Likewise.
771 (check_excluded_libs): Likewise.
772 * ldmisc.c (vfinfo): Likewise.
773 * pe-dll.c (libnamencmp): Likewise.
774 (auto_export): Likewise.
775 (pe_dll_generate_implib): Likewise.
776 * testplug.c (onclaim_file): Likewise.
778 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
781 * plugin.c (get_symbols): Don't check entry symbol here.
782 (init_non_ironly_hash): Add entry_symbol chain into
785 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
788 * plugin.c (get_symbols): Don't mark entry symbol IR only.
790 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
793 emulparams/hppalinux.sh (DATA_ADDR): Define.
794 (SHLIB_DATA_ADDR): Likewise.
796 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
798 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
801 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
803 * pe-dll.c (process_def_file_and_drectve): Don't strip
804 leading underscore from symbol by calling bfd_find_version_for_sym.
806 2011-02-14 Mike Frysinger <vapier@gentoo.org>
808 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
809 the bfd_demangle of sym, change users of sym to c_sym when not
810 already demangling, and free when done. Change callers of
811 cplus_demangle to bfd_demangle.
813 2011-02-14 Alan Modra <amodra@gmail.com>
815 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
816 .text section, use newer bfd_make_section variant. Error handling.
817 Correct setting of gp size.
818 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
819 (message): Likewise for ACONCAT.
820 (get_symbols): Formatting.
822 2011-02-14 Alan Modra <amodra@gmail.com>
824 * ldmain.c (remove_output): Rename to..
825 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
827 * plugin.c (plugin_call_cleanup): Make global.
828 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
829 * plugin.h (plugin_call_cleanup): Declare.
831 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
833 * configure: Regenerate.
835 2011-02-10 Alan Modra <amodra@gmail.com>
837 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
838 * scripttempl/avr.sc: Likewise.
839 * scripttempl/elf32cr16.sc: Likewise.
840 * scripttempl/elf32crx.sc: Likewise.
841 * scripttempl/elf32msp430.sc: Likewise.
842 * scripttempl/elf32msp430_3.sc: Likewise.
843 * scripttempl/elf32sh-symbian.sc: Likewise.
844 * scripttempl/elf64hppa.sc: Likewise.
845 * scripttempl/elf_chaos.sc: Likewise.
846 * scripttempl/elfd10v.sc: Likewise.
847 * scripttempl/elfd30v.sc: Likewise.
848 * scripttempl/elfi370.sc: Likewise.
849 * scripttempl/elfm68hc11.sc: Likewise.
850 * scripttempl/elfm68hc12.sc: Likewise.
851 * scripttempl/elfxtensa.sc: Likewise.
852 * scripttempl/ip2k.sc: Likewise.
853 * scripttempl/iq2000.sc: Likewise.
854 * scripttempl/mep.sc: Likewise.
855 * scripttempl/mmo.sc: Likewise.
856 * scripttempl/v850.sc: Likewise.
857 * scripttempl/xstormy16.sc: Likewise.
858 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
860 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
862 * Makefile.am (CXX): Removed.
864 * configure.in: Add AC_PROG_CXX.
866 * Makefile.in: Regenerated.
867 * configure: Likewise.
869 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
871 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
872 private data and GP size.
874 2011-01-21 Alan Modra <amodra@gmail.com>
876 * ldexp.c (fold_binary): Set result section for arithmetic and
877 logical operations to NULL when both operands are in same section.
878 * ld.texinfo (Expression Section): Describe this.
880 2011-01-14 Alan Modra <amodra@gmail.com>
882 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
883 attempt to put non-alloc orphans before debug sections, just place
886 2011-01-14 J. Park <grassman@gmail.com>
889 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
891 2011-01-14 Alan Modra <amodra@gmail.com>
893 * Makefile.am: Sort emulation rules.
894 (eelf32am33lin.c): Delete.
895 (ALL_EMULATION_SOURCES): Sort, add missing entries.
896 (ALL_64_EMULATION_SOURCES): Likewise.
897 * Makefile.in: Regenerate.
899 2011-01-13 Alan Modra <amodra@gmail.com>
902 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
903 (Expression Section): Update.
904 * ld.h (ld_config_type): Add sane_expr.
905 * ldgram.y (ifile_p1): Add LD_FEATURE.
906 * ldlex.l (LD_FEATYRE): New.
907 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
908 * ldexp.h (struct ldexp_control): Delete uses_defined.
909 * ldexp.c: Remove all uses of uses_defined.
910 (fold_name): Test config.sane_expr rather than ld_compatibility.
911 (exp_fold_tree_1): Likewise. Adjust handling of assignments
913 * ldlang.h (ld_compatibility): Delete.
914 (lang_ld_feature): Declare.
915 * ldlang.c (ld_compatibility): Delete.
916 (open_input_bfds): Only handle assignments for --defsym.
917 (lang_ld_feature): New function.
920 * ldexp.h (exp_assop): Delete.
921 (exp_assign, exp_defsym): Declare.
922 * ldexp.c (exp_assop): Make static, handle all assignment variations.
923 (exp_assign, exp_defsym): New functions.
924 (exp_provide): Use exp_assop.
925 * ldgram.y (defsym_expr): Use exp_defsym.
926 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
927 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
928 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
930 2011-01-12 Alan Modra <amodra@gmail.com>
933 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
934 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
935 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
936 to detect when we've finished sizing sections.
937 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
938 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
939 that we are not inside an output section statement.
940 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
941 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
942 lang_final_phase_enum here.
943 (lang_process): Set lang_final_phase_enum here.
945 2011-01-10 Nick Clifton <nickc@redhat.com>
947 * po/da.po: Updated Danish translation.
949 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
951 * ldlang.c (startup_file): Removed.
952 (lang_startup): Updated.
954 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
957 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
958 before accessing its flags field.
960 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
962 * ldver.c (ldversion): Update copyright to 2011.
964 For older changes see ChangeLog-2010
970 version-control: never