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