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