OSDN Git Service

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