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