OSDN Git Service

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