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