e91d267a1442108ed35af6d621f466b04877fb01
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2006-03-07 Richard Sandiford <richard@codesourcery.com>
2 Daniel Jacobowitz <dan@codesourcery.com>
3 Zack Weinberg <zack@codesourcery.com>
4 Nathan Sidwell <nathan@codesourcery.com>
5 Paul Brook <paul@codesourcery.com>
6 Ricardo Anguiano <anguiano@codesourcery.com>
7 Phil Edwards <phil@codesourcery.com>
8
9 * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo.
10 (bfd_elf32_bigarm_symbian_vec): Likewise.
11 (bfd_elf32_bigarm_vxworks_vec): Likewise.
12 (bfd_elf32_littlearm_vec): Likewise.
13 (bfd_elf32_littlearm_symbian_vec): Likewise.
14 (bfd_elf32_littlearm_vxworks_vec): Likewise.
15 * configure: Regenerate.
16 * elf32-arm.c: Include libiberty.h and elf-vxworks.h.
17 (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros.
18 (elf32_arm_vxworks_bed): Add forward declaration.
19 (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12.
20 (elf32_arm_vxworks_exec_plt0_entry): New table.
21 (elf32_arm_vxworks_exec_plt_entry): Likewise.
22 (elf32_arm_vxworks_shared_plt_entry): Likewise.
23 (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields.
24 (reloc_section_p): New function.
25 (create_got_section): Use RELOC_SECTION.
26 (elf32_arm_create_dynamic_sections): Likewise. Call
27 elf_vxworks_create_dynamic_sections for VxWorks targets.
28 Choose between the two possible values of plt_header_size
29 and plt_entry_size.
30 (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2.
31 (elf32_arm_abs12_reloc): New function.
32 (elf32_arm_final_link_relocate): Call it. Allow the creation of
33 dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p,
34 RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the
35 r_addend fields of relocs. On rela targets, skip any code that
36 adjusts in-place addends. When using _bfd_link_final_relocate
37 to perform a final relocation, pass rel->r_addend as the addend
38 argument.
39 (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks
40 object, ignore flags that are not standard on VxWorks.
41 (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12
42 relocs on VxWorks. Use reloc_section_p.
43 (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE.
44 (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of
45 .rela.plt.unloaded relocs on VxWorks targets.
46 (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for
47 .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags
48 instead of DT_REL* tags on RELA targets.
49 (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE
50 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks
51 PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks.
52 (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE
53 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ
54 like DT_RELSZ. Handle the VxWorks form of initial PLT entry.
55 Correct the .rela.plt.unreloaded symbol indexes.
56 (elf32_arm_output_symbol_hook): Call the VxWorks version of this
57 hook on VxWorks targets.
58 (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true.
59 Minor formatting tweak.
60 (elf32_arm_vxworks_final_write_processing): New function.
61 (elf_backend_add_symbol_hook): Override for VxWorks and reset
62 for Symbian.
63 (elf_backend_final_write_processing): Likewise.
64 (elf_backend_emit_relocs): Likewise.
65 (elf_backend_want_plt_sym): Likewise.
66 (ELF_MAXPAGESIZE): Likewise.
67 (elf_backend_may_use_rel_p): Minor formatting tweak.
68 (elf_backend_may_use_rela_p): Likewise.
69 (elf_backend_default_use_rela_p): Likewise.
70 (elf_backend_rela_normal): Likewise.
71 * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h.
72
73 2006-03-06 Nathan Sidwell <nathan@codesourcery.com>
74
75 * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp):
76 New. Adjust other variants.
77 (bfd_default_scan): Update.
78 * bfd-in2.h: Rebuilt.
79 * cpu-m68k.c: Adjust.
80 (bfd_m68k_compatible): New. Use it for architectures.
81 * elf32-m68k.c (elf32_m68k_object_p): Adjust.
82 (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b
83 mismatch.
84 (elf32_m68k_print_private_bfd_data): Adjust.
85 * ieee.c (ieee_write_processor): Adjust.
86
87 2006-03-06 Alan Modra <amodra@bigpond.net.au>
88
89 * dwarf2.c: Formatting.
90 (add_line_info): Remove outer loop.
91
92 2006-03-05 H.J. Lu <hongjiu.lu@intel.com>
93 Alan Modra <amodra@bigpond.net.au>
94
95 PR binutils/2338
96 * dwarf2.c (loadable_section): New struct.
97 (dwarf2_debug): Add loadable_section_count and
98 loadable_sections.
99 (new_line_sorts_after): New.
100 (add_line_info): Use new_line_sorts_after to compare line
101 addresses.
102 (check_function_name): Removed.
103 (unset_sections): New.
104 (place_sections): New.
105 (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections
106 and unset_sections on relocatable files.
107 (_bfd_dwarf2_find_line): Likewise.
108
109 2006-03-03 Nick Clifton <nickc@redhat.com>
110
111 * cpu-avr.c: Update to ISO-C90 formatting.
112 * elf32-avr.c: Likewise.
113
114 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
115
116 * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI
117 and R_AVR_MS8_LDI
118 (bfd_elf_avr_final_write_processing): Set
119 EF_AVR_LINKRELAX_PREPARED in e_flags field.
120 (elf32_avr_relax_section): New function.
121 (elf32_avr_relax_delete_bytes): New function.
122 (elf32_avr_get_relocated_section_contents): New function.
123 (avr_pc_wrap_around): New function.
124 (avr_relative_distance_considering_wrap_around): New function.
125 (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI.
126 * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG
127 * libbfd.h: Regenerate.
128 * bfd-in2.h: Regenerate.
129
130 2006-03-02 DJ Delorie <dj@redhat.com>
131
132 * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
133 calculations.
134
135 2006-03-02 Richard Sandiford <richard@codesourcery.com>
136
137 * elf32-ppc.c (is_ppc_elf_target): Return true if the target is
138 bfd_elf32_powerpc_vxworks_vec.
139
140 2006-03-02 Nick Clifton <nickc@redhat.com>
141
142 * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
143
144 2006-03-02 Richard Sandiford <richard@codesourcery.com>
145
146 * elf32-i386.c (elf_i386_create_dynamic_sections): Use
147 elf_vxworks_create_dynamic_sections.
148 (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT
149 symbol handling.
150 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use
151 elf_vxworks_create_dynamic_sections.
152 (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT
153 symbol handling.
154 * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function.
155 * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare.
156
157 2006-03-02 Richard Sandiford <richard@codesourcery.com>
158
159 * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
160 (elf_backend_link_output_symbol_hook): Use
161 elf_vxworks_link_output_symbol_hook instead.
162 * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
163 (elf_backend_link_output_symbol_hook): Use
164 elf_vxworks_link_output_symbol_hook instead.
165 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the
166 same interface as elf_backend_link_output_symbol_hook.
167 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update
168 prototype accordingly.
169
170 2006-03-02 Richard Sandiford <richard@codesourcery.com>
171
172 * elf32-ppc.c (ppc_elf_plt_type): New enumeration.
173 (ppc_elf_link_hash_table): Replace old_got and new_got with
174 plt_type and can_use_new_plt.
175 (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
176 SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
177 (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
178 Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
179 (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
180 either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
181 this function should not be called for VxWorks targets.
182 (ppc_elf_tls_setup): Use plt_type instead of old_got.
183 (allocate_got): Likewise. Rearrange so that max_before_header
184 is only used for PLT_OLD and PLT_NEW.
185 (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
186 (ppc_elf_size_dynamic_sections): Likewise.
187 (ppc_elf_relax_section): Likewise.
188 (ppc_elf_relocate_section): Likewise.
189 (ppc_elf_finish_dynamic_symbol): Likewise.
190 (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
191
192 2006-02-28 Richard Sandiford <richard@codesourcery.com>
193
194 * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index.
195 (elf_i386_link_hash_table_create): Initialize it.
196 (elf_i386_compute_jump_table_size): Use it instead of
197 srelplt->reloc_count.
198 (allocate_dynrelocs): Likewise.
199 (elf_i386_size_dynamic_sections): Likewise.
200 (elf_i386_relocate_section): Likewise.
201
202 2006-02-27 Jakub Jelinek <jakub@redhat.com>
203
204 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag.
205 (_bfd_elf_write_section_eh_frame): Likewise.
206
207 2006-02-27 Carlos O'Donell <carlos@codesourcery.com>
208
209 * po/Make-in: Add html target.
210
211 2006-02-27 Richard Sandiford <richard@codesourcery.com>
212
213 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the
214 cached hgot entry to check for _GLOBAL_OFFSET_TABLE_.
215 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
216 * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise.
217 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
218 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
219 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
220 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
221 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise.
222 * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
223 * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
224 * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
225 * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
226 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise.
227 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
228 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use
229 the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_.
230 * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
231 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
232 * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
233 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
234
235 2006-02-25 Richard Sandiford <richard@codesourcery.com>
236
237 * elf-bfd.h (elf_link_hash_table): Add hplt field.
238 * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
239 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
240 * elf32-frv.c (_frv_create_got_section): Likewise.
241 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
242 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
243 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
244 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
245 * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
246 (elf_i386_link_hash_table_create): Don't initialize them.
247 (elf_i386_size_dynamic_sections): Use the generic ELF hplt and
248 hgot fields.
249 (elf_i386_finish_dynamic_symbol): Likewise.
250 * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
251 (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
252 (ppc_elf_finish_dynamic_symbol): Likewise.
253
254 2006-02-24 DJ Delorie <dj@redhat.com>
255
256 * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
257 (m32c_elf_relocate_section): Don't relocate them.
258 (compare_reloc): New.
259 (relax_reloc): Remove.
260 (m32c_offset_for_reloc): New.
261 (m16c_addr_encodings): New.
262 (m16c_jmpaddr_encodings): New.
263 (m32c_addr_encodings): New.
264 (m32c_elf_relax_section): Relax jumps and address displacements.
265 (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
266 short jumps.
267
268 * reloc.c: Add m32c relax relocs.
269 * libbfd.h: Regenerate.
270 * bfd-in2.h: Regenerate.
271
272 2006-02-24 H.J. Lu <hongjiu.lu@intel.com>
273
274 PR ld/2218
275 * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
276 (_bfd_elf_link_hash_fixup_symbol): New.
277
278 * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
279 (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
280 it isn't NULL.
281
282 * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
283
284 * elfxx-target.h (elf_backend_fixup_symbol): New.
285 (elfNN_bed): Initialize elf_backend_fixup_symbol.
286
287 2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
288
289 * cpu-ia64-opc.c (ins_immu5b): New.
290 (ext_immu5b): Likewise.
291 (elf64_ia64_operands): Add IMMU5b.
292
293 2006-02-21 Alan Modra <amodra@bigpond.net.au>
294
295 PR ld/2218
296 * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
297 is dynamic.
298 * elf32-hppa.c (allocate_dynrelocs): Likewise.
299 * elf32-i386.c (allocate_dynrelocs): Likewise.
300 * elf32-s390.c (allocate_dynrelocs): Likewise.
301 * elf32-sh.c (allocate_dynrelocs): Likewise.
302 * elf64-s390.c (allocate_dynrelocs): Likewise.
303 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
304 * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs
305 on undef weak with non-default visibility too.
306 * elfxx-sparc.c (allocate_dynrelocs): Ditto.
307
308 2006-02-21 Alan Modra <amodra@bigpond.net.au>
309
310 * bfd.c: (_bfd_default_error_handler): Don't call abort on
311 error, instead call _exit.
312 (_bfd_abort): Call _exit not xexit.
313
314 2006-02-17 Kevin Buettner <kevinb@redhat.com>
315
316 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
317 New functions.
318 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
319
320 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
321 Anil Paranjape <anilp1@kpitcummins.com>
322 Shilin Shakti <shilins@kpitcummins.com>
323
324 * Makefile.am: Add xc16x related entry
325 * Makefile.in: Regenerate
326 * archures.c: Add bfd_xc16x_arch
327 * bfd-in2.h: Regenerate
328 * config.bfd: Add xc16x-*-elf
329 * configure.in: Add bfd_elf32_xc16x_vec
330 * configure: Regenerate.
331 * targets.c: Added xc16x related information
332 * cpu-xc16x.c: New file
333 * reloc.c: Add new relocations specific to xc16x:
334 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
335 BFD_RELOC_XC16X_SOF
336 * elf32-xc16x.c: New file.
337
338 2006-02-17 Alan Modra <amodra@bigpond.net.au>
339
340 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
341 * elf64-ppc.c (allocate_dynrelocs): Likewise.
342
343 2006-02-17 Alan Modra <amodra@bigpond.net.au>
344
345 PR ld/2218
346 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
347 dynamic.
348 (ppc64_elf_relocate_section): Check output reloc section size.
349 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
350
351 2006-02-16 H.J. Lu <hongjiu.lu@intel.com>
352
353 PR ld/2322
354 * elf.c (get_segment_type): New function.
355 (_bfd_elf_print_private_bfd_data): Use it.
356 (print_segment_map): New function.
357 (assign_file_positions_for_segments): Call print_segment_map
358 when there are not enough room for program headers.
359
360 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
361
362 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
363 traditional MIPS ELF targets.
364
365 2006-02-15 H.J. Lu <hongjiu.lu@intel.com>
366
367 PR binutils/2338
368 * dwarf2.c (check_function_name): New function.
369 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
370 check if function is correct.
371
372 2006-02-16 Alan Modra <amodra@bigpond.net.au>
373
374 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
375 debug sections.
376 (elf_link_input_bfd): Adjust comments.
377
378 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
379
380 * elf.c (copy_private_bfd_data): Minor update.
381
382 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
383
384 PR binutils/2258
385 * elf.c (copy_private_bfd_data): Renamed to ...
386 (rewrite_elf_program_header): This.
387 (copy_elf_program_header): New function.
388 (copy_private_bfd_data): Likewise.
389
390 2006-02-07 Nathan Sidwell <nathan@codesourcery.com>
391
392 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
393 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
394 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
395 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
396 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
397 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
398 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
399 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
400 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
401 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
402 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
403 bfd_mach_mcf_isa_b_usp_float_emac): New.
404 (bfd_default_scan): Update coldfire mapping.
405 * bfd-in.h (bfd_m68k_mach_to_features,
406 bfd_m68k_features_to_mach): Declare.
407 * bfd-in2.h: Rebuilt.
408 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
409 adjust legacy names.
410 (m68k_arch_features): New.
411 (bfd_m68k_mach_to_features,
412 bfd_m68k_features_to_mach): Define.
413 * elf32-m68k.c (elf32_m68k_object_p): New.
414 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
415 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
416 (elf_backend_object_p): Define.
417 * ieee.c (ieee_write_processor): Update coldfire machines.
418 * libbfd.h: Rebuilt.
419
420 2006-02-06 Steve Ellcey <sje@cup.hp.com>
421
422 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
423 if SHF_TLS is set.
424
425 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
426
427 * coff-z80.c (r_imm24): New howto.
428 (rtype2howto): New case R_IMM24.
429 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
430 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
431
432 2006-02-04 Richard Sandiford <richard@codesourcery.com>
433
434 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
435 has already been assigned a GOT index, copy that index to the
436 current hash table entry.
437
438 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
439
440 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
441 for call-to-undefweak reloc overflow.
442
443 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
444
445 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
446 for 32-bit relocs overflow.
447
448 2006-01-27 Paul Brook <paul@codesourcery.com>
449
450 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
451 objects.
452
453 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
454
455 Introduce TLS descriptors for i386 and x86_64.
456 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
457 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
458 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
459 * libbfd.h, bfd-in2.h: Rebuilt.
460 * elf32-i386.c (elf_howto_table): New relocations.
461 (R_386_tls): Adjust.
462 (elf_i386_reloc_type_lookup): Map new relocations.
463 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
464 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
465 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
466 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
467 (elf_i386_local_tlsdesc_gotent): New macro.
468 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
469 (elf_i386_compute_jump_table_size): New macro.
470 (link_hash_newfunc): Initialize tlsdesc_got.
471 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
472 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
473 R_386_TLS_DESC_CALL.
474 (elf_i386_check_relocs): Likewise. Allocate space for
475 local_tlsdesc_gotent.
476 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
477 R_386_TLS_DESC_CALL.
478 (allocate_dynrelocs): Count function PLT relocations. Reserve
479 space for TLS descriptors and relocations.
480 (elf_i386_size_dynamic_sections): Reserve space for TLS
481 descriptors and relocations. Set up sgotplt_jump_table_size.
482 Don't zero reloc_count in srelplt.
483 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
484 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
485 R_386_TLS_DESC_CALL.
486 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
487 (elf_backend_always_size_sections): Define.
488 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
489 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
490 (R_X86_64_standard): Adjust.
491 (x86_64_reloc_map): Map new relocs.
492 (elf64_x86_64_rtype_to_howto): New, split out of...
493 (elf64_x86_64_info_to_howto): ... this function, and...
494 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
495 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
496 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
497 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
498 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
499 (elf64_x86_64_local_tlsdesc_gotent): New macro.
500 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
501 tlsdesc_got and sgotplt_jump_table_size fields.
502 (elf64_x86_64_compute_jump_table_size): New macro.
503 (link_hash_newfunc): Initialize tlsdesc_got.
504 (elf64_x86_64_link_hash_table_create): Initialize new fields.
505 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
506 R_X86_64_TLSDESC_CALL.
507 (elf64_x86_64_check_relocs): Likewise. Allocate space for
508 local_tlsdesc_gotent.
509 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
510 R_X86_64_TLSDESC_CALL.
511 (allocate_dynrelocs): Count function PLT relocations. Reserve
512 space for TLS descriptors and relocations.
513 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
514 descriptors and relocations. Set up sgotplt_jump_table_size,
515 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
516 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
517 and DT_TLSDESC_GOT.
518 (elf64_x86_64_always_size_sections): New. Set up
519 _TLS_MODULE_BASE_.
520 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
521 R_386_TLS_DESC_CALL.
522 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
523 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
524 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
525 (elf_backend_always_size_sections): Define.
526
527 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
528
529 PR binutils/2096
530 * dwarf2.c (comp_unit_contains_address): Update comment.
531 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
532 lma. Return TRUE only if both comp_unit_contains_address and
533 comp_unit_find_nearest_line return TRUE.
534 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
535
536 2006-01-18 Alan Modra <amodra@bigpond.net.au>
537
538 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
539 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
540 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
541 elf_gc_mark_dynamic_ref_symbol. Make global.
542 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
543 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
544 (elfNN_bed): Init new field.
545 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
546 (ppc64_elf_gc_mark_dynamic_ref): New function.
547
548 2006-01-17 Alan Modra <amodra@bigpond.net.au>
549
550 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
551
552 2006-01-17 Nick Clifton <nickc@redhat.com>
553
554 PR binutils/2159
555 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
556 parameters.
557
558 2006-01-11 Nick Clifton <nickc@redhat.com>
559
560 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
561 into the newly (re)allocated map array.
562
563 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
564
565 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
566
567 2006-01-01 Jakub Jelinek <jakub@redhat.com>
568
569 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
570 for .toc1 section.
571
572 For older changes see ChangeLog-2005
573 \f
574 Local Variables:
575 mode: change-log
576 left-margin: 8
577 fill-column: 74
578 version-control: never
579 End:
This page took 0.045695 seconds and 3 git commands to generate.