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