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