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