1 2011-08-26 Nick Clifton <nickc@redhat.com>
3 * NEWS: Mention that --no-copy-dt-needed-entries is now the
6 2011-08-22 Michael Matz <matz@suse.de>
8 * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
9 * ld.texinfo (--copy-dt-needed-entries): Mention new default.
11 2011-08-17 Alan Modra <amodra@gmail.com>
14 * ldlang.c (section_already_linked): Revert 2011-07-09 changes.
16 (asymbol_from_plugin_symbol): Create linkonce section for syms
19 2011-08-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
21 * emultempl/armelf.em (fix_arm1176): New variable.
22 (arm_elf_create_output_section_statements): Pass
23 fix_arm1176 option to bfd backend.
24 (OPTION_FIX_ARM1176): New define.
25 (OPTION_NO_FIX_ARM1176): Likewise.
26 (PARSE_AND_LIST_LONGOPTS): Add new command line options.
27 (PARSE_AND_LIST_OPTIONS): Likewise.
28 (PARSE_AND_LIST_ARGS_CASES): Likewise.
29 * ld.texinfo: Document new command line options.
31 2011-08-09 Alan Modra <amodra@gmail.com>
34 * plugin.c (add_symbols): Revert 2011-08-05.
36 2011-08-06 Kai Tietz <ktietz@redhat.com>
38 * scripttempl/pep.sc: Add .debug_macro section.
39 * scripttempl/pe.sc: Likewise.
41 2011-08-05 Alan Modra <amodra@gmail.com>
44 * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
45 table if already seen.
47 2011-08-04 H.J. Lu <hongjiu.lu@intel.com>
49 * ldmain.c (main): Replace remove_output with ld_cleanup in
52 2011-07-26 Alan Modra <amodra@gmail.com>
54 * emulparams/elf32ppc.sh: Source plt_unwind.sh.
55 * emulparams/elf64ppc.sh: Likewise.
56 * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
57 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
58 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
60 * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
61 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
62 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
65 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
67 * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
70 (eelf_k1om_fbsd.c): Likewise.
71 * Makefile.in: Regenerated.
73 * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
74 is supported. Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
75 (targ_extra_emuls): Likewise.
77 * emulparams/elf_k1om.sh: New.
78 * emulparams/elf_k1om_fbsd.sh: Likewise.
80 2011-07-16 Roland McGrath <roland@hack.frob.com>
82 * ld.h (args_type): New field print_output_format.
83 * lexsup.c (enum option_values, ld_options, parse_args):
84 Handle --print-output-format.
85 * ldmain.c (main): Implement --print-output-format.
86 * ld.texinfo (Options): Document it.
88 * ldlang.c (lang_get_output_target): Don't return current_target
91 2011-07-15 Alan Modra <amodra@gmail.com>
93 * Makefile.am (e*.c): Sort.
94 * Makefile.in: Regenerate.
96 2011-07-14 Alan Modra <amodra@gmail.com>
98 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
99 gld${EMULATION_NAME}_list_options): Don't condition -z relro
100 and -z norelro on COMMONPAGESIZE being defined.
102 2011-07-14 Alan Modra <amodra@gmail.com>
104 * emultempl/ppc64elf.em (plt_static_chain): New var.
105 (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
106 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
107 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
108 --plt-static-chain and --no-plt-static-chain.
110 2011-07-14 Alan Modra <amodra@gmail.com>
112 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
113 gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
114 Provide --build-id, -z defs, -z muldefs, -z max-page-size,
115 -z common-page-size, -z execstack, -z noexecstack for all targets.
116 Add help for --exclude-libs.
117 (OPTION_LD_GENERATED_UNWIND_INFO,
118 OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
119 (gld${EMULATION_NAME}_handle_option): ..and code handling
120 --ld-generated-unwind-info and --no-ld-generated-unwind-info..
121 * emulparams/plt_unwind.sh: ..to here. New file. Add help.
122 * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
123 * emulparams/elf_i386.sh: Likewise.
124 * emulparams/elf_i386_chaos.sh: Likewise.
125 * emulparams/elf_i386_ldso.sh: Likewise.
126 * emulparams/elf_l1om.sh: Likewise.
127 * emulparams/elf_x86_64.sh: Likewise.
129 2011-07-11 Catherine Moore <clm@codesourcery.com>
131 * ld.h (section_flag_list): Add field to struct wildcard_spec.
132 * ld.texinfo (INPUT_SECTION_FLAGS): Document.
133 * ldgram.y (flag_info_list, flag_info): Add to union.
134 (INPUT_SECTION_FLAGS): New token.
135 (wildcard_spec): Initialize section_flag_list to NULL for
137 (sect_flag_list, sect_flags): New rules.
138 (input_section_spec_no_keep): Add alternatives to recognize
140 * ldlang.c (walk_wild_consider_section): Initialize
141 section_flag_info field of the section struct.
142 (lang_add_section): Check input section flags.
143 (lang_add_wild): Initialize section_flag_list field of
144 the statement struct.
145 * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
146 (lang_wild_statement_struct): Likewise.
147 * ldlex.l (INPUT_SECTION_FLAGS): New token.
148 * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
149 * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
151 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
154 * ldlang.c (section_already_linked): Pass "struct already_linked *"
155 to bfd_section_already_linked.
156 (lang_process): Set link_info.loading_lto_outputs before
158 * plugin.c: Include "libbfd.h".
159 (add_symbols): Call bfd_section_already_linked with comdat_key.
161 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
163 * configure.tgt: Revert x32 change.
165 2011-06-20 Jakub Jelinek <jakub@redhat.com>
168 * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
169 OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
170 (gld${EMULATION_NAME}_handle_option): Handle
171 --ld-generated-unwind-info and --no-ld-generated-unwind-info.
172 * ld.texinfo (--ld-generated-unwind-info,
173 --no-ld-generated-unwind-info): Document.
175 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
177 * configure.tgt: Support x32.
179 2011-06-15 Nick Clifton <nickc@redhat.com>
181 * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
183 2011-06-13 Walter Lee <walt@tilera.com>
185 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
187 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
188 (eelf32tilegx.c): New target.
189 (eelf32tilepro.c): Likewise.
190 (eelf64tilegx.c): Likewise.
191 * Makefile.in: Regenerate.
192 * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
193 * emulparams/elf32tilegx.sh: New file.
194 * emulparams/elf64tilegx.sh: New file.
195 * emulparams/elf32tilepro.sh: New file.
197 2011-06-13 Alan Modra <amodra@gmail.com>
199 * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
200 warning symbols here.
201 * emultempl/pe.em (pr_sym): Remove redundant test.
202 * emultempl/pep.em (pr_sym): Likewise.
204 2011-06-09 Nick Clifton <nickc@redhat.com>
207 * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
208 for sections that have been removed by garbage collection.
210 2011-06-08 Alan Modra <amodra@gmail.com>
212 * ldlang.c (lang_one_common): Handle warning symbols.
214 2011-06-07 Nick Clifton <nickc@redhat.com>
216 * configure.tgt: Accept any V850 architecture.
218 2011-06-03 Nick Clifton <nickc@redhat.com>
220 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
221 Add rule to build eelf32am33lin.c
222 * Makefile.in: Regenerate.
224 2011-06-02 Nick Clifton <nickc@redhat.com>
226 * lexsup.c: Fix spelling mistake in comment.
227 * scripttempl/epocpe.sc: Likewise.
228 * scripttempl/i386beos.sc: Likewise.
229 * scripttempl/mcorepe.sc: Likewise.
230 * scripttempl/pe.sc: Likewise.
231 * scripttempl/pep.sc: Likewise.
232 * po/ld.pot: Regenerate.
234 2011-05-27 Nick Clifton <nickc@redhat.com>
236 * scripttempl/v850.sc (_heap_start): Provide.
238 2011-05-23 Alan Modra <amodra@gmail.com>
240 * ldmisc.c (vfinfo): Add %H.
241 * ldmain.c (reloc_overflow): Use %H rather than %C.
242 (reloc_dangerous, unattached_reloc): Likewise.
244 2011-05-23 Alan Modra <amodra@gmail.com>
247 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
248 like sections to existing .sdata2, and similarly for orphan TLS
250 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
252 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
255 * emultempl/rxelf.em (ignore_lma): New variable.
256 (rx_elf_create_output_section_statements): Pass the setiing of
257 ignore_lma to bfd_elf32_rx_set_target_flags.
258 (OPTION_IGNORE_LMA): Define.
259 (OPTION_NO_IGNORE_LMA): Define.
260 (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
261 (PARSE_AND_LIST_OPTIONS): Add ignore lma.
262 (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
264 2011-05-17 Alan Modra <amodra@gmail.com>
267 * ldmain.c (notice): Add "flags" and "string" param.
268 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
269 and constructor syms.
271 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
273 * ldlang.c (print_assignment): Use the symbol's section if we
275 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
276 comment on copying symbol type.
278 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
281 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
284 2011-05-16 Alan Modra <amodra@gmail.com>
286 * ldlang.c (lang_leave_output_section_statement): Don't copy
287 previous lma_region if given address.
289 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
291 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
292 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
293 * Makefile.am (ALL_EMULATIONS): Add these files.
294 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
295 * Makefile.in: Regenerated.
296 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
298 * emulparams/elf32_tic6x_elf_be.sh: New file.
299 * emulparams/elf32_tic6x_elf_le.sh: New file.
300 * emulparams/elf32_tic6x_linux_be.sh: New file.
301 * emulparams/elf32_tic6x_linux_le.sh: New file.
302 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
303 (tic6x-*-*): Replaced by these.
305 2011-05-13 Jan Beulich <jbeulich@novell.com>
307 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
309 2011-05-09 Paul Brook <paul@codesourcery.com>
311 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
312 (compare_output_sec_vma): New function.
313 (gld${EMULATION_NAME}_after_allocation): New function.
314 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
315 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
316 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
317 (LDEMUL_AFTER_ALLOCATION): Set.
318 * ld.texinfo: Document c6x --no-merge-exidx-entries.
320 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
323 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
324 (__rt_psrelocs_end): Likewise.
325 (__rt_psrelocs_size): Likewise difference between the above.
326 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
327 immediately after end of pseudo-reloc data.
328 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
329 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
330 calculate backward from list end.
331 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
332 * scripttempl/pep.sc: Likewise.
334 2011-05-06 Tristan Gingold <gingold@adacore.com>
336 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
338 2011-05-04 Tristan Gingold <gingold@adacore.com>
340 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
341 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
342 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
343 (gld${EMULATION_NAME}_add_options): New function.
344 (gld${EMULATION_NAME}_list_options): Ditto.
345 (gld${EMULATION_NAME}_handle_option): Ditto.
346 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
347 (LDEMUL_LIST_OPTIONS): Define.
349 2011-05-04 Alan Modra <amodra@gmail.com>
352 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
353 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
354 assign to dot when lang_assigning_phase_enum.
355 * ldlang.h (lang_do_assignments): Update prototype.
356 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
358 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
359 lang_do_assignments calls.
361 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
364 * emultempl/pe.em (_after_open): Correctly check whether symbol is
367 2011-04-26 Kai Tietz <ktietz@redhat.com>
369 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
370 * scripttempl/pep.sc: Likewise.
372 2011-04-24 Alan Modra <amodra@gmail.com>
376 * ldmain.c (notice): Delete "name" param, add "h".
377 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
378 redefinitions of IR symbols in real BFDs.
379 (plugin_multiple_definition, plugin_multiple_common): Delete.
380 (non_ironly_hash, init_non_ironly_hash): Delete.
381 (is_visible_from_outside): Traverse entry_symbol chain.
382 (get_symbols): Use non_ir_ref flag rather than hash lookup.
384 2011-04-21 Tristan Gingold <gingold@adacore.com>
386 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
388 2011-04-20 Tristan Gingold <gingold@adacore.com>
390 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
392 2011-04-20 Alan Modra <amodra@gmail.com>
394 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
396 2011-04-20 Alan Modra <amodra@gmail.com>
399 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
401 * ldmain.c (add_archive_element): ..and similar code here..
402 * plugin.c (plugin_maybe_claim): ..to here. New function.
403 (plugin_call_claim_file): Make static.
404 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
405 (plugin_multiple_common): New function.
406 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
407 * plugin.h (plugin_call_claim_file): Don't declare.
408 (plugin_maybe_claim): Declare.
410 2011-04-20 Alan Modra <amodra@gmail.com>
413 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
414 pointer arg rather than "name", "obfd", "osec", "oval". Add code
415 removed from linker.c. Hack around xcofflink.c oddity in
417 (multiple_common): Similarly.
418 * plugin.c (orig_allow_multiple_defs): Delete.
419 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
420 (plugin_multiple_definition): Update.
422 2011-04-18 Kai Tietz <ktietz@redhat.com>
424 * deffilep.y (def_aligncomm): Avoid duplets.
426 * deffilep.y (def_pool_str): New type.
427 (pool_strs): Local static.
428 (def_pool_alloc): Local function.
429 (def_pool_strdup): Likewise.
430 (def_pool_free): Likewise.
431 (opt_name): Replace xmalloc/xstrdup by
432 def_pool_alloc/def_pool_strdup.
433 (dot_name): Likewise.
434 (anylang_id): Likewise.
436 (def_file_parse): Call def_pool_free on
437 exit and cleanup directives elements.
438 (def_file_add_directive): Call def_pool_free.
440 2011-04-18 Paul Brook <paul@codesourcery.com>
442 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
443 for unwinding tables.
445 2011-04-18 Alan Modra <amodra@gmail.com>
449 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
450 when no_more_claiming.
451 * ldmain.c (add_archive_element): Likewise.
452 (multiple_definition): Remove plugin_multiple_definition call.
453 (notice): Remove plugin_notice call.
454 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
456 (plugin_insert): New static var.
457 (open_input_bfds): Only rescan libs after plugin insert point.
458 (lang_gc_sections): Omit plugin claimed files.
459 (lang_process): Set plugin_insert. Only rescan when plugin adds
461 * plugin.h (no_more_claiming): Declare.
462 (plugin_notice, plugin_multiple_definition): Don't declare.
463 * plugin.c: Formatting.
464 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
465 plugin_callbacks): New static vars.
466 (no_more_claiming): Make global.
467 (plugin_cached_allow_multiple_defs): Delete.
468 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
469 use newer bfd_make_section variant. Make COMMON section too.
470 Error handling. Correct setting of gp size.
471 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
472 (message): Likewise for ACONCAT.
473 (asymbol_from_plugin_symbol): Use our COMMON section.
474 (get_symbols): When report_plugin_symbols, show visibility too.
475 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
476 (plugin_load_plugins): Save state of linker callbacks, set up to
477 call plugin_notice instead. Call init_non_ironly_hash here.
478 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
480 (plugin_notice): Rewrite.
481 (plugin_multiple_definition): Make static, call original callback.
483 2011-04-15 Alan Modra <amodra@gmail.com>
486 * ldlang.c (enum open_bfd_mode): New.
487 (open_input_bfds): Replace "force" param with "mode". Reload
488 archives for rescan. Update all callers.
489 (lang_process): Make another open_input_bfds pass for plugins.
491 2011-04-13 Kai Tietz <ktietz@redhat.com>
494 * deffile.h (def_file_add_export): Add is_dup argument.
495 (def_file_add_import): Likewise.
496 * deffilep.y (are_names_equal): New helper.
497 (cmp_export_elem): New helper.
498 (find_export_in_list): Add search routine for exports.
499 (def_file_add_export): Check for duplicates.
500 (cmp_import_elem): New helper.
501 (find_import_in_list): Add search routine for imports.
502 (def_file_add_import): Check for duplicates.
503 (def_exports): Handle duplicates.
504 (def_imports): Likewise.
505 * pe-dll.c (process_def_file_and_drectve): Likewise.
506 (pe_implied_import_dll): Likewise.
508 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
510 * scripttempl/elf.sc (.exception_ranges): Add new section.
512 2011-04-08 Hector Oron <hector.oron@gmail.com>
515 * configure.tgt: Add support for arm-*-gnueabihf targets.
517 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
519 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
521 2011-04-07 Joseph Myers <joseph@codesourcery.com>
523 * configure.tgt: Remove stray ;;.
525 2011-04-06 Joseph Myers <joseph@codesourcery.com>
527 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
528 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
529 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
530 xscale-*-coff, xscale-*-elf): Remove targets.
532 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
534 * configure.tgt: Add elf_l1om to targ_extra_libpath for
537 * emulparams/elf_l1om.sh: Remove duplicates.
539 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
541 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
542 GENERATE_SHLIB_SCRIPT): New defines.
543 (TEXT_START_ADDR): Define differently depending on target.
544 (.got): Redefine to include "*(.dsbt)".
545 (SDATA_START_SYMBOLS): Remove, replace with
546 (OTHER_GOT_SYMBOLS): New.
547 (OTHER_BSS_SECTIONS): Define only for ELF targets.
548 * emultempl/tic6xdsbt.em: New file.
549 * gen-doc.texi: Set C6X.
550 * ld.texinfo: Likewise.
551 (Options specific to C6X uClinux targets): New section.
553 2011-03-29 Alan Modra <amodra@gmail.com>
556 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
558 2011-03-26 John Marino <binutils@marino.st>
560 * configure.host: Update *-*-dragonfly* host entry.
561 * configure.tgt: Update *-*-dragonfly* target entry.
562 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
564 2011-03-28 Joseph Myers <joseph@codesourcery.com>
566 * configure.in: Check for windows.h, not Windows.h.
567 * configure: Regenerate.
568 * plugin.c: Include windows.h, not Windows.h.
570 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
572 * Makefile.in: Regenerate.
574 2011-03-23 Joseph Myers <joseph@codesourcery.com>
576 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
577 are enabled. Mark level as possibly unused.
579 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
581 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
582 (eavrxmega?.c): Likewise.
583 * configure.tgt (targ_extra_emuls): Likewise.
584 * emulparams/avrxmega1.sh: New file.
585 * emulparams/avrxmega2.sh: Likewise.
586 * emulparams/avrxmega3.sh: Likewise.
587 * emulparams/avrxmega4.sh: Likewise.
588 * emulparams/avrxmega5.sh: Likewise.
589 * emulparams/avrxmega6.sh: Likewise.
590 * emulparams/avrxmega7.sh: Likewise.
591 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
592 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
594 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
596 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
598 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
600 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
603 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
605 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
606 instead of dynamic_sections_created.
608 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
610 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
612 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
614 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
616 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
618 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
619 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
620 * ldmain.c (add_archive_element): Set it if the member is claimed.
621 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
622 (find_replacements_insert_point): New helper function.
623 (lang_process): After adding and opening replacement files passed
624 from plugin, splice them into correct place in statement list and
625 file chains to preserve critical link order.
626 (lang_list_insert_after): New helper function.
627 (lang_list_remove_tail): Likewise.
629 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
631 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
632 (IRONLY_SUFFIX_LEN): Delete.
633 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
634 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
635 enclosing lang input statement instead.
637 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
639 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
640 alignment of input sections when creating orphan output sections
641 during relocatable link.
642 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
644 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
646 * ld.texinfo: Document --verbose[=NUMBER].
648 * lexsup.c (ld_options): Update --verbose.
649 (parse_args): Set report_plugin_symbols.
651 * plugin.c (report_plugin_symbols): New.
652 (get_symbols): Report plugin symbols if report_plugin_symbols
655 * plugin.h (report_plugin_symbols): New.
657 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
660 * testplug.c: Don't include "filenames.h".
661 (onclaim_file): Don't use filename_cmp.
663 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
665 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
666 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
668 (gld${EMULATION_NAME}_stat_needed): Likewise.
669 (gld${EMULATION_NAME}_check_needed): Likewise.
670 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
671 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
672 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
673 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
674 * ldfile.c (ldfile_open_file): Likewise.
675 * ldlang.c (wild_sort): Likewise.
676 (lookup_name): Likewise.
677 (check_excluded_libs): Likewise.
678 * ldmisc.c (vfinfo): Likewise.
679 * pe-dll.c (libnamencmp): Likewise.
680 (auto_export): Likewise.
681 (pe_dll_generate_implib): Likewise.
682 * testplug.c (onclaim_file): Likewise.
684 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
687 * plugin.c (get_symbols): Don't check entry symbol here.
688 (init_non_ironly_hash): Add entry_symbol chain into
691 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
694 * plugin.c (get_symbols): Don't mark entry symbol IR only.
696 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
699 emulparams/hppalinux.sh (DATA_ADDR): Define.
700 (SHLIB_DATA_ADDR): Likewise.
702 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
704 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
707 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
709 * pe-dll.c (process_def_file_and_drectve): Don't strip
710 leading underscore from symbol by calling bfd_find_version_for_sym.
712 2011-02-14 Mike Frysinger <vapier@gentoo.org>
714 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
715 the bfd_demangle of sym, change users of sym to c_sym when not
716 already demangling, and free when done. Change callers of
717 cplus_demangle to bfd_demangle.
719 2011-02-14 Alan Modra <amodra@gmail.com>
721 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
722 .text section, use newer bfd_make_section variant. Error handling.
723 Correct setting of gp size.
724 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
725 (message): Likewise for ACONCAT.
726 (get_symbols): Formatting.
728 2011-02-14 Alan Modra <amodra@gmail.com>
730 * ldmain.c (remove_output): Rename to..
731 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
733 * plugin.c (plugin_call_cleanup): Make global.
734 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
735 * plugin.h (plugin_call_cleanup): Declare.
737 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
739 * configure: Regenerate.
741 2011-02-10 Alan Modra <amodra@gmail.com>
743 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
744 * scripttempl/avr.sc: Likewise.
745 * scripttempl/elf32cr16.sc: Likewise.
746 * scripttempl/elf32crx.sc: Likewise.
747 * scripttempl/elf32msp430.sc: Likewise.
748 * scripttempl/elf32msp430_3.sc: Likewise.
749 * scripttempl/elf32sh-symbian.sc: Likewise.
750 * scripttempl/elf64hppa.sc: Likewise.
751 * scripttempl/elf_chaos.sc: Likewise.
752 * scripttempl/elfd10v.sc: Likewise.
753 * scripttempl/elfd30v.sc: Likewise.
754 * scripttempl/elfi370.sc: Likewise.
755 * scripttempl/elfm68hc11.sc: Likewise.
756 * scripttempl/elfm68hc12.sc: Likewise.
757 * scripttempl/elfxtensa.sc: Likewise.
758 * scripttempl/ip2k.sc: Likewise.
759 * scripttempl/iq2000.sc: Likewise.
760 * scripttempl/mep.sc: Likewise.
761 * scripttempl/mmo.sc: Likewise.
762 * scripttempl/v850.sc: Likewise.
763 * scripttempl/xstormy16.sc: Likewise.
764 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
766 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
768 * Makefile.am (CXX): Removed.
770 * configure.in: Add AC_PROG_CXX.
772 * Makefile.in: Regenerated.
773 * configure: Likewise.
775 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
777 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
778 private data and GP size.
780 2011-01-21 Alan Modra <amodra@gmail.com>
782 * ldexp.c (fold_binary): Set result section for arithmetic and
783 logical operations to NULL when both operands are in same section.
784 * ld.texinfo (Expression Section): Describe this.
786 2011-01-14 Alan Modra <amodra@gmail.com>
788 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
789 attempt to put non-alloc orphans before debug sections, just place
792 2011-01-14 J. Park <grassman@gmail.com>
795 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
797 2011-01-14 Alan Modra <amodra@gmail.com>
799 * Makefile.am: Sort emulation rules.
800 (eelf32am33lin.c): Delete.
801 (ALL_EMULATION_SOURCES): Sort, add missing entries.
802 (ALL_64_EMULATION_SOURCES): Likewise.
803 * Makefile.in: Regenerate.
805 2011-01-13 Alan Modra <amodra@gmail.com>
808 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
809 (Expression Section): Update.
810 * ld.h (ld_config_type): Add sane_expr.
811 * ldgram.y (ifile_p1): Add LD_FEATURE.
812 * ldlex.l (LD_FEATYRE): New.
813 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
814 * ldexp.h (struct ldexp_control): Delete uses_defined.
815 * ldexp.c: Remove all uses of uses_defined.
816 (fold_name): Test config.sane_expr rather than ld_compatibility.
817 (exp_fold_tree_1): Likewise. Adjust handling of assignments
819 * ldlang.h (ld_compatibility): Delete.
820 (lang_ld_feature): Declare.
821 * ldlang.c (ld_compatibility): Delete.
822 (open_input_bfds): Only handle assignments for --defsym.
823 (lang_ld_feature): New function.
826 * ldexp.h (exp_assop): Delete.
827 (exp_assign, exp_defsym): Declare.
828 * ldexp.c (exp_assop): Make static, handle all assignment variations.
829 (exp_assign, exp_defsym): New functions.
830 (exp_provide): Use exp_assop.
831 * ldgram.y (defsym_expr): Use exp_defsym.
832 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
833 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
834 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
836 2011-01-12 Alan Modra <amodra@gmail.com>
839 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
840 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
841 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
842 to detect when we've finished sizing sections.
843 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
844 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
845 that we are not inside an output section statement.
846 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
847 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
848 lang_final_phase_enum here.
849 (lang_process): Set lang_final_phase_enum here.
851 2011-01-10 Nick Clifton <nickc@redhat.com>
853 * po/da.po: Updated Danish translation.
855 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
857 * ldlang.c (startup_file): Removed.
858 (lang_startup): Updated.
860 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
863 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
864 before accessing its flags field.
866 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
868 * ldver.c (ldversion): Update copyright to 2011.
870 For older changes see ChangeLog-2010
876 version-control: never