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