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