1 2011-07-14 Alan Modra <amodra@gmail.com>
3 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
4 gld${EMULATION_NAME}_list_options): Don't condition -z relro
5 and -z norelro on COMMONPAGESIZE being defined.
7 2011-07-14 Alan Modra <amodra@gmail.com>
9 * emultempl/ppc64elf.em (plt_static_chain): New var.
10 (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
11 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
12 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
13 --plt-static-chain and --no-plt-static-chain.
15 2011-07-14 Alan Modra <amodra@gmail.com>
17 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
18 gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
19 Provide --build-id, -z defs, -z muldefs, -z max-page-size,
20 -z common-page-size, -z execstack, -z noexecstack for all targets.
21 Add help for --exclude-libs.
22 (OPTION_LD_GENERATED_UNWIND_INFO,
23 OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
24 (gld${EMULATION_NAME}_handle_option): ..and code handling
25 --ld-generated-unwind-info and --no-ld-generated-unwind-info..
26 * emulparams/plt_unwind.sh: ..to here. New file. Add help.
27 * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
28 * emulparams/elf_i386.sh: Likewise.
29 * emulparams/elf_i386_chaos.sh: Likewise.
30 * emulparams/elf_i386_ldso.sh: Likewise.
31 * emulparams/elf_l1om.sh: Likewise.
32 * emulparams/elf_x86_64.sh: Likewise.
34 2011-07-11 Catherine Moore <clm@codesourcery.com>
36 * ld.h (section_flag_list): Add field to struct wildcard_spec.
37 * ld.texinfo (INPUT_SECTION_FLAGS): Document.
38 * ldgram.y (flag_info_list, flag_info): Add to union.
39 (INPUT_SECTION_FLAGS): New token.
40 (wildcard_spec): Initialize section_flag_list to NULL for
42 (sect_flag_list, sect_flags): New rules.
43 (input_section_spec_no_keep): Add alternatives to recognize
45 * ldlang.c (walk_wild_consider_section): Initialize
46 section_flag_info field of the section struct.
47 (lang_add_section): Check input section flags.
48 (lang_add_wild): Initialize section_flag_list field of
50 * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
51 (lang_wild_statement_struct): Likewise.
52 * ldlex.l (INPUT_SECTION_FLAGS): New token.
53 * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
54 * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
56 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
59 * ldlang.c (section_already_linked): Pass "struct already_linked *"
60 to bfd_section_already_linked.
61 (lang_process): Set link_info.loading_lto_outputs before
63 * plugin.c: Include "libbfd.h".
64 (add_symbols): Call bfd_section_already_linked with comdat_key.
66 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
68 * configure.tgt: Revert x32 change.
70 2011-06-20 Jakub Jelinek <jakub@redhat.com>
73 * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
74 OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
75 (gld${EMULATION_NAME}_handle_option): Handle
76 --ld-generated-unwind-info and --no-ld-generated-unwind-info.
77 * ld.texinfo (--ld-generated-unwind-info,
78 --no-ld-generated-unwind-info): Document.
80 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
82 * configure.tgt: Support x32.
84 2011-06-15 Nick Clifton <nickc@redhat.com>
86 * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
88 2011-06-13 Walter Lee <walt@tilera.com>
90 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
92 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
93 (eelf32tilegx.c): New target.
94 (eelf32tilepro.c): Likewise.
95 (eelf64tilegx.c): Likewise.
96 * Makefile.in: Regenerate.
97 * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
98 * emulparams/elf32tilegx.sh: New file.
99 * emulparams/elf64tilegx.sh: New file.
100 * emulparams/elf32tilepro.sh: New file.
102 2011-06-13 Alan Modra <amodra@gmail.com>
104 * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
105 warning symbols here.
106 * emultempl/pe.em (pr_sym): Remove redundant test.
107 * emultempl/pep.em (pr_sym): Likewise.
109 2011-06-09 Nick Clifton <nickc@redhat.com>
112 * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
113 for sections that have been removed by garbage collection.
115 2011-06-08 Alan Modra <amodra@gmail.com>
117 * ldlang.c (lang_one_common): Handle warning symbols.
119 2011-06-07 Nick Clifton <nickc@redhat.com>
121 * configure.tgt: Accept any V850 architecture.
123 2011-06-03 Nick Clifton <nickc@redhat.com>
125 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
126 Add rule to build eelf32am33lin.c
127 * Makefile.in: Regenerate.
129 2011-06-02 Nick Clifton <nickc@redhat.com>
131 * lexsup.c: Fix spelling mistake in comment.
132 * scripttempl/epocpe.sc: Likewise.
133 * scripttempl/i386beos.sc: Likewise.
134 * scripttempl/mcorepe.sc: Likewise.
135 * scripttempl/pe.sc: Likewise.
136 * scripttempl/pep.sc: Likewise.
137 * po/ld.pot: Regenerate.
139 2011-05-27 Nick Clifton <nickc@redhat.com>
141 * scripttempl/v850.sc (_heap_start): Provide.
143 2011-05-23 Alan Modra <amodra@gmail.com>
145 * ldmisc.c (vfinfo): Add %H.
146 * ldmain.c (reloc_overflow): Use %H rather than %C.
147 (reloc_dangerous, unattached_reloc): Likewise.
149 2011-05-23 Alan Modra <amodra@gmail.com>
152 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
153 like sections to existing .sdata2, and similarly for orphan TLS
155 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
157 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
160 * emultempl/rxelf.em (ignore_lma): New variable.
161 (rx_elf_create_output_section_statements): Pass the setiing of
162 ignore_lma to bfd_elf32_rx_set_target_flags.
163 (OPTION_IGNORE_LMA): Define.
164 (OPTION_NO_IGNORE_LMA): Define.
165 (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
166 (PARSE_AND_LIST_OPTIONS): Add ignore lma.
167 (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
169 2011-05-17 Alan Modra <amodra@gmail.com>
172 * ldmain.c (notice): Add "flags" and "string" param.
173 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
174 and constructor syms.
176 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
178 * ldlang.c (print_assignment): Use the symbol's section if we
180 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
181 comment on copying symbol type.
183 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
186 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
189 2011-05-16 Alan Modra <amodra@gmail.com>
191 * ldlang.c (lang_leave_output_section_statement): Don't copy
192 previous lma_region if given address.
194 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
196 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
197 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
198 * Makefile.am (ALL_EMULATIONS): Add these files.
199 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
200 * Makefile.in: Regenerated.
201 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
203 * emulparams/elf32_tic6x_elf_be.sh: New file.
204 * emulparams/elf32_tic6x_elf_le.sh: New file.
205 * emulparams/elf32_tic6x_linux_be.sh: New file.
206 * emulparams/elf32_tic6x_linux_le.sh: New file.
207 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
208 (tic6x-*-*): Replaced by these.
210 2011-05-13 Jan Beulich <jbeulich@novell.com>
212 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
214 2011-05-09 Paul Brook <paul@codesourcery.com>
216 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
217 (compare_output_sec_vma): New function.
218 (gld${EMULATION_NAME}_after_allocation): New function.
219 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
220 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
221 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
222 (LDEMUL_AFTER_ALLOCATION): Set.
223 * ld.texinfo: Document c6x --no-merge-exidx-entries.
225 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
228 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
229 (__rt_psrelocs_end): Likewise.
230 (__rt_psrelocs_size): Likewise difference between the above.
231 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
232 immediately after end of pseudo-reloc data.
233 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
234 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
235 calculate backward from list end.
236 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
237 * scripttempl/pep.sc: Likewise.
239 2011-05-06 Tristan Gingold <gingold@adacore.com>
241 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
243 2011-05-04 Tristan Gingold <gingold@adacore.com>
245 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
246 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
247 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
248 (gld${EMULATION_NAME}_add_options): New function.
249 (gld${EMULATION_NAME}_list_options): Ditto.
250 (gld${EMULATION_NAME}_handle_option): Ditto.
251 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
252 (LDEMUL_LIST_OPTIONS): Define.
254 2011-05-04 Alan Modra <amodra@gmail.com>
257 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
258 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
259 assign to dot when lang_assigning_phase_enum.
260 * ldlang.h (lang_do_assignments): Update prototype.
261 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
263 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
264 lang_do_assignments calls.
266 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
269 * emultempl/pe.em (_after_open): Correctly check whether symbol is
272 2011-04-26 Kai Tietz <ktietz@redhat.com>
274 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
275 * scripttempl/pep.sc: Likewise.
277 2011-04-24 Alan Modra <amodra@gmail.com>
281 * ldmain.c (notice): Delete "name" param, add "h".
282 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
283 redefinitions of IR symbols in real BFDs.
284 (plugin_multiple_definition, plugin_multiple_common): Delete.
285 (non_ironly_hash, init_non_ironly_hash): Delete.
286 (is_visible_from_outside): Traverse entry_symbol chain.
287 (get_symbols): Use non_ir_ref flag rather than hash lookup.
289 2011-04-21 Tristan Gingold <gingold@adacore.com>
291 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
293 2011-04-20 Tristan Gingold <gingold@adacore.com>
295 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
297 2011-04-20 Alan Modra <amodra@gmail.com>
299 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
301 2011-04-20 Alan Modra <amodra@gmail.com>
304 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
306 * ldmain.c (add_archive_element): ..and similar code here..
307 * plugin.c (plugin_maybe_claim): ..to here. New function.
308 (plugin_call_claim_file): Make static.
309 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
310 (plugin_multiple_common): New function.
311 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
312 * plugin.h (plugin_call_claim_file): Don't declare.
313 (plugin_maybe_claim): Declare.
315 2011-04-20 Alan Modra <amodra@gmail.com>
318 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
319 pointer arg rather than "name", "obfd", "osec", "oval". Add code
320 removed from linker.c. Hack around xcofflink.c oddity in
322 (multiple_common): Similarly.
323 * plugin.c (orig_allow_multiple_defs): Delete.
324 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
325 (plugin_multiple_definition): Update.
327 2011-04-18 Kai Tietz <ktietz@redhat.com>
329 * deffilep.y (def_aligncomm): Avoid duplets.
331 * deffilep.y (def_pool_str): New type.
332 (pool_strs): Local static.
333 (def_pool_alloc): Local function.
334 (def_pool_strdup): Likewise.
335 (def_pool_free): Likewise.
336 (opt_name): Replace xmalloc/xstrdup by
337 def_pool_alloc/def_pool_strdup.
338 (dot_name): Likewise.
339 (anylang_id): Likewise.
341 (def_file_parse): Call def_pool_free on
342 exit and cleanup directives elements.
343 (def_file_add_directive): Call def_pool_free.
345 2011-04-18 Paul Brook <paul@codesourcery.com>
347 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
348 for unwinding tables.
350 2011-04-18 Alan Modra <amodra@gmail.com>
354 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
355 when no_more_claiming.
356 * ldmain.c (add_archive_element): Likewise.
357 (multiple_definition): Remove plugin_multiple_definition call.
358 (notice): Remove plugin_notice call.
359 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
361 (plugin_insert): New static var.
362 (open_input_bfds): Only rescan libs after plugin insert point.
363 (lang_gc_sections): Omit plugin claimed files.
364 (lang_process): Set plugin_insert. Only rescan when plugin adds
366 * plugin.h (no_more_claiming): Declare.
367 (plugin_notice, plugin_multiple_definition): Don't declare.
368 * plugin.c: Formatting.
369 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
370 plugin_callbacks): New static vars.
371 (no_more_claiming): Make global.
372 (plugin_cached_allow_multiple_defs): Delete.
373 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
374 use newer bfd_make_section variant. Make COMMON section too.
375 Error handling. Correct setting of gp size.
376 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
377 (message): Likewise for ACONCAT.
378 (asymbol_from_plugin_symbol): Use our COMMON section.
379 (get_symbols): When report_plugin_symbols, show visibility too.
380 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
381 (plugin_load_plugins): Save state of linker callbacks, set up to
382 call plugin_notice instead. Call init_non_ironly_hash here.
383 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
385 (plugin_notice): Rewrite.
386 (plugin_multiple_definition): Make static, call original callback.
388 2011-04-15 Alan Modra <amodra@gmail.com>
391 * ldlang.c (enum open_bfd_mode): New.
392 (open_input_bfds): Replace "force" param with "mode". Reload
393 archives for rescan. Update all callers.
394 (lang_process): Make another open_input_bfds pass for plugins.
396 2011-04-13 Kai Tietz <ktietz@redhat.com>
399 * deffile.h (def_file_add_export): Add is_dup argument.
400 (def_file_add_import): Likewise.
401 * deffilep.y (are_names_equal): New helper.
402 (cmp_export_elem): New helper.
403 (find_export_in_list): Add search routine for exports.
404 (def_file_add_export): Check for duplicates.
405 (cmp_import_elem): New helper.
406 (find_import_in_list): Add search routine for imports.
407 (def_file_add_import): Check for duplicates.
408 (def_exports): Handle duplicates.
409 (def_imports): Likewise.
410 * pe-dll.c (process_def_file_and_drectve): Likewise.
411 (pe_implied_import_dll): Likewise.
413 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
415 * scripttempl/elf.sc (.exception_ranges): Add new section.
417 2011-04-08 Hector Oron <hector.oron@gmail.com>
420 * configure.tgt: Add support for arm-*-gnueabihf targets.
422 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
424 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
426 2011-04-07 Joseph Myers <joseph@codesourcery.com>
428 * configure.tgt: Remove stray ;;.
430 2011-04-06 Joseph Myers <joseph@codesourcery.com>
432 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
433 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
434 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
435 xscale-*-coff, xscale-*-elf): Remove targets.
437 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
439 * configure.tgt: Add elf_l1om to targ_extra_libpath for
442 * emulparams/elf_l1om.sh: Remove duplicates.
444 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
446 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
447 GENERATE_SHLIB_SCRIPT): New defines.
448 (TEXT_START_ADDR): Define differently depending on target.
449 (.got): Redefine to include "*(.dsbt)".
450 (SDATA_START_SYMBOLS): Remove, replace with
451 (OTHER_GOT_SYMBOLS): New.
452 (OTHER_BSS_SECTIONS): Define only for ELF targets.
453 * emultempl/tic6xdsbt.em: New file.
454 * gen-doc.texi: Set C6X.
455 * ld.texinfo: Likewise.
456 (Options specific to C6X uClinux targets): New section.
458 2011-03-29 Alan Modra <amodra@gmail.com>
461 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
463 2011-03-26 John Marino <binutils@marino.st>
465 * configure.host: Update *-*-dragonfly* host entry.
466 * configure.tgt: Update *-*-dragonfly* target entry.
467 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
469 2011-03-28 Joseph Myers <joseph@codesourcery.com>
471 * configure.in: Check for windows.h, not Windows.h.
472 * configure: Regenerate.
473 * plugin.c: Include windows.h, not Windows.h.
475 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
477 * Makefile.in: Regenerate.
479 2011-03-23 Joseph Myers <joseph@codesourcery.com>
481 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
482 are enabled. Mark level as possibly unused.
484 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
486 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
487 (eavrxmega?.c): Likewise.
488 * configure.tgt (targ_extra_emuls): Likewise.
489 * emulparams/avrxmega1.sh: New file.
490 * emulparams/avrxmega2.sh: Likewise.
491 * emulparams/avrxmega3.sh: Likewise.
492 * emulparams/avrxmega4.sh: Likewise.
493 * emulparams/avrxmega5.sh: Likewise.
494 * emulparams/avrxmega6.sh: Likewise.
495 * emulparams/avrxmega7.sh: Likewise.
496 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
497 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
499 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
501 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
503 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
505 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
508 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
510 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
511 instead of dynamic_sections_created.
513 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
515 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
517 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
519 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
521 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
523 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
524 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
525 * ldmain.c (add_archive_element): Set it if the member is claimed.
526 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
527 (find_replacements_insert_point): New helper function.
528 (lang_process): After adding and opening replacement files passed
529 from plugin, splice them into correct place in statement list and
530 file chains to preserve critical link order.
531 (lang_list_insert_after): New helper function.
532 (lang_list_remove_tail): Likewise.
534 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
536 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
537 (IRONLY_SUFFIX_LEN): Delete.
538 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
539 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
540 enclosing lang input statement instead.
542 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
544 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
545 alignment of input sections when creating orphan output sections
546 during relocatable link.
547 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
549 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
551 * ld.texinfo: Document --verbose[=NUMBER].
553 * lexsup.c (ld_options): Update --verbose.
554 (parse_args): Set report_plugin_symbols.
556 * plugin.c (report_plugin_symbols): New.
557 (get_symbols): Report plugin symbols if report_plugin_symbols
560 * plugin.h (report_plugin_symbols): New.
562 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
565 * testplug.c: Don't include "filenames.h".
566 (onclaim_file): Don't use filename_cmp.
568 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
570 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
571 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
573 (gld${EMULATION_NAME}_stat_needed): Likewise.
574 (gld${EMULATION_NAME}_check_needed): Likewise.
575 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
576 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
577 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
578 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
579 * ldfile.c (ldfile_open_file): Likewise.
580 * ldlang.c (wild_sort): Likewise.
581 (lookup_name): Likewise.
582 (check_excluded_libs): Likewise.
583 * ldmisc.c (vfinfo): Likewise.
584 * pe-dll.c (libnamencmp): Likewise.
585 (auto_export): Likewise.
586 (pe_dll_generate_implib): Likewise.
587 * testplug.c (onclaim_file): Likewise.
589 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
592 * plugin.c (get_symbols): Don't check entry symbol here.
593 (init_non_ironly_hash): Add entry_symbol chain into
596 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
599 * plugin.c (get_symbols): Don't mark entry symbol IR only.
601 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
604 emulparams/hppalinux.sh (DATA_ADDR): Define.
605 (SHLIB_DATA_ADDR): Likewise.
607 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
609 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
612 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
614 * pe-dll.c (process_def_file_and_drectve): Don't strip
615 leading underscore from symbol by calling bfd_find_version_for_sym.
617 2011-02-14 Mike Frysinger <vapier@gentoo.org>
619 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
620 the bfd_demangle of sym, change users of sym to c_sym when not
621 already demangling, and free when done. Change callers of
622 cplus_demangle to bfd_demangle.
624 2011-02-14 Alan Modra <amodra@gmail.com>
626 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
627 .text section, use newer bfd_make_section variant. Error handling.
628 Correct setting of gp size.
629 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
630 (message): Likewise for ACONCAT.
631 (get_symbols): Formatting.
633 2011-02-14 Alan Modra <amodra@gmail.com>
635 * ldmain.c (remove_output): Rename to..
636 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
638 * plugin.c (plugin_call_cleanup): Make global.
639 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
640 * plugin.h (plugin_call_cleanup): Declare.
642 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
644 * configure: Regenerate.
646 2011-02-10 Alan Modra <amodra@gmail.com>
648 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
649 * scripttempl/avr.sc: Likewise.
650 * scripttempl/elf32cr16.sc: Likewise.
651 * scripttempl/elf32crx.sc: Likewise.
652 * scripttempl/elf32msp430.sc: Likewise.
653 * scripttempl/elf32msp430_3.sc: Likewise.
654 * scripttempl/elf32sh-symbian.sc: Likewise.
655 * scripttempl/elf64hppa.sc: Likewise.
656 * scripttempl/elf_chaos.sc: Likewise.
657 * scripttempl/elfd10v.sc: Likewise.
658 * scripttempl/elfd30v.sc: Likewise.
659 * scripttempl/elfi370.sc: Likewise.
660 * scripttempl/elfm68hc11.sc: Likewise.
661 * scripttempl/elfm68hc12.sc: Likewise.
662 * scripttempl/elfxtensa.sc: Likewise.
663 * scripttempl/ip2k.sc: Likewise.
664 * scripttempl/iq2000.sc: Likewise.
665 * scripttempl/mep.sc: Likewise.
666 * scripttempl/mmo.sc: Likewise.
667 * scripttempl/v850.sc: Likewise.
668 * scripttempl/xstormy16.sc: Likewise.
669 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
671 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
673 * Makefile.am (CXX): Removed.
675 * configure.in: Add AC_PROG_CXX.
677 * Makefile.in: Regenerated.
678 * configure: Likewise.
680 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
682 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
683 private data and GP size.
685 2011-01-21 Alan Modra <amodra@gmail.com>
687 * ldexp.c (fold_binary): Set result section for arithmetic and
688 logical operations to NULL when both operands are in same section.
689 * ld.texinfo (Expression Section): Describe this.
691 2011-01-14 Alan Modra <amodra@gmail.com>
693 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
694 attempt to put non-alloc orphans before debug sections, just place
697 2011-01-14 J. Park <grassman@gmail.com>
700 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
702 2011-01-14 Alan Modra <amodra@gmail.com>
704 * Makefile.am: Sort emulation rules.
705 (eelf32am33lin.c): Delete.
706 (ALL_EMULATION_SOURCES): Sort, add missing entries.
707 (ALL_64_EMULATION_SOURCES): Likewise.
708 * Makefile.in: Regenerate.
710 2011-01-13 Alan Modra <amodra@gmail.com>
713 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
714 (Expression Section): Update.
715 * ld.h (ld_config_type): Add sane_expr.
716 * ldgram.y (ifile_p1): Add LD_FEATURE.
717 * ldlex.l (LD_FEATYRE): New.
718 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
719 * ldexp.h (struct ldexp_control): Delete uses_defined.
720 * ldexp.c: Remove all uses of uses_defined.
721 (fold_name): Test config.sane_expr rather than ld_compatibility.
722 (exp_fold_tree_1): Likewise. Adjust handling of assignments
724 * ldlang.h (ld_compatibility): Delete.
725 (lang_ld_feature): Declare.
726 * ldlang.c (ld_compatibility): Delete.
727 (open_input_bfds): Only handle assignments for --defsym.
728 (lang_ld_feature): New function.
731 * ldexp.h (exp_assop): Delete.
732 (exp_assign, exp_defsym): Declare.
733 * ldexp.c (exp_assop): Make static, handle all assignment variations.
734 (exp_assign, exp_defsym): New functions.
735 (exp_provide): Use exp_assop.
736 * ldgram.y (defsym_expr): Use exp_defsym.
737 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
738 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
739 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
741 2011-01-12 Alan Modra <amodra@gmail.com>
744 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
745 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
746 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
747 to detect when we've finished sizing sections.
748 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
749 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
750 that we are not inside an output section statement.
751 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
752 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
753 lang_final_phase_enum here.
754 (lang_process): Set lang_final_phase_enum here.
756 2011-01-10 Nick Clifton <nickc@redhat.com>
758 * po/da.po: Updated Danish translation.
760 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
762 * ldlang.c (startup_file): Removed.
763 (lang_startup): Updated.
765 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
768 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
769 before accessing its flags field.
771 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
773 * ldver.c (ldversion): Update copyright to 2011.
775 For older changes see ChangeLog-2010
781 version-control: never