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