* elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
[binutils.git] / bfd / ChangeLog
blob5820f98e8fbad00fa5a044e2283de37a7a9fd570
1 2006-02-06  Steve Ellcey  <sje@cup.hp.com>
3         * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
4         if SHF_TLS is set.
6 2006-02-05  Arnold Metselaar  <arnold.metselaar@planet.nl>
8         * coff-z80.c (r_imm24): New howto. 
9         (rtype2howto): New case R_IMM24.
10         (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
11         (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
13 2006-02-04  Richard Sandiford  <richard@codesourcery.com>
15         * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
16         has already been assigned a GOT index, copy that index to the
17         current hash table entry.
19 2006-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
21         * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
22         for call-to-undefweak reloc overflow.
24 2006-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
26         * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
27         for 32-bit relocs overflow.
29 2006-01-27  Paul Brook  <paul@codesourcery.com>
31         * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
32         objects.
34 2006-01-18  Alexandre Oliva  <aoliva@redhat.com>
36         Introduce TLS descriptors for i386 and x86_64.
37         * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
38         BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
39         BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
40         * libbfd.h, bfd-in2.h: Rebuilt.
41         * elf32-i386.c (elf_howto_table): New relocations.
42         (R_386_tls): Adjust.
43         (elf_i386_reloc_type_lookup): Map new relocations.
44         (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
45         (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
46         (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
47         (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
48         (elf_i386_local_tlsdesc_gotent): New macro.
49         (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
50         (elf_i386_compute_jump_table_size): New macro.
51         (link_hash_newfunc): Initialize tlsdesc_got.
52         (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
53         (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
54         R_386_TLS_DESC_CALL.
55         (elf_i386_check_relocs): Likewise.  Allocate space for
56         local_tlsdesc_gotent.
57         (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
58         R_386_TLS_DESC_CALL.
59         (allocate_dynrelocs): Count function PLT relocations.  Reserve
60         space for TLS descriptors and relocations.
61         (elf_i386_size_dynamic_sections): Reserve space for TLS
62         descriptors and relocations.  Set up sgotplt_jump_table_size.
63         Don't zero reloc_count in srelplt.
64         (elf_i386_always_size_sections): New.  Set up _TLS_MODULE_BASE_.
65         (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
66         R_386_TLS_DESC_CALL.
67         (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
68         (elf_backend_always_size_sections): Define.
69         * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
70         R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
71         (R_X86_64_standard): Adjust.
72         (x86_64_reloc_map): Map new relocs.
73         (elf64_x86_64_rtype_to_howto): New, split out of...
74         (elf64_x86_64_info_to_howto): ... this function, and...
75         (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
76         (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
77         (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
78         (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
79         (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
80         (elf64_x86_64_local_tlsdesc_gotent): New macro.
81         (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
82         tlsdesc_got and sgotplt_jump_table_size fields.
83         (elf64_x86_64_compute_jump_table_size): New macro.
84         (link_hash_newfunc): Initialize tlsdesc_got.
85         (elf64_x86_64_link_hash_table_create): Initialize new fields.
86         (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
87         R_X86_64_TLSDESC_CALL.
88         (elf64_x86_64_check_relocs): Likewise.  Allocate space for
89         local_tlsdesc_gotent.
90         (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
91         R_X86_64_TLSDESC_CALL.
92         (allocate_dynrelocs): Count function PLT relocations.  Reserve
93         space for TLS descriptors and relocations.
94         (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
95         descriptors and relocations.  Set up sgotplt_jump_table_size,
96         tlsdesc_plt and tlsdesc_got.  Make room for them.  Don't zero
97         reloc_count in srelplt.  Add dynamic entries for DT_TLSDESC_PLT
98         and DT_TLSDESC_GOT.
99         (elf64_x86_64_always_size_sections): New.  Set up
100         _TLS_MODULE_BASE_.
101         (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
102         R_386_TLS_DESC_CALL.
103         (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
104         (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
105         DT_TLSDESC_GOT.  Set up TLS descriptor lazy resolver PLT entry.
106         (elf_backend_always_size_sections): Define.
108 2006-01-17  H.J. Lu  <hongjiu.lu@intel.com>
110         PR binutils/2096
111         * dwarf2.c (comp_unit_contains_address): Update comment.
112         (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
113         lma.  Return TRUE only if both comp_unit_contains_address and
114         comp_unit_find_nearest_line return TRUE.
115         (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
117 2006-01-18  Alan Modra  <amodra@bigpond.net.au>
119         * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
120         (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
121         * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
122         elf_gc_mark_dynamic_ref_symbol.  Make global.
123         (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
124         * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
125         (elfNN_bed): Init new field.
126         * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
127         (ppc64_elf_gc_mark_dynamic_ref): New function.
129 2006-01-17  Alan Modra  <amodra@bigpond.net.au>
131         * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
133 2006-01-17  Nick Clifton  <nickc@redhat.com>
135         PR binutils/2159
136         * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
137         parameters.
139 2006-01-11  Nick Clifton  <nickc@redhat.com>
141         * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
142         into the newly (re)allocated map array.
144 2006-01-09  Alexis Wilke  <alexis_wilke@yahoo.com>
146         * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
148 2006-01-01  Jakub Jelinek  <jakub@redhat.com>
150         * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
151         for .toc1 section.
153 For older changes see ChangeLog-2005
155 Local Variables:
156 mode: change-log
157 left-margin: 8
158 fill-column: 74
159 version-control: never
160 End: