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