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