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