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