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