1 2006-02-17 Alan Modra <amodra@bigpond.net.au>
4 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
6 (ppc64_elf_relocate_section): Check output reloc section size.
7 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
9 2006-02-16 H.J. Lu <hongjiu.lu@intel.com>
12 * elf.c (get_segment_type): New function.
13 (_bfd_elf_print_private_bfd_data): Use it.
14 (print_segment_map): New function.
15 (assign_file_positions_for_segments): Call print_segment_map
16 when there are not enough room for program headers.
18 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
20 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
21 traditional MIPS ELF targets.
23 2006-02-15 H.J. Lu <hongjiu.lu@intel.com>
26 * dwarf2.c (check_function_name): New function.
27 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
28 check if function is correct.
30 2006-02-16 Alan Modra <amodra@bigpond.net.au>
32 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
34 (elf_link_input_bfd): Adjust comments.
36 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
38 * elf.c (copy_private_bfd_data): Minor update.
40 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
43 * elf.c (copy_private_bfd_data): Renamed to ...
44 (rewrite_elf_program_header): This.
45 (copy_elf_program_header): New function.
46 (copy_private_bfd_data): Likewise.
48 2006-02-07 Nathan Sidwell <nathan@codesourcery.com>
50 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
51 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
52 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
53 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
54 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
55 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
56 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
57 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
58 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
59 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
60 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
61 bfd_mach_mcf_isa_b_usp_float_emac): New.
62 (bfd_default_scan): Update coldfire mapping.
63 * bfd-in.h (bfd_m68k_mach_to_features,
64 bfd_m68k_features_to_mach): Declare.
66 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
68 (m68k_arch_features): New.
69 (bfd_m68k_mach_to_features,
70 bfd_m68k_features_to_mach): Define.
71 * elf32-m68k.c (elf32_m68k_object_p): New.
72 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
73 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
74 (elf_backend_object_p): Define.
75 * ieee.c (ieee_write_processor): Update coldfire machines.
78 2006-02-06 Steve Ellcey <sje@cup.hp.com>
80 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
83 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
85 * coff-z80.c (r_imm24): New howto.
86 (rtype2howto): New case R_IMM24.
87 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
88 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
90 2006-02-04 Richard Sandiford <richard@codesourcery.com>
92 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
93 has already been assigned a GOT index, copy that index to the
94 current hash table entry.
96 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
98 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
99 for call-to-undefweak reloc overflow.
101 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
103 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
104 for 32-bit relocs overflow.
106 2006-01-27 Paul Brook <paul@codesourcery.com>
108 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
111 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
113 Introduce TLS descriptors for i386 and x86_64.
114 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
115 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
116 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
117 * libbfd.h, bfd-in2.h: Rebuilt.
118 * elf32-i386.c (elf_howto_table): New relocations.
120 (elf_i386_reloc_type_lookup): Map new relocations.
121 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
122 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
123 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
124 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
125 (elf_i386_local_tlsdesc_gotent): New macro.
126 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
127 (elf_i386_compute_jump_table_size): New macro.
128 (link_hash_newfunc): Initialize tlsdesc_got.
129 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
130 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
132 (elf_i386_check_relocs): Likewise. Allocate space for
133 local_tlsdesc_gotent.
134 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
136 (allocate_dynrelocs): Count function PLT relocations. Reserve
137 space for TLS descriptors and relocations.
138 (elf_i386_size_dynamic_sections): Reserve space for TLS
139 descriptors and relocations. Set up sgotplt_jump_table_size.
140 Don't zero reloc_count in srelplt.
141 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
142 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
144 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
145 (elf_backend_always_size_sections): Define.
146 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
147 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
148 (R_X86_64_standard): Adjust.
149 (x86_64_reloc_map): Map new relocs.
150 (elf64_x86_64_rtype_to_howto): New, split out of...
151 (elf64_x86_64_info_to_howto): ... this function, and...
152 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
153 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
154 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
155 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
156 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
157 (elf64_x86_64_local_tlsdesc_gotent): New macro.
158 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
159 tlsdesc_got and sgotplt_jump_table_size fields.
160 (elf64_x86_64_compute_jump_table_size): New macro.
161 (link_hash_newfunc): Initialize tlsdesc_got.
162 (elf64_x86_64_link_hash_table_create): Initialize new fields.
163 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
164 R_X86_64_TLSDESC_CALL.
165 (elf64_x86_64_check_relocs): Likewise. Allocate space for
166 local_tlsdesc_gotent.
167 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
168 R_X86_64_TLSDESC_CALL.
169 (allocate_dynrelocs): Count function PLT relocations. Reserve
170 space for TLS descriptors and relocations.
171 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
172 descriptors and relocations. Set up sgotplt_jump_table_size,
173 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
174 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
176 (elf64_x86_64_always_size_sections): New. Set up
178 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
180 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
181 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
182 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
183 (elf_backend_always_size_sections): Define.
185 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
188 * dwarf2.c (comp_unit_contains_address): Update comment.
189 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
190 lma. Return TRUE only if both comp_unit_contains_address and
191 comp_unit_find_nearest_line return TRUE.
192 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
194 2006-01-18 Alan Modra <amodra@bigpond.net.au>
196 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
197 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
198 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
199 elf_gc_mark_dynamic_ref_symbol. Make global.
200 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
201 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
202 (elfNN_bed): Init new field.
203 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
204 (ppc64_elf_gc_mark_dynamic_ref): New function.
206 2006-01-17 Alan Modra <amodra@bigpond.net.au>
208 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
210 2006-01-17 Nick Clifton <nickc@redhat.com>
213 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
216 2006-01-11 Nick Clifton <nickc@redhat.com>
218 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
219 into the newly (re)allocated map array.
221 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
223 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
225 2006-01-01 Jakub Jelinek <jakub@redhat.com>
227 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
230 For older changes see ChangeLog-2005
236 version-control: never