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