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