OSDN Git Service

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