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