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