[PATCH] Fix PE-COFF bug in orphan section alignment handling.
[binutils.git] / ld / ChangeLog
blobd3c5235571d1ce707f7086526c60bd664a34bbe1
1 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
3         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
4         alignment of input sections when creating orphan output sections
5         during relocatable link.
6         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
8 2011-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10         * ld.texinfo: Document --verbose[=NUMBER].
12         * lexsup.c (ld_options): Update --verbose.
13         (parse_args): Set report_plugin_symbols.
15         * plugin.c (report_plugin_symbols): New.
16         (get_symbols): Report plugin symbols if report_plugin_symbols
17         is TRUE.
19         * plugin.h (report_plugin_symbols): New.
21 2011-03-01  H.J. Lu  <hongjiu.lu@intel.com>
23         PR ld/12529
24         * testplug.c: Don't include "filenames.h".
25         (onclaim_file): Don't use filename_cmp.
27 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
29         * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
30         * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
31         Likewise.
32         (gld${EMULATION_NAME}_stat_needed): Likewise.
33         (gld${EMULATION_NAME}_check_needed): Likewise.
34         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
35         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
36         * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
37         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
38         * ldfile.c (ldfile_open_file): Likewise.
39         * ldlang.c (wild_sort): Likewise.
40         (lookup_name): Likewise.
41         (check_excluded_libs): Likewise.
42         * ldmisc.c (vfinfo): Likewise.
43         * pe-dll.c (libnamencmp): Likewise.
44         (auto_export): Likewise.
45         (pe_dll_generate_implib): Likewise.
46         * testplug.c (onclaim_file): Likewise.
48 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
50         PR ld/12507
51         * plugin.c (get_symbols): Don't check entry symbol here.
52         (init_non_ironly_hash): Add entry_symbol chain into
53         non_ironly_hash.
55 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
57         PR ld/12507
58         * plugin.c (get_symbols): Don't mark entry symbol IR only.
60 2011-02-18  John David Anglin  <dave.anglin@nrc-cnnrc.gc.ca>
62         PR ld/12376
63         emulparams/hppalinux.sh (DATA_ADDR): Define.
64         (SHLIB_DATA_ADDR): Likewise.
66 2011-02-16  H.J. Lu  <hongjiu.lu@intel.com>
68         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
69         x32 for x32.
71 2011-02-15  Kai Tietz  <kai.tietz@onevision.com>
73         * pe-dll.c (process_def_file_and_drectve): Don't strip
74         leading underscore from symbol by calling bfd_find_version_for_sym.
76 2011-02-14  Mike Frysinger  <vapier@gentoo.org>
78         * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
79         the bfd_demangle of sym, change users of sym to c_sym when not
80         already demangling, and free when done.  Change callers of
81         cplus_demangle to bfd_demangle.
83 2011-02-14  Alan Modra  <amodra@gmail.com>
85         * ldmain.c (remove_output): Rename to..
86         (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
87         (main): Adjust.
88         * plugin.c (plugin_call_cleanup): Make global.
89         (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
90         * plugin.h (plugin_call_cleanup): Declare.
92 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94         * configure: Regenerate.
96 2011-02-10  Alan Modra  <amodra@gmail.com>
98         * scripttempl/armbpabi.sc: Revert 2010-11-02  H.J. Lu.
99         * scripttempl/avr.sc: Likewise.
100         * scripttempl/elf32cr16.sc: Likewise.
101         * scripttempl/elf32crx.sc: Likewise.
102         * scripttempl/elf32msp430.sc: Likewise.
103         * scripttempl/elf32msp430_3.sc: Likewise.
104         * scripttempl/elf32sh-symbian.sc: Likewise.
105         * scripttempl/elf64hppa.sc: Likewise.
106         * scripttempl/elf_chaos.sc: Likewise.
107         * scripttempl/elfd10v.sc: Likewise.
108         * scripttempl/elfd30v.sc: Likewise.
109         * scripttempl/elfi370.sc: Likewise.
110         * scripttempl/elfm68hc11.sc: Likewise.
111         * scripttempl/elfm68hc12.sc: Likewise.
112         * scripttempl/elfxtensa.sc: Likewise.
113         * scripttempl/ip2k.sc: Likewise.
114         * scripttempl/iq2000.sc: Likewise.
115         * scripttempl/mep.sc: Likewise.
116         * scripttempl/mmo.sc: Likewise.
117         * scripttempl/v850.sc: Likewise.
118         * scripttempl/xstormy16.sc: Likewise.
119         * scripttempl/elf.sc: Revert 2010-10-29  H.J. Lu.
121 2011-01-22  H.J. Lu  <hongjiu.lu@intel.com>
123         * Makefile.am (CXX): Removed.
125         * configure.in: Add AC_PROG_CXX.
127         * Makefile.in: Regenerated.
128         * configure: Likewise.
130 2011-01-22  Richard Sandiford  <rdsandiford@googlemail.com>
132         * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
133         private data and GP size.
135 2011-01-21  Alan Modra  <amodra@gmail.com>
137         * ldexp.c (fold_binary): Set result section for arithmetic and
138         logical operations to NULL when both operands are in same section.
139         * ld.texinfo (Expression Section): Describe this.
141 2011-01-14  Alan Modra  <amodra@gmail.com>
143         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
144         attempt to put non-alloc orphans before debug sections, just place
145         them after .comment.
147 2011-01-14  J. Park  <grassman@gmail.com>
149         PR ld/12339
150         * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
152 2011-01-14  Alan Modra  <amodra@gmail.com>
154         * Makefile.am: Sort emulation rules.
155         (eelf32am33lin.c): Delete.
156         (ALL_EMULATION_SOURCES): Sort, add missing entries.
157         (ALL_64_EMULATION_SOURCES): Likewise.
158         * Makefile.in: Regenerate.
160 2011-01-13  Alan Modra  <amodra@gmail.com>
162         PR ld/12356
163         * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
164         (Expression Section): Update.
165         * ld.h (ld_config_type): Add sane_expr.
166         * ldgram.y (ifile_p1): Add LD_FEATURE.
167         * ldlex.l (LD_FEATYRE): New.
168         * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
169         * ldexp.h (struct ldexp_control): Delete uses_defined.
170         * ldexp.c: Remove all uses of uses_defined.
171         (fold_name): Test config.sane_expr rather than ld_compatibility.
172         (exp_fold_tree_1): Likewise.  Adjust handling of assignments
173         during first phase.
174         * ldlang.h (ld_compatibility): Delete.
175         (lang_ld_feature): Declare.
176         * ldlang.c (ld_compatibility): Delete.
177         (open_input_bfds): Only handle assignments for --defsym.
178         (lang_ld_feature): New function.
180         PR ld/12356
181         * ldexp.h (exp_assop): Delete.
182         (exp_assign, exp_defsym): Declare.
183         * ldexp.c (exp_assop): Make static, handle all assignment variations.
184         (exp_assign, exp_defsym): New functions.
185         (exp_provide): Use exp_assop.
186         * ldgram.y (defsym_expr): Use exp_defsym.
187         * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
188         * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
189         * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
191 2011-01-12  Alan Modra  <amodra@gmail.com>
193         PR ld/12380
194         * ldexp.h (enum phase_enum): Comment.  Add exp_dataseg_done.
195         * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code.  Test
196         for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
197         to detect when we've finished sizing sections.
198         (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
199         (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise.  Also test
200         that we are not inside an output section statement.
201         * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
202         not exp_dataseg_relro_adjust or exp_dataseg_adjust.  Don't set
203         lang_final_phase_enum here.
204         (lang_process): Set lang_final_phase_enum here.
206 2011-01-10  Nick Clifton  <nickc@redhat.com>
208         * po/da.po: Updated Danish translation.
210 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
212         * ldlang.c (startup_file): Removed.
213         (lang_startup): Updated.
215 2011-01-05  H.J. Lu  <hongjiu.lu@intel.com>
217         PR ld/12364
218         * plugin.c (get_symbols): Check if owner_sec->owner is NULL
219         before accessing its flags field.
221 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
223         * ldver.c (ldversion): Update copyright to 2011.
225 For older changes see ChangeLog-2010
227 Local Variables:
228 mode: change-log
229 left-margin: 8
230 fill-column: 74
231 version-control: never
232 End: