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