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