Upload Tizen:Base source
[external/binutils.git] / ld / ChangeLog
1 2011-04-20  Tristan Gingold  <gingold@adacore.com>
2
3         * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
4
5 2011-04-20  Alan Modra  <amodra@gmail.com>
6
7         * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
8
9 2011-04-20  Alan Modra  <amodra@gmail.com>
10
11         PR ld/12365
12         * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
13         to plugin IR BFD..
14         * ldmain.c (add_archive_element): ..and similar code here..
15         * plugin.c (plugin_maybe_claim): ..to here.  New function.
16         (plugin_call_claim_file): Make static.
17         (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
18         (plugin_multiple_common): New function.
19         (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
20         * plugin.h (plugin_call_claim_file): Don't declare.
21         (plugin_maybe_claim): Declare.
22
23 2011-04-20  Alan Modra  <amodra@gmail.com>
24
25         PR ld/12365
26         * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
27         pointer arg rather than "name", "obfd", "osec", "oval".  Add code
28         removed from linker.c.  Hack around xcofflink.c oddity in
29         passing NULL nbfd.
30         (multiple_common): Similarly.
31         * plugin.c (orig_allow_multiple_defs): Delete.
32         (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
33         (plugin_multiple_definition): Update.
34
35 2011-04-18  Kai Tietz  <ktietz@redhat.com>
36
37         * deffilep.y (def_aligncomm): Avoid duplets.
38
39         * deffilep.y (def_pool_str): New type.
40         (pool_strs): Local static.
41         (def_pool_alloc): Local function.
42         (def_pool_strdup): Likewise.
43         (def_pool_free): Likewise.
44         (opt_name): Replace xmalloc/xstrdup by
45         def_pool_alloc/def_pool_strdup.
46         (dot_name): Likewise.
47         (anylang_id): Likewise.
48         (def_lex): Likewise.
49         (def_file_parse): Call def_pool_free on
50         exit and cleanup directives elements.
51         (def_file_add_directive): Call def_pool_free.
52
53 2011-04-18  Paul Brook  <paul@codesourcery.com>
54
55         * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
56         for unwinding tables.
57
58 2011-04-18  Alan Modra  <amodra@gmail.com>
59
60         PR ld/12365
61         PR ld/12672
62         * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
63         when no_more_claiming.
64         * ldmain.c (add_archive_element): Likewise.
65         (multiple_definition): Remove plugin_multiple_definition call.
66         (notice): Remove plugin_notice call.
67         * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
68         Delete prototype.
69         (plugin_insert): New static var.
70         (open_input_bfds): Only rescan libs after plugin insert point.
71         (lang_gc_sections): Omit plugin claimed files.
72         (lang_process): Set plugin_insert.  Only rescan when plugin adds
73         objects.
74         * plugin.h (no_more_claiming): Declare.
75         (plugin_notice, plugin_multiple_definition): Don't declare.
76         * plugin.c: Formatting.
77         (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
78         plugin_callbacks): New static vars.
79         (no_more_claiming): Make global.
80         (plugin_cached_allow_multiple_defs): Delete.
81         (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
82         use newer bfd_make_section variant.  Make COMMON section too.
83         Error handling.  Correct setting of gp size.
84         (asymbol_from_plugin_symbol): Properly cast last arg of concat.
85         (message): Likewise for ACONCAT.
86         (asymbol_from_plugin_symbol): Use our COMMON section.
87         (get_symbols): When report_plugin_symbols, show visibility too.
88         (init_non_ironly_hash): Move.  Don't test non_ironly_hash.
89         (plugin_load_plugins): Save state of linker callbacks, set up to
90         call plugin_notice instead.  Call init_non_ironly_hash here.
91         (plugin_call_all_symbols_read): Set plugin_multiple_definition in
92         plugin callbacks.
93         (plugin_notice): Rewrite.
94         (plugin_multiple_definition): Make static, call original callback.
95
96 2011-04-15  Alan Modra  <amodra@gmail.com>
97
98         PR ld/12672
99         * ldlang.c (enum open_bfd_mode): New.
100         (open_input_bfds): Replace "force" param with "mode".  Reload
101         archives for rescan.  Update all callers.
102         (lang_process): Make another open_input_bfds pass for plugins.
103
104 2011-04-13  Kai Tietz  <ktietz@redhat.com>
105
106         PR binutils/12658
107         * deffile.h (def_file_add_export): Add is_dup argument.
108         (def_file_add_import): Likewise.
109         * deffilep.y (are_names_equal): New helper.
110         (cmp_export_elem): New helper.
111         (find_export_in_list): Add search routine for exports.
112         (def_file_add_export): Check for duplicates.
113         (cmp_import_elem): New helper.
114         (find_import_in_list): Add search routine for imports.
115         (def_file_add_import): Check for duplicates.
116         (def_exports): Handle duplicates.
117         (def_imports): Likewise.
118         * pe-dll.c (process_def_file_and_drectve): Likewise.
119         (pe_implied_import_dll): Likewise.
120
121 2011-04-11  Chris Quenelle  <chris.quenelle@oracle.com>
122
123         * scripttempl/elf.sc (.exception_ranges): Add new section.
124
125 2011-04-08  Hector Oron  <hector.oron@gmail.com>
126
127         PR ld/12643
128         * configure.tgt: Add support for arm-*-gnueabihf targets.
129
130 2011-04-07  Eric B. Weddington  <eric.weddington@atmel.com>
131
132         * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
133
134 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
135
136         * configure.tgt: Remove stray ;;.
137
138 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
139
140         * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
141         strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
142         thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
143         xscale-*-coff, xscale-*-elf): Remove targets.
144
145 2011-03-31  H.J. Lu  <hongjiu.lu@intel.com>
146
147         * configure.tgt: Add elf_l1om to targ_extra_libpath for
148          x86_64-*-linux-*.
149
150         * emulparams/elf_l1om.sh: Remove duplicates.
151
152 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
153
154         * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
155         GENERATE_SHLIB_SCRIPT): New defines.
156         (TEXT_START_ADDR): Define differently depending on target.
157         (.got): Redefine to include "*(.dsbt)".
158         (SDATA_START_SYMBOLS): Remove, replace with
159         (OTHER_GOT_SYMBOLS): New.
160         (OTHER_BSS_SECTIONS): Define only for ELF targets.
161         * emultempl/tic6xdsbt.em: New file.
162         * gen-doc.texi: Set C6X.
163         * ld.texinfo: Likewise.
164         (Options specific to C6X uClinux targets): New section.
165
166 2011-03-29  Alan Modra  <amodra@gmail.com>
167
168         PR ld/12613
169         * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
170
171 2011-03-26  John Marino  <binutils@marino.st>
172
173         * configure.host: Update *-*-dragonfly* host entry.
174         * configure.tgt: Update *-*-dragonfly* target entry.
175         * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
176
177 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
178
179         * configure.in: Check for windows.h, not Windows.h.
180         * configure: Regenerate.
181         * plugin.c: Include windows.h, not Windows.h.
182
183 2011-03-25  Eric B. Weddington  <eric.weddington@atmel.com>
184
185         * Makefile.in: Regenerate.
186
187 2011-03-23  Joseph Myers  <joseph@codesourcery.com>
188
189         * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
190         are enabled.  Mark level as possibly unused.
191
192 2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>
193
194         * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
195         (eavrxmega?.c): Likewise.
196         * configure.tgt (targ_extra_emuls): Likewise.
197         * emulparams/avrxmega1.sh: New file.
198         * emulparams/avrxmega2.sh: Likewise.
199         * emulparams/avrxmega3.sh: Likewise.
200         * emulparams/avrxmega4.sh: Likewise.
201         * emulparams/avrxmega5.sh: Likewise.
202         * emulparams/avrxmega6.sh: Likewise.
203         * emulparams/avrxmega7.sh: Likewise.
204         * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
205         Add avrxmega6, avrxmega7 to list of architectures for no stubs.
206
207 2011-03-21  Eric B. Weddington  <eric.weddington@atmel.com>
208
209         * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
210
211 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
212
213         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
214         eh->target_internal.
215
216 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
217
218         * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
219         instead of dynamic_sections_created.
220
221 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
222
223         * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
224
225 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
226
227         * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
228
229 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
230
231         * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
232         wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
233         * ldmain.c (add_archive_element): Set it if the member is claimed.
234         * ldlang.c (new_afile): Initialise claim_archive and claimed members.
235         (find_replacements_insert_point): New helper function.
236         (lang_process): After adding and opening replacement files passed
237         from plugin, splice them into correct place in statement list and
238         file chains to preserve critical link order.
239         (lang_list_insert_after): New helper function.
240         (lang_list_remove_tail): Likewise.
241
242 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
243
244         * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
245         (IRONLY_SUFFIX_LEN): Delete.
246         (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
247         (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
248         enclosing lang input statement instead.
249
250 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
251
252         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
253         alignment of input sections when creating orphan output sections
254         during relocatable link.
255         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
256
257 2011-03-04  H.J. Lu  <hongjiu.lu@intel.com>
258
259         * ld.texinfo: Document --verbose[=NUMBER].
260
261         * lexsup.c (ld_options): Update --verbose.
262         (parse_args): Set report_plugin_symbols.
263
264         * plugin.c (report_plugin_symbols): New.
265         (get_symbols): Report plugin symbols if report_plugin_symbols
266         is TRUE.
267
268         * plugin.h (report_plugin_symbols): New.
269
270 2011-03-01  H.J. Lu  <hongjiu.lu@intel.com>
271
272         PR ld/12529
273         * testplug.c: Don't include "filenames.h".
274         (onclaim_file): Don't use filename_cmp.
275
276 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
277
278         * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
279         * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
280         Likewise.
281         (gld${EMULATION_NAME}_stat_needed): Likewise.
282         (gld${EMULATION_NAME}_check_needed): Likewise.
283         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
284         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
285         * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
286         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
287         * ldfile.c (ldfile_open_file): Likewise.
288         * ldlang.c (wild_sort): Likewise.
289         (lookup_name): Likewise.
290         (check_excluded_libs): Likewise.
291         * ldmisc.c (vfinfo): Likewise.
292         * pe-dll.c (libnamencmp): Likewise.
293         (auto_export): Likewise.
294         (pe_dll_generate_implib): Likewise.
295         * testplug.c (onclaim_file): Likewise.
296
297 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
298
299         PR ld/12507
300         * plugin.c (get_symbols): Don't check entry symbol here.
301         (init_non_ironly_hash): Add entry_symbol chain into
302         non_ironly_hash.
303
304 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
305
306         PR ld/12507
307         * plugin.c (get_symbols): Don't mark entry symbol IR only.
308
309 2011-02-18  John David Anglin  <dave.anglin@nrc-cnnrc.gc.ca>
310
311         PR ld/12376
312         emulparams/hppalinux.sh (DATA_ADDR): Define.
313         (SHLIB_DATA_ADDR): Likewise.
314
315 2011-02-16  H.J. Lu  <hongjiu.lu@intel.com>
316
317         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
318         x32 for x32.
319
320 2011-02-15  Kai Tietz  <kai.tietz@onevision.com>
321
322         * pe-dll.c (process_def_file_and_drectve): Don't strip
323         leading underscore from symbol by calling bfd_find_version_for_sym.
324
325 2011-02-14  Mike Frysinger  <vapier@gentoo.org>
326
327         * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
328         the bfd_demangle of sym, change users of sym to c_sym when not
329         already demangling, and free when done.  Change callers of
330         cplus_demangle to bfd_demangle.
331
332 2011-02-14  Alan Modra  <amodra@gmail.com>
333
334         * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
335         .text section, use newer bfd_make_section variant.  Error handling.
336         Correct setting of gp size.
337         (asymbol_from_plugin_symbol): Properly cast last arg of concat.
338         (message): Likewise for ACONCAT.
339         (get_symbols): Formatting.
340
341 2011-02-14  Alan Modra  <amodra@gmail.com>
342
343         * ldmain.c (remove_output): Rename to..
344         (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
345         (main): Adjust.
346         * plugin.c (plugin_call_cleanup): Make global.
347         (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
348         * plugin.h (plugin_call_cleanup): Declare.
349
350 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
351
352         * configure: Regenerate.
353
354 2011-02-10  Alan Modra  <amodra@gmail.com>
355
356         * scripttempl/armbpabi.sc: Revert 2010-11-02  H.J. Lu.
357         * scripttempl/avr.sc: Likewise.
358         * scripttempl/elf32cr16.sc: Likewise.
359         * scripttempl/elf32crx.sc: Likewise.
360         * scripttempl/elf32msp430.sc: Likewise.
361         * scripttempl/elf32msp430_3.sc: Likewise.
362         * scripttempl/elf32sh-symbian.sc: Likewise.
363         * scripttempl/elf64hppa.sc: Likewise.
364         * scripttempl/elf_chaos.sc: Likewise.
365         * scripttempl/elfd10v.sc: Likewise.
366         * scripttempl/elfd30v.sc: Likewise.
367         * scripttempl/elfi370.sc: Likewise.
368         * scripttempl/elfm68hc11.sc: Likewise.
369         * scripttempl/elfm68hc12.sc: Likewise.
370         * scripttempl/elfxtensa.sc: Likewise.
371         * scripttempl/ip2k.sc: Likewise.
372         * scripttempl/iq2000.sc: Likewise.
373         * scripttempl/mep.sc: Likewise.
374         * scripttempl/mmo.sc: Likewise.
375         * scripttempl/v850.sc: Likewise.
376         * scripttempl/xstormy16.sc: Likewise.
377         * scripttempl/elf.sc: Revert 2010-10-29  H.J. Lu.
378
379 2011-01-22  H.J. Lu  <hongjiu.lu@intel.com>
380
381         * Makefile.am (CXX): Removed.
382
383         * configure.in: Add AC_PROG_CXX.
384
385         * Makefile.in: Regenerated.
386         * configure: Likewise.
387
388 2011-01-22  Richard Sandiford  <rdsandiford@googlemail.com>
389
390         * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
391         private data and GP size.
392
393 2011-01-21  Alan Modra  <amodra@gmail.com>
394
395         * ldexp.c (fold_binary): Set result section for arithmetic and
396         logical operations to NULL when both operands are in same section.
397         * ld.texinfo (Expression Section): Describe this.
398
399 2011-01-14  Alan Modra  <amodra@gmail.com>
400
401         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
402         attempt to put non-alloc orphans before debug sections, just place
403         them after .comment.
404
405 2011-01-14  J. Park  <grassman@gmail.com>
406
407         PR ld/12339
408         * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
409
410 2011-01-14  Alan Modra  <amodra@gmail.com>
411
412         * Makefile.am: Sort emulation rules.
413         (eelf32am33lin.c): Delete.
414         (ALL_EMULATION_SOURCES): Sort, add missing entries.
415         (ALL_64_EMULATION_SOURCES): Likewise.
416         * Makefile.in: Regenerate.
417
418 2011-01-13  Alan Modra  <amodra@gmail.com>
419
420         PR ld/12356
421         * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
422         (Expression Section): Update.
423         * ld.h (ld_config_type): Add sane_expr.
424         * ldgram.y (ifile_p1): Add LD_FEATURE.
425         * ldlex.l (LD_FEATYRE): New.
426         * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
427         * ldexp.h (struct ldexp_control): Delete uses_defined.
428         * ldexp.c: Remove all uses of uses_defined.
429         (fold_name): Test config.sane_expr rather than ld_compatibility.
430         (exp_fold_tree_1): Likewise.  Adjust handling of assignments
431         during first phase.
432         * ldlang.h (ld_compatibility): Delete.
433         (lang_ld_feature): Declare.
434         * ldlang.c (ld_compatibility): Delete.
435         (open_input_bfds): Only handle assignments for --defsym.
436         (lang_ld_feature): New function.
437
438         PR ld/12356
439         * ldexp.h (exp_assop): Delete.
440         (exp_assign, exp_defsym): Declare.
441         * ldexp.c (exp_assop): Make static, handle all assignment variations.
442         (exp_assign, exp_defsym): New functions.
443         (exp_provide): Use exp_assop.
444         * ldgram.y (defsym_expr): Use exp_defsym.
445         * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
446         * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
447         * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
448
449 2011-01-12  Alan Modra  <amodra@gmail.com>
450
451         PR ld/12380
452         * ldexp.h (enum phase_enum): Comment.  Add exp_dataseg_done.
453         * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code.  Test
454         for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
455         to detect when we've finished sizing sections.
456         (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
457         (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise.  Also test
458         that we are not inside an output section statement.
459         * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
460         not exp_dataseg_relro_adjust or exp_dataseg_adjust.  Don't set
461         lang_final_phase_enum here.
462         (lang_process): Set lang_final_phase_enum here.
463
464 2011-01-10  Nick Clifton  <nickc@redhat.com>
465
466         * po/da.po: Updated Danish translation.
467
468 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
469
470         * ldlang.c (startup_file): Removed.
471         (lang_startup): Updated.
472
473 2011-01-05  H.J. Lu  <hongjiu.lu@intel.com>
474
475         PR ld/12364
476         * plugin.c (get_symbols): Check if owner_sec->owner is NULL
477         before accessing its flags field.
478
479 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
480
481         * ldver.c (ldversion): Update copyright to 2011.
482
483 For older changes see ChangeLog-2010
484 \f
485 Local Variables:
486 mode: change-log
487 left-margin: 8
488 fill-column: 74
489 version-control: never
490 End: