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