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