1 2011-08-26 Nick Clifton <nickc@redhat.com>
3 * po/es.po: Updated Spanish translation.
5 2011-08-26 Nick Clifton <nickc@redhat.com>
7 * NEWS: Mention that --no-copy-dt-needed-entries is now the
10 2011-08-22 Michael Matz <matz@suse.de>
12 * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
13 * ld.texinfo (--copy-dt-needed-entries): Mention new default.
15 2011-08-17 Alan Modra <amodra@gmail.com>
18 * ldlang.c (section_already_linked): Revert 2011-07-09 changes.
20 (asymbol_from_plugin_symbol): Create linkonce section for syms
23 2011-08-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
25 * emultempl/armelf.em (fix_arm1176): New variable.
26 (arm_elf_create_output_section_statements): Pass
27 fix_arm1176 option to bfd backend.
28 (OPTION_FIX_ARM1176): New define.
29 (OPTION_NO_FIX_ARM1176): Likewise.
30 (PARSE_AND_LIST_LONGOPTS): Add new command line options.
31 (PARSE_AND_LIST_OPTIONS): Likewise.
32 (PARSE_AND_LIST_ARGS_CASES): Likewise.
33 * ld.texinfo: Document new command line options.
35 2011-08-09 Alan Modra <amodra@gmail.com>
38 * plugin.c (add_symbols): Revert 2011-08-05.
40 2011-08-06 Kai Tietz <ktietz@redhat.com>
42 * scripttempl/pep.sc: Add .debug_macro section.
43 * scripttempl/pe.sc: Likewise.
45 2011-08-05 Alan Modra <amodra@gmail.com>
48 * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
49 table if already seen.
51 2011-08-04 H.J. Lu <hongjiu.lu@intel.com>
53 * ldmain.c (main): Replace remove_output with ld_cleanup in
56 2011-07-26 Alan Modra <amodra@gmail.com>
58 * emulparams/elf32ppc.sh: Source plt_unwind.sh.
59 * emulparams/elf64ppc.sh: Likewise.
60 * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
61 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
62 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
64 * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
65 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
66 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
69 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
71 * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
74 (eelf_k1om_fbsd.c): Likewise.
75 * Makefile.in: Regenerated.
77 * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
78 is supported. Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
79 (targ_extra_emuls): Likewise.
81 * emulparams/elf_k1om.sh: New.
82 * emulparams/elf_k1om_fbsd.sh: Likewise.
84 2011-07-16 Roland McGrath <roland@hack.frob.com>
86 * ld.h (args_type): New field print_output_format.
87 * lexsup.c (enum option_values, ld_options, parse_args):
88 Handle --print-output-format.
89 * ldmain.c (main): Implement --print-output-format.
90 * ld.texinfo (Options): Document it.
92 * ldlang.c (lang_get_output_target): Don't return current_target
95 2011-07-15 Alan Modra <amodra@gmail.com>
97 * Makefile.am (e*.c): Sort.
98 * Makefile.in: Regenerate.
100 2011-07-14 Alan Modra <amodra@gmail.com>
102 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
103 gld${EMULATION_NAME}_list_options): Don't condition -z relro
104 and -z norelro on COMMONPAGESIZE being defined.
106 2011-07-14 Alan Modra <amodra@gmail.com>
108 * emultempl/ppc64elf.em (plt_static_chain): New var.
109 (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
110 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
111 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
112 --plt-static-chain and --no-plt-static-chain.
114 2011-07-14 Alan Modra <amodra@gmail.com>
116 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
117 gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
118 Provide --build-id, -z defs, -z muldefs, -z max-page-size,
119 -z common-page-size, -z execstack, -z noexecstack for all targets.
120 Add help for --exclude-libs.
121 (OPTION_LD_GENERATED_UNWIND_INFO,
122 OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
123 (gld${EMULATION_NAME}_handle_option): ..and code handling
124 --ld-generated-unwind-info and --no-ld-generated-unwind-info..
125 * emulparams/plt_unwind.sh: ..to here. New file. Add help.
126 * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
127 * emulparams/elf_i386.sh: Likewise.
128 * emulparams/elf_i386_chaos.sh: Likewise.
129 * emulparams/elf_i386_ldso.sh: Likewise.
130 * emulparams/elf_l1om.sh: Likewise.
131 * emulparams/elf_x86_64.sh: Likewise.
133 2011-07-11 Catherine Moore <clm@codesourcery.com>
135 * ld.h (section_flag_list): Add field to struct wildcard_spec.
136 * ld.texinfo (INPUT_SECTION_FLAGS): Document.
137 * ldgram.y (flag_info_list, flag_info): Add to union.
138 (INPUT_SECTION_FLAGS): New token.
139 (wildcard_spec): Initialize section_flag_list to NULL for
141 (sect_flag_list, sect_flags): New rules.
142 (input_section_spec_no_keep): Add alternatives to recognize
144 * ldlang.c (walk_wild_consider_section): Initialize
145 section_flag_info field of the section struct.
146 (lang_add_section): Check input section flags.
147 (lang_add_wild): Initialize section_flag_list field of
148 the statement struct.
149 * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
150 (lang_wild_statement_struct): Likewise.
151 * ldlex.l (INPUT_SECTION_FLAGS): New token.
152 * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
153 * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
155 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
158 * ldlang.c (section_already_linked): Pass "struct already_linked *"
159 to bfd_section_already_linked.
160 (lang_process): Set link_info.loading_lto_outputs before
162 * plugin.c: Include "libbfd.h".
163 (add_symbols): Call bfd_section_already_linked with comdat_key.
165 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
167 * configure.tgt: Revert x32 change.
169 2011-06-20 Jakub Jelinek <jakub@redhat.com>
172 * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
173 OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
174 (gld${EMULATION_NAME}_handle_option): Handle
175 --ld-generated-unwind-info and --no-ld-generated-unwind-info.
176 * ld.texinfo (--ld-generated-unwind-info,
177 --no-ld-generated-unwind-info): Document.
179 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
181 * configure.tgt: Support x32.
183 2011-06-15 Nick Clifton <nickc@redhat.com>
185 * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
187 2011-06-13 Walter Lee <walt@tilera.com>
189 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
191 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
192 (eelf32tilegx.c): New target.
193 (eelf32tilepro.c): Likewise.
194 (eelf64tilegx.c): Likewise.
195 * Makefile.in: Regenerate.
196 * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
197 * emulparams/elf32tilegx.sh: New file.
198 * emulparams/elf64tilegx.sh: New file.
199 * emulparams/elf32tilepro.sh: New file.
201 2011-06-13 Alan Modra <amodra@gmail.com>
203 * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
204 warning symbols here.
205 * emultempl/pe.em (pr_sym): Remove redundant test.
206 * emultempl/pep.em (pr_sym): Likewise.
208 2011-06-09 Nick Clifton <nickc@redhat.com>
211 * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
212 for sections that have been removed by garbage collection.
214 2011-06-08 Alan Modra <amodra@gmail.com>
216 * ldlang.c (lang_one_common): Handle warning symbols.
218 2011-06-07 Nick Clifton <nickc@redhat.com>
220 * configure.tgt: Accept any V850 architecture.
222 2011-06-03 Nick Clifton <nickc@redhat.com>
224 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
225 Add rule to build eelf32am33lin.c
226 * Makefile.in: Regenerate.
228 2011-06-02 Nick Clifton <nickc@redhat.com>
230 * lexsup.c: Fix spelling mistake in comment.
231 * scripttempl/epocpe.sc: Likewise.
232 * scripttempl/i386beos.sc: Likewise.
233 * scripttempl/mcorepe.sc: Likewise.
234 * scripttempl/pe.sc: Likewise.
235 * scripttempl/pep.sc: Likewise.
236 * po/ld.pot: Regenerate.
238 2011-05-27 Nick Clifton <nickc@redhat.com>
240 * scripttempl/v850.sc (_heap_start): Provide.
242 2011-05-23 Alan Modra <amodra@gmail.com>
244 * ldmisc.c (vfinfo): Add %H.
245 * ldmain.c (reloc_overflow): Use %H rather than %C.
246 (reloc_dangerous, unattached_reloc): Likewise.
248 2011-05-23 Alan Modra <amodra@gmail.com>
251 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
252 like sections to existing .sdata2, and similarly for orphan TLS
254 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
256 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
259 * emultempl/rxelf.em (ignore_lma): New variable.
260 (rx_elf_create_output_section_statements): Pass the setiing of
261 ignore_lma to bfd_elf32_rx_set_target_flags.
262 (OPTION_IGNORE_LMA): Define.
263 (OPTION_NO_IGNORE_LMA): Define.
264 (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
265 (PARSE_AND_LIST_OPTIONS): Add ignore lma.
266 (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
268 2011-05-17 Alan Modra <amodra@gmail.com>
271 * ldmain.c (notice): Add "flags" and "string" param.
272 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
273 and constructor syms.
275 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
277 * ldlang.c (print_assignment): Use the symbol's section if we
279 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
280 comment on copying symbol type.
282 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
285 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
288 2011-05-16 Alan Modra <amodra@gmail.com>
290 * ldlang.c (lang_leave_output_section_statement): Don't copy
291 previous lma_region if given address.
293 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
295 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
296 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
297 * Makefile.am (ALL_EMULATIONS): Add these files.
298 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
299 * Makefile.in: Regenerated.
300 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
302 * emulparams/elf32_tic6x_elf_be.sh: New file.
303 * emulparams/elf32_tic6x_elf_le.sh: New file.
304 * emulparams/elf32_tic6x_linux_be.sh: New file.
305 * emulparams/elf32_tic6x_linux_le.sh: New file.
306 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
307 (tic6x-*-*): Replaced by these.
309 2011-05-13 Jan Beulich <jbeulich@novell.com>
311 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
313 2011-05-09 Paul Brook <paul@codesourcery.com>
315 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
316 (compare_output_sec_vma): New function.
317 (gld${EMULATION_NAME}_after_allocation): New function.
318 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
319 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
320 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
321 (LDEMUL_AFTER_ALLOCATION): Set.
322 * ld.texinfo: Document c6x --no-merge-exidx-entries.
324 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
327 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
328 (__rt_psrelocs_end): Likewise.
329 (__rt_psrelocs_size): Likewise difference between the above.
330 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
331 immediately after end of pseudo-reloc data.
332 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
333 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
334 calculate backward from list end.
335 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
336 * scripttempl/pep.sc: Likewise.
338 2011-05-06 Tristan Gingold <gingold@adacore.com>
340 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
342 2011-05-04 Tristan Gingold <gingold@adacore.com>
344 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
345 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
346 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
347 (gld${EMULATION_NAME}_add_options): New function.
348 (gld${EMULATION_NAME}_list_options): Ditto.
349 (gld${EMULATION_NAME}_handle_option): Ditto.
350 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
351 (LDEMUL_LIST_OPTIONS): Define.
353 2011-05-04 Alan Modra <amodra@gmail.com>
356 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
357 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
358 assign to dot when lang_assigning_phase_enum.
359 * ldlang.h (lang_do_assignments): Update prototype.
360 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
362 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
363 lang_do_assignments calls.
365 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
368 * emultempl/pe.em (_after_open): Correctly check whether symbol is
371 2011-04-26 Kai Tietz <ktietz@redhat.com>
373 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
374 * scripttempl/pep.sc: Likewise.
376 2011-04-24 Alan Modra <amodra@gmail.com>
380 * ldmain.c (notice): Delete "name" param, add "h".
381 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
382 redefinitions of IR symbols in real BFDs.
383 (plugin_multiple_definition, plugin_multiple_common): Delete.
384 (non_ironly_hash, init_non_ironly_hash): Delete.
385 (is_visible_from_outside): Traverse entry_symbol chain.
386 (get_symbols): Use non_ir_ref flag rather than hash lookup.
388 2011-04-21 Tristan Gingold <gingold@adacore.com>
390 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
392 2011-04-20 Tristan Gingold <gingold@adacore.com>
394 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
396 2011-04-20 Alan Modra <amodra@gmail.com>
398 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
400 2011-04-20 Alan Modra <amodra@gmail.com>
403 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
405 * ldmain.c (add_archive_element): ..and similar code here..
406 * plugin.c (plugin_maybe_claim): ..to here. New function.
407 (plugin_call_claim_file): Make static.
408 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
409 (plugin_multiple_common): New function.
410 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
411 * plugin.h (plugin_call_claim_file): Don't declare.
412 (plugin_maybe_claim): Declare.
414 2011-04-20 Alan Modra <amodra@gmail.com>
417 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
418 pointer arg rather than "name", "obfd", "osec", "oval". Add code
419 removed from linker.c. Hack around xcofflink.c oddity in
421 (multiple_common): Similarly.
422 * plugin.c (orig_allow_multiple_defs): Delete.
423 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
424 (plugin_multiple_definition): Update.
426 2011-04-18 Kai Tietz <ktietz@redhat.com>
428 * deffilep.y (def_aligncomm): Avoid duplets.
430 * deffilep.y (def_pool_str): New type.
431 (pool_strs): Local static.
432 (def_pool_alloc): Local function.
433 (def_pool_strdup): Likewise.
434 (def_pool_free): Likewise.
435 (opt_name): Replace xmalloc/xstrdup by
436 def_pool_alloc/def_pool_strdup.
437 (dot_name): Likewise.
438 (anylang_id): Likewise.
440 (def_file_parse): Call def_pool_free on
441 exit and cleanup directives elements.
442 (def_file_add_directive): Call def_pool_free.
444 2011-04-18 Paul Brook <paul@codesourcery.com>
446 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
447 for unwinding tables.
449 2011-04-18 Alan Modra <amodra@gmail.com>
453 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
454 when no_more_claiming.
455 * ldmain.c (add_archive_element): Likewise.
456 (multiple_definition): Remove plugin_multiple_definition call.
457 (notice): Remove plugin_notice call.
458 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
460 (plugin_insert): New static var.
461 (open_input_bfds): Only rescan libs after plugin insert point.
462 (lang_gc_sections): Omit plugin claimed files.
463 (lang_process): Set plugin_insert. Only rescan when plugin adds
465 * plugin.h (no_more_claiming): Declare.
466 (plugin_notice, plugin_multiple_definition): Don't declare.
467 * plugin.c: Formatting.
468 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
469 plugin_callbacks): New static vars.
470 (no_more_claiming): Make global.
471 (plugin_cached_allow_multiple_defs): Delete.
472 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
473 use newer bfd_make_section variant. Make COMMON section too.
474 Error handling. Correct setting of gp size.
475 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
476 (message): Likewise for ACONCAT.
477 (asymbol_from_plugin_symbol): Use our COMMON section.
478 (get_symbols): When report_plugin_symbols, show visibility too.
479 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
480 (plugin_load_plugins): Save state of linker callbacks, set up to
481 call plugin_notice instead. Call init_non_ironly_hash here.
482 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
484 (plugin_notice): Rewrite.
485 (plugin_multiple_definition): Make static, call original callback.
487 2011-04-15 Alan Modra <amodra@gmail.com>
490 * ldlang.c (enum open_bfd_mode): New.
491 (open_input_bfds): Replace "force" param with "mode". Reload
492 archives for rescan. Update all callers.
493 (lang_process): Make another open_input_bfds pass for plugins.
495 2011-04-13 Kai Tietz <ktietz@redhat.com>
498 * deffile.h (def_file_add_export): Add is_dup argument.
499 (def_file_add_import): Likewise.
500 * deffilep.y (are_names_equal): New helper.
501 (cmp_export_elem): New helper.
502 (find_export_in_list): Add search routine for exports.
503 (def_file_add_export): Check for duplicates.
504 (cmp_import_elem): New helper.
505 (find_import_in_list): Add search routine for imports.
506 (def_file_add_import): Check for duplicates.
507 (def_exports): Handle duplicates.
508 (def_imports): Likewise.
509 * pe-dll.c (process_def_file_and_drectve): Likewise.
510 (pe_implied_import_dll): Likewise.
512 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
514 * scripttempl/elf.sc (.exception_ranges): Add new section.
516 2011-04-08 Hector Oron <hector.oron@gmail.com>
519 * configure.tgt: Add support for arm-*-gnueabihf targets.
521 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
523 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
525 2011-04-07 Joseph Myers <joseph@codesourcery.com>
527 * configure.tgt: Remove stray ;;.
529 2011-04-06 Joseph Myers <joseph@codesourcery.com>
531 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
532 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
533 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
534 xscale-*-coff, xscale-*-elf): Remove targets.
536 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
538 * configure.tgt: Add elf_l1om to targ_extra_libpath for
541 * emulparams/elf_l1om.sh: Remove duplicates.
543 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
545 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
546 GENERATE_SHLIB_SCRIPT): New defines.
547 (TEXT_START_ADDR): Define differently depending on target.
548 (.got): Redefine to include "*(.dsbt)".
549 (SDATA_START_SYMBOLS): Remove, replace with
550 (OTHER_GOT_SYMBOLS): New.
551 (OTHER_BSS_SECTIONS): Define only for ELF targets.
552 * emultempl/tic6xdsbt.em: New file.
553 * gen-doc.texi: Set C6X.
554 * ld.texinfo: Likewise.
555 (Options specific to C6X uClinux targets): New section.
557 2011-03-29 Alan Modra <amodra@gmail.com>
560 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
562 2011-03-26 John Marino <binutils@marino.st>
564 * configure.host: Update *-*-dragonfly* host entry.
565 * configure.tgt: Update *-*-dragonfly* target entry.
566 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
568 2011-03-28 Joseph Myers <joseph@codesourcery.com>
570 * configure.in: Check for windows.h, not Windows.h.
571 * configure: Regenerate.
572 * plugin.c: Include windows.h, not Windows.h.
574 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
576 * Makefile.in: Regenerate.
578 2011-03-23 Joseph Myers <joseph@codesourcery.com>
580 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
581 are enabled. Mark level as possibly unused.
583 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
585 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
586 (eavrxmega?.c): Likewise.
587 * configure.tgt (targ_extra_emuls): Likewise.
588 * emulparams/avrxmega1.sh: New file.
589 * emulparams/avrxmega2.sh: Likewise.
590 * emulparams/avrxmega3.sh: Likewise.
591 * emulparams/avrxmega4.sh: Likewise.
592 * emulparams/avrxmega5.sh: Likewise.
593 * emulparams/avrxmega6.sh: Likewise.
594 * emulparams/avrxmega7.sh: Likewise.
595 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
596 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
598 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
600 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
602 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
604 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
607 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
609 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
610 instead of dynamic_sections_created.
612 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
614 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
616 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
618 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
620 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
622 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
623 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
624 * ldmain.c (add_archive_element): Set it if the member is claimed.
625 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
626 (find_replacements_insert_point): New helper function.
627 (lang_process): After adding and opening replacement files passed
628 from plugin, splice them into correct place in statement list and
629 file chains to preserve critical link order.
630 (lang_list_insert_after): New helper function.
631 (lang_list_remove_tail): Likewise.
633 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
635 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
636 (IRONLY_SUFFIX_LEN): Delete.
637 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
638 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
639 enclosing lang input statement instead.
641 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
643 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
644 alignment of input sections when creating orphan output sections
645 during relocatable link.
646 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
648 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
650 * ld.texinfo: Document --verbose[=NUMBER].
652 * lexsup.c (ld_options): Update --verbose.
653 (parse_args): Set report_plugin_symbols.
655 * plugin.c (report_plugin_symbols): New.
656 (get_symbols): Report plugin symbols if report_plugin_symbols
659 * plugin.h (report_plugin_symbols): New.
661 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
664 * testplug.c: Don't include "filenames.h".
665 (onclaim_file): Don't use filename_cmp.
667 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
669 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
670 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
672 (gld${EMULATION_NAME}_stat_needed): Likewise.
673 (gld${EMULATION_NAME}_check_needed): Likewise.
674 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
675 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
676 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
677 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
678 * ldfile.c (ldfile_open_file): Likewise.
679 * ldlang.c (wild_sort): Likewise.
680 (lookup_name): Likewise.
681 (check_excluded_libs): Likewise.
682 * ldmisc.c (vfinfo): Likewise.
683 * pe-dll.c (libnamencmp): Likewise.
684 (auto_export): Likewise.
685 (pe_dll_generate_implib): Likewise.
686 * testplug.c (onclaim_file): Likewise.
688 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
691 * plugin.c (get_symbols): Don't check entry symbol here.
692 (init_non_ironly_hash): Add entry_symbol chain into
695 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
698 * plugin.c (get_symbols): Don't mark entry symbol IR only.
700 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
703 emulparams/hppalinux.sh (DATA_ADDR): Define.
704 (SHLIB_DATA_ADDR): Likewise.
706 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
708 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
711 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
713 * pe-dll.c (process_def_file_and_drectve): Don't strip
714 leading underscore from symbol by calling bfd_find_version_for_sym.
716 2011-02-14 Mike Frysinger <vapier@gentoo.org>
718 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
719 the bfd_demangle of sym, change users of sym to c_sym when not
720 already demangling, and free when done. Change callers of
721 cplus_demangle to bfd_demangle.
723 2011-02-14 Alan Modra <amodra@gmail.com>
725 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
726 .text section, use newer bfd_make_section variant. Error handling.
727 Correct setting of gp size.
728 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
729 (message): Likewise for ACONCAT.
730 (get_symbols): Formatting.
732 2011-02-14 Alan Modra <amodra@gmail.com>
734 * ldmain.c (remove_output): Rename to..
735 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
737 * plugin.c (plugin_call_cleanup): Make global.
738 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
739 * plugin.h (plugin_call_cleanup): Declare.
741 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
743 * configure: Regenerate.
745 2011-02-10 Alan Modra <amodra@gmail.com>
747 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
748 * scripttempl/avr.sc: Likewise.
749 * scripttempl/elf32cr16.sc: Likewise.
750 * scripttempl/elf32crx.sc: Likewise.
751 * scripttempl/elf32msp430.sc: Likewise.
752 * scripttempl/elf32msp430_3.sc: Likewise.
753 * scripttempl/elf32sh-symbian.sc: Likewise.
754 * scripttempl/elf64hppa.sc: Likewise.
755 * scripttempl/elf_chaos.sc: Likewise.
756 * scripttempl/elfd10v.sc: Likewise.
757 * scripttempl/elfd30v.sc: Likewise.
758 * scripttempl/elfi370.sc: Likewise.
759 * scripttempl/elfm68hc11.sc: Likewise.
760 * scripttempl/elfm68hc12.sc: Likewise.
761 * scripttempl/elfxtensa.sc: Likewise.
762 * scripttempl/ip2k.sc: Likewise.
763 * scripttempl/iq2000.sc: Likewise.
764 * scripttempl/mep.sc: Likewise.
765 * scripttempl/mmo.sc: Likewise.
766 * scripttempl/v850.sc: Likewise.
767 * scripttempl/xstormy16.sc: Likewise.
768 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
770 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
772 * Makefile.am (CXX): Removed.
774 * configure.in: Add AC_PROG_CXX.
776 * Makefile.in: Regenerated.
777 * configure: Likewise.
779 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
781 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
782 private data and GP size.
784 2011-01-21 Alan Modra <amodra@gmail.com>
786 * ldexp.c (fold_binary): Set result section for arithmetic and
787 logical operations to NULL when both operands are in same section.
788 * ld.texinfo (Expression Section): Describe this.
790 2011-01-14 Alan Modra <amodra@gmail.com>
792 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
793 attempt to put non-alloc orphans before debug sections, just place
796 2011-01-14 J. Park <grassman@gmail.com>
799 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
801 2011-01-14 Alan Modra <amodra@gmail.com>
803 * Makefile.am: Sort emulation rules.
804 (eelf32am33lin.c): Delete.
805 (ALL_EMULATION_SOURCES): Sort, add missing entries.
806 (ALL_64_EMULATION_SOURCES): Likewise.
807 * Makefile.in: Regenerate.
809 2011-01-13 Alan Modra <amodra@gmail.com>
812 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
813 (Expression Section): Update.
814 * ld.h (ld_config_type): Add sane_expr.
815 * ldgram.y (ifile_p1): Add LD_FEATURE.
816 * ldlex.l (LD_FEATYRE): New.
817 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
818 * ldexp.h (struct ldexp_control): Delete uses_defined.
819 * ldexp.c: Remove all uses of uses_defined.
820 (fold_name): Test config.sane_expr rather than ld_compatibility.
821 (exp_fold_tree_1): Likewise. Adjust handling of assignments
823 * ldlang.h (ld_compatibility): Delete.
824 (lang_ld_feature): Declare.
825 * ldlang.c (ld_compatibility): Delete.
826 (open_input_bfds): Only handle assignments for --defsym.
827 (lang_ld_feature): New function.
830 * ldexp.h (exp_assop): Delete.
831 (exp_assign, exp_defsym): Declare.
832 * ldexp.c (exp_assop): Make static, handle all assignment variations.
833 (exp_assign, exp_defsym): New functions.
834 (exp_provide): Use exp_assop.
835 * ldgram.y (defsym_expr): Use exp_defsym.
836 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
837 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
838 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
840 2011-01-12 Alan Modra <amodra@gmail.com>
843 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
844 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
845 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
846 to detect when we've finished sizing sections.
847 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
848 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
849 that we are not inside an output section statement.
850 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
851 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
852 lang_final_phase_enum here.
853 (lang_process): Set lang_final_phase_enum here.
855 2011-01-10 Nick Clifton <nickc@redhat.com>
857 * po/da.po: Updated Danish translation.
859 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
861 * ldlang.c (startup_file): Removed.
862 (lang_startup): Updated.
864 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
867 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
868 before accessing its flags field.
870 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
872 * ldver.c (ldversion): Update copyright to 2011.
874 For older changes see ChangeLog-2010
880 version-control: never