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