[include/elf]
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2006-02-24 DJ Delorie <dj@redhat.com>
2
3 * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
4 (m32c_elf_relocate_section): Don't relocate them.
5 (compare_reloc): New.
6 (relax_reloc): Remove.
7 (m32c_offset_for_reloc): New.
8 (m16c_addr_encodings): New.
9 (m16c_jmpaddr_encodings): New.
10 (m32c_addr_encodings): New.
11 (m32c_elf_relax_section): Relax jumps and address displacements.
12 (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
13 short jumps.
14
15 * reloc.c: Add m32c relax relocs.
16 * libbfd.h: Regenerate.
17 * bfd-in2.h: Regenerate.
18
19 2006-02-24 H.J. Lu <hongjiu.lu@intel.com>
20
21 PR ld/2218
22 * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
23 (_bfd_elf_link_hash_fixup_symbol): New.
24
25 * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
26 (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
27 it isn't NULL.
28
29 * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
30
31 * elfxx-target.h (elf_backend_fixup_symbol): New.
32 (elfNN_bed): Initialize elf_backend_fixup_symbol.
33
34 2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
35
36 * cpu-ia64-opc.c (ins_immu5b): New.
37 (ext_immu5b): Likewise.
38 (elf64_ia64_operands): Add IMMU5b.
39
40 2006-02-21 Alan Modra <amodra@bigpond.net.au>
41
42 PR ld/2218
43 * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
44 is dynamic.
45 * elf32-hppa.c (allocate_dynrelocs): Likewise.
46 * elf32-i386.c (allocate_dynrelocs): Likewise.
47 * elf32-s390.c (allocate_dynrelocs): Likewise.
48 * elf32-sh.c (allocate_dynrelocs): Likewise.
49 * elf64-s390.c (allocate_dynrelocs): Likewise.
50 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
51 * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs
52 on undef weak with non-default visibility too.
53 * elfxx-sparc.c (allocate_dynrelocs): Ditto.
54
55 2006-02-21 Alan Modra <amodra@bigpond.net.au>
56
57 * bfd.c: (_bfd_default_error_handler): Don't call abort on
58 error, instead call _exit.
59 (_bfd_abort): Call _exit not xexit.
60
61 2006-02-17 Kevin Buettner <kevinb@redhat.com>
62
63 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
64 New functions.
65 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
66
67 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
68 Anil Paranjape <anilp1@kpitcummins.com>
69 Shilin Shakti <shilins@kpitcummins.com>
70
71 * Makefile.am: Add xc16x related entry
72 * Makefile.in: Regenerate
73 * archures.c: Add bfd_xc16x_arch
74 * bfd-in2.h: Regenerate
75 * config.bfd: Add xc16x-*-elf
76 * configure.in: Add bfd_elf32_xc16x_vec
77 * configure: Regenerate.
78 * targets.c: Added xc16x related information
79 * cpu-xc16x.c: New file
80 * reloc.c: Add new relocations specific to xc16x:
81 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
82 BFD_RELOC_XC16X_SOF
83 * elf32-xc16x.c: New file.
84
85 2006-02-17 Alan Modra <amodra@bigpond.net.au>
86
87 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
88 * elf64-ppc.c (allocate_dynrelocs): Likewise.
89
90 2006-02-17 Alan Modra <amodra@bigpond.net.au>
91
92 PR ld/2218
93 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
94 dynamic.
95 (ppc64_elf_relocate_section): Check output reloc section size.
96 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
97
98 2006-02-16 H.J. Lu <hongjiu.lu@intel.com>
99
100 PR ld/2322
101 * elf.c (get_segment_type): New function.
102 (_bfd_elf_print_private_bfd_data): Use it.
103 (print_segment_map): New function.
104 (assign_file_positions_for_segments): Call print_segment_map
105 when there are not enough room for program headers.
106
107 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
108
109 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
110 traditional MIPS ELF targets.
111
112 2006-02-15 H.J. Lu <hongjiu.lu@intel.com>
113
114 PR binutils/2338
115 * dwarf2.c (check_function_name): New function.
116 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
117 check if function is correct.
118
119 2006-02-16 Alan Modra <amodra@bigpond.net.au>
120
121 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
122 debug sections.
123 (elf_link_input_bfd): Adjust comments.
124
125 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
126
127 * elf.c (copy_private_bfd_data): Minor update.
128
129 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
130
131 PR binutils/2258
132 * elf.c (copy_private_bfd_data): Renamed to ...
133 (rewrite_elf_program_header): This.
134 (copy_elf_program_header): New function.
135 (copy_private_bfd_data): Likewise.
136
137 2006-02-07 Nathan Sidwell <nathan@codesourcery.com>
138
139 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
140 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
141 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
142 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
143 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
144 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
145 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
146 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
147 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
148 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
149 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
150 bfd_mach_mcf_isa_b_usp_float_emac): New.
151 (bfd_default_scan): Update coldfire mapping.
152 * bfd-in.h (bfd_m68k_mach_to_features,
153 bfd_m68k_features_to_mach): Declare.
154 * bfd-in2.h: Rebuilt.
155 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
156 adjust legacy names.
157 (m68k_arch_features): New.
158 (bfd_m68k_mach_to_features,
159 bfd_m68k_features_to_mach): Define.
160 * elf32-m68k.c (elf32_m68k_object_p): New.
161 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
162 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
163 (elf_backend_object_p): Define.
164 * ieee.c (ieee_write_processor): Update coldfire machines.
165 * libbfd.h: Rebuilt.
166
167 2006-02-06 Steve Ellcey <sje@cup.hp.com>
168
169 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
170 if SHF_TLS is set.
171
172 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
173
174 * coff-z80.c (r_imm24): New howto.
175 (rtype2howto): New case R_IMM24.
176 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
177 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
178
179 2006-02-04 Richard Sandiford <richard@codesourcery.com>
180
181 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
182 has already been assigned a GOT index, copy that index to the
183 current hash table entry.
184
185 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
186
187 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
188 for call-to-undefweak reloc overflow.
189
190 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
191
192 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
193 for 32-bit relocs overflow.
194
195 2006-01-27 Paul Brook <paul@codesourcery.com>
196
197 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
198 objects.
199
200 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
201
202 Introduce TLS descriptors for i386 and x86_64.
203 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
204 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
205 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
206 * libbfd.h, bfd-in2.h: Rebuilt.
207 * elf32-i386.c (elf_howto_table): New relocations.
208 (R_386_tls): Adjust.
209 (elf_i386_reloc_type_lookup): Map new relocations.
210 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
211 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
212 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
213 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
214 (elf_i386_local_tlsdesc_gotent): New macro.
215 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
216 (elf_i386_compute_jump_table_size): New macro.
217 (link_hash_newfunc): Initialize tlsdesc_got.
218 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
219 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
220 R_386_TLS_DESC_CALL.
221 (elf_i386_check_relocs): Likewise. Allocate space for
222 local_tlsdesc_gotent.
223 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
224 R_386_TLS_DESC_CALL.
225 (allocate_dynrelocs): Count function PLT relocations. Reserve
226 space for TLS descriptors and relocations.
227 (elf_i386_size_dynamic_sections): Reserve space for TLS
228 descriptors and relocations. Set up sgotplt_jump_table_size.
229 Don't zero reloc_count in srelplt.
230 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
231 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
232 R_386_TLS_DESC_CALL.
233 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
234 (elf_backend_always_size_sections): Define.
235 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
236 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
237 (R_X86_64_standard): Adjust.
238 (x86_64_reloc_map): Map new relocs.
239 (elf64_x86_64_rtype_to_howto): New, split out of...
240 (elf64_x86_64_info_to_howto): ... this function, and...
241 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
242 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
243 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
244 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
245 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
246 (elf64_x86_64_local_tlsdesc_gotent): New macro.
247 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
248 tlsdesc_got and sgotplt_jump_table_size fields.
249 (elf64_x86_64_compute_jump_table_size): New macro.
250 (link_hash_newfunc): Initialize tlsdesc_got.
251 (elf64_x86_64_link_hash_table_create): Initialize new fields.
252 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
253 R_X86_64_TLSDESC_CALL.
254 (elf64_x86_64_check_relocs): Likewise. Allocate space for
255 local_tlsdesc_gotent.
256 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
257 R_X86_64_TLSDESC_CALL.
258 (allocate_dynrelocs): Count function PLT relocations. Reserve
259 space for TLS descriptors and relocations.
260 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
261 descriptors and relocations. Set up sgotplt_jump_table_size,
262 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
263 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
264 and DT_TLSDESC_GOT.
265 (elf64_x86_64_always_size_sections): New. Set up
266 _TLS_MODULE_BASE_.
267 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
268 R_386_TLS_DESC_CALL.
269 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
270 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
271 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
272 (elf_backend_always_size_sections): Define.
273
274 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
275
276 PR binutils/2096
277 * dwarf2.c (comp_unit_contains_address): Update comment.
278 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
279 lma. Return TRUE only if both comp_unit_contains_address and
280 comp_unit_find_nearest_line return TRUE.
281 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
282
283 2006-01-18 Alan Modra <amodra@bigpond.net.au>
284
285 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
286 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
287 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
288 elf_gc_mark_dynamic_ref_symbol. Make global.
289 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
290 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
291 (elfNN_bed): Init new field.
292 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
293 (ppc64_elf_gc_mark_dynamic_ref): New function.
294
295 2006-01-17 Alan Modra <amodra@bigpond.net.au>
296
297 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
298
299 2006-01-17 Nick Clifton <nickc@redhat.com>
300
301 PR binutils/2159
302 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
303 parameters.
304
305 2006-01-11 Nick Clifton <nickc@redhat.com>
306
307 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
308 into the newly (re)allocated map array.
309
310 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
311
312 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
313
314 2006-01-01 Jakub Jelinek <jakub@redhat.com>
315
316 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
317 for .toc1 section.
318
319 For older changes see ChangeLog-2005
320 \f
321 Local Variables:
322 mode: change-log
323 left-margin: 8
324 fill-column: 74
325 version-control: never
326 End:
This page took 0.03581 seconds and 5 git commands to generate.