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