[PATCH] Fix issue from GCC PR47527: no ELF flags, EABI attribs, etc. in dummy IR...
[binutils.git] / ld / ChangeLog
blob8283becc8dc25e0abd348ac97cd2a0a666c76474
1 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
3         * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
5 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
7         * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
8         wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
9         * ldmain.c (add_archive_element): Set it if the member is claimed.
10         * ldlang.c (new_afile): Initialise claim_archive and claimed members.
11         (find_replacements_insert_point): New helper function.
12         (lang_process): After adding and opening replacement files passed
13         from plugin, splice them into correct place in statement list and
14         file chains to preserve critical link order.
15         (lang_list_insert_after): New helper function.
16         (lang_list_remove_tail): Likewise.
18 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
20         * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
21         (IRONLY_SUFFIX_LEN): Delete.
22         (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
23         (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
24         enclosing lang input statement instead.
26 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
28         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
29         alignment of input sections when creating orphan output sections
30         during relocatable link.
31         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
33 2011-03-04  H.J. Lu  <hongjiu.lu@intel.com>
35         * ld.texinfo: Document --verbose[=NUMBER].
37         * lexsup.c (ld_options): Update --verbose.
38         (parse_args): Set report_plugin_symbols.
40         * plugin.c (report_plugin_symbols): New.
41         (get_symbols): Report plugin symbols if report_plugin_symbols
42         is TRUE.
44         * plugin.h (report_plugin_symbols): New.
46 2011-03-01  H.J. Lu  <hongjiu.lu@intel.com>
48         PR ld/12529
49         * testplug.c: Don't include "filenames.h".
50         (onclaim_file): Don't use filename_cmp.
52 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
54         * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
55         * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
56         Likewise.
57         (gld${EMULATION_NAME}_stat_needed): Likewise.
58         (gld${EMULATION_NAME}_check_needed): Likewise.
59         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
60         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
61         * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
62         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
63         * ldfile.c (ldfile_open_file): Likewise.
64         * ldlang.c (wild_sort): Likewise.
65         (lookup_name): Likewise.
66         (check_excluded_libs): Likewise.
67         * ldmisc.c (vfinfo): Likewise.
68         * pe-dll.c (libnamencmp): Likewise.
69         (auto_export): Likewise.
70         (pe_dll_generate_implib): Likewise.
71         * testplug.c (onclaim_file): Likewise.
73 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
75         PR ld/12507
76         * plugin.c (get_symbols): Don't check entry symbol here.
77         (init_non_ironly_hash): Add entry_symbol chain into
78         non_ironly_hash.
80 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
82         PR ld/12507
83         * plugin.c (get_symbols): Don't mark entry symbol IR only.
85 2011-02-18  John David Anglin  <dave.anglin@nrc-cnnrc.gc.ca>
87         PR ld/12376
88         emulparams/hppalinux.sh (DATA_ADDR): Define.
89         (SHLIB_DATA_ADDR): Likewise.
91 2011-02-16  H.J. Lu  <hongjiu.lu@intel.com>
93         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
94         x32 for x32.
96 2011-02-15  Kai Tietz  <kai.tietz@onevision.com>
98         * pe-dll.c (process_def_file_and_drectve): Don't strip
99         leading underscore from symbol by calling bfd_find_version_for_sym.
101 2011-02-14  Mike Frysinger  <vapier@gentoo.org>
103         * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
104         the bfd_demangle of sym, change users of sym to c_sym when not
105         already demangling, and free when done.  Change callers of
106         cplus_demangle to bfd_demangle.
108 2011-02-14  Alan Modra  <amodra@gmail.com>
110         * ldmain.c (remove_output): Rename to..
111         (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
112         (main): Adjust.
113         * plugin.c (plugin_call_cleanup): Make global.
114         (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
115         * plugin.h (plugin_call_cleanup): Declare.
117 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
119         * configure: Regenerate.
121 2011-02-10  Alan Modra  <amodra@gmail.com>
123         * scripttempl/armbpabi.sc: Revert 2010-11-02  H.J. Lu.
124         * scripttempl/avr.sc: Likewise.
125         * scripttempl/elf32cr16.sc: Likewise.
126         * scripttempl/elf32crx.sc: Likewise.
127         * scripttempl/elf32msp430.sc: Likewise.
128         * scripttempl/elf32msp430_3.sc: Likewise.
129         * scripttempl/elf32sh-symbian.sc: Likewise.
130         * scripttempl/elf64hppa.sc: Likewise.
131         * scripttempl/elf_chaos.sc: Likewise.
132         * scripttempl/elfd10v.sc: Likewise.
133         * scripttempl/elfd30v.sc: Likewise.
134         * scripttempl/elfi370.sc: Likewise.
135         * scripttempl/elfm68hc11.sc: Likewise.
136         * scripttempl/elfm68hc12.sc: Likewise.
137         * scripttempl/elfxtensa.sc: Likewise.
138         * scripttempl/ip2k.sc: Likewise.
139         * scripttempl/iq2000.sc: Likewise.
140         * scripttempl/mep.sc: Likewise.
141         * scripttempl/mmo.sc: Likewise.
142         * scripttempl/v850.sc: Likewise.
143         * scripttempl/xstormy16.sc: Likewise.
144         * scripttempl/elf.sc: Revert 2010-10-29  H.J. Lu.
146 2011-01-22  H.J. Lu  <hongjiu.lu@intel.com>
148         * Makefile.am (CXX): Removed.
150         * configure.in: Add AC_PROG_CXX.
152         * Makefile.in: Regenerated.
153         * configure: Likewise.
155 2011-01-22  Richard Sandiford  <rdsandiford@googlemail.com>
157         * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
158         private data and GP size.
160 2011-01-21  Alan Modra  <amodra@gmail.com>
162         * ldexp.c (fold_binary): Set result section for arithmetic and
163         logical operations to NULL when both operands are in same section.
164         * ld.texinfo (Expression Section): Describe this.
166 2011-01-14  Alan Modra  <amodra@gmail.com>
168         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
169         attempt to put non-alloc orphans before debug sections, just place
170         them after .comment.
172 2011-01-14  J. Park  <grassman@gmail.com>
174         PR ld/12339
175         * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
177 2011-01-14  Alan Modra  <amodra@gmail.com>
179         * Makefile.am: Sort emulation rules.
180         (eelf32am33lin.c): Delete.
181         (ALL_EMULATION_SOURCES): Sort, add missing entries.
182         (ALL_64_EMULATION_SOURCES): Likewise.
183         * Makefile.in: Regenerate.
185 2011-01-13  Alan Modra  <amodra@gmail.com>
187         PR ld/12356
188         * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
189         (Expression Section): Update.
190         * ld.h (ld_config_type): Add sane_expr.
191         * ldgram.y (ifile_p1): Add LD_FEATURE.
192         * ldlex.l (LD_FEATYRE): New.
193         * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
194         * ldexp.h (struct ldexp_control): Delete uses_defined.
195         * ldexp.c: Remove all uses of uses_defined.
196         (fold_name): Test config.sane_expr rather than ld_compatibility.
197         (exp_fold_tree_1): Likewise.  Adjust handling of assignments
198         during first phase.
199         * ldlang.h (ld_compatibility): Delete.
200         (lang_ld_feature): Declare.
201         * ldlang.c (ld_compatibility): Delete.
202         (open_input_bfds): Only handle assignments for --defsym.
203         (lang_ld_feature): New function.
205         PR ld/12356
206         * ldexp.h (exp_assop): Delete.
207         (exp_assign, exp_defsym): Declare.
208         * ldexp.c (exp_assop): Make static, handle all assignment variations.
209         (exp_assign, exp_defsym): New functions.
210         (exp_provide): Use exp_assop.
211         * ldgram.y (defsym_expr): Use exp_defsym.
212         * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
213         * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
214         * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
216 2011-01-12  Alan Modra  <amodra@gmail.com>
218         PR ld/12380
219         * ldexp.h (enum phase_enum): Comment.  Add exp_dataseg_done.
220         * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code.  Test
221         for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
222         to detect when we've finished sizing sections.
223         (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
224         (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise.  Also test
225         that we are not inside an output section statement.
226         * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
227         not exp_dataseg_relro_adjust or exp_dataseg_adjust.  Don't set
228         lang_final_phase_enum here.
229         (lang_process): Set lang_final_phase_enum here.
231 2011-01-10  Nick Clifton  <nickc@redhat.com>
233         * po/da.po: Updated Danish translation.
235 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
237         * ldlang.c (startup_file): Removed.
238         (lang_startup): Updated.
240 2011-01-05  H.J. Lu  <hongjiu.lu@intel.com>
242         PR ld/12364
243         * plugin.c (get_symbols): Check if owner_sec->owner is NULL
244         before accessing its flags field.
246 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
248         * ldver.c (ldversion): Update copyright to 2011.
250 For older changes see ChangeLog-2010
252 Local Variables:
253 mode: change-log
254 left-margin: 8
255 fill-column: 74
256 version-control: never
257 End: