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