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