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