8257eecd837553563aba7d993931672674bde4bd
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2011-10-10 Alan Modra <amodra@gmail.com>
2
3 * emultempl/ppc64elf.em (ppc_add_stub_section): Align to 32 bytes.
4
5 2011-10-09 Alan Modra <amodra@gmail.com>
6
7 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Add
8 missing colon to error message.
9 (ppc_before_allocation): Likewise.
10
11 2011-10-06 Alan Modra <amodra@gmail.com>
12
13 PR ld/13229
14 * plugin.c (tv_header_tags): Add LDPT_GET_SYMBOLS_V2.
15 (set_tv_header): Handle it. Adjust LDPT_GET_SYMBOLS. Return void.
16 (get_symbols): Add def_ironly_exp param. Return that value for
17 syms exported from shared libs.
18 (get_symbols_v1, get_symbols_v2): New wrapper functions.
19 * testplug.c: Update for above changes.
20
21 2011-09-27 Kai Tietz <ktietz@redhat.com>
22
23 * scripttempl/pe.sc (.text): Add support for
24 .gnu.linkonce.t.* section.
25 (.debug_info): Only use .gnu.linkonce.wi.* for
26 relocating.
27 * scripttempl/pep.sc: Likewise.
28
29 2011-09-22 Tristan Gingold <gingold@adacore.com>
30
31 * NEWS: Add marker for 2.22.
32
33 2011-09-20 Alan Modra <amodra@gmail.com>
34
35 PR ld/13201
36 * ldlang.h (lang_input_statement_type): Add "reload" bitfield.
37 Clarify comments.
38 * ldlang.c (new_afile): Init new field.
39 (load_symbols): Don't call ldlang_add_file when reloading.
40 (open_input_bfds): Reload as-needed libs during plugin rescan.
41
42 2011-09-15 H.J. Lu <hongjiu.lu@intel.com>
43
44 PR ld/12975
45 * ldlang.c (lang_elf_version_info): Removed.
46 (lang_register_vers_node): Replace lang_elf_version_info with
47 link_info.version_info.
48 (lang_add_vers_depend): Likewise.
49 * pe-dll.c (process_def_file_and_drectve): Likewise.
50 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
51
52 * ldlang.h (lang_elf_version_info): Removed.
53
54 * plugin.c (is_visible_from_outside): Check if symbol is hidden
55 by version script.
56
57 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
58 Remove lang_elf_version_info.
59
60 2011-09-15 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
61
62 PR ld/13183
63 * ldmain.c (add_archive_element): Support thin archive member
64 for LTO.
65
66 2011-08-26 Nick Clifton <nickc@redhat.com>
67
68 * po/es.po: Updated Spanish translation.
69
70 2011-08-26 Nick Clifton <nickc@redhat.com>
71
72 * NEWS: Mention that --no-copy-dt-needed-entries is now the
73 default.
74
75 2011-08-22 Michael Matz <matz@suse.de>
76
77 * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
78 * ld.texinfo (--copy-dt-needed-entries): Mention new default.
79
80 2011-08-17 Alan Modra <amodra@gmail.com>
81
82 PR ld/12762
83 * ldlang.c (section_already_linked): Revert 2011-07-09 changes.
84 * plugin.c: Likewise.
85 (asymbol_from_plugin_symbol): Create linkonce section for syms
86 with comdat_key.
87
88 2011-08-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
89
90 * emultempl/armelf.em (fix_arm1176): New variable.
91 (arm_elf_create_output_section_statements): Pass
92 fix_arm1176 option to bfd backend.
93 (OPTION_FIX_ARM1176): New define.
94 (OPTION_NO_FIX_ARM1176): Likewise.
95 (PARSE_AND_LIST_LONGOPTS): Add new command line options.
96 (PARSE_AND_LIST_OPTIONS): Likewise.
97 (PARSE_AND_LIST_ARGS_CASES): Likewise.
98 * ld.texinfo: Document new command line options.
99
100 2011-08-09 Alan Modra <amodra@gmail.com>
101
102 PR ld/13066
103 * plugin.c (add_symbols): Revert 2011-08-05.
104
105 2011-08-06 Kai Tietz <ktietz@redhat.com>
106
107 * scripttempl/pep.sc: Add .debug_macro section.
108 * scripttempl/pe.sc: Likewise.
109
110 2011-08-05 Alan Modra <amodra@gmail.com>
111
112 PR ld/12762
113 * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
114 table if already seen.
115
116 2011-08-04 H.J. Lu <hongjiu.lu@intel.com>
117
118 * ldmain.c (main): Replace remove_output with ld_cleanup in
119 comments.
120
121 2011-07-26 Alan Modra <amodra@gmail.com>
122
123 * emulparams/elf32ppc.sh: Source plt_unwind.sh.
124 * emulparams/elf64ppc.sh: Likewise.
125 * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
126 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
127 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
128 existing values.
129 * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
130 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
131 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
132 existing values.
133
134 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
135
136 * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
137 eelf_k1om_fbsd.o
138 (eelf_k1om.c): New.
139 (eelf_k1om_fbsd.c): Likewise.
140 * Makefile.in: Regenerated.
141
142 * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
143 is supported. Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
144 (targ_extra_emuls): Likewise.
145
146 * emulparams/elf_k1om.sh: New.
147 * emulparams/elf_k1om_fbsd.sh: Likewise.
148
149 2011-07-16 Roland McGrath <roland@hack.frob.com>
150
151 * ld.h (args_type): New field print_output_format.
152 * lexsup.c (enum option_values, ld_options, parse_args):
153 Handle --print-output-format.
154 * ldmain.c (main): Implement --print-output-format.
155 * ld.texinfo (Options): Document it.
156
157 * ldlang.c (lang_get_output_target): Don't return current_target
158 when it's NULL.
159
160 2011-07-15 Alan Modra <amodra@gmail.com>
161
162 * Makefile.am (e*.c): Sort.
163 * Makefile.in: Regenerate.
164
165 2011-07-14 Alan Modra <amodra@gmail.com>
166
167 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
168 gld${EMULATION_NAME}_list_options): Don't condition -z relro
169 and -z norelro on COMMONPAGESIZE being defined.
170
171 2011-07-14 Alan Modra <amodra@gmail.com>
172
173 * emultempl/ppc64elf.em (plt_static_chain): New var.
174 (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
175 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
176 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
177 --plt-static-chain and --no-plt-static-chain.
178
179 2011-07-14 Alan Modra <amodra@gmail.com>
180
181 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
182 gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
183 Provide --build-id, -z defs, -z muldefs, -z max-page-size,
184 -z common-page-size, -z execstack, -z noexecstack for all targets.
185 Add help for --exclude-libs.
186 (OPTION_LD_GENERATED_UNWIND_INFO,
187 OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
188 (gld${EMULATION_NAME}_handle_option): ..and code handling
189 --ld-generated-unwind-info and --no-ld-generated-unwind-info..
190 * emulparams/plt_unwind.sh: ..to here. New file. Add help.
191 * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
192 * emulparams/elf_i386.sh: Likewise.
193 * emulparams/elf_i386_chaos.sh: Likewise.
194 * emulparams/elf_i386_ldso.sh: Likewise.
195 * emulparams/elf_l1om.sh: Likewise.
196 * emulparams/elf_x86_64.sh: Likewise.
197
198 2011-07-11 Catherine Moore <clm@codesourcery.com>
199
200 * ld.h (section_flag_list): Add field to struct wildcard_spec.
201 * ld.texinfo (INPUT_SECTION_FLAGS): Document.
202 * ldgram.y (flag_info_list, flag_info): Add to union.
203 (INPUT_SECTION_FLAGS): New token.
204 (wildcard_spec): Initialize section_flag_list to NULL for
205 each alternative.
206 (sect_flag_list, sect_flags): New rules.
207 (input_section_spec_no_keep): Add alternatives to recognize
208 sect_flags.
209 * ldlang.c (walk_wild_consider_section): Initialize
210 section_flag_info field of the section struct.
211 (lang_add_section): Check input section flags.
212 (lang_add_wild): Initialize section_flag_list field of
213 the statement struct.
214 * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
215 (lang_wild_statement_struct): Likewise.
216 * ldlex.l (INPUT_SECTION_FLAGS): New token.
217 * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
218 * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
219
220 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
221
222 PR ld/12942
223 * ldlang.c (section_already_linked): Pass "struct already_linked *"
224 to bfd_section_already_linked.
225 (lang_process): Set link_info.loading_lto_outputs before
226 loading LTO outputs.
227 * plugin.c: Include "libbfd.h".
228 (add_symbols): Call bfd_section_already_linked with comdat_key.
229
230 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
231
232 * configure.tgt: Revert x32 change.
233
234 2011-06-20 Jakub Jelinek <jakub@redhat.com>
235
236 PR ld/12570
237 * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
238 OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
239 (gld${EMULATION_NAME}_handle_option): Handle
240 --ld-generated-unwind-info and --no-ld-generated-unwind-info.
241 * ld.texinfo (--ld-generated-unwind-info,
242 --no-ld-generated-unwind-info): Document.
243
244 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
245
246 * configure.tgt: Support x32.
247
248 2011-06-15 Nick Clifton <nickc@redhat.com>
249
250 * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
251
252 2011-06-13 Walter Lee <walt@tilera.com>
253
254 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
255 eelf32tilepro.c.
256 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
257 (eelf32tilegx.c): New target.
258 (eelf32tilepro.c): Likewise.
259 (eelf64tilegx.c): Likewise.
260 * Makefile.in: Regenerate.
261 * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
262 * emulparams/elf32tilegx.sh: New file.
263 * emulparams/elf64tilegx.sh: New file.
264 * emulparams/elf32tilepro.sh: New file.
265
266 2011-06-13 Alan Modra <amodra@gmail.com>
267
268 * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
269 warning symbols here.
270 * emultempl/pe.em (pr_sym): Remove redundant test.
271 * emultempl/pep.em (pr_sym): Likewise.
272
273 2011-06-09 Nick Clifton <nickc@redhat.com>
274
275 PR ld/12845
276 * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
277 for sections that have been removed by garbage collection.
278
279 2011-06-08 Alan Modra <amodra@gmail.com>
280
281 * ldlang.c (lang_one_common): Handle warning symbols.
282
283 2011-06-07 Nick Clifton <nickc@redhat.com>
284
285 * configure.tgt: Accept any V850 architecture.
286
287 2011-06-03 Nick Clifton <nickc@redhat.com>
288
289 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
290 Add rule to build eelf32am33lin.c
291 * Makefile.in: Regenerate.
292
293 2011-06-02 Nick Clifton <nickc@redhat.com>
294
295 * lexsup.c: Fix spelling mistake in comment.
296 * scripttempl/epocpe.sc: Likewise.
297 * scripttempl/i386beos.sc: Likewise.
298 * scripttempl/mcorepe.sc: Likewise.
299 * scripttempl/pe.sc: Likewise.
300 * scripttempl/pep.sc: Likewise.
301 * po/ld.pot: Regenerate.
302
303 2011-05-27 Nick Clifton <nickc@redhat.com>
304
305 * scripttempl/v850.sc (_heap_start): Provide.
306
307 2011-05-23 Alan Modra <amodra@gmail.com>
308
309 * ldmisc.c (vfinfo): Add %H.
310 * ldmain.c (reloc_overflow): Use %H rather than %C.
311 (reloc_dangerous, unattached_reloc): Likewise.
312
313 2011-05-23 Alan Modra <amodra@gmail.com>
314
315 PR 12763
316 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
317 like sections to existing .sdata2, and similarly for orphan TLS
318 sections.
319 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
320
321 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
322
323 PR ld/12759
324 * emultempl/rxelf.em (ignore_lma): New variable.
325 (rx_elf_create_output_section_statements): Pass the setiing of
326 ignore_lma to bfd_elf32_rx_set_target_flags.
327 (OPTION_IGNORE_LMA): Define.
328 (OPTION_NO_IGNORE_LMA): Define.
329 (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
330 (PARSE_AND_LIST_OPTIONS): Add ignore lma.
331 (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
332
333 2011-05-17 Alan Modra <amodra@gmail.com>
334
335 PR ld/12760
336 * ldmain.c (notice): Add "flags" and "string" param.
337 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
338 and constructor syms.
339
340 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
341
342 * ldlang.c (print_assignment): Use the symbol's section if we
343 use its value.
344 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
345 comment on copying symbol type.
346
347 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
348
349 PR ld/12760
350 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
351 undefweak.
352
353 2011-05-16 Alan Modra <amodra@gmail.com>
354
355 * ldlang.c (lang_leave_output_section_statement): Don't copy
356 previous lma_region if given address.
357
358 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
359
360 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
361 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
362 * Makefile.am (ALL_EMULATIONS): Add these files.
363 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
364 * Makefile.in: Regenerated.
365 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
366 vectors.
367 * emulparams/elf32_tic6x_elf_be.sh: New file.
368 * emulparams/elf32_tic6x_elf_le.sh: New file.
369 * emulparams/elf32_tic6x_linux_be.sh: New file.
370 * emulparams/elf32_tic6x_linux_le.sh: New file.
371 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
372 (tic6x-*-*): Replaced by these.
373
374 2011-05-13 Jan Beulich <jbeulich@novell.com>
375
376 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
377
378 2011-05-09 Paul Brook <paul@codesourcery.com>
379
380 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
381 (compare_output_sec_vma): New function.
382 (gld${EMULATION_NAME}_after_allocation): New function.
383 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
384 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
385 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
386 (LDEMUL_AFTER_ALLOCATION): Set.
387 * ld.texinfo: Document c6x --no-merge-exidx-entries.
388
389 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
390
391 PR ld/12365
392 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
393 (__rt_psrelocs_end): Likewise.
394 (__rt_psrelocs_size): Likewise difference between the above.
395 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
396 immediately after end of pseudo-reloc data.
397 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
398 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
399 calculate backward from list end.
400 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
401 * scripttempl/pep.sc: Likewise.
402
403 2011-05-06 Tristan Gingold <gingold@adacore.com>
404
405 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
406
407 2011-05-04 Tristan Gingold <gingold@adacore.com>
408
409 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
410 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
411 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
412 (gld${EMULATION_NAME}_add_options): New function.
413 (gld${EMULATION_NAME}_list_options): Ditto.
414 (gld${EMULATION_NAME}_handle_option): Ditto.
415 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
416 (LDEMUL_LIST_OPTIONS): Define.
417
418 2011-05-04 Alan Modra <amodra@gmail.com>
419
420 PR ld/12726
421 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
422 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
423 assign to dot when lang_assigning_phase_enum.
424 * ldlang.h (lang_do_assignments): Update prototype.
425 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
426 callers.
427 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
428 lang_do_assignments calls.
429
430 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
431
432 PR ld/12614
433 * emultempl/pe.em (_after_open): Correctly check whether symbol is
434 in undef list.
435
436 2011-04-26 Kai Tietz <ktietz@redhat.com>
437
438 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
439 * scripttempl/pep.sc: Likewise.
440
441 2011-04-24 Alan Modra <amodra@gmail.com>
442
443 PR ld/12365
444 PR ld/12696
445 * ldmain.c (notice): Delete "name" param, add "h".
446 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
447 redefinitions of IR symbols in real BFDs.
448 (plugin_multiple_definition, plugin_multiple_common): Delete.
449 (non_ironly_hash, init_non_ironly_hash): Delete.
450 (is_visible_from_outside): Traverse entry_symbol chain.
451 (get_symbols): Use non_ir_ref flag rather than hash lookup.
452
453 2011-04-21 Tristan Gingold <gingold@adacore.com>
454
455 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
456
457 2011-04-20 Tristan Gingold <gingold@adacore.com>
458
459 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
460
461 2011-04-20 Alan Modra <amodra@gmail.com>
462
463 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
464
465 2011-04-20 Alan Modra <amodra@gmail.com>
466
467 PR ld/12365
468 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
469 to plugin IR BFD..
470 * ldmain.c (add_archive_element): ..and similar code here..
471 * plugin.c (plugin_maybe_claim): ..to here. New function.
472 (plugin_call_claim_file): Make static.
473 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
474 (plugin_multiple_common): New function.
475 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
476 * plugin.h (plugin_call_claim_file): Don't declare.
477 (plugin_maybe_claim): Declare.
478
479 2011-04-20 Alan Modra <amodra@gmail.com>
480
481 PR ld/12365
482 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
483 pointer arg rather than "name", "obfd", "osec", "oval". Add code
484 removed from linker.c. Hack around xcofflink.c oddity in
485 passing NULL nbfd.
486 (multiple_common): Similarly.
487 * plugin.c (orig_allow_multiple_defs): Delete.
488 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
489 (plugin_multiple_definition): Update.
490
491 2011-04-18 Kai Tietz <ktietz@redhat.com>
492
493 * deffilep.y (def_aligncomm): Avoid duplets.
494
495 * deffilep.y (def_pool_str): New type.
496 (pool_strs): Local static.
497 (def_pool_alloc): Local function.
498 (def_pool_strdup): Likewise.
499 (def_pool_free): Likewise.
500 (opt_name): Replace xmalloc/xstrdup by
501 def_pool_alloc/def_pool_strdup.
502 (dot_name): Likewise.
503 (anylang_id): Likewise.
504 (def_lex): Likewise.
505 (def_file_parse): Call def_pool_free on
506 exit and cleanup directives elements.
507 (def_file_add_directive): Call def_pool_free.
508
509 2011-04-18 Paul Brook <paul@codesourcery.com>
510
511 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
512 for unwinding tables.
513
514 2011-04-18 Alan Modra <amodra@gmail.com>
515
516 PR ld/12365
517 PR ld/12672
518 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
519 when no_more_claiming.
520 * ldmain.c (add_archive_element): Likewise.
521 (multiple_definition): Remove plugin_multiple_definition call.
522 (notice): Remove plugin_notice call.
523 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
524 Delete prototype.
525 (plugin_insert): New static var.
526 (open_input_bfds): Only rescan libs after plugin insert point.
527 (lang_gc_sections): Omit plugin claimed files.
528 (lang_process): Set plugin_insert. Only rescan when plugin adds
529 objects.
530 * plugin.h (no_more_claiming): Declare.
531 (plugin_notice, plugin_multiple_definition): Don't declare.
532 * plugin.c: Formatting.
533 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
534 plugin_callbacks): New static vars.
535 (no_more_claiming): Make global.
536 (plugin_cached_allow_multiple_defs): Delete.
537 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
538 use newer bfd_make_section variant. Make COMMON section too.
539 Error handling. Correct setting of gp size.
540 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
541 (message): Likewise for ACONCAT.
542 (asymbol_from_plugin_symbol): Use our COMMON section.
543 (get_symbols): When report_plugin_symbols, show visibility too.
544 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
545 (plugin_load_plugins): Save state of linker callbacks, set up to
546 call plugin_notice instead. Call init_non_ironly_hash here.
547 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
548 plugin callbacks.
549 (plugin_notice): Rewrite.
550 (plugin_multiple_definition): Make static, call original callback.
551
552 2011-04-15 Alan Modra <amodra@gmail.com>
553
554 PR ld/12672
555 * ldlang.c (enum open_bfd_mode): New.
556 (open_input_bfds): Replace "force" param with "mode". Reload
557 archives for rescan. Update all callers.
558 (lang_process): Make another open_input_bfds pass for plugins.
559
560 2011-04-13 Kai Tietz <ktietz@redhat.com>
561
562 PR binutils/12658
563 * deffile.h (def_file_add_export): Add is_dup argument.
564 (def_file_add_import): Likewise.
565 * deffilep.y (are_names_equal): New helper.
566 (cmp_export_elem): New helper.
567 (find_export_in_list): Add search routine for exports.
568 (def_file_add_export): Check for duplicates.
569 (cmp_import_elem): New helper.
570 (find_import_in_list): Add search routine for imports.
571 (def_file_add_import): Check for duplicates.
572 (def_exports): Handle duplicates.
573 (def_imports): Likewise.
574 * pe-dll.c (process_def_file_and_drectve): Likewise.
575 (pe_implied_import_dll): Likewise.
576
577 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
578
579 * scripttempl/elf.sc (.exception_ranges): Add new section.
580
581 2011-04-08 Hector Oron <hector.oron@gmail.com>
582
583 PR ld/12643
584 * configure.tgt: Add support for arm-*-gnueabihf targets.
585
586 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
587
588 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
589
590 2011-04-07 Joseph Myers <joseph@codesourcery.com>
591
592 * configure.tgt: Remove stray ;;.
593
594 2011-04-06 Joseph Myers <joseph@codesourcery.com>
595
596 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
597 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
598 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
599 xscale-*-coff, xscale-*-elf): Remove targets.
600
601 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
602
603 * configure.tgt: Add elf_l1om to targ_extra_libpath for
604 x86_64-*-linux-*.
605
606 * emulparams/elf_l1om.sh: Remove duplicates.
607
608 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
609
610 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
611 GENERATE_SHLIB_SCRIPT): New defines.
612 (TEXT_START_ADDR): Define differently depending on target.
613 (.got): Redefine to include "*(.dsbt)".
614 (SDATA_START_SYMBOLS): Remove, replace with
615 (OTHER_GOT_SYMBOLS): New.
616 (OTHER_BSS_SECTIONS): Define only for ELF targets.
617 * emultempl/tic6xdsbt.em: New file.
618 * gen-doc.texi: Set C6X.
619 * ld.texinfo: Likewise.
620 (Options specific to C6X uClinux targets): New section.
621
622 2011-03-29 Alan Modra <amodra@gmail.com>
623
624 PR ld/12613
625 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
626
627 2011-03-26 John Marino <binutils@marino.st>
628
629 * configure.host: Update *-*-dragonfly* host entry.
630 * configure.tgt: Update *-*-dragonfly* target entry.
631 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
632
633 2011-03-28 Joseph Myers <joseph@codesourcery.com>
634
635 * configure.in: Check for windows.h, not Windows.h.
636 * configure: Regenerate.
637 * plugin.c: Include windows.h, not Windows.h.
638
639 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
640
641 * Makefile.in: Regenerate.
642
643 2011-03-23 Joseph Myers <joseph@codesourcery.com>
644
645 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
646 are enabled. Mark level as possibly unused.
647
648 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
649
650 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
651 (eavrxmega?.c): Likewise.
652 * configure.tgt (targ_extra_emuls): Likewise.
653 * emulparams/avrxmega1.sh: New file.
654 * emulparams/avrxmega2.sh: Likewise.
655 * emulparams/avrxmega3.sh: Likewise.
656 * emulparams/avrxmega4.sh: Likewise.
657 * emulparams/avrxmega5.sh: Likewise.
658 * emulparams/avrxmega6.sh: Likewise.
659 * emulparams/avrxmega7.sh: Likewise.
660 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
661 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
662
663 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
664
665 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
666
667 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
668
669 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
670 eh->target_internal.
671
672 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
673
674 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
675 instead of dynamic_sections_created.
676
677 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
678
679 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
680
681 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
682
683 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
684
685 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
686
687 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
688 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
689 * ldmain.c (add_archive_element): Set it if the member is claimed.
690 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
691 (find_replacements_insert_point): New helper function.
692 (lang_process): After adding and opening replacement files passed
693 from plugin, splice them into correct place in statement list and
694 file chains to preserve critical link order.
695 (lang_list_insert_after): New helper function.
696 (lang_list_remove_tail): Likewise.
697
698 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
699
700 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
701 (IRONLY_SUFFIX_LEN): Delete.
702 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
703 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
704 enclosing lang input statement instead.
705
706 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
707
708 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
709 alignment of input sections when creating orphan output sections
710 during relocatable link.
711 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
712
713 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
714
715 * ld.texinfo: Document --verbose[=NUMBER].
716
717 * lexsup.c (ld_options): Update --verbose.
718 (parse_args): Set report_plugin_symbols.
719
720 * plugin.c (report_plugin_symbols): New.
721 (get_symbols): Report plugin symbols if report_plugin_symbols
722 is TRUE.
723
724 * plugin.h (report_plugin_symbols): New.
725
726 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
727
728 PR ld/12529
729 * testplug.c: Don't include "filenames.h".
730 (onclaim_file): Don't use filename_cmp.
731
732 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
733
734 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
735 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
736 Likewise.
737 (gld${EMULATION_NAME}_stat_needed): Likewise.
738 (gld${EMULATION_NAME}_check_needed): Likewise.
739 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
740 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
741 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
742 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
743 * ldfile.c (ldfile_open_file): Likewise.
744 * ldlang.c (wild_sort): Likewise.
745 (lookup_name): Likewise.
746 (check_excluded_libs): Likewise.
747 * ldmisc.c (vfinfo): Likewise.
748 * pe-dll.c (libnamencmp): Likewise.
749 (auto_export): Likewise.
750 (pe_dll_generate_implib): Likewise.
751 * testplug.c (onclaim_file): Likewise.
752
753 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
754
755 PR ld/12507
756 * plugin.c (get_symbols): Don't check entry symbol here.
757 (init_non_ironly_hash): Add entry_symbol chain into
758 non_ironly_hash.
759
760 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
761
762 PR ld/12507
763 * plugin.c (get_symbols): Don't mark entry symbol IR only.
764
765 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
766
767 PR ld/12376
768 emulparams/hppalinux.sh (DATA_ADDR): Define.
769 (SHLIB_DATA_ADDR): Likewise.
770
771 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
772
773 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
774 x32 for x32.
775
776 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
777
778 * pe-dll.c (process_def_file_and_drectve): Don't strip
779 leading underscore from symbol by calling bfd_find_version_for_sym.
780
781 2011-02-14 Mike Frysinger <vapier@gentoo.org>
782
783 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
784 the bfd_demangle of sym, change users of sym to c_sym when not
785 already demangling, and free when done. Change callers of
786 cplus_demangle to bfd_demangle.
787
788 2011-02-14 Alan Modra <amodra@gmail.com>
789
790 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
791 .text section, use newer bfd_make_section variant. Error handling.
792 Correct setting of gp size.
793 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
794 (message): Likewise for ACONCAT.
795 (get_symbols): Formatting.
796
797 2011-02-14 Alan Modra <amodra@gmail.com>
798
799 * ldmain.c (remove_output): Rename to..
800 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
801 (main): Adjust.
802 * plugin.c (plugin_call_cleanup): Make global.
803 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
804 * plugin.h (plugin_call_cleanup): Declare.
805
806 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
807
808 * configure: Regenerate.
809
810 2011-02-10 Alan Modra <amodra@gmail.com>
811
812 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
813 * scripttempl/avr.sc: Likewise.
814 * scripttempl/elf32cr16.sc: Likewise.
815 * scripttempl/elf32crx.sc: Likewise.
816 * scripttempl/elf32msp430.sc: Likewise.
817 * scripttempl/elf32msp430_3.sc: Likewise.
818 * scripttempl/elf32sh-symbian.sc: Likewise.
819 * scripttempl/elf64hppa.sc: Likewise.
820 * scripttempl/elf_chaos.sc: Likewise.
821 * scripttempl/elfd10v.sc: Likewise.
822 * scripttempl/elfd30v.sc: Likewise.
823 * scripttempl/elfi370.sc: Likewise.
824 * scripttempl/elfm68hc11.sc: Likewise.
825 * scripttempl/elfm68hc12.sc: Likewise.
826 * scripttempl/elfxtensa.sc: Likewise.
827 * scripttempl/ip2k.sc: Likewise.
828 * scripttempl/iq2000.sc: Likewise.
829 * scripttempl/mep.sc: Likewise.
830 * scripttempl/mmo.sc: Likewise.
831 * scripttempl/v850.sc: Likewise.
832 * scripttempl/xstormy16.sc: Likewise.
833 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
834
835 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
836
837 * Makefile.am (CXX): Removed.
838
839 * configure.in: Add AC_PROG_CXX.
840
841 * Makefile.in: Regenerated.
842 * configure: Likewise.
843
844 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
845
846 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
847 private data and GP size.
848
849 2011-01-21 Alan Modra <amodra@gmail.com>
850
851 * ldexp.c (fold_binary): Set result section for arithmetic and
852 logical operations to NULL when both operands are in same section.
853 * ld.texinfo (Expression Section): Describe this.
854
855 2011-01-14 Alan Modra <amodra@gmail.com>
856
857 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
858 attempt to put non-alloc orphans before debug sections, just place
859 them after .comment.
860
861 2011-01-14 J. Park <grassman@gmail.com>
862
863 PR ld/12339
864 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
865
866 2011-01-14 Alan Modra <amodra@gmail.com>
867
868 * Makefile.am: Sort emulation rules.
869 (eelf32am33lin.c): Delete.
870 (ALL_EMULATION_SOURCES): Sort, add missing entries.
871 (ALL_64_EMULATION_SOURCES): Likewise.
872 * Makefile.in: Regenerate.
873
874 2011-01-13 Alan Modra <amodra@gmail.com>
875
876 PR ld/12356
877 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
878 (Expression Section): Update.
879 * ld.h (ld_config_type): Add sane_expr.
880 * ldgram.y (ifile_p1): Add LD_FEATURE.
881 * ldlex.l (LD_FEATYRE): New.
882 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
883 * ldexp.h (struct ldexp_control): Delete uses_defined.
884 * ldexp.c: Remove all uses of uses_defined.
885 (fold_name): Test config.sane_expr rather than ld_compatibility.
886 (exp_fold_tree_1): Likewise. Adjust handling of assignments
887 during first phase.
888 * ldlang.h (ld_compatibility): Delete.
889 (lang_ld_feature): Declare.
890 * ldlang.c (ld_compatibility): Delete.
891 (open_input_bfds): Only handle assignments for --defsym.
892 (lang_ld_feature): New function.
893
894 PR ld/12356
895 * ldexp.h (exp_assop): Delete.
896 (exp_assign, exp_defsym): Declare.
897 * ldexp.c (exp_assop): Make static, handle all assignment variations.
898 (exp_assign, exp_defsym): New functions.
899 (exp_provide): Use exp_assop.
900 * ldgram.y (defsym_expr): Use exp_defsym.
901 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
902 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
903 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
904
905 2011-01-12 Alan Modra <amodra@gmail.com>
906
907 PR ld/12380
908 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
909 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
910 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
911 to detect when we've finished sizing sections.
912 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
913 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
914 that we are not inside an output section statement.
915 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
916 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
917 lang_final_phase_enum here.
918 (lang_process): Set lang_final_phase_enum here.
919
920 2011-01-10 Nick Clifton <nickc@redhat.com>
921
922 * po/da.po: Updated Danish translation.
923
924 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
925
926 * ldlang.c (startup_file): Removed.
927 (lang_startup): Updated.
928
929 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
930
931 PR ld/12364
932 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
933 before accessing its flags field.
934
935 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
936
937 * ldver.c (ldversion): Update copyright to 2011.
938
939 For older changes see ChangeLog-2010
940 \f
941 Local Variables:
942 mode: change-log
943 left-margin: 8
944 fill-column: 74
945 version-control: never
946 End:
This page took 0.077473 seconds and 4 git commands to generate.