1 2011-10-20 Alan Modra <amodra@gmail.com>
4 * plugin.c (plugin_should_reload): New function.
5 * plugin.h (plugin_should_reload): Declare.
6 * ldlang.c (open_input_bfds): Use above function.
8 2011-10-19 Alan Modra <amodra@gmail.com>
11 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
12 -z text, -z notext, -z textoff options for all targets having
15 2011-10-15 Alan Modra <amodra@gmail.com>
17 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Remove toc check.
19 2011-10-13 Dave Korn <dave.korn.cygwin@gmail.com>
21 * pe-dll.c (generate_reloc): Don't emit a base reloc for an
22 underlying BFD reloc that will be discarded in eh_frame data.
24 2011-10-10 Nick Clifton <nickc@redhat.com>
26 * po/bg.po: Updated Bulgarian translation.
27 * po/es.po: Updated Spanish translation.
28 * po/fi.po: Updated Finnish translation.
29 * po/fr.po: Updated French translation.
31 2011-10-10 Alan Modra <amodra@gmail.com>
33 * ldmain.c (main): Move code twiddling various config and link_info
35 * lexsup.c (parse_args): ..here. Move plugin_load_plugins call
37 * plugin.c (set_tv_header): Test link_info.executable, not
39 (is_visible_from_outside): Likewise. Delete redundant
40 is_ir_dummy_bfd check and "section" parameter.
42 2011-10-10 Alan Modra <amodra@gmail.com>
44 * emultempl/ppc64elf.em (ppc_add_stub_section): Align to 32 bytes.
46 2011-10-09 Alan Modra <amodra@gmail.com>
48 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Add
49 missing colon to error message.
50 (ppc_before_allocation): Likewise.
52 2011-10-06 Alan Modra <amodra@gmail.com>
55 * plugin.c (tv_header_tags): Add LDPT_GET_SYMBOLS_V2.
56 (set_tv_header): Handle it. Adjust LDPT_GET_SYMBOLS. Return void.
57 (get_symbols): Add def_ironly_exp param. Return that value for
58 syms exported from shared libs.
59 (get_symbols_v1, get_symbols_v2): New wrapper functions.
60 * testplug.c: Update for above changes.
62 2011-09-27 Kai Tietz <ktietz@redhat.com>
64 * scripttempl/pe.sc (.text): Add support for
65 .gnu.linkonce.t.* section.
66 (.debug_info): Only use .gnu.linkonce.wi.* for
68 * scripttempl/pep.sc: Likewise.
70 2011-09-22 Tristan Gingold <gingold@adacore.com>
72 * NEWS: Add marker for 2.22.
74 2011-09-20 Alan Modra <amodra@gmail.com>
77 * ldlang.h (lang_input_statement_type): Add "reload" bitfield.
79 * ldlang.c (new_afile): Init new field.
80 (load_symbols): Don't call ldlang_add_file when reloading.
81 (open_input_bfds): Reload as-needed libs during plugin rescan.
83 2011-09-15 H.J. Lu <hongjiu.lu@intel.com>
86 * ldlang.c (lang_elf_version_info): Removed.
87 (lang_register_vers_node): Replace lang_elf_version_info with
88 link_info.version_info.
89 (lang_add_vers_depend): Likewise.
90 * pe-dll.c (process_def_file_and_drectve): Likewise.
91 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
93 * ldlang.h (lang_elf_version_info): Removed.
95 * plugin.c (is_visible_from_outside): Check if symbol is hidden
98 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
99 Remove lang_elf_version_info.
101 2011-09-15 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
104 * ldmain.c (add_archive_element): Support thin archive member
107 2011-08-26 Nick Clifton <nickc@redhat.com>
109 * po/es.po: Updated Spanish translation.
111 2011-08-26 Nick Clifton <nickc@redhat.com>
113 * NEWS: Mention that --no-copy-dt-needed-entries is now the
116 2011-08-22 Michael Matz <matz@suse.de>
118 * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
119 * ld.texinfo (--copy-dt-needed-entries): Mention new default.
121 2011-08-17 Alan Modra <amodra@gmail.com>
124 * ldlang.c (section_already_linked): Revert 2011-07-09 changes.
125 * plugin.c: Likewise.
126 (asymbol_from_plugin_symbol): Create linkonce section for syms
129 2011-08-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
131 * emultempl/armelf.em (fix_arm1176): New variable.
132 (arm_elf_create_output_section_statements): Pass
133 fix_arm1176 option to bfd backend.
134 (OPTION_FIX_ARM1176): New define.
135 (OPTION_NO_FIX_ARM1176): Likewise.
136 (PARSE_AND_LIST_LONGOPTS): Add new command line options.
137 (PARSE_AND_LIST_OPTIONS): Likewise.
138 (PARSE_AND_LIST_ARGS_CASES): Likewise.
139 * ld.texinfo: Document new command line options.
141 2011-08-09 Alan Modra <amodra@gmail.com>
144 * plugin.c (add_symbols): Revert 2011-08-05.
146 2011-08-06 Kai Tietz <ktietz@redhat.com>
148 * scripttempl/pep.sc: Add .debug_macro section.
149 * scripttempl/pe.sc: Likewise.
151 2011-08-05 Alan Modra <amodra@gmail.com>
154 * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
155 table if already seen.
157 2011-08-04 H.J. Lu <hongjiu.lu@intel.com>
159 * ldmain.c (main): Replace remove_output with ld_cleanup in
162 2011-07-26 Alan Modra <amodra@gmail.com>
164 * emulparams/elf32ppc.sh: Source plt_unwind.sh.
165 * emulparams/elf64ppc.sh: Likewise.
166 * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
167 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
168 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
170 * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
171 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
172 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
175 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
177 * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
180 (eelf_k1om_fbsd.c): Likewise.
181 * Makefile.in: Regenerated.
183 * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
184 is supported. Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
185 (targ_extra_emuls): Likewise.
187 * emulparams/elf_k1om.sh: New.
188 * emulparams/elf_k1om_fbsd.sh: Likewise.
190 2011-07-16 Roland McGrath <roland@hack.frob.com>
192 * ld.h (args_type): New field print_output_format.
193 * lexsup.c (enum option_values, ld_options, parse_args):
194 Handle --print-output-format.
195 * ldmain.c (main): Implement --print-output-format.
196 * ld.texinfo (Options): Document it.
198 * ldlang.c (lang_get_output_target): Don't return current_target
201 2011-07-15 Alan Modra <amodra@gmail.com>
203 * Makefile.am (e*.c): Sort.
204 * Makefile.in: Regenerate.
206 2011-07-14 Alan Modra <amodra@gmail.com>
208 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
209 gld${EMULATION_NAME}_list_options): Don't condition -z relro
210 and -z norelro on COMMONPAGESIZE being defined.
212 2011-07-14 Alan Modra <amodra@gmail.com>
214 * emultempl/ppc64elf.em (plt_static_chain): New var.
215 (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
216 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
217 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
218 --plt-static-chain and --no-plt-static-chain.
220 2011-07-14 Alan Modra <amodra@gmail.com>
222 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
223 gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
224 Provide --build-id, -z defs, -z muldefs, -z max-page-size,
225 -z common-page-size, -z execstack, -z noexecstack for all targets.
226 Add help for --exclude-libs.
227 (OPTION_LD_GENERATED_UNWIND_INFO,
228 OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
229 (gld${EMULATION_NAME}_handle_option): ..and code handling
230 --ld-generated-unwind-info and --no-ld-generated-unwind-info..
231 * emulparams/plt_unwind.sh: ..to here. New file. Add help.
232 * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
233 * emulparams/elf_i386.sh: Likewise.
234 * emulparams/elf_i386_chaos.sh: Likewise.
235 * emulparams/elf_i386_ldso.sh: Likewise.
236 * emulparams/elf_l1om.sh: Likewise.
237 * emulparams/elf_x86_64.sh: Likewise.
239 2011-07-11 Catherine Moore <clm@codesourcery.com>
241 * ld.h (section_flag_list): Add field to struct wildcard_spec.
242 * ld.texinfo (INPUT_SECTION_FLAGS): Document.
243 * ldgram.y (flag_info_list, flag_info): Add to union.
244 (INPUT_SECTION_FLAGS): New token.
245 (wildcard_spec): Initialize section_flag_list to NULL for
247 (sect_flag_list, sect_flags): New rules.
248 (input_section_spec_no_keep): Add alternatives to recognize
250 * ldlang.c (walk_wild_consider_section): Initialize
251 section_flag_info field of the section struct.
252 (lang_add_section): Check input section flags.
253 (lang_add_wild): Initialize section_flag_list field of
254 the statement struct.
255 * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
256 (lang_wild_statement_struct): Likewise.
257 * ldlex.l (INPUT_SECTION_FLAGS): New token.
258 * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
259 * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
261 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
264 * ldlang.c (section_already_linked): Pass "struct already_linked *"
265 to bfd_section_already_linked.
266 (lang_process): Set link_info.loading_lto_outputs before
268 * plugin.c: Include "libbfd.h".
269 (add_symbols): Call bfd_section_already_linked with comdat_key.
271 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
273 * configure.tgt: Revert x32 change.
275 2011-06-20 Jakub Jelinek <jakub@redhat.com>
278 * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
279 OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
280 (gld${EMULATION_NAME}_handle_option): Handle
281 --ld-generated-unwind-info and --no-ld-generated-unwind-info.
282 * ld.texinfo (--ld-generated-unwind-info,
283 --no-ld-generated-unwind-info): Document.
285 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
287 * configure.tgt: Support x32.
289 2011-06-15 Nick Clifton <nickc@redhat.com>
291 * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
293 2011-06-13 Walter Lee <walt@tilera.com>
295 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
297 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
298 (eelf32tilegx.c): New target.
299 (eelf32tilepro.c): Likewise.
300 (eelf64tilegx.c): Likewise.
301 * Makefile.in: Regenerate.
302 * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
303 * emulparams/elf32tilegx.sh: New file.
304 * emulparams/elf64tilegx.sh: New file.
305 * emulparams/elf32tilepro.sh: New file.
307 2011-06-13 Alan Modra <amodra@gmail.com>
309 * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
310 warning symbols here.
311 * emultempl/pe.em (pr_sym): Remove redundant test.
312 * emultempl/pep.em (pr_sym): Likewise.
314 2011-06-09 Nick Clifton <nickc@redhat.com>
317 * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
318 for sections that have been removed by garbage collection.
320 2011-06-08 Alan Modra <amodra@gmail.com>
322 * ldlang.c (lang_one_common): Handle warning symbols.
324 2011-06-07 Nick Clifton <nickc@redhat.com>
326 * configure.tgt: Accept any V850 architecture.
328 2011-06-03 Nick Clifton <nickc@redhat.com>
330 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
331 Add rule to build eelf32am33lin.c
332 * Makefile.in: Regenerate.
334 2011-06-02 Nick Clifton <nickc@redhat.com>
336 * lexsup.c: Fix spelling mistake in comment.
337 * scripttempl/epocpe.sc: Likewise.
338 * scripttempl/i386beos.sc: Likewise.
339 * scripttempl/mcorepe.sc: Likewise.
340 * scripttempl/pe.sc: Likewise.
341 * scripttempl/pep.sc: Likewise.
342 * po/ld.pot: Regenerate.
344 2011-05-27 Nick Clifton <nickc@redhat.com>
346 * scripttempl/v850.sc (_heap_start): Provide.
348 2011-05-23 Alan Modra <amodra@gmail.com>
350 * ldmisc.c (vfinfo): Add %H.
351 * ldmain.c (reloc_overflow): Use %H rather than %C.
352 (reloc_dangerous, unattached_reloc): Likewise.
354 2011-05-23 Alan Modra <amodra@gmail.com>
357 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
358 like sections to existing .sdata2, and similarly for orphan TLS
360 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
362 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
365 * emultempl/rxelf.em (ignore_lma): New variable.
366 (rx_elf_create_output_section_statements): Pass the setiing of
367 ignore_lma to bfd_elf32_rx_set_target_flags.
368 (OPTION_IGNORE_LMA): Define.
369 (OPTION_NO_IGNORE_LMA): Define.
370 (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
371 (PARSE_AND_LIST_OPTIONS): Add ignore lma.
372 (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
374 2011-05-17 Alan Modra <amodra@gmail.com>
377 * ldmain.c (notice): Add "flags" and "string" param.
378 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
379 and constructor syms.
381 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
383 * ldlang.c (print_assignment): Use the symbol's section if we
385 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
386 comment on copying symbol type.
388 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
391 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
394 2011-05-16 Alan Modra <amodra@gmail.com>
396 * ldlang.c (lang_leave_output_section_statement): Don't copy
397 previous lma_region if given address.
399 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
401 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
402 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
403 * Makefile.am (ALL_EMULATIONS): Add these files.
404 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
405 * Makefile.in: Regenerated.
406 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
408 * emulparams/elf32_tic6x_elf_be.sh: New file.
409 * emulparams/elf32_tic6x_elf_le.sh: New file.
410 * emulparams/elf32_tic6x_linux_be.sh: New file.
411 * emulparams/elf32_tic6x_linux_le.sh: New file.
412 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
413 (tic6x-*-*): Replaced by these.
415 2011-05-13 Jan Beulich <jbeulich@novell.com>
417 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
419 2011-05-09 Paul Brook <paul@codesourcery.com>
421 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
422 (compare_output_sec_vma): New function.
423 (gld${EMULATION_NAME}_after_allocation): New function.
424 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
425 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
426 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
427 (LDEMUL_AFTER_ALLOCATION): Set.
428 * ld.texinfo: Document c6x --no-merge-exidx-entries.
430 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
433 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
434 (__rt_psrelocs_end): Likewise.
435 (__rt_psrelocs_size): Likewise difference between the above.
436 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
437 immediately after end of pseudo-reloc data.
438 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
439 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
440 calculate backward from list end.
441 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
442 * scripttempl/pep.sc: Likewise.
444 2011-05-06 Tristan Gingold <gingold@adacore.com>
446 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
448 2011-05-04 Tristan Gingold <gingold@adacore.com>
450 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
451 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
452 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
453 (gld${EMULATION_NAME}_add_options): New function.
454 (gld${EMULATION_NAME}_list_options): Ditto.
455 (gld${EMULATION_NAME}_handle_option): Ditto.
456 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
457 (LDEMUL_LIST_OPTIONS): Define.
459 2011-05-04 Alan Modra <amodra@gmail.com>
462 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
463 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
464 assign to dot when lang_assigning_phase_enum.
465 * ldlang.h (lang_do_assignments): Update prototype.
466 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
468 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
469 lang_do_assignments calls.
471 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
474 * emultempl/pe.em (_after_open): Correctly check whether symbol is
477 2011-04-26 Kai Tietz <ktietz@redhat.com>
479 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
480 * scripttempl/pep.sc: Likewise.
482 2011-04-24 Alan Modra <amodra@gmail.com>
486 * ldmain.c (notice): Delete "name" param, add "h".
487 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
488 redefinitions of IR symbols in real BFDs.
489 (plugin_multiple_definition, plugin_multiple_common): Delete.
490 (non_ironly_hash, init_non_ironly_hash): Delete.
491 (is_visible_from_outside): Traverse entry_symbol chain.
492 (get_symbols): Use non_ir_ref flag rather than hash lookup.
494 2011-04-21 Tristan Gingold <gingold@adacore.com>
496 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
498 2011-04-20 Tristan Gingold <gingold@adacore.com>
500 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
502 2011-04-20 Alan Modra <amodra@gmail.com>
504 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
506 2011-04-20 Alan Modra <amodra@gmail.com>
509 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
511 * ldmain.c (add_archive_element): ..and similar code here..
512 * plugin.c (plugin_maybe_claim): ..to here. New function.
513 (plugin_call_claim_file): Make static.
514 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
515 (plugin_multiple_common): New function.
516 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
517 * plugin.h (plugin_call_claim_file): Don't declare.
518 (plugin_maybe_claim): Declare.
520 2011-04-20 Alan Modra <amodra@gmail.com>
523 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
524 pointer arg rather than "name", "obfd", "osec", "oval". Add code
525 removed from linker.c. Hack around xcofflink.c oddity in
527 (multiple_common): Similarly.
528 * plugin.c (orig_allow_multiple_defs): Delete.
529 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
530 (plugin_multiple_definition): Update.
532 2011-04-18 Kai Tietz <ktietz@redhat.com>
534 * deffilep.y (def_aligncomm): Avoid duplets.
536 * deffilep.y (def_pool_str): New type.
537 (pool_strs): Local static.
538 (def_pool_alloc): Local function.
539 (def_pool_strdup): Likewise.
540 (def_pool_free): Likewise.
541 (opt_name): Replace xmalloc/xstrdup by
542 def_pool_alloc/def_pool_strdup.
543 (dot_name): Likewise.
544 (anylang_id): Likewise.
546 (def_file_parse): Call def_pool_free on
547 exit and cleanup directives elements.
548 (def_file_add_directive): Call def_pool_free.
550 2011-04-18 Paul Brook <paul@codesourcery.com>
552 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
553 for unwinding tables.
555 2011-04-18 Alan Modra <amodra@gmail.com>
559 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
560 when no_more_claiming.
561 * ldmain.c (add_archive_element): Likewise.
562 (multiple_definition): Remove plugin_multiple_definition call.
563 (notice): Remove plugin_notice call.
564 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
566 (plugin_insert): New static var.
567 (open_input_bfds): Only rescan libs after plugin insert point.
568 (lang_gc_sections): Omit plugin claimed files.
569 (lang_process): Set plugin_insert. Only rescan when plugin adds
571 * plugin.h (no_more_claiming): Declare.
572 (plugin_notice, plugin_multiple_definition): Don't declare.
573 * plugin.c: Formatting.
574 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
575 plugin_callbacks): New static vars.
576 (no_more_claiming): Make global.
577 (plugin_cached_allow_multiple_defs): Delete.
578 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
579 use newer bfd_make_section variant. Make COMMON section too.
580 Error handling. Correct setting of gp size.
581 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
582 (message): Likewise for ACONCAT.
583 (asymbol_from_plugin_symbol): Use our COMMON section.
584 (get_symbols): When report_plugin_symbols, show visibility too.
585 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
586 (plugin_load_plugins): Save state of linker callbacks, set up to
587 call plugin_notice instead. Call init_non_ironly_hash here.
588 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
590 (plugin_notice): Rewrite.
591 (plugin_multiple_definition): Make static, call original callback.
593 2011-04-15 Alan Modra <amodra@gmail.com>
596 * ldlang.c (enum open_bfd_mode): New.
597 (open_input_bfds): Replace "force" param with "mode". Reload
598 archives for rescan. Update all callers.
599 (lang_process): Make another open_input_bfds pass for plugins.
601 2011-04-13 Kai Tietz <ktietz@redhat.com>
604 * deffile.h (def_file_add_export): Add is_dup argument.
605 (def_file_add_import): Likewise.
606 * deffilep.y (are_names_equal): New helper.
607 (cmp_export_elem): New helper.
608 (find_export_in_list): Add search routine for exports.
609 (def_file_add_export): Check for duplicates.
610 (cmp_import_elem): New helper.
611 (find_import_in_list): Add search routine for imports.
612 (def_file_add_import): Check for duplicates.
613 (def_exports): Handle duplicates.
614 (def_imports): Likewise.
615 * pe-dll.c (process_def_file_and_drectve): Likewise.
616 (pe_implied_import_dll): Likewise.
618 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
620 * scripttempl/elf.sc (.exception_ranges): Add new section.
622 2011-04-08 Hector Oron <hector.oron@gmail.com>
625 * configure.tgt: Add support for arm-*-gnueabihf targets.
627 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
629 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
631 2011-04-07 Joseph Myers <joseph@codesourcery.com>
633 * configure.tgt: Remove stray ;;.
635 2011-04-06 Joseph Myers <joseph@codesourcery.com>
637 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
638 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
639 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
640 xscale-*-coff, xscale-*-elf): Remove targets.
642 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
644 * configure.tgt: Add elf_l1om to targ_extra_libpath for
647 * emulparams/elf_l1om.sh: Remove duplicates.
649 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
651 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
652 GENERATE_SHLIB_SCRIPT): New defines.
653 (TEXT_START_ADDR): Define differently depending on target.
654 (.got): Redefine to include "*(.dsbt)".
655 (SDATA_START_SYMBOLS): Remove, replace with
656 (OTHER_GOT_SYMBOLS): New.
657 (OTHER_BSS_SECTIONS): Define only for ELF targets.
658 * emultempl/tic6xdsbt.em: New file.
659 * gen-doc.texi: Set C6X.
660 * ld.texinfo: Likewise.
661 (Options specific to C6X uClinux targets): New section.
663 2011-03-29 Alan Modra <amodra@gmail.com>
666 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
668 2011-03-26 John Marino <binutils@marino.st>
670 * configure.host: Update *-*-dragonfly* host entry.
671 * configure.tgt: Update *-*-dragonfly* target entry.
672 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
674 2011-03-28 Joseph Myers <joseph@codesourcery.com>
676 * configure.in: Check for windows.h, not Windows.h.
677 * configure: Regenerate.
678 * plugin.c: Include windows.h, not Windows.h.
680 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
682 * Makefile.in: Regenerate.
684 2011-03-23 Joseph Myers <joseph@codesourcery.com>
686 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
687 are enabled. Mark level as possibly unused.
689 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
691 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
692 (eavrxmega?.c): Likewise.
693 * configure.tgt (targ_extra_emuls): Likewise.
694 * emulparams/avrxmega1.sh: New file.
695 * emulparams/avrxmega2.sh: Likewise.
696 * emulparams/avrxmega3.sh: Likewise.
697 * emulparams/avrxmega4.sh: Likewise.
698 * emulparams/avrxmega5.sh: Likewise.
699 * emulparams/avrxmega6.sh: Likewise.
700 * emulparams/avrxmega7.sh: Likewise.
701 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
702 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
704 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
706 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
708 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
710 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
713 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
715 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
716 instead of dynamic_sections_created.
718 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
720 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
722 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
724 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
726 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
728 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
729 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
730 * ldmain.c (add_archive_element): Set it if the member is claimed.
731 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
732 (find_replacements_insert_point): New helper function.
733 (lang_process): After adding and opening replacement files passed
734 from plugin, splice them into correct place in statement list and
735 file chains to preserve critical link order.
736 (lang_list_insert_after): New helper function.
737 (lang_list_remove_tail): Likewise.
739 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
741 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
742 (IRONLY_SUFFIX_LEN): Delete.
743 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
744 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
745 enclosing lang input statement instead.
747 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
749 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
750 alignment of input sections when creating orphan output sections
751 during relocatable link.
752 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
754 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
756 * ld.texinfo: Document --verbose[=NUMBER].
758 * lexsup.c (ld_options): Update --verbose.
759 (parse_args): Set report_plugin_symbols.
761 * plugin.c (report_plugin_symbols): New.
762 (get_symbols): Report plugin symbols if report_plugin_symbols
765 * plugin.h (report_plugin_symbols): New.
767 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
770 * testplug.c: Don't include "filenames.h".
771 (onclaim_file): Don't use filename_cmp.
773 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
775 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
776 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
778 (gld${EMULATION_NAME}_stat_needed): Likewise.
779 (gld${EMULATION_NAME}_check_needed): Likewise.
780 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
781 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
782 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
783 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
784 * ldfile.c (ldfile_open_file): Likewise.
785 * ldlang.c (wild_sort): Likewise.
786 (lookup_name): Likewise.
787 (check_excluded_libs): Likewise.
788 * ldmisc.c (vfinfo): Likewise.
789 * pe-dll.c (libnamencmp): Likewise.
790 (auto_export): Likewise.
791 (pe_dll_generate_implib): Likewise.
792 * testplug.c (onclaim_file): Likewise.
794 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
797 * plugin.c (get_symbols): Don't check entry symbol here.
798 (init_non_ironly_hash): Add entry_symbol chain into
801 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
804 * plugin.c (get_symbols): Don't mark entry symbol IR only.
806 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
809 emulparams/hppalinux.sh (DATA_ADDR): Define.
810 (SHLIB_DATA_ADDR): Likewise.
812 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
814 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
817 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
819 * pe-dll.c (process_def_file_and_drectve): Don't strip
820 leading underscore from symbol by calling bfd_find_version_for_sym.
822 2011-02-14 Mike Frysinger <vapier@gentoo.org>
824 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
825 the bfd_demangle of sym, change users of sym to c_sym when not
826 already demangling, and free when done. Change callers of
827 cplus_demangle to bfd_demangle.
829 2011-02-14 Alan Modra <amodra@gmail.com>
831 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
832 .text section, use newer bfd_make_section variant. Error handling.
833 Correct setting of gp size.
834 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
835 (message): Likewise for ACONCAT.
836 (get_symbols): Formatting.
838 2011-02-14 Alan Modra <amodra@gmail.com>
840 * ldmain.c (remove_output): Rename to..
841 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
843 * plugin.c (plugin_call_cleanup): Make global.
844 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
845 * plugin.h (plugin_call_cleanup): Declare.
847 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
849 * configure: Regenerate.
851 2011-02-10 Alan Modra <amodra@gmail.com>
853 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
854 * scripttempl/avr.sc: Likewise.
855 * scripttempl/elf32cr16.sc: Likewise.
856 * scripttempl/elf32crx.sc: Likewise.
857 * scripttempl/elf32msp430.sc: Likewise.
858 * scripttempl/elf32msp430_3.sc: Likewise.
859 * scripttempl/elf32sh-symbian.sc: Likewise.
860 * scripttempl/elf64hppa.sc: Likewise.
861 * scripttempl/elf_chaos.sc: Likewise.
862 * scripttempl/elfd10v.sc: Likewise.
863 * scripttempl/elfd30v.sc: Likewise.
864 * scripttempl/elfi370.sc: Likewise.
865 * scripttempl/elfm68hc11.sc: Likewise.
866 * scripttempl/elfm68hc12.sc: Likewise.
867 * scripttempl/elfxtensa.sc: Likewise.
868 * scripttempl/ip2k.sc: Likewise.
869 * scripttempl/iq2000.sc: Likewise.
870 * scripttempl/mep.sc: Likewise.
871 * scripttempl/mmo.sc: Likewise.
872 * scripttempl/v850.sc: Likewise.
873 * scripttempl/xstormy16.sc: Likewise.
874 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
876 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
878 * Makefile.am (CXX): Removed.
880 * configure.in: Add AC_PROG_CXX.
882 * Makefile.in: Regenerated.
883 * configure: Likewise.
885 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
887 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
888 private data and GP size.
890 2011-01-21 Alan Modra <amodra@gmail.com>
892 * ldexp.c (fold_binary): Set result section for arithmetic and
893 logical operations to NULL when both operands are in same section.
894 * ld.texinfo (Expression Section): Describe this.
896 2011-01-14 Alan Modra <amodra@gmail.com>
898 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
899 attempt to put non-alloc orphans before debug sections, just place
902 2011-01-14 J. Park <grassman@gmail.com>
905 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
907 2011-01-14 Alan Modra <amodra@gmail.com>
909 * Makefile.am: Sort emulation rules.
910 (eelf32am33lin.c): Delete.
911 (ALL_EMULATION_SOURCES): Sort, add missing entries.
912 (ALL_64_EMULATION_SOURCES): Likewise.
913 * Makefile.in: Regenerate.
915 2011-01-13 Alan Modra <amodra@gmail.com>
918 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
919 (Expression Section): Update.
920 * ld.h (ld_config_type): Add sane_expr.
921 * ldgram.y (ifile_p1): Add LD_FEATURE.
922 * ldlex.l (LD_FEATYRE): New.
923 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
924 * ldexp.h (struct ldexp_control): Delete uses_defined.
925 * ldexp.c: Remove all uses of uses_defined.
926 (fold_name): Test config.sane_expr rather than ld_compatibility.
927 (exp_fold_tree_1): Likewise. Adjust handling of assignments
929 * ldlang.h (ld_compatibility): Delete.
930 (lang_ld_feature): Declare.
931 * ldlang.c (ld_compatibility): Delete.
932 (open_input_bfds): Only handle assignments for --defsym.
933 (lang_ld_feature): New function.
936 * ldexp.h (exp_assop): Delete.
937 (exp_assign, exp_defsym): Declare.
938 * ldexp.c (exp_assop): Make static, handle all assignment variations.
939 (exp_assign, exp_defsym): New functions.
940 (exp_provide): Use exp_assop.
941 * ldgram.y (defsym_expr): Use exp_defsym.
942 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
943 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
944 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
946 2011-01-12 Alan Modra <amodra@gmail.com>
949 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
950 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
951 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
952 to detect when we've finished sizing sections.
953 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
954 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
955 that we are not inside an output section statement.
956 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
957 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
958 lang_final_phase_enum here.
959 (lang_process): Set lang_final_phase_enum here.
961 2011-01-10 Nick Clifton <nickc@redhat.com>
963 * po/da.po: Updated Danish translation.
965 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
967 * ldlang.c (startup_file): Removed.
968 (lang_startup): Updated.
970 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
973 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
974 before accessing its flags field.
976 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
978 * ldver.c (ldversion): Update copyright to 2011.
980 For older changes see ChangeLog-2010
986 version-control: never