2006-01-27 Paul Brook <paul@codesourcery.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2006-01-27 Paul Brook <paul@codesourcery.com>
2
3 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
4 objects.
5
6 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
7
8 Introduce TLS descriptors for i386 and x86_64.
9 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
10 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
11 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
12 * libbfd.h, bfd-in2.h: Rebuilt.
13 * elf32-i386.c (elf_howto_table): New relocations.
14 (R_386_tls): Adjust.
15 (elf_i386_reloc_type_lookup): Map new relocations.
16 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
17 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
18 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
19 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
20 (elf_i386_local_tlsdesc_gotent): New macro.
21 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
22 (elf_i386_compute_jump_table_size): New macro.
23 (link_hash_newfunc): Initialize tlsdesc_got.
24 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
25 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
26 R_386_TLS_DESC_CALL.
27 (elf_i386_check_relocs): Likewise. Allocate space for
28 local_tlsdesc_gotent.
29 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
30 R_386_TLS_DESC_CALL.
31 (allocate_dynrelocs): Count function PLT relocations. Reserve
32 space for TLS descriptors and relocations.
33 (elf_i386_size_dynamic_sections): Reserve space for TLS
34 descriptors and relocations. Set up sgotplt_jump_table_size.
35 Don't zero reloc_count in srelplt.
36 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
37 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
38 R_386_TLS_DESC_CALL.
39 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
40 (elf_backend_always_size_sections): Define.
41 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
42 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
43 (R_X86_64_standard): Adjust.
44 (x86_64_reloc_map): Map new relocs.
45 (elf64_x86_64_rtype_to_howto): New, split out of...
46 (elf64_x86_64_info_to_howto): ... this function, and...
47 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
48 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
49 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
50 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
51 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
52 (elf64_x86_64_local_tlsdesc_gotent): New macro.
53 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
54 tlsdesc_got and sgotplt_jump_table_size fields.
55 (elf64_x86_64_compute_jump_table_size): New macro.
56 (link_hash_newfunc): Initialize tlsdesc_got.
57 (elf64_x86_64_link_hash_table_create): Initialize new fields.
58 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
59 R_X86_64_TLSDESC_CALL.
60 (elf64_x86_64_check_relocs): Likewise. Allocate space for
61 local_tlsdesc_gotent.
62 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
63 R_X86_64_TLSDESC_CALL.
64 (allocate_dynrelocs): Count function PLT relocations. Reserve
65 space for TLS descriptors and relocations.
66 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
67 descriptors and relocations. Set up sgotplt_jump_table_size,
68 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
69 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
70 and DT_TLSDESC_GOT.
71 (elf64_x86_64_always_size_sections): New. Set up
72 _TLS_MODULE_BASE_.
73 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
74 R_386_TLS_DESC_CALL.
75 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
76 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
77 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
78 (elf_backend_always_size_sections): Define.
79
80 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
81
82 PR binutils/2096
83 * dwarf2.c (comp_unit_contains_address): Update comment.
84 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
85 lma. Return TRUE only if both comp_unit_contains_address and
86 comp_unit_find_nearest_line return TRUE.
87 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
88
89 2006-01-18 Alan Modra <amodra@bigpond.net.au>
90
91 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
92 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
93 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
94 elf_gc_mark_dynamic_ref_symbol. Make global.
95 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
96 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
97 (elfNN_bed): Init new field.
98 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
99 (ppc64_elf_gc_mark_dynamic_ref): New function.
100
101 2006-01-17 Alan Modra <amodra@bigpond.net.au>
102
103 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
104
105 2006-01-17 Nick Clifton <nickc@redhat.com>
106
107 PR binutils/2159
108 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
109 parameters.
110
111 2006-01-11 Nick Clifton <nickc@redhat.com>
112
113 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
114 into the newly (re)allocated map array.
115
116 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
117
118 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
119
120 2006-01-01 Jakub Jelinek <jakub@redhat.com>
121
122 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
123 for .toc1 section.
124
125 For older changes see ChangeLog-2005
126 \f
127 Local Variables:
128 mode: change-log
129 left-margin: 8
130 fill-column: 74
131 version-control: never
132 End:
This page took 0.033176 seconds and 5 git commands to generate.