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