OSDN Git Service

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