1 2011-11-25 John Tytgat <john@bass-software.com>
3 * emultempl/armelf.em: Update copyright to 2010 and 2011.
4 (PARSE_AND_LIST_OPTIONS): Fix formatting.
6 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
8 * Makefile.am (ALL_64_EMULATION_SOURCES): Add powerpc64-*-freebsd
10 (eelf64ppc_fbsd.c): Add rules to build this file.
11 * Makefile.in: Regenerate.
12 * configure.tgt: Add target definition for powerpc64-*-freebsd*.
13 Adjust powerpc-*-freebsd*.
14 * emultempl/ppc64elf.em: Add a mechanism to override the default
15 value of 0 for plt_static_chain.
16 * emulparams/elf32ppc_fbsd.sh (OUTPUT_FORMAT): Override the default.
17 * emulparams/elf64ppc_fbsd.sh (OUTPUT_FORMAT): Likewise.
18 (DEFAULT_PLT_STATIC_CHAIN): Define to 1.
20 2011-11-15 Andreas Schwab <schwab@linux-m68k.org>
22 * ldlang.c (insert_pad): Change alignment_needed argument to
24 (size_input_section): Change alignment_needed varible to
26 * ldlang.h (lang_padding_statement_type): Change size field to
29 2011-11-03 Tristan Gingold <gingold@adacore.com>
31 * scripttempl/aix.sc: Consider header size for .text and .data
34 2011-11-02 Tristan Gingold <gingold@adacore.com>
36 * emultempl/aix.em (read_file_list): New function.
37 (_handle_option): Handle '-f'.
38 * NEWS: Mention this feature.
40 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42 * configure.tgt (x86_64-*-solaris2*): Use $targ_extra_emuls for
45 2011-11-01 DJ Delorie <dj@redhat.com>
47 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32rl78.c.
48 (+eelf32rl78.c): New rule.
49 * Makefile.in: Regenerate.
50 * configure.tgt: Add rl78-*-* case.
51 * emulparams/elf32rl78.sh: New file.
52 * NEWS: Mention addition of Renesas RL78 support.
54 2011-10-28 Walter Lee <walt@tilera.com>
56 * NEWS: Fix TILEPro capitalization.
58 2011-10-25 Joern Rennecke <joern.rennecke@embecosm.com>
60 * NEWS: Mention addition of Adapteva Epiphany support.
61 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32epiphany.c .
62 (eelf32epiphany.c): New rule.
63 * configure.tgt: Handle epiphany-*-elf.
64 * emulparams/elf32epiphany.sh: New file.
65 * Makefile.in: Regenerate.
66 * po/ld.pot: Regenerate.
68 2011-10-24 Nick Clifton <nickc@redhat.com>
70 * po/ja.po: Updated Japanese translation.
72 2011-10-20 Alan Modra <amodra@gmail.com>
75 * plugin.c (plugin_should_reload): New function.
76 * plugin.h (plugin_should_reload): Declare.
77 * ldlang.c (open_input_bfds): Use above function.
79 2011-10-19 Alan Modra <amodra@gmail.com>
82 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
83 -z text, -z notext, -z textoff options for all targets having
86 2011-10-15 Alan Modra <amodra@gmail.com>
88 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Remove toc check.
90 2011-10-13 Dave Korn <dave.korn.cygwin@gmail.com>
92 * pe-dll.c (generate_reloc): Don't emit a base reloc for an
93 underlying BFD reloc that will be discarded in eh_frame data.
95 2011-10-10 Nick Clifton <nickc@redhat.com>
97 * po/bg.po: Updated Bulgarian translation.
98 * po/es.po: Updated Spanish translation.
99 * po/fi.po: Updated Finnish translation.
100 * po/fr.po: Updated French translation.
102 2011-10-10 Alan Modra <amodra@gmail.com>
104 * ldmain.c (main): Move code twiddling various config and link_info
106 * lexsup.c (parse_args): ..here. Move plugin_load_plugins call
108 * plugin.c (set_tv_header): Test link_info.executable, not
110 (is_visible_from_outside): Likewise. Delete redundant
111 is_ir_dummy_bfd check and "section" parameter.
113 2011-10-10 Alan Modra <amodra@gmail.com>
115 * emultempl/ppc64elf.em (ppc_add_stub_section): Align to 32 bytes.
117 2011-10-09 Alan Modra <amodra@gmail.com>
119 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Add
120 missing colon to error message.
121 (ppc_before_allocation): Likewise.
123 2011-10-06 Alan Modra <amodra@gmail.com>
126 * plugin.c (tv_header_tags): Add LDPT_GET_SYMBOLS_V2.
127 (set_tv_header): Handle it. Adjust LDPT_GET_SYMBOLS. Return void.
128 (get_symbols): Add def_ironly_exp param. Return that value for
129 syms exported from shared libs.
130 (get_symbols_v1, get_symbols_v2): New wrapper functions.
131 * testplug.c: Update for above changes.
133 2011-09-27 Kai Tietz <ktietz@redhat.com>
135 * scripttempl/pe.sc (.text): Add support for
136 .gnu.linkonce.t.* section.
137 (.debug_info): Only use .gnu.linkonce.wi.* for
139 * scripttempl/pep.sc: Likewise.
141 2011-09-22 Tristan Gingold <gingold@adacore.com>
143 * NEWS: Add marker for 2.22.
145 2011-09-20 Alan Modra <amodra@gmail.com>
148 * ldlang.h (lang_input_statement_type): Add "reload" bitfield.
150 * ldlang.c (new_afile): Init new field.
151 (load_symbols): Don't call ldlang_add_file when reloading.
152 (open_input_bfds): Reload as-needed libs during plugin rescan.
154 2011-09-15 H.J. Lu <hongjiu.lu@intel.com>
157 * ldlang.c (lang_elf_version_info): Removed.
158 (lang_register_vers_node): Replace lang_elf_version_info with
159 link_info.version_info.
160 (lang_add_vers_depend): Likewise.
161 * pe-dll.c (process_def_file_and_drectve): Likewise.
162 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
164 * ldlang.h (lang_elf_version_info): Removed.
166 * plugin.c (is_visible_from_outside): Check if symbol is hidden
169 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
170 Remove lang_elf_version_info.
172 2011-09-15 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
175 * ldmain.c (add_archive_element): Support thin archive member
178 2011-08-26 Nick Clifton <nickc@redhat.com>
180 * po/es.po: Updated Spanish translation.
182 2011-08-26 Nick Clifton <nickc@redhat.com>
184 * NEWS: Mention that --no-copy-dt-needed-entries is now the
187 2011-08-22 Michael Matz <matz@suse.de>
189 * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
190 * ld.texinfo (--copy-dt-needed-entries): Mention new default.
192 2011-08-17 Alan Modra <amodra@gmail.com>
195 * ldlang.c (section_already_linked): Revert 2011-07-09 changes.
196 * plugin.c: Likewise.
197 (asymbol_from_plugin_symbol): Create linkonce section for syms
200 2011-08-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
202 * emultempl/armelf.em (fix_arm1176): New variable.
203 (arm_elf_create_output_section_statements): Pass
204 fix_arm1176 option to bfd backend.
205 (OPTION_FIX_ARM1176): New define.
206 (OPTION_NO_FIX_ARM1176): Likewise.
207 (PARSE_AND_LIST_LONGOPTS): Add new command line options.
208 (PARSE_AND_LIST_OPTIONS): Likewise.
209 (PARSE_AND_LIST_ARGS_CASES): Likewise.
210 * ld.texinfo: Document new command line options.
212 2011-08-09 Alan Modra <amodra@gmail.com>
215 * plugin.c (add_symbols): Revert 2011-08-05.
217 2011-08-06 Kai Tietz <ktietz@redhat.com>
219 * scripttempl/pep.sc: Add .debug_macro section.
220 * scripttempl/pe.sc: Likewise.
222 2011-08-05 Alan Modra <amodra@gmail.com>
225 * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
226 table if already seen.
228 2011-08-04 H.J. Lu <hongjiu.lu@intel.com>
230 * ldmain.c (main): Replace remove_output with ld_cleanup in
233 2011-07-26 Alan Modra <amodra@gmail.com>
235 * emulparams/elf32ppc.sh: Source plt_unwind.sh.
236 * emulparams/elf64ppc.sh: Likewise.
237 * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
238 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
239 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
241 * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
242 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
243 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
246 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
248 * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
251 (eelf_k1om_fbsd.c): Likewise.
252 * Makefile.in: Regenerated.
254 * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
255 is supported. Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
256 (targ_extra_emuls): Likewise.
258 * emulparams/elf_k1om.sh: New.
259 * emulparams/elf_k1om_fbsd.sh: Likewise.
261 2011-07-16 Roland McGrath <roland@hack.frob.com>
263 * ld.h (args_type): New field print_output_format.
264 * lexsup.c (enum option_values, ld_options, parse_args):
265 Handle --print-output-format.
266 * ldmain.c (main): Implement --print-output-format.
267 * ld.texinfo (Options): Document it.
269 * ldlang.c (lang_get_output_target): Don't return current_target
272 2011-07-15 Alan Modra <amodra@gmail.com>
274 * Makefile.am (e*.c): Sort.
275 * Makefile.in: Regenerate.
277 2011-07-14 Alan Modra <amodra@gmail.com>
279 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
280 gld${EMULATION_NAME}_list_options): Don't condition -z relro
281 and -z norelro on COMMONPAGESIZE being defined.
283 2011-07-14 Alan Modra <amodra@gmail.com>
285 * emultempl/ppc64elf.em (plt_static_chain): New var.
286 (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
287 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
288 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
289 --plt-static-chain and --no-plt-static-chain.
291 2011-07-14 Alan Modra <amodra@gmail.com>
293 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
294 gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
295 Provide --build-id, -z defs, -z muldefs, -z max-page-size,
296 -z common-page-size, -z execstack, -z noexecstack for all targets.
297 Add help for --exclude-libs.
298 (OPTION_LD_GENERATED_UNWIND_INFO,
299 OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
300 (gld${EMULATION_NAME}_handle_option): ..and code handling
301 --ld-generated-unwind-info and --no-ld-generated-unwind-info..
302 * emulparams/plt_unwind.sh: ..to here. New file. Add help.
303 * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
304 * emulparams/elf_i386.sh: Likewise.
305 * emulparams/elf_i386_chaos.sh: Likewise.
306 * emulparams/elf_i386_ldso.sh: Likewise.
307 * emulparams/elf_l1om.sh: Likewise.
308 * emulparams/elf_x86_64.sh: Likewise.
310 2011-07-11 Catherine Moore <clm@codesourcery.com>
312 * ld.h (section_flag_list): Add field to struct wildcard_spec.
313 * ld.texinfo (INPUT_SECTION_FLAGS): Document.
314 * ldgram.y (flag_info_list, flag_info): Add to union.
315 (INPUT_SECTION_FLAGS): New token.
316 (wildcard_spec): Initialize section_flag_list to NULL for
318 (sect_flag_list, sect_flags): New rules.
319 (input_section_spec_no_keep): Add alternatives to recognize
321 * ldlang.c (walk_wild_consider_section): Initialize
322 section_flag_info field of the section struct.
323 (lang_add_section): Check input section flags.
324 (lang_add_wild): Initialize section_flag_list field of
325 the statement struct.
326 * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
327 (lang_wild_statement_struct): Likewise.
328 * ldlex.l (INPUT_SECTION_FLAGS): New token.
329 * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
330 * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
332 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
335 * ldlang.c (section_already_linked): Pass "struct already_linked *"
336 to bfd_section_already_linked.
337 (lang_process): Set link_info.loading_lto_outputs before
339 * plugin.c: Include "libbfd.h".
340 (add_symbols): Call bfd_section_already_linked with comdat_key.
342 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
344 * configure.tgt: Revert x32 change.
346 2011-06-20 Jakub Jelinek <jakub@redhat.com>
349 * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
350 OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
351 (gld${EMULATION_NAME}_handle_option): Handle
352 --ld-generated-unwind-info and --no-ld-generated-unwind-info.
353 * ld.texinfo (--ld-generated-unwind-info,
354 --no-ld-generated-unwind-info): Document.
356 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
358 * configure.tgt: Support x32.
360 2011-06-15 Nick Clifton <nickc@redhat.com>
362 * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
364 2011-06-13 Walter Lee <walt@tilera.com>
366 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
368 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
369 (eelf32tilegx.c): New target.
370 (eelf32tilepro.c): Likewise.
371 (eelf64tilegx.c): Likewise.
372 * Makefile.in: Regenerate.
373 * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
374 * emulparams/elf32tilegx.sh: New file.
375 * emulparams/elf64tilegx.sh: New file.
376 * emulparams/elf32tilepro.sh: New file.
378 2011-06-13 Alan Modra <amodra@gmail.com>
380 * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
381 warning symbols here.
382 * emultempl/pe.em (pr_sym): Remove redundant test.
383 * emultempl/pep.em (pr_sym): Likewise.
385 2011-06-09 Nick Clifton <nickc@redhat.com>
388 * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
389 for sections that have been removed by garbage collection.
391 2011-06-08 Alan Modra <amodra@gmail.com>
393 * ldlang.c (lang_one_common): Handle warning symbols.
395 2011-06-07 Nick Clifton <nickc@redhat.com>
397 * configure.tgt: Accept any V850 architecture.
399 2011-06-03 Nick Clifton <nickc@redhat.com>
401 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
402 Add rule to build eelf32am33lin.c
403 * Makefile.in: Regenerate.
405 2011-06-02 Nick Clifton <nickc@redhat.com>
407 * lexsup.c: Fix spelling mistake in comment.
408 * scripttempl/epocpe.sc: Likewise.
409 * scripttempl/i386beos.sc: Likewise.
410 * scripttempl/mcorepe.sc: Likewise.
411 * scripttempl/pe.sc: Likewise.
412 * scripttempl/pep.sc: Likewise.
413 * po/ld.pot: Regenerate.
415 2011-05-27 Nick Clifton <nickc@redhat.com>
417 * scripttempl/v850.sc (_heap_start): Provide.
419 2011-05-23 Alan Modra <amodra@gmail.com>
421 * ldmisc.c (vfinfo): Add %H.
422 * ldmain.c (reloc_overflow): Use %H rather than %C.
423 (reloc_dangerous, unattached_reloc): Likewise.
425 2011-05-23 Alan Modra <amodra@gmail.com>
428 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
429 like sections to existing .sdata2, and similarly for orphan TLS
431 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
433 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
436 * emultempl/rxelf.em (ignore_lma): New variable.
437 (rx_elf_create_output_section_statements): Pass the setiing of
438 ignore_lma to bfd_elf32_rx_set_target_flags.
439 (OPTION_IGNORE_LMA): Define.
440 (OPTION_NO_IGNORE_LMA): Define.
441 (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
442 (PARSE_AND_LIST_OPTIONS): Add ignore lma.
443 (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
445 2011-05-17 Alan Modra <amodra@gmail.com>
448 * ldmain.c (notice): Add "flags" and "string" param.
449 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
450 and constructor syms.
452 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
454 * ldlang.c (print_assignment): Use the symbol's section if we
456 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
457 comment on copying symbol type.
459 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
462 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
465 2011-05-16 Alan Modra <amodra@gmail.com>
467 * ldlang.c (lang_leave_output_section_statement): Don't copy
468 previous lma_region if given address.
470 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
472 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
473 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
474 * Makefile.am (ALL_EMULATIONS): Add these files.
475 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
476 * Makefile.in: Regenerated.
477 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
479 * emulparams/elf32_tic6x_elf_be.sh: New file.
480 * emulparams/elf32_tic6x_elf_le.sh: New file.
481 * emulparams/elf32_tic6x_linux_be.sh: New file.
482 * emulparams/elf32_tic6x_linux_le.sh: New file.
483 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
484 (tic6x-*-*): Replaced by these.
486 2011-05-13 Jan Beulich <jbeulich@novell.com>
488 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
490 2011-05-09 Paul Brook <paul@codesourcery.com>
492 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
493 (compare_output_sec_vma): New function.
494 (gld${EMULATION_NAME}_after_allocation): New function.
495 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
496 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
497 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
498 (LDEMUL_AFTER_ALLOCATION): Set.
499 * ld.texinfo: Document c6x --no-merge-exidx-entries.
501 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
504 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
505 (__rt_psrelocs_end): Likewise.
506 (__rt_psrelocs_size): Likewise difference between the above.
507 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
508 immediately after end of pseudo-reloc data.
509 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
510 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
511 calculate backward from list end.
512 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
513 * scripttempl/pep.sc: Likewise.
515 2011-05-06 Tristan Gingold <gingold@adacore.com>
517 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
519 2011-05-04 Tristan Gingold <gingold@adacore.com>
521 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
522 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
523 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
524 (gld${EMULATION_NAME}_add_options): New function.
525 (gld${EMULATION_NAME}_list_options): Ditto.
526 (gld${EMULATION_NAME}_handle_option): Ditto.
527 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
528 (LDEMUL_LIST_OPTIONS): Define.
530 2011-05-04 Alan Modra <amodra@gmail.com>
533 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
534 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
535 assign to dot when lang_assigning_phase_enum.
536 * ldlang.h (lang_do_assignments): Update prototype.
537 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
539 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
540 lang_do_assignments calls.
542 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
545 * emultempl/pe.em (_after_open): Correctly check whether symbol is
548 2011-04-26 Kai Tietz <ktietz@redhat.com>
550 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
551 * scripttempl/pep.sc: Likewise.
553 2011-04-24 Alan Modra <amodra@gmail.com>
557 * ldmain.c (notice): Delete "name" param, add "h".
558 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
559 redefinitions of IR symbols in real BFDs.
560 (plugin_multiple_definition, plugin_multiple_common): Delete.
561 (non_ironly_hash, init_non_ironly_hash): Delete.
562 (is_visible_from_outside): Traverse entry_symbol chain.
563 (get_symbols): Use non_ir_ref flag rather than hash lookup.
565 2011-04-21 Tristan Gingold <gingold@adacore.com>
567 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
569 2011-04-20 Tristan Gingold <gingold@adacore.com>
571 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
573 2011-04-20 Alan Modra <amodra@gmail.com>
575 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
577 2011-04-20 Alan Modra <amodra@gmail.com>
580 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
582 * ldmain.c (add_archive_element): ..and similar code here..
583 * plugin.c (plugin_maybe_claim): ..to here. New function.
584 (plugin_call_claim_file): Make static.
585 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
586 (plugin_multiple_common): New function.
587 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
588 * plugin.h (plugin_call_claim_file): Don't declare.
589 (plugin_maybe_claim): Declare.
591 2011-04-20 Alan Modra <amodra@gmail.com>
594 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
595 pointer arg rather than "name", "obfd", "osec", "oval". Add code
596 removed from linker.c. Hack around xcofflink.c oddity in
598 (multiple_common): Similarly.
599 * plugin.c (orig_allow_multiple_defs): Delete.
600 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
601 (plugin_multiple_definition): Update.
603 2011-04-18 Kai Tietz <ktietz@redhat.com>
605 * deffilep.y (def_aligncomm): Avoid duplets.
607 * deffilep.y (def_pool_str): New type.
608 (pool_strs): Local static.
609 (def_pool_alloc): Local function.
610 (def_pool_strdup): Likewise.
611 (def_pool_free): Likewise.
612 (opt_name): Replace xmalloc/xstrdup by
613 def_pool_alloc/def_pool_strdup.
614 (dot_name): Likewise.
615 (anylang_id): Likewise.
617 (def_file_parse): Call def_pool_free on
618 exit and cleanup directives elements.
619 (def_file_add_directive): Call def_pool_free.
621 2011-04-18 Paul Brook <paul@codesourcery.com>
623 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
624 for unwinding tables.
626 2011-04-18 Alan Modra <amodra@gmail.com>
630 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
631 when no_more_claiming.
632 * ldmain.c (add_archive_element): Likewise.
633 (multiple_definition): Remove plugin_multiple_definition call.
634 (notice): Remove plugin_notice call.
635 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
637 (plugin_insert): New static var.
638 (open_input_bfds): Only rescan libs after plugin insert point.
639 (lang_gc_sections): Omit plugin claimed files.
640 (lang_process): Set plugin_insert. Only rescan when plugin adds
642 * plugin.h (no_more_claiming): Declare.
643 (plugin_notice, plugin_multiple_definition): Don't declare.
644 * plugin.c: Formatting.
645 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
646 plugin_callbacks): New static vars.
647 (no_more_claiming): Make global.
648 (plugin_cached_allow_multiple_defs): Delete.
649 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
650 use newer bfd_make_section variant. Make COMMON section too.
651 Error handling. Correct setting of gp size.
652 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
653 (message): Likewise for ACONCAT.
654 (asymbol_from_plugin_symbol): Use our COMMON section.
655 (get_symbols): When report_plugin_symbols, show visibility too.
656 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
657 (plugin_load_plugins): Save state of linker callbacks, set up to
658 call plugin_notice instead. Call init_non_ironly_hash here.
659 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
661 (plugin_notice): Rewrite.
662 (plugin_multiple_definition): Make static, call original callback.
664 2011-04-15 Alan Modra <amodra@gmail.com>
667 * ldlang.c (enum open_bfd_mode): New.
668 (open_input_bfds): Replace "force" param with "mode". Reload
669 archives for rescan. Update all callers.
670 (lang_process): Make another open_input_bfds pass for plugins.
672 2011-04-13 Kai Tietz <ktietz@redhat.com>
675 * deffile.h (def_file_add_export): Add is_dup argument.
676 (def_file_add_import): Likewise.
677 * deffilep.y (are_names_equal): New helper.
678 (cmp_export_elem): New helper.
679 (find_export_in_list): Add search routine for exports.
680 (def_file_add_export): Check for duplicates.
681 (cmp_import_elem): New helper.
682 (find_import_in_list): Add search routine for imports.
683 (def_file_add_import): Check for duplicates.
684 (def_exports): Handle duplicates.
685 (def_imports): Likewise.
686 * pe-dll.c (process_def_file_and_drectve): Likewise.
687 (pe_implied_import_dll): Likewise.
689 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
691 * scripttempl/elf.sc (.exception_ranges): Add new section.
693 2011-04-08 Hector Oron <hector.oron@gmail.com>
696 * configure.tgt: Add support for arm-*-gnueabihf targets.
698 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
700 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
702 2011-04-07 Joseph Myers <joseph@codesourcery.com>
704 * configure.tgt: Remove stray ;;.
706 2011-04-06 Joseph Myers <joseph@codesourcery.com>
708 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
709 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
710 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
711 xscale-*-coff, xscale-*-elf): Remove targets.
713 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
715 * configure.tgt: Add elf_l1om to targ_extra_libpath for
718 * emulparams/elf_l1om.sh: Remove duplicates.
720 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
722 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
723 GENERATE_SHLIB_SCRIPT): New defines.
724 (TEXT_START_ADDR): Define differently depending on target.
725 (.got): Redefine to include "*(.dsbt)".
726 (SDATA_START_SYMBOLS): Remove, replace with
727 (OTHER_GOT_SYMBOLS): New.
728 (OTHER_BSS_SECTIONS): Define only for ELF targets.
729 * emultempl/tic6xdsbt.em: New file.
730 * gen-doc.texi: Set C6X.
731 * ld.texinfo: Likewise.
732 (Options specific to C6X uClinux targets): New section.
734 2011-03-29 Alan Modra <amodra@gmail.com>
737 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
739 2011-03-26 John Marino <binutils@marino.st>
741 * configure.host: Update *-*-dragonfly* host entry.
742 * configure.tgt: Update *-*-dragonfly* target entry.
743 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
745 2011-03-28 Joseph Myers <joseph@codesourcery.com>
747 * configure.in: Check for windows.h, not Windows.h.
748 * configure: Regenerate.
749 * plugin.c: Include windows.h, not Windows.h.
751 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
753 * Makefile.in: Regenerate.
755 2011-03-23 Joseph Myers <joseph@codesourcery.com>
757 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
758 are enabled. Mark level as possibly unused.
760 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
762 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
763 (eavrxmega?.c): Likewise.
764 * configure.tgt (targ_extra_emuls): Likewise.
765 * emulparams/avrxmega1.sh: New file.
766 * emulparams/avrxmega2.sh: Likewise.
767 * emulparams/avrxmega3.sh: Likewise.
768 * emulparams/avrxmega4.sh: Likewise.
769 * emulparams/avrxmega5.sh: Likewise.
770 * emulparams/avrxmega6.sh: Likewise.
771 * emulparams/avrxmega7.sh: Likewise.
772 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
773 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
775 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
777 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
779 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
781 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
784 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
786 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
787 instead of dynamic_sections_created.
789 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
791 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
793 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
795 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
797 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
799 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
800 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
801 * ldmain.c (add_archive_element): Set it if the member is claimed.
802 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
803 (find_replacements_insert_point): New helper function.
804 (lang_process): After adding and opening replacement files passed
805 from plugin, splice them into correct place in statement list and
806 file chains to preserve critical link order.
807 (lang_list_insert_after): New helper function.
808 (lang_list_remove_tail): Likewise.
810 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
812 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
813 (IRONLY_SUFFIX_LEN): Delete.
814 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
815 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
816 enclosing lang input statement instead.
818 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
820 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
821 alignment of input sections when creating orphan output sections
822 during relocatable link.
823 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
825 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
827 * ld.texinfo: Document --verbose[=NUMBER].
829 * lexsup.c (ld_options): Update --verbose.
830 (parse_args): Set report_plugin_symbols.
832 * plugin.c (report_plugin_symbols): New.
833 (get_symbols): Report plugin symbols if report_plugin_symbols
836 * plugin.h (report_plugin_symbols): New.
838 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
841 * testplug.c: Don't include "filenames.h".
842 (onclaim_file): Don't use filename_cmp.
844 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
846 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
847 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
849 (gld${EMULATION_NAME}_stat_needed): Likewise.
850 (gld${EMULATION_NAME}_check_needed): Likewise.
851 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
852 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
853 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
854 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
855 * ldfile.c (ldfile_open_file): Likewise.
856 * ldlang.c (wild_sort): Likewise.
857 (lookup_name): Likewise.
858 (check_excluded_libs): Likewise.
859 * ldmisc.c (vfinfo): Likewise.
860 * pe-dll.c (libnamencmp): Likewise.
861 (auto_export): Likewise.
862 (pe_dll_generate_implib): Likewise.
863 * testplug.c (onclaim_file): Likewise.
865 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
868 * plugin.c (get_symbols): Don't check entry symbol here.
869 (init_non_ironly_hash): Add entry_symbol chain into
872 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
875 * plugin.c (get_symbols): Don't mark entry symbol IR only.
877 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
880 emulparams/hppalinux.sh (DATA_ADDR): Define.
881 (SHLIB_DATA_ADDR): Likewise.
883 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
885 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
888 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
890 * pe-dll.c (process_def_file_and_drectve): Don't strip
891 leading underscore from symbol by calling bfd_find_version_for_sym.
893 2011-02-14 Mike Frysinger <vapier@gentoo.org>
895 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
896 the bfd_demangle of sym, change users of sym to c_sym when not
897 already demangling, and free when done. Change callers of
898 cplus_demangle to bfd_demangle.
900 2011-02-14 Alan Modra <amodra@gmail.com>
902 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
903 .text section, use newer bfd_make_section variant. Error handling.
904 Correct setting of gp size.
905 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
906 (message): Likewise for ACONCAT.
907 (get_symbols): Formatting.
909 2011-02-14 Alan Modra <amodra@gmail.com>
911 * ldmain.c (remove_output): Rename to..
912 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
914 * plugin.c (plugin_call_cleanup): Make global.
915 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
916 * plugin.h (plugin_call_cleanup): Declare.
918 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
920 * configure: Regenerate.
922 2011-02-10 Alan Modra <amodra@gmail.com>
924 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
925 * scripttempl/avr.sc: Likewise.
926 * scripttempl/elf32cr16.sc: Likewise.
927 * scripttempl/elf32crx.sc: Likewise.
928 * scripttempl/elf32msp430.sc: Likewise.
929 * scripttempl/elf32msp430_3.sc: Likewise.
930 * scripttempl/elf32sh-symbian.sc: Likewise.
931 * scripttempl/elf64hppa.sc: Likewise.
932 * scripttempl/elf_chaos.sc: Likewise.
933 * scripttempl/elfd10v.sc: Likewise.
934 * scripttempl/elfd30v.sc: Likewise.
935 * scripttempl/elfi370.sc: Likewise.
936 * scripttempl/elfm68hc11.sc: Likewise.
937 * scripttempl/elfm68hc12.sc: Likewise.
938 * scripttempl/elfxtensa.sc: Likewise.
939 * scripttempl/ip2k.sc: Likewise.
940 * scripttempl/iq2000.sc: Likewise.
941 * scripttempl/mep.sc: Likewise.
942 * scripttempl/mmo.sc: Likewise.
943 * scripttempl/v850.sc: Likewise.
944 * scripttempl/xstormy16.sc: Likewise.
945 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
947 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
949 * Makefile.am (CXX): Removed.
951 * configure.in: Add AC_PROG_CXX.
953 * Makefile.in: Regenerated.
954 * configure: Likewise.
956 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
958 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
959 private data and GP size.
961 2011-01-21 Alan Modra <amodra@gmail.com>
963 * ldexp.c (fold_binary): Set result section for arithmetic and
964 logical operations to NULL when both operands are in same section.
965 * ld.texinfo (Expression Section): Describe this.
967 2011-01-14 Alan Modra <amodra@gmail.com>
969 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
970 attempt to put non-alloc orphans before debug sections, just place
973 2011-01-14 J. Park <grassman@gmail.com>
976 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
978 2011-01-14 Alan Modra <amodra@gmail.com>
980 * Makefile.am: Sort emulation rules.
981 (eelf32am33lin.c): Delete.
982 (ALL_EMULATION_SOURCES): Sort, add missing entries.
983 (ALL_64_EMULATION_SOURCES): Likewise.
984 * Makefile.in: Regenerate.
986 2011-01-13 Alan Modra <amodra@gmail.com>
989 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
990 (Expression Section): Update.
991 * ld.h (ld_config_type): Add sane_expr.
992 * ldgram.y (ifile_p1): Add LD_FEATURE.
993 * ldlex.l (LD_FEATYRE): New.
994 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
995 * ldexp.h (struct ldexp_control): Delete uses_defined.
996 * ldexp.c: Remove all uses of uses_defined.
997 (fold_name): Test config.sane_expr rather than ld_compatibility.
998 (exp_fold_tree_1): Likewise. Adjust handling of assignments
1000 * ldlang.h (ld_compatibility): Delete.
1001 (lang_ld_feature): Declare.
1002 * ldlang.c (ld_compatibility): Delete.
1003 (open_input_bfds): Only handle assignments for --defsym.
1004 (lang_ld_feature): New function.
1007 * ldexp.h (exp_assop): Delete.
1008 (exp_assign, exp_defsym): Declare.
1009 * ldexp.c (exp_assop): Make static, handle all assignment variations.
1010 (exp_assign, exp_defsym): New functions.
1011 (exp_provide): Use exp_assop.
1012 * ldgram.y (defsym_expr): Use exp_defsym.
1013 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
1014 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
1015 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
1017 2011-01-12 Alan Modra <amodra@gmail.com>
1020 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
1021 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
1022 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
1023 to detect when we've finished sizing sections.
1024 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
1025 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
1026 that we are not inside an output section statement.
1027 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
1028 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
1029 lang_final_phase_enum here.
1030 (lang_process): Set lang_final_phase_enum here.
1032 2011-01-10 Nick Clifton <nickc@redhat.com>
1034 * po/da.po: Updated Danish translation.
1036 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1038 * ldlang.c (startup_file): Removed.
1039 (lang_startup): Updated.
1041 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
1044 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
1045 before accessing its flags field.
1047 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
1049 * ldver.c (ldversion): Update copyright to 2011.
1051 For older changes see ChangeLog-2010
1057 version-control: never