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