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