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