1 2011-12-13 Nick Clifton <nickc@redhat.com>
3 * po/it.po: New Italian translation.
4 * configure.in (ALL_LINGUAS): Add it.
5 * configure: Regenerate.
7 2011-12-01 Nick Clifton <nickc@redhat.com>
9 * emultempl/spuelf.em (spu_elf_relink): Use pex_one in place
12 2011-11-25 John Tytgat <john@bass-software.com>
14 * emultempl/armelf.em: Update copyright to 2010 and 2011.
15 (PARSE_AND_LIST_OPTIONS): Fix formatting.
17 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
19 * Makefile.am (ALL_64_EMULATION_SOURCES): Add powerpc64-*-freebsd
21 (eelf64ppc_fbsd.c): Add rules to build this file.
22 * Makefile.in: Regenerate.
23 * configure.tgt: Add target definition for powerpc64-*-freebsd*.
24 Adjust powerpc-*-freebsd*.
25 * emultempl/ppc64elf.em: Add a mechanism to override the default
26 value of 0 for plt_static_chain.
27 * emulparams/elf32ppc_fbsd.sh (OUTPUT_FORMAT): Override the default.
28 * emulparams/elf64ppc_fbsd.sh (OUTPUT_FORMAT): Likewise.
29 (DEFAULT_PLT_STATIC_CHAIN): Define to 1.
31 2011-11-15 Andreas Schwab <schwab@linux-m68k.org>
33 * ldlang.c (insert_pad): Change alignment_needed argument to
35 (size_input_section): Change alignment_needed varible to
37 * ldlang.h (lang_padding_statement_type): Change size field to
40 2011-11-03 Tristan Gingold <gingold@adacore.com>
42 * scripttempl/aix.sc: Consider header size for .text and .data
45 2011-11-02 Tristan Gingold <gingold@adacore.com>
47 * emultempl/aix.em (read_file_list): New function.
48 (_handle_option): Handle '-f'.
49 * NEWS: Mention this feature.
51 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
53 * configure.tgt (x86_64-*-solaris2*): Use $targ_extra_emuls for
56 2011-11-01 DJ Delorie <dj@redhat.com>
58 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32rl78.c.
59 (+eelf32rl78.c): New rule.
60 * Makefile.in: Regenerate.
61 * configure.tgt: Add rl78-*-* case.
62 * emulparams/elf32rl78.sh: New file.
63 * NEWS: Mention addition of Renesas RL78 support.
65 2011-10-28 Walter Lee <walt@tilera.com>
67 * NEWS: Fix TILEPro capitalization.
69 2011-10-25 Joern Rennecke <joern.rennecke@embecosm.com>
71 * NEWS: Mention addition of Adapteva Epiphany support.
72 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32epiphany.c .
73 (eelf32epiphany.c): New rule.
74 * configure.tgt: Handle epiphany-*-elf.
75 * emulparams/elf32epiphany.sh: New file.
76 * Makefile.in: Regenerate.
77 * po/ld.pot: Regenerate.
79 2011-10-24 Nick Clifton <nickc@redhat.com>
81 * po/ja.po: Updated Japanese translation.
83 2011-10-20 Alan Modra <amodra@gmail.com>
86 * plugin.c (plugin_should_reload): New function.
87 * plugin.h (plugin_should_reload): Declare.
88 * ldlang.c (open_input_bfds): Use above function.
90 2011-10-19 Alan Modra <amodra@gmail.com>
93 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
94 -z text, -z notext, -z textoff options for all targets having
97 2011-10-15 Alan Modra <amodra@gmail.com>
99 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Remove toc check.
101 2011-10-13 Dave Korn <dave.korn.cygwin@gmail.com>
103 * pe-dll.c (generate_reloc): Don't emit a base reloc for an
104 underlying BFD reloc that will be discarded in eh_frame data.
106 2011-10-10 Nick Clifton <nickc@redhat.com>
108 * po/bg.po: Updated Bulgarian translation.
109 * po/es.po: Updated Spanish translation.
110 * po/fi.po: Updated Finnish translation.
111 * po/fr.po: Updated French translation.
113 2011-10-10 Alan Modra <amodra@gmail.com>
115 * ldmain.c (main): Move code twiddling various config and link_info
117 * lexsup.c (parse_args): ..here. Move plugin_load_plugins call
119 * plugin.c (set_tv_header): Test link_info.executable, not
121 (is_visible_from_outside): Likewise. Delete redundant
122 is_ir_dummy_bfd check and "section" parameter.
124 2011-10-10 Alan Modra <amodra@gmail.com>
126 * emultempl/ppc64elf.em (ppc_add_stub_section): Align to 32 bytes.
128 2011-10-09 Alan Modra <amodra@gmail.com>
130 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Add
131 missing colon to error message.
132 (ppc_before_allocation): Likewise.
134 2011-10-06 Alan Modra <amodra@gmail.com>
137 * plugin.c (tv_header_tags): Add LDPT_GET_SYMBOLS_V2.
138 (set_tv_header): Handle it. Adjust LDPT_GET_SYMBOLS. Return void.
139 (get_symbols): Add def_ironly_exp param. Return that value for
140 syms exported from shared libs.
141 (get_symbols_v1, get_symbols_v2): New wrapper functions.
142 * testplug.c: Update for above changes.
144 2011-09-27 Kai Tietz <ktietz@redhat.com>
146 * scripttempl/pe.sc (.text): Add support for
147 .gnu.linkonce.t.* section.
148 (.debug_info): Only use .gnu.linkonce.wi.* for
150 * scripttempl/pep.sc: Likewise.
152 2011-09-22 Tristan Gingold <gingold@adacore.com>
154 * NEWS: Add marker for 2.22.
156 2011-09-20 Alan Modra <amodra@gmail.com>
159 * ldlang.h (lang_input_statement_type): Add "reload" bitfield.
161 * ldlang.c (new_afile): Init new field.
162 (load_symbols): Don't call ldlang_add_file when reloading.
163 (open_input_bfds): Reload as-needed libs during plugin rescan.
165 2011-09-15 H.J. Lu <hongjiu.lu@intel.com>
168 * ldlang.c (lang_elf_version_info): Removed.
169 (lang_register_vers_node): Replace lang_elf_version_info with
170 link_info.version_info.
171 (lang_add_vers_depend): Likewise.
172 * pe-dll.c (process_def_file_and_drectve): Likewise.
173 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
175 * ldlang.h (lang_elf_version_info): Removed.
177 * plugin.c (is_visible_from_outside): Check if symbol is hidden
180 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
181 Remove lang_elf_version_info.
183 2011-09-15 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
186 * ldmain.c (add_archive_element): Support thin archive member
189 2011-08-26 Nick Clifton <nickc@redhat.com>
191 * po/es.po: Updated Spanish translation.
193 2011-08-26 Nick Clifton <nickc@redhat.com>
195 * NEWS: Mention that --no-copy-dt-needed-entries is now the
198 2011-08-22 Michael Matz <matz@suse.de>
200 * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
201 * ld.texinfo (--copy-dt-needed-entries): Mention new default.
203 2011-08-17 Alan Modra <amodra@gmail.com>
206 * ldlang.c (section_already_linked): Revert 2011-07-09 changes.
207 * plugin.c: Likewise.
208 (asymbol_from_plugin_symbol): Create linkonce section for syms
211 2011-08-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
213 * emultempl/armelf.em (fix_arm1176): New variable.
214 (arm_elf_create_output_section_statements): Pass
215 fix_arm1176 option to bfd backend.
216 (OPTION_FIX_ARM1176): New define.
217 (OPTION_NO_FIX_ARM1176): Likewise.
218 (PARSE_AND_LIST_LONGOPTS): Add new command line options.
219 (PARSE_AND_LIST_OPTIONS): Likewise.
220 (PARSE_AND_LIST_ARGS_CASES): Likewise.
221 * ld.texinfo: Document new command line options.
223 2011-08-09 Alan Modra <amodra@gmail.com>
226 * plugin.c (add_symbols): Revert 2011-08-05.
228 2011-08-06 Kai Tietz <ktietz@redhat.com>
230 * scripttempl/pep.sc: Add .debug_macro section.
231 * scripttempl/pe.sc: Likewise.
233 2011-08-05 Alan Modra <amodra@gmail.com>
236 * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
237 table if already seen.
239 2011-08-04 H.J. Lu <hongjiu.lu@intel.com>
241 * ldmain.c (main): Replace remove_output with ld_cleanup in
244 2011-07-26 Alan Modra <amodra@gmail.com>
246 * emulparams/elf32ppc.sh: Source plt_unwind.sh.
247 * emulparams/elf64ppc.sh: Likewise.
248 * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
249 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
250 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
252 * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
253 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
254 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
257 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
259 * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
262 (eelf_k1om_fbsd.c): Likewise.
263 * Makefile.in: Regenerated.
265 * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
266 is supported. Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
267 (targ_extra_emuls): Likewise.
269 * emulparams/elf_k1om.sh: New.
270 * emulparams/elf_k1om_fbsd.sh: Likewise.
272 2011-07-16 Roland McGrath <roland@hack.frob.com>
274 * ld.h (args_type): New field print_output_format.
275 * lexsup.c (enum option_values, ld_options, parse_args):
276 Handle --print-output-format.
277 * ldmain.c (main): Implement --print-output-format.
278 * ld.texinfo (Options): Document it.
280 * ldlang.c (lang_get_output_target): Don't return current_target
283 2011-07-15 Alan Modra <amodra@gmail.com>
285 * Makefile.am (e*.c): Sort.
286 * Makefile.in: Regenerate.
288 2011-07-14 Alan Modra <amodra@gmail.com>
290 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
291 gld${EMULATION_NAME}_list_options): Don't condition -z relro
292 and -z norelro on COMMONPAGESIZE being defined.
294 2011-07-14 Alan Modra <amodra@gmail.com>
296 * emultempl/ppc64elf.em (plt_static_chain): New var.
297 (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
298 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
299 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
300 --plt-static-chain and --no-plt-static-chain.
302 2011-07-14 Alan Modra <amodra@gmail.com>
304 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
305 gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
306 Provide --build-id, -z defs, -z muldefs, -z max-page-size,
307 -z common-page-size, -z execstack, -z noexecstack for all targets.
308 Add help for --exclude-libs.
309 (OPTION_LD_GENERATED_UNWIND_INFO,
310 OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
311 (gld${EMULATION_NAME}_handle_option): ..and code handling
312 --ld-generated-unwind-info and --no-ld-generated-unwind-info..
313 * emulparams/plt_unwind.sh: ..to here. New file. Add help.
314 * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
315 * emulparams/elf_i386.sh: Likewise.
316 * emulparams/elf_i386_chaos.sh: Likewise.
317 * emulparams/elf_i386_ldso.sh: Likewise.
318 * emulparams/elf_l1om.sh: Likewise.
319 * emulparams/elf_x86_64.sh: Likewise.
321 2011-07-11 Catherine Moore <clm@codesourcery.com>
323 * ld.h (section_flag_list): Add field to struct wildcard_spec.
324 * ld.texinfo (INPUT_SECTION_FLAGS): Document.
325 * ldgram.y (flag_info_list, flag_info): Add to union.
326 (INPUT_SECTION_FLAGS): New token.
327 (wildcard_spec): Initialize section_flag_list to NULL for
329 (sect_flag_list, sect_flags): New rules.
330 (input_section_spec_no_keep): Add alternatives to recognize
332 * ldlang.c (walk_wild_consider_section): Initialize
333 section_flag_info field of the section struct.
334 (lang_add_section): Check input section flags.
335 (lang_add_wild): Initialize section_flag_list field of
336 the statement struct.
337 * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
338 (lang_wild_statement_struct): Likewise.
339 * ldlex.l (INPUT_SECTION_FLAGS): New token.
340 * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
341 * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
343 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
346 * ldlang.c (section_already_linked): Pass "struct already_linked *"
347 to bfd_section_already_linked.
348 (lang_process): Set link_info.loading_lto_outputs before
350 * plugin.c: Include "libbfd.h".
351 (add_symbols): Call bfd_section_already_linked with comdat_key.
353 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
355 * configure.tgt: Revert x32 change.
357 2011-06-20 Jakub Jelinek <jakub@redhat.com>
360 * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
361 OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
362 (gld${EMULATION_NAME}_handle_option): Handle
363 --ld-generated-unwind-info and --no-ld-generated-unwind-info.
364 * ld.texinfo (--ld-generated-unwind-info,
365 --no-ld-generated-unwind-info): Document.
367 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
369 * configure.tgt: Support x32.
371 2011-06-15 Nick Clifton <nickc@redhat.com>
373 * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
375 2011-06-13 Walter Lee <walt@tilera.com>
377 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
379 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
380 (eelf32tilegx.c): New target.
381 (eelf32tilepro.c): Likewise.
382 (eelf64tilegx.c): Likewise.
383 * Makefile.in: Regenerate.
384 * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
385 * emulparams/elf32tilegx.sh: New file.
386 * emulparams/elf64tilegx.sh: New file.
387 * emulparams/elf32tilepro.sh: New file.
389 2011-06-13 Alan Modra <amodra@gmail.com>
391 * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
392 warning symbols here.
393 * emultempl/pe.em (pr_sym): Remove redundant test.
394 * emultempl/pep.em (pr_sym): Likewise.
396 2011-06-09 Nick Clifton <nickc@redhat.com>
399 * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
400 for sections that have been removed by garbage collection.
402 2011-06-08 Alan Modra <amodra@gmail.com>
404 * ldlang.c (lang_one_common): Handle warning symbols.
406 2011-06-07 Nick Clifton <nickc@redhat.com>
408 * configure.tgt: Accept any V850 architecture.
410 2011-06-03 Nick Clifton <nickc@redhat.com>
412 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
413 Add rule to build eelf32am33lin.c
414 * Makefile.in: Regenerate.
416 2011-06-02 Nick Clifton <nickc@redhat.com>
418 * lexsup.c: Fix spelling mistake in comment.
419 * scripttempl/epocpe.sc: Likewise.
420 * scripttempl/i386beos.sc: Likewise.
421 * scripttempl/mcorepe.sc: Likewise.
422 * scripttempl/pe.sc: Likewise.
423 * scripttempl/pep.sc: Likewise.
424 * po/ld.pot: Regenerate.
426 2011-05-27 Nick Clifton <nickc@redhat.com>
428 * scripttempl/v850.sc (_heap_start): Provide.
430 2011-05-23 Alan Modra <amodra@gmail.com>
432 * ldmisc.c (vfinfo): Add %H.
433 * ldmain.c (reloc_overflow): Use %H rather than %C.
434 (reloc_dangerous, unattached_reloc): Likewise.
436 2011-05-23 Alan Modra <amodra@gmail.com>
439 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
440 like sections to existing .sdata2, and similarly for orphan TLS
442 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
444 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
447 * emultempl/rxelf.em (ignore_lma): New variable.
448 (rx_elf_create_output_section_statements): Pass the setiing of
449 ignore_lma to bfd_elf32_rx_set_target_flags.
450 (OPTION_IGNORE_LMA): Define.
451 (OPTION_NO_IGNORE_LMA): Define.
452 (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
453 (PARSE_AND_LIST_OPTIONS): Add ignore lma.
454 (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
456 2011-05-17 Alan Modra <amodra@gmail.com>
459 * ldmain.c (notice): Add "flags" and "string" param.
460 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
461 and constructor syms.
463 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
465 * ldlang.c (print_assignment): Use the symbol's section if we
467 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
468 comment on copying symbol type.
470 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
473 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
476 2011-05-16 Alan Modra <amodra@gmail.com>
478 * ldlang.c (lang_leave_output_section_statement): Don't copy
479 previous lma_region if given address.
481 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
483 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
484 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
485 * Makefile.am (ALL_EMULATIONS): Add these files.
486 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
487 * Makefile.in: Regenerated.
488 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
490 * emulparams/elf32_tic6x_elf_be.sh: New file.
491 * emulparams/elf32_tic6x_elf_le.sh: New file.
492 * emulparams/elf32_tic6x_linux_be.sh: New file.
493 * emulparams/elf32_tic6x_linux_le.sh: New file.
494 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
495 (tic6x-*-*): Replaced by these.
497 2011-05-13 Jan Beulich <jbeulich@novell.com>
499 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
501 2011-05-09 Paul Brook <paul@codesourcery.com>
503 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
504 (compare_output_sec_vma): New function.
505 (gld${EMULATION_NAME}_after_allocation): New function.
506 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
507 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
508 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
509 (LDEMUL_AFTER_ALLOCATION): Set.
510 * ld.texinfo: Document c6x --no-merge-exidx-entries.
512 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
515 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
516 (__rt_psrelocs_end): Likewise.
517 (__rt_psrelocs_size): Likewise difference between the above.
518 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
519 immediately after end of pseudo-reloc data.
520 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
521 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
522 calculate backward from list end.
523 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
524 * scripttempl/pep.sc: Likewise.
526 2011-05-06 Tristan Gingold <gingold@adacore.com>
528 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
530 2011-05-04 Tristan Gingold <gingold@adacore.com>
532 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
533 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
534 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
535 (gld${EMULATION_NAME}_add_options): New function.
536 (gld${EMULATION_NAME}_list_options): Ditto.
537 (gld${EMULATION_NAME}_handle_option): Ditto.
538 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
539 (LDEMUL_LIST_OPTIONS): Define.
541 2011-05-04 Alan Modra <amodra@gmail.com>
544 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
545 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
546 assign to dot when lang_assigning_phase_enum.
547 * ldlang.h (lang_do_assignments): Update prototype.
548 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
550 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
551 lang_do_assignments calls.
553 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
556 * emultempl/pe.em (_after_open): Correctly check whether symbol is
559 2011-04-26 Kai Tietz <ktietz@redhat.com>
561 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
562 * scripttempl/pep.sc: Likewise.
564 2011-04-24 Alan Modra <amodra@gmail.com>
568 * ldmain.c (notice): Delete "name" param, add "h".
569 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
570 redefinitions of IR symbols in real BFDs.
571 (plugin_multiple_definition, plugin_multiple_common): Delete.
572 (non_ironly_hash, init_non_ironly_hash): Delete.
573 (is_visible_from_outside): Traverse entry_symbol chain.
574 (get_symbols): Use non_ir_ref flag rather than hash lookup.
576 2011-04-21 Tristan Gingold <gingold@adacore.com>
578 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
580 2011-04-20 Tristan Gingold <gingold@adacore.com>
582 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
584 2011-04-20 Alan Modra <amodra@gmail.com>
586 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
588 2011-04-20 Alan Modra <amodra@gmail.com>
591 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
593 * ldmain.c (add_archive_element): ..and similar code here..
594 * plugin.c (plugin_maybe_claim): ..to here. New function.
595 (plugin_call_claim_file): Make static.
596 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
597 (plugin_multiple_common): New function.
598 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
599 * plugin.h (plugin_call_claim_file): Don't declare.
600 (plugin_maybe_claim): Declare.
602 2011-04-20 Alan Modra <amodra@gmail.com>
605 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
606 pointer arg rather than "name", "obfd", "osec", "oval". Add code
607 removed from linker.c. Hack around xcofflink.c oddity in
609 (multiple_common): Similarly.
610 * plugin.c (orig_allow_multiple_defs): Delete.
611 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
612 (plugin_multiple_definition): Update.
614 2011-04-18 Kai Tietz <ktietz@redhat.com>
616 * deffilep.y (def_aligncomm): Avoid duplets.
618 * deffilep.y (def_pool_str): New type.
619 (pool_strs): Local static.
620 (def_pool_alloc): Local function.
621 (def_pool_strdup): Likewise.
622 (def_pool_free): Likewise.
623 (opt_name): Replace xmalloc/xstrdup by
624 def_pool_alloc/def_pool_strdup.
625 (dot_name): Likewise.
626 (anylang_id): Likewise.
628 (def_file_parse): Call def_pool_free on
629 exit and cleanup directives elements.
630 (def_file_add_directive): Call def_pool_free.
632 2011-04-18 Paul Brook <paul@codesourcery.com>
634 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
635 for unwinding tables.
637 2011-04-18 Alan Modra <amodra@gmail.com>
641 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
642 when no_more_claiming.
643 * ldmain.c (add_archive_element): Likewise.
644 (multiple_definition): Remove plugin_multiple_definition call.
645 (notice): Remove plugin_notice call.
646 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
648 (plugin_insert): New static var.
649 (open_input_bfds): Only rescan libs after plugin insert point.
650 (lang_gc_sections): Omit plugin claimed files.
651 (lang_process): Set plugin_insert. Only rescan when plugin adds
653 * plugin.h (no_more_claiming): Declare.
654 (plugin_notice, plugin_multiple_definition): Don't declare.
655 * plugin.c: Formatting.
656 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
657 plugin_callbacks): New static vars.
658 (no_more_claiming): Make global.
659 (plugin_cached_allow_multiple_defs): Delete.
660 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
661 use newer bfd_make_section variant. Make COMMON section too.
662 Error handling. Correct setting of gp size.
663 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
664 (message): Likewise for ACONCAT.
665 (asymbol_from_plugin_symbol): Use our COMMON section.
666 (get_symbols): When report_plugin_symbols, show visibility too.
667 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
668 (plugin_load_plugins): Save state of linker callbacks, set up to
669 call plugin_notice instead. Call init_non_ironly_hash here.
670 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
672 (plugin_notice): Rewrite.
673 (plugin_multiple_definition): Make static, call original callback.
675 2011-04-15 Alan Modra <amodra@gmail.com>
678 * ldlang.c (enum open_bfd_mode): New.
679 (open_input_bfds): Replace "force" param with "mode". Reload
680 archives for rescan. Update all callers.
681 (lang_process): Make another open_input_bfds pass for plugins.
683 2011-04-13 Kai Tietz <ktietz@redhat.com>
686 * deffile.h (def_file_add_export): Add is_dup argument.
687 (def_file_add_import): Likewise.
688 * deffilep.y (are_names_equal): New helper.
689 (cmp_export_elem): New helper.
690 (find_export_in_list): Add search routine for exports.
691 (def_file_add_export): Check for duplicates.
692 (cmp_import_elem): New helper.
693 (find_import_in_list): Add search routine for imports.
694 (def_file_add_import): Check for duplicates.
695 (def_exports): Handle duplicates.
696 (def_imports): Likewise.
697 * pe-dll.c (process_def_file_and_drectve): Likewise.
698 (pe_implied_import_dll): Likewise.
700 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
702 * scripttempl/elf.sc (.exception_ranges): Add new section.
704 2011-04-08 Hector Oron <hector.oron@gmail.com>
707 * configure.tgt: Add support for arm-*-gnueabihf targets.
709 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
711 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
713 2011-04-07 Joseph Myers <joseph@codesourcery.com>
715 * configure.tgt: Remove stray ;;.
717 2011-04-06 Joseph Myers <joseph@codesourcery.com>
719 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
720 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
721 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
722 xscale-*-coff, xscale-*-elf): Remove targets.
724 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
726 * configure.tgt: Add elf_l1om to targ_extra_libpath for
729 * emulparams/elf_l1om.sh: Remove duplicates.
731 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
733 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
734 GENERATE_SHLIB_SCRIPT): New defines.
735 (TEXT_START_ADDR): Define differently depending on target.
736 (.got): Redefine to include "*(.dsbt)".
737 (SDATA_START_SYMBOLS): Remove, replace with
738 (OTHER_GOT_SYMBOLS): New.
739 (OTHER_BSS_SECTIONS): Define only for ELF targets.
740 * emultempl/tic6xdsbt.em: New file.
741 * gen-doc.texi: Set C6X.
742 * ld.texinfo: Likewise.
743 (Options specific to C6X uClinux targets): New section.
745 2011-03-29 Alan Modra <amodra@gmail.com>
748 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
750 2011-03-26 John Marino <binutils@marino.st>
752 * configure.host: Update *-*-dragonfly* host entry.
753 * configure.tgt: Update *-*-dragonfly* target entry.
754 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
756 2011-03-28 Joseph Myers <joseph@codesourcery.com>
758 * configure.in: Check for windows.h, not Windows.h.
759 * configure: Regenerate.
760 * plugin.c: Include windows.h, not Windows.h.
762 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
764 * Makefile.in: Regenerate.
766 2011-03-23 Joseph Myers <joseph@codesourcery.com>
768 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
769 are enabled. Mark level as possibly unused.
771 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
773 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
774 (eavrxmega?.c): Likewise.
775 * configure.tgt (targ_extra_emuls): Likewise.
776 * emulparams/avrxmega1.sh: New file.
777 * emulparams/avrxmega2.sh: Likewise.
778 * emulparams/avrxmega3.sh: Likewise.
779 * emulparams/avrxmega4.sh: Likewise.
780 * emulparams/avrxmega5.sh: Likewise.
781 * emulparams/avrxmega6.sh: Likewise.
782 * emulparams/avrxmega7.sh: Likewise.
783 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
784 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
786 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
788 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
790 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
792 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
795 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
797 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
798 instead of dynamic_sections_created.
800 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
802 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
804 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
806 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
808 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
810 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
811 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
812 * ldmain.c (add_archive_element): Set it if the member is claimed.
813 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
814 (find_replacements_insert_point): New helper function.
815 (lang_process): After adding and opening replacement files passed
816 from plugin, splice them into correct place in statement list and
817 file chains to preserve critical link order.
818 (lang_list_insert_after): New helper function.
819 (lang_list_remove_tail): Likewise.
821 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
823 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
824 (IRONLY_SUFFIX_LEN): Delete.
825 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
826 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
827 enclosing lang input statement instead.
829 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
831 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
832 alignment of input sections when creating orphan output sections
833 during relocatable link.
834 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
836 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
838 * ld.texinfo: Document --verbose[=NUMBER].
840 * lexsup.c (ld_options): Update --verbose.
841 (parse_args): Set report_plugin_symbols.
843 * plugin.c (report_plugin_symbols): New.
844 (get_symbols): Report plugin symbols if report_plugin_symbols
847 * plugin.h (report_plugin_symbols): New.
849 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
852 * testplug.c: Don't include "filenames.h".
853 (onclaim_file): Don't use filename_cmp.
855 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
857 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
858 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
860 (gld${EMULATION_NAME}_stat_needed): Likewise.
861 (gld${EMULATION_NAME}_check_needed): Likewise.
862 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
863 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
864 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
865 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
866 * ldfile.c (ldfile_open_file): Likewise.
867 * ldlang.c (wild_sort): Likewise.
868 (lookup_name): Likewise.
869 (check_excluded_libs): Likewise.
870 * ldmisc.c (vfinfo): Likewise.
871 * pe-dll.c (libnamencmp): Likewise.
872 (auto_export): Likewise.
873 (pe_dll_generate_implib): Likewise.
874 * testplug.c (onclaim_file): Likewise.
876 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
879 * plugin.c (get_symbols): Don't check entry symbol here.
880 (init_non_ironly_hash): Add entry_symbol chain into
883 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
886 * plugin.c (get_symbols): Don't mark entry symbol IR only.
888 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
891 emulparams/hppalinux.sh (DATA_ADDR): Define.
892 (SHLIB_DATA_ADDR): Likewise.
894 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
896 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
899 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
901 * pe-dll.c (process_def_file_and_drectve): Don't strip
902 leading underscore from symbol by calling bfd_find_version_for_sym.
904 2011-02-14 Mike Frysinger <vapier@gentoo.org>
906 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
907 the bfd_demangle of sym, change users of sym to c_sym when not
908 already demangling, and free when done. Change callers of
909 cplus_demangle to bfd_demangle.
911 2011-02-14 Alan Modra <amodra@gmail.com>
913 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
914 .text section, use newer bfd_make_section variant. Error handling.
915 Correct setting of gp size.
916 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
917 (message): Likewise for ACONCAT.
918 (get_symbols): Formatting.
920 2011-02-14 Alan Modra <amodra@gmail.com>
922 * ldmain.c (remove_output): Rename to..
923 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
925 * plugin.c (plugin_call_cleanup): Make global.
926 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
927 * plugin.h (plugin_call_cleanup): Declare.
929 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
931 * configure: Regenerate.
933 2011-02-10 Alan Modra <amodra@gmail.com>
935 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
936 * scripttempl/avr.sc: Likewise.
937 * scripttempl/elf32cr16.sc: Likewise.
938 * scripttempl/elf32crx.sc: Likewise.
939 * scripttempl/elf32msp430.sc: Likewise.
940 * scripttempl/elf32msp430_3.sc: Likewise.
941 * scripttempl/elf32sh-symbian.sc: Likewise.
942 * scripttempl/elf64hppa.sc: Likewise.
943 * scripttempl/elf_chaos.sc: Likewise.
944 * scripttempl/elfd10v.sc: Likewise.
945 * scripttempl/elfd30v.sc: Likewise.
946 * scripttempl/elfi370.sc: Likewise.
947 * scripttempl/elfm68hc11.sc: Likewise.
948 * scripttempl/elfm68hc12.sc: Likewise.
949 * scripttempl/elfxtensa.sc: Likewise.
950 * scripttempl/ip2k.sc: Likewise.
951 * scripttempl/iq2000.sc: Likewise.
952 * scripttempl/mep.sc: Likewise.
953 * scripttempl/mmo.sc: Likewise.
954 * scripttempl/v850.sc: Likewise.
955 * scripttempl/xstormy16.sc: Likewise.
956 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
958 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
960 * Makefile.am (CXX): Removed.
962 * configure.in: Add AC_PROG_CXX.
964 * Makefile.in: Regenerated.
965 * configure: Likewise.
967 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
969 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
970 private data and GP size.
972 2011-01-21 Alan Modra <amodra@gmail.com>
974 * ldexp.c (fold_binary): Set result section for arithmetic and
975 logical operations to NULL when both operands are in same section.
976 * ld.texinfo (Expression Section): Describe this.
978 2011-01-14 Alan Modra <amodra@gmail.com>
980 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
981 attempt to put non-alloc orphans before debug sections, just place
984 2011-01-14 J. Park <grassman@gmail.com>
987 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
989 2011-01-14 Alan Modra <amodra@gmail.com>
991 * Makefile.am: Sort emulation rules.
992 (eelf32am33lin.c): Delete.
993 (ALL_EMULATION_SOURCES): Sort, add missing entries.
994 (ALL_64_EMULATION_SOURCES): Likewise.
995 * Makefile.in: Regenerate.
997 2011-01-13 Alan Modra <amodra@gmail.com>
1000 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
1001 (Expression Section): Update.
1002 * ld.h (ld_config_type): Add sane_expr.
1003 * ldgram.y (ifile_p1): Add LD_FEATURE.
1004 * ldlex.l (LD_FEATYRE): New.
1005 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
1006 * ldexp.h (struct ldexp_control): Delete uses_defined.
1007 * ldexp.c: Remove all uses of uses_defined.
1008 (fold_name): Test config.sane_expr rather than ld_compatibility.
1009 (exp_fold_tree_1): Likewise. Adjust handling of assignments
1011 * ldlang.h (ld_compatibility): Delete.
1012 (lang_ld_feature): Declare.
1013 * ldlang.c (ld_compatibility): Delete.
1014 (open_input_bfds): Only handle assignments for --defsym.
1015 (lang_ld_feature): New function.
1018 * ldexp.h (exp_assop): Delete.
1019 (exp_assign, exp_defsym): Declare.
1020 * ldexp.c (exp_assop): Make static, handle all assignment variations.
1021 (exp_assign, exp_defsym): New functions.
1022 (exp_provide): Use exp_assop.
1023 * ldgram.y (defsym_expr): Use exp_defsym.
1024 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
1025 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
1026 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
1028 2011-01-12 Alan Modra <amodra@gmail.com>
1031 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
1032 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
1033 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
1034 to detect when we've finished sizing sections.
1035 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
1036 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
1037 that we are not inside an output section statement.
1038 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
1039 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
1040 lang_final_phase_enum here.
1041 (lang_process): Set lang_final_phase_enum here.
1043 2011-01-10 Nick Clifton <nickc@redhat.com>
1045 * po/da.po: Updated Danish translation.
1047 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1049 * ldlang.c (startup_file): Removed.
1050 (lang_startup): Updated.
1052 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
1055 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
1056 before accessing its flags field.
1058 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
1060 * ldver.c (ldversion): Update copyright to 2011.
1062 For older changes see ChangeLog-2010
1068 version-control: never