bfd/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2006-02-25 Richard Sandiford <richard@codesourcery.com>
2
3 * elf-bfd.h (elf_link_hash_table): Add hplt field.
4 * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
5 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
6 * elf32-frv.c (_frv_create_got_section): Likewise.
7 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
8 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
9 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
10 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
11 * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
12 (elf_i386_link_hash_table_create): Don't initialize them.
13 (elf_i386_size_dynamic_sections): Use the generic ELF hplt and
14 hgot fields.
15 (elf_i386_finish_dynamic_symbol): Likewise.
16 * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
17 (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
18 (ppc_elf_finish_dynamic_symbol): Likewise.
19
20 2006-02-24 DJ Delorie <dj@redhat.com>
21
22 * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
23 (m32c_elf_relocate_section): Don't relocate them.
24 (compare_reloc): New.
25 (relax_reloc): Remove.
26 (m32c_offset_for_reloc): New.
27 (m16c_addr_encodings): New.
28 (m16c_jmpaddr_encodings): New.
29 (m32c_addr_encodings): New.
30 (m32c_elf_relax_section): Relax jumps and address displacements.
31 (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
32 short jumps.
33
34 * reloc.c: Add m32c relax relocs.
35 * libbfd.h: Regenerate.
36 * bfd-in2.h: Regenerate.
37
38 2006-02-24 H.J. Lu <hongjiu.lu@intel.com>
39
40 PR ld/2218
41 * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
42 (_bfd_elf_link_hash_fixup_symbol): New.
43
44 * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
45 (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
46 it isn't NULL.
47
48 * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
49
50 * elfxx-target.h (elf_backend_fixup_symbol): New.
51 (elfNN_bed): Initialize elf_backend_fixup_symbol.
52
53 2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
54
55 * cpu-ia64-opc.c (ins_immu5b): New.
56 (ext_immu5b): Likewise.
57 (elf64_ia64_operands): Add IMMU5b.
58
59 2006-02-21 Alan Modra <amodra@bigpond.net.au>
60
61 PR ld/2218
62 * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
63 is dynamic.
64 * elf32-hppa.c (allocate_dynrelocs): Likewise.
65 * elf32-i386.c (allocate_dynrelocs): Likewise.
66 * elf32-s390.c (allocate_dynrelocs): Likewise.
67 * elf32-sh.c (allocate_dynrelocs): Likewise.
68 * elf64-s390.c (allocate_dynrelocs): Likewise.
69 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
70 * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs
71 on undef weak with non-default visibility too.
72 * elfxx-sparc.c (allocate_dynrelocs): Ditto.
73
74 2006-02-21 Alan Modra <amodra@bigpond.net.au>
75
76 * bfd.c: (_bfd_default_error_handler): Don't call abort on
77 error, instead call _exit.
78 (_bfd_abort): Call _exit not xexit.
79
80 2006-02-17 Kevin Buettner <kevinb@redhat.com>
81
82 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
83 New functions.
84 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
85
86 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
87 Anil Paranjape <anilp1@kpitcummins.com>
88 Shilin Shakti <shilins@kpitcummins.com>
89
90 * Makefile.am: Add xc16x related entry
91 * Makefile.in: Regenerate
92 * archures.c: Add bfd_xc16x_arch
93 * bfd-in2.h: Regenerate
94 * config.bfd: Add xc16x-*-elf
95 * configure.in: Add bfd_elf32_xc16x_vec
96 * configure: Regenerate.
97 * targets.c: Added xc16x related information
98 * cpu-xc16x.c: New file
99 * reloc.c: Add new relocations specific to xc16x:
100 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
101 BFD_RELOC_XC16X_SOF
102 * elf32-xc16x.c: New file.
103
104 2006-02-17 Alan Modra <amodra@bigpond.net.au>
105
106 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
107 * elf64-ppc.c (allocate_dynrelocs): Likewise.
108
109 2006-02-17 Alan Modra <amodra@bigpond.net.au>
110
111 PR ld/2218
112 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
113 dynamic.
114 (ppc64_elf_relocate_section): Check output reloc section size.
115 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
116
117 2006-02-16 H.J. Lu <hongjiu.lu@intel.com>
118
119 PR ld/2322
120 * elf.c (get_segment_type): New function.
121 (_bfd_elf_print_private_bfd_data): Use it.
122 (print_segment_map): New function.
123 (assign_file_positions_for_segments): Call print_segment_map
124 when there are not enough room for program headers.
125
126 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
127
128 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
129 traditional MIPS ELF targets.
130
131 2006-02-15 H.J. Lu <hongjiu.lu@intel.com>
132
133 PR binutils/2338
134 * dwarf2.c (check_function_name): New function.
135 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
136 check if function is correct.
137
138 2006-02-16 Alan Modra <amodra@bigpond.net.au>
139
140 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
141 debug sections.
142 (elf_link_input_bfd): Adjust comments.
143
144 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
145
146 * elf.c (copy_private_bfd_data): Minor update.
147
148 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
149
150 PR binutils/2258
151 * elf.c (copy_private_bfd_data): Renamed to ...
152 (rewrite_elf_program_header): This.
153 (copy_elf_program_header): New function.
154 (copy_private_bfd_data): Likewise.
155
156 2006-02-07 Nathan Sidwell <nathan@codesourcery.com>
157
158 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
159 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
160 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
161 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
162 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
163 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
164 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
165 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
166 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
167 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
168 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
169 bfd_mach_mcf_isa_b_usp_float_emac): New.
170 (bfd_default_scan): Update coldfire mapping.
171 * bfd-in.h (bfd_m68k_mach_to_features,
172 bfd_m68k_features_to_mach): Declare.
173 * bfd-in2.h: Rebuilt.
174 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
175 adjust legacy names.
176 (m68k_arch_features): New.
177 (bfd_m68k_mach_to_features,
178 bfd_m68k_features_to_mach): Define.
179 * elf32-m68k.c (elf32_m68k_object_p): New.
180 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
181 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
182 (elf_backend_object_p): Define.
183 * ieee.c (ieee_write_processor): Update coldfire machines.
184 * libbfd.h: Rebuilt.
185
186 2006-02-06 Steve Ellcey <sje@cup.hp.com>
187
188 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
189 if SHF_TLS is set.
190
191 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
192
193 * coff-z80.c (r_imm24): New howto.
194 (rtype2howto): New case R_IMM24.
195 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
196 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
197
198 2006-02-04 Richard Sandiford <richard@codesourcery.com>
199
200 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
201 has already been assigned a GOT index, copy that index to the
202 current hash table entry.
203
204 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
205
206 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
207 for call-to-undefweak reloc overflow.
208
209 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
210
211 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
212 for 32-bit relocs overflow.
213
214 2006-01-27 Paul Brook <paul@codesourcery.com>
215
216 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
217 objects.
218
219 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
220
221 Introduce TLS descriptors for i386 and x86_64.
222 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
223 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
224 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
225 * libbfd.h, bfd-in2.h: Rebuilt.
226 * elf32-i386.c (elf_howto_table): New relocations.
227 (R_386_tls): Adjust.
228 (elf_i386_reloc_type_lookup): Map new relocations.
229 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
230 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
231 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
232 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
233 (elf_i386_local_tlsdesc_gotent): New macro.
234 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
235 (elf_i386_compute_jump_table_size): New macro.
236 (link_hash_newfunc): Initialize tlsdesc_got.
237 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
238 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
239 R_386_TLS_DESC_CALL.
240 (elf_i386_check_relocs): Likewise. Allocate space for
241 local_tlsdesc_gotent.
242 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
243 R_386_TLS_DESC_CALL.
244 (allocate_dynrelocs): Count function PLT relocations. Reserve
245 space for TLS descriptors and relocations.
246 (elf_i386_size_dynamic_sections): Reserve space for TLS
247 descriptors and relocations. Set up sgotplt_jump_table_size.
248 Don't zero reloc_count in srelplt.
249 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
250 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
251 R_386_TLS_DESC_CALL.
252 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
253 (elf_backend_always_size_sections): Define.
254 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
255 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
256 (R_X86_64_standard): Adjust.
257 (x86_64_reloc_map): Map new relocs.
258 (elf64_x86_64_rtype_to_howto): New, split out of...
259 (elf64_x86_64_info_to_howto): ... this function, and...
260 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
261 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
262 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
263 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
264 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
265 (elf64_x86_64_local_tlsdesc_gotent): New macro.
266 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
267 tlsdesc_got and sgotplt_jump_table_size fields.
268 (elf64_x86_64_compute_jump_table_size): New macro.
269 (link_hash_newfunc): Initialize tlsdesc_got.
270 (elf64_x86_64_link_hash_table_create): Initialize new fields.
271 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
272 R_X86_64_TLSDESC_CALL.
273 (elf64_x86_64_check_relocs): Likewise. Allocate space for
274 local_tlsdesc_gotent.
275 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
276 R_X86_64_TLSDESC_CALL.
277 (allocate_dynrelocs): Count function PLT relocations. Reserve
278 space for TLS descriptors and relocations.
279 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
280 descriptors and relocations. Set up sgotplt_jump_table_size,
281 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
282 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
283 and DT_TLSDESC_GOT.
284 (elf64_x86_64_always_size_sections): New. Set up
285 _TLS_MODULE_BASE_.
286 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
287 R_386_TLS_DESC_CALL.
288 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
289 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
290 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
291 (elf_backend_always_size_sections): Define.
292
293 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
294
295 PR binutils/2096
296 * dwarf2.c (comp_unit_contains_address): Update comment.
297 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
298 lma. Return TRUE only if both comp_unit_contains_address and
299 comp_unit_find_nearest_line return TRUE.
300 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
301
302 2006-01-18 Alan Modra <amodra@bigpond.net.au>
303
304 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
305 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
306 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
307 elf_gc_mark_dynamic_ref_symbol. Make global.
308 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
309 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
310 (elfNN_bed): Init new field.
311 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
312 (ppc64_elf_gc_mark_dynamic_ref): New function.
313
314 2006-01-17 Alan Modra <amodra@bigpond.net.au>
315
316 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
317
318 2006-01-17 Nick Clifton <nickc@redhat.com>
319
320 PR binutils/2159
321 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
322 parameters.
323
324 2006-01-11 Nick Clifton <nickc@redhat.com>
325
326 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
327 into the newly (re)allocated map array.
328
329 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
330
331 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
332
333 2006-01-01 Jakub Jelinek <jakub@redhat.com>
334
335 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
336 for .toc1 section.
337
338 For older changes see ChangeLog-2005
339 \f
340 Local Variables:
341 mode: change-log
342 left-margin: 8
343 fill-column: 74
344 version-control: never
345 End:
This page took 0.036191 seconds and 5 git commands to generate.