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