2007-04-18 Matthias Klose <doko@ubuntu.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2007-04-18 Matthias Klose <doko@ubuntu.com>
2
3 * Makefile.am (libbfd_la_LDFLAGS): Use bfd soversion.
4 (bfdver.h): Use the date in non-release builds for the soversion.
5 * Makefile.in: Regenerate.
6
7 2007-04-17 Paul Brook <paul@codesourcery.com>
8
9 * elf.c (_bfd_elf_is_function_type): New function.
10 * elflink.c (_bfd_elf_merge_symbol): Use bed->is_function_type.
11 (_bfd_elf_dynamic_symbol_p, _bfd_elf_symbol_refs_local_p,
12 is_global_data_symbol_definition, elf_link_add_object_symbols): Ditto.
13 * elf-bfd.h (elf_backend_data): Add is_function_type.
14 (_bfd_elf_is_function_type): Add prototype.
15 * elfxx-target.h (elf_backend_is_function_type): Add default
16 definition.
17 (elfNN_bed): Add elf_backend_is_function_type.
18 * elf32-arm.c (elf32_arm_is_function_type): New function.
19 (elf_backend_is_function_type): Define.
20
21 2007-04-17 Daniel Jacobowitz <dan@codesourcery.com>
22
23 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Put
24 DT_MIPS_RLD_MAP before DT_DEBUG again.
25
26 2007-04-14 Steve Ellcey <sje@cup.hp.com>
27
28 * Makefile.am: Add ACLOCAL_AMFLAGS.
29 * configure.in: Change macro call order.
30 * Makefile.in: Regnerate.
31 * doc/Makefile.in: Regenerate.
32 * configure: Regenerate.
33
34 2007-04-14 Jakub Jelinek <jakub@redhat.com>
35
36 * elflink.c (bfd_elf_final_link): Don't free symbuf for
37 non-elf input bfds.
38 (bfd_elf_size_dynamic_sections): Don't access elf_section_data
39 for non-elf input bfds.
40
41 2007-04-12 Richard Sandiford <richard@codesourcery.com>
42
43 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add
44 DT_MIPS_RTLD_MAP for PIEs.
45
46 2007-04-12 Richard Sandiford <richard@codesourcery.com>
47
48 * elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL
49 when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation
50 in a read-only section.
51 (_bfd_mips_elf_check_relocs): Likewise.
52
53 2007-04-12 Bob Wilson <bob.wilson@acm.org>
54
55 * elf32-xtensa.c (xtensa_is_insntable_section): New.
56 (xtensa_is_proptable_section): New.
57 (elf_xtensa_discard_info_for_section): Handle "full" .xt.prop property
58 tables with 12-byte entries, as well as tables with 8-byte entries.
59 Sort the relocations before examining them.
60 (relax_property_section): Use xtensa_is_proptable_section and
61 xtensa_is_littable_section. Rewrite code for combining table entries
62 to be more robust in case of unexpected relocations. Do not set offset
63 of unused relocations to less than zero.
64 (xtensa_is_property_section): Use other functions instead of
65 duplicating section name comparisons.
66 (xtensa_is_littable_section): Use CONST_STRNEQ for ".gnu.linkonce.p.".
67 (xtensa_get_property_predef_flags): Use xtensa_is_insntable_section.
68
69 2007-04-12 Bob Wilson <bob.wilson@acm.org>
70
71 * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Don't follow references
72 from Xtensa property sections.
73
74 2007-04-12 Alan Modra <amodra@bigpond.net.au>
75
76 * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data
77 is non-NULL before dereferencing.
78
79 2007-04-11 Nathan Sidwell <nathan@codesourcery.com>
80
81 * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
82 relocs too.
83
84 2007-04-10 Richard Henderson <rth@redhat.com>
85
86 * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip.
87 (elf64_alpha_size_got_sections): Remove unused something_changed local.
88 (elf64_alpha_size_plt_section): Return void.
89 (elf64_alpha_size_rela_got_section): Likewise.
90 (elf64_alpha_relax_section): Only regenerate got+plt if the
91 relax_trip counter has changed.
92
93 2007-04-09 Daniel Jacobowitz <dan@codesourcery.com>
94
95 * Makefile.am (bfdver.h): Do not generate doc/bfdver.texi.
96 * doc/Makefile.am (DOCFILES): Add bfdver.texi.
97 (bfdver.texi): New rule.
98 * Makefile.in, doc/Makefile.in: Regenerated.
99
100 2007-04-03 Matt Thomas <matt@netbsd.org>
101
102 * elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
103 in a shared object if it is not in a CODE section or if it is against
104 a section symbol. This allows DWARF2 to use pcrel format.
105
106 2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
107
108 PR ld/4304
109 * elflink.c (bfd_elf_final_link): Call einfo callback in
110 bfd_link_info instead of _bfd_error_handler for DT_TEXTREL
111 warning.
112
113 2007-04-05 Alan Modra <amodra@bigpond.net.au>
114
115 * elf32-spu.c (spu_elf_output_symbol_hook): New function.
116 (elf_backend_link_output_symbol_hook): Define.
117
118 2007-04-02 Nick Clifton <nickc@redhat.com>
119
120 PR binutils/4292
121 * bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit
122 targets as 64-bit values, even if running on a 64-bit host.
123 * coffgen.c (coff_print_symbol): Likewise.
124
125 2007-03-29 Nick Clifton <nickc@redhat.com>
126
127 PR binutils/4110
128 * elf.c (IS_VALID_GROUP_SECTION_HEADER): New macro.
129 (setup_group): Use it. Report corrupt group section headers.
130 (bfd_section_from_shdr): Use new macro. Replace constant 4 with
131 GRP_ENTRY_SIZE. Cope with NULLs in the group section table.
132 (elf_fake_section): Replace constant 4 with GRP_ENTRY_SIZE.
133
134 2007-03-29 Alan Modra <amodra@bigpond.net.au>
135
136 PR ld/4267
137 * elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma
138 for rel->r_info values.
139 (bfd_elf_perform_complex_relocation): Likewise.
140 * elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
141 unused entries. Don't clear plt.plist in loop.
142
143 2007-03-28 Richard Sandiford <richard@codesourcery.com>
144
145 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.
146 * elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32):
147 Merge into...
148 (sparc_elf_append_rela): ...this new function.
149 (SPARC_ELF_APPEND_RELA): Delete.
150 (_bfd_sparc_elf_link_hash_table_create): Don't initialize
151 the deleted append_rela field.
152 (_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela
153 instead of SPARC_ELF_APPEND_RELA.
154 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. Use the
155 elf_size_info structure to find the size of a RELA entry and
156 the associated swap-out function.
157 (sparc64_finish_dyn, sparc64_finish_dyn): Merge into...
158 (sparc_finish_dyn): ...this new function.
159 (_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly.
160
161 2007-03-28 Richard Sandiford <richard@codesourcery.com>
162 Phil Edwards <phil@codesourcery.com>
163
164 * doc/bfd.texinfo: Put the contents after the title page rather
165 than at the end of the document.
166
167 2007-03-27 Andreas Schwab <schwab@suse.de>
168
169 * elfxx-ia64.c (elf_backend_default_execstack): Define to 0.
170
171 2007-03-26 H.J. Lu <hongjiu.lu@intel.com>
172
173 * configure: Regenerated.
174
175 2007-03-26 Alan Modra <amodra@bigpond.net.au>
176
177 * elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.
178 (allocate_spuear_stubs): New function.
179 (spu_elf_size_stubs): Call allocate_spuear_stubs.
180
181 2007-03-26 Alan Modra <amodra@bigpond.net.au>
182
183 * aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define.
184 * aout-arm.c (MY_bfd_reloc_name_lookup): Define.
185 (MY (bfd_reloc_name_lookup)): New function.
186 * aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function.
187 * aout-target.h (NAME (aout, reloc_name_lookup)): Declare.
188 (MY_bfd_reloc_name_lookup): Define.
189 * aout-tic30.c (tic30_aout_reloc_name_lookup): New function.
190 (MY_bfd_reloc_name_lookup): Define.
191 * aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare.
192 (NAME (aout, reloc_name_lookup)): New function.
193 * bout.c (b_out_bfd_reloc_name_lookup): New function.
194 * coff-alpha.c (alpha_bfd_reloc_name_lookup): New function.
195 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
196 * coff-arm.c (coff_arm_reloc_name_lookup): New function.
197 (coff_bfd_reloc_name_lookup): Define.
198 * coff-i386.c (coff_bfd_reloc_name_lookup): Define.
199 (coff_i386_reloc_name_lookup): New function.
200 * coff-i860.c (coff_i860_reloc_name_lookup): New function.
201 (coff_bfd_reloc_name_lookup): Define.
202 * coff-i960.c (coff_i960_reloc_name_lookup): New function.
203 (coff_bfd_reloc_name_lookup): Define.
204 * coff-m68k.c (m68k_reloc_name_lookup): New function.
205 (coff_bfd_reloc_name_lookup): Define.
206 * coff-maxq.c (maxq_reloc_name_lookup): New function.
207 (coff_bfd_reloc_name_lookup): Define.
208 * coff-mcore.c (mcore_coff_reloc_name_lookup): New function.
209 (coff_bfd_reloc_name_lookup): Define.
210 * coff-mips.c (mips_bfd_reloc_name_lookup): New function.
211 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
212 * coff-ppc.c (ppc_coff_reloc_name_lookup): New function.
213 (coff_bfd_reloc_name_lookup): Define.
214 * coff-rs6000.c (coff_bfd_reloc_name_lookup): Define.
215 (_bfd_xcoff_reloc_name_lookup): New function.
216 (rs6000coff_vec, pmac_xcoff_vec): Init new field.
217 * coff-sh.c (coff_bfd_reloc_name_lookup): Define.
218 (sh_coff_reloc_name_lookup): New function.
219 * coff-sparc.c (coff_sparc_reloc_name_lookup): New function.
220 (coff_bfd_reloc_name_lookup): Define.
221 * coff-tic30.c (coff_bfd_reloc_name_lookup): Define.
222 (tic30_coff_reloc_name_lookup): New function.
223 * coff-tic4x.c (coff_bfd_reloc_name_lookup): Define.
224 (tic4x_coff_reloc_name_lookup): New function.
225 * coff-tic54x.c (coff_bfd_reloc_name_lookup): Define.
226 (tic54x_coff_reloc_name_lookup): New function.
227 * coff-x86_64.c (coff_bfd_reloc_name_lookup): Define.
228 (coff_amd64_reloc_name_lookup): New function.
229 * coff-z80.c (coff_z80_reloc_name_lookup): New function.
230 (coff_bfd_reloc_name_lookup): Define.
231 * coff-z8k.c (coff_z8k_reloc_name_lookup): New function.
232 (coff_bfd_reloc_name_lookup): Define.
233 * coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define.
234 (xcoff64_reloc_name_lookup): New function.
235 (rs6000coff64_vec, aix5coff64_vec): Init new field.
236 * coffcode.h (coff_bfd_reloc_name_lookup): Define.
237 * elf-hppa.h (elf_hppa_reloc_name_lookup): New function.
238 * elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function.
239 * elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function.
240 * elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function.
241 * elf32-arm.c (elf32_arm_reloc_name_lookup): New function.
242 (bfd_elf32_bfd_reloc_name_lookup): Define.
243 * elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function.
244 * elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function.
245 (bfd_elf32_bfd_reloc_name_lookup): Define.
246 * elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function.
247 (bfd_elf32_bfd_reloc_name_lookup): Define.
248 * elf32-cris.c (cris_reloc_name_lookup): New function.
249 (bfd_elf32_bfd_reloc_name_lookup): Define.
250 * elf32-crx.c (elf_crx_reloc_name_lookup): New function.
251 (bfd_elf32_bfd_reloc_name_lookup): Define.
252 * elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
253 * elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
254 * elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function.
255 (bfd_elf32_bfd_reloc_name_lookup): Define.
256 * elf32-fr30.c (fr30_reloc_name_lookup): New function.
257 (bfd_elf32_bfd_reloc_name_lookup): Define.
258 * elf32-frv.c (frv_reloc_name_lookup): New function.
259 (bfd_elf32_bfd_reloc_name_lookup): Define.
260 * elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define.
261 * elf32-h8300.c (elf32_h8_reloc_name_lookup): New function.
262 (bfd_elf32_bfd_reloc_name_lookup): Define.
263 * elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define.
264 * elf32-i370.c (i370_elf_reloc_name_lookup): New function.
265 (bfd_elf32_bfd_reloc_name_lookup): Define.
266 * elf32-i386.c (elf_i386_reloc_name_lookup): New function.
267 (bfd_elf32_bfd_reloc_name_lookup): Define.
268 * elf32-i860.c (elf32_i860_reloc_name_lookup): New function.
269 (bfd_elf32_bfd_reloc_name_lookup): Define.
270 * elf32-i960.c (elf32_i960_reloc_name_lookup): New function.
271 (bfd_elf32_bfd_reloc_name_lookup): Define.
272 * elf32-ip2k.c (ip2k_reloc_name_lookup): New function.
273 (bfd_elf32_bfd_reloc_name_lookup): Define.
274 * elf32-iq2000.c (iq2000_reloc_name_lookup): New function.
275 (bfd_elf32_bfd_reloc_name_lookup): Define.
276 * elf32-m32c.c (m32c_reloc_name_lookup): New function.
277 (bfd_elf32_bfd_reloc_name_lookup): Define.
278 * elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function.
279 * elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function.
280 * elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function.
281 * elf32-m68k.c (reloc_name_lookup): New function.
282 (bfd_elf32_bfd_reloc_name_lookup): Define.
283 * elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define.
284 * elf32-mcore.c (mcore_elf_reloc_name_lookup): New function.
285 (bfd_elf32_bfd_reloc_name_lookup): Define.
286 * elf32-mep.c (mep_reloc_name_lookup): New function.
287 (bfd_elf32_bfd_reloc_name_lookup): Define.
288 * elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
289 (mips_vxworks_bfd_reloc_name_lookup): Likewise.
290 (bfd_elf32_bfd_reloc_name_lookup): Define.
291 * elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function.
292 * elf32-mt.c (mt_reloc_name_lookup): New function.
293 (bfd_elf32_bfd_reloc_name_lookup): Define.
294 * elf32-openrisc.c (openrisc_reloc_name_lookup): New function.
295 (bfd_elf32_bfd_reloc_name_lookup): Define.
296 * elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function.
297 * elf32-pj.c (pj_elf_reloc_name_lookup): New function.
298 (bfd_elf32_bfd_reloc_name_lookup): Define.
299 * elf32-ppc.c (ppc_elf_reloc_name_lookup): New function.
300 (bfd_elf32_bfd_reloc_name_lookup): Define.
301 * elf32-s390.c (elf_s390_reloc_name_lookup): New function.
302 (bfd_elf32_bfd_reloc_name_lookup): Define.
303 * elf32-score.c (elf32_score_reloc_name_lookup): New function.
304 (bfd_elf32_bfd_reloc_name_lookup): Define.
305 * elf32-sh.c (sh_elf_reloc_name_lookup): New function.
306 (bfd_elf32_bfd_reloc_name_lookup): Define.
307 * elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define.
308 * elf32-spu.c (spu_elf_reloc_name_lookup): New function.
309 (bfd_elf32_bfd_reloc_name_lookup): Define.
310 * elf32-v850.c (v850_elf_reloc_name_lookup): New function.
311 (bfd_elf32_bfd_reloc_name_lookup): Define.
312 * elf32-vax.c (reloc_name_lookup): New function.
313 (bfd_elf32_bfd_reloc_name_lookup): Define.
314 * elf32-xc16x.c (xc16x_reloc_name_lookup): New function.
315 (bfd_elf32_bfd_reloc_name_lookup): Define.
316 * elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function.
317 (bfd_elf32_bfd_reloc_name_lookup): Define.
318 * elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function.
319 (bfd_elf32_bfd_reloc_name_lookup): Define.
320 * elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function.
321 (bfd_elf64_bfd_reloc_name_lookup): Define.
322 * elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define.
323 * elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define.
324 * elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function.
325 * elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function.
326 * elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function.
327 (bfd_elf64_bfd_reloc_name_lookup): Define.
328 * elf64-s390.c (elf_s390_reloc_name_lookup): New function.
329 (bfd_elf64_bfd_reloc_name_lookup): Define.
330 * elf64-sh64.c (sh_elf64_reloc_name_lookup): New function.
331 (bfd_elf64_bfd_reloc_name_lookup): Define.
332 * elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define.
333 * elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function.
334 (bfd_elf64_bfd_reloc_name_lookup): Define.
335 * elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
336 * elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function.
337 (bfd_elfNN_bfd_reloc_name_lookup): Define.
338 * elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function.
339 * elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare.
340 * i386msdos.c (msdos_bfd_reloc_name_lookup): Define.
341 * i386os9k.c (aout_32_bfd_reloc_name_lookup): Define.
342 * ieee.c (ieee_bfd_reloc_name_lookup): Define.
343 * libaout.h (NAME (aout, reloc_name_lookup)): Declare.
344 * libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare.
345 * mipsbsd.c (MY_bfd_reloc_name_lookup): Define.
346 (MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup).
347 (MY(reloc_name_lookup)): New function.
348 * nlm-target.h (nlm_bfd_reloc_name_lookup): Define.
349 * oasys.c (oasys_bfd_reloc_name_lookup): Define.
350 * pdp11.c (NAME (aout, reloc_name_lookup)): New function.
351 * pe-mips.c (coff_mips_reloc_name_lookup): New function.
352 (coff_bfd_reloc_name_lookup): Define.
353 * reloc.c (bfd_reloc_name_lookup): New function.
354 * riscix.c (riscix_reloc_name_lookup): New function.
355 (MY_bfd_reloc_name_lookup): Define.
356 * som.c (som_bfd_reloc_name_lookup): New function.
357 * targets.c (struct bfd_target): Add reloc_name_lookup.
358 (BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup.
359 * versados.c (versados_bfd_reloc_name_lookup): Define.
360 * vms.c (vms_bfd_reloc_name_lookup): New function.
361 * bfd-in2.h: Regenerate.
362 * libbfd.h: Regenerate.
363
364 2007-03-26 Thiemo Seufer <ths@mips.com>
365
366 PR ld/4208
367 * elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no
368 matching relocation is found.
369 (_bfd_mips_elf_relocate_section): Only warn about missing relocations.
370
371 2007-03-23 H.J. Lu <hongjiu.lu@intel.com>
372
373 * configure: Regenerated.
374
375 2007-03-23 Joseph Myers <joseph@codesourcery.com>
376
377 * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
378 * configure: Regenerate.
379
380 2007-03-23 Alan Modra <amodra@bigpond.net.au>
381
382 * elf32-spu.c (spu_stub_name): Don't put input section in stub name.
383 Remove input_sec param. Adjust all calls.
384 (write_one_stub): Adjust stub symbol.
385 (needs_ovl_stub): New function, extracted from..
386 (spu_elf_size_stubs): ..here.
387 (spu_elf_relocate_section): Use needs_ovl_stub.
388
389 2007-03-22 Joseph Myers <joseph@codesourcery.com>
390
391 * Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi
392 if nonempty.
393 * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
394 * Makefile.in, configure, doc/Makefile.in: Regenerate.
395
396 2007-03-22 H.J. Lu <hongjiu.lu@intel.com>
397
398 PR ld/4210
399 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
400 address and virtual size of the last section for the image
401 size.
402
403 2007-03-22 H.J. Lu <hongjiu.lu@intel.com>
404
405 PR ld/4007
406 * elf.c (assign_file_positions_for_load_sections): Check if
407 all sections are in the segment.
408
409 2007-03-20 H.J. Lu <hongjiu.lu@intel.com>
410
411 PR ld/4208
412 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
413 matching LO16 relocation for HI16 relocation.
414
415 2007-03-20 Paul Brook <paul@codesourcery.com>
416
417 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
418 * bfd-in2.h: Regenerate.
419 * elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer.
420 (record_arm_to_thumb_glue): Use globals->pic_veneer.
421 (elf32_arm_create_thumb_stub): Ditto.
422 (bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer.
423
424 2007-03-18 Mark Shinwell <shinwell@codesourcery.com>
425
426 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *"
427 argument and extra last argument.
428 * bfd-in2.h: Regenerate.
429 * elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning
430 member.
431 (bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and
432 extra last argument. Set no_enum_size_warning appropriately.
433 (elf32_arm_merge_eabi_attributes): Improve enum sizes
434 diagnostic, suppressing it when no_enum_size_warning dictates.
435
436 2007-03-20 Nick Clifton <nickc@redhat.com>
437
438 PR binutils/3535
439 * elf.c (copy_private_bfd_data): Widen the scope of Solaris
440 specific conditions that need the program headers to be
441 rewritten.
442
443 2007-03-19 H.J. Lu <hongjiu.lu@intel.com>
444
445 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic,
446 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
447 SizeOfInitializedData, SizeOfUninitializedData,
448 AddressOfEntryPoint, BaseOfCode and BaseOfData in internal
449 extra PE a.out header.
450 (IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined.
451 (IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not
452 defined.
453 (IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not
454 defined.
455 (_bfd_XX_print_private_bfd_data_common): Also print Magic,
456 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
457 SizeOfInitializedData, SizeOfUninitializedData,
458 AddressOfEntryPoint, BaseOfCode and BaseOfData from internal
459 extra PE a.out header.
460
461 2007-03-18 H.J. Lu <hongjiu.lu@intel.com>
462
463 * targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec
464 only if BFD64 is defined.
465
466 2007-03-17 Alan Modra <amodra@bigpond.net.au>
467
468 * elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub
469 on setjmp calls.
470
471 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
472
473 * doc/Makefile.in: Regenerated.
474
475 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
476
477 * Makefile.am (bfdver.h): Substitute report_bugs_to. Also
478 create doc/bfdver.texi.
479 * Makefile.in: Regenerated.
480
481 * configure.in (--with-bugurl): New option.
482 * configure: Regenerated.
483
484 * version.h (REPORT_BUGS_TO): New.
485
486 2007-03-13 H.J. Lu <hongjiu.lu@intel.com>
487
488 PR binutils/3826
489 * elf-bfd.h (elf_backend_data): Add elf_osabi.
490 (_bfd_elf_set_osabi): New.
491
492 * elf.c (_bfd_elf_set_osabi): New.
493
494 * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
495 (elf_backend_post_process_headers): Defined with
496 _bfd_elf_set_osabi.
497 (ELF_OSABI): Properly defined for each target.
498
499 * elf32-i370.c (i370_elf_post_process_headers): Removed.
500 (ELF_OSABI): Defined.
501 (elf_backend_post_process_headers): Defined with
502 _bfd_elf_set_osabi.
503
504 * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
505 freebsd.
506 (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
507
508 * elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
509 (ELF_OSABI): Defined.
510 (elf_backend_post_process_headers): Defined with
511 _bfd_elf_set_osabi.
512
513 * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
514 freebsd.
515 (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
516 elf_osabi.
517
518 * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
519 with elf_osabi.
520 (ELF_OSABI): Properly defined for each target.
521 (elf_backend_post_process_headers): Defined with
522 _bfd_elf_set_osabi for Linux.
523
524 * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
525 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
526 (elf_backend_post_process_headers): Defined with
527 _bfd_elf_set_osabi.
528
529 * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
530 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
531 (elf_backend_post_process_headers): Defined with
532 _bfd_elf_set_osabi.
533
534 * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
535 with any ELF target of the compatible machine for which we do not
536 have a specific backend.
537
538 * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
539 with elf_osabi.
540
541 * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
542 (elfNN_bed): Initialize elf_osabi with ELF_OSABI.
543
544 2007-03-08 Alan Modra <amodra@bigpond.net.au>
545
546 * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
547 V850_OTHER_* bits.
548
549 2007-03-08 Alan Modra <amodra@bigpond.net.au>
550
551 * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
552 (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
553 Run "make dep-am".
554 * Makefile.in: Regenerate.
555 * po/SRC-POTFILES.in: Regenerate.
556
557 2007-03-07 H.J. Lu <hongjiu.lu@intel.com>
558
559 * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
560 (x86_64-*-kfreebsd*-gnu): Likewise.
561 (x86_64-*-netbsd*): Likewise.
562 (x86_64-*-openbsd*): Likewise.
563 (x86_64-*-linux-*): Likewise.
564
565 * configure.in: Support bfd_efi_app_x86_64_vec.
566 * configure: Regenerated.
567
568 * efi-app-x86_64.c: New file.
569
570 * targets.c (bfd_efi_app_x86_64_vec): New.
571 (_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
572
573 2007-03-07 Kai Tietz <kai.tietz@onevision.com>
574
575 * reloc.c (bfd_generic_get_relocated_section_contents): Remove
576 const for type reloc_howto_type.
577
578 2007-03-07 Alan Modra <amodra@bigpond.net.au>
579
580 PR 3958
581 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
582 (elf_discarded_section): Move..
583 * bfd-in.h: ..to here.
584 * bfd-in2.h: Regenerate.
585 * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
586 from discarded sections before relocate_section has done its job.
587 * reloc.c (bfd_generic_get_relocated_section_contents): Handle
588 relocs against symbols from discarded sections.
589 * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on
590 SECREL32.
591 (elf_hppa_relocate_section): Handle relocatable link after setting
592 sec, sym, h etc. for final link. Squash error messages for
593 relocatable link. Clear section contents for relocs against
594 symbols in discarded sections, and zero reloc. Remove existing
595 zero r_symndx code.
596 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
597 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
598 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
599 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
600 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
601 (bfin_relocate_section): Likewise.
602 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
603 * elf32-cris.c (cris_elf_relocate_section): Likewise.
604 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
605 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
606 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
607 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
608 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
609 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
610 * elf32-i370.c (i370_elf_relocate_section): Likewise.
611 * elf32-i386.c (elf_i386_relocate_section): Likewise.
612 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
613 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
614 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
615 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
616 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
617 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
618 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
619 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
620 * elf32-mep.c (mep_elf_relocate_section): Likewise.
621 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
622 * elf32-mt.c (mt_elf_relocate_section): Likewise.
623 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
624 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
625 * elf32-s390.c (elf_s390_relocate_section): Likewise.
626 * elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
627 * elf32-sh.c (sh_elf_relocate_section): Likewise.
628 * elf32-spu.c (spu_elf_relocate_section): Likewise.
629 * elf32-v850.c (v850_elf_relocate_section): Likewise.
630 * elf32-vax.c (elf_vax_relocate_section): Likewise.
631 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
632 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
633 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
634 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
635 (elf64_alpha_relocate_section): Likewise.
636 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
637 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
638 * elf64-s390.c (elf_s390_relocate_section): Likewise.
639 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
640 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
641 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
642 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
643 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
644
645 * elf32-arm.c (elf32_arm_relocate_section): Always adjust section
646 symbols for relocatable link. Don't use always-zero st_value.
647 (elf_backend_rela_normal): Don't define.
648 * elf32-bfin.c (bfinfdpic_relocate_section): Use
649 RELOC_FOR_GLOBAL_SYMBOL.
650 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
651 * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
652 section symbol adjustments with same for relocatable link.
653 * elf32-i386.c (elf_i386_relocate_section): Likewise.
654 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
655 (elf32_m68hc11_check_relocs): ..to here.
656 * elf32-score.c (score_elf_final_link_relocate): Remove zero
657 r_symndx code.
658 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
659
660 2007-03-07 Alan Modra <amodra@bigpond.net.au>
661
662 PR 4144
663 * elf.c (assign_file_positions_for_load_sections): Don't
664 adjust p_memsz for !SEC_LOAD section vma modulo page size.
665 Instead, use the same lma based adjustment for SEC_LOAD
666 sections.
667
668 2007-03-01 Bob Wilson <bob.wilson@acm.org>
669
670 * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
671 (find_relaxable_sections): Do not increment src_count for unknown
672 opcodes. Decode only once instead of calling is_l32r_relocation.
673 (compute_text_actions): Remove unused no_insn_move flag. Assert that
674 src_next matches src_count in relax_info.
675
676 2007-03-01 Joseph Myers <joseph@codesourcery.com>
677
678 * Makefile.am (bfdver.h): Use "." not " " between version number
679 and date.
680 * Makefile.in: Regenerate.
681 * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
682 * configure: Regenerate.
683
684 2007-02-28 Nathan Sidwell <nathan@codesourcery.com>
685
686 * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
687
688 2007-02-27 Alan Modra <amodra@bigpond.net.au>
689
690 * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
691 * elf32-spu.c (ovl_mgr_pread): Add const to casts.
692
693 2007-02-23 Carlos O'Donell <carlos@codesourcery.com>
694
695 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
696 DWARF even with 64-bit addresses.
697 (_bfd_dwarf2_find_nearest_line): Likewise.
698
699 2007-02-23 Nick Clifton <nickc@redhat.com>
700
701 PR binutils/3535
702 * elf.c (copy_private_bfd_data): Always rewrite the program
703 headers when a Solaris interpreter segment is involved.
704
705 2007-02-22 Paul Brook <paul@codesourcery.com>
706
707 * elflink.c (gc_mark_hook_fn): Remove.
708 (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
709 (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
710 * elf-bfd.h (elf_gc_mark_hook_fn): Define.
711 (elf_backend_data): Add gc_mark_extra_sections.
712 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
713 definition.
714 (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
715 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
716 (elf_backend_gc_mark_extra_sections): Define.
717
718 2007-02-21 Nick Clifton <nickc@redhat.com>
719
720 * elf.c (_bfd_elf_map_sections_to_segments): If the
721 override_segment_assignment callback is defined then call it.
722
723 2007-02-21 Alan Modra <amodra@bigpond.net.au>
724
725 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
726
727 2007-02-19 Thiemo Seufer <ths@mips.com>
728
729 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
730 translation marker from untranslatable strings.
731
732 2007-02-19 Alan Modra <amodra@bigpond.net.au>
733
734 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
735 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
736 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
737 (elfNN_bed): Init new field.
738 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
739
740 2007-02-17 Mark Mitchell <mark@codesourcery.com>
741 Nathan Sidwell <nathan@codesourcery.com>
742 Vladimir Prus <vladimir@codesourcery.com
743 Joseph Myers <joseph@codesourcery.com>
744
745 * configure.in (--with-pkgversion): New option.
746 * configure: Regenerate.
747 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
748 * Makefile.in: Regenerate.
749 * version.h (BFD_VERSION_STRING): Define using
750 @bfd_version_package@.
751
752 2007-02-16 Carlos O'Donell <carlos@codesourcery.com>
753
754 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
755 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
756 and EF_MIPS_UCODE.
757
758 2007-02-15 Alan Modra <amodra@bigpond.net.au>
759
760 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
761 declare.
762 (_bfd_norelocs_canonicalize_reloc): Likewise.
763 * libbfd.h: Regenerate.
764 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
765 (_bfd_norelocs_canonicalize_reloc): Likewise.
766 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
767 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
768 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
769 * ihex.c: Similarly.
770 * mach-o-target.c: Similarly.
771 * mach-o.c: Similarly.
772 * mmo.c: Similarly.
773 * pef.c: Similarly.
774 * ppcboot.c: Similarly.
775 * srec.c: Similarly.
776 * xsym.c: Similarly.
777
778 2007-02-14 H.J. Lu <hongjiu.lu@intel.com>
779
780 PR ld/3953
781 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
782 when adding default symbol.
783
784 2007-02-13 Alan Modra <amodra@bigpond.net.au>
785
786 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
787 for branch lookup table.
788
789 2007-02-12 Alan Modra <amodra@bigpond.net.au>
790
791 * elf64-ppc.c (create_linkage_sections): Don't create
792 .rela.rodata.brlt for --emit-relocs.
793 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
794 (ppc_size_one_stub): Count them. Simplify test of stub type
795 when counting stub relocs. Set SEC_RELOC too.
796 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
797 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
798
799 2007-02-12 Alan Modra <amodra@bigpond.net.au>
800
801 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
802 with a zero symbol index.
803
804 2007-02-12 Alan Modra <amodra@bigpond.net.au>
805
806 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
807
808 2007-02-05 Dave Brolley <brolley@redhat.com>
809 Stan Cox <scox@redhat.com>
810
811 PR ld/3972
812 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
813
814 2007-02-05 Dave Brolley <brolley@redhat.com>
815 Richard Sandiford <rsandifo@redhat.com>
816 Stan Cox <scox@redhat.com>
817 Nick Clifton <nickc@redhat.com>
818 DJ Delorie <dj@redhat.com>
819 Frank Ch. Eigler <fche@redhat.com>
820 Ben Elliston <bje@redhat.com>
821 Richard Henderson <rth@redhat.com>
822
823 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
824 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
825 (BFD32_BACKENDS): Add elf32-mep.lo.
826 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
827 (cpu-mep.lo,elf32-mep.lo): New targets.
828 * archures.c (bfd_arch_mep): New enumerator.
829 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
830 (bfd_mep_arch): New external variable.
831 (bfd_archures_list): Add bfd_mep_arch.
832 * config.bfd: Support mep-*-elf.
833 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
834 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
835 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
836 declarations.
837 (_bfd_target_vector): Add bfd_elf32_mep_vec and
838 bfd_elf32_mep_little_vec.
839 * mep-relocs.pl: New file.
840 * cpu-mep.c: New file.
841 * elf32-mep.c: New file.
842 * bfd-in2.h: Regenerate.
843 * po/POTFILES.in: Regenerate.
844 * libbfd.h: Regenerate.
845 * Makefile.in: Regenerate.
846 * configure: Regenerate.
847
848 2007-02-05 Dave Brolley <brolley@redhat.com>
849
850 * elflink.c (evaluate_complex_relocation_symbols): Check for
851 STT_SRELC for global symbols.
852 (perform_complex_relocations): Renamed to
853 perform_complex_relocation and now examines only one relocation.
854 (elf_link_input_bfd): Don't call perform_complex_relocations.
855 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
856 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
857 (OD,OS,OU): #undefs corrected to N, S and U repectively.
858 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
859 (complex_reloc_installation_howto): Removed.
860 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
861 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
862
863 2007-02-05 Dave Brolley <brolley@redhat.com>
864 Richard Sandiford <rsandifo@redhat.com>
865 DJ Delorie <dj@redhat.com>
866 Graydon Hoare <graydon@redhat.com>
867 Nick Clifton <nickc@cambridge.redhat.com>
868 Jeff Holcomb <jeffh@redhat.com>
869 Frank Ch. Eigler <fche@redhat.com>
870
871 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
872 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
873 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
874 * elflink.c (set_symbolValue): New static function.
875 (resolve_symbol): Likewise.
876 (resolve_section): Likewise.
877 (undefined_reference): Likewise.
878 (eval_symbol): Likewise.
879 (evaluate_complex_relocation_symbols): Likewise.
880 (put_value): Likewise.
881 (get_value): Likewise.
882 (decode_complex_addend):
883 (bfd_elf_perform_complex_relocation): New function.
884 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
885 * reloc.c (BFD_RELOC_RELC): New relocation number.
886 * syms.c (BSF_RELC,BSF_SRELC): New macros.
887
888 2007-02-05 Bob Wilson <bob.wilson@acm.org>
889
890 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
891 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
892 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
893 (elf_xtensa_allocate_got_size): Replace these with...
894 (elf_xtensa_allocate_dynrelocs): ...this new function.
895 (elf_xtensa_size_dynamic_sections): Use it.
896
897 2007-02-05 Bob Wilson <bob.wilson@acm.org>
898
899 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
900 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
901 Set src_mask to zero.
902 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
903 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
904
905 2007-02-02 Bob Wilson <bob.wilson@acm.org>
906
907 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
908 (elf_xtensa_dynamic_symbol_p): ...this.
909
910 2007-02-02 Bob Wilson <bob.wilson@acm.org>
911
912 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
913 (struct elf_xtensa_link_hash_table): New.
914 (elf_xtensa_hash_table): New.
915 (elf_xtensa_link_hash_table_create): New.
916 (elf_xtensa_check_relocs): Update plt_reloc_count references.
917 Update arguments to add_extra_plt_sections.
918 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
919 table. Update for plt_reloc_count and add_extra_plt_sections.
920 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
921 argument with link info. Update calls to elf_xtensa_get_plt_section
922 and elf_xtensa_get_gotplt_section.
923 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
924 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
925 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
926 (relax_property_section): Get sections from the hash table and update
927 function calls.
928 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
929 dynobj argument with link info. Get sections for first plt chunk from
930 the hash table.
931 (bfd_elf32_bfd_link_hash_table_create): Define.
932
933 2007-02-02 Jakub Jelinek <jakub@redhat.com>
934
935 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
936 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
937 (struct elf_symbol): Change first member into union.
938 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
939 internal syms. Only compare st_shndx fields.
940 (elf_create_symbuf): New function.
941 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
942 for bfds, use a binary search, otherwise don't qsort symbols
943 unnecessarily only to select which symbols are for the particular
944 shndx.
945
946 2007-02-01 Nick Clifton <nickc@redhat.com>
947
948 PR ld/3852
949 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
950 in the elf_link_hash_table structure.
951
952 2007-02-01 Alan Modra <amodra@bigpond.net.au>
953
954 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
955 * elfxx-target.h (elf_backend_write_core_note): Define and use.
956 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
957 32-bit core note on 64-bit target.
958 (elfcore_write_prstatus): Likewise.
959 (elfcore_write_lwpstatus): Make note_name const.
960 (elfcore_write_prfpreg): Likewise.
961 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
962 target.
963 * elf32-ppc.c (ppc_elf_write_core_note): New function.
964 (elf_backend_write_core_note): Define.
965 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
966 (elf_backend_write_core_note): Define.
967
968 2007-01-31 H.J. Lu <hongjiu.lu@intel.com>
969
970 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
971 (elf32_bed): Defined for elf32-us-cris.
972
973 * elf64-sh64.c (elf64_bed): Defined for Linux.
974 (INCLUDED_TARGET_FILE): Removed.
975
976 * elfxx-target.h (elfNN_bed): Always define. Don't check
977 INCLUDED_TARGET_FILE.
978
979 2007-01-31 DJ Delorie <dj@redhat.com>
980
981 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
982 message for dangerous relocs, special case the common user error.
983
984 2007-01-30 H.J. Lu <hongjiu.lu@intel.com>
985
986 * elf.c (copy_elf_program_header): Start from the first section
987 in a segment and stop when all sections in a segment are
988 accounted for.
989
990 2007-01-29 Julian Brown <julian@codesourcery.com>
991
992 * bfd-in2.h: Regenerate.
993 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
994 instruction scanning should be done.
995 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
996 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
997 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
998 prototype.
999 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
1000 argument.
1001 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
1002 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
1003 (elf32_vfp11_erratum_type): New enum.
1004 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
1005 veneers.
1006 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
1007 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
1008 vfp11_fix and num_vfp11_fixes fields.
1009 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
1010 vfp11_erratum_glue_size, num_vfp11_fixes fields.
1011 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
1012 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
1013 glue section.
1014 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
1015 to a section's map.
1016 (record_vfp11_erratum_veneer): Create a single veneer, and its
1017 associated symbols.
1018 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
1019 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
1020 BFDs.
1021 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
1022 required.
1023 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
1024 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
1025 (bfd_arm_vfp11_write_mask): Update write mask according to coded
1026 register number.
1027 (bfd_arm_vfp11_antidependency): New function.
1028 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
1029 (elf32_arm_compare_mapping): Declare.
1030 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
1031 BFD for potential erratum-triggering insns. Record results.
1032 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
1033 and branches to veneers have been placed in virtual memory after
1034 layout.
1035 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
1036 hash table.
1037 (elf32_arm_output_symbol_hook): Remove.
1038 (elf32_arm_write_section): Output veneers, and branches to veneers.
1039 Use maps from input sections, not output sections, for code
1040 byte-swapping.
1041 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
1042 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
1043 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
1044 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
1045
1046 2007-01-27 H.J. Lu <hongjiu.lu@intel.com>
1047
1048 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
1049 (INCLUDED_TARGET_FILE): Removed.
1050
1051 2007-01-27 Mike Frysinger <vapier@gentoo.org>
1052
1053 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
1054 (INCLUDED_TARGET_FILE): Remove.
1055
1056 2007-01-25 DJ Delorie <dj@redhat.com>
1057
1058 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
1059 R_M32C_16 or R_M32C_24 relocs.
1060
1061 2007-01-25 Nick Clifton <nickc@redhat.com>
1062
1063 PR binutils/3874
1064 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
1065 hash table was created by elf32_avr_link_hash_table_create before
1066 using it.
1067 (elf32_avr_link_hash_newfunc): New function. Just pass the call
1068 through to _bfd_elf_link_hash_newfunc.
1069 (elf32_avr_link_hash_table_create): Use
1070 elf32_avr_link_hash_newfunc instead of
1071 _bfd_elf_link_hash_newfunc.
1072 (elf32_avr_relocate_section): Check for the hash table pointer
1073 being NULL.
1074 (elf32_avr_relax_section, avr_build_one_stub,
1075 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
1076 elf32_avr_build_stubs): Likewise.
1077
1078 2007-01-16 H.J. Lu <hongjiu.lu@intel.com>
1079
1080 PR ld/3831
1081 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
1082 argument, Elf_Internal_Sym *.
1083
1084 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
1085 symbol dynamic if info->dynamic_data is TRUE.
1086 (bfd_elf_record_link_assignment): Updated call to
1087 bfd_elf_record_link_assignment.
1088 (_bfd_elf_merge_symbol): Likewise. Always call
1089 bfd_elf_link_mark_dynamic_symbol.
1090
1091 2007-01-12 H.J. Lu <hongjiu.lu@intel.com>
1092
1093 * Makefile.am (BFD_LIBS): Removed.
1094 * Makefile.in: Regenerated.
1095
1096 2007-01-11 H.J. Lu <hongjiu.lu@intel.com>
1097
1098 PR binutils/3631
1099 * Makefile.am (OFILES): Add @bfd64_libs@.
1100 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
1101 * Makefile.in: Regenerated.
1102
1103 * configure.in (bfd_libs): Replaced by ...
1104 (bfd64_libs): This.
1105 * configure: Regenerated.
1106
1107 2007-01-11 Nathan Sidwell <nathan@codesourcery.com>
1108
1109 * elf.c (assign_file_positions_for_load_sections): We can
1110 require fewer phdrs than expected.
1111
1112 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
1113
1114 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
1115 * bfd-in2.h: Regenerate.
1116 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
1117 bfd_mach_cpu32_fido.
1118 (m68k_arch_features): Use fido_a instead of cpu32.
1119 (bfd_m68k_compatible): Reject the combination of Fido and
1120 ColdFire. Accept the combination of CPU32 and Fido with a
1121 warning.
1122 * elf32-m68k.c (elf32_m68k_object_p,
1123 elf32_m68k_merge_private_bfd_data,
1124 elf32_m68k_print_private_bfd_data): Treat Fido as an
1125 architecture by itself.
1126
1127 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
1128
1129 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
1130
1131 2007-01-05 Jakub Jelinek <jakub@redhat.com>
1132
1133 * texhex.c (first_phase): Don't fall through into the default
1134 case.
1135 (pass_over): Replace abort () calls with return FALSE. Fix
1136 buffer overflow.
1137
1138 2007-01-04 Jie Zhang <jie.zhang@analog.com>
1139
1140 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
1141 SEC_EXCLUDE on zero size .eh_frame.
1142
1143 For older changes see ChangeLog-2006
1144 \f
1145 Local Variables:
1146 mode: change-log
1147 left-margin: 8
1148 fill-column: 74
1149 version-control: never
1150 End:
This page took 0.091413 seconds and 4 git commands to generate.