1 2010-12-20 Alan Modra <amodra@gmail.com>
4 Revert 2010-11-03 Nick Clifton
5 * ldlang.c (ldlang_def_chain_list): Delete.
6 (insert_defined, ldlang_add_def, lang_place_defineds): Delete.
7 (lang_process): Don't call lang_place_defineds.
8 (lang_add_assignment): Don't do anything special for --defsym.
10 * ldexp.h (struct ldexp_control): Add uses_defined.
11 (exp_fold_tree_no_dot): Declare.
12 * ldexp.c (exp_fold_tree): Clear uses_defined.
13 (exp_fold_tree_no_dot): Likewise. Make global.
14 (fold_name <DEFINED>): Set uses_defined.
15 (exp_fold_tree_1 <etree_assign>): Define symbol during first phase
16 even when the value being assigned isn't valid.
17 * ldlang.c (open_input_bfds): Process assignment statements.
18 (lang_process): Bump lang_statement_iteration.
19 (scan_for_self_assignment): Formatting.
20 (print_assignment): Style.
22 2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
24 * Makefile.am (GENSCRIPTS): Add @enable_initfini_array@.
26 * NEWS: Mention SORT_BY_INIT_PRIORITY.
28 * configure.in: Add AC_CANONICAL_BUILD.
29 Add --enable-initfini-array.
31 * genscripts.sh (ENABLE_INITFINI_ARRAY): New.
33 * ld.h (sort_type): Add by_init_priority.
35 * ld.texinfo: Document SORT_BY_INIT_PRIORITY.
37 * ldgram.y (SORT_BY_INIT_PRIORITY): New.
38 (wildcard_spec): Handle SORT_BY_INIT_PRIORITY.
40 * ldlang.c (get_init_priority): New.
41 (compare_section): Use get_init_priority for by_init_priority.
43 * ldlex.l (SORT_BY_INIT_PRIORITY): New.
45 * scripttempl/elf.sc: Support ENABLE_INITFINI_ARRAY.
47 * Makefile.in: Regenerated.
48 * aclocal.m4: Regenerated.
49 * config.in: Likewise.
50 * configure: Likewise.
52 2010-12-13 Alan Modra <amodra@gmail.com>
54 * ldlang.c (load_symbols): Correct last change.
56 2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
58 * ldlang.c (load_symbols): Optimize for add_archive_element.
60 2010-12-09 Mike Frysinger <vapier@gentoo.org>
62 * .gitignore: New file.
64 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
66 * lexsup.c (ld_options): Add -flto and -flto-partition= for
67 GCC LTO option compatibility.
69 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
72 * plugin.c (message): Don't add the trailing `\n' for
75 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
78 * testplug.c: Remove the trailing `\n' from TV_MESSAGE.
80 2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
83 * plugin.c (message): Use putchar for the trailing `\n'.
85 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
86 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
89 * ldmain.c (main): Don't call plugin_call_cleanup.
91 * plugin.c (plugin_call_cleanup): Make it static.
92 (message): Don't call plugin_call_cleanup.
93 (plugin_load_plugins): Call xatexit with plugin_call_cleanup.
95 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
98 * plugin.c (message): Call plugin_call_cleanup on fatal
101 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
103 * plugin.c (message): Add a space after `:' in error message.
105 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
107 * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n'
109 (get_symbols): Likewise.
110 (plugin_notice): Likewise.
111 (plugin_multiple_definition): Likewise.
113 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
116 * plugin.c (message): Add the trailing `\n'.
118 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
120 * ldfile.c (ldfile_open_file_search): Check maybe_archive instead
122 * emultempl/aix.em: Likewise.
123 * emultempl/elf32.em: Likewise.
124 * emultempl/linux.em: Likewise.
125 * emultempl/pe.em: Likewise.
126 * emultempl/pep.em: Likewise.
127 * emultempl/sunos.em: Likewise.
128 * emultempl/vms.em: Likewise.
130 * ldlang.c (new_afile): Set maybe_archive instead of is_archive..
132 * ldlang.h (lang_input_statement_struct): Replace is_archive
135 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
138 * plugin.c (asymbol_from_plugin_symbol): Properly convert LTO
139 plugin visibility to ELF visibility.
140 (is_visible_from_outside): Re-indent.
142 2010-12-04 Alan Modra <amodra@gmail.com>
144 * ldlang.c (lang_size_sections_1): Align lma using same alignment
147 2010-12-03 H.J. Lu <hongjiu.lu@intel.com>
149 * lexsup.c (ld_options): Fix a typo in comments.
151 2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
153 * plugin.h: Re-indent.
155 2010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>
157 * configure.tgt: Add sparc64-rtems.
159 2010-11-26 Alan Modra <amodra@gmail.com>
163 2010-11-25 Alan Modra <amodra@gmail.com>
169 * po/zh_CN.po: Update.
171 2010-11-25 Jan Hubicka <hubicka@ucw.cz>
173 * scripttempl/elf.sc: Group .text.exit, text.startup and .text.hot
176 2010-11-23 Matthias Klose <doko@ubuntu.com>
178 * configure.ac: For --enable-gold, handle value `default' instead of
179 `both*'. Always install ld as ld.gold, install as ld if gold is
181 * configure: Regenerate.
183 2010-11-21 H.J. Lu <hongjiu.lu@intel.com>
185 * ldfile.c: Re-indent plugin code.
186 * ldlang.c: Likewise.
187 * ldmain.c: Likewise.
188 * plugin.c: Likewise.
190 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
193 * plugin.c (asymbol_from_plugin_symbol): Set alignment of
194 common symbol to 1 for For ELF targets.
196 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
199 * lexsup.c (parse_args): Properly report loading plugin error.
201 2010-11-19 Dave Korn <dave.korn.cygwin@gmail.com>
203 * plugin.c (is_visible_from_outside): New function.
204 (get_symbols): Use it.
206 2010-11-16 Jie Zhang <jie.zhang@analog.com>
208 * Makefile.am (eelf32bfinfd.c, eelf32bfin.c): Depend on bfin.em.
209 * Makefile.in: Regenerated.
210 * emulparams/bfin.sh (EXTRA_EM_FILE): Set.
211 * emulparams/elf32bfinfd.sh (EXTRA_EM_FILE): Likewise.
212 * emultempl/bfin.em: New.
214 2010-11-16 Yasuaki Taniguchi <taniguchi.yasua@jp.fujitsu.com>
216 * emultempl/pe.em (_list_options): Correct typo.
217 * emultempl/pep.em (_list_options): Likewise.
219 2010-11-08 Thomas Schwinge <thomas@schwinge.name>
221 * configure.host: Add stanza for *-*-gnu*.
223 2010-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
225 * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
227 2010-11-05 Tristan Gingold <gingold@adacore.com>
229 * po/ld.pot: Regenerate
230 * po/POTFILES.in: Regenerate
232 2010-11-05 Tristan Gingold <gingold@adacore.com>
234 * NEWS: Add marker for 2.21.
236 2010-11-05 Dave Korn <dave.korn.cygwin@gmail.com>
238 * plugin.h (plugin_active_plugins_p): New prototype.
239 (is_ir_dummy_bfd): Delete prototype.
240 * plugin.c: Fix formatting issues.
241 (is_ir_dummy_bfd): Make static.
242 (plugin_active_plugins_p): New function.
243 * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
244 are loaded. Always close file descriptor after claim handler returns.
245 * ldmain.c (add_archive_element): Likewise.
247 2010-11-05 Alan Modra <amodra@gmail.com>
249 * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.
250 (map_input_to_output_sections): Likewise.
251 (lang_size_sections_1): Likewise.
252 (IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
253 (lang_check_section_addresses): Likewise.
255 2010-11-04 Kai Tietz <kai.tietz@onevision.com>
257 * scripttempl/pe.sc (.debug_types): New.
258 * scripttempl/pep.sc: Likewise.
260 2010-11-04 Alan Modra <amodra@gmail.com>
262 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
264 2010-11-03 Nick Clifton <nickc@redhat.com>
267 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list
268 of symbols defined via the --defsym command line option and
269 currently waiting assignment.
270 (insert_defined): Add a defined symbol to the symbol table.
271 (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
272 (lang_place_defineds): Walk ldlang_def_chain_list defining the
274 (lang_process): Call lang_place_defineds.
275 (lang_add_assignment): If the assignment has come from a --defsym
276 command line option then call lang_add_def.
278 2010-11-03 Alan Modra <amodra@gmail.com>
280 * Makefile.am (eelf64hppa.c): Correct dependencies.
281 * Makefile.in: Regenerate.
283 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
285 * scripttempl/armbpabi.sc: Include compressed DWARF debug
287 * scripttempl/avr.sc: Likewise.
288 * scripttempl/elf32cr16.sc: Likewise.
289 * scripttempl/elf32crx.sc: Likewise.
290 * scripttempl/elf32msp430.sc: Likewise.
291 * scripttempl/elf32msp430_3.sc: Likewise.
292 * scripttempl/elf32sh-symbian.sc: Likewise.
293 * scripttempl/elf64hppa.sc: Likewise.
294 * scripttempl/elf_chaos.sc: Likewise.
295 * scripttempl/elfd10v.sc: Likewise.
296 * scripttempl/elfd30v.sc: Likewise.
297 * scripttempl/elfi370.sc: Likewise.
298 * scripttempl/elfm68hc11.sc: Likewise.
299 * scripttempl/elfm68hc12.sc: Likewise.
300 * scripttempl/elfxtensa.sc: Likewise.
301 * scripttempl/ip2k.sc: Likewise.
302 * scripttempl/iq2000.sc: Likewise.
303 * scripttempl/mep.sc: Likewise.
304 * scripttempl/mmo.sc: Likewise.
305 * scripttempl/v850.sc: Likewise.
306 * scripttempl/xstormy16.sc: Likewise.
308 2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
310 * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
312 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
314 * scripttempl/elf.sc: Include compressed DWARF debug sections.
316 2010-10-28 Alan Modra <amodra@gmail.com>
318 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
320 2010-10-28 Matthias Klose <doko@ubuntu.com>
322 * ld.texinfo: Add directory section for info document.
323 * ldint.texinfo: Likewise.
325 2010-10-28 Alan Modra <amodra@gmail.com>
327 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
328 --no-undefined-version, don't report dot sym versions added by ld.
330 2010-10-28 Alan Modra <amodra@gmail.com>
332 * ldlang.h (ldlang_add_undef): Add cmdline param.
333 * ldlang.c (undef_from_cmdline): New var.
334 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
335 (lang_end): Really require -e or -u from command line on
336 relocatable --gc-sections.
337 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
338 * ldgram.y (extern_name_list_body): Likewise.
339 * lexsup.c (parse_args): Likewise.
340 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
342 2010-10-25 Alan Modra <amodra@gmail.com>
344 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
347 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
349 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
351 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
354 2010-10-22 Alan Modra <amodra@gmail.com>
356 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
357 output when section has no contents.
358 (build_link_order <lang_reloc_statement_enum>): Likewise.
360 2010-10-21 Joseph Myers <joseph@codesourcery.com>
362 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
363 .c6xabi.attributes, not __TI_build_attributes.
365 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
367 * plugin.c (get_symbols): Check symbol type correctly.
369 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
371 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
372 * configure: Regenerate.
373 * config.in: Likewise.
374 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
375 trival LoadLibrary-based replacement for Windows systems.
376 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
377 replacement based on GetProcAddress.
378 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
379 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
380 anymore, use its own guard.
382 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
384 * plugin.c (add_input_file): Take copy of input string.
385 (add_input_library): Likewise.
386 (set_extra_library_path): Likewise.
388 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
390 Apply LD plugin patch series (part 6/6).
391 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
392 add_archive_element callback.
393 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
394 member to the plugins and if claimed set "subsbfd" output parameter to
395 point to the dummy IR-only BFD.
397 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
399 Apply LD plugin patch series (part 5/6).
400 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
401 find the elf symbol data and set the visibility in the st_other field.
403 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
405 Apply LD plugin patch series (part 4/6).
406 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
407 plugin_call_all_symbols_read to before setting of gc_sym_list, and
408 open any new input files that may have been added during it.
409 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
410 plugin_multiple_definition and let it have first say over what to do
411 with the clashing definitions.
412 * plugin.c (no_more_claiming): New boolean variable.
413 (plugin_cached_allow_multiple_defs): Likewise.
414 (add_input_file): Implement.
415 (add_input_library): Likewise.
416 (set_extra_library_path): Likewise.
417 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
418 (plugin_call_all_symbols_read): Set it. Disable link info
419 "allow_multiple_definition" flag, but cache its value.
420 (plugin_multiple_definition): New function.
421 * plugin.h (plugin_multiple_definition): Add prototype.
422 * testplug.c (addfile_enum_t): New enumerated typedef.
423 (add_file_t): New struct typedef.
424 (addfiles_list): New variable.
425 (addfiles_tail_chain_ptr): Likewise.
426 (record_add_file): New function.
427 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
428 (onall_symbols_read): Iterate the list of new files, libs and dirs,
431 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
433 Apply LD plugin patch series (part 3/6).
434 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
435 * plugin.c (non_ironly_hash): Add new bfd hash table.
436 (plugin_load_plugins): Exit early if no plugins to load. If plugins
437 do load successfully, set notice_all flag in link info.
438 (get_symbols): Implement.
439 (plugin_load_plugins): Exit early if no plugins to load, else after
440 loading plugins successfully enable notice_all mode.
441 (init_non_ironly_hash): Lazily init non_ironly_hash table.
442 (plugin_notice): Record symbols referenced from non-IR files in the
443 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
444 tracking for symbols from dummy IR bfds.
445 * plugin.h: Fix formatting.
446 (plugin_notice): Add prototype.
447 * testplug.c (dumpresolutions): New global var.
448 (parse_options): Accept "dumpresolutions".
449 (onall_symbols_read): Get syms and dump resolutions if it was given.
451 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
453 Apply LD plugin patch series (part 2/6).
454 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
455 during compat checks if they pass, instead offer any successfully
456 opened and accepted file to the plugin claim file hooks chain. Create
457 a dummy bfd to accept symbols added by the plugin, if the plugin
459 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
460 read hook chain before ldemul_after_open.
461 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
463 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
464 (IRONLY_SUFFIX_LEN): Length of the above string.
465 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
466 to store symbols for ir-only files.
467 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
468 (asymbol_from_plugin_symbol): New function converts symbol formats.
469 (add_symbols): Call it to convert plugin syms to bfd syms and add
470 them to the dummy bfd.
471 * plugin.h: Add missing include guards.
472 (plugin_get_ir_dummy_bfd): Add prototype.
473 (is_ir_dummy_bfd): Likewise.
474 * testplug.c (TV_MESSAGE): New helper macro.
475 (struct claim_file): New struct.
476 (claim_file_t): New typedef.
477 (tag_names[]): Make static and const.
478 (claimfiles_list): New variable.
479 (claimfiles_tail_chain_ptr): Likewise.
480 (last_claimfile): Likewise.
481 (record_claim_file): Record a file to claim on a singly-linked list.
482 (parse_symdefstr): Parse an ASCII representation of a symbol from a
483 plugin option into the fields of a struct ld_plugin_symbol.
484 (record_claimed_file_symbol): Use it to parse plugin option for
486 (parse_option): Parse claim file and add symbol options.
487 (dump_tv_tag): Use TV_MESSAGE.
489 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
490 claim and claim this file if required, adding any symbols specified.
491 (onall_symbols_read): Make static and use TV_MESSAGE.
492 (oncleanup): Likewise.
494 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
496 Apply LD plugin patch series (part 1/6).
497 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
498 functions and AC_SEARCH for -ldl.
499 (enable_plugins): New shell variable set if above tests find dlopen
501 (ENABLE_PLUGINS): Add related automake conditional.
502 * configure: Regenerate.
503 * config.in: Likewise.
504 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
505 on ENABLE_PLUGINS being defined.
506 (PLUGIN_H): Likewise for header file.
507 (PLUGIN_OBJECT): Likewise for object file.
508 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
509 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
510 (CFILES): Use PLUGIN_C.
511 (HFILES): Use PLUGIN_H.
512 (OFILES): Use PLUGIN_OBJECT.
513 (ld_new_SOURCES): Use PLUGIN_C.
514 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
515 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
517 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
518 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
519 * Makefile.in: Regenerate.
520 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
521 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
522 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
523 (O_WRONLY): Likewise.
525 (O_ACCMODE): Likewise.
526 (O_BINARY): Likewise.
527 (SEEK_SET): Likewise.
528 (SEEK_CUR): Likewise.
529 (SEEK_END): Likewise.
530 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
531 * ldmisc.h (vfinfo): Declare extern prototype.
532 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
533 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
534 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
535 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
536 option parsing is complete.
537 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
539 * plugin.c: New source file.
540 * plugin.h: Likewise new header.
541 * testplug.c: New source file.
543 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
545 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
546 basever_syms to global_syms.
547 Emit global_syms into .dynamic section for all executables and
549 (elf_solaris2_after_allocation): New function.
550 (LDEMUL_AFTER_ALLOCATION): Use it.
551 * emulparams/solaris2.sh: New file.
552 * emulparams/elf32_sparc_sol2.sh: Use it.
553 * emulparams/elf64_sparc_sol2.sh: Likewise.
554 * emulparams/elf_i386_sol2.sh: Likewise.
555 * emulparams/elf_x86_64_sol2.sh: Likewise.
556 * Makefile.am (eelf32_sparc_sol2.c): Depend on
557 $(srcdir)/emulparams/solaris2.sh.
558 (eelf64_sparc_sol2.c): Likewise.
559 (eelf_x86_64_sol2.c): Likewise.
560 (eelf_i386_sol2.c): Likewise.
561 * Makefile.in: Regenerate.
563 2010-10-06 Nick Clifton <nickc@redhat.com>
565 * ld.texinfo: Update description of computation of VMA and LMA
566 addresses for output sections.
568 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
570 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
571 * Makefile.in: Regenerate.
573 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
574 (ALL_EMULATION_SOURCES): ... this new variable.
575 (ALL_64_EMULATIONS): Rewrite in terms of ...
576 (ALL_64_EMULATION_SOURCES): ... this new variable.
577 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
579 (eelf32microblaze.c): Fix indentation.
580 * Makefile.in: Regenerate.
582 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
584 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
585 _bfd_elf_single_rel_hdr.
587 2010-10-01 Alan Modra <amodra@gmail.com>
590 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
591 * ld.texinfo (Expression Section): Don't say absolute symbols
594 2010-09-29 Alan Modra <amodra@gmail.com>
596 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
597 section for orphans handled here.
599 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
601 * configure: Regenerate.
603 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
605 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
607 2010-09-23 Alan Modra <amodra@gmail.com>
609 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
610 to output section on a final link.
612 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
614 * ldlang.c (lang_add_section): Allow for debugging
615 section to be marked as noload but to keep content.
616 (IGNORE_SECTION): Likewise.
617 (lang_check_section_addresses): Likewise.
618 * ldwrite.c (build_link_order): Likewise.
620 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
622 * emultempl/pep.em: Likewise.
623 * scripttempl/armcoff.sc: Separate idata
624 and add __IAT_start__ and __IAT_end__ labels.
625 * scripttempl/pe.sc: Likewise.
626 * scripttempl/pep.sc: Likewise.
628 2010-09-20 David S. Miller <davem@davemloft.net>
630 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
632 2010-09-16 Alan Modra <amodra@gmail.com>
634 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
635 appear in output file.
636 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
637 unless SEC_COFF_SHARED_LIBRARY.
638 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
640 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
641 to update dot in region. Ditto when setting SEC_ALLOC if dot
642 advanced due to assignment.
643 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
645 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
647 * scripttempl/pep.sc: Add .xdata segment and
648 put into .pdata all segments beginning with .pdata.
650 2010-09-10 Alan Modra <amodra@gmail.com>
653 * ldlang.h (lang_for_each_statement_worker): Declare.
654 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
655 recurse into children of output_section_statement with constraint
657 (print_assignment): Handle NULL output_section->bfd_section.
658 (lang_size_sections_1): Ignore output section statement address
659 when constraint is -1.
660 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
662 2010-09-09 Tristan Gingold <gingold@adacore.com>
664 * NEWS: Add a entry for alpha-vms.
666 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
668 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
669 newly cloned section.
671 2010-09-02 Richard Henderson <rth@redhat.com>
673 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
675 2010-08-31 Nick Clifton <nickc@redhat.com>
677 * ldlex.l (WILDCHAR): Add the caret and exclamation point
678 characters, so that they can be used inside globs.
680 2010-08-31 Nick Clifton <nickc@redhat.com>
682 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
683 a region's attributes.
685 2010-08-31 Alan Modra <amodra@gmail.com>
687 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
688 output section statement.
690 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
693 * emultempl/elf32.em (_before_allocation): Check audit entry
696 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
699 * emultempl/elf32.em (_after_open): Find one .eh_frame section
702 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
705 * emultempl/elf32.em (_after_open): Find an ELF input for
706 --build-id and --eh-frame-hdr.
708 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
710 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
712 * Makefile.in: Regenerate.
714 2010-08-20 Nick Clifton <nickc@redhat.com>
716 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
719 2010-08-19 Alan Modra <amodra@gmail.com>
721 * NEWS: Mention change in linker script expression evaluation.
723 2010-08-19 Alan Modra <amodra@gmail.com>
725 * ld.texinfo (Expression Section): Detail expression evaluation.
726 (Builtin Functions <ADDR>): Correct.
727 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
729 (Builtin Functions <SEGMENT_START>): Typo fix.
730 * ldexp.c (new_number): New function.
731 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
732 (fold_unary <'~', '!', '-'>): Don't make_abs.
733 (fold_binary): Simplify result section logic. Return NULL section
735 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
737 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
738 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
739 (fold_name <NAME>): No need to handle absolute symbols differently
741 (fold_name <ORIGIN>): Don't return valid result when
742 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
743 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
744 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
745 a plain number to dot, assume the value is relative to expld.section.
746 Make terms not in an output section, absolute.
747 * ldlang.c (print_assignment): Fix style nit.
748 (lang_size_sections_1): Cope with NULL expld.result.section.
749 (lang_do_assignments_1): Likewise.
751 2010-08-12 Alan Modra <amodra@gmail.com>
753 * ldexp.c (new_rel): Remove "str". Update all call sites.
754 (exp_fold_tree_1): When assigning to dot, calculate nextdot
755 using expld.result.section rather than expld.section.
757 2010-08-06 Alan Modra <amodra@gmail.com>
760 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
763 2010-07-28 Alan Modra <amodra@gmail.com>
765 * ldexp.c (exp_print_tree): Print function-like binary nodes as
766 functions rather than in-fix operators. Use fputs and fputc
769 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
770 Ina Pandit <ina.pandit@kpitcummins.com>
772 * configure.tgt: Match all v850 targets.
774 2010-07-20 Mike Frysinger <vapier@gentoo.org>
776 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
777 Declare the default language as C.
779 2010-07-17 Alan Modra <amodra@gmail.com>
781 * ldlang.c (lang_check_section_addresses): Catch overlap for
782 sections that wrap around the address space.
784 2010-06-29 Nick Clifton <nickc@redhat.com>
786 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
787 with the .gcc_except_table. prefix.
789 2010-06-29 Alan Modra <amodra@gmail.com>
791 * emulparams/maxqcoff.sh: Delete file.
792 * scripttempl/maxqcoff.sc: Delete file.
793 * Makefile.am: Remove references to maxq.
794 * configure.tgt: Likewise.
795 * Makefile.in: Regenerate.
796 * configure: Regenerate.
797 * po/POTFILES.in: Regenerate.
799 2010-06-27 Alan Modra <amodra@gmail.com>
801 * pe-dll.c (fill_edata): Avoid set but unused warning.
802 (pe_walk_relocs_of_symbol): Delete set but unused variables.
803 (generate_reloc, pe_implied_import_dll): Likewise.
804 * emultempl/aix.em (open_dynamic_archive): Likewise.
805 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
806 (xtensa_layout_wild): Likewise.
807 (xtensa_colocate_output_literals_callback): Likewise.
809 2010-06-25 Alan Modra <amodra@gmail.com>
811 * emultempl/ppc64elf.em (prelim_size_sections): New function.
812 (ppc_before_allocation): Use it. Size sections before toc edit too.
814 2010-06-25 Alan Modra <amodra@gmail.com>
816 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
818 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
820 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
821 auto-import and merge-rdata defaults same for i[3-7]86 and
824 2010-06-15 Joseph Myers <joseph@codesourcery.com>
826 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
828 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
831 * pe-dll.c (process_def_file_and_drectve): Reorder check for
832 forwarded export name after check for ordinary export.
834 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
836 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
838 2010-06-08 Nick Clifton <nickc@redhat.com>
840 * fdl.texi: Replace with v1.3 text.
841 * ld.texinfo: Replace abbreviated 20th century year numbers with
843 * ldint.texinfo: Likewise.
844 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
845 include of the fdl.texi file.
847 2010-06-01 Tristan Gingold <gingold@adacore.com>
849 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
850 readonly output-section. Handle LIB$INITIALIZE and sections
852 * emultempl/vms.em (vms_place_orphan): Add comments.
854 2010-05-28 Nick Clifton <nickc@redhat.com>
856 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
857 * Makefile.in: Regenerate.
859 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
862 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
863 multiple of maximum page size.
865 2010-05-25 Nick Clifton <nickc@redhat.com>
867 * Makefile.am: Fix typo.
868 * Makefile.in: Regenerate.
870 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
871 Joseph Myers <joseph@codesourcery.com>
872 Andrew Stubbs <ams@codesourcery.com>
874 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
875 (eshelf_fd.c, eshlelf_fd.c): New rules.
876 * Makefile.in: Regenerate.
877 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
879 * emulparams/shelf_fd.sh: New file.
880 * emulparams/shlelf_fd.sh: New file.
881 * emulparams/shlelf_linux.sh: Update comment.
883 2010-05-25 Jay Krell <jay.krell@cornell.edu>
886 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
887 * Makefile.in: Regenerate.
889 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
891 * deffilep.y (opt_name): Allow leading dot.
892 (dot_name): Likewise.
893 (anylang_id): Likewise.
894 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
896 (gld${EMULATION_NAME}_handle_option): Warn about v1.
897 (pep_find_data_imports): Remove superflous warnings about
899 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
900 and active pseudo-relocation-v2 rdata into data section.
901 * emultempl/pe.em (default_merge_rdata): New shell variable.
902 (MERGE_RDATA_V2): New macro.
903 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
906 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
908 * emultempl/pe.em (is_underscoring): New helper function.
909 (gld_${EMULATION_NAME}_before_parse): Replace code
910 for pe(p)_leading_underscore detection by is_underscoring.
912 (GET_INIT_SYMBOL_NAME): Likewise.
916 (gld_${EMULATION_NAME}_set_symbols):
917 * emultempl/pep.em: Likewise.
918 * pe-dll.c (pe_detail_list): Set default
919 underscoring for x64 target.
920 (pe_dll_id_target): Add initialization of
921 pe(p)_leading_underscore.
923 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
925 * pe-dll.c: Removed trailing whitespaces.
927 2010-05-14 Alan Modra <amodra@gmail.com>
930 * ldexp.c (exp_fold_tree_1): If assignment source expression is
931 invalid, make the destination symbol undefined.
933 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
935 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
936 Initialize pe(p)_leading_underscore variable.
937 (set_pe_name): Likewise.
938 * emultempl/pep.em: Likewise.
939 Additional change default to non-underscore for
940 pep_leading_underscore equal to -1.
942 2010-05-07 Tristan Gingold <gingold@adacore.com>
944 * Makefile.in: Regenerate with automake 1.11.1.
947 2010-05-05 Nick Clifton <nickc@redhat.com>
949 * po/es.po: Updated Spanish translation.
951 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
953 * pe-dll.c (_nm_-symbols): Use always underscored variant
955 (__imp_-symbols): Likewise.
956 (___imp_-symbols): Likewise.
957 * NEWS: Mention ABI change for x64 PE-COFF.
959 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
961 * Makefile.am (install-exec-local): Properly install ld as
962 default cross linker.
963 * Makefile.in: Regenerated.
965 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
966 Nick Clifton <nickc@redhat.com>
968 * configure.in (install_as_default): Define and set to true
969 unless --enable-gold=both/gold has been specified.
970 * configure: Regenerate.
972 * Makefile.am (transform): Use ld.bfd as the default name of
974 (install-exec-local): Also install the executable as a binary
975 named 'ld' if install_as_default is true.
976 * Makefile.in: Regenerate.
978 2010-04-22 Nick Clifton <nickc@redhat.com>
980 * po/ld.pot: Updated by the Translation project.
981 * po/vi.po: Updated Vietnamese translation.
982 * po/bg.po: Updated Bulgarian translation.
984 2010-04-15 Andrew Haley <aph@redhat.com>
986 * emultempl/armelf.em (merge_exidx_entries): New variable.
987 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
988 ("no-merge-exidx-entries"): New option.
989 * ld.texinfo (merge-exidx-entries): Document this option.
991 2010-04-14 Tristan Gingold <gingold@adacore.com>
993 * emulparams/alphavms.sh: New file.
994 * emultempl/vms.em: New file.
995 * scripttempl/alphavms.sc: New file.
996 * configure.tgt (alpha*-*-*vms*): Added.
997 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
998 (ealphavms.c): New target.
999 * Makefile.in: Regenerate.
1001 2010-04-09 Nick Clifton <nickc@redhat.com>
1003 * ldlang.c (wild_sort): Remove unused variable section_name.
1005 2010-04-07 Alan Modra <amodra@gmail.com>
1007 * configure: Regenerate.
1009 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
1012 * ld/testsuite/ld-x86-64/unique1.d: New.
1013 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
1015 * ld-x86-64/x86-64.exp: Run unique1.
1017 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
1019 * emultempl/pep.em (U): Macro modified.
1020 (U_SIZE): New helper macro.
1021 (GET_INIT_SYMBOL_NAME): Likewise.
1022 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
1023 and OPTION_LEADING_UNDERSCORE enumerator-values.
1024 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
1026 (definfo): Add new member is_c_symbol.
1027 (D): Add to macro underscore mode parameter.
1028 (init): Add definition for is_c_symbol.
1029 (gld_${EMULATION_NAME}_list_options): Display new options.
1030 (set_pep_name): Adjust underscoring dependent fixed
1032 (gld_${EMULATION_NAME}_set_symbols): Likewise.
1033 (saw_option): Likewise.
1034 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
1035 (set_entry_point): Initial initial_symbol_char dependent to
1036 target's default and new option flag pep_leading_underscore.
1037 * emultempl/pe.em (U): Macro modified.
1038 (U_SIZE): New helper macro.
1039 (GET_INIT_SYMBOL_NAME): Likewise.
1040 (OPTION_LEADING_UNDERSCORE): Add new option define.
1041 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
1042 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
1044 (definfo): Add new member is_c_symbol.
1045 (D): Add to macro underscore mode parameter.
1046 (init): Add definition for is_c_symbol.
1047 (gld_${EMULATION_NAME}_list_options): Display new options.
1048 (set_pep_name): Adjust underscoring dependent fixed
1050 (gld_${EMULATION_NAME}_set_symbols): Likewise.
1051 (saw_option): Likewise.
1052 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
1053 (set_entry_point): Initial initial_symbol_char dependent to
1054 target's default and new option flag pep_leading_underscore.
1055 * pe-dll.c (pe_leading_underscore): New flag variable.
1056 (pe_detail_list): Remove const to allow modify of
1058 (pe_dll_id_target): Initialize pe_details' underscore variable
1059 dependent to target's default and flag pe_leading_underscore.
1060 * pe-dll.h (pe_leading_underscore): Add extern declaration of
1062 * pep-dll.c (pe_leading_underscore): Add alias define for
1063 pep_leading_underscore.
1064 * pep-dll.h (pep_leading_underscore) Add extern declaration of
1066 * ld.texinfo: Add documentation for --(no-)leading-underscore
1069 2010-03-26 Alan Modra <amodra@gmail.com>
1072 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
1073 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
1075 2010-03-25 Joseph Myers <joseph@codesourcery.com>
1077 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
1079 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
1080 * NEWS: Add news entry for TI C6X support.
1081 * configure.tgt (tic6x-*-*): New.
1082 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
1084 2010-03-23 Joseph Myers <joseph@codesourcery.com>
1086 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
1087 BSS_NAME): Define if not already defined. Use in place of some
1088 hardcoded section names.
1090 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1092 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
1094 2010-03-18 Aymeric Vincent <vincent@labri.fr>
1097 * emultempl/sh64elf.em: Add missing EOF.
1099 2010-03-18 Doug Semler <dougsemler@gmail.com>
1101 * pe-dll.c (make_one): Make text section readonly.
1102 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
1103 the jump stub on X86 as /SAFESEH compatible for
1106 2010-03-17 Alan Modra <amodra@gmail.com>
1108 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
1109 *prev instead. Update all callers.
1111 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1113 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
1114 region and phdrs as their placement section.
1116 2010-03-15 Alan Modra <amodra@gmail.com>
1118 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
1119 (ppc_before_allocation): Call sort_toc_sections.
1120 (no_toc_sort, OPTION_NO_TOC_SORT): New.
1121 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1122 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
1124 2010-03-14 Alan Modra <amodra@gmail.com>
1127 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
1128 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
1130 2010-03-11 George Gensure <werkt0@gmail.com>
1133 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
1135 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1137 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
1139 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
1140 (eelf32_sparc_sol2.c): New rule.
1141 (eelf64_sparc_sol2.c): Likewise.
1142 (eelf_x86_64_sol2.c): Likewise.
1143 (eelf_i386_sol2.c): Likewise.
1144 * Makefile.in: Regenerate.
1145 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
1147 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
1148 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
1149 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
1150 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
1151 Add target_extra_emuls.
1152 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
1153 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
1154 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
1155 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
1156 * emulparams/elf32_sparc_sol2.sh: New file.
1157 * emulparams/elf64_sparc_sol2.sh: New file.
1158 * emulparams/elf_i386_sol2.sh: New file.
1159 * emulparams/elf_x86_64_sol2.sh: New file.
1160 * emultempl/solaris2.em: New file.
1162 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
1165 * ld.texinfo: Replace explicitely with explicitly.
1167 2010-02-27 Jie Zhang <jie@codesourcery.com>
1169 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
1170 .fini_array.* when do relocatable linking.
1171 * scripttempl/elf.sc: Likewise.
1172 * scripttempl/elf32sh-symbian.sc: Likewise.
1173 * scripttempl/elf64hppa.sc: Likewise.
1174 * scripttempl/elfxtensa.sc: Likewise.
1176 2010-02-26 Alan Modra <amodra@gmail.com>
1178 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
1180 * scripttempl/armbpabi.sc: Likewise.
1181 * scripttempl/elf32sh-symbian.sc: Likewise.
1182 * scripttempl/elf64hppa.sc: Likewise.
1183 * scripttempl/elfxtensa.sc: Likewise.
1185 2010-02-25 Alan Modra <amodra@gmail.com>
1188 * ldlang.c (init_os): Remove isec param. Don't check for
1189 bfd_section already set or call bfd_init_private_section_data
1191 (exp_init_os): Update init_os call.
1192 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
1193 flags. Call bfd_init_private_section_data here.
1194 (map_input_to_output_sections): Tidy. Update init_os calls.
1195 Use os->sectype to select sec flags for lang_data_statement.
1197 2010-02-23 Alan Modra <amodra@gmail.com>
1200 * ldlang.c: Revert last patch.
1202 2010-02-23 Nick Clifton <nickc@redhat.com>
1204 * po/bg.po: Updated Bulgarian translation.
1206 2010-02-22 Alan Modra <amodra@gmail.com>
1209 * ldlang.c (exp_init_os): Delete forward declaration.
1210 (init_os): Don't check for bfd_section already created and don't
1211 init addr_tree and load_base expressions here.
1212 (map_input_to_output_sections): Only map input to output sections
1213 and set constraints here, and as an exception, create output
1214 sections which have their address set. Move all the other code to..
1215 (create_other_output_sections): ..here. New function. Handle init
1216 of addr_tree and load_base here too.
1217 (lang_process): Call create_other_output_sections.
1219 2010-02-19 Alan Modra <amodra@gmail.com>
1221 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
1222 * Makefile.in: Regenerate.
1224 2010-02-19 Alan Modra <amodra@gmail.com>
1226 * ldlang.c (unique_section_p): Add os param. Allow group
1227 sections to match /DISCARD/. Update all callers.
1228 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
1229 (LDEMUL_BEFORE_ALLOCATION): Define.
1231 2010-02-15 Nick Clifton <nickc@redhat.com>
1233 * po/vi.po: Updated Vietnamese translation.
1235 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1237 * Makefile.am (CFILES): Add ldlex-wrapper.c.
1238 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
1239 (ldlex.o): Replace with...
1240 (ldlex-wrapper.o): ...this new rule.
1241 (EXTRA_ld_new_SOURCES): Add ldlex.l.
1242 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
1243 * Makefile.in: Regenerate.
1244 * ldlex.l (sysdep.h): Don't include here.
1245 * ldlex-wrapper.c: New file.
1247 2010-02-09 Alan Modra <amodra@gmail.com>
1249 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
1250 function parameters.
1252 2010-02-05 Nick Clifton <nickc@redhat.com>
1254 * configure.in (ALL_LIBGUAS): Add bg.
1255 * configure: Regenerate.
1256 * po/bg.po: New Bulgarian translation.
1258 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
1260 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
1261 --target1-abs and --target1-rel options.
1263 2010-02-03 Nick Clifton <nickc@redhat.com>
1265 * emultempl/alphaelf.em: Update value expected from elf_object_id.
1266 * emultempl/hppaelf.em: Likewise.
1267 * emultempl/mipself.em: Likewise.
1268 * emultempl/ppc32elf.em: Likewise.
1269 * emultempl/ppc64elf.em: Likewise.
1271 2010-02-03 Alan Modra <amodra@gmail.com>
1273 * emultempl/ppc64elf.em (build_toc_list): Report errors from
1274 ppc64_elf_next_toc_section.
1275 (after_allocation): Update for changed function names and params.
1276 Run second pass of multitoc partitioning.
1278 2010-01-21 Jon Grant <jg@jguk.org>
1279 Nick Clifton <nickc@redhat.com>
1282 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
1283 a missing file or library. Instead mark the entry as missing and
1284 set the global flag to indicate that missing files were
1286 * ldlang.c (missing_files): New exported variable.
1287 (load_symbols): Skip loading if the file is missing.
1288 (open_input_bfds): Terminate link if any input files were
1290 * ldlang.h (struct lang_input_statement_struct): Add missing_file
1292 Add export of missing_file variable.
1294 2010-01-13 DJ Delorie <dj@redhat.com>
1296 * emultempl/elf32.em (_place_orphan): If an input section doesn't
1297 match an existing output section, but an unused output section
1298 statement does match, use it.
1299 * emultempl/pe.em (_place_orphan): Likewise.
1300 * emultempl/pep.em (_place_orphan): Likewise.
1302 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1304 * configure: Regenerate.
1305 * Makefile.in: Regenerate.
1307 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
1309 * ldver.c (ldversion): Change to "Copyright 2010".
1311 2010-01-08 Alan Modra <amodra@gmail.com>
1314 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
1316 For older changes see ChangeLog-2009
1322 version-control: never