OSDN Git Service

* elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24
[pf3gnuchains/pf3gnuchains3x.git] / bfd / ChangeLog
1 2006-03-16  Alan Modra  <amodra@bigpond.net.au>
2
3         * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24
4         checks from REL32.
5
6 2006-03-15  Ben Elliston  <bje@au.ibm.com>
7
8         * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all
9         in_list elements, not just the first.
10         
11 2006-03-14  Richard Sandiford  <richard@codesourcery.com>
12
13         * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split
14         out from...
15         (_bfd_mips_elf_relocate_section): ...here.  Use it to adjust r_addend
16         for final links too.
17
18 2006-03-13  Richard Sandiford  <richard@codesourcery.com>
19
20         * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot.
21
22 2006-03-11  H.J. Lu  <hongjiu.lu@intel.com>
23
24         PR ld/2443
25         * dwarf2.c (concat_filename): Don't issue an error if file is
26         0.
27
28 2006-03-10  Paul Brook  <paul@codesourcery.com>
29
30         * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5.
31         (elf32_arm_print_private_bfd_data): Ditto.
32
33 2006-03-09  Paul Brook  <paul@codesourcery.com>
34
35         * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
36         mapping symbols.
37
38 2006-03-09  Khem Raj  <khem@mvista.com>
39
40         * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned
41         char type.
42
43 2006-03-08  H.J. Lu  <hongjiu.lu@intel.com>
44
45         * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp.
46
47 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
48             Daniel Jacobowitz  <dan@codesourcery.com>
49             Zack Weinberg  <zack@codesourcery.com>
50             Nathan Sidwell  <nathan@codesourcery.com>
51             Paul Brook  <paul@codesourcery.com>
52             Ricardo Anguiano  <anguiano@codesourcery.com>
53             Phil Edwards  <phil@codesourcery.com>
54
55         * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo.
56         (bfd_elf32_bigarm_symbian_vec): Likewise.
57         (bfd_elf32_bigarm_vxworks_vec): Likewise.
58         (bfd_elf32_littlearm_vec): Likewise.
59         (bfd_elf32_littlearm_symbian_vec): Likewise.
60         (bfd_elf32_littlearm_vxworks_vec): Likewise.
61         * configure: Regenerate.
62         * elf32-arm.c: Include libiberty.h and elf-vxworks.h.
63         (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros.
64         (elf32_arm_vxworks_bed): Add forward declaration.
65         (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12.
66         (elf32_arm_vxworks_exec_plt0_entry): New table.
67         (elf32_arm_vxworks_exec_plt_entry): Likewise.
68         (elf32_arm_vxworks_shared_plt_entry): Likewise.
69         (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields.
70         (reloc_section_p): New function.
71         (create_got_section): Use RELOC_SECTION.
72         (elf32_arm_create_dynamic_sections): Likewise.  Call
73         elf_vxworks_create_dynamic_sections for VxWorks targets.
74         Choose between the two possible values of plt_header_size
75         and plt_entry_size.
76         (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2.
77         (elf32_arm_abs12_reloc): New function.
78         (elf32_arm_final_link_relocate): Call it.  Allow the creation of
79         dynamic R_ARM_ABS12 relocs on VxWorks.  Use reloc_section_p,
80         RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION.  Initialize the
81         r_addend fields of relocs.  On rela targets, skip any code that
82         adjusts in-place addends.  When using _bfd_link_final_relocate
83         to perform a final relocation, pass rel->r_addend as the addend
84         argument.
85         (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks
86         object, ignore flags that are not standard on VxWorks.
87         (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12
88         relocs on VxWorks.  Use reloc_section_p.
89         (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE.
90         (allocate_dynrelocs): Use RELOC_SIZE.  Account for the size of
91         .rela.plt.unloaded relocs on VxWorks targets.
92         (elf32_arm_size_dynamic_sections): Use RELOC_SIZE.  Check for
93         .rela.plt.unloaded as well as .rel(a).plt.  Add DT_RELA* tags
94         instead of DT_REL* tags on RELA targets.
95         (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE
96         and SWAP_RELOC_OUT.  Initialize r_addend fields.  Handle VxWorks
97         PLT entries.  Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks.
98         (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE
99         and SWAP_RELOC_OUT.  Initialize r_addend fields.  Handle DT_RELASZ
100         like DT_RELSZ.  Handle the VxWorks form of initial PLT entry.
101         Correct the .rela.plt.unreloaded symbol indexes.
102         (elf32_arm_output_symbol_hook): Call the VxWorks version of this
103         hook on VxWorks targets.
104         (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true.
105         Minor formatting tweak.
106         (elf32_arm_vxworks_final_write_processing): New function.
107         (elf_backend_add_symbol_hook): Override for VxWorks and reset
108         for Symbian.
109         (elf_backend_final_write_processing): Likewise.
110         (elf_backend_emit_relocs): Likewise.
111         (elf_backend_want_plt_sym): Likewise.
112         (ELF_MAXPAGESIZE): Likewise.
113         (elf_backend_may_use_rel_p): Minor formatting tweak.
114         (elf_backend_may_use_rela_p): Likewise.
115         (elf_backend_default_use_rela_p): Likewise.
116         (elf_backend_rela_normal): Likewise.
117         * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h.
118
119 2006-03-06  Nathan Sidwell  <nathan@codesourcery.com>
120
121         * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp):
122         New.  Adjust other variants.
123         (bfd_default_scan): Update.
124         * bfd-in2.h: Rebuilt.
125         * cpu-m68k.c: Adjust.
126         (bfd_m68k_compatible): New. Use it for architectures.
127         * elf32-m68k.c (elf32_m68k_object_p): Adjust.
128         (elf32_m68k_merge_private_bfd_data): Adjust.  Correct isa-a/b
129         mismatch.
130         (elf32_m68k_print_private_bfd_data): Adjust.
131         * ieee.c (ieee_write_processor): Adjust.
132         
133 2006-03-06  Alan Modra  <amodra@bigpond.net.au>
134
135         * dwarf2.c: Formatting.
136         (add_line_info): Remove outer loop.
137
138 2006-03-05  H.J. Lu  <hongjiu.lu@intel.com>
139             Alan Modra  <amodra@bigpond.net.au>
140
141         PR binutils/2338
142         * dwarf2.c (loadable_section): New struct.
143         (dwarf2_debug): Add loadable_section_count and
144         loadable_sections.
145         (new_line_sorts_after): New.
146         (add_line_info): Use new_line_sorts_after to compare line
147         addresses.
148         (check_function_name): Removed.
149         (unset_sections): New.
150         (place_sections): New.
151         (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections
152         and unset_sections on relocatable files.
153         (_bfd_dwarf2_find_line): Likewise.
154
155 2006-03-03  Nick Clifton  <nickc@redhat.com>
156
157         * cpu-avr.c: Update to ISO-C90 formatting.
158         * elf32-avr.c: Likewise.
159
160 2006-03-03  Bjoern Haase  <bjoern.m.haase@web.de>
161
162         * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI
163         and R_AVR_MS8_LDI 
164         (bfd_elf_avr_final_write_processing): Set
165         EF_AVR_LINKRELAX_PREPARED in e_flags field.
166         (elf32_avr_relax_section): New function.
167         (elf32_avr_relax_delete_bytes): New function.
168         (elf32_avr_get_relocated_section_contents): New function.
169         (avr_pc_wrap_around): New function.
170         (avr_relative_distance_considering_wrap_around): New function.
171         (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI.
172         * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG
173         * libbfd.h: Regenerate.
174         * bfd-in2.h: Regenerate.
175
176 2006-03-02  DJ Delorie  <dj@redhat.com>
177
178         * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
179         calculations.
180
181 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
182
183         * elf32-ppc.c (is_ppc_elf_target): Return true if the target is
184         bfd_elf32_powerpc_vxworks_vec.
185
186 2006-03-02  Nick Clifton  <nickc@redhat.com>
187
188         * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
189
190 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
191
192         * elf32-i386.c (elf_i386_create_dynamic_sections): Use
193         elf_vxworks_create_dynamic_sections.
194         (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT
195         symbol handling.
196         * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use
197         elf_vxworks_create_dynamic_sections.
198         (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT
199         symbol handling.
200         * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function.
201         * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare.
202
203 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
204
205         * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
206         (elf_backend_link_output_symbol_hook): Use
207         elf_vxworks_link_output_symbol_hook instead.
208         * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
209         (elf_backend_link_output_symbol_hook): Use
210         elf_vxworks_link_output_symbol_hook instead.
211         * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the
212         same interface as elf_backend_link_output_symbol_hook.
213         * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update
214         prototype accordingly.
215
216 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
217
218         * elf32-ppc.c (ppc_elf_plt_type): New enumeration.
219         (ppc_elf_link_hash_table): Replace old_got and new_got with
220         plt_type and can_use_new_plt.
221         (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
222         SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
223         (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
224         Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
225         (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
226         either plt_type == PLT_OLD or plt_type == PLT_NEW.  Assert that
227         this function should not be called for VxWorks targets.
228         (ppc_elf_tls_setup): Use plt_type instead of old_got.
229         (allocate_got): Likewise.  Rearrange so that max_before_header
230         is only used for PLT_OLD and PLT_NEW.
231         (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
232         (ppc_elf_size_dynamic_sections): Likewise.
233         (ppc_elf_relax_section): Likewise.
234         (ppc_elf_relocate_section): Likewise.
235         (ppc_elf_finish_dynamic_symbol): Likewise.
236         (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
237
238 2006-02-28  Richard Sandiford  <richard@codesourcery.com>
239
240         * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index.
241         (elf_i386_link_hash_table_create): Initialize it.
242         (elf_i386_compute_jump_table_size): Use it instead of
243         srelplt->reloc_count.
244         (allocate_dynrelocs): Likewise.
245         (elf_i386_size_dynamic_sections): Likewise.
246         (elf_i386_relocate_section): Likewise.
247         
248 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
249
250         * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag.
251         (_bfd_elf_write_section_eh_frame): Likewise.
252
253 2006-02-27  Carlos O'Donell  <carlos@codesourcery.com>
254
255         * po/Make-in: Add html target.
256
257 2006-02-27  Richard Sandiford  <richard@codesourcery.com>
258
259         * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the
260         cached hgot entry to check for _GLOBAL_OFFSET_TABLE_.
261         * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
262         * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise.
263         * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
264         * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
265         * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
266         * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
267         * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise.
268         * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
269         * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
270         * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
271         * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
272         * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise.
273         * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
274         * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.  Also use
275         the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_.
276         * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
277         * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
278         * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
279         * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
280
281 2006-02-25  Richard Sandiford  <richard@codesourcery.com>
282
283         * elf-bfd.h (elf_link_hash_table): Add hplt field.
284         * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
285         * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
286         * elf32-frv.c (_frv_create_got_section): Likewise.
287         * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
288         * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
289         * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
290         * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
291         * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
292         (elf_i386_link_hash_table_create): Don't initialize them.
293         (elf_i386_size_dynamic_sections): Use the generic ELF hplt and
294         hgot fields.
295         (elf_i386_finish_dynamic_symbol): Likewise.
296         * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
297         (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
298         (ppc_elf_finish_dynamic_symbol): Likewise.
299         
300 2006-02-24  DJ Delorie  <dj@redhat.com>
301
302         * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
303         (m32c_elf_relocate_section): Don't relocate them.
304         (compare_reloc): New.
305         (relax_reloc): Remove.
306         (m32c_offset_for_reloc): New.
307         (m16c_addr_encodings): New.
308         (m16c_jmpaddr_encodings): New.
309         (m32c_addr_encodings): New.
310         (m32c_elf_relax_section): Relax jumps and address displacements.
311         (m32c_elf_relax_delete_bytes): Adjust for internal syms.  Fix up
312         short jumps.
313
314         * reloc.c: Add m32c relax relocs.
315         * libbfd.h: Regenerate.
316         * bfd-in2.h: Regenerate.
317         
318 2006-02-24  H.J. Lu  <hongjiu.lu@intel.com>
319
320         PR ld/2218
321         * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
322         (_bfd_elf_link_hash_fixup_symbol): New.
323
324         * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
325         (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
326         it isn't NULL.
327
328         * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
329
330         * elfxx-target.h (elf_backend_fixup_symbol): New.
331         (elfNN_bed): Initialize elf_backend_fixup_symbol.
332
333 2006-02-23  H.J. Lu  <hongjiu.lu@intel.com>
334
335         * cpu-ia64-opc.c (ins_immu5b): New.
336         (ext_immu5b): Likewise.
337         (elf64_ia64_operands): Add IMMU5b.
338
339 2006-02-21  Alan Modra  <amodra@bigpond.net.au>
340
341         PR ld/2218
342         * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
343         is dynamic.
344         * elf32-hppa.c (allocate_dynrelocs): Likewise.
345         * elf32-i386.c (allocate_dynrelocs): Likewise.
346         * elf32-s390.c (allocate_dynrelocs): Likewise.
347         * elf32-sh.c (allocate_dynrelocs): Likewise.
348         * elf64-s390.c (allocate_dynrelocs): Likewise.
349         * elf64-x86-64.c (allocate_dynrelocs): Likewise.
350         * elf32-m32r.c (allocate_dynrelocs): Likewise.  Discard relocs
351         on undef weak with non-default visibility too.
352         * elfxx-sparc.c (allocate_dynrelocs): Ditto.
353
354 2006-02-21  Alan Modra  <amodra@bigpond.net.au>
355
356         * bfd.c: (_bfd_default_error_handler): Don't call abort on
357         error, instead call _exit.
358         (_bfd_abort): Call _exit not xexit.
359
360 2006-02-17  Kevin Buettner  <kevinb@redhat.com>
361
362         * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
363         New functions.
364         * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
365
366 2006-02-17  Shrirang Khisti  <shrirangk@kpitcummins.com>
367             Anil Paranjape   <anilp1@kpitcummins.com>
368             Shilin Shakti    <shilins@kpitcummins.com>
369
370         * Makefile.am: Add xc16x related entry 
371         * Makefile.in: Regenerate 
372         * archures.c: Add bfd_xc16x_arch 
373         * bfd-in2.h: Regenerate
374         * config.bfd: Add xc16x-*-elf
375         * configure.in: Add bfd_elf32_xc16x_vec
376         * configure: Regenerate.
377         * targets.c: Added xc16x related information
378         * cpu-xc16x.c: New file
379         * reloc.c: Add new relocations specific to xc16x:
380         BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
381         BFD_RELOC_XC16X_SOF     
382         * elf32-xc16x.c: New file.
383
384 2006-02-17  Alan Modra  <amodra@bigpond.net.au>
385
386         * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
387         * elf64-ppc.c (allocate_dynrelocs): Likewise.
388
389 2006-02-17  Alan Modra  <amodra@bigpond.net.au>
390
391         PR ld/2218
392         * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
393         dynamic.
394         (ppc64_elf_relocate_section): Check output reloc section size.
395         * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
396
397 2006-02-16  H.J. Lu  <hongjiu.lu@intel.com>
398
399         PR ld/2322
400         * elf.c (get_segment_type): New function.
401         (_bfd_elf_print_private_bfd_data): Use it.
402         (print_segment_map): New function.
403         (assign_file_positions_for_segments): Call print_segment_map
404         when there are not enough room for program headers.
405
406 2006-02-16  Nick Hudson  <nick.hudson@dsl.pipex.com>
407
408         * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
409         traditional MIPS ELF targets.
410
411 2006-02-15  H.J. Lu  <hongjiu.lu@intel.com>
412
413         PR binutils/2338
414         * dwarf2.c (check_function_name): New function.
415         (_bfd_dwarf2_find_nearest_line): Use check_function_name to
416         check if function is correct.
417
418 2006-02-16  Alan Modra  <amodra@bigpond.net.au>
419
420         * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
421         debug sections.
422         (elf_link_input_bfd): Adjust comments.
423
424 2006-02-10  H.J. Lu  <hongjiu.lu@intel.com>
425
426         * elf.c (copy_private_bfd_data): Minor update.
427
428 2006-02-10  H.J. Lu  <hongjiu.lu@intel.com>
429
430         PR binutils/2258
431         * elf.c (copy_private_bfd_data): Renamed to ...
432         (rewrite_elf_program_header): This.
433         (copy_elf_program_header): New function.
434         (copy_private_bfd_data): Likewise.
435
436 2006-02-07  Nathan Sidwell  <nathan@codesourcery.com>
437
438         * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
439         bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
440         bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
441         bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
442         (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
443         bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
444         bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
445         bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
446         bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
447         bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
448         bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
449         bfd_mach_mcf_isa_b_usp_float_emac): New.
450         (bfd_default_scan): Update coldfire mapping.
451         * bfd-in.h (bfd_m68k_mach_to_features,
452         bfd_m68k_features_to_mach): Declare.
453         * bfd-in2.h: Rebuilt.
454         * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
455         adjust legacy names.
456         (m68k_arch_features): New.
457         (bfd_m68k_mach_to_features,
458         bfd_m68k_features_to_mach): Define.
459         * elf32-m68k.c (elf32_m68k_object_p): New.
460         (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
461         (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
462         (elf_backend_object_p): Define.
463         * ieee.c (ieee_write_processor): Update coldfire machines.
464         * libbfd.h: Rebuilt.
465
466 2006-02-06  Steve Ellcey  <sje@cup.hp.com>
467
468         * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
469         if SHF_TLS is set.
470
471 2006-02-05  Arnold Metselaar  <arnold.metselaar@planet.nl>
472
473         * coff-z80.c (r_imm24): New howto. 
474         (rtype2howto): New case R_IMM24.
475         (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
476         (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
477
478 2006-02-04  Richard Sandiford  <richard@codesourcery.com>
479
480         * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
481         has already been assigned a GOT index, copy that index to the
482         current hash table entry.
483
484 2006-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
485
486         * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
487         for call-to-undefweak reloc overflow.
488
489 2006-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
490
491         * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
492         for 32-bit relocs overflow.
493
494 2006-01-27  Paul Brook  <paul@codesourcery.com>
495
496         * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
497         objects.
498
499 2006-01-18  Alexandre Oliva  <aoliva@redhat.com>
500
501         Introduce TLS descriptors for i386 and x86_64.
502         * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
503         BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
504         BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
505         * libbfd.h, bfd-in2.h: Rebuilt.
506         * elf32-i386.c (elf_howto_table): New relocations.
507         (R_386_tls): Adjust.
508         (elf_i386_reloc_type_lookup): Map new relocations.
509         (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
510         (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
511         (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
512         (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
513         (elf_i386_local_tlsdesc_gotent): New macro.
514         (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
515         (elf_i386_compute_jump_table_size): New macro.
516         (link_hash_newfunc): Initialize tlsdesc_got.
517         (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
518         (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
519         R_386_TLS_DESC_CALL.
520         (elf_i386_check_relocs): Likewise.  Allocate space for
521         local_tlsdesc_gotent.
522         (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
523         R_386_TLS_DESC_CALL.
524         (allocate_dynrelocs): Count function PLT relocations.  Reserve
525         space for TLS descriptors and relocations.
526         (elf_i386_size_dynamic_sections): Reserve space for TLS
527         descriptors and relocations.  Set up sgotplt_jump_table_size.
528         Don't zero reloc_count in srelplt.
529         (elf_i386_always_size_sections): New.  Set up _TLS_MODULE_BASE_.
530         (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
531         R_386_TLS_DESC_CALL.
532         (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
533         (elf_backend_always_size_sections): Define.
534         * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
535         R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
536         (R_X86_64_standard): Adjust.
537         (x86_64_reloc_map): Map new relocs.
538         (elf64_x86_64_rtype_to_howto): New, split out of...
539         (elf64_x86_64_info_to_howto): ... this function, and...
540         (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
541         (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
542         (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
543         (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
544         (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
545         (elf64_x86_64_local_tlsdesc_gotent): New macro.
546         (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
547         tlsdesc_got and sgotplt_jump_table_size fields.
548         (elf64_x86_64_compute_jump_table_size): New macro.
549         (link_hash_newfunc): Initialize tlsdesc_got.
550         (elf64_x86_64_link_hash_table_create): Initialize new fields.
551         (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
552         R_X86_64_TLSDESC_CALL.
553         (elf64_x86_64_check_relocs): Likewise.  Allocate space for
554         local_tlsdesc_gotent.
555         (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
556         R_X86_64_TLSDESC_CALL.
557         (allocate_dynrelocs): Count function PLT relocations.  Reserve
558         space for TLS descriptors and relocations.
559         (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
560         descriptors and relocations.  Set up sgotplt_jump_table_size,
561         tlsdesc_plt and tlsdesc_got.  Make room for them.  Don't zero
562         reloc_count in srelplt.  Add dynamic entries for DT_TLSDESC_PLT
563         and DT_TLSDESC_GOT.
564         (elf64_x86_64_always_size_sections): New.  Set up
565         _TLS_MODULE_BASE_.
566         (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
567         R_386_TLS_DESC_CALL.
568         (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
569         (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
570         DT_TLSDESC_GOT.  Set up TLS descriptor lazy resolver PLT entry.
571         (elf_backend_always_size_sections): Define.
572
573 2006-01-17  H.J. Lu  <hongjiu.lu@intel.com>
574
575         PR binutils/2096
576         * dwarf2.c (comp_unit_contains_address): Update comment.
577         (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
578         lma.  Return TRUE only if both comp_unit_contains_address and
579         comp_unit_find_nearest_line return TRUE.
580         (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
581
582 2006-01-18  Alan Modra  <amodra@bigpond.net.au>
583
584         * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
585         (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
586         * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
587         elf_gc_mark_dynamic_ref_symbol.  Make global.
588         (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
589         * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
590         (elfNN_bed): Init new field.
591         * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
592         (ppc64_elf_gc_mark_dynamic_ref): New function.
593
594 2006-01-17  Alan Modra  <amodra@bigpond.net.au>
595
596         * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
597
598 2006-01-17  Nick Clifton  <nickc@redhat.com>
599
600         PR binutils/2159
601         * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
602         parameters.
603
604 2006-01-11  Nick Clifton  <nickc@redhat.com>
605
606         * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
607         into the newly (re)allocated map array.
608
609 2006-01-09  Alexis Wilke  <alexis_wilke@yahoo.com>
610
611         * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
612
613 2006-01-01  Jakub Jelinek  <jakub@redhat.com>
614
615         * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
616         for .toc1 section.
617
618 For older changes see ChangeLog-2005
619 \f
620 Local Variables:
621 mode: change-log
622 left-margin: 8
623 fill-column: 74
624 version-control: never
625 End: