2011-09-19 Tristan Gingold <gingold@adacore.com>
[binutils.git] / ld / ChangeLog
blobcafca0ec98865ad47e049bc32b312acf8d35d35d
1 2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>
3         PR ld/12975
4         * ldlang.c (lang_elf_version_info): Removed.
5         (lang_register_vers_node): Replace lang_elf_version_info with
6         link_info.version_info.
7         (lang_add_vers_depend): Likewise.
8         * pe-dll.c (process_def_file_and_drectve): Likewise.
9         * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
11         * ldlang.h (lang_elf_version_info): Removed.
13         * plugin.c  (is_visible_from_outside): Check if symbol is hidden
14         by version script.
16         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
17         Remove lang_elf_version_info.
19 2011-09-15  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
21         PR ld/13183
22         * ldmain.c (add_archive_element): Support thin archive member
23         for LTO.
25 2011-08-26  Nick Clifton  <nickc@redhat.com>
27         * po/es.po: Updated Spanish translation.
29 2011-08-26  Nick Clifton  <nickc@redhat.com>
31         * NEWS: Mention that --no-copy-dt-needed-entries is now the
32         default.
34 2011-08-22  Michael Matz  <matz@suse.de>
36         * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
37         * ld.texinfo (--copy-dt-needed-entries): Mention new default.
39 2011-08-17  Alan Modra  <amodra@gmail.com>
41         PR ld/12762
42         * ldlang.c (section_already_linked): Revert 2011-07-09 changes.
43         * plugin.c: Likewise.
44         (asymbol_from_plugin_symbol): Create linkonce section for syms
45         with comdat_key.
47 2011-08-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
49         * emultempl/armelf.em (fix_arm1176): New variable.
50         (arm_elf_create_output_section_statements): Pass
51         fix_arm1176 option to bfd backend.
52         (OPTION_FIX_ARM1176): New define.
53         (OPTION_NO_FIX_ARM1176): Likewise.
54         (PARSE_AND_LIST_LONGOPTS): Add new command line options.
55         (PARSE_AND_LIST_OPTIONS): Likewise.
56         (PARSE_AND_LIST_ARGS_CASES): Likewise.
57         * ld.texinfo: Document new command line options.
59 2011-08-09  Alan Modra  <amodra@gmail.com>
61         PR ld/13066
62         * plugin.c (add_symbols): Revert 2011-08-05.
64 2011-08-06  Kai Tietz  <ktietz@redhat.com>
66         * scripttempl/pep.sc: Add .debug_macro section.
67         * scripttempl/pe.sc: Likewise.
69 2011-08-05  Alan Modra  <amodra@gmail.com>
71         PR ld/12762
72         * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
73         table if already seen.
75 2011-08-04  H.J. Lu  <hongjiu.lu@intel.com>
77         * ldmain.c (main): Replace remove_output with ld_cleanup in
78         comments.
80 2011-07-26  Alan Modra  <amodra@gmail.com>
82         * emulparams/elf32ppc.sh: Source plt_unwind.sh.
83         * emulparams/elf64ppc.sh: Likewise.
84         * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
85         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
86         PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
87         existing values.
88         * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
89         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
90         PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
91         existing values.
93 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
95         * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
96         eelf_k1om_fbsd.o
97         (eelf_k1om.c): New.
98         (eelf_k1om_fbsd.c): Likewise.
99         * Makefile.in: Regenerated.
101         * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
102         is supported.  Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
103         (targ_extra_emuls): Likewise.
105         * emulparams/elf_k1om.sh: New.
106         * emulparams/elf_k1om_fbsd.sh: Likewise.
108 2011-07-16  Roland McGrath  <roland@hack.frob.com>
110         * ld.h (args_type): New field print_output_format.
111         * lexsup.c (enum option_values, ld_options, parse_args):
112         Handle --print-output-format.
113         * ldmain.c (main): Implement --print-output-format.
114         * ld.texinfo (Options): Document it.
116         * ldlang.c (lang_get_output_target): Don't return current_target
117         when it's NULL.
119 2011-07-15  Alan Modra  <amodra@gmail.com>
121         * Makefile.am (e*.c): Sort.
122         * Makefile.in: Regenerate.
124 2011-07-14  Alan Modra  <amodra@gmail.com>
126         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
127         gld${EMULATION_NAME}_list_options): Don't condition -z relro
128         and -z norelro on COMMONPAGESIZE being defined.
130 2011-07-14  Alan Modra  <amodra@gmail.com>
132         * emultempl/ppc64elf.em (plt_static_chain): New var.
133         (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
134         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
135         PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
136         --plt-static-chain and --no-plt-static-chain.
138 2011-07-14  Alan Modra  <amodra@gmail.com>
140         * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
141         gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
142         Provide --build-id, -z defs, -z muldefs, -z max-page-size,
143         -z common-page-size, -z execstack, -z noexecstack for all targets.
144         Add help for --exclude-libs.
145         (OPTION_LD_GENERATED_UNWIND_INFO,
146         OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
147         (gld${EMULATION_NAME}_handle_option): ..and code handling
148         --ld-generated-unwind-info and --no-ld-generated-unwind-info..
149         * emulparams/plt_unwind.sh: ..to here.  New file.  Add help.
150         * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
151         * emulparams/elf_i386.sh: Likewise.
152         * emulparams/elf_i386_chaos.sh: Likewise.
153         * emulparams/elf_i386_ldso.sh: Likewise.
154         * emulparams/elf_l1om.sh: Likewise.
155         * emulparams/elf_x86_64.sh: Likewise.
157 2011-07-11  Catherine Moore  <clm@codesourcery.com>
159         * ld.h (section_flag_list): Add field to struct wildcard_spec.
160         * ld.texinfo (INPUT_SECTION_FLAGS): Document.
161         * ldgram.y (flag_info_list, flag_info): Add to union.
162         (INPUT_SECTION_FLAGS): New token.
163         (wildcard_spec): Initialize section_flag_list to NULL for
164         each alternative.
165         (sect_flag_list, sect_flags): New rules.
166         (input_section_spec_no_keep): Add alternatives to recognize
167         sect_flags.
168         * ldlang.c (walk_wild_consider_section): Initialize
169         section_flag_info field of the section struct.
170         (lang_add_section): Check input section flags.
171         (lang_add_wild): Initialize section_flag_list field of
172         the statement struct.
173         * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
174         (lang_wild_statement_struct): Likewise.
175         * ldlex.l (INPUT_SECTION_FLAGS): New token.
176         * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
177         * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
179 2011-07-09  H.J. Lu  <hongjiu.lu@intel.com>
181         PR ld/12942
182         * ldlang.c (section_already_linked): Pass "struct already_linked *"
183         to bfd_section_already_linked.
184         (lang_process): Set link_info.loading_lto_outputs before
185         loading LTO outputs.
186         * plugin.c: Include "libbfd.h".
187         (add_symbols): Call bfd_section_already_linked with comdat_key.
189 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
191         * configure.tgt: Revert x32 change.
193 2011-06-20  Jakub Jelinek  <jakub@redhat.com>
195         PR ld/12570
196         * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
197         OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
198         (gld${EMULATION_NAME}_handle_option): Handle
199         --ld-generated-unwind-info and --no-ld-generated-unwind-info.
200         * ld.texinfo (--ld-generated-unwind-info,
201         --no-ld-generated-unwind-info): Document.
203 2011-06-19  H.J. Lu  <hongjiu.lu@intel.com>
205         * configure.tgt: Support x32.
207 2011-06-15  Nick Clifton  <nickc@redhat.com>
209         * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
211 2011-06-13  Walter Lee  <walt@tilera.com>
213         * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
214         eelf32tilepro.c.
215         (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
216         (eelf32tilegx.c): New target.
217         (eelf32tilepro.c): Likewise.
218         (eelf64tilegx.c): Likewise.
219         * Makefile.in: Regenerate.
220         * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
221         * emulparams/elf32tilegx.sh: New file.
222         * emulparams/elf64tilegx.sh: New file.
223         * emulparams/elf32tilepro.sh: New file.
225 2011-06-13  Alan Modra  <amodra@gmail.com>
227         * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
228         warning symbols here.
229         * emultempl/pe.em (pr_sym): Remove redundant test.
230         * emultempl/pep.em (pr_sym): Likewise.
232 2011-06-09  Nick Clifton  <nickc@redhat.com>
234         PR ld/12845
235         * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
236         for sections that have been removed by garbage collection.
238 2011-06-08  Alan Modra  <amodra@gmail.com>
240         * ldlang.c (lang_one_common): Handle warning symbols.
242 2011-06-07  Nick Clifton  <nickc@redhat.com>
244         * configure.tgt: Accept any V850 architecture.
246 2011-06-03  Nick Clifton  <nickc@redhat.com>
248         * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
249         Add rule to build eelf32am33lin.c
250         * Makefile.in: Regenerate.
252 2011-06-02  Nick Clifton  <nickc@redhat.com>
254         * lexsup.c: Fix spelling mistake in comment.
255         * scripttempl/epocpe.sc: Likewise.
256         * scripttempl/i386beos.sc: Likewise.
257         * scripttempl/mcorepe.sc: Likewise.
258         * scripttempl/pe.sc: Likewise.
259         * scripttempl/pep.sc: Likewise.
260         * po/ld.pot: Regenerate.
262 2011-05-27  Nick Clifton  <nickc@redhat.com>
264         * scripttempl/v850.sc (_heap_start): Provide.
266 2011-05-23  Alan Modra  <amodra@gmail.com>
268         * ldmisc.c (vfinfo): Add %H.
269         * ldmain.c (reloc_overflow): Use %H rather than %C.
270         (reloc_dangerous, unattached_reloc): Likewise.
272 2011-05-23  Alan Modra  <amodra@gmail.com>
274         PR 12763
275         * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
276         like sections to existing .sdata2, and similarly for orphan TLS
277         sections.
278         * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
280 2011-05-17  Tomohiro Kashiwada  <kikairoya@gmail.com>
282         PR ld/12759
283         * emultempl/rxelf.em (ignore_lma): New variable.
284         (rx_elf_create_output_section_statements): Pass the setiing of
285         ignore_lma to bfd_elf32_rx_set_target_flags.
286         (OPTION_IGNORE_LMA): Define.
287         (OPTION_NO_IGNORE_LMA): Define.
288         (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
289         (PARSE_AND_LIST_OPTIONS): Add ignore lma.
290         (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
292 2011-05-17  Alan Modra  <amodra@gmail.com>
294         PR ld/12760
295         * ldmain.c (notice): Add "flags" and "string" param.
296         * plugin.c (plugin_notice): Likewise.  Handle indirect, warning
297         and constructor syms.
299 2010-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
301         * ldlang.c (print_assignment): Use the symbol's section if we
302         use its value.
303         * ldexp.c (exp_fold_tree_1): Skip self-assignment.  Expand
304         comment on copying symbol type.
306 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
308         PR ld/12760
309         * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
310         undefweak.
312 2011-05-16  Alan Modra  <amodra@gmail.com>
314         * ldlang.c (lang_leave_output_section_statement): Don't copy
315         previous lma_region if given address.
317 2011-05-13  Bernd Schmidt  <bernds@codesourcery.com>
319         (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
320         eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
321         * Makefile.am (ALL_EMULATIONS): Add these files.
322         (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
323         * Makefile.in: Regenerated.
324         * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
325         vectors.
326         * emulparams/elf32_tic6x_elf_be.sh: New file.
327         * emulparams/elf32_tic6x_elf_le.sh: New file.
328         * emulparams/elf32_tic6x_linux_be.sh: New file.
329         * emulparams/elf32_tic6x_linux_le.sh: New file.
330         * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
331         (tic6x-*-*): Replaced by these.
333 2011-05-13  Jan Beulich  <jbeulich@novell.com>
335         * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
337 2011-05-09  Paul Brook  <paul@codesourcery.com>
339         * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
340         (compare_output_sec_vma): New function.
341         (gld${EMULATION_NAME}_after_allocation): New function.
342         (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
343         (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
344         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
345         (LDEMUL_AFTER_ALLOCATION): Set.
346         * ld.texinfo: Document c6x --no-merge-exidx-entries.
348 2011-05-07  Dave Korn  <dave.korn.cygwin@gmail.com>
350         PR ld/12365
351         * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
352         (__rt_psrelocs_end): Likewise.
353         (__rt_psrelocs_size): Likewise difference between the above.
354         (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
355         immediately after end of pseudo-reloc data.
356         (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
357         (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
358         calculate backward from list end.
359         (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
360         * scripttempl/pep.sc: Likewise.
362 2011-05-06  Tristan Gingold  <gingold@adacore.com>
364         * scripttempl/alphavms.sc (CODE): Add *$CODE*.
366 2011-05-04  Tristan Gingold  <gingold@adacore.com>
368         * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
369         LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
370         * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
371         (gld${EMULATION_NAME}_add_options): New function.
372         (gld${EMULATION_NAME}_list_options): Ditto.
373         (gld${EMULATION_NAME}_handle_option): Ditto.
374         (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
375         (LDEMUL_LIST_OPTIONS): Define.
377 2011-05-04  Alan Modra  <amodra@gmail.com>
379         PR ld/12726
380         * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
381         * ldexp.c (exp_fold_tree_1): Correct assign to dot comment.  Don't
382         assign to dot when lang_assigning_phase_enum.
383         * ldlang.h (lang_do_assignments): Update prototype.
384         * ldlang.c (lang_do_assignments): Add phase parameter.  Update all
385         callers.
386         * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
387         lang_do_assignments calls.
389 2011-04-28  Daniel C. Klauer  <daniel.c.klauer@web.de>
391         PR ld/12614
392         * emultempl/pe.em (_after_open): Correctly check whether symbol is
393         in undef list.
395 2011-04-26  Kai Tietz  <ktietz@redhat.com>
397         * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
398         * scripttempl/pep.sc: Likewise.
400 2011-04-24  Alan Modra  <amodra@gmail.com>
402         PR ld/12365
403         PR ld/12696
404         * ldmain.c (notice): Delete "name" param, add "h".
405         * plugin.c (plugin_notice): Likewise.  Set non_ir_ref.  Handle
406         redefinitions of IR symbols in real BFDs.
407         (plugin_multiple_definition, plugin_multiple_common): Delete.
408         (non_ironly_hash, init_non_ironly_hash): Delete.
409         (is_visible_from_outside): Traverse entry_symbol chain.
410         (get_symbols): Use non_ir_ref flag rather than hash lookup.
412 2011-04-21  Tristan Gingold  <gingold@adacore.com>
414         * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
416 2011-04-20  Tristan Gingold  <gingold@adacore.com>
418         * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
420 2011-04-20  Alan Modra  <amodra@gmail.com>
422         * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
424 2011-04-20  Alan Modra  <amodra@gmail.com>
426         PR ld/12365
427         * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
428         to plugin IR BFD..
429         * ldmain.c (add_archive_element): ..and similar code here..
430         * plugin.c (plugin_maybe_claim): ..to here.  New function.
431         (plugin_call_claim_file): Make static.
432         (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
433         (plugin_multiple_common): New function.
434         (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
435         * plugin.h (plugin_call_claim_file): Don't declare.
436         (plugin_maybe_claim): Declare.
438 2011-04-20  Alan Modra  <amodra@gmail.com>
440         PR ld/12365
441         * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
442         pointer arg rather than "name", "obfd", "osec", "oval".  Add code
443         removed from linker.c.  Hack around xcofflink.c oddity in
444         passing NULL nbfd.
445         (multiple_common): Similarly.
446         * plugin.c (orig_allow_multiple_defs): Delete.
447         (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
448         (plugin_multiple_definition): Update.
450 2011-04-18  Kai Tietz  <ktietz@redhat.com>
452         * deffilep.y (def_aligncomm): Avoid duplets.
454         * deffilep.y (def_pool_str): New type.
455         (pool_strs): Local static.
456         (def_pool_alloc): Local function.
457         (def_pool_strdup): Likewise.
458         (def_pool_free): Likewise.
459         (opt_name): Replace xmalloc/xstrdup by
460         def_pool_alloc/def_pool_strdup.
461         (dot_name): Likewise.
462         (anylang_id): Likewise.
463         (def_lex): Likewise.
464         (def_file_parse): Call def_pool_free on
465         exit and cleanup directives elements.
466         (def_file_add_directive): Call def_pool_free.
468 2011-04-18  Paul Brook  <paul@codesourcery.com>
470         * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
471         for unwinding tables.
473 2011-04-18  Alan Modra  <amodra@gmail.com>
475         PR ld/12365
476         PR ld/12672
477         * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
478         when no_more_claiming.
479         * ldmain.c (add_archive_element): Likewise.
480         (multiple_definition): Remove plugin_multiple_definition call.
481         (notice): Remove plugin_notice call.
482         * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
483         Delete prototype.
484         (plugin_insert): New static var.
485         (open_input_bfds): Only rescan libs after plugin insert point.
486         (lang_gc_sections): Omit plugin claimed files.
487         (lang_process): Set plugin_insert.  Only rescan when plugin adds
488         objects.
489         * plugin.h (no_more_claiming): Declare.
490         (plugin_notice, plugin_multiple_definition): Don't declare.
491         * plugin.c: Formatting.
492         (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
493         plugin_callbacks): New static vars.
494         (no_more_claiming): Make global.
495         (plugin_cached_allow_multiple_defs): Delete.
496         (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
497         use newer bfd_make_section variant.  Make COMMON section too.
498         Error handling.  Correct setting of gp size.
499         (asymbol_from_plugin_symbol): Properly cast last arg of concat.
500         (message): Likewise for ACONCAT.
501         (asymbol_from_plugin_symbol): Use our COMMON section.
502         (get_symbols): When report_plugin_symbols, show visibility too.
503         (init_non_ironly_hash): Move.  Don't test non_ironly_hash.
504         (plugin_load_plugins): Save state of linker callbacks, set up to
505         call plugin_notice instead.  Call init_non_ironly_hash here.
506         (plugin_call_all_symbols_read): Set plugin_multiple_definition in
507         plugin callbacks.
508         (plugin_notice): Rewrite.
509         (plugin_multiple_definition): Make static, call original callback.
511 2011-04-15  Alan Modra  <amodra@gmail.com>
513         PR ld/12672
514         * ldlang.c (enum open_bfd_mode): New.
515         (open_input_bfds): Replace "force" param with "mode".  Reload
516         archives for rescan.  Update all callers.
517         (lang_process): Make another open_input_bfds pass for plugins.
519 2011-04-13  Kai Tietz  <ktietz@redhat.com>
521         PR binutils/12658
522         * deffile.h (def_file_add_export): Add is_dup argument.
523         (def_file_add_import): Likewise.
524         * deffilep.y (are_names_equal): New helper.
525         (cmp_export_elem): New helper.
526         (find_export_in_list): Add search routine for exports.
527         (def_file_add_export): Check for duplicates.
528         (cmp_import_elem): New helper.
529         (find_import_in_list): Add search routine for imports.
530         (def_file_add_import): Check for duplicates.
531         (def_exports): Handle duplicates.
532         (def_imports): Likewise.
533         * pe-dll.c (process_def_file_and_drectve): Likewise.
534         (pe_implied_import_dll): Likewise.
536 2011-04-11  Chris Quenelle  <chris.quenelle@oracle.com>
538         * scripttempl/elf.sc (.exception_ranges): Add new section.
540 2011-04-08  Hector Oron  <hector.oron@gmail.com>
542         PR ld/12643
543         * configure.tgt: Add support for arm-*-gnueabihf targets.
545 2011-04-07  Eric B. Weddington  <eric.weddington@atmel.com>
547         * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
549 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
551         * configure.tgt: Remove stray ;;.
553 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
555         * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
556         strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
557         thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
558         xscale-*-coff, xscale-*-elf): Remove targets.
560 2011-03-31  H.J. Lu  <hongjiu.lu@intel.com>
562         * configure.tgt: Add elf_l1om to targ_extra_libpath for
563         x86_64-*-linux-*.
565         * emulparams/elf_l1om.sh: Remove duplicates.
567 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
569         * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
570         GENERATE_SHLIB_SCRIPT): New defines.
571         (TEXT_START_ADDR): Define differently depending on target.
572         (.got): Redefine to include "*(.dsbt)".
573         (SDATA_START_SYMBOLS): Remove, replace with
574         (OTHER_GOT_SYMBOLS): New.
575         (OTHER_BSS_SECTIONS): Define only for ELF targets.
576         * emultempl/tic6xdsbt.em: New file.
577         * gen-doc.texi: Set C6X.
578         * ld.texinfo: Likewise.
579         (Options specific to C6X uClinux targets): New section.
581 2011-03-29  Alan Modra  <amodra@gmail.com>
583         PR ld/12613
584         * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
586 2011-03-26  John Marino  <binutils@marino.st>
588         * configure.host: Update *-*-dragonfly* host entry.
589         * configure.tgt: Update *-*-dragonfly* target entry.
590         * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
592 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
594         * configure.in: Check for windows.h, not Windows.h.
595         * configure: Regenerate.
596         * plugin.c: Include windows.h, not Windows.h.
598 2011-03-25  Eric B. Weddington  <eric.weddington@atmel.com>
600         * Makefile.in: Regenerate.
602 2011-03-23  Joseph Myers  <joseph@codesourcery.com>
604         * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
605         are enabled.  Mark level as possibly unused.
607 2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>
609         * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
610         (eavrxmega?.c): Likewise.
611         * configure.tgt (targ_extra_emuls): Likewise.
612         * emulparams/avrxmega1.sh: New file.
613         * emulparams/avrxmega2.sh: Likewise.
614         * emulparams/avrxmega3.sh: Likewise.
615         * emulparams/avrxmega4.sh: Likewise.
616         * emulparams/avrxmega5.sh: Likewise.
617         * emulparams/avrxmega6.sh: Likewise.
618         * emulparams/avrxmega7.sh: Likewise.
619         * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
620         Add avrxmega6, avrxmega7 to list of architectures for no stubs.
622 2011-03-21  Eric B. Weddington  <eric.weddington@atmel.com>
624         * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
626 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
628         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
629         eh->target_internal.
631 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
633         * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
634         instead of dynamic_sections_created.
636 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
638         * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
640 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
642         * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
644 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
646         * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
647         wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
648         * ldmain.c (add_archive_element): Set it if the member is claimed.
649         * ldlang.c (new_afile): Initialise claim_archive and claimed members.
650         (find_replacements_insert_point): New helper function.
651         (lang_process): After adding and opening replacement files passed
652         from plugin, splice them into correct place in statement list and
653         file chains to preserve critical link order.
654         (lang_list_insert_after): New helper function.
655         (lang_list_remove_tail): Likewise.
657 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
659         * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
660         (IRONLY_SUFFIX_LEN): Delete.
661         (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
662         (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
663         enclosing lang input statement instead.
665 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
667         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
668         alignment of input sections when creating orphan output sections
669         during relocatable link.
670         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
672 2011-03-04  H.J. Lu  <hongjiu.lu@intel.com>
674         * ld.texinfo: Document --verbose[=NUMBER].
676         * lexsup.c (ld_options): Update --verbose.
677         (parse_args): Set report_plugin_symbols.
679         * plugin.c (report_plugin_symbols): New.
680         (get_symbols): Report plugin symbols if report_plugin_symbols
681         is TRUE.
683         * plugin.h (report_plugin_symbols): New.
685 2011-03-01  H.J. Lu  <hongjiu.lu@intel.com>
687         PR ld/12529
688         * testplug.c: Don't include "filenames.h".
689         (onclaim_file): Don't use filename_cmp.
691 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
693         * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
694         * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
695         Likewise.
696         (gld${EMULATION_NAME}_stat_needed): Likewise.
697         (gld${EMULATION_NAME}_check_needed): Likewise.
698         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
699         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
700         * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
701         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
702         * ldfile.c (ldfile_open_file): Likewise.
703         * ldlang.c (wild_sort): Likewise.
704         (lookup_name): Likewise.
705         (check_excluded_libs): Likewise.
706         * ldmisc.c (vfinfo): Likewise.
707         * pe-dll.c (libnamencmp): Likewise.
708         (auto_export): Likewise.
709         (pe_dll_generate_implib): Likewise.
710         * testplug.c (onclaim_file): Likewise.
712 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
714         PR ld/12507
715         * plugin.c (get_symbols): Don't check entry symbol here.
716         (init_non_ironly_hash): Add entry_symbol chain into
717         non_ironly_hash.
719 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
721         PR ld/12507
722         * plugin.c (get_symbols): Don't mark entry symbol IR only.
724 2011-02-18  John David Anglin  <dave.anglin@nrc-cnnrc.gc.ca>
726         PR ld/12376
727         emulparams/hppalinux.sh (DATA_ADDR): Define.
728         (SHLIB_DATA_ADDR): Likewise.
730 2011-02-16  H.J. Lu  <hongjiu.lu@intel.com>
732         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
733         x32 for x32.
735 2011-02-15  Kai Tietz  <kai.tietz@onevision.com>
737         * pe-dll.c (process_def_file_and_drectve): Don't strip
738         leading underscore from symbol by calling bfd_find_version_for_sym.
740 2011-02-14  Mike Frysinger  <vapier@gentoo.org>
742         * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
743         the bfd_demangle of sym, change users of sym to c_sym when not
744         already demangling, and free when done.  Change callers of
745         cplus_demangle to bfd_demangle.
747 2011-02-14  Alan Modra  <amodra@gmail.com>
749         * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
750         .text section, use newer bfd_make_section variant.  Error handling.
751         Correct setting of gp size.
752         (asymbol_from_plugin_symbol): Properly cast last arg of concat.
753         (message): Likewise for ACONCAT.
754         (get_symbols): Formatting.
756 2011-02-14  Alan Modra  <amodra@gmail.com>
758         * ldmain.c (remove_output): Rename to..
759         (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
760         (main): Adjust.
761         * plugin.c (plugin_call_cleanup): Make global.
762         (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
763         * plugin.h (plugin_call_cleanup): Declare.
765 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
767         * configure: Regenerate.
769 2011-02-10  Alan Modra  <amodra@gmail.com>
771         * scripttempl/armbpabi.sc: Revert 2010-11-02  H.J. Lu.
772         * scripttempl/avr.sc: Likewise.
773         * scripttempl/elf32cr16.sc: Likewise.
774         * scripttempl/elf32crx.sc: Likewise.
775         * scripttempl/elf32msp430.sc: Likewise.
776         * scripttempl/elf32msp430_3.sc: Likewise.
777         * scripttempl/elf32sh-symbian.sc: Likewise.
778         * scripttempl/elf64hppa.sc: Likewise.
779         * scripttempl/elf_chaos.sc: Likewise.
780         * scripttempl/elfd10v.sc: Likewise.
781         * scripttempl/elfd30v.sc: Likewise.
782         * scripttempl/elfi370.sc: Likewise.
783         * scripttempl/elfm68hc11.sc: Likewise.
784         * scripttempl/elfm68hc12.sc: Likewise.
785         * scripttempl/elfxtensa.sc: Likewise.
786         * scripttempl/ip2k.sc: Likewise.
787         * scripttempl/iq2000.sc: Likewise.
788         * scripttempl/mep.sc: Likewise.
789         * scripttempl/mmo.sc: Likewise.
790         * scripttempl/v850.sc: Likewise.
791         * scripttempl/xstormy16.sc: Likewise.
792         * scripttempl/elf.sc: Revert 2010-10-29  H.J. Lu.
794 2011-01-22  H.J. Lu  <hongjiu.lu@intel.com>
796         * Makefile.am (CXX): Removed.
798         * configure.in: Add AC_PROG_CXX.
800         * Makefile.in: Regenerated.
801         * configure: Likewise.
803 2011-01-22  Richard Sandiford  <rdsandiford@googlemail.com>
805         * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
806         private data and GP size.
808 2011-01-21  Alan Modra  <amodra@gmail.com>
810         * ldexp.c (fold_binary): Set result section for arithmetic and
811         logical operations to NULL when both operands are in same section.
812         * ld.texinfo (Expression Section): Describe this.
814 2011-01-14  Alan Modra  <amodra@gmail.com>
816         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
817         attempt to put non-alloc orphans before debug sections, just place
818         them after .comment.
820 2011-01-14  J. Park  <grassman@gmail.com>
822         PR ld/12339
823         * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
825 2011-01-14  Alan Modra  <amodra@gmail.com>
827         * Makefile.am: Sort emulation rules.
828         (eelf32am33lin.c): Delete.
829         (ALL_EMULATION_SOURCES): Sort, add missing entries.
830         (ALL_64_EMULATION_SOURCES): Likewise.
831         * Makefile.in: Regenerate.
833 2011-01-13  Alan Modra  <amodra@gmail.com>
835         PR ld/12356
836         * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
837         (Expression Section): Update.
838         * ld.h (ld_config_type): Add sane_expr.
839         * ldgram.y (ifile_p1): Add LD_FEATURE.
840         * ldlex.l (LD_FEATYRE): New.
841         * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
842         * ldexp.h (struct ldexp_control): Delete uses_defined.
843         * ldexp.c: Remove all uses of uses_defined.
844         (fold_name): Test config.sane_expr rather than ld_compatibility.
845         (exp_fold_tree_1): Likewise.  Adjust handling of assignments
846         during first phase.
847         * ldlang.h (ld_compatibility): Delete.
848         (lang_ld_feature): Declare.
849         * ldlang.c (ld_compatibility): Delete.
850         (open_input_bfds): Only handle assignments for --defsym.
851         (lang_ld_feature): New function.
853         PR ld/12356
854         * ldexp.h (exp_assop): Delete.
855         (exp_assign, exp_defsym): Declare.
856         * ldexp.c (exp_assop): Make static, handle all assignment variations.
857         (exp_assign, exp_defsym): New functions.
858         (exp_provide): Use exp_assop.
859         * ldgram.y (defsym_expr): Use exp_defsym.
860         * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
861         * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
862         * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
864 2011-01-12  Alan Modra  <amodra@gmail.com>
866         PR ld/12380
867         * ldexp.h (enum phase_enum): Comment.  Add exp_dataseg_done.
868         * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code.  Test
869         for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
870         to detect when we've finished sizing sections.
871         (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
872         (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise.  Also test
873         that we are not inside an output section statement.
874         * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
875         not exp_dataseg_relro_adjust or exp_dataseg_adjust.  Don't set
876         lang_final_phase_enum here.
877         (lang_process): Set lang_final_phase_enum here.
879 2011-01-10  Nick Clifton  <nickc@redhat.com>
881         * po/da.po: Updated Danish translation.
883 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
885         * ldlang.c (startup_file): Removed.
886         (lang_startup): Updated.
888 2011-01-05  H.J. Lu  <hongjiu.lu@intel.com>
890         PR ld/12364
891         * plugin.c (get_symbols): Check if owner_sec->owner is NULL
892         before accessing its flags field.
894 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
896         * ldver.c (ldversion): Update copyright to 2011.
898 For older changes see ChangeLog-2010
900 Local Variables:
901 mode: change-log
902 left-margin: 8
903 fill-column: 74
904 version-control: never
905 End: