ld/
[external/binutils.git] / ld / ChangeLog
1 2010-09-23  Alan Modra  <amodra@gmail.com>
2
3         * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
4         to output section on a final link.
5
6 2010-09-22  Kai Tietz  <kai.tietz@onevision.com>
7
8         * ldlang.c (lang_add_section): Allow for debugging
9         section to be marked as noload but to keep content.
10         (IGNORE_SECTION): Likewise.
11         (lang_check_section_addresses): Likewise.
12         * ldwrite.c (build_link_order): Likewise.
13
14         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
15         idata to orphan set.
16         * emultempl/pep.em: Likewise.
17         * scripttempl/armcoff.sc: Separate idata
18         and add __IAT_start__ and __IAT_end__ labels.
19         * scripttempl/pe.sc: Likewise.
20         * scripttempl/pep.sc: Likewise.
21
22 2010-09-20  David S. Miller  <davem@davemloft.net>
23
24         * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
25
26 2010-09-16  Alan Modra  <amodra@gmail.com>
27
28         * ld.texinfo (NOLOAD): Do not erroneously state that contents will
29         appear in output file.
30         * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
31         unless SEC_COFF_SHARED_LIBRARY.
32         (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
33         output sections.
34         (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
35         to update dot in region.  Ditto when setting SEC_ALLOC if dot
36         advanced due to assignment.
37         * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
38
39 2010-09-15  Kai Tietz  <kai.tietz@onevision.com>
40
41         * scripttempl/pep.sc: Add .xdata segment and
42         put into .pdata all segments beginning with .pdata.
43
44 2010-09-10  Alan Modra  <amodra@gmail.com>
45
46         PR ld/11931
47         * ldlang.h (lang_for_each_statement_worker): Declare.
48         * ldlang.c (lang_for_each_statement_worker): Make global.  Don't
49         recurse into children of output_section_statement with constraint
50         set to -1.
51         (print_assignment): Handle NULL output_section->bfd_section.
52         (lang_size_sections_1): Ignore output section statement address
53         when constraint is -1.
54         * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
55
56 2010-09-09  Tristan Gingold  <gingold@adacore.com>
57
58         * NEWS: Add a entry for alpha-vms.
59
60 2010-09-07  Andrew Burgess  <aburgess@broadcom.com>
61
62         * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
63         newly cloned section.
64
65 2010-09-02  Richard Henderson  <rth@redhat.com>
66
67         * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
68
69 2010-08-31  Nick Clifton  <nickc@redhat.com>
70
71         * ldlex.l (WILDCHAR): Add the caret and exclamation point
72         characters, so that they can be used inside globs.
73
74 2010-08-31  Nick Clifton  <nickc@redhat.com>
75
76         * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
77         a region's attributes.
78
79 2010-08-31  Alan Modra  <amodra@gmail.com>
80
81         * scripttempl/mmo.sc: Move assignment to "Main" inside .text
82         output section statement.
83
84 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
85
86         PR ld/11946
87         * emultempl/elf32.em (_before_allocation): Check audit entry
88         only on ELF input.
89
90 2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>
91
92         PR ld/11937
93         * emultempl/elf32.em (_after_open): Find one .eh_frame section
94         for --eh-frame-hdr.
95
96 2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>
97
98         PR ld/11937
99         * emultempl/elf32.em (_after_open): Find an ELF input for
100         --build-id and --eh-frame-hdr.
101
102 2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
103
104         * Makefile.am (eshlelf_fd.c): Correct the name of the tool
105         directory.
106         * Makefile.in: Regenerate.
107
108 2010-08-20  Nick Clifton  <nickc@redhat.com>
109
110         * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
111         returning NULL.
112
113 2010-08-19  Alan Modra  <amodra@gmail.com>
114
115         * NEWS: Mention change in linker script expression evaluation.
116
117 2010-08-19  Alan Modra  <amodra@gmail.com>
118
119         * ld.texinfo (Expression Section): Detail expression evaluation.
120         (Builtin Functions <ADDR>): Correct.
121         (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
122         the same as ADDR.
123         (Builtin Functions <SEGMENT_START>): Typo fix.
124         * ldexp.c (new_number): New function.
125         (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
126         (fold_unary <'~', '!', '-'>): Don't make_abs.
127         (fold_binary): Simplify result section logic.  Return NULL section
128         for logical ops.
129         (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
130         a consistent result.
131         (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
132         (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
133         (fold_name <NAME>): No need to handle absolute symbols differently
134         from relative ones.
135         (fold_name <ORIGIN>): Don't return valid result when
136         lang_first_phase_enum.  Return new_rel_from_abs, not new_abs.
137         (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
138         (exp_fold_tree_1): Ajust for NULL expld.result.section.  When assigning
139         a plain number to dot, assume the value is relative to expld.section.
140         Make terms not in an output section, absolute.
141         * ldlang.c (print_assignment): Fix style nit.
142         (lang_size_sections_1): Cope with NULL expld.result.section.
143         (lang_do_assignments_1): Likewise.
144
145 2010-08-12  Alan Modra  <amodra@gmail.com>
146
147         * ldexp.c (new_rel): Remove "str".  Update all call sites.
148         (exp_fold_tree_1): When assigning to dot, calculate nextdot
149         using expld.result.section rather than expld.section.
150
151 2010-08-06  Alan Modra  <amodra@gmail.com>
152
153         PR ld/11887
154         * ldlang.c (lang_add_vers_depend): Don't leave version_needed
155         uninitialised.
156
157 2010-07-28  Alan Modra  <amodra@gmail.com>
158
159         * ldexp.c (exp_print_tree): Print function-like binary nodes as
160         functions rather than in-fix operators.  Use fputs and fputc
161         where appropriate.
162
163 2010-07-23  Naveen.H.S  <naveen.S@kpitcummins.com>
164             Ina Pandit  <ina.pandit@kpitcummins.com>
165
166         * configure.tgt: Match all v850 targets.
167
168 2010-07-20  Mike Frysinger  <vapier@gentoo.org>
169
170         * ld.texinfo (VERSION): Remove "int" from example script and add ";".
171         Declare the default language as C.
172
173 2010-07-17  Alan Modra  <amodra@gmail.com>
174
175         * ldlang.c (lang_check_section_addresses): Catch overlap for
176         sections that wrap around the address space.
177
178 2010-06-29  Nick Clifton  <nickc@redhat.com>
179
180         * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
181         with the .gcc_except_table. prefix.
182
183 2010-06-29  Alan Modra  <amodra@gmail.com>
184
185         * emulparams/maxqcoff.sh: Delete file.
186         * scripttempl/maxqcoff.sc: Delete file.
187         * Makefile.am: Remove references to maxq.
188         * configure.tgt: Likewise.
189         * Makefile.in: Regenerate.
190         * configure: Regenerate.
191         * po/POTFILES.in: Regenerate.
192
193 2010-06-27  Alan Modra  <amodra@gmail.com>
194
195         * pe-dll.c (fill_edata): Avoid set but unused warning.
196         (pe_walk_relocs_of_symbol): Delete set but unused variables.
197         (generate_reloc, pe_implied_import_dll): Likewise.
198         * emultempl/aix.em (open_dynamic_archive): Likewise.
199         * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
200         (xtensa_layout_wild): Likewise.
201         (xtensa_colocate_output_literals_callback): Likewise.
202
203 2010-06-25  Alan Modra  <amodra@gmail.com>
204
205         * emultempl/ppc64elf.em (prelim_size_sections): New function.
206         (ppc_before_allocation): Use it.  Size sections before toc edit too.
207
208 2010-06-25  Alan Modra  <amodra@gmail.com>
209
210         * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
211
212 2010-06-20  Danny Smith  <dannysmith@users.sourceforge.net>
213
214         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
215         auto-import and merge-rdata defaults same for i[3-7]86 and
216         x86_64 mingw.
217
218 2010-06-15  Joseph Myers  <joseph@codesourcery.com>
219
220         * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
221
222 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
223
224         PR ld/11603
225         * pe-dll.c (process_def_file_and_drectve): Reorder check for
226         forwarded export name after check for ordinary export.
227
228 2010-06-08  Bernd Schmidt  <bernds@codesourcery.com>
229
230         * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
231
232 2010-06-08  Nick Clifton  <nickc@redhat.com>
233
234         * fdl.texi: Replace with v1.3 text.
235         * ld.texinfo: Replace abbreviated 20th century year numbers with
236         full versions.
237         * ldint.texinfo: Likewise.
238         Relicense under GFDL v1.3.  Replace text of v1.1 FDL with an
239         include of the fdl.texi file.
240
241 2010-06-01  Tristan Gingold  <gingold@adacore.com>
242
243         * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
244         readonly output-section. Handle LIB$INITIALIZE and sections
245         created by gcc.
246         * emultempl/vms.em (vms_place_orphan): Add comments.
247
248 2010-05-28  Nick Clifton  <nickc@redhat.com>
249
250         * Makefile.am (eshlelf_fd.c): Fix typo in rule.
251         * Makefile.in: Regenerate.
252
253 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
254
255         PR ld/11628
256         * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
257         multiple of maximum page size.
258
259 2010-05-25  Nick Clifton  <nickc@redhat.com>
260
261         * Makefile.am: Fix typo.
262         * Makefile.in: Regenerate.
263
264 2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
265             Joseph Myers  <joseph@codesourcery.com>
266             Andrew Stubbs  <ams@codesourcery.com>
267
268         * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
269         (eshelf_fd.c, eshlelf_fd.c): New rules.
270         * Makefile.in: Regenerate.
271         * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
272         emulations.
273         * emulparams/shelf_fd.sh: New file.
274         * emulparams/shlelf_fd.sh: New file.
275         * emulparams/shlelf_linux.sh: Update comment.
276
277 2010-05-25  Jay Krell  <jay.krell@cornell.edu>
278
279         PR ld/11621
280         * Makefile.am: Replace all occurences of .o with .@OBJEXT@
281         * Makefile.in: Regenerate.
282
283 2010-05-25  Kai Tietz  <kai.tietz@onevision.com>
284
285         * deffilep.y (opt_name): Allow leading dot.
286         (dot_name): Likewise.
287         (anylang_id): Likewise.
288         * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
289         default auto_import.
290         (gld${EMULATION_NAME}_handle_option): Warn about v1.
291         (pep_find_data_imports): Remove superflous warnings about
292         auto-import.
293         (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
294         and active pseudo-relocation-v2 rdata into data section.
295         * emultempl/pe.em (default_merge_rdata): New shell variable.
296         (MERGE_RDATA_V2): New macro.
297         (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
298         selected script.
299
300 2010-05-15  Kai Tietz  <kai.tietz@onevision.com>
301
302         * emultempl/pe.em (is_underscoring): New helper function.
303         (gld_${EMULATION_NAME}_before_parse): Replace code
304         for pe(p)_leading_underscore detection by is_underscoring.
305         (U): Likewise.
306         (GET_INIT_SYMBOL_NAME): Likewise.
307         (U_SIZE): Likewise.
308         (set_pe_name):
309         (set_entry_point):
310         (gld_${EMULATION_NAME}_set_symbols):
311         * emultempl/pep.em: Likewise.
312         * pe-dll.c (pe_detail_list): Set default
313         underscoring for x64 target.
314         (pe_dll_id_target): Add initialization of
315         pe(p)_leading_underscore.
316
317 2010-05-15  Dave Korn  <dave.korn.cygwin@gmail.com>
318
319         * pe-dll.c: Removed trailing whitespaces.
320
321 2010-05-14  Alan Modra  <amodra@gmail.com>
322
323         PR ld/11583
324         * ldexp.c (exp_fold_tree_1): If assignment source expression is
325         invalid, make the destination symbol undefined.
326
327 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
328
329         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
330         Initialize pe(p)_leading_underscore variable.
331         (set_pe_name): Likewise.
332         * emultempl/pep.em: Likewise.
333         Additional change default to non-underscore for
334         pep_leading_underscore equal to -1.
335
336 2010-05-07  Tristan Gingold  <gingold@adacore.com>
337
338         * Makefile.in: Regenerate with automake 1.11.1.
339         * aclocal.m4: Ditto.
340
341 2010-05-05  Nick Clifton  <nickc@redhat.com>
342
343         * po/es.po: Updated Spanish translation.
344
345 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
346
347         * pe-dll.c (_nm_-symbols): Use always underscored variant
348         for symbols.
349         (__imp_-symbols): Likewise.
350         (___imp_-symbols): Likewise.
351         * NEWS: Mention ABI change for x64 PE-COFF.
352
353 2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>
354
355         * Makefile.am (install-exec-local): Properly install ld as
356         default cross linker.
357         * Makefile.in: Regenerated.
358
359 2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>
360             Nick Clifton  <nickc@redhat.com>
361
362         * configure.in (install_as_default): Define and set to true
363         unless --enable-gold=both/gold has been specified.
364         * configure: Regenerate.
365
366         * Makefile.am (transform): Use ld.bfd as the default name of
367         the linker.
368         (install-exec-local): Also install the executable as a binary
369         named 'ld' if install_as_default is true.
370         * Makefile.in: Regenerate.
371
372 2010-04-22  Nick Clifton  <nickc@redhat.com>
373
374         * po/ld.pot: Updated by the Translation project.
375         * po/vi.po: Updated Vietnamese translation.
376         * po/bg.po: Updated Bulgarian translation.
377
378 2010-04-15  Andrew Haley  <aph@redhat.com>
379
380         * emultempl/armelf.em (merge_exidx_entries): New variable.
381         (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
382         ("no-merge-exidx-entries"): New option.
383         * ld.texinfo (merge-exidx-entries): Document this option.
384
385 2010-04-14  Tristan Gingold  <gingold@adacore.com>
386
387         * emulparams/alphavms.sh: New file.
388         * emultempl/vms.em: New file.
389         * scripttempl/alphavms.sc: New file.
390         * configure.tgt (alpha*-*-*vms*): Added.
391         * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
392         (ealphavms.c): New target.
393         * Makefile.in: Regenerate.
394
395 2010-04-09  Nick Clifton  <nickc@redhat.com>
396
397         * ldlang.c (wild_sort): Remove unused variable section_name.
398
399 2010-04-07  Alan Modra  <amodra@gmail.com>
400
401         * configure: Regenerate.
402
403 2010-04-06  H.J. Lu  <hongjiu.lu@intel.com>
404
405         PR ld/11434
406         * ld/testsuite/ld-x86-64/unique1.d: New.
407         * ld/testsuite/ld-x86-64/unique1.s: Likewise.
408
409         * ld-x86-64/x86-64.exp: Run unique1.
410
411 2010-04-05  Kai Tietz  <kai.tietz@onevision.com>
412
413         * emultempl/pep.em (U): Macro modified.
414         (U_SIZE): New helper macro.
415         (GET_INIT_SYMBOL_NAME): Likewise.
416         (enum options): Add OPTION_NO_LEADING_UNDERSCORE
417         and OPTION_LEADING_UNDERSCORE enumerator-values.
418         (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
419         option.
420         (definfo): Add new member is_c_symbol.
421         (D): Add to macro underscore mode parameter.
422         (init): Add definition for is_c_symbol.
423         (gld_${EMULATION_NAME}_list_options): Display new options.
424         (set_pep_name): Adjust underscoring dependent fixed
425         symbol handling.
426         (gld_${EMULATION_NAME}_set_symbols): Likewise.
427         (saw_option): Likewise.
428         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
429         (set_entry_point): Initial initial_symbol_char dependent to
430         target's default and new option flag pep_leading_underscore.
431         * emultempl/pe.em (U): Macro modified.
432         (U_SIZE): New helper macro.
433         (GET_INIT_SYMBOL_NAME): Likewise.
434         (OPTION_LEADING_UNDERSCORE): Add new option define.
435         (OPTION_NO_LEADING_UNDERSCORE): Likewise.
436         (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
437         option.
438         (definfo): Add new member is_c_symbol.
439         (D): Add to macro underscore mode parameter.
440         (init): Add definition for is_c_symbol.
441         (gld_${EMULATION_NAME}_list_options): Display new options.
442         (set_pep_name): Adjust underscoring dependent fixed
443         symbol handling.
444         (gld_${EMULATION_NAME}_set_symbols): Likewise.
445         (saw_option): Likewise.
446         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
447         (set_entry_point): Initial initial_symbol_char dependent to
448         target's default and new option flag pep_leading_underscore.
449         * pe-dll.c (pe_leading_underscore): New flag variable.
450         (pe_detail_list): Remove const to allow modify of
451         member underscore.
452         (pe_dll_id_target): Initialize pe_details' underscore variable
453         dependent to target's default and flag pe_leading_underscore.
454         * pe-dll.h (pe_leading_underscore): Add extern declaration of
455         option flag.
456         * pep-dll.c (pe_leading_underscore): Add alias define for
457         pep_leading_underscore.
458         * pep-dll.h (pep_leading_underscore) Add extern declaration of
459         option flag.
460         * ld.texinfo: Add documentation for --(no-)leading-underscore
461         option.
462
463 2010-03-26  Alan Modra  <amodra@gmail.com>
464
465         PR ld/11426
466         * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
467         (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
468
469 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
470
471         * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
472         eelf32_tic6x_le.o.
473         (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
474         * NEWS: Add news entry for TI C6X support.
475         * configure.tgt (tic6x-*-*): New.
476         * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
477
478 2010-03-23  Joseph Myers  <joseph@codesourcery.com>
479
480         * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
481         BSS_NAME): Define if not already defined.  Use in place of some
482         hardcoded section names.
483
484 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
485
486         * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
487
488 2010-03-18  Aymeric Vincent  <vincent@labri.fr>
489
490         PR ld/11384
491         * emultempl/sh64elf.em: Add missing EOF.
492
493 2010-03-18  Doug Semler  <dougsemler@gmail.com>
494
495         * pe-dll.c (make_one): Make text section readonly.
496         (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
497         the jump stub on X86 as /SAFESEH compatible for
498         native toolchains.
499
500 2010-03-17  Alan Modra  <amodra@gmail.com>
501
502         * ldlang.c (lang_size_sections_1): Remove "s" param.  Set "s" from
503         *prev instead.  Update all callers.
504
505 2010-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
506
507         * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
508         region and phdrs as their placement section.
509
510 2010-03-15  Alan Modra  <amodra@gmail.com>
511
512         * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
513         (ppc_before_allocation): Call sort_toc_sections.
514         (no_toc_sort, OPTION_NO_TOC_SORT): New.
515         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
516          PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
517
518 2010-03-14  Alan Modra  <amodra@gmail.com>
519
520         PR ld/11378
521         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
522         ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
523
524 2010-03-11  George Gensure  <werkt0@gmail.com>
525
526         PR ld/11367
527         * ldcref.c (handle_asneeded_cref): Correct copying of refs.
528
529 2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
530
531         * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
532         eelf_i386_sol2.o.
533         (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
534         (eelf32_sparc_sol2.c): New rule.
535         (eelf64_sparc_sol2.c): Likewise.
536         (eelf_x86_64_sol2.c): Likewise.
537         (eelf_i386_sol2.c): Likewise.
538         * Makefile.in: Regenerate.
539         * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
540         elf_i386_sol2.
541         Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
542         (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
543         Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
544         (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
545         Add target_extra_emuls.
546         (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
547         Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
548         (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
549         Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
550         * emulparams/elf32_sparc_sol2.sh: New file.
551         * emulparams/elf64_sparc_sol2.sh: New file.
552         * emulparams/elf_i386_sol2.sh: New file.
553         * emulparams/elf_x86_64_sol2.sh: New file.
554         * emultempl/solaris2.em: New file.
555
556 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
557
558         PR ld/11330
559         * ld.texinfo: Replace explicitely with explicitly.
560
561 2010-02-27  Jie Zhang  <jie@codesourcery.com>
562
563         * scripttempl/armbpabi.sc: Don't combine .init_array.* or
564         .fini_array.* when do relocatable linking.
565         * scripttempl/elf.sc: Likewise.
566         * scripttempl/elf32sh-symbian.sc: Likewise.
567         * scripttempl/elf64hppa.sc: Likewise.
568         * scripttempl/elfxtensa.sc: Likewise.
569
570 2010-02-26  Alan Modra  <amodra@gmail.com>
571
572         * scripttempl/elf.sc (.fini_array): Place input .fini_array after
573         .fini_array.*.
574         * scripttempl/armbpabi.sc: Likewise.
575         * scripttempl/elf32sh-symbian.sc: Likewise.
576         * scripttempl/elf64hppa.sc: Likewise.
577         * scripttempl/elfxtensa.sc: Likewise.
578
579 2010-02-25  Alan Modra  <amodra@gmail.com>
580
581         PR ld/11304
582         * ldlang.c (init_os): Remove isec param.  Don't check for
583         bfd_section already set or call bfd_init_private_section_data
584         here.
585         (exp_init_os): Update init_os call.
586         (lang_add_section): Tidy.  Really don't set SEC_LINK_ONCE
587         flags.  Call bfd_init_private_section_data here.
588         (map_input_to_output_sections): Tidy.  Update init_os calls.
589         Use os->sectype to select sec flags for lang_data_statement.
590
591 2010-02-23  Alan Modra  <amodra@gmail.com>
592
593         PR ld/11304
594         * ldlang.c: Revert last patch.
595
596 2010-02-23  Nick Clifton  <nickc@redhat.com>
597
598         * po/bg.po: Updated Bulgarian translation.
599
600 2010-02-22  Alan Modra  <amodra@gmail.com>
601
602         PR ld/11304
603         * ldlang.c (exp_init_os): Delete forward declaration.
604         (init_os): Don't check for bfd_section already created and don't
605         init addr_tree and load_base expressions here.
606         (map_input_to_output_sections): Only map input to output sections
607         and set constraints here, and as an exception, create output
608         sections which have their address set.  Move all the other code to..
609         (create_other_output_sections): ..here.  New function.  Handle init
610         of addr_tree and load_base here too.
611         (lang_process): Call create_other_output_sections.
612
613 2010-02-19  Alan Modra  <amodra@gmail.com>
614
615         * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
616         * Makefile.in: Regenerate.
617
618 2010-02-19  Alan Modra  <amodra@gmail.com>
619
620         * ldlang.c (unique_section_p): Add os param.  Allow group
621         sections to match /DISCARD/.  Update all callers.
622         * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
623         (LDEMUL_BEFORE_ALLOCATION): Define.
624
625 2010-02-15  Nick Clifton  <nickc@redhat.com>
626
627         * po/vi.po: Updated Vietnamese translation.
628
629 2010-02-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
630
631         * Makefile.am (CFILES): Add ldlex-wrapper.c.
632         (OFILES): Replace ldlex.c with ldlex-wrapper.c.
633         (ldlex.o): Replace with...
634         (ldlex-wrapper.o): ...this new rule.
635         (EXTRA_ld_new_SOURCES): Add ldlex.l.
636         (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
637         * Makefile.in: Regenerate.
638         * ldlex.l (sysdep.h): Don't include here.
639         * ldlex-wrapper.c: New file.
640
641 2010-02-09  Alan Modra  <amodra@gmail.com>
642
643         * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
644         function parameters.
645
646 2010-02-05  Nick Clifton  <nickc@redhat.com>
647
648         * configure.in (ALL_LIBGUAS): Add bg.
649         * configure: Regenerate.
650         * po/bg.po: New Bulgarian translation.
651
652 2010-02-05  Ryan Mansfield  <rmansfield@qnx.com>
653
654         * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
655         --target1-abs and --target1-rel options.
656
657 2010-02-03  Nick Clifton  <nickc@redhat.com>
658
659         * emultempl/alphaelf.em: Update value expected from elf_object_id.
660         * emultempl/hppaelf.em: Likewise.
661         * emultempl/mipself.em: Likewise.
662         * emultempl/ppc32elf.em: Likewise.
663         * emultempl/ppc64elf.em: Likewise.
664
665 2010-02-03  Alan Modra  <amodra@gmail.com>
666
667         * emultempl/ppc64elf.em (build_toc_list): Report errors from
668         ppc64_elf_next_toc_section.
669         (after_allocation): Update for changed function names and params.
670         Run second pass of multitoc partitioning.
671
672 2010-01-21  Jon Grant  <jg@jguk.org>
673             Nick Clifton  <nickc@redhat.com>
674
675         PR 4437
676         * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
677         a missing file or library.  Instead mark the entry as missing and
678         set the global flag to indicate that missing files were
679         encountered.
680         * ldlang.c (missing_files): New exported variable.
681         (load_symbols): Skip loading if the file is missing.
682         (open_input_bfds): Terminate link if any input files were
683         missing.
684         * ldlang.h (struct lang_input_statement_struct): Add missing_file
685         field.
686         Add export of missing_file variable.
687
688 2010-01-13  DJ Delorie  <dj@redhat.com>
689
690         * emultempl/elf32.em (_place_orphan): If an input section doesn't
691         match an existing output section, but an unused output section
692         statement does match, use it.
693         * emultempl/pe.em (_place_orphan): Likewise.
694         * emultempl/pep.em (_place_orphan): Likewise.
695
696 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
697
698         * configure: Regenerate.
699         * Makefile.in: Regenerate.
700
701 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
702
703         * ldver.c (ldversion): Change to "Copyright 2010".
704
705 2010-01-08  Alan Modra  <amodra@gmail.com>
706
707         PR 11107
708         * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
709
710 For older changes see ChangeLog-2009
711 \f
712 Local Variables:
713 mode: change-log
714 left-margin: 8
715 fill-column: 74
716 version-control: never
717 End: