* elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index eb9e0d110bfb2ac8ac05499a6f49649d415fd1e9..5820f98e8fbad00fa5a044e2283de37a7a9fd570 100644 (file)
@@ -1,3 +1,131 @@
+2006-02-06  Steve Ellcey  <sje@cup.hp.com>
+
+       * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
+       if SHF_TLS is set.
+
+2006-02-05  Arnold Metselaar  <arnold.metselaar@planet.nl>
+
+       * coff-z80.c (r_imm24): New howto. 
+       (rtype2howto): New case R_IMM24.
+       (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
+       (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
+
+2006-02-04  Richard Sandiford  <richard@codesourcery.com>
+
+       * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
+       has already been assigned a GOT index, copy that index to the
+       current hash table entry.
+
+2006-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
+       for call-to-undefweak reloc overflow.
+
+2006-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
+       for 32-bit relocs overflow.
+
+2006-01-27  Paul Brook  <paul@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
+       objects.
+
+2006-01-18  Alexandre Oliva  <aoliva@redhat.com>
+
+       Introduce TLS descriptors for i386 and x86_64.
+       * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
+       BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
+       BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
+       * libbfd.h, bfd-in2.h: Rebuilt.
+       * elf32-i386.c (elf_howto_table): New relocations.
+       (R_386_tls): Adjust.
+       (elf_i386_reloc_type_lookup): Map new relocations.
+       (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
+       (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
+       (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
+       (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
+       (elf_i386_local_tlsdesc_gotent): New macro.
+       (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
+       (elf_i386_compute_jump_table_size): New macro.
+       (link_hash_newfunc): Initialize tlsdesc_got.
+       (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
+       (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
+       R_386_TLS_DESC_CALL.
+       (elf_i386_check_relocs): Likewise.  Allocate space for
+       local_tlsdesc_gotent.
+       (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
+       R_386_TLS_DESC_CALL.
+       (allocate_dynrelocs): Count function PLT relocations.  Reserve
+       space for TLS descriptors and relocations.
+       (elf_i386_size_dynamic_sections): Reserve space for TLS
+       descriptors and relocations.  Set up sgotplt_jump_table_size.
+       Don't zero reloc_count in srelplt.
+       (elf_i386_always_size_sections): New.  Set up _TLS_MODULE_BASE_.
+       (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
+       R_386_TLS_DESC_CALL.
+       (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
+       (elf_backend_always_size_sections): Define.
+       * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
+       R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
+       (R_X86_64_standard): Adjust.
+       (x86_64_reloc_map): Map new relocs.
+       (elf64_x86_64_rtype_to_howto): New, split out of...
+       (elf64_x86_64_info_to_howto): ... this function, and...
+       (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
+       (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
+       (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
+       (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
+       (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
+       (elf64_x86_64_local_tlsdesc_gotent): New macro.
+       (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
+       tlsdesc_got and sgotplt_jump_table_size fields.
+       (elf64_x86_64_compute_jump_table_size): New macro.
+       (link_hash_newfunc): Initialize tlsdesc_got.
+       (elf64_x86_64_link_hash_table_create): Initialize new fields.
+       (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
+       R_X86_64_TLSDESC_CALL.
+       (elf64_x86_64_check_relocs): Likewise.  Allocate space for
+       local_tlsdesc_gotent.
+       (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
+       R_X86_64_TLSDESC_CALL.
+       (allocate_dynrelocs): Count function PLT relocations.  Reserve
+       space for TLS descriptors and relocations.
+       (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
+       descriptors and relocations.  Set up sgotplt_jump_table_size,
+       tlsdesc_plt and tlsdesc_got.  Make room for them.  Don't zero
+       reloc_count in srelplt.  Add dynamic entries for DT_TLSDESC_PLT
+       and DT_TLSDESC_GOT.
+       (elf64_x86_64_always_size_sections): New.  Set up
+       _TLS_MODULE_BASE_.
+       (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
+       R_386_TLS_DESC_CALL.
+       (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
+       (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
+       DT_TLSDESC_GOT.  Set up TLS descriptor lazy resolver PLT entry.
+       (elf_backend_always_size_sections): Define.
+
+2006-01-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/2096
+       * dwarf2.c (comp_unit_contains_address): Update comment.
+       (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
+       lma.  Return TRUE only if both comp_unit_contains_address and
+       comp_unit_find_nearest_line return TRUE.
+       (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
+
+2006-01-18  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
+       (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
+       * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
+       elf_gc_mark_dynamic_ref_symbol.  Make global.
+       (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
+       * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
+       (elfNN_bed): Init new field.
+       * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
+       (ppc64_elf_gc_mark_dynamic_ref): New function.
+
 2006-01-17  Alan Modra  <amodra@bigpond.net.au>
 
        * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
This page took 0.023861 seconds and 4 git commands to generate.