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