1 2006-03-02 DJ Delorie <dj@redhat.com>
3 * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
6 2006-03-02 Richard Sandiford <richard@codesourcery.com>
8 * elf32-ppc.c (is_ppc_elf_target): Return true if the target is
9 bfd_elf32_powerpc_vxworks_vec.
11 2006-03-02 Nick Clifton <nickc@redhat.com>
13 * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
15 2006-03-02 Richard Sandiford <richard@codesourcery.com>
17 * elf32-i386.c (elf_i386_create_dynamic_sections): Use
18 elf_vxworks_create_dynamic_sections.
19 (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT
21 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use
22 elf_vxworks_create_dynamic_sections.
23 (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT
25 * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function.
26 * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare.
28 2006-03-02 Richard Sandiford <richard@codesourcery.com>
30 * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
31 (elf_backend_link_output_symbol_hook): Use
32 elf_vxworks_link_output_symbol_hook instead.
33 * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
34 (elf_backend_link_output_symbol_hook): Use
35 elf_vxworks_link_output_symbol_hook instead.
36 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the
37 same interface as elf_backend_link_output_symbol_hook.
38 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update
39 prototype accordingly.
41 2006-03-02 Richard Sandiford <richard@codesourcery.com>
43 * elf32-ppc.c (ppc_elf_plt_type): New enumeration.
44 (ppc_elf_link_hash_table): Replace old_got and new_got with
45 plt_type and can_use_new_plt.
46 (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
47 SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
48 (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
49 Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
50 (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
51 either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
52 this function should not be called for VxWorks targets.
53 (ppc_elf_tls_setup): Use plt_type instead of old_got.
54 (allocate_got): Likewise. Rearrange so that max_before_header
55 is only used for PLT_OLD and PLT_NEW.
56 (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
57 (ppc_elf_size_dynamic_sections): Likewise.
58 (ppc_elf_relax_section): Likewise.
59 (ppc_elf_relocate_section): Likewise.
60 (ppc_elf_finish_dynamic_symbol): Likewise.
61 (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
63 2006-02-28 Richard Sandiford <richard@codesourcery.com>
65 * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index.
66 (elf_i386_link_hash_table_create): Initialize it.
67 (elf_i386_compute_jump_table_size): Use it instead of
69 (allocate_dynrelocs): Likewise.
70 (elf_i386_size_dynamic_sections): Likewise.
71 (elf_i386_relocate_section): Likewise.
73 2006-02-27 Jakub Jelinek <jakub@redhat.com>
75 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag.
76 (_bfd_elf_write_section_eh_frame): Likewise.
78 2006-02-27 Carlos O'Donell <carlos@codesourcery.com>
80 * po/Make-in: Add html target.
82 2006-02-27 Richard Sandiford <richard@codesourcery.com>
84 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the
85 cached hgot entry to check for _GLOBAL_OFFSET_TABLE_.
86 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
87 * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise.
88 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
89 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
90 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
91 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
92 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise.
93 * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
94 * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
95 * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
96 * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
97 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise.
98 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
99 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use
100 the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_.
101 * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
102 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
103 * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
104 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
106 2006-02-25 Richard Sandiford <richard@codesourcery.com>
108 * elf-bfd.h (elf_link_hash_table): Add hplt field.
109 * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
110 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
111 * elf32-frv.c (_frv_create_got_section): Likewise.
112 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
113 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
114 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
115 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
116 * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
117 (elf_i386_link_hash_table_create): Don't initialize them.
118 (elf_i386_size_dynamic_sections): Use the generic ELF hplt and
120 (elf_i386_finish_dynamic_symbol): Likewise.
121 * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
122 (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
123 (ppc_elf_finish_dynamic_symbol): Likewise.
125 2006-02-24 DJ Delorie <dj@redhat.com>
127 * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
128 (m32c_elf_relocate_section): Don't relocate them.
129 (compare_reloc): New.
130 (relax_reloc): Remove.
131 (m32c_offset_for_reloc): New.
132 (m16c_addr_encodings): New.
133 (m16c_jmpaddr_encodings): New.
134 (m32c_addr_encodings): New.
135 (m32c_elf_relax_section): Relax jumps and address displacements.
136 (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
139 * reloc.c: Add m32c relax relocs.
140 * libbfd.h: Regenerate.
141 * bfd-in2.h: Regenerate.
143 2006-02-24 H.J. Lu <hongjiu.lu@intel.com>
146 * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
147 (_bfd_elf_link_hash_fixup_symbol): New.
149 * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
150 (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
153 * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
155 * elfxx-target.h (elf_backend_fixup_symbol): New.
156 (elfNN_bed): Initialize elf_backend_fixup_symbol.
158 2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
160 * cpu-ia64-opc.c (ins_immu5b): New.
161 (ext_immu5b): Likewise.
162 (elf64_ia64_operands): Add IMMU5b.
164 2006-02-21 Alan Modra <amodra@bigpond.net.au>
167 * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
169 * elf32-hppa.c (allocate_dynrelocs): Likewise.
170 * elf32-i386.c (allocate_dynrelocs): Likewise.
171 * elf32-s390.c (allocate_dynrelocs): Likewise.
172 * elf32-sh.c (allocate_dynrelocs): Likewise.
173 * elf64-s390.c (allocate_dynrelocs): Likewise.
174 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
175 * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs
176 on undef weak with non-default visibility too.
177 * elfxx-sparc.c (allocate_dynrelocs): Ditto.
179 2006-02-21 Alan Modra <amodra@bigpond.net.au>
181 * bfd.c: (_bfd_default_error_handler): Don't call abort on
182 error, instead call _exit.
183 (_bfd_abort): Call _exit not xexit.
185 2006-02-17 Kevin Buettner <kevinb@redhat.com>
187 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
189 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
191 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
192 Anil Paranjape <anilp1@kpitcummins.com>
193 Shilin Shakti <shilins@kpitcummins.com>
195 * Makefile.am: Add xc16x related entry
196 * Makefile.in: Regenerate
197 * archures.c: Add bfd_xc16x_arch
198 * bfd-in2.h: Regenerate
199 * config.bfd: Add xc16x-*-elf
200 * configure.in: Add bfd_elf32_xc16x_vec
201 * configure: Regenerate.
202 * targets.c: Added xc16x related information
203 * cpu-xc16x.c: New file
204 * reloc.c: Add new relocations specific to xc16x:
205 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
207 * elf32-xc16x.c: New file.
209 2006-02-17 Alan Modra <amodra@bigpond.net.au>
211 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
212 * elf64-ppc.c (allocate_dynrelocs): Likewise.
214 2006-02-17 Alan Modra <amodra@bigpond.net.au>
217 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
219 (ppc64_elf_relocate_section): Check output reloc section size.
220 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
222 2006-02-16 H.J. Lu <hongjiu.lu@intel.com>
225 * elf.c (get_segment_type): New function.
226 (_bfd_elf_print_private_bfd_data): Use it.
227 (print_segment_map): New function.
228 (assign_file_positions_for_segments): Call print_segment_map
229 when there are not enough room for program headers.
231 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
233 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
234 traditional MIPS ELF targets.
236 2006-02-15 H.J. Lu <hongjiu.lu@intel.com>
239 * dwarf2.c (check_function_name): New function.
240 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
241 check if function is correct.
243 2006-02-16 Alan Modra <amodra@bigpond.net.au>
245 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
247 (elf_link_input_bfd): Adjust comments.
249 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
251 * elf.c (copy_private_bfd_data): Minor update.
253 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
256 * elf.c (copy_private_bfd_data): Renamed to ...
257 (rewrite_elf_program_header): This.
258 (copy_elf_program_header): New function.
259 (copy_private_bfd_data): Likewise.
261 2006-02-07 Nathan Sidwell <nathan@codesourcery.com>
263 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
264 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
265 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
266 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
267 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
268 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
269 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
270 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
271 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
272 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
273 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
274 bfd_mach_mcf_isa_b_usp_float_emac): New.
275 (bfd_default_scan): Update coldfire mapping.
276 * bfd-in.h (bfd_m68k_mach_to_features,
277 bfd_m68k_features_to_mach): Declare.
278 * bfd-in2.h: Rebuilt.
279 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
281 (m68k_arch_features): New.
282 (bfd_m68k_mach_to_features,
283 bfd_m68k_features_to_mach): Define.
284 * elf32-m68k.c (elf32_m68k_object_p): New.
285 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
286 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
287 (elf_backend_object_p): Define.
288 * ieee.c (ieee_write_processor): Update coldfire machines.
291 2006-02-06 Steve Ellcey <sje@cup.hp.com>
293 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
296 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
298 * coff-z80.c (r_imm24): New howto.
299 (rtype2howto): New case R_IMM24.
300 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
301 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
303 2006-02-04 Richard Sandiford <richard@codesourcery.com>
305 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
306 has already been assigned a GOT index, copy that index to the
307 current hash table entry.
309 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
311 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
312 for call-to-undefweak reloc overflow.
314 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
316 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
317 for 32-bit relocs overflow.
319 2006-01-27 Paul Brook <paul@codesourcery.com>
321 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
324 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
326 Introduce TLS descriptors for i386 and x86_64.
327 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
328 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
329 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
330 * libbfd.h, bfd-in2.h: Rebuilt.
331 * elf32-i386.c (elf_howto_table): New relocations.
333 (elf_i386_reloc_type_lookup): Map new relocations.
334 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
335 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
336 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
337 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
338 (elf_i386_local_tlsdesc_gotent): New macro.
339 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
340 (elf_i386_compute_jump_table_size): New macro.
341 (link_hash_newfunc): Initialize tlsdesc_got.
342 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
343 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
345 (elf_i386_check_relocs): Likewise. Allocate space for
346 local_tlsdesc_gotent.
347 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
349 (allocate_dynrelocs): Count function PLT relocations. Reserve
350 space for TLS descriptors and relocations.
351 (elf_i386_size_dynamic_sections): Reserve space for TLS
352 descriptors and relocations. Set up sgotplt_jump_table_size.
353 Don't zero reloc_count in srelplt.
354 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
355 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
357 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
358 (elf_backend_always_size_sections): Define.
359 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
360 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
361 (R_X86_64_standard): Adjust.
362 (x86_64_reloc_map): Map new relocs.
363 (elf64_x86_64_rtype_to_howto): New, split out of...
364 (elf64_x86_64_info_to_howto): ... this function, and...
365 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
366 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
367 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
368 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
369 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
370 (elf64_x86_64_local_tlsdesc_gotent): New macro.
371 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
372 tlsdesc_got and sgotplt_jump_table_size fields.
373 (elf64_x86_64_compute_jump_table_size): New macro.
374 (link_hash_newfunc): Initialize tlsdesc_got.
375 (elf64_x86_64_link_hash_table_create): Initialize new fields.
376 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
377 R_X86_64_TLSDESC_CALL.
378 (elf64_x86_64_check_relocs): Likewise. Allocate space for
379 local_tlsdesc_gotent.
380 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
381 R_X86_64_TLSDESC_CALL.
382 (allocate_dynrelocs): Count function PLT relocations. Reserve
383 space for TLS descriptors and relocations.
384 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
385 descriptors and relocations. Set up sgotplt_jump_table_size,
386 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
387 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
389 (elf64_x86_64_always_size_sections): New. Set up
391 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
393 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
394 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
395 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
396 (elf_backend_always_size_sections): Define.
398 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
401 * dwarf2.c (comp_unit_contains_address): Update comment.
402 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
403 lma. Return TRUE only if both comp_unit_contains_address and
404 comp_unit_find_nearest_line return TRUE.
405 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
407 2006-01-18 Alan Modra <amodra@bigpond.net.au>
409 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
410 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
411 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
412 elf_gc_mark_dynamic_ref_symbol. Make global.
413 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
414 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
415 (elfNN_bed): Init new field.
416 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
417 (ppc64_elf_gc_mark_dynamic_ref): New function.
419 2006-01-17 Alan Modra <amodra@bigpond.net.au>
421 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
423 2006-01-17 Nick Clifton <nickc@redhat.com>
426 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
429 2006-01-11 Nick Clifton <nickc@redhat.com>
431 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
432 into the newly (re)allocated map array.
434 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
436 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
438 2006-01-01 Jakub Jelinek <jakub@redhat.com>
440 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
443 For older changes see ChangeLog-2005
449 version-control: never