Remove the trailing `\n' from TV_MESSAGE.
[binutils.git] / ld / ChangeLog
blob19f4c624dde101af3a281123a180284ea208298d
1 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
3         PR ld/12288
4         * testplug.c: Remove the trailing `\n' from TV_MESSAGE.
6 2010-12-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
8         PR ld/12288
9         * plugin.c (message): Use putchar for the trailing `\n'.
11 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
12             Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
14         PR ld/12289
15         * ldmain.c (main): Don't call plugin_call_cleanup.
17         * plugin.c (plugin_call_cleanup): Make it static.
18         (message): Don't call plugin_call_cleanup.
19         (plugin_load_plugins): Call xatexit with plugin_call_cleanup.
21 2010-12-05  H.J. Lu  <hongjiu.lu@intel.com>
23         PR ld/12289
24         * plugin.c (message): Call plugin_call_cleanup on fatal
25         error.
27 2010-12-05  H.J. Lu  <hongjiu.lu@intel.com>
29         * plugin.c (message): Add a space after `:' in error message.
31 2010-12-05  H.J. Lu  <hongjiu.lu@intel.com>
33         * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n'
34         to einfo.
35         (get_symbols): Likewise.
36         (plugin_notice): Likewise.
37         (plugin_multiple_definition): Likewise.
39 2010-12-05  H.J. Lu  <hongjiu.lu@intel.com>
41         PR ld/12288
42         * plugin.c (message): Add the trailing `\n'.
44 2010-12-05  H.J. Lu  <hongjiu.lu@intel.com>
46         * ldfile.c (ldfile_open_file_search): Check maybe_archive instead
47         of is_archive.
48         * emultempl/aix.em: Likewise.
49         * emultempl/elf32.em: Likewise.
50         * emultempl/linux.em: Likewise.
51         * emultempl/pe.em: Likewise.
52         * emultempl/pep.em: Likewise.
53         * emultempl/sunos.em: Likewise.
54         * emultempl/vms.em: Likewise.
56         * ldlang.c (new_afile): Set maybe_archive instead of is_archive..
58         * ldlang.h (lang_input_statement_struct): Replace is_archive
59         with maybe_archive.
61 2010-12-05  H.J. Lu  <hongjiu.lu@intel.com>
63         PR ld/12277
64         * plugin.c (asymbol_from_plugin_symbol): Properly convert LTO
65         plugin visibility to ELF visibility.
66         (is_visible_from_outside): Re-indent.
68 2010-12-04  Alan Modra  <amodra@gmail.com>
70         * ldlang.c (lang_size_sections_1): Align lma using same alignment
71         as for vma.
73 2010-12-03  H.J. Lu  <hongjiu.lu@intel.com>
75         * lexsup.c (ld_options): Fix a typo in comments.
77 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
79         * plugin.h: Re-indent.
81 2010-11-30  Joel Sherrill  <joel.sherrill@oarcorp.com>
83         * configure.tgt: Add sparc64-rtems.
85 2010-11-26  Alan Modra  <amodra@gmail.com>
87         * po/ja.po: Update.
89 2010-11-25  Alan Modra  <amodra@gmail.com>
91         * po/bg.po: Update.
92         * po/es.po: Update.
93         * po/fi.po: Update.
94         * po/ja.po: New.
95         * po/zh_CN.po: Update.
97 2010-11-25  Jan Hubicka  <hubicka@ucw.cz>
99         * scripttempl/elf.sc: Group .text.exit, text.startup and .text.hot
100         sections.
102 2010-11-23  Matthias Klose  <doko@ubuntu.com>
104         * configure.ac: For --enable-gold, handle value `default' instead of
105         `both*'. Always install ld as ld.gold, install as ld if gold is
106         the default.
107         * configure: Regenerate.
109 2010-11-21  H.J. Lu  <hongjiu.lu@intel.com>
111         * ldfile.c: Re-indent plugin code.
112         * ldlang.c: Likewise.
113         * ldmain.c: Likewise.
114         * plugin.c: Likewise.
116 2010-11-20  H.J. Lu  <hongjiu.lu@intel.com>
118         PR ld/12246
119         * plugin.c (asymbol_from_plugin_symbol): Set alignment of
120         common symbol to 1 for For ELF targets.
122 2010-11-20  H.J. Lu  <hongjiu.lu@intel.com>
124         PR ld/12247
125         * lexsup.c (parse_args): Properly report loading plugin error.
127 2010-11-19  Dave Korn  <dave.korn.cygwin@gmail.com>
129         * plugin.c (is_visible_from_outside): New function.
130         (get_symbols): Use it.
132 2010-11-16  Jie Zhang  <jie.zhang@analog.com>
134         * Makefile.am (eelf32bfinfd.c, eelf32bfin.c): Depend on bfin.em.
135         * Makefile.in: Regenerated.
136         * emulparams/bfin.sh (EXTRA_EM_FILE): Set.
137         * emulparams/elf32bfinfd.sh (EXTRA_EM_FILE): Likewise.
138         * emultempl/bfin.em: New.
140 2010-11-16  Yasuaki Taniguchi  <taniguchi.yasua@jp.fujitsu.com>
142         * emultempl/pe.em (_list_options): Correct typo.
143         * emultempl/pep.em (_list_options): Likewise.
145 2010-11-08  Thomas Schwinge  <thomas@schwinge.name>
147         * configure.host: Add stanza for *-*-gnu*.
149 2010-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
151         * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
153 2010-11-05  Tristan Gingold  <gingold@adacore.com>
155         * po/ld.pot: Regenerate
156         * po/POTFILES.in: Regenerate
158 2010-11-05  Tristan Gingold  <gingold@adacore.com>
160         * NEWS: Add marker for 2.21.
162 2010-11-05  Dave Korn  <dave.korn.cygwin@gmail.com>
164         * plugin.h (plugin_active_plugins_p): New prototype.
165         (is_ir_dummy_bfd): Delete prototype.
166         * plugin.c: Fix formatting issues.
167         (is_ir_dummy_bfd): Make static.
168         (plugin_active_plugins_p): New function.
169         * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
170         are loaded.  Always close file descriptor after claim handler returns.
171         * ldmain.c (add_archive_element): Likewise.
173 2010-11-05  Alan Modra  <amodra@gmail.com>
175         * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.
176         (map_input_to_output_sections): Likewise.
177         (lang_size_sections_1): Likewise.
178         (IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
179         (lang_check_section_addresses): Likewise.
181 2010-11-04  Kai Tietz  <kai.tietz@onevision.com>
183         * scripttempl/pe.sc (.debug_types): New.
184         * scripttempl/pep.sc: Likewise.
186 2010-11-04  Alan Modra  <amodra@gmail.com>
188         * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
190 2010-11-03  Nick Clifton  <nickc@redhat.com>
192         PR ld/12001
193         * ldlang.c (ldlang_def_chain_list): New variable.  Contains a list
194         of symbols defined via the --defsym command line option and
195         currently waiting assignment.
196         (insert_defined): Add a defined symbol to the symbol table.
197         (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
198         (lang_place_defineds): Walk ldlang_def_chain_list defining the
199         symbols.
200         (lang_process): Call lang_place_defineds.
201         (lang_add_assignment): If the assignment has come from a --defsym
202         command line option then call lang_add_def.
204 2010-11-03  Alan Modra  <amodra@gmail.com>
206         * Makefile.am (eelf64hppa.c): Correct dependencies.
207         * Makefile.in: Regenerate.
209 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
211         * scripttempl/armbpabi.sc: Include compressed DWARF debug
212         sections.
213         * scripttempl/avr.sc: Likewise.
214         * scripttempl/elf32cr16.sc: Likewise.
215         * scripttempl/elf32crx.sc: Likewise.
216         * scripttempl/elf32msp430.sc: Likewise.
217         * scripttempl/elf32msp430_3.sc: Likewise.
218         * scripttempl/elf32sh-symbian.sc: Likewise.
219         * scripttempl/elf64hppa.sc: Likewise.
220         * scripttempl/elf_chaos.sc: Likewise.
221         * scripttempl/elfd10v.sc: Likewise.
222         * scripttempl/elfd30v.sc: Likewise.
223         * scripttempl/elfi370.sc: Likewise.
224         * scripttempl/elfm68hc11.sc: Likewise.
225         * scripttempl/elfm68hc12.sc: Likewise.
226         * scripttempl/elfxtensa.sc: Likewise.
227         * scripttempl/ip2k.sc: Likewise.
228         * scripttempl/iq2000.sc: Likewise.
229         * scripttempl/mep.sc: Likewise.
230         * scripttempl/mmo.sc: Likewise.
231         * scripttempl/v850.sc: Likewise.
232         * scripttempl/xstormy16.sc: Likewise.
234 2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
236         * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
237         bfd_openr returns.
238         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
240         * scripttempl/elf.sc: Include compressed DWARF debug sections.
242 2010-10-28  Alan Modra  <amodra@gmail.com>
244         * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
246 2010-10-28  Matthias Klose  <doko@ubuntu.com>
248         * ld.texinfo: Add directory section for info document.
249         * ldint.texinfo: Likewise.
251 2010-10-28  Alan Modra  <amodra@gmail.com>
253         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
254         --no-undefined-version, don't report dot sym versions added by ld.
256 2010-10-28  Alan Modra  <amodra@gmail.com>
258         * ldlang.h (ldlang_add_undef): Add cmdline param.
259         * ldlang.c (undef_from_cmdline): New var.
260         (ldlang_add_undef): Add cmdline param.  Set undef_from_cmdline.
261         (lang_end): Really require -e or -u from command line on
262         relocatable --gc-sections.
263         * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
264         * ldgram.y (extern_name_list_body): Likewise.
265         * lexsup.c (parse_args): Likewise.
266         * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
268 2010-10-25  Alan Modra  <amodra@gmail.com>
270         * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
271         Formatting.
273 2010-10-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
275         * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
276         elf32-sparc-sol2.
277         * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
278         elf64-sparc-sol2.
280 2010-10-22  Alan Modra  <amodra@gmail.com>
282         * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
283         output when section has no contents.
284         (build_link_order <lang_reloc_statement_enum>): Likewise.
286 2010-10-21  Joseph Myers  <joseph@codesourcery.com>
288         * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
289         .c6xabi.attributes, not __TI_build_attributes.
291 2010-10-20  Dave Korn  <dave.korn.cygwin@gmail.com>
293         * plugin.c (get_symbols): Check symbol type correctly.
295 2010-10-15  Dave Korn  <dave.korn.cygwin@gmail.com>
297         * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
298         * configure: Regenerate.
299         * config.in: Likewise.
300         * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
301         trival LoadLibrary-based replacement for Windows systems.
302         [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
303         replacement based on GetProcAddress.
304         [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
305         * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
306         anymore, use its own guard.
308 2010-10-15  Dave Korn  <dave.korn.cygwin@gmail.com>
310         * plugin.c (add_input_file): Take copy of input string.
311         (add_input_library): Likewise.
312         (set_extra_library_path): Likewise.
314 2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
316         Apply LD plugin patch series (part 6/6).
317         * ldlang.c (load_symbols): Handle bfd subsitution when calling the
318         add_archive_element callback.
319         * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
320         member to the plugins and if claimed set "subsbfd" output parameter to
321         point to the dummy IR-only BFD.
323 2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
325         Apply LD plugin patch series (part 5/6).
326         * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
327         find the elf symbol data and set the visibility in the st_other field.
329 2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
331         Apply LD plugin patch series (part 4/6).
332         * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
333         plugin_call_all_symbols_read to before setting of gc_sym_list, and
334         open any new input files that may have been added during it.
335         * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
336         plugin_multiple_definition and let it have first say over what to do
337         with the clashing definitions.
338         * plugin.c (no_more_claiming): New boolean variable.
339         (plugin_cached_allow_multiple_defs): Likewise.
340         (add_input_file): Implement.
341         (add_input_library): Likewise.
342         (set_extra_library_path): Likewise.
343         (plugin_call_claim_file): Don't do anything when no_more_claiming set.
344         (plugin_call_all_symbols_read): Set it.  Disable link info
345         "allow_multiple_definition" flag, but cache its value.
346         (plugin_multiple_definition): New function.
347         * plugin.h (plugin_multiple_definition): Add prototype.
348         * testplug.c (addfile_enum_t): New enumerated typedef.
349         (add_file_t): New struct typedef.
350         (addfiles_list): New variable.
351         (addfiles_tail_chain_ptr): Likewise.
352         (record_add_file): New function.
353         (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
354         (onall_symbols_read): Iterate the list of new files, libs and dirs,
355         adding them.
357 2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
359         Apply LD plugin patch series (part 3/6).
360         * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
361         * plugin.c (non_ironly_hash): Add new bfd hash table.
362         (plugin_load_plugins): Exit early if no plugins to load.  If plugins
363         do load successfully, set notice_all flag in link info.
364         (get_symbols): Implement.
365         (plugin_load_plugins): Exit early if no plugins to load, else after
366         loading plugins successfully enable notice_all mode.
367         (init_non_ironly_hash): Lazily init non_ironly_hash table.
368         (plugin_notice): Record symbols referenced from non-IR files in the
369         non_ironly_hash.  Suppress tracing, cref generation and nocrossrefs
370         tracking for symbols from dummy IR bfds.
371         * plugin.h: Fix formatting.
372         (plugin_notice): Add prototype.
373         * testplug.c (dumpresolutions): New global var.
374         (parse_options): Accept "dumpresolutions".
375         (onall_symbols_read): Get syms and dump resolutions if it was given.
377 2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
379         Apply LD plugin patch series (part 2/6).
380         * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
381         during compat checks if they pass, instead offer any successfully
382         opened and accepted file to the plugin claim file hooks chain.  Create
383         a dummy bfd to accept symbols added by the plugin, if the plugin
384         claims the file.
385         * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
386         read hook chain before ldemul_after_open.
387         * ldlang.h (struct lang_input_statement_struct): Add new single-bit
388         'claimed' flag.
389         * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
390         (IRONLY_SUFFIX_LEN): Length of the above string.
391         (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
392         to store symbols for ir-only files.
393         (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
394         (asymbol_from_plugin_symbol): New function converts symbol formats.
395         (add_symbols): Call it to convert plugin syms to bfd syms and add
396         them to the dummy bfd.
397         * plugin.h: Add missing include guards.
398         (plugin_get_ir_dummy_bfd): Add prototype.
399         (is_ir_dummy_bfd): Likewise.
400         * testplug.c (TV_MESSAGE): New helper macro.
401         (struct claim_file): New struct.
402         (claim_file_t): New typedef.
403         (tag_names[]): Make static and const.
404         (claimfiles_list): New variable.
405         (claimfiles_tail_chain_ptr): Likewise.
406         (last_claimfile): Likewise.
407         (record_claim_file): Record a file to claim on a singly-linked list.
408         (parse_symdefstr): Parse an ASCII representation of a symbol from a
409         plugin option into the fields of a struct ld_plugin_symbol.
410         (record_claimed_file_symbol):  Use it to parse plugin option for
411         adding a symbol.
412         (parse_option): Parse claim file and add symbol options.
413         (dump_tv_tag): Use TV_MESSAGE.
414         (onload): Likewise.
415         (onclaim_file): Make static.  Use TV_MESSAGE.  Scan list of files to
416         claim and claim this file if required, adding any symbols specified.
417         (onall_symbols_read): Make static and use TV_MESSAGE.
418         (oncleanup): Likewise.
420 2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
422         Apply LD plugin patch series (part 1/6).
423         * configure.in: Add AC_CHECKs for file io and dlfcn headers and
424         functions and AC_SEARCH for -ldl.
425         (enable_plugins): New shell variable set if above tests find dlopen
426         functionality.
427         (ENABLE_PLUGINS): Add related automake conditional.
428         * configure: Regenerate.
429         * config.in: Likewise.
430         * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
431         on ENABLE_PLUGINS being defined.
432         (PLUGIN_H): Likewise for header file.
433         (PLUGIN_OBJECT): Likewise for object file.
434         (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
435         (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
436         (CFILES): Use PLUGIN_C.
437         (HFILES): Use PLUGIN_H.
438         (OFILES): Use PLUGIN_OBJECT.
439         (ld_new_SOURCES): Use PLUGIN_C.
440         (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
441         (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
442         for test plugin.
443         (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
444         (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
445         * Makefile.in: Regenerate.
446         * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
447         sys/file.h where available.  Include dlfcn.h when ENABLE_PLUGINS.
448         (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
449         (O_WRONLY): Likewise.
450         (O_RDWR): Likewise.
451         (O_ACCMODE): Likewise.
452         (O_BINARY): Likewise.
453         (SEEK_SET): Likewise.
454         (SEEK_CUR): Likewise.
455         (SEEK_END): Likewise.
456         * ldmisc.c (vfinfo): Make non-static.  Add %p format char.
457         * ldmisc.h (vfinfo): Declare extern prototype.
458         * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
459         OPTION_PLUGIN and OPTION_PLUGIN_OPT.
460         (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
461         (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
462         option parsing is complete.
463         * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
464         after lang_finish.
465         * plugin.c: New source file.
466         * plugin.h: Likewise new header.
467         * testplug.c: New source file.
469 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
471         * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
472         basever_syms to global_syms.
473         Emit global_syms into .dynamic section for all executables and
474         shared objects.
475         (elf_solaris2_after_allocation): New function.
476         (LDEMUL_AFTER_ALLOCATION): Use it.
477         * emulparams/solaris2.sh: New file.
478         * emulparams/elf32_sparc_sol2.sh: Use it.
479         * emulparams/elf64_sparc_sol2.sh: Likewise.
480         * emulparams/elf_i386_sol2.sh: Likewise.
481         * emulparams/elf_x86_64_sol2.sh: Likewise.
482         * Makefile.am (eelf32_sparc_sol2.c): Depend on
483         $(srcdir)/emulparams/solaris2.sh.
484         (eelf64_sparc_sol2.c): Likewise.
485         (eelf_x86_64_sol2.c): Likewise.
486         (eelf_i386_sol2.c): Likewise.
487         * Makefile.in: Regenerate.
489 2010-10-06  Nick Clifton  <nickc@redhat.com>
491         * ld.texinfo: Update description of computation of VMA and LMA
492         addresses for output sections.
494 2010-10-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
496         * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
497         * Makefile.in: Regenerate.
499         * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
500         (ALL_EMULATION_SOURCES): ... this new variable.
501         (ALL_64_EMULATIONS): Rewrite in terms of ...
502         (ALL_64_EMULATION_SOURCES): ... this new variable.
503         (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
504         variables.
505         (eelf32microblaze.c): Fix indentation.
506         * Makefile.in: Regenerate.
508 2010-10-04  Bernd Schmidt  <bernds@codesourcery.com>
510         * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
511         _bfd_elf_single_rel_hdr.
513 2010-10-01  Alan Modra  <amodra@gmail.com>
515         PR ld/12066
516         * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
517         * ld.texinfo (Expression Section): Don't say absolute symbols
518         are addresses.
520 2010-09-29  Alan Modra  <amodra@gmail.com>
522         * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
523         section for orphans handled here.
525 2010-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
527         * configure: Regenerate.
529 2010-09-23  Dave Korn  <dave.korn.cygwin@gmail.com>
531         * scripttempl/armcoff.sc: Revert 2010-09-22 change.
533 2010-09-23  Alan Modra  <amodra@gmail.com>
535         * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
536         to output section on a final link.
538 2010-09-22  Kai Tietz  <kai.tietz@onevision.com>
540         * ldlang.c (lang_add_section): Allow for debugging
541         section to be marked as noload but to keep content.
542         (IGNORE_SECTION): Likewise.
543         (lang_check_section_addresses): Likewise.
544         * ldwrite.c (build_link_order): Likewise.
546         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
547         idata to orphan set.
548         * emultempl/pep.em: Likewise.
549         * scripttempl/armcoff.sc: Separate idata
550         and add __IAT_start__ and __IAT_end__ labels.
551         * scripttempl/pe.sc: Likewise.
552         * scripttempl/pep.sc: Likewise.
554 2010-09-20  David S. Miller  <davem@davemloft.net>
556         * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
558 2010-09-16  Alan Modra  <amodra@gmail.com>
560         * ld.texinfo (NOLOAD): Do not erroneously state that contents will
561         appear in output file.
562         * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
563         unless SEC_COFF_SHARED_LIBRARY.
564         (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
565         output sections.
566         (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
567         to update dot in region.  Ditto when setting SEC_ALLOC if dot
568         advanced due to assignment.
569         * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
571 2010-09-15  Kai Tietz  <kai.tietz@onevision.com>
573         * scripttempl/pep.sc: Add .xdata segment and
574         put into .pdata all segments beginning with .pdata.
576 2010-09-10  Alan Modra  <amodra@gmail.com>
578         PR ld/11931
579         * ldlang.h (lang_for_each_statement_worker): Declare.
580         * ldlang.c (lang_for_each_statement_worker): Make global.  Don't
581         recurse into children of output_section_statement with constraint
582         set to -1.
583         (print_assignment): Handle NULL output_section->bfd_section.
584         (lang_size_sections_1): Ignore output section statement address
585         when constraint is -1.
586         * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
588 2010-09-09  Tristan Gingold  <gingold@adacore.com>
590         * NEWS: Add a entry for alpha-vms.
592 2010-09-07  Andrew Burgess  <aburgess@broadcom.com>
594         * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
595         newly cloned section.
597 2010-09-02  Richard Henderson  <rth@redhat.com>
599         * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
601 2010-08-31  Nick Clifton  <nickc@redhat.com>
603         * ldlex.l (WILDCHAR): Add the caret and exclamation point
604         characters, so that they can be used inside globs.
606 2010-08-31  Nick Clifton  <nickc@redhat.com>
608         * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
609         a region's attributes.
611 2010-08-31  Alan Modra  <amodra@gmail.com>
613         * scripttempl/mmo.sc: Move assignment to "Main" inside .text
614         output section statement.
616 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
618         PR ld/11946
619         * emultempl/elf32.em (_before_allocation): Check audit entry
620         only on ELF input.
622 2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>
624         PR ld/11937
625         * emultempl/elf32.em (_after_open): Find one .eh_frame section
626         for --eh-frame-hdr.
628 2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>
630         PR ld/11937
631         * emultempl/elf32.em (_after_open): Find an ELF input for
632         --build-id and --eh-frame-hdr.
634 2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
636         * Makefile.am (eshlelf_fd.c): Correct the name of the tool
637         directory.
638         * Makefile.in: Regenerate.
640 2010-08-20  Nick Clifton  <nickc@redhat.com>
642         * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
643         returning NULL.
645 2010-08-19  Alan Modra  <amodra@gmail.com>
647         * NEWS: Mention change in linker script expression evaluation.
649 2010-08-19  Alan Modra  <amodra@gmail.com>
651         * ld.texinfo (Expression Section): Detail expression evaluation.
652         (Builtin Functions <ADDR>): Correct.
653         (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
654         the same as ADDR.
655         (Builtin Functions <SEGMENT_START>): Typo fix.
656         * ldexp.c (new_number): New function.
657         (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
658         (fold_unary <'~', '!', '-'>): Don't make_abs.
659         (fold_binary): Simplify result section logic.  Return NULL section
660         for logical ops.
661         (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
662         a consistent result.
663         (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
664         (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
665         (fold_name <NAME>): No need to handle absolute symbols differently
666         from relative ones.
667         (fold_name <ORIGIN>): Don't return valid result when
668         lang_first_phase_enum.  Return new_rel_from_abs, not new_abs.
669         (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
670         (exp_fold_tree_1): Ajust for NULL expld.result.section.  When assigning
671         a plain number to dot, assume the value is relative to expld.section.
672         Make terms not in an output section, absolute.
673         * ldlang.c (print_assignment): Fix style nit.
674         (lang_size_sections_1): Cope with NULL expld.result.section.
675         (lang_do_assignments_1): Likewise.
677 2010-08-12  Alan Modra  <amodra@gmail.com>
679         * ldexp.c (new_rel): Remove "str".  Update all call sites.
680         (exp_fold_tree_1): When assigning to dot, calculate nextdot
681         using expld.result.section rather than expld.section.
683 2010-08-06  Alan Modra  <amodra@gmail.com>
685         PR ld/11887
686         * ldlang.c (lang_add_vers_depend): Don't leave version_needed
687         uninitialised.
689 2010-07-28  Alan Modra  <amodra@gmail.com>
691         * ldexp.c (exp_print_tree): Print function-like binary nodes as
692         functions rather than in-fix operators.  Use fputs and fputc
693         where appropriate.
695 2010-07-23  Naveen.H.S  <naveen.S@kpitcummins.com>
696             Ina Pandit  <ina.pandit@kpitcummins.com>
698         * configure.tgt: Match all v850 targets.
700 2010-07-20  Mike Frysinger  <vapier@gentoo.org>
702         * ld.texinfo (VERSION): Remove "int" from example script and add ";".
703         Declare the default language as C.
705 2010-07-17  Alan Modra  <amodra@gmail.com>
707         * ldlang.c (lang_check_section_addresses): Catch overlap for
708         sections that wrap around the address space.
710 2010-06-29  Nick Clifton  <nickc@redhat.com>
712         * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
713         with the .gcc_except_table. prefix.
715 2010-06-29  Alan Modra  <amodra@gmail.com>
717         * emulparams/maxqcoff.sh: Delete file.
718         * scripttempl/maxqcoff.sc: Delete file.
719         * Makefile.am: Remove references to maxq.
720         * configure.tgt: Likewise.
721         * Makefile.in: Regenerate.
722         * configure: Regenerate.
723         * po/POTFILES.in: Regenerate.
725 2010-06-27  Alan Modra  <amodra@gmail.com>
727         * pe-dll.c (fill_edata): Avoid set but unused warning.
728         (pe_walk_relocs_of_symbol): Delete set but unused variables.
729         (generate_reloc, pe_implied_import_dll): Likewise.
730         * emultempl/aix.em (open_dynamic_archive): Likewise.
731         * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
732         (xtensa_layout_wild): Likewise.
733         (xtensa_colocate_output_literals_callback): Likewise.
735 2010-06-25  Alan Modra  <amodra@gmail.com>
737         * emultempl/ppc64elf.em (prelim_size_sections): New function.
738         (ppc_before_allocation): Use it.  Size sections before toc edit too.
740 2010-06-25  Alan Modra  <amodra@gmail.com>
742         * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
744 2010-06-20  Danny Smith  <dannysmith@users.sourceforge.net>
746         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
747         auto-import and merge-rdata defaults same for i[3-7]86 and
748         x86_64 mingw.
750 2010-06-15  Joseph Myers  <joseph@codesourcery.com>
752         * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
754 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
756         PR ld/11603
757         * pe-dll.c (process_def_file_and_drectve): Reorder check for
758         forwarded export name after check for ordinary export.
760 2010-06-08  Bernd Schmidt  <bernds@codesourcery.com>
762         * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
764 2010-06-08  Nick Clifton  <nickc@redhat.com>
766         * fdl.texi: Replace with v1.3 text.
767         * ld.texinfo: Replace abbreviated 20th century year numbers with
768         full versions.
769         * ldint.texinfo: Likewise.
770         Relicense under GFDL v1.3.  Replace text of v1.1 FDL with an
771         include of the fdl.texi file.
773 2010-06-01  Tristan Gingold  <gingold@adacore.com>
775         * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
776         readonly output-section. Handle LIB$INITIALIZE and sections
777         created by gcc.
778         * emultempl/vms.em (vms_place_orphan): Add comments.
780 2010-05-28  Nick Clifton  <nickc@redhat.com>
782         * Makefile.am (eshlelf_fd.c): Fix typo in rule.
783         * Makefile.in: Regenerate.
785 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
787         PR ld/11628
788         * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
789         multiple of maximum page size.
791 2010-05-25  Nick Clifton  <nickc@redhat.com>
793         * Makefile.am: Fix typo.
794         * Makefile.in: Regenerate.
796 2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
797             Joseph Myers  <joseph@codesourcery.com>
798             Andrew Stubbs  <ams@codesourcery.com>
800         * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
801         (eshelf_fd.c, eshlelf_fd.c): New rules.
802         * Makefile.in: Regenerate.
803         * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
804         emulations.
805         * emulparams/shelf_fd.sh: New file.
806         * emulparams/shlelf_fd.sh: New file.
807         * emulparams/shlelf_linux.sh: Update comment.
809 2010-05-25  Jay Krell  <jay.krell@cornell.edu>
811         PR ld/11621
812         * Makefile.am: Replace all occurences of .o with .@OBJEXT@
813         * Makefile.in: Regenerate.
815 2010-05-25  Kai Tietz  <kai.tietz@onevision.com>
817         * deffilep.y (opt_name): Allow leading dot.
818         (dot_name): Likewise.
819         (anylang_id): Likewise.
820         * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
821         default auto_import.
822         (gld${EMULATION_NAME}_handle_option): Warn about v1.
823         (pep_find_data_imports): Remove superflous warnings about
824         auto-import.
825         (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
826         and active pseudo-relocation-v2 rdata into data section.
827         * emultempl/pe.em (default_merge_rdata): New shell variable.
828         (MERGE_RDATA_V2): New macro.
829         (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
830         selected script.
832 2010-05-15  Kai Tietz  <kai.tietz@onevision.com>
834         * emultempl/pe.em (is_underscoring): New helper function.
835         (gld_${EMULATION_NAME}_before_parse): Replace code
836         for pe(p)_leading_underscore detection by is_underscoring.
837         (U): Likewise.
838         (GET_INIT_SYMBOL_NAME): Likewise.
839         (U_SIZE): Likewise.
840         (set_pe_name):
841         (set_entry_point):
842         (gld_${EMULATION_NAME}_set_symbols):
843         * emultempl/pep.em: Likewise.
844         * pe-dll.c (pe_detail_list): Set default
845         underscoring for x64 target.
846         (pe_dll_id_target): Add initialization of
847         pe(p)_leading_underscore.
849 2010-05-15  Dave Korn  <dave.korn.cygwin@gmail.com>
851         * pe-dll.c: Removed trailing whitespaces.
853 2010-05-14  Alan Modra  <amodra@gmail.com>
855         PR ld/11583
856         * ldexp.c (exp_fold_tree_1): If assignment source expression is
857         invalid, make the destination symbol undefined.
859 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
861         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
862         Initialize pe(p)_leading_underscore variable.
863         (set_pe_name): Likewise.
864         * emultempl/pep.em: Likewise.
865         Additional change default to non-underscore for
866         pep_leading_underscore equal to -1.
868 2010-05-07  Tristan Gingold  <gingold@adacore.com>
870         * Makefile.in: Regenerate with automake 1.11.1.
871         * aclocal.m4: Ditto.
873 2010-05-05  Nick Clifton  <nickc@redhat.com>
875         * po/es.po: Updated Spanish translation.
877 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
879         * pe-dll.c (_nm_-symbols): Use always underscored variant
880         for symbols.
881         (__imp_-symbols): Likewise.
882         (___imp_-symbols): Likewise.
883         * NEWS: Mention ABI change for x64 PE-COFF.
885 2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>
887         * Makefile.am (install-exec-local): Properly install ld as
888         default cross linker.
889         * Makefile.in: Regenerated.
891 2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>
892             Nick Clifton  <nickc@redhat.com>
894         * configure.in (install_as_default): Define and set to true
895         unless --enable-gold=both/gold has been specified.
896         * configure: Regenerate.
898         * Makefile.am (transform): Use ld.bfd as the default name of
899         the linker.
900         (install-exec-local): Also install the executable as a binary
901         named 'ld' if install_as_default is true.
902         * Makefile.in: Regenerate.
904 2010-04-22  Nick Clifton  <nickc@redhat.com>
906         * po/ld.pot: Updated by the Translation project.
907         * po/vi.po: Updated Vietnamese translation.
908         * po/bg.po: Updated Bulgarian translation.
910 2010-04-15  Andrew Haley  <aph@redhat.com>
912         * emultempl/armelf.em (merge_exidx_entries): New variable.
913         (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
914         ("no-merge-exidx-entries"): New option.
915         * ld.texinfo (merge-exidx-entries): Document this option.
917 2010-04-14  Tristan Gingold  <gingold@adacore.com>
919         * emulparams/alphavms.sh: New file.
920         * emultempl/vms.em: New file.
921         * scripttempl/alphavms.sc: New file.
922         * configure.tgt (alpha*-*-*vms*): Added.
923         * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
924         (ealphavms.c): New target.
925         * Makefile.in: Regenerate.
927 2010-04-09  Nick Clifton  <nickc@redhat.com>
929         * ldlang.c (wild_sort): Remove unused variable section_name.
931 2010-04-07  Alan Modra  <amodra@gmail.com>
933         * configure: Regenerate.
935 2010-04-06  H.J. Lu  <hongjiu.lu@intel.com>
937         PR ld/11434
938         * ld/testsuite/ld-x86-64/unique1.d: New.
939         * ld/testsuite/ld-x86-64/unique1.s: Likewise.
941         * ld-x86-64/x86-64.exp: Run unique1.
943 2010-04-05  Kai Tietz  <kai.tietz@onevision.com>
945         * emultempl/pep.em (U): Macro modified.
946         (U_SIZE): New helper macro.
947         (GET_INIT_SYMBOL_NAME): Likewise.
948         (enum options): Add OPTION_NO_LEADING_UNDERSCORE
949         and OPTION_LEADING_UNDERSCORE enumerator-values.
950         (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
951         option.
952         (definfo): Add new member is_c_symbol.
953         (D): Add to macro underscore mode parameter.
954         (init): Add definition for is_c_symbol.
955         (gld_${EMULATION_NAME}_list_options): Display new options.
956         (set_pep_name): Adjust underscoring dependent fixed
957         symbol handling.
958         (gld_${EMULATION_NAME}_set_symbols): Likewise.
959         (saw_option): Likewise.
960         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
961         (set_entry_point): Initial initial_symbol_char dependent to
962         target's default and new option flag pep_leading_underscore.
963         * emultempl/pe.em (U): Macro modified.
964         (U_SIZE): New helper macro.
965         (GET_INIT_SYMBOL_NAME): Likewise.
966         (OPTION_LEADING_UNDERSCORE): Add new option define.
967         (OPTION_NO_LEADING_UNDERSCORE): Likewise.
968         (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
969         option.
970         (definfo): Add new member is_c_symbol.
971         (D): Add to macro underscore mode parameter.
972         (init): Add definition for is_c_symbol.
973         (gld_${EMULATION_NAME}_list_options): Display new options.
974         (set_pep_name): Adjust underscoring dependent fixed
975         symbol handling.
976         (gld_${EMULATION_NAME}_set_symbols): Likewise.
977         (saw_option): Likewise.
978         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
979         (set_entry_point): Initial initial_symbol_char dependent to
980         target's default and new option flag pep_leading_underscore.
981         * pe-dll.c (pe_leading_underscore): New flag variable.
982         (pe_detail_list): Remove const to allow modify of
983         member underscore.
984         (pe_dll_id_target): Initialize pe_details' underscore variable
985         dependent to target's default and flag pe_leading_underscore.
986         * pe-dll.h (pe_leading_underscore): Add extern declaration of
987         option flag.
988         * pep-dll.c (pe_leading_underscore): Add alias define for
989         pep_leading_underscore.
990         * pep-dll.h (pep_leading_underscore) Add extern declaration of
991         option flag.
992         * ld.texinfo: Add documentation for --(no-)leading-underscore
993         option.
995 2010-03-26  Alan Modra  <amodra@gmail.com>
997         PR ld/11426
998         * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
999         (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
1001 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
1003         * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
1004         eelf32_tic6x_le.o.
1005         (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
1006         * NEWS: Add news entry for TI C6X support.
1007         * configure.tgt (tic6x-*-*): New.
1008         * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
1010 2010-03-23  Joseph Myers  <joseph@codesourcery.com>
1012         * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
1013         BSS_NAME): Define if not already defined.  Use in place of some
1014         hardcoded section names.
1016 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1018         * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
1020 2010-03-18  Aymeric Vincent  <vincent@labri.fr>
1022         PR ld/11384
1023         * emultempl/sh64elf.em: Add missing EOF.
1025 2010-03-18  Doug Semler  <dougsemler@gmail.com>
1027         * pe-dll.c (make_one): Make text section readonly.
1028         (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
1029         the jump stub on X86 as /SAFESEH compatible for
1030         native toolchains.
1032 2010-03-17  Alan Modra  <amodra@gmail.com>
1034         * ldlang.c (lang_size_sections_1): Remove "s" param.  Set "s" from
1035         *prev instead.  Update all callers.
1037 2010-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
1039         * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
1040         region and phdrs as their placement section.
1042 2010-03-15  Alan Modra  <amodra@gmail.com>
1044         * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
1045         (ppc_before_allocation): Call sort_toc_sections.
1046         (no_toc_sort, OPTION_NO_TOC_SORT): New.
1047         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1048          PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
1050 2010-03-14  Alan Modra  <amodra@gmail.com>
1052         PR ld/11378
1053         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
1054         ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
1056 2010-03-11  George Gensure  <werkt0@gmail.com>
1058         PR ld/11367
1059         * ldcref.c (handle_asneeded_cref): Correct copying of refs.
1061 2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1063         * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
1064         eelf_i386_sol2.o.
1065         (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
1066         (eelf32_sparc_sol2.c): New rule.
1067         (eelf64_sparc_sol2.c): Likewise.
1068         (eelf_x86_64_sol2.c): Likewise.
1069         (eelf_i386_sol2.c): Likewise.
1070         * Makefile.in: Regenerate.
1071         * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
1072         elf_i386_sol2.
1073         Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
1074         (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
1075         Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
1076         (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
1077         Add target_extra_emuls.
1078         (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
1079         Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
1080         (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
1081         Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
1082         * emulparams/elf32_sparc_sol2.sh: New file.
1083         * emulparams/elf64_sparc_sol2.sh: New file.
1084         * emulparams/elf_i386_sol2.sh: New file.
1085         * emulparams/elf_x86_64_sol2.sh: New file.
1086         * emultempl/solaris2.em: New file.
1088 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
1090         PR ld/11330
1091         * ld.texinfo: Replace explicitely with explicitly.
1093 2010-02-27  Jie Zhang  <jie@codesourcery.com>
1095         * scripttempl/armbpabi.sc: Don't combine .init_array.* or
1096         .fini_array.* when do relocatable linking.
1097         * scripttempl/elf.sc: Likewise.
1098         * scripttempl/elf32sh-symbian.sc: Likewise.
1099         * scripttempl/elf64hppa.sc: Likewise.
1100         * scripttempl/elfxtensa.sc: Likewise.
1102 2010-02-26  Alan Modra  <amodra@gmail.com>
1104         * scripttempl/elf.sc (.fini_array): Place input .fini_array after
1105         .fini_array.*.
1106         * scripttempl/armbpabi.sc: Likewise.
1107         * scripttempl/elf32sh-symbian.sc: Likewise.
1108         * scripttempl/elf64hppa.sc: Likewise.
1109         * scripttempl/elfxtensa.sc: Likewise.
1111 2010-02-25  Alan Modra  <amodra@gmail.com>
1113         PR ld/11304
1114         * ldlang.c (init_os): Remove isec param.  Don't check for
1115         bfd_section already set or call bfd_init_private_section_data
1116         here.
1117         (exp_init_os): Update init_os call.
1118         (lang_add_section): Tidy.  Really don't set SEC_LINK_ONCE
1119         flags.  Call bfd_init_private_section_data here.
1120         (map_input_to_output_sections): Tidy.  Update init_os calls.
1121         Use os->sectype to select sec flags for lang_data_statement.
1123 2010-02-23  Alan Modra  <amodra@gmail.com>
1125         PR ld/11304
1126         * ldlang.c: Revert last patch.
1128 2010-02-23  Nick Clifton  <nickc@redhat.com>
1130         * po/bg.po: Updated Bulgarian translation.
1132 2010-02-22  Alan Modra  <amodra@gmail.com>
1134         PR ld/11304
1135         * ldlang.c (exp_init_os): Delete forward declaration.
1136         (init_os): Don't check for bfd_section already created and don't
1137         init addr_tree and load_base expressions here.
1138         (map_input_to_output_sections): Only map input to output sections
1139         and set constraints here, and as an exception, create output
1140         sections which have their address set.  Move all the other code to..
1141         (create_other_output_sections): ..here.  New function.  Handle init
1142         of addr_tree and load_base here too.
1143         (lang_process): Call create_other_output_sections.
1145 2010-02-19  Alan Modra  <amodra@gmail.com>
1147         * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
1148         * Makefile.in: Regenerate.
1150 2010-02-19  Alan Modra  <amodra@gmail.com>
1152         * ldlang.c (unique_section_p): Add os param.  Allow group
1153         sections to match /DISCARD/.  Update all callers.
1154         * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
1155         (LDEMUL_BEFORE_ALLOCATION): Define.
1157 2010-02-15  Nick Clifton  <nickc@redhat.com>
1159         * po/vi.po: Updated Vietnamese translation.
1161 2010-02-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
1163         * Makefile.am (CFILES): Add ldlex-wrapper.c.
1164         (OFILES): Replace ldlex.c with ldlex-wrapper.c.
1165         (ldlex.o): Replace with...
1166         (ldlex-wrapper.o): ...this new rule.
1167         (EXTRA_ld_new_SOURCES): Add ldlex.l.
1168         (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
1169         * Makefile.in: Regenerate.
1170         * ldlex.l (sysdep.h): Don't include here.
1171         * ldlex-wrapper.c: New file.
1173 2010-02-09  Alan Modra  <amodra@gmail.com>
1175         * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
1176         function parameters.
1178 2010-02-05  Nick Clifton  <nickc@redhat.com>
1180         * configure.in (ALL_LIBGUAS): Add bg.
1181         * configure: Regenerate.
1182         * po/bg.po: New Bulgarian translation.
1184 2010-02-05  Ryan Mansfield  <rmansfield@qnx.com>
1186         * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
1187         --target1-abs and --target1-rel options.
1189 2010-02-03  Nick Clifton  <nickc@redhat.com>
1191         * emultempl/alphaelf.em: Update value expected from elf_object_id.
1192         * emultempl/hppaelf.em: Likewise.
1193         * emultempl/mipself.em: Likewise.
1194         * emultempl/ppc32elf.em: Likewise.
1195         * emultempl/ppc64elf.em: Likewise.
1197 2010-02-03  Alan Modra  <amodra@gmail.com>
1199         * emultempl/ppc64elf.em (build_toc_list): Report errors from
1200         ppc64_elf_next_toc_section.
1201         (after_allocation): Update for changed function names and params.
1202         Run second pass of multitoc partitioning.
1204 2010-01-21  Jon Grant  <jg@jguk.org>
1205             Nick Clifton  <nickc@redhat.com>
1207         PR 4437
1208         * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
1209         a missing file or library.  Instead mark the entry as missing and
1210         set the global flag to indicate that missing files were
1211         encountered.
1212         * ldlang.c (missing_files): New exported variable.
1213         (load_symbols): Skip loading if the file is missing.
1214         (open_input_bfds): Terminate link if any input files were
1215         missing.
1216         * ldlang.h (struct lang_input_statement_struct): Add missing_file
1217         field.
1218         Add export of missing_file variable.
1220 2010-01-13  DJ Delorie  <dj@redhat.com>
1222         * emultempl/elf32.em (_place_orphan): If an input section doesn't
1223         match an existing output section, but an unused output section
1224         statement does match, use it.
1225         * emultempl/pe.em (_place_orphan): Likewise.
1226         * emultempl/pep.em (_place_orphan): Likewise.
1228 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1230         * configure: Regenerate.
1231         * Makefile.in: Regenerate.
1233 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1235         * ldver.c (ldversion): Change to "Copyright 2010".
1237 2010-01-08  Alan Modra  <amodra@gmail.com>
1239         PR 11107
1240         * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
1242 For older changes see ChangeLog-2009
1244 Local Variables:
1245 mode: change-log
1246 left-margin: 8
1247 fill-column: 74
1248 version-control: never
1249 End: