1 2006-02-04 Richard Sandiford <richard@codesourcery.com>
3 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
4 has already been assigned a GOT index, copy that index to the
5 current hash table entry.
7 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
9 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
10 for call-to-undefweak reloc overflow.
12 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
14 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
15 for 32-bit relocs overflow.
17 2006-01-27 Paul Brook <paul@codesourcery.com>
19 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
22 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
24 Introduce TLS descriptors for i386 and x86_64.
25 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
26 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
27 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
28 * libbfd.h, bfd-in2.h: Rebuilt.
29 * elf32-i386.c (elf_howto_table): New relocations.
31 (elf_i386_reloc_type_lookup): Map new relocations.
32 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
33 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
34 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
35 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
36 (elf_i386_local_tlsdesc_gotent): New macro.
37 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
38 (elf_i386_compute_jump_table_size): New macro.
39 (link_hash_newfunc): Initialize tlsdesc_got.
40 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
41 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
43 (elf_i386_check_relocs): Likewise. Allocate space for
45 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
47 (allocate_dynrelocs): Count function PLT relocations. Reserve
48 space for TLS descriptors and relocations.
49 (elf_i386_size_dynamic_sections): Reserve space for TLS
50 descriptors and relocations. Set up sgotplt_jump_table_size.
51 Don't zero reloc_count in srelplt.
52 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
53 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
55 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
56 (elf_backend_always_size_sections): Define.
57 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
58 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
59 (R_X86_64_standard): Adjust.
60 (x86_64_reloc_map): Map new relocs.
61 (elf64_x86_64_rtype_to_howto): New, split out of...
62 (elf64_x86_64_info_to_howto): ... this function, and...
63 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
64 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
65 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
66 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
67 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
68 (elf64_x86_64_local_tlsdesc_gotent): New macro.
69 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
70 tlsdesc_got and sgotplt_jump_table_size fields.
71 (elf64_x86_64_compute_jump_table_size): New macro.
72 (link_hash_newfunc): Initialize tlsdesc_got.
73 (elf64_x86_64_link_hash_table_create): Initialize new fields.
74 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
75 R_X86_64_TLSDESC_CALL.
76 (elf64_x86_64_check_relocs): Likewise. Allocate space for
78 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
79 R_X86_64_TLSDESC_CALL.
80 (allocate_dynrelocs): Count function PLT relocations. Reserve
81 space for TLS descriptors and relocations.
82 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
83 descriptors and relocations. Set up sgotplt_jump_table_size,
84 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
85 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
87 (elf64_x86_64_always_size_sections): New. Set up
89 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
91 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
92 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
93 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
94 (elf_backend_always_size_sections): Define.
96 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
99 * dwarf2.c (comp_unit_contains_address): Update comment.
100 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
101 lma. Return TRUE only if both comp_unit_contains_address and
102 comp_unit_find_nearest_line return TRUE.
103 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
105 2006-01-18 Alan Modra <amodra@bigpond.net.au>
107 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
108 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
109 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
110 elf_gc_mark_dynamic_ref_symbol. Make global.
111 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
112 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
113 (elfNN_bed): Init new field.
114 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
115 (ppc64_elf_gc_mark_dynamic_ref): New function.
117 2006-01-17 Alan Modra <amodra@bigpond.net.au>
119 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
121 2006-01-17 Nick Clifton <nickc@redhat.com>
124 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
127 2006-01-11 Nick Clifton <nickc@redhat.com>
129 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
130 into the newly (re)allocated map array.
132 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
134 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
136 2006-01-01 Jakub Jelinek <jakub@redhat.com>
138 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
141 For older changes see ChangeLog-2005
147 version-control: never