6162d9cb5f92c13c33fd539f722259a333689173
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2006-02-17 Alan Modra <amodra@bigpond.net.au>
2
3 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
4 * elf64-ppc.c (allocate_dynrelocs): Likewise.
5
6 2006-02-17 Alan Modra <amodra@bigpond.net.au>
7
8 PR ld/2218
9 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
10 dynamic.
11 (ppc64_elf_relocate_section): Check output reloc section size.
12 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
13
14 2006-02-16 H.J. Lu <hongjiu.lu@intel.com>
15
16 PR ld/2322
17 * elf.c (get_segment_type): New function.
18 (_bfd_elf_print_private_bfd_data): Use it.
19 (print_segment_map): New function.
20 (assign_file_positions_for_segments): Call print_segment_map
21 when there are not enough room for program headers.
22
23 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
24
25 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
26 traditional MIPS ELF targets.
27
28 2006-02-15 H.J. Lu <hongjiu.lu@intel.com>
29
30 PR binutils/2338
31 * dwarf2.c (check_function_name): New function.
32 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
33 check if function is correct.
34
35 2006-02-16 Alan Modra <amodra@bigpond.net.au>
36
37 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
38 debug sections.
39 (elf_link_input_bfd): Adjust comments.
40
41 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
42
43 * elf.c (copy_private_bfd_data): Minor update.
44
45 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
46
47 PR binutils/2258
48 * elf.c (copy_private_bfd_data): Renamed to ...
49 (rewrite_elf_program_header): This.
50 (copy_elf_program_header): New function.
51 (copy_private_bfd_data): Likewise.
52
53 2006-02-07 Nathan Sidwell <nathan@codesourcery.com>
54
55 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
56 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
57 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
58 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
59 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
60 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
61 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
62 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
63 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
64 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
65 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
66 bfd_mach_mcf_isa_b_usp_float_emac): New.
67 (bfd_default_scan): Update coldfire mapping.
68 * bfd-in.h (bfd_m68k_mach_to_features,
69 bfd_m68k_features_to_mach): Declare.
70 * bfd-in2.h: Rebuilt.
71 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
72 adjust legacy names.
73 (m68k_arch_features): New.
74 (bfd_m68k_mach_to_features,
75 bfd_m68k_features_to_mach): Define.
76 * elf32-m68k.c (elf32_m68k_object_p): New.
77 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
78 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
79 (elf_backend_object_p): Define.
80 * ieee.c (ieee_write_processor): Update coldfire machines.
81 * libbfd.h: Rebuilt.
82
83 2006-02-06 Steve Ellcey <sje@cup.hp.com>
84
85 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
86 if SHF_TLS is set.
87
88 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
89
90 * coff-z80.c (r_imm24): New howto.
91 (rtype2howto): New case R_IMM24.
92 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
93 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
94
95 2006-02-04 Richard Sandiford <richard@codesourcery.com>
96
97 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
98 has already been assigned a GOT index, copy that index to the
99 current hash table entry.
100
101 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
102
103 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
104 for call-to-undefweak reloc overflow.
105
106 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
107
108 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
109 for 32-bit relocs overflow.
110
111 2006-01-27 Paul Brook <paul@codesourcery.com>
112
113 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
114 objects.
115
116 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
117
118 Introduce TLS descriptors for i386 and x86_64.
119 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
120 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
121 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
122 * libbfd.h, bfd-in2.h: Rebuilt.
123 * elf32-i386.c (elf_howto_table): New relocations.
124 (R_386_tls): Adjust.
125 (elf_i386_reloc_type_lookup): Map new relocations.
126 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
127 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
128 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
129 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
130 (elf_i386_local_tlsdesc_gotent): New macro.
131 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
132 (elf_i386_compute_jump_table_size): New macro.
133 (link_hash_newfunc): Initialize tlsdesc_got.
134 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
135 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
136 R_386_TLS_DESC_CALL.
137 (elf_i386_check_relocs): Likewise. Allocate space for
138 local_tlsdesc_gotent.
139 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
140 R_386_TLS_DESC_CALL.
141 (allocate_dynrelocs): Count function PLT relocations. Reserve
142 space for TLS descriptors and relocations.
143 (elf_i386_size_dynamic_sections): Reserve space for TLS
144 descriptors and relocations. Set up sgotplt_jump_table_size.
145 Don't zero reloc_count in srelplt.
146 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
147 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
148 R_386_TLS_DESC_CALL.
149 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
150 (elf_backend_always_size_sections): Define.
151 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
152 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
153 (R_X86_64_standard): Adjust.
154 (x86_64_reloc_map): Map new relocs.
155 (elf64_x86_64_rtype_to_howto): New, split out of...
156 (elf64_x86_64_info_to_howto): ... this function, and...
157 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
158 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
159 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
160 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
161 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
162 (elf64_x86_64_local_tlsdesc_gotent): New macro.
163 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
164 tlsdesc_got and sgotplt_jump_table_size fields.
165 (elf64_x86_64_compute_jump_table_size): New macro.
166 (link_hash_newfunc): Initialize tlsdesc_got.
167 (elf64_x86_64_link_hash_table_create): Initialize new fields.
168 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
169 R_X86_64_TLSDESC_CALL.
170 (elf64_x86_64_check_relocs): Likewise. Allocate space for
171 local_tlsdesc_gotent.
172 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
173 R_X86_64_TLSDESC_CALL.
174 (allocate_dynrelocs): Count function PLT relocations. Reserve
175 space for TLS descriptors and relocations.
176 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
177 descriptors and relocations. Set up sgotplt_jump_table_size,
178 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
179 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
180 and DT_TLSDESC_GOT.
181 (elf64_x86_64_always_size_sections): New. Set up
182 _TLS_MODULE_BASE_.
183 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
184 R_386_TLS_DESC_CALL.
185 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
186 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
187 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
188 (elf_backend_always_size_sections): Define.
189
190 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
191
192 PR binutils/2096
193 * dwarf2.c (comp_unit_contains_address): Update comment.
194 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
195 lma. Return TRUE only if both comp_unit_contains_address and
196 comp_unit_find_nearest_line return TRUE.
197 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
198
199 2006-01-18 Alan Modra <amodra@bigpond.net.au>
200
201 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
202 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
203 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
204 elf_gc_mark_dynamic_ref_symbol. Make global.
205 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
206 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
207 (elfNN_bed): Init new field.
208 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
209 (ppc64_elf_gc_mark_dynamic_ref): New function.
210
211 2006-01-17 Alan Modra <amodra@bigpond.net.au>
212
213 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
214
215 2006-01-17 Nick Clifton <nickc@redhat.com>
216
217 PR binutils/2159
218 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
219 parameters.
220
221 2006-01-11 Nick Clifton <nickc@redhat.com>
222
223 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
224 into the newly (re)allocated map array.
225
226 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
227
228 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
229
230 2006-01-01 Jakub Jelinek <jakub@redhat.com>
231
232 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
233 for .toc1 section.
234
235 For older changes see ChangeLog-2005
236 \f
237 Local Variables:
238 mode: change-log
239 left-margin: 8
240 fill-column: 74
241 version-control: never
242 End:
This page took 0.033969 seconds and 3 git commands to generate.