1 2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
3 * Makefile.am (GENSCRIPTS): Add @enable_initfini_array@.
5 * NEWS: Mention SORT_BY_INIT_PRIORITY.
7 * configure.in: Add AC_CANONICAL_BUILD.
8 Add --enable-initfini-array.
10 * genscripts.sh (ENABLE_INITFINI_ARRAY): New.
12 * ld.h (sort_type): Add by_init_priority.
14 * ld.texinfo: Document SORT_BY_INIT_PRIORITY.
16 * ldgram.y (SORT_BY_INIT_PRIORITY): New.
17 (wildcard_spec): Handle SORT_BY_INIT_PRIORITY.
19 * ldlang.c (get_init_priority): New.
20 (compare_section): Use get_init_priority for by_init_priority.
22 * ldlex.l (SORT_BY_INIT_PRIORITY): New.
24 * scripttempl/elf.sc: Support ENABLE_INITFINI_ARRAY.
26 * Makefile.in: Regenerated.
27 * aclocal.m4: Regenerated.
28 * config.in: Likewise.
29 * configure: Likewise.
31 2010-12-13 Alan Modra <amodra@gmail.com>
33 * ldlang.c (load_symbols): Correct last change.
35 2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
37 * ldlang.c (load_symbols): Optimize for add_archive_element.
39 2010-12-09 Mike Frysinger <vapier@gentoo.org>
41 * .gitignore: New file.
43 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
45 * lexsup.c (ld_options): Add -flto and -flto-partition= for
46 GCC LTO option compatibility.
48 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
51 * plugin.c (message): Don't add the trailing `\n' for
54 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
57 * testplug.c: Remove the trailing `\n' from TV_MESSAGE.
59 2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
62 * plugin.c (message): Use putchar for the trailing `\n'.
64 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
65 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
68 * ldmain.c (main): Don't call plugin_call_cleanup.
70 * plugin.c (plugin_call_cleanup): Make it static.
71 (message): Don't call plugin_call_cleanup.
72 (plugin_load_plugins): Call xatexit with plugin_call_cleanup.
74 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
77 * plugin.c (message): Call plugin_call_cleanup on fatal
80 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
82 * plugin.c (message): Add a space after `:' in error message.
84 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
86 * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n'
88 (get_symbols): Likewise.
89 (plugin_notice): Likewise.
90 (plugin_multiple_definition): Likewise.
92 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
95 * plugin.c (message): Add the trailing `\n'.
97 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
99 * ldfile.c (ldfile_open_file_search): Check maybe_archive instead
101 * emultempl/aix.em: Likewise.
102 * emultempl/elf32.em: Likewise.
103 * emultempl/linux.em: Likewise.
104 * emultempl/pe.em: Likewise.
105 * emultempl/pep.em: Likewise.
106 * emultempl/sunos.em: Likewise.
107 * emultempl/vms.em: Likewise.
109 * ldlang.c (new_afile): Set maybe_archive instead of is_archive..
111 * ldlang.h (lang_input_statement_struct): Replace is_archive
114 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
117 * plugin.c (asymbol_from_plugin_symbol): Properly convert LTO
118 plugin visibility to ELF visibility.
119 (is_visible_from_outside): Re-indent.
121 2010-12-04 Alan Modra <amodra@gmail.com>
123 * ldlang.c (lang_size_sections_1): Align lma using same alignment
126 2010-12-03 H.J. Lu <hongjiu.lu@intel.com>
128 * lexsup.c (ld_options): Fix a typo in comments.
130 2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
132 * plugin.h: Re-indent.
134 2010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>
136 * configure.tgt: Add sparc64-rtems.
138 2010-11-26 Alan Modra <amodra@gmail.com>
142 2010-11-25 Alan Modra <amodra@gmail.com>
148 * po/zh_CN.po: Update.
150 2010-11-25 Jan Hubicka <hubicka@ucw.cz>
152 * scripttempl/elf.sc: Group .text.exit, text.startup and .text.hot
155 2010-11-23 Matthias Klose <doko@ubuntu.com>
157 * configure.ac: For --enable-gold, handle value `default' instead of
158 `both*'. Always install ld as ld.gold, install as ld if gold is
160 * configure: Regenerate.
162 2010-11-21 H.J. Lu <hongjiu.lu@intel.com>
164 * ldfile.c: Re-indent plugin code.
165 * ldlang.c: Likewise.
166 * ldmain.c: Likewise.
167 * plugin.c: Likewise.
169 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
172 * plugin.c (asymbol_from_plugin_symbol): Set alignment of
173 common symbol to 1 for For ELF targets.
175 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
178 * lexsup.c (parse_args): Properly report loading plugin error.
180 2010-11-19 Dave Korn <dave.korn.cygwin@gmail.com>
182 * plugin.c (is_visible_from_outside): New function.
183 (get_symbols): Use it.
185 2010-11-16 Jie Zhang <jie.zhang@analog.com>
187 * Makefile.am (eelf32bfinfd.c, eelf32bfin.c): Depend on bfin.em.
188 * Makefile.in: Regenerated.
189 * emulparams/bfin.sh (EXTRA_EM_FILE): Set.
190 * emulparams/elf32bfinfd.sh (EXTRA_EM_FILE): Likewise.
191 * emultempl/bfin.em: New.
193 2010-11-16 Yasuaki Taniguchi <taniguchi.yasua@jp.fujitsu.com>
195 * emultempl/pe.em (_list_options): Correct typo.
196 * emultempl/pep.em (_list_options): Likewise.
198 2010-11-08 Thomas Schwinge <thomas@schwinge.name>
200 * configure.host: Add stanza for *-*-gnu*.
202 2010-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
204 * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
206 2010-11-05 Tristan Gingold <gingold@adacore.com>
208 * po/ld.pot: Regenerate
209 * po/POTFILES.in: Regenerate
211 2010-11-05 Tristan Gingold <gingold@adacore.com>
213 * NEWS: Add marker for 2.21.
215 2010-11-05 Dave Korn <dave.korn.cygwin@gmail.com>
217 * plugin.h (plugin_active_plugins_p): New prototype.
218 (is_ir_dummy_bfd): Delete prototype.
219 * plugin.c: Fix formatting issues.
220 (is_ir_dummy_bfd): Make static.
221 (plugin_active_plugins_p): New function.
222 * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
223 are loaded. Always close file descriptor after claim handler returns.
224 * ldmain.c (add_archive_element): Likewise.
226 2010-11-05 Alan Modra <amodra@gmail.com>
228 * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.
229 (map_input_to_output_sections): Likewise.
230 (lang_size_sections_1): Likewise.
231 (IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
232 (lang_check_section_addresses): Likewise.
234 2010-11-04 Kai Tietz <kai.tietz@onevision.com>
236 * scripttempl/pe.sc (.debug_types): New.
237 * scripttempl/pep.sc: Likewise.
239 2010-11-04 Alan Modra <amodra@gmail.com>
241 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
243 2010-11-03 Nick Clifton <nickc@redhat.com>
246 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list
247 of symbols defined via the --defsym command line option and
248 currently waiting assignment.
249 (insert_defined): Add a defined symbol to the symbol table.
250 (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
251 (lang_place_defineds): Walk ldlang_def_chain_list defining the
253 (lang_process): Call lang_place_defineds.
254 (lang_add_assignment): If the assignment has come from a --defsym
255 command line option then call lang_add_def.
257 2010-11-03 Alan Modra <amodra@gmail.com>
259 * Makefile.am (eelf64hppa.c): Correct dependencies.
260 * Makefile.in: Regenerate.
262 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
264 * scripttempl/armbpabi.sc: Include compressed DWARF debug
266 * scripttempl/avr.sc: Likewise.
267 * scripttempl/elf32cr16.sc: Likewise.
268 * scripttempl/elf32crx.sc: Likewise.
269 * scripttempl/elf32msp430.sc: Likewise.
270 * scripttempl/elf32msp430_3.sc: Likewise.
271 * scripttempl/elf32sh-symbian.sc: Likewise.
272 * scripttempl/elf64hppa.sc: Likewise.
273 * scripttempl/elf_chaos.sc: Likewise.
274 * scripttempl/elfd10v.sc: Likewise.
275 * scripttempl/elfd30v.sc: Likewise.
276 * scripttempl/elfi370.sc: Likewise.
277 * scripttempl/elfm68hc11.sc: Likewise.
278 * scripttempl/elfm68hc12.sc: Likewise.
279 * scripttempl/elfxtensa.sc: Likewise.
280 * scripttempl/ip2k.sc: Likewise.
281 * scripttempl/iq2000.sc: Likewise.
282 * scripttempl/mep.sc: Likewise.
283 * scripttempl/mmo.sc: Likewise.
284 * scripttempl/v850.sc: Likewise.
285 * scripttempl/xstormy16.sc: Likewise.
287 2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
289 * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
291 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
293 * scripttempl/elf.sc: Include compressed DWARF debug sections.
295 2010-10-28 Alan Modra <amodra@gmail.com>
297 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
299 2010-10-28 Matthias Klose <doko@ubuntu.com>
301 * ld.texinfo: Add directory section for info document.
302 * ldint.texinfo: Likewise.
304 2010-10-28 Alan Modra <amodra@gmail.com>
306 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
307 --no-undefined-version, don't report dot sym versions added by ld.
309 2010-10-28 Alan Modra <amodra@gmail.com>
311 * ldlang.h (ldlang_add_undef): Add cmdline param.
312 * ldlang.c (undef_from_cmdline): New var.
313 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
314 (lang_end): Really require -e or -u from command line on
315 relocatable --gc-sections.
316 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
317 * ldgram.y (extern_name_list_body): Likewise.
318 * lexsup.c (parse_args): Likewise.
319 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
321 2010-10-25 Alan Modra <amodra@gmail.com>
323 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
326 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
328 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
330 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
333 2010-10-22 Alan Modra <amodra@gmail.com>
335 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
336 output when section has no contents.
337 (build_link_order <lang_reloc_statement_enum>): Likewise.
339 2010-10-21 Joseph Myers <joseph@codesourcery.com>
341 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
342 .c6xabi.attributes, not __TI_build_attributes.
344 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
346 * plugin.c (get_symbols): Check symbol type correctly.
348 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
350 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
351 * configure: Regenerate.
352 * config.in: Likewise.
353 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
354 trival LoadLibrary-based replacement for Windows systems.
355 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
356 replacement based on GetProcAddress.
357 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
358 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
359 anymore, use its own guard.
361 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
363 * plugin.c (add_input_file): Take copy of input string.
364 (add_input_library): Likewise.
365 (set_extra_library_path): Likewise.
367 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
369 Apply LD plugin patch series (part 6/6).
370 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
371 add_archive_element callback.
372 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
373 member to the plugins and if claimed set "subsbfd" output parameter to
374 point to the dummy IR-only BFD.
376 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
378 Apply LD plugin patch series (part 5/6).
379 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
380 find the elf symbol data and set the visibility in the st_other field.
382 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
384 Apply LD plugin patch series (part 4/6).
385 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
386 plugin_call_all_symbols_read to before setting of gc_sym_list, and
387 open any new input files that may have been added during it.
388 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
389 plugin_multiple_definition and let it have first say over what to do
390 with the clashing definitions.
391 * plugin.c (no_more_claiming): New boolean variable.
392 (plugin_cached_allow_multiple_defs): Likewise.
393 (add_input_file): Implement.
394 (add_input_library): Likewise.
395 (set_extra_library_path): Likewise.
396 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
397 (plugin_call_all_symbols_read): Set it. Disable link info
398 "allow_multiple_definition" flag, but cache its value.
399 (plugin_multiple_definition): New function.
400 * plugin.h (plugin_multiple_definition): Add prototype.
401 * testplug.c (addfile_enum_t): New enumerated typedef.
402 (add_file_t): New struct typedef.
403 (addfiles_list): New variable.
404 (addfiles_tail_chain_ptr): Likewise.
405 (record_add_file): New function.
406 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
407 (onall_symbols_read): Iterate the list of new files, libs and dirs,
410 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
412 Apply LD plugin patch series (part 3/6).
413 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
414 * plugin.c (non_ironly_hash): Add new bfd hash table.
415 (plugin_load_plugins): Exit early if no plugins to load. If plugins
416 do load successfully, set notice_all flag in link info.
417 (get_symbols): Implement.
418 (plugin_load_plugins): Exit early if no plugins to load, else after
419 loading plugins successfully enable notice_all mode.
420 (init_non_ironly_hash): Lazily init non_ironly_hash table.
421 (plugin_notice): Record symbols referenced from non-IR files in the
422 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
423 tracking for symbols from dummy IR bfds.
424 * plugin.h: Fix formatting.
425 (plugin_notice): Add prototype.
426 * testplug.c (dumpresolutions): New global var.
427 (parse_options): Accept "dumpresolutions".
428 (onall_symbols_read): Get syms and dump resolutions if it was given.
430 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
432 Apply LD plugin patch series (part 2/6).
433 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
434 during compat checks if they pass, instead offer any successfully
435 opened and accepted file to the plugin claim file hooks chain. Create
436 a dummy bfd to accept symbols added by the plugin, if the plugin
438 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
439 read hook chain before ldemul_after_open.
440 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
442 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
443 (IRONLY_SUFFIX_LEN): Length of the above string.
444 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
445 to store symbols for ir-only files.
446 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
447 (asymbol_from_plugin_symbol): New function converts symbol formats.
448 (add_symbols): Call it to convert plugin syms to bfd syms and add
449 them to the dummy bfd.
450 * plugin.h: Add missing include guards.
451 (plugin_get_ir_dummy_bfd): Add prototype.
452 (is_ir_dummy_bfd): Likewise.
453 * testplug.c (TV_MESSAGE): New helper macro.
454 (struct claim_file): New struct.
455 (claim_file_t): New typedef.
456 (tag_names[]): Make static and const.
457 (claimfiles_list): New variable.
458 (claimfiles_tail_chain_ptr): Likewise.
459 (last_claimfile): Likewise.
460 (record_claim_file): Record a file to claim on a singly-linked list.
461 (parse_symdefstr): Parse an ASCII representation of a symbol from a
462 plugin option into the fields of a struct ld_plugin_symbol.
463 (record_claimed_file_symbol): Use it to parse plugin option for
465 (parse_option): Parse claim file and add symbol options.
466 (dump_tv_tag): Use TV_MESSAGE.
468 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
469 claim and claim this file if required, adding any symbols specified.
470 (onall_symbols_read): Make static and use TV_MESSAGE.
471 (oncleanup): Likewise.
473 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
475 Apply LD plugin patch series (part 1/6).
476 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
477 functions and AC_SEARCH for -ldl.
478 (enable_plugins): New shell variable set if above tests find dlopen
480 (ENABLE_PLUGINS): Add related automake conditional.
481 * configure: Regenerate.
482 * config.in: Likewise.
483 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
484 on ENABLE_PLUGINS being defined.
485 (PLUGIN_H): Likewise for header file.
486 (PLUGIN_OBJECT): Likewise for object file.
487 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
488 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
489 (CFILES): Use PLUGIN_C.
490 (HFILES): Use PLUGIN_H.
491 (OFILES): Use PLUGIN_OBJECT.
492 (ld_new_SOURCES): Use PLUGIN_C.
493 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
494 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
496 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
497 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
498 * Makefile.in: Regenerate.
499 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
500 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
501 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
502 (O_WRONLY): Likewise.
504 (O_ACCMODE): Likewise.
505 (O_BINARY): Likewise.
506 (SEEK_SET): Likewise.
507 (SEEK_CUR): Likewise.
508 (SEEK_END): Likewise.
509 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
510 * ldmisc.h (vfinfo): Declare extern prototype.
511 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
512 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
513 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
514 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
515 option parsing is complete.
516 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
518 * plugin.c: New source file.
519 * plugin.h: Likewise new header.
520 * testplug.c: New source file.
522 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
524 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
525 basever_syms to global_syms.
526 Emit global_syms into .dynamic section for all executables and
528 (elf_solaris2_after_allocation): New function.
529 (LDEMUL_AFTER_ALLOCATION): Use it.
530 * emulparams/solaris2.sh: New file.
531 * emulparams/elf32_sparc_sol2.sh: Use it.
532 * emulparams/elf64_sparc_sol2.sh: Likewise.
533 * emulparams/elf_i386_sol2.sh: Likewise.
534 * emulparams/elf_x86_64_sol2.sh: Likewise.
535 * Makefile.am (eelf32_sparc_sol2.c): Depend on
536 $(srcdir)/emulparams/solaris2.sh.
537 (eelf64_sparc_sol2.c): Likewise.
538 (eelf_x86_64_sol2.c): Likewise.
539 (eelf_i386_sol2.c): Likewise.
540 * Makefile.in: Regenerate.
542 2010-10-06 Nick Clifton <nickc@redhat.com>
544 * ld.texinfo: Update description of computation of VMA and LMA
545 addresses for output sections.
547 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
549 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
550 * Makefile.in: Regenerate.
552 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
553 (ALL_EMULATION_SOURCES): ... this new variable.
554 (ALL_64_EMULATIONS): Rewrite in terms of ...
555 (ALL_64_EMULATION_SOURCES): ... this new variable.
556 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
558 (eelf32microblaze.c): Fix indentation.
559 * Makefile.in: Regenerate.
561 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
563 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
564 _bfd_elf_single_rel_hdr.
566 2010-10-01 Alan Modra <amodra@gmail.com>
569 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
570 * ld.texinfo (Expression Section): Don't say absolute symbols
573 2010-09-29 Alan Modra <amodra@gmail.com>
575 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
576 section for orphans handled here.
578 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
580 * configure: Regenerate.
582 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
584 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
586 2010-09-23 Alan Modra <amodra@gmail.com>
588 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
589 to output section on a final link.
591 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
593 * ldlang.c (lang_add_section): Allow for debugging
594 section to be marked as noload but to keep content.
595 (IGNORE_SECTION): Likewise.
596 (lang_check_section_addresses): Likewise.
597 * ldwrite.c (build_link_order): Likewise.
599 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
601 * emultempl/pep.em: Likewise.
602 * scripttempl/armcoff.sc: Separate idata
603 and add __IAT_start__ and __IAT_end__ labels.
604 * scripttempl/pe.sc: Likewise.
605 * scripttempl/pep.sc: Likewise.
607 2010-09-20 David S. Miller <davem@davemloft.net>
609 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
611 2010-09-16 Alan Modra <amodra@gmail.com>
613 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
614 appear in output file.
615 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
616 unless SEC_COFF_SHARED_LIBRARY.
617 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
619 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
620 to update dot in region. Ditto when setting SEC_ALLOC if dot
621 advanced due to assignment.
622 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
624 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
626 * scripttempl/pep.sc: Add .xdata segment and
627 put into .pdata all segments beginning with .pdata.
629 2010-09-10 Alan Modra <amodra@gmail.com>
632 * ldlang.h (lang_for_each_statement_worker): Declare.
633 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
634 recurse into children of output_section_statement with constraint
636 (print_assignment): Handle NULL output_section->bfd_section.
637 (lang_size_sections_1): Ignore output section statement address
638 when constraint is -1.
639 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
641 2010-09-09 Tristan Gingold <gingold@adacore.com>
643 * NEWS: Add a entry for alpha-vms.
645 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
647 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
648 newly cloned section.
650 2010-09-02 Richard Henderson <rth@redhat.com>
652 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
654 2010-08-31 Nick Clifton <nickc@redhat.com>
656 * ldlex.l (WILDCHAR): Add the caret and exclamation point
657 characters, so that they can be used inside globs.
659 2010-08-31 Nick Clifton <nickc@redhat.com>
661 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
662 a region's attributes.
664 2010-08-31 Alan Modra <amodra@gmail.com>
666 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
667 output section statement.
669 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
672 * emultempl/elf32.em (_before_allocation): Check audit entry
675 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
678 * emultempl/elf32.em (_after_open): Find one .eh_frame section
681 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
684 * emultempl/elf32.em (_after_open): Find an ELF input for
685 --build-id and --eh-frame-hdr.
687 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
689 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
691 * Makefile.in: Regenerate.
693 2010-08-20 Nick Clifton <nickc@redhat.com>
695 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
698 2010-08-19 Alan Modra <amodra@gmail.com>
700 * NEWS: Mention change in linker script expression evaluation.
702 2010-08-19 Alan Modra <amodra@gmail.com>
704 * ld.texinfo (Expression Section): Detail expression evaluation.
705 (Builtin Functions <ADDR>): Correct.
706 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
708 (Builtin Functions <SEGMENT_START>): Typo fix.
709 * ldexp.c (new_number): New function.
710 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
711 (fold_unary <'~', '!', '-'>): Don't make_abs.
712 (fold_binary): Simplify result section logic. Return NULL section
714 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
716 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
717 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
718 (fold_name <NAME>): No need to handle absolute symbols differently
720 (fold_name <ORIGIN>): Don't return valid result when
721 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
722 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
723 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
724 a plain number to dot, assume the value is relative to expld.section.
725 Make terms not in an output section, absolute.
726 * ldlang.c (print_assignment): Fix style nit.
727 (lang_size_sections_1): Cope with NULL expld.result.section.
728 (lang_do_assignments_1): Likewise.
730 2010-08-12 Alan Modra <amodra@gmail.com>
732 * ldexp.c (new_rel): Remove "str". Update all call sites.
733 (exp_fold_tree_1): When assigning to dot, calculate nextdot
734 using expld.result.section rather than expld.section.
736 2010-08-06 Alan Modra <amodra@gmail.com>
739 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
742 2010-07-28 Alan Modra <amodra@gmail.com>
744 * ldexp.c (exp_print_tree): Print function-like binary nodes as
745 functions rather than in-fix operators. Use fputs and fputc
748 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
749 Ina Pandit <ina.pandit@kpitcummins.com>
751 * configure.tgt: Match all v850 targets.
753 2010-07-20 Mike Frysinger <vapier@gentoo.org>
755 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
756 Declare the default language as C.
758 2010-07-17 Alan Modra <amodra@gmail.com>
760 * ldlang.c (lang_check_section_addresses): Catch overlap for
761 sections that wrap around the address space.
763 2010-06-29 Nick Clifton <nickc@redhat.com>
765 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
766 with the .gcc_except_table. prefix.
768 2010-06-29 Alan Modra <amodra@gmail.com>
770 * emulparams/maxqcoff.sh: Delete file.
771 * scripttempl/maxqcoff.sc: Delete file.
772 * Makefile.am: Remove references to maxq.
773 * configure.tgt: Likewise.
774 * Makefile.in: Regenerate.
775 * configure: Regenerate.
776 * po/POTFILES.in: Regenerate.
778 2010-06-27 Alan Modra <amodra@gmail.com>
780 * pe-dll.c (fill_edata): Avoid set but unused warning.
781 (pe_walk_relocs_of_symbol): Delete set but unused variables.
782 (generate_reloc, pe_implied_import_dll): Likewise.
783 * emultempl/aix.em (open_dynamic_archive): Likewise.
784 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
785 (xtensa_layout_wild): Likewise.
786 (xtensa_colocate_output_literals_callback): Likewise.
788 2010-06-25 Alan Modra <amodra@gmail.com>
790 * emultempl/ppc64elf.em (prelim_size_sections): New function.
791 (ppc_before_allocation): Use it. Size sections before toc edit too.
793 2010-06-25 Alan Modra <amodra@gmail.com>
795 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
797 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
799 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
800 auto-import and merge-rdata defaults same for i[3-7]86 and
803 2010-06-15 Joseph Myers <joseph@codesourcery.com>
805 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
807 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
810 * pe-dll.c (process_def_file_and_drectve): Reorder check for
811 forwarded export name after check for ordinary export.
813 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
815 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
817 2010-06-08 Nick Clifton <nickc@redhat.com>
819 * fdl.texi: Replace with v1.3 text.
820 * ld.texinfo: Replace abbreviated 20th century year numbers with
822 * ldint.texinfo: Likewise.
823 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
824 include of the fdl.texi file.
826 2010-06-01 Tristan Gingold <gingold@adacore.com>
828 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
829 readonly output-section. Handle LIB$INITIALIZE and sections
831 * emultempl/vms.em (vms_place_orphan): Add comments.
833 2010-05-28 Nick Clifton <nickc@redhat.com>
835 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
836 * Makefile.in: Regenerate.
838 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
841 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
842 multiple of maximum page size.
844 2010-05-25 Nick Clifton <nickc@redhat.com>
846 * Makefile.am: Fix typo.
847 * Makefile.in: Regenerate.
849 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
850 Joseph Myers <joseph@codesourcery.com>
851 Andrew Stubbs <ams@codesourcery.com>
853 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
854 (eshelf_fd.c, eshlelf_fd.c): New rules.
855 * Makefile.in: Regenerate.
856 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
858 * emulparams/shelf_fd.sh: New file.
859 * emulparams/shlelf_fd.sh: New file.
860 * emulparams/shlelf_linux.sh: Update comment.
862 2010-05-25 Jay Krell <jay.krell@cornell.edu>
865 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
866 * Makefile.in: Regenerate.
868 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
870 * deffilep.y (opt_name): Allow leading dot.
871 (dot_name): Likewise.
872 (anylang_id): Likewise.
873 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
875 (gld${EMULATION_NAME}_handle_option): Warn about v1.
876 (pep_find_data_imports): Remove superflous warnings about
878 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
879 and active pseudo-relocation-v2 rdata into data section.
880 * emultempl/pe.em (default_merge_rdata): New shell variable.
881 (MERGE_RDATA_V2): New macro.
882 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
885 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
887 * emultempl/pe.em (is_underscoring): New helper function.
888 (gld_${EMULATION_NAME}_before_parse): Replace code
889 for pe(p)_leading_underscore detection by is_underscoring.
891 (GET_INIT_SYMBOL_NAME): Likewise.
895 (gld_${EMULATION_NAME}_set_symbols):
896 * emultempl/pep.em: Likewise.
897 * pe-dll.c (pe_detail_list): Set default
898 underscoring for x64 target.
899 (pe_dll_id_target): Add initialization of
900 pe(p)_leading_underscore.
902 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
904 * pe-dll.c: Removed trailing whitespaces.
906 2010-05-14 Alan Modra <amodra@gmail.com>
909 * ldexp.c (exp_fold_tree_1): If assignment source expression is
910 invalid, make the destination symbol undefined.
912 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
914 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
915 Initialize pe(p)_leading_underscore variable.
916 (set_pe_name): Likewise.
917 * emultempl/pep.em: Likewise.
918 Additional change default to non-underscore for
919 pep_leading_underscore equal to -1.
921 2010-05-07 Tristan Gingold <gingold@adacore.com>
923 * Makefile.in: Regenerate with automake 1.11.1.
926 2010-05-05 Nick Clifton <nickc@redhat.com>
928 * po/es.po: Updated Spanish translation.
930 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
932 * pe-dll.c (_nm_-symbols): Use always underscored variant
934 (__imp_-symbols): Likewise.
935 (___imp_-symbols): Likewise.
936 * NEWS: Mention ABI change for x64 PE-COFF.
938 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
940 * Makefile.am (install-exec-local): Properly install ld as
941 default cross linker.
942 * Makefile.in: Regenerated.
944 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
945 Nick Clifton <nickc@redhat.com>
947 * configure.in (install_as_default): Define and set to true
948 unless --enable-gold=both/gold has been specified.
949 * configure: Regenerate.
951 * Makefile.am (transform): Use ld.bfd as the default name of
953 (install-exec-local): Also install the executable as a binary
954 named 'ld' if install_as_default is true.
955 * Makefile.in: Regenerate.
957 2010-04-22 Nick Clifton <nickc@redhat.com>
959 * po/ld.pot: Updated by the Translation project.
960 * po/vi.po: Updated Vietnamese translation.
961 * po/bg.po: Updated Bulgarian translation.
963 2010-04-15 Andrew Haley <aph@redhat.com>
965 * emultempl/armelf.em (merge_exidx_entries): New variable.
966 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
967 ("no-merge-exidx-entries"): New option.
968 * ld.texinfo (merge-exidx-entries): Document this option.
970 2010-04-14 Tristan Gingold <gingold@adacore.com>
972 * emulparams/alphavms.sh: New file.
973 * emultempl/vms.em: New file.
974 * scripttempl/alphavms.sc: New file.
975 * configure.tgt (alpha*-*-*vms*): Added.
976 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
977 (ealphavms.c): New target.
978 * Makefile.in: Regenerate.
980 2010-04-09 Nick Clifton <nickc@redhat.com>
982 * ldlang.c (wild_sort): Remove unused variable section_name.
984 2010-04-07 Alan Modra <amodra@gmail.com>
986 * configure: Regenerate.
988 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
991 * ld/testsuite/ld-x86-64/unique1.d: New.
992 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
994 * ld-x86-64/x86-64.exp: Run unique1.
996 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
998 * emultempl/pep.em (U): Macro modified.
999 (U_SIZE): New helper macro.
1000 (GET_INIT_SYMBOL_NAME): Likewise.
1001 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
1002 and OPTION_LEADING_UNDERSCORE enumerator-values.
1003 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
1005 (definfo): Add new member is_c_symbol.
1006 (D): Add to macro underscore mode parameter.
1007 (init): Add definition for is_c_symbol.
1008 (gld_${EMULATION_NAME}_list_options): Display new options.
1009 (set_pep_name): Adjust underscoring dependent fixed
1011 (gld_${EMULATION_NAME}_set_symbols): Likewise.
1012 (saw_option): Likewise.
1013 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
1014 (set_entry_point): Initial initial_symbol_char dependent to
1015 target's default and new option flag pep_leading_underscore.
1016 * emultempl/pe.em (U): Macro modified.
1017 (U_SIZE): New helper macro.
1018 (GET_INIT_SYMBOL_NAME): Likewise.
1019 (OPTION_LEADING_UNDERSCORE): Add new option define.
1020 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
1021 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
1023 (definfo): Add new member is_c_symbol.
1024 (D): Add to macro underscore mode parameter.
1025 (init): Add definition for is_c_symbol.
1026 (gld_${EMULATION_NAME}_list_options): Display new options.
1027 (set_pep_name): Adjust underscoring dependent fixed
1029 (gld_${EMULATION_NAME}_set_symbols): Likewise.
1030 (saw_option): Likewise.
1031 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
1032 (set_entry_point): Initial initial_symbol_char dependent to
1033 target's default and new option flag pep_leading_underscore.
1034 * pe-dll.c (pe_leading_underscore): New flag variable.
1035 (pe_detail_list): Remove const to allow modify of
1037 (pe_dll_id_target): Initialize pe_details' underscore variable
1038 dependent to target's default and flag pe_leading_underscore.
1039 * pe-dll.h (pe_leading_underscore): Add extern declaration of
1041 * pep-dll.c (pe_leading_underscore): Add alias define for
1042 pep_leading_underscore.
1043 * pep-dll.h (pep_leading_underscore) Add extern declaration of
1045 * ld.texinfo: Add documentation for --(no-)leading-underscore
1048 2010-03-26 Alan Modra <amodra@gmail.com>
1051 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
1052 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
1054 2010-03-25 Joseph Myers <joseph@codesourcery.com>
1056 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
1058 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
1059 * NEWS: Add news entry for TI C6X support.
1060 * configure.tgt (tic6x-*-*): New.
1061 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
1063 2010-03-23 Joseph Myers <joseph@codesourcery.com>
1065 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
1066 BSS_NAME): Define if not already defined. Use in place of some
1067 hardcoded section names.
1069 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1071 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
1073 2010-03-18 Aymeric Vincent <vincent@labri.fr>
1076 * emultempl/sh64elf.em: Add missing EOF.
1078 2010-03-18 Doug Semler <dougsemler@gmail.com>
1080 * pe-dll.c (make_one): Make text section readonly.
1081 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
1082 the jump stub on X86 as /SAFESEH compatible for
1085 2010-03-17 Alan Modra <amodra@gmail.com>
1087 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
1088 *prev instead. Update all callers.
1090 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1092 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
1093 region and phdrs as their placement section.
1095 2010-03-15 Alan Modra <amodra@gmail.com>
1097 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
1098 (ppc_before_allocation): Call sort_toc_sections.
1099 (no_toc_sort, OPTION_NO_TOC_SORT): New.
1100 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1101 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
1103 2010-03-14 Alan Modra <amodra@gmail.com>
1106 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
1107 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
1109 2010-03-11 George Gensure <werkt0@gmail.com>
1112 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
1114 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1116 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
1118 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
1119 (eelf32_sparc_sol2.c): New rule.
1120 (eelf64_sparc_sol2.c): Likewise.
1121 (eelf_x86_64_sol2.c): Likewise.
1122 (eelf_i386_sol2.c): Likewise.
1123 * Makefile.in: Regenerate.
1124 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
1126 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
1127 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
1128 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
1129 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
1130 Add target_extra_emuls.
1131 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
1132 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
1133 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
1134 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
1135 * emulparams/elf32_sparc_sol2.sh: New file.
1136 * emulparams/elf64_sparc_sol2.sh: New file.
1137 * emulparams/elf_i386_sol2.sh: New file.
1138 * emulparams/elf_x86_64_sol2.sh: New file.
1139 * emultempl/solaris2.em: New file.
1141 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
1144 * ld.texinfo: Replace explicitely with explicitly.
1146 2010-02-27 Jie Zhang <jie@codesourcery.com>
1148 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
1149 .fini_array.* when do relocatable linking.
1150 * scripttempl/elf.sc: Likewise.
1151 * scripttempl/elf32sh-symbian.sc: Likewise.
1152 * scripttempl/elf64hppa.sc: Likewise.
1153 * scripttempl/elfxtensa.sc: Likewise.
1155 2010-02-26 Alan Modra <amodra@gmail.com>
1157 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
1159 * scripttempl/armbpabi.sc: Likewise.
1160 * scripttempl/elf32sh-symbian.sc: Likewise.
1161 * scripttempl/elf64hppa.sc: Likewise.
1162 * scripttempl/elfxtensa.sc: Likewise.
1164 2010-02-25 Alan Modra <amodra@gmail.com>
1167 * ldlang.c (init_os): Remove isec param. Don't check for
1168 bfd_section already set or call bfd_init_private_section_data
1170 (exp_init_os): Update init_os call.
1171 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
1172 flags. Call bfd_init_private_section_data here.
1173 (map_input_to_output_sections): Tidy. Update init_os calls.
1174 Use os->sectype to select sec flags for lang_data_statement.
1176 2010-02-23 Alan Modra <amodra@gmail.com>
1179 * ldlang.c: Revert last patch.
1181 2010-02-23 Nick Clifton <nickc@redhat.com>
1183 * po/bg.po: Updated Bulgarian translation.
1185 2010-02-22 Alan Modra <amodra@gmail.com>
1188 * ldlang.c (exp_init_os): Delete forward declaration.
1189 (init_os): Don't check for bfd_section already created and don't
1190 init addr_tree and load_base expressions here.
1191 (map_input_to_output_sections): Only map input to output sections
1192 and set constraints here, and as an exception, create output
1193 sections which have their address set. Move all the other code to..
1194 (create_other_output_sections): ..here. New function. Handle init
1195 of addr_tree and load_base here too.
1196 (lang_process): Call create_other_output_sections.
1198 2010-02-19 Alan Modra <amodra@gmail.com>
1200 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
1201 * Makefile.in: Regenerate.
1203 2010-02-19 Alan Modra <amodra@gmail.com>
1205 * ldlang.c (unique_section_p): Add os param. Allow group
1206 sections to match /DISCARD/. Update all callers.
1207 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
1208 (LDEMUL_BEFORE_ALLOCATION): Define.
1210 2010-02-15 Nick Clifton <nickc@redhat.com>
1212 * po/vi.po: Updated Vietnamese translation.
1214 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1216 * Makefile.am (CFILES): Add ldlex-wrapper.c.
1217 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
1218 (ldlex.o): Replace with...
1219 (ldlex-wrapper.o): ...this new rule.
1220 (EXTRA_ld_new_SOURCES): Add ldlex.l.
1221 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
1222 * Makefile.in: Regenerate.
1223 * ldlex.l (sysdep.h): Don't include here.
1224 * ldlex-wrapper.c: New file.
1226 2010-02-09 Alan Modra <amodra@gmail.com>
1228 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
1229 function parameters.
1231 2010-02-05 Nick Clifton <nickc@redhat.com>
1233 * configure.in (ALL_LIBGUAS): Add bg.
1234 * configure: Regenerate.
1235 * po/bg.po: New Bulgarian translation.
1237 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
1239 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
1240 --target1-abs and --target1-rel options.
1242 2010-02-03 Nick Clifton <nickc@redhat.com>
1244 * emultempl/alphaelf.em: Update value expected from elf_object_id.
1245 * emultempl/hppaelf.em: Likewise.
1246 * emultempl/mipself.em: Likewise.
1247 * emultempl/ppc32elf.em: Likewise.
1248 * emultempl/ppc64elf.em: Likewise.
1250 2010-02-03 Alan Modra <amodra@gmail.com>
1252 * emultempl/ppc64elf.em (build_toc_list): Report errors from
1253 ppc64_elf_next_toc_section.
1254 (after_allocation): Update for changed function names and params.
1255 Run second pass of multitoc partitioning.
1257 2010-01-21 Jon Grant <jg@jguk.org>
1258 Nick Clifton <nickc@redhat.com>
1261 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
1262 a missing file or library. Instead mark the entry as missing and
1263 set the global flag to indicate that missing files were
1265 * ldlang.c (missing_files): New exported variable.
1266 (load_symbols): Skip loading if the file is missing.
1267 (open_input_bfds): Terminate link if any input files were
1269 * ldlang.h (struct lang_input_statement_struct): Add missing_file
1271 Add export of missing_file variable.
1273 2010-01-13 DJ Delorie <dj@redhat.com>
1275 * emultempl/elf32.em (_place_orphan): If an input section doesn't
1276 match an existing output section, but an unused output section
1277 statement does match, use it.
1278 * emultempl/pe.em (_place_orphan): Likewise.
1279 * emultempl/pep.em (_place_orphan): Likewise.
1281 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1283 * configure: Regenerate.
1284 * Makefile.in: Regenerate.
1286 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
1288 * ldver.c (ldversion): Change to "Copyright 2010".
1290 2010-01-08 Alan Modra <amodra@gmail.com>
1293 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
1295 For older changes see ChangeLog-2009
1301 version-control: never