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