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