bfd:
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
0b2e31dc
NS
12006-03-06 Nathan Sidwell <nathan@codesourcery.com>
2
3 * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp):
4 New. Adjust other variants.
5 (bfd_default_scan): Update.
6 * bfd-in2.h: Rebuilt.
7 * cpu-m68k.c: Adjust.
8 (bfd_m68k_compatible): New. Use it for architectures.
9 * elf32-m68k.c (elf32_m68k_object_p): Adjust.
10 (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b
11 mismatch.
12 (elf32_m68k_print_private_bfd_data): Adjust.
13 * ieee.c (ieee_write_processor): Adjust.
14
d8d1c398
AM
152006-03-06 Alan Modra <amodra@bigpond.net.au>
16
17 * dwarf2.c: Formatting.
18 (add_line_info): Remove outer loop.
19
d4c32a81
L
202006-03-05 H.J. Lu <hongjiu.lu@intel.com>
21 Alan Modra <amodra@bigpond.net.au>
22
23 PR binutils/2338
24 * dwarf2.c (loadable_section): New struct.
25 (dwarf2_debug): Add loadable_section_count and
26 loadable_sections.
27 (new_line_sorts_after): New.
28 (add_line_info): Use new_line_sorts_after to compare line
29 addresses.
30 (check_function_name): Removed.
31 (unset_sections): New.
32 (place_sections): New.
33 (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections
34 and unset_sections on relocatable files.
35 (_bfd_dwarf2_find_line): Likewise.
36
4cdc7696
NC
372006-03-03 Nick Clifton <nickc@redhat.com>
38
39 * cpu-avr.c: Update to ISO-C90 formatting.
40 * elf32-avr.c: Likewise.
41
df406460
NC
422006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
43
44 * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI
45 and R_AVR_MS8_LDI
46 (bfd_elf_avr_final_write_processing): Set
47 EF_AVR_LINKRELAX_PREPARED in e_flags field.
48 (elf32_avr_relax_section): New function.
49 (elf32_avr_relax_delete_bytes): New function.
50 (elf32_avr_get_relocated_section_contents): New function.
51 (avr_pc_wrap_around): New function.
52 (avr_relative_distance_considering_wrap_around): New function.
53 (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI.
54 * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG
55 * libbfd.h: Regenerate.
56 * bfd-in2.h: Regenerate.
57
a1013894
DD
582006-03-02 DJ Delorie <dj@redhat.com>
59
60 * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
61 calculations.
62
7c492719
RS
632006-03-02 Richard Sandiford <richard@codesourcery.com>
64
65 * elf32-ppc.c (is_ppc_elf_target): Return true if the target is
66 bfd_elf32_powerpc_vxworks_vec.
67
e970df31
NC
682006-03-02 Nick Clifton <nickc@redhat.com>
69
70 * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
71
711de32c
RS
722006-03-02 Richard Sandiford <richard@codesourcery.com>
73
74 * elf32-i386.c (elf_i386_create_dynamic_sections): Use
75 elf_vxworks_create_dynamic_sections.
76 (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT
77 symbol handling.
78 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use
79 elf_vxworks_create_dynamic_sections.
80 (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT
81 symbol handling.
82 * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function.
83 * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare.
84
9c72ff84
RS
852006-03-02 Richard Sandiford <richard@codesourcery.com>
86
87 * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
88 (elf_backend_link_output_symbol_hook): Use
89 elf_vxworks_link_output_symbol_hook instead.
90 * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
91 (elf_backend_link_output_symbol_hook): Use
92 elf_vxworks_link_output_symbol_hook instead.
93 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the
94 same interface as elf_backend_link_output_symbol_hook.
95 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update
96 prototype accordingly.
97
4a3dc543
RS
982006-03-02 Richard Sandiford <richard@codesourcery.com>
99
100 * elf32-ppc.c (ppc_elf_plt_type): New enumeration.
101 (ppc_elf_link_hash_table): Replace old_got and new_got with
102 plt_type and can_use_new_plt.
103 (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
104 SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
105 (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
106 Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
107 (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
108 either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
109 this function should not be called for VxWorks targets.
110 (ppc_elf_tls_setup): Use plt_type instead of old_got.
111 (allocate_got): Likewise. Rearrange so that max_before_header
112 is only used for PLT_OLD and PLT_NEW.
113 (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
114 (ppc_elf_size_dynamic_sections): Likewise.
115 (ppc_elf_relax_section): Likewise.
116 (ppc_elf_relocate_section): Likewise.
117 (ppc_elf_finish_dynamic_symbol): Likewise.
118 (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
119
5ae0bfb6
RS
1202006-02-28 Richard Sandiford <richard@codesourcery.com>
121
122 * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index.
123 (elf_i386_link_hash_table_create): Initialize it.
124 (elf_i386_compute_jump_table_size): Use it instead of
125 srelplt->reloc_count.
126 (allocate_dynrelocs): Likewise.
127 (elf_i386_size_dynamic_sections): Likewise.
128 (elf_i386_relocate_section): Likewise.
129
63752a75
JJ
1302006-02-27 Jakub Jelinek <jakub@redhat.com>
131
132 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag.
133 (_bfd_elf_write_section_eh_frame): Likewise.
134
f7d9e5c3
CD
1352006-02-27 Carlos O'Donell <carlos@codesourcery.com>
136
137 * po/Make-in: Add html target.
138
22edb2f1
RS
1392006-02-27 Richard Sandiford <richard@codesourcery.com>
140
141 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the
142 cached hgot entry to check for _GLOBAL_OFFSET_TABLE_.
143 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
144 * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise.
145 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
146 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
147 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
148 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
149 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise.
150 * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
151 * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
152 * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
153 * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
154 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise.
155 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
156 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use
157 the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_.
158 * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
159 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
160 * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
161 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
162
7325306f
RS
1632006-02-25 Richard Sandiford <richard@codesourcery.com>
164
165 * elf-bfd.h (elf_link_hash_table): Add hplt field.
166 * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
167 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
168 * elf32-frv.c (_frv_create_got_section): Likewise.
169 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
170 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
171 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
172 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
173 * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
174 (elf_i386_link_hash_table_create): Don't initialize them.
175 (elf_i386_size_dynamic_sections): Use the generic ELF hplt and
176 hgot fields.
177 (elf_i386_finish_dynamic_symbol): Likewise.
178 * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
179 (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
180 (ppc_elf_finish_dynamic_symbol): Likewise.
181
6772dd07
DD
1822006-02-24 DJ Delorie <dj@redhat.com>
183
184 * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
185 (m32c_elf_relocate_section): Don't relocate them.
186 (compare_reloc): New.
187 (relax_reloc): Remove.
188 (m32c_offset_for_reloc): New.
189 (m16c_addr_encodings): New.
190 (m16c_jmpaddr_encodings): New.
191 (m32c_addr_encodings): New.
192 (m32c_elf_relax_section): Relax jumps and address displacements.
193 (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
194 short jumps.
195
196 * reloc.c: Add m32c relax relocs.
197 * libbfd.h: Regenerate.
198 * bfd-in2.h: Regenerate.
199
508c3946
L
2002006-02-24 H.J. Lu <hongjiu.lu@intel.com>
201
202 PR ld/2218
203 * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
204 (_bfd_elf_link_hash_fixup_symbol): New.
205
206 * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
207 (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
208 it isn't NULL.
209
210 * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
211
212 * elfxx-target.h (elf_backend_fixup_symbol): New.
213 (elfNN_bed): Initialize elf_backend_fixup_symbol.
214
59cf82fe
L
2152006-02-23 H.J. Lu <hongjiu.lu@intel.com>
216
217 * cpu-ia64-opc.c (ins_immu5b): New.
218 (ext_immu5b): Likewise.
219 (elf64_ia64_operands): Add IMMU5b.
220
22d606e9
AM
2212006-02-21 Alan Modra <amodra@bigpond.net.au>
222
223 PR ld/2218
224 * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
225 is dynamic.
226 * elf32-hppa.c (allocate_dynrelocs): Likewise.
227 * elf32-i386.c (allocate_dynrelocs): Likewise.
228 * elf32-s390.c (allocate_dynrelocs): Likewise.
229 * elf32-sh.c (allocate_dynrelocs): Likewise.
230 * elf64-s390.c (allocate_dynrelocs): Likewise.
231 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
232 * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs
233 on undef weak with non-default visibility too.
234 * elfxx-sparc.c (allocate_dynrelocs): Ditto.
235
3168356f
AM
2362006-02-21 Alan Modra <amodra@bigpond.net.au>
237
238 * bfd.c: (_bfd_default_error_handler): Don't call abort on
239 error, instead call _exit.
240 (_bfd_abort): Call _exit not xexit.
241
888b45b8
KB
2422006-02-17 Kevin Buettner <kevinb@redhat.com>
243
244 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
245 New functions.
246 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
247
d70c5fc7
NC
2482006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
249 Anil Paranjape <anilp1@kpitcummins.com>
250 Shilin Shakti <shilins@kpitcummins.com>
251
252 * Makefile.am: Add xc16x related entry
253 * Makefile.in: Regenerate
254 * archures.c: Add bfd_xc16x_arch
255 * bfd-in2.h: Regenerate
256 * config.bfd: Add xc16x-*-elf
257 * configure.in: Add bfd_elf32_xc16x_vec
258 * configure: Regenerate.
259 * targets.c: Added xc16x related information
260 * cpu-xc16x.c: New file
261 * reloc.c: Add new relocations specific to xc16x:
262 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
263 BFD_RELOC_XC16X_SOF
264 * elf32-xc16x.c: New file.
265
cab87ef9
AM
2662006-02-17 Alan Modra <amodra@bigpond.net.au>
267
268 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
269 * elf64-ppc.c (allocate_dynrelocs): Likewise.
270
dfbb6ac9
AM
2712006-02-17 Alan Modra <amodra@bigpond.net.au>
272
273 PR ld/2218
274 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
275 dynamic.
276 (ppc64_elf_relocate_section): Check output reloc section size.
277 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
278
cedc298e
L
2792006-02-16 H.J. Lu <hongjiu.lu@intel.com>
280
281 PR ld/2322
282 * elf.c (get_segment_type): New function.
283 (_bfd_elf_print_private_bfd_data): Use it.
284 (print_segment_map): New function.
285 (assign_file_positions_for_segments): Call print_segment_map
286 when there are not enough room for program headers.
287
aaa2ab3d
NH
2882006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
289
290 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
291 traditional MIPS ELF targets.
292
35ccda9e
L
2932006-02-15 H.J. Lu <hongjiu.lu@intel.com>
294
295 PR binutils/2338
296 * dwarf2.c (check_function_name): New function.
297 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
298 check if function is correct.
299
e0ae6d6f
AM
3002006-02-16 Alan Modra <amodra@bigpond.net.au>
301
302 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
303 debug sections.
304 (elf_link_input_bfd): Adjust comments.
305
d55ce4e2
L
3062006-02-10 H.J. Lu <hongjiu.lu@intel.com>
307
308 * elf.c (copy_private_bfd_data): Minor update.
309
84d1d650
L
3102006-02-10 H.J. Lu <hongjiu.lu@intel.com>
311
312 PR binutils/2258
313 * elf.c (copy_private_bfd_data): Renamed to ...
314 (rewrite_elf_program_header): This.
315 (copy_elf_program_header): New function.
316 (copy_private_bfd_data): Likewise.
317
3182006-02-07 Nathan Sidwell <nathan@codesourcery.com>
266abb8f
NS
319
320 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
321 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
322 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
323 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
324 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
325 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
326 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
327 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
328 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
329 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
330 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
331 bfd_mach_mcf_isa_b_usp_float_emac): New.
332 (bfd_default_scan): Update coldfire mapping.
333 * bfd-in.h (bfd_m68k_mach_to_features,
334 bfd_m68k_features_to_mach): Declare.
335 * bfd-in2.h: Rebuilt.
336 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
337 adjust legacy names.
338 (m68k_arch_features): New.
339 (bfd_m68k_mach_to_features,
340 bfd_m68k_features_to_mach): Define.
341 * elf32-m68k.c (elf32_m68k_object_p): New.
342 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
343 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
344 (elf_backend_object_p): Define.
345 * ieee.c (ieee_write_processor): Update coldfire machines.
346 * libbfd.h: Rebuilt.
347
75eb734c
SE
3482006-02-06 Steve Ellcey <sje@cup.hp.com>
349
350 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
351 if SHF_TLS is set.
352
134dcee5
AM
3532006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
354
355 * coff-z80.c (r_imm24): New howto.
356 (rtype2howto): New case R_IMM24.
357 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
358 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
359
4005427f
RS
3602006-02-04 Richard Sandiford <richard@codesourcery.com>
361
362 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
363 has already been assigned a GOT index, copy that index to the
364 current hash table entry.
365
bb29dfea
EB
3662006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
367
368 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
369 for call-to-undefweak reloc overflow.
370
dc669dc8
EB
3712006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
372
373 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
374 for 32-bit relocs overflow.
375
1a0eb693
PB
3762006-01-27 Paul Brook <paul@codesourcery.com>
377
378 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
379 objects.
380
67a4f2b7
AO
3812006-01-18 Alexandre Oliva <aoliva@redhat.com>
382
383 Introduce TLS descriptors for i386 and x86_64.
384 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
385 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
386 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
387 * libbfd.h, bfd-in2.h: Rebuilt.
388 * elf32-i386.c (elf_howto_table): New relocations.
389 (R_386_tls): Adjust.
390 (elf_i386_reloc_type_lookup): Map new relocations.
391 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
392 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
393 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
394 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
395 (elf_i386_local_tlsdesc_gotent): New macro.
396 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
397 (elf_i386_compute_jump_table_size): New macro.
398 (link_hash_newfunc): Initialize tlsdesc_got.
399 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
400 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
401 R_386_TLS_DESC_CALL.
402 (elf_i386_check_relocs): Likewise. Allocate space for
403 local_tlsdesc_gotent.
404 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
405 R_386_TLS_DESC_CALL.
406 (allocate_dynrelocs): Count function PLT relocations. Reserve
407 space for TLS descriptors and relocations.
408 (elf_i386_size_dynamic_sections): Reserve space for TLS
409 descriptors and relocations. Set up sgotplt_jump_table_size.
410 Don't zero reloc_count in srelplt.
411 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
412 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
413 R_386_TLS_DESC_CALL.
414 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
415 (elf_backend_always_size_sections): Define.
416 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
417 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
418 (R_X86_64_standard): Adjust.
419 (x86_64_reloc_map): Map new relocs.
420 (elf64_x86_64_rtype_to_howto): New, split out of...
421 (elf64_x86_64_info_to_howto): ... this function, and...
422 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
423 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
424 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
425 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
426 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
427 (elf64_x86_64_local_tlsdesc_gotent): New macro.
428 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
429 tlsdesc_got and sgotplt_jump_table_size fields.
430 (elf64_x86_64_compute_jump_table_size): New macro.
431 (link_hash_newfunc): Initialize tlsdesc_got.
432 (elf64_x86_64_link_hash_table_create): Initialize new fields.
433 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
434 R_X86_64_TLSDESC_CALL.
435 (elf64_x86_64_check_relocs): Likewise. Allocate space for
436 local_tlsdesc_gotent.
437 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
438 R_X86_64_TLSDESC_CALL.
439 (allocate_dynrelocs): Count function PLT relocations. Reserve
440 space for TLS descriptors and relocations.
441 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
442 descriptors and relocations. Set up sgotplt_jump_table_size,
443 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
444 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
445 and DT_TLSDESC_GOT.
446 (elf64_x86_64_always_size_sections): New. Set up
447 _TLS_MODULE_BASE_.
448 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
449 R_386_TLS_DESC_CALL.
450 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
451 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
452 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
453 (elf_backend_always_size_sections): Define.
454
6dd55cb7
L
4552006-01-17 H.J. Lu <hongjiu.lu@intel.com>
456
457 PR binutils/2096
458 * dwarf2.c (comp_unit_contains_address): Update comment.
459 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
460 lma. Return TRUE only if both comp_unit_contains_address and
461 comp_unit_find_nearest_line return TRUE.
462 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
463
64d03ab5
AM
4642006-01-18 Alan Modra <amodra@bigpond.net.au>
465
466 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
467 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
468 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
469 elf_gc_mark_dynamic_ref_symbol. Make global.
470 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
471 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
472 (elfNN_bed): Init new field.
473 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
474 (ppc64_elf_gc_mark_dynamic_ref): New function.
475
b56cbdb9
AM
4762006-01-17 Alan Modra <amodra@bigpond.net.au>
477
478 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
479
6c10990d
NC
4802006-01-17 Nick Clifton <nickc@redhat.com>
481
482 PR binutils/2159
483 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
484 parameters.
485
d7f735da
NC
4862006-01-11 Nick Clifton <nickc@redhat.com>
487
488 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
489 into the newly (re)allocated map array.
490
2bfd55ca
NC
4912006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
492
493 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
494
bce50a28
JJ
4952006-01-01 Jakub Jelinek <jakub@redhat.com>
496
497 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
498 for .toc1 section.
499
e88d958a 500For older changes see ChangeLog-2005
56882138
AM
501\f
502Local Variables:
503mode: change-log
504left-margin: 8
505fill-column: 74
506version-control: never
507End:
This page took 0.409426 seconds and 4 git commands to generate.