OSDN Git Service

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