2008-01-31 Marc Gauthier <marc@tensilica.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2008-01-31 Marc Gauthier <marc@tensilica.com>
2
3 * config.bfd (xtensa*-*-*): Recognize processor variants.
4
5 2008-01-31 Nick Clifton <nickc@redhat.com>
6
7 PR ld/5692
8 * elf.c (bfd_elf_get_elf_syms): Check the return value of
9 get_elf_backend_data.
10
11 2008-01-28 Fabian Groffen <grobian@gentoo.org>
12
13 * config.bfd (x86_64-*-solaris2): Add support for this target.
14
15 2008-01-28 Alan Modra <amodra@bigpond.net.au>
16
17 Rewrite SPU overlay handling code. Put overlay calls stubs in the
18 overlays where possible. Use a faster call stub, or optionally at
19 compile time, a more compact stub. Double size of _ovly_buf_table
20 so that low bit of _ovly_table.buf can be used as a "present" bit.
21 Reserve an extra _ovly_table entry for index zero.
22 * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields,
23 add new ones.
24 (struct got_entry): New.
25 (struct spu_stub_hash_entry): Delete.
26 (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete.
27 (spu_elf_link_hash_table_create): Adjust for struct changes.
28 (spu_stub_name): Delete.
29 (spu_elf_find_overlays): Don't track sections from overlay regions.
30 Instead set ovl_buf number in spu elf section data. Error if
31 overlays in one region don't start at the same address. Adjust
32 for struct _spu_elf_section_data changes.
33 (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete.
34 (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define.
35 (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes.
36 (enum _insn_type): New.
37 (count_stub, build_stub): New functions.
38 (allocate_spuear_stubs): Use count_stub.
39 (build_spuear_stubs): Use build_stub.
40 (populate_stubs, sort_stubs): Delete.
41 (process_stubs): New function.
42 (write_one_stub): Delete.
43 (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite.
44 (alloc_stack_info): Adjust for struct _spu_elf_section_data changes.
45 (maybe_insert_function, check_function_ranges): Likewise.
46 (find_function, pasted_function, build_call_tree): Likewise.
47 (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise.
48 (spu_elf_modify_program_headers): Likewise.
49 (interesting_section): Detect stub sections differently. Delete
50 htab param, adjust all callers.
51 (spu_elf_relocate_section): Rewrite stub handling.
52 (spu_elf_output_symbol_hook): Likewise.
53 (bfd_elf32_bfd_link_hash_table_free): Delete.
54 * elf32-spu.h (struct _spu_elf_section_data): Move input-only and
55 output-only fields into a union. Add ovl_buf.
56 (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes.
57
58 2008-01-25 DJ Delorie <dj@redhat.com>
59
60 * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New.
61
62 2008-01-25 Kai Tietz <kai.tietz@onevision.com>
63
64 * bfd-in.h: Add mingw I64 support.
65 * bfd-in2.h: Regenerated.
66 * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64.
67
68 2008-01-21 Alan Modra <amodra@bigpond.net.au>
69
70 PR 4453
71 * format.c (bfd_check_format_matches): Don't accept archives as
72 fully matching unless they have a map.
73
74 2008-01-21 Alan Modra <amodra@bigpond.net.au>
75
76 * elflink.c (_bfd_elf_link_output_relocs): Correct error return.
77
78 2008-01-21 Alan Modra <amodra@bigpond.net.au>
79
80 * ecoff.c (_bfd_ecoff_archive_p): Delete.
81 * libecoff.h (_bfd_ecoff_archive_p): Delete.
82 * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p.
83 * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise.
84 (ecoff_biglittle_vec): Likewise.
85
86 2008-01-19 Alan Modra <amodra@bigpond.net.au>
87
88 PR 5646
89 * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr
90 non-NULL before dereferencing.
91
92 2008-01-15 Alan Modra <amodra@bigpond.net.au>
93
94 PR 5604
95 * elf-bfd.h (struct elf_backend_data): Add gc_keep. Remove param
96 names from others.
97 (_bfd_elf_gc_keep): Declare.
98 * elfxx-target.h (elf_backend_gc_keep): Define.
99 (elfNN_bed): Init new field.
100 * elflink.c (_bfd_elf_gc_keep): New function.
101 (bfd_elf_gc_sections): Call gc_keep.
102 * elf64-ppc.c (elf_backend_gc_keep): Define.
103 (struct _ppc64_elf_section_data): Move .opd related fields to
104 a struct so they don't occupy the same storage. Adjust accesses
105 throughout file.
106 (ppc64_elf_gc_keep): New function, split out from..
107 (ppc64_elf_gc_mark_hook): ..here. Don't call _bfd_elf_gc_mark
108 to mark .opd section, just set gc_mark.
109 (ppc64_elf_edit_opd): Remove no_opd_opt parm. Don't set opd->adjust
110 unless we are changing .opd. Test non-NULL opd->adjust at all
111 accesses throughout file.
112 * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
113
114 2008-01-15 Alan Modra <amodra@bigpond.net.au>
115
116 * bfd-in.h (BFD_HOST_LONG_LONG): Delete.
117 * bfd-in2.h: Regenerate.
118
119 2008-01-11 Tristan Gingold <gingold@adacore.com>
120 Eric Botcazou <ebotcazou@adacore.com>
121
122 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a
123 relocatable.
124 * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
125 * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
126 * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
127 * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
128 * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
129 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
130 * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
131 * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
132 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
133 * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
134 * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
135 * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
136 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise.
137 * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise.
138 * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise.
139 * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output
140 or executable output with relocations.
141
142 2008-01-09 Nick Clifton <nickc@redhat.com>
143
144 PR gas/5552
145 * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field
146 to FALSE for all relocs.
147
148 2008-01-09 Richard Sandiford <rsandifo@nildram.co.uk>
149
150 PR ld/5526
151 * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged
152 fields. Rename u.cie.u.merged to u.cie.u.merged_with.
153 (eh_frame_sec_info): Add a cies field.
154 (eh_frame_hdr_info): Add a merge_cies field.
155 * elf-eh-frame.c (cie): Add a reloc_index member to the personality
156 union.
157 (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead
158 of hdr_info->cies.
159 (_bfd_elf_parse_eh_frame): Remove tmp_cie. Ccreate an array of
160 cie structures in all cases and use it instead of extended_cies.
161 If merging, store the cie array in sec_info->cies and point each
162 CIE's eh_fde_cie at the associated element. Do not try to
163 calculate the value of the personality routine here; record the
164 offset of the relocation instead. Do not merge CIEs here.
165 (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here...
166 (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead.
167 (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE.
168 (find_merged_cie): New function.
169 (_bfd_elf_gc_mark_fdes): Use it. Free sec_info->cies.
170
171 2008-01-07 Nick Clifton <nickc@redhat.com>
172
173 PR binutils/5535
174 * vms.c (vms_close_and_cleanup): Check for the presence of a
175 vms_private_data_struct before examining any of its fields.
176
177 2008-01-07 H.J. Lu <hongjiu.lu@intel.com>
178
179 PR ld/5522
180 * elflink.c (elf_link_input_bfd): Don't write out a section if
181 its output section is marked with SEC_NEVER_LOAD.
182
183 For older changes see ChangeLog-2007
184 \f
185 Local Variables:
186 mode: change-log
187 left-margin: 8
188 fill-column: 74
189 version-control: never
190 End:
This page took 0.034206 seconds and 5 git commands to generate.