135f10d128248a6c6aaa1aa586e828b7b0e4486b
[platform/upstream/binutils.git] / ld / ChangeLog
1 2011-04-08  Hector Oron  <hector.oron@gmail.com>
2
3         PR ld/12643
4         * configure.tgt: Add support for arm-*-gnueabihf targets.
5
6 2011-04-07  Eric B. Weddington  <eric.weddington@atmel.com>
7
8         * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
9
10 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
11
12         * configure.tgt: Remove stray ;;.
13
14 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
15
16         * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
17         strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
18         thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
19         xscale-*-coff, xscale-*-elf): Remove targets.
20
21 2011-03-31  H.J. Lu  <hongjiu.lu@intel.com>
22
23         * configure.tgt: Add elf_l1om to targ_extra_libpath for
24          x86_64-*-linux-*.
25
26         * emulparams/elf_l1om.sh: Remove duplicates.
27
28 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
29
30         * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
31         GENERATE_SHLIB_SCRIPT): New defines.
32         (TEXT_START_ADDR): Define differently depending on target.
33         (.got): Redefine to include "*(.dsbt)".
34         (SDATA_START_SYMBOLS): Remove, replace with
35         (OTHER_GOT_SYMBOLS): New.
36         (OTHER_BSS_SECTIONS): Define only for ELF targets.
37         * emultempl/tic6xdsbt.em: New file.
38         * gen-doc.texi: Set C6X.
39         * ld.texinfo: Likewise.
40         (Options specific to C6X uClinux targets): New section.
41
42 2011-03-29  Alan Modra  <amodra@gmail.com>
43
44         PR ld/12613
45         * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
46
47 2011-03-26  John Marino  <binutils@marino.st>
48
49         * configure.host: Update *-*-dragonfly* host entry.
50         * configure.tgt: Update *-*-dragonfly* target entry.
51         * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
52
53 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
54
55         * configure.in: Check for windows.h, not Windows.h.
56         * configure: Regenerate.
57         * plugin.c: Include windows.h, not Windows.h.
58
59 2011-03-25  Eric B. Weddington  <eric.weddington@atmel.com>
60
61         * Makefile.in: Regenerate.
62
63 2011-03-23  Joseph Myers  <joseph@codesourcery.com>
64
65         * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
66         are enabled.  Mark level as possibly unused.
67
68 2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>
69
70         * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
71         (eavrxmega?.c): Likewise.
72         * configure.tgt (targ_extra_emuls): Likewise.
73         * emulparams/avrxmega1.sh: New file.
74         * emulparams/avrxmega2.sh: Likewise.
75         * emulparams/avrxmega3.sh: Likewise.
76         * emulparams/avrxmega4.sh: Likewise.
77         * emulparams/avrxmega5.sh: Likewise.
78         * emulparams/avrxmega6.sh: Likewise.
79         * emulparams/avrxmega7.sh: Likewise.
80         * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
81         Add avrxmega6, avrxmega7 to list of architectures for no stubs.
82
83 2011-03-21  Eric B. Weddington  <eric.weddington@atmel.com>
84
85         * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
86
87 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
88
89         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
90         eh->target_internal.
91
92 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
93
94         * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
95         instead of dynamic_sections_created.
96
97 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
98
99         * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
100
101 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
102
103         * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
104
105 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
106
107         * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
108         wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
109         * ldmain.c (add_archive_element): Set it if the member is claimed.
110         * ldlang.c (new_afile): Initialise claim_archive and claimed members.
111         (find_replacements_insert_point): New helper function.
112         (lang_process): After adding and opening replacement files passed
113         from plugin, splice them into correct place in statement list and
114         file chains to preserve critical link order.
115         (lang_list_insert_after): New helper function.
116         (lang_list_remove_tail): Likewise.
117
118 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
119
120         * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
121         (IRONLY_SUFFIX_LEN): Delete.
122         (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
123         (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
124         enclosing lang input statement instead.
125
126 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
127
128         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
129         alignment of input sections when creating orphan output sections
130         during relocatable link.
131         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
132
133 2011-03-04  H.J. Lu  <hongjiu.lu@intel.com>
134
135         * ld.texinfo: Document --verbose[=NUMBER].
136
137         * lexsup.c (ld_options): Update --verbose.
138         (parse_args): Set report_plugin_symbols.
139
140         * plugin.c (report_plugin_symbols): New.
141         (get_symbols): Report plugin symbols if report_plugin_symbols
142         is TRUE.
143
144         * plugin.h (report_plugin_symbols): New.
145
146 2011-03-01  H.J. Lu  <hongjiu.lu@intel.com>
147
148         PR ld/12529
149         * testplug.c: Don't include "filenames.h".
150         (onclaim_file): Don't use filename_cmp.
151
152 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
153
154         * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
155         * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
156         Likewise.
157         (gld${EMULATION_NAME}_stat_needed): Likewise.
158         (gld${EMULATION_NAME}_check_needed): Likewise.
159         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
160         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
161         * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
162         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
163         * ldfile.c (ldfile_open_file): Likewise.
164         * ldlang.c (wild_sort): Likewise.
165         (lookup_name): Likewise.
166         (check_excluded_libs): Likewise.
167         * ldmisc.c (vfinfo): Likewise.
168         * pe-dll.c (libnamencmp): Likewise.
169         (auto_export): Likewise.
170         (pe_dll_generate_implib): Likewise.
171         * testplug.c (onclaim_file): Likewise.
172
173 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
174
175         PR ld/12507
176         * plugin.c (get_symbols): Don't check entry symbol here.
177         (init_non_ironly_hash): Add entry_symbol chain into
178         non_ironly_hash.
179
180 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
181
182         PR ld/12507
183         * plugin.c (get_symbols): Don't mark entry symbol IR only.
184
185 2011-02-18  John David Anglin  <dave.anglin@nrc-cnnrc.gc.ca>
186
187         PR ld/12376
188         emulparams/hppalinux.sh (DATA_ADDR): Define.
189         (SHLIB_DATA_ADDR): Likewise.
190
191 2011-02-16  H.J. Lu  <hongjiu.lu@intel.com>
192
193         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
194         x32 for x32.
195
196 2011-02-15  Kai Tietz  <kai.tietz@onevision.com>
197
198         * pe-dll.c (process_def_file_and_drectve): Don't strip
199         leading underscore from symbol by calling bfd_find_version_for_sym.
200
201 2011-02-14  Mike Frysinger  <vapier@gentoo.org>
202
203         * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
204         the bfd_demangle of sym, change users of sym to c_sym when not
205         already demangling, and free when done.  Change callers of
206         cplus_demangle to bfd_demangle.
207
208 2011-02-14  Alan Modra  <amodra@gmail.com>
209
210         * ldmain.c (remove_output): Rename to..
211         (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
212         (main): Adjust.
213         * plugin.c (plugin_call_cleanup): Make global.
214         (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
215         * plugin.h (plugin_call_cleanup): Declare.
216
217 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
218
219         * configure: Regenerate.
220
221 2011-02-10  Alan Modra  <amodra@gmail.com>
222
223         * scripttempl/armbpabi.sc: Revert 2010-11-02  H.J. Lu.
224         * scripttempl/avr.sc: Likewise.
225         * scripttempl/elf32cr16.sc: Likewise.
226         * scripttempl/elf32crx.sc: Likewise.
227         * scripttempl/elf32msp430.sc: Likewise.
228         * scripttempl/elf32msp430_3.sc: Likewise.
229         * scripttempl/elf32sh-symbian.sc: Likewise.
230         * scripttempl/elf64hppa.sc: Likewise.
231         * scripttempl/elf_chaos.sc: Likewise.
232         * scripttempl/elfd10v.sc: Likewise.
233         * scripttempl/elfd30v.sc: Likewise.
234         * scripttempl/elfi370.sc: Likewise.
235         * scripttempl/elfm68hc11.sc: Likewise.
236         * scripttempl/elfm68hc12.sc: Likewise.
237         * scripttempl/elfxtensa.sc: Likewise.
238         * scripttempl/ip2k.sc: Likewise.
239         * scripttempl/iq2000.sc: Likewise.
240         * scripttempl/mep.sc: Likewise.
241         * scripttempl/mmo.sc: Likewise.
242         * scripttempl/v850.sc: Likewise.
243         * scripttempl/xstormy16.sc: Likewise.
244         * scripttempl/elf.sc: Revert 2010-10-29  H.J. Lu.
245
246 2011-01-22  H.J. Lu  <hongjiu.lu@intel.com>
247
248         * Makefile.am (CXX): Removed.
249
250         * configure.in: Add AC_PROG_CXX.
251
252         * Makefile.in: Regenerated.
253         * configure: Likewise.
254
255 2011-01-22  Richard Sandiford  <rdsandiford@googlemail.com>
256
257         * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
258         private data and GP size.
259
260 2011-01-21  Alan Modra  <amodra@gmail.com>
261
262         * ldexp.c (fold_binary): Set result section for arithmetic and
263         logical operations to NULL when both operands are in same section.
264         * ld.texinfo (Expression Section): Describe this.
265
266 2011-01-14  Alan Modra  <amodra@gmail.com>
267
268         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
269         attempt to put non-alloc orphans before debug sections, just place
270         them after .comment.
271
272 2011-01-14  J. Park  <grassman@gmail.com>
273
274         PR ld/12339
275         * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
276
277 2011-01-14  Alan Modra  <amodra@gmail.com>
278
279         * Makefile.am: Sort emulation rules.
280         (eelf32am33lin.c): Delete.
281         (ALL_EMULATION_SOURCES): Sort, add missing entries.
282         (ALL_64_EMULATION_SOURCES): Likewise.
283         * Makefile.in: Regenerate.
284
285 2011-01-13  Alan Modra  <amodra@gmail.com>
286
287         PR ld/12356
288         * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
289         (Expression Section): Update.
290         * ld.h (ld_config_type): Add sane_expr.
291         * ldgram.y (ifile_p1): Add LD_FEATURE.
292         * ldlex.l (LD_FEATYRE): New.
293         * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
294         * ldexp.h (struct ldexp_control): Delete uses_defined.
295         * ldexp.c: Remove all uses of uses_defined.
296         (fold_name): Test config.sane_expr rather than ld_compatibility.
297         (exp_fold_tree_1): Likewise.  Adjust handling of assignments
298         during first phase.
299         * ldlang.h (ld_compatibility): Delete.
300         (lang_ld_feature): Declare.
301         * ldlang.c (ld_compatibility): Delete.
302         (open_input_bfds): Only handle assignments for --defsym.
303         (lang_ld_feature): New function.
304
305         PR ld/12356
306         * ldexp.h (exp_assop): Delete.
307         (exp_assign, exp_defsym): Declare.
308         * ldexp.c (exp_assop): Make static, handle all assignment variations.
309         (exp_assign, exp_defsym): New functions.
310         (exp_provide): Use exp_assop.
311         * ldgram.y (defsym_expr): Use exp_defsym.
312         * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
313         * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
314         * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
315
316 2011-01-12  Alan Modra  <amodra@gmail.com>
317
318         PR ld/12380
319         * ldexp.h (enum phase_enum): Comment.  Add exp_dataseg_done.
320         * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code.  Test
321         for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
322         to detect when we've finished sizing sections.
323         (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
324         (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise.  Also test
325         that we are not inside an output section statement.
326         * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
327         not exp_dataseg_relro_adjust or exp_dataseg_adjust.  Don't set
328         lang_final_phase_enum here.
329         (lang_process): Set lang_final_phase_enum here.
330
331 2011-01-10  Nick Clifton  <nickc@redhat.com>
332
333         * po/da.po: Updated Danish translation.
334
335 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
336
337         * ldlang.c (startup_file): Removed.
338         (lang_startup): Updated.
339
340 2011-01-05  H.J. Lu  <hongjiu.lu@intel.com>
341
342         PR ld/12364
343         * plugin.c (get_symbols): Check if owner_sec->owner is NULL
344         before accessing its flags field.
345
346 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
347
348         * ldver.c (ldversion): Update copyright to 2011.
349
350 For older changes see ChangeLog-2010
351 \f
352 Local Variables:
353 mode: change-log
354 left-margin: 8
355 fill-column: 74
356 version-control: never
357 End: