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