1 2007-03-23 Joseph Myers <joseph@codesourcery.com>
3 * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
4 * configure: Regenerate.
6 2007-03-23 Alan Modra <amodra@bigpond.net.au>
8 * elf32-spu.c (spu_stub_name): Don't put input section in stub name.
9 Remove input_sec param. Adjust all calls.
10 (write_one_stub): Adjust stub symbol.
11 (needs_ovl_stub): New function, extracted from..
12 (spu_elf_size_stubs): ..here.
13 (spu_elf_relocate_section): Use needs_ovl_stub.
15 2007-03-22 Joseph Myers <joseph@codesourcery.com>
17 * Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi
19 * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
20 * Makefile.in, configure, doc/Makefile.in: Regenerate.
22 2003-03-22 H.J. Lu <hongjiu.lu@intel.com>
25 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
26 address and virtual size of the last section for the image
29 2007-03-22 H.J. Lu <hongjiu.lu@intel.com>
32 * elf.c (assign_file_positions_for_load_sections): Check if
33 all sections are in the segment.
35 2003-03-20 H.J. Lu <hongjiu.lu@intel.com>
38 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
39 matching LO16 relocation for HI16 relocation.
41 2007-03-20 Paul Brook <paul@codesourcery.com>
43 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
44 * bfd-in2.h: Regenerate.
45 * elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer.
46 (record_arm_to_thumb_glue): Use globals->pic_veneer.
47 (elf32_arm_create_thumb_stub): Ditto.
48 (bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer.
50 2007-03-18 Mark Shinwell <shinwell@codesourcery.com>
52 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *"
53 argument and extra last argument.
54 * bfd-in2.h: Regenerate.
55 * elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning
57 (bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and
58 extra last argument. Set no_enum_size_warning appropriately.
59 (elf32_arm_merge_eabi_attributes): Improve enum sizes
60 diagnostic, suppressing it when no_enum_size_warning dictates.
62 2007-03-20 Nick Clifton <nickc@redhat.com>
65 * elf.c (copy_private_bfd_data): Widen the scope of Solaris
66 specific conditions that need the program headers to be
69 2003-03-19 H.J. Lu <hongjiu.lu@intel.com>
71 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic,
72 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
73 SizeOfInitializedData, SizeOfUninitializedData,
74 AddressOfEntryPoint, BaseOfCode and BaseOfData in internal
75 extra PE a.out header.
76 (IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined.
77 (IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not
79 (IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not
81 (_bfd_XX_print_private_bfd_data_common): Also print Magic,
82 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
83 SizeOfInitializedData, SizeOfUninitializedData,
84 AddressOfEntryPoint, BaseOfCode and BaseOfData from internal
85 extra PE a.out header.
87 2003-03-18 H.J. Lu <hongjiu.lu@intel.com>
89 * targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec
90 only if BFD64 is defined.
92 2007-03-17 Alan Modra <amodra@bigpond.net.au>
94 * elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub
97 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
99 * doc/Makefile.in: Regenerated.
101 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
103 * Makefile.am (bfdver.h): Substitute report_bugs_to. Also
104 create doc/bfdver.texi.
105 * Makefile.in: Regenerated.
107 * configure.in (--with-bugurl): New option.
108 * configure: Regenerated.
110 * version.h (REPORT_BUGS_TO): New.
112 2007-03-13 H.J. Lu <hongjiu.lu@intel.com>
115 * elf-bfd.h (elf_backend_data): Add elf_osabi.
116 (_bfd_elf_set_osabi): New.
118 * elf.c (_bfd_elf_set_osabi): New.
120 * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
121 (elf_backend_post_process_headers): Defined with
123 (ELF_OSABI): Properly defined for each target.
125 * elf32-i370.c (i370_elf_post_process_headers): Removed.
126 (ELF_OSABI): Defined.
127 (elf_backend_post_process_headers): Defined with
130 * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
132 (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
134 * elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
135 (ELF_OSABI): Defined.
136 (elf_backend_post_process_headers): Defined with
139 * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
141 (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
144 * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
146 (ELF_OSABI): Properly defined for each target.
147 (elf_backend_post_process_headers): Defined with
148 _bfd_elf_set_osabi for Linux.
150 * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
151 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
152 (elf_backend_post_process_headers): Defined with
155 * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
156 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
157 (elf_backend_post_process_headers): Defined with
160 * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
161 with any ELF target of the compatible machine for which we do not
162 have a specific backend.
164 * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
167 * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
168 (elfNN_bed): Initialize elf_osabi with ELF_OSABI.
170 2007-03-08 Alan Modra <amodra@bigpond.net.au>
172 * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
175 2007-03-08 Alan Modra <amodra@bigpond.net.au>
177 * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
178 (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
180 * Makefile.in: Regenerate.
181 * po/SRC-POTFILES.in: Regenerate.
183 2007-03-07 H.J. Lu <hongjiu.lu@intel.com>
185 * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
186 (x86_64-*-kfreebsd*-gnu): Likewise.
187 (x86_64-*-netbsd*): Likewise.
188 (x86_64-*-openbsd*): Likewise.
189 (x86_64-*-linux-*): Likewise.
191 * configure.in: Support bfd_efi_app_x86_64_vec.
192 * configure: Regenerated.
194 * efi-app-x86_64.c: New file.
196 * targets.c (bfd_efi_app_x86_64_vec): New.
197 (_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
199 2007-03-07 Kai Tietz <kai.tietz@onevision.com>
201 * reloc.c (bfd_generic_get_relocated_section_contents): Remove
202 const for type reloc_howto_type.
204 2007-03-07 Alan Modra <amodra@bigpond.net.au>
207 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
208 (elf_discarded_section): Move..
209 * bfd-in.h: ..to here.
210 * bfd-in2.h: Regenerate.
211 * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
212 from discarded sections before relocate_section has done its job.
213 * reloc.c (bfd_generic_get_relocated_section_contents): Handle
214 relocs against symbols from discarded sections.
215 * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on
217 (elf_hppa_relocate_section): Handle relocatable link after setting
218 sec, sym, h etc. for final link. Squash error messages for
219 relocatable link. Clear section contents for relocs against
220 symbols in discarded sections, and zero reloc. Remove existing
222 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
223 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
224 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
225 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
226 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
227 (bfin_relocate_section): Likewise.
228 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
229 * elf32-cris.c (cris_elf_relocate_section): Likewise.
230 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
231 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
232 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
233 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
234 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
235 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
236 * elf32-i370.c (i370_elf_relocate_section): Likewise.
237 * elf32-i386.c (elf_i386_relocate_section): Likewise.
238 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
239 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
240 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
241 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
242 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
243 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
244 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
245 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
246 * elf32-mep.c (mep_elf_relocate_section): Likewise.
247 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
248 * elf32-mt.c (mt_elf_relocate_section): Likewise.
249 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
250 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
251 * elf32-s390.c (elf_s390_relocate_section): Likewise.
252 * elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
253 * elf32-sh.c (sh_elf_relocate_section): Likewise.
254 * elf32-spu.c (spu_elf_relocate_section): Likewise.
255 * elf32-v850.c (v850_elf_relocate_section): Likewise.
256 * elf32-vax.c (elf_vax_relocate_section): Likewise.
257 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
258 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
259 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
260 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
261 (elf64_alpha_relocate_section): Likewise.
262 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
263 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
264 * elf64-s390.c (elf_s390_relocate_section): Likewise.
265 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
266 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
267 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
268 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
269 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
271 * elf32-arm.c (elf32_arm_relocate_section): Always adjust section
272 symbols for relocatable link. Don't use always-zero st_value.
273 (elf_backend_rela_normal): Don't define.
274 * elf32-bfin.c (bfinfdpic_relocate_section): Use
275 RELOC_FOR_GLOBAL_SYMBOL.
276 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
277 * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
278 section symbol adjustments with same for relocatable link.
279 * elf32-i386.c (elf_i386_relocate_section): Likewise.
280 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
281 (elf32_m68hc11_check_relocs): ..to here.
282 * elf32-score.c (score_elf_final_link_relocate): Remove zero
284 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
286 2007-03-07 Alan Modra <amodra@bigpond.net.au>
289 * elf.c (assign_file_positions_for_load_sections): Don't
290 adjust p_memsz for !SEC_LOAD section vma modulo page size.
291 Instead, use the same lma based adjustment for SEC_LOAD
294 2007-03-01 Bob Wilson <bob.wilson@acm.org>
296 * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
297 (find_relaxable_sections): Do not increment src_count for unknown
298 opcodes. Decode only once instead of calling is_l32r_relocation.
299 (compute_text_actions): Remove unused no_insn_move flag. Assert that
300 src_next matches src_count in relax_info.
302 2007-03-01 Joseph Myers <joseph@codesourcery.com>
304 * Makefile.am (bfdver.h): Use "." not " " between version number
306 * Makefile.in: Regenerate.
307 * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
308 * configure: Regenerate.
310 2007-02-28 Nathan Sidwell <nathan@codesourcery.com>
312 * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
314 2007-02-27 Alan Modra <amodra@bigpond.net.au>
316 * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
317 * elf32-spu.c (ovl_mgr_pread): Add const to casts.
319 2007-02-23 Carlos O'Donell <carlos@codesourcery.com>
321 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
322 DWARF even with 64-bit addresses.
323 (_bfd_dwarf2_find_nearest_line): Likewise.
325 2007-02-23 Nick Clifton <nickc@redhat.com>
328 * elf.c (copy_private_bfd_data): Always rewrite the program
329 headers when a Solaris interpreter segment is involved.
331 2007-02-22 Paul Brook <paul@codesourcery.com>
333 * elflink.c (gc_mark_hook_fn): Remove.
334 (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
335 (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
336 * elf-bfd.h (elf_gc_mark_hook_fn): Define.
337 (elf_backend_data): Add gc_mark_extra_sections.
338 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
340 (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
341 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
342 (elf_backend_gc_mark_extra_sections): Define.
344 2007-02-21 Nick Clifton <nickc@redhat.com>
346 * elf.c (_bfd_elf_map_sections_to_segments): If the
347 override_segment_assignment callback is defined then call it.
349 2007-02-21 Alan Modra <amodra@bigpond.net.au>
351 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
353 2007-02-19 Thiemo Seufer <ths@mips.com>
355 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
356 translation marker from untranslatable strings.
358 2007-02-19 Alan Modra <amodra@bigpond.net.au>
360 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
361 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
362 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
363 (elfNN_bed): Init new field.
364 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
366 2007-02-17 Mark Mitchell <mark@codesourcery.com>
367 Nathan Sidwell <nathan@codesourcery.com>
368 Vladimir Prus <vladimir@codesourcery.com
369 Joseph Myers <joseph@codesourcery.com>
371 * configure.in (--with-pkgversion): New option.
372 * configure: Regenerate.
373 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
374 * Makefile.in: Regenerate.
375 * version.h (BFD_VERSION_STRING): Define using
376 @bfd_version_package@.
378 2007-02-16 Carlos O'Donell <carlos@codesourcery.com>
380 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
381 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
384 2007-02-15 Alan Modra <amodra@bigpond.net.au>
386 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
388 (_bfd_norelocs_canonicalize_reloc): Likewise.
389 * libbfd.h: Regenerate.
390 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
391 (_bfd_norelocs_canonicalize_reloc): Likewise.
392 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
393 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
394 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
396 * mach-o-target.c: Similarly.
397 * mach-o.c: Similarly.
400 * ppcboot.c: Similarly.
404 2007-02-14 H.J. Lu <hongjiu.lu@intel.com>
407 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
408 when adding default symbol.
410 2007-02-13 Alan Modra <amodra@bigpond.net.au>
412 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
413 for branch lookup table.
415 2007-02-12 Alan Modra <amodra@bigpond.net.au>
417 * elf64-ppc.c (create_linkage_sections): Don't create
418 .rela.rodata.brlt for --emit-relocs.
419 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
420 (ppc_size_one_stub): Count them. Simplify test of stub type
421 when counting stub relocs. Set SEC_RELOC too.
422 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
423 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
425 2007-02-12 Alan Modra <amodra@bigpond.net.au>
427 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
428 with a zero symbol index.
430 2007-02-12 Alan Modra <amodra@bigpond.net.au>
432 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
434 2007-02-05 Dave Brolley <brolley@redhat.com>
435 Stan Cox <scox@redhat.com>
438 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
440 2007-02-05 Dave Brolley <brolley@redhat.com>
441 Richard Sandiford <rsandifo@redhat.com>
442 Stan Cox <scox@redhat.com>
443 Nick Clifton <nickc@redhat.com>
444 DJ Delorie <dj@redhat.com>
445 Frank Ch. Eigler <fche@redhat.com>
446 Ben Elliston <bje@redhat.com>
447 Richard Henderson <rth@redhat.com>
449 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
450 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
451 (BFD32_BACKENDS): Add elf32-mep.lo.
452 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
453 (cpu-mep.lo,elf32-mep.lo): New targets.
454 * archures.c (bfd_arch_mep): New enumerator.
455 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
456 (bfd_mep_arch): New external variable.
457 (bfd_archures_list): Add bfd_mep_arch.
458 * config.bfd: Support mep-*-elf.
459 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
460 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
461 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
463 (_bfd_target_vector): Add bfd_elf32_mep_vec and
464 bfd_elf32_mep_little_vec.
465 * mep-relocs.pl: New file.
466 * cpu-mep.c: New file.
467 * elf32-mep.c: New file.
468 * bfd-in2.h: Regenerate.
469 * po/POTFILES.in: Regenerate.
470 * libbfd.h: Regenerate.
471 * Makefile.in: Regenerate.
472 * configure: Regenerate.
474 2007-02-05 Dave Brolley <brolley@redhat.com>
476 * elflink.c (evaluate_complex_relocation_symbols): Check for
477 STT_SRELC for global symbols.
478 (perform_complex_relocations): Renamed to
479 perform_complex_relocation and now examines only one relocation.
480 (elf_link_input_bfd): Don't call perform_complex_relocations.
481 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
482 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
483 (OD,OS,OU): #undefs corrected to N, S and U repectively.
484 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
485 (complex_reloc_installation_howto): Removed.
486 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
487 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
489 2007-02-05 Dave Brolley <brolley@redhat.com>
490 Richard Sandiford <rsandifo@redhat.com>
491 DJ Delorie <dj@redhat.com>
492 Graydon Hoare <graydon@redhat.com>
493 Nick Clifton <nickc@cambridge.redhat.com>
494 Jeff Holcomb <jeffh@redhat.com>
495 Frank Ch. Eigler <fche@redhat.com>
497 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
498 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
499 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
500 * elflink.c (set_symbolValue): New static function.
501 (resolve_symbol): Likewise.
502 (resolve_section): Likewise.
503 (undefined_reference): Likewise.
504 (eval_symbol): Likewise.
505 (evaluate_complex_relocation_symbols): Likewise.
506 (put_value): Likewise.
507 (get_value): Likewise.
508 (decode_complex_addend):
509 (bfd_elf_perform_complex_relocation): New function.
510 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
511 * reloc.c (BFD_RELOC_RELC): New relocation number.
512 * syms.c (BSF_RELC,BSF_SRELC): New macros.
514 2007-02-05 Bob Wilson <bob.wilson@acm.org>
516 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
517 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
518 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
519 (elf_xtensa_allocate_got_size): Replace these with...
520 (elf_xtensa_allocate_dynrelocs): ...this new function.
521 (elf_xtensa_size_dynamic_sections): Use it.
523 2007-02-05 Bob Wilson <bob.wilson@acm.org>
525 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
526 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
527 Set src_mask to zero.
528 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
529 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
531 2007-02-02 Bob Wilson <bob.wilson@acm.org>
533 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
534 (elf_xtensa_dynamic_symbol_p): ...this.
536 2007-02-02 Bob Wilson <bob.wilson@acm.org>
538 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
539 (struct elf_xtensa_link_hash_table): New.
540 (elf_xtensa_hash_table): New.
541 (elf_xtensa_link_hash_table_create): New.
542 (elf_xtensa_check_relocs): Update plt_reloc_count references.
543 Update arguments to add_extra_plt_sections.
544 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
545 table. Update for plt_reloc_count and add_extra_plt_sections.
546 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
547 argument with link info. Update calls to elf_xtensa_get_plt_section
548 and elf_xtensa_get_gotplt_section.
549 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
550 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
551 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
552 (relax_property_section): Get sections from the hash table and update
554 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
555 dynobj argument with link info. Get sections for first plt chunk from
557 (bfd_elf32_bfd_link_hash_table_create): Define.
559 2007-02-02 Jakub Jelinek <jakub@redhat.com>
561 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
562 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
563 (struct elf_symbol): Change first member into union.
564 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
565 internal syms. Only compare st_shndx fields.
566 (elf_create_symbuf): New function.
567 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
568 for bfds, use a binary search, otherwise don't qsort symbols
569 unnecessarily only to select which symbols are for the particular
572 2007-02-01 Nick Clifton <nickc@redhat.com>
575 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
576 in the elf_link_hash_table structure.
578 2007-02-01 Alan Modra <amodra@bigpond.net.au>
580 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
581 * elfxx-target.h (elf_backend_write_core_note): Define and use.
582 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
583 32-bit core note on 64-bit target.
584 (elfcore_write_prstatus): Likewise.
585 (elfcore_write_lwpstatus): Make note_name const.
586 (elfcore_write_prfpreg): Likewise.
587 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
589 * elf32-ppc.c (ppc_elf_write_core_note): New function.
590 (elf_backend_write_core_note): Define.
591 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
592 (elf_backend_write_core_note): Define.
594 2007-01-31 H.J. Lu <hongjiu.lu@intel.com>
596 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
597 (elf32_bed): Defined for elf32-us-cris.
599 * elf64-sh64.c (elf64_bed): Defined for Linux.
600 (INCLUDED_TARGET_FILE): Removed.
602 * elfxx-target.h (elfNN_bed): Always define. Don't check
603 INCLUDED_TARGET_FILE.
605 2007-01-31 DJ Delorie <dj@redhat.com>
607 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
608 message for dangerous relocs, special case the common user error.
610 2007-01-30 H.J. Lu <hongjiu.lu@intel.com>
612 * elf.c (copy_elf_program_header): Start from the first section
613 in a segment and stop when all sections in a segment are
616 2007-01-29 Julian Brown <julian@codesourcery.com>
618 * bfd-in2.h: Regenerate.
619 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
620 instruction scanning should be done.
621 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
622 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
623 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
625 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
627 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
628 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
629 (elf32_vfp11_erratum_type): New enum.
630 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
632 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
633 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
634 vfp11_fix and num_vfp11_fixes fields.
635 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
636 vfp11_erratum_glue_size, num_vfp11_fixes fields.
637 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
638 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
640 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
642 (record_vfp11_erratum_veneer): Create a single veneer, and its
644 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
645 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
647 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
649 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
650 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
651 (bfd_arm_vfp11_write_mask): Update write mask according to coded
653 (bfd_arm_vfp11_antidependency): New function.
654 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
655 (elf32_arm_compare_mapping): Declare.
656 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
657 BFD for potential erratum-triggering insns. Record results.
658 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
659 and branches to veneers have been placed in virtual memory after
661 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
663 (elf32_arm_output_symbol_hook): Remove.
664 (elf32_arm_write_section): Output veneers, and branches to veneers.
665 Use maps from input sections, not output sections, for code
667 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
668 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
669 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
670 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
672 2007-01-27 H.J. Lu <hongjiu.lu@intel.com>
674 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
675 (INCLUDED_TARGET_FILE): Removed.
677 2007-01-27 Mike Frysinger <vapier@gentoo.org>
679 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
680 (INCLUDED_TARGET_FILE): Remove.
682 2007-01-25 DJ Delorie <dj@redhat.com>
684 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
685 R_M32C_16 or R_M32C_24 relocs.
687 2007-01-25 Nick Clifton <nickc@redhat.com>
690 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
691 hash table was created by elf32_avr_link_hash_table_create before
693 (elf32_avr_link_hash_newfunc): New function. Just pass the call
694 through to _bfd_elf_link_hash_newfunc.
695 (elf32_avr_link_hash_table_create): Use
696 elf32_avr_link_hash_newfunc instead of
697 _bfd_elf_link_hash_newfunc.
698 (elf32_avr_relocate_section): Check for the hash table pointer
700 (elf32_avr_relax_section, avr_build_one_stub,
701 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
702 elf32_avr_build_stubs): Likewise.
704 2007-01-16 H.J. Lu <hongjiu.lu@intel.com>
707 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
708 argument, Elf_Internal_Sym *.
710 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
711 symbol dynamic if info->dynamic_data is TRUE.
712 (bfd_elf_record_link_assignment): Updated call to
713 bfd_elf_record_link_assignment.
714 (_bfd_elf_merge_symbol): Likewise. Always call
715 bfd_elf_link_mark_dynamic_symbol.
717 2007-01-12 H.J. Lu <hongjiu.lu@intel.com>
719 * Makefile.am (BFD_LIBS): Removed.
720 * Makefile.in: Regenerated.
722 2007-01-11 H.J. Lu <hongjiu.lu@intel.com>
725 * Makefile.am (OFILES): Add @bfd64_libs@.
726 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
727 * Makefile.in: Regenerated.
729 * configure.in (bfd_libs): Replaced by ...
731 * configure: Regenerated.
733 2007-01-11 Nathan Sidwell <nathan@codesourcery.com>
735 * elf.c (assign_file_positions_for_load_sections): We can
736 require fewer phdrs than expected.
738 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
740 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
741 * bfd-in2.h: Regenerate.
742 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
744 (m68k_arch_features): Use fido_a instead of cpu32.
745 (bfd_m68k_compatible): Reject the combination of Fido and
746 ColdFire. Accept the combination of CPU32 and Fido with a
748 * elf32-m68k.c (elf32_m68k_object_p,
749 elf32_m68k_merge_private_bfd_data,
750 elf32_m68k_print_private_bfd_data): Treat Fido as an
751 architecture by itself.
753 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
755 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
757 2007-01-05 Jakub Jelinek <jakub@redhat.com>
759 * texhex.c (first_phase): Don't fall through into the default
761 (pass_over): Replace abort () calls with return FALSE. Fix
764 2007-01-04 Jie Zhang <jie.zhang@analog.com>
766 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
767 SEC_EXCLUDE on zero size .eh_frame.
769 For older changes see ChangeLog-2006
775 version-control: never