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