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