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