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