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