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