2011-03-25 Tristan Gingold <gingold@adacore.com>
[binutils.git] / ld / ChangeLog
blob2325765cc01d02330df09574004deea556c340a4
1 2011-03-23  Joseph Myers  <joseph@codesourcery.com>
3         * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
4         are enabled.  Mark level as possibly unused.
6 2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>
8         * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
9         (eavrxmega?.c): Likewise.
10         * configure.tgt (targ_extra_emuls): Likewise.
11         * emulparams/avrxmega1.sh: New file.
12         * emulparams/avrxmega2.sh: Likewise.
13         * emulparams/avrxmega3.sh: Likewise.
14         * emulparams/avrxmega4.sh: Likewise.
15         * emulparams/avrxmega5.sh: Likewise.
16         * emulparams/avrxmega6.sh: Likewise.
17         * emulparams/avrxmega7.sh: Likewise.
18         * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
19         Add avrxmega6, avrxmega7 to list of architectures for no stubs.
21 2011-03-21  Eric B. Weddington  <eric.weddington@atmel.com>
23         * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
25 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
27         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
28         eh->target_internal.
30 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
32         * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
33         instead of dynamic_sections_created.
35 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
37         * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
39 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
41         * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
43 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
45         * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
46         wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
47         * ldmain.c (add_archive_element): Set it if the member is claimed.
48         * ldlang.c (new_afile): Initialise claim_archive and claimed members.
49         (find_replacements_insert_point): New helper function.
50         (lang_process): After adding and opening replacement files passed
51         from plugin, splice them into correct place in statement list and
52         file chains to preserve critical link order.
53         (lang_list_insert_after): New helper function.
54         (lang_list_remove_tail): Likewise.
56 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
58         * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
59         (IRONLY_SUFFIX_LEN): Delete.
60         (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
61         (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
62         enclosing lang input statement instead.
64 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
66         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
67         alignment of input sections when creating orphan output sections
68         during relocatable link.
69         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
71 2011-03-04  H.J. Lu  <hongjiu.lu@intel.com>
73         * ld.texinfo: Document --verbose[=NUMBER].
75         * lexsup.c (ld_options): Update --verbose.
76         (parse_args): Set report_plugin_symbols.
78         * plugin.c (report_plugin_symbols): New.
79         (get_symbols): Report plugin symbols if report_plugin_symbols
80         is TRUE.
82         * plugin.h (report_plugin_symbols): New.
84 2011-03-01  H.J. Lu  <hongjiu.lu@intel.com>
86         PR ld/12529
87         * testplug.c: Don't include "filenames.h".
88         (onclaim_file): Don't use filename_cmp.
90 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
92         * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
93         * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
94         Likewise.
95         (gld${EMULATION_NAME}_stat_needed): Likewise.
96         (gld${EMULATION_NAME}_check_needed): Likewise.
97         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
98         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
99         * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
100         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
101         * ldfile.c (ldfile_open_file): Likewise.
102         * ldlang.c (wild_sort): Likewise.
103         (lookup_name): Likewise.
104         (check_excluded_libs): Likewise.
105         * ldmisc.c (vfinfo): Likewise.
106         * pe-dll.c (libnamencmp): Likewise.
107         (auto_export): Likewise.
108         (pe_dll_generate_implib): Likewise.
109         * testplug.c (onclaim_file): Likewise.
111 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
113         PR ld/12507
114         * plugin.c (get_symbols): Don't check entry symbol here.
115         (init_non_ironly_hash): Add entry_symbol chain into
116         non_ironly_hash.
118 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
120         PR ld/12507
121         * plugin.c (get_symbols): Don't mark entry symbol IR only.
123 2011-02-18  John David Anglin  <dave.anglin@nrc-cnnrc.gc.ca>
125         PR ld/12376
126         emulparams/hppalinux.sh (DATA_ADDR): Define.
127         (SHLIB_DATA_ADDR): Likewise.
129 2011-02-16  H.J. Lu  <hongjiu.lu@intel.com>
131         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
132         x32 for x32.
134 2011-02-15  Kai Tietz  <kai.tietz@onevision.com>
136         * pe-dll.c (process_def_file_and_drectve): Don't strip
137         leading underscore from symbol by calling bfd_find_version_for_sym.
139 2011-02-14  Mike Frysinger  <vapier@gentoo.org>
141         * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
142         the bfd_demangle of sym, change users of sym to c_sym when not
143         already demangling, and free when done.  Change callers of
144         cplus_demangle to bfd_demangle.
146 2011-02-14  Alan Modra  <amodra@gmail.com>
148         * ldmain.c (remove_output): Rename to..
149         (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
150         (main): Adjust.
151         * plugin.c (plugin_call_cleanup): Make global.
152         (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
153         * plugin.h (plugin_call_cleanup): Declare.
155 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
157         * configure: Regenerate.
159 2011-02-10  Alan Modra  <amodra@gmail.com>
161         * scripttempl/armbpabi.sc: Revert 2010-11-02  H.J. Lu.
162         * scripttempl/avr.sc: Likewise.
163         * scripttempl/elf32cr16.sc: Likewise.
164         * scripttempl/elf32crx.sc: Likewise.
165         * scripttempl/elf32msp430.sc: Likewise.
166         * scripttempl/elf32msp430_3.sc: Likewise.
167         * scripttempl/elf32sh-symbian.sc: Likewise.
168         * scripttempl/elf64hppa.sc: Likewise.
169         * scripttempl/elf_chaos.sc: Likewise.
170         * scripttempl/elfd10v.sc: Likewise.
171         * scripttempl/elfd30v.sc: Likewise.
172         * scripttempl/elfi370.sc: Likewise.
173         * scripttempl/elfm68hc11.sc: Likewise.
174         * scripttempl/elfm68hc12.sc: Likewise.
175         * scripttempl/elfxtensa.sc: Likewise.
176         * scripttempl/ip2k.sc: Likewise.
177         * scripttempl/iq2000.sc: Likewise.
178         * scripttempl/mep.sc: Likewise.
179         * scripttempl/mmo.sc: Likewise.
180         * scripttempl/v850.sc: Likewise.
181         * scripttempl/xstormy16.sc: Likewise.
182         * scripttempl/elf.sc: Revert 2010-10-29  H.J. Lu.
184 2011-01-22  H.J. Lu  <hongjiu.lu@intel.com>
186         * Makefile.am (CXX): Removed.
188         * configure.in: Add AC_PROG_CXX.
190         * Makefile.in: Regenerated.
191         * configure: Likewise.
193 2011-01-22  Richard Sandiford  <rdsandiford@googlemail.com>
195         * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
196         private data and GP size.
198 2011-01-21  Alan Modra  <amodra@gmail.com>
200         * ldexp.c (fold_binary): Set result section for arithmetic and
201         logical operations to NULL when both operands are in same section.
202         * ld.texinfo (Expression Section): Describe this.
204 2011-01-14  Alan Modra  <amodra@gmail.com>
206         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
207         attempt to put non-alloc orphans before debug sections, just place
208         them after .comment.
210 2011-01-14  J. Park  <grassman@gmail.com>
212         PR ld/12339
213         * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
215 2011-01-14  Alan Modra  <amodra@gmail.com>
217         * Makefile.am: Sort emulation rules.
218         (eelf32am33lin.c): Delete.
219         (ALL_EMULATION_SOURCES): Sort, add missing entries.
220         (ALL_64_EMULATION_SOURCES): Likewise.
221         * Makefile.in: Regenerate.
223 2011-01-13  Alan Modra  <amodra@gmail.com>
225         PR ld/12356
226         * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
227         (Expression Section): Update.
228         * ld.h (ld_config_type): Add sane_expr.
229         * ldgram.y (ifile_p1): Add LD_FEATURE.
230         * ldlex.l (LD_FEATYRE): New.
231         * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
232         * ldexp.h (struct ldexp_control): Delete uses_defined.
233         * ldexp.c: Remove all uses of uses_defined.
234         (fold_name): Test config.sane_expr rather than ld_compatibility.
235         (exp_fold_tree_1): Likewise.  Adjust handling of assignments
236         during first phase.
237         * ldlang.h (ld_compatibility): Delete.
238         (lang_ld_feature): Declare.
239         * ldlang.c (ld_compatibility): Delete.
240         (open_input_bfds): Only handle assignments for --defsym.
241         (lang_ld_feature): New function.
243         PR ld/12356
244         * ldexp.h (exp_assop): Delete.
245         (exp_assign, exp_defsym): Declare.
246         * ldexp.c (exp_assop): Make static, handle all assignment variations.
247         (exp_assign, exp_defsym): New functions.
248         (exp_provide): Use exp_assop.
249         * ldgram.y (defsym_expr): Use exp_defsym.
250         * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
251         * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
252         * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
254 2011-01-12  Alan Modra  <amodra@gmail.com>
256         PR ld/12380
257         * ldexp.h (enum phase_enum): Comment.  Add exp_dataseg_done.
258         * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code.  Test
259         for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
260         to detect when we've finished sizing sections.
261         (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
262         (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise.  Also test
263         that we are not inside an output section statement.
264         * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
265         not exp_dataseg_relro_adjust or exp_dataseg_adjust.  Don't set
266         lang_final_phase_enum here.
267         (lang_process): Set lang_final_phase_enum here.
269 2011-01-10  Nick Clifton  <nickc@redhat.com>
271         * po/da.po: Updated Danish translation.
273 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
275         * ldlang.c (startup_file): Removed.
276         (lang_startup): Updated.
278 2011-01-05  H.J. Lu  <hongjiu.lu@intel.com>
280         PR ld/12364
281         * plugin.c (get_symbols): Check if owner_sec->owner is NULL
282         before accessing its flags field.
284 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
286         * ldver.c (ldversion): Update copyright to 2011.
288 For older changes see ChangeLog-2010
290 Local Variables:
291 mode: change-log
292 left-margin: 8
293 fill-column: 74
294 version-control: never
295 End: