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