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