* elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA.
[external/binutils.git] / bfd / ChangeLog
1 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
2
3         * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA.
4         * elf.c (bfd_elf_allocate_object): Don't check for already allocated
5         tdata.
6         * elf32-hppa.c (elf32_hppa_mkobject): New function.
7         (bfd_elf32_mkobject): Define.
8         * elf32-ppc.c (is_ppc_elf_target): Delete.  Replace all uses with..
9         (is_ppc_elf): ..this new macro.
10         * elf64-ppc.c (is_ppc64_elf_target): Delete.  Replace all uses with..
11         (is_ppc64_elf): ..this new macro.
12
13 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
14
15         * elflink.c: Replace all accesses to hash->creator field with
16         output_bfd->xvec.
17         * cofflink.c: Likewise.
18         * coff-h8300.c: Likewise.
19         * ecoff.c: Likewise.
20         * elf32-m68hc1x.c: Likewise.
21         * elf32-ppc.c: Likewise.
22         * elf64-alpha.c: Likewise.
23         * elf64-ppc.c: Likewise.
24         * elf64-sparc.c: Likewise.
25         * elfxx-mips.c: Likewise.
26         * i386linux.c: Likewise.
27         * m68klinux.c: Likewise.
28         * sparclinux.c: Likewise.
29         * sunos.c: Likewise.
30         * xcofflink.c: Likewise.
31         * linker.c: Likewise.
32         (_bfd_link_hash_table_init): Don't store creator.
33
34 2008-02-14  Peter Jones  <pjones@redhat.com>
35
36         * efi-rtdrv-ia32.c: New file.
37         * efi-bsdrv-ia32.c: New file.
38         * efi-rtdrv-ia64.c: New file.
39         * efi-bsdrv-ia64.c: New file.
40         * efi-rtdrv-x86_64.c: New file.
41         * efi-bsdrv-x86_64.c: New file.
42         * peicode.h (pe_bfd_object_p): Add support for boot service and
43         runtime service drivers.
44         * libpei.h: Add macros for EFI formats, and rename the efi application
45         format macros to disambiguate.
46         * targets.c: Add bfd_target _vec externs.
47         (_bfd_tar): Add EFI _vec entries.
48         * config.bfd: Add EFI vectors into the selection routines.
49         * configure.in: add EFI _vec entries.
50         * configure: Regenerate.
51         * Makefile.am: Add EFI files.
52         * Makefile.in: Regenerate.
53
54 2008-02-14  Nathan Sidwell  <nathan@codesourcery.com>
55
56         * dwarf1.c (struct dwarf1_debug): Add syms member.
57         (alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory.
58         (parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate
59         section contents, check for out of memory.
60
61         * dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte.
62         (parse_die): Change data pointers to bfd_byte.
63         (parse_line_table, parse_functions_in_unit): Likewise.
64
65 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
66
67         * elflink.c (compute_bucket_count): Warning fixes.
68
69 2008-02-12  DJ Delorie  <dj@redhat.com>
70
71         * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of
72         relocation pointing to local symbol in merged section.
73
74         * elf32-iq2000.c (iq2000_elf_relocate_offset16): New.
75         (iq2000_elf_relocate_section): Call it.
76
77 2008-02-12  Nick Clifton  <nickc@redhat.com>
78
79         PR ld/5692
80         * elf-bfd.h (enum elf_object_id): New enum, used to identify
81         target specific extensions to the elf_obj_tdata structure.
82         (struct elf_obj_tdata): New field 'object_id'.
83         (elf_object_id, elf_program_header_size, elf_symtab_hdr): New
84         macros for accessing fields in the elf_obj_tdata structure.
85         (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object.
86         (bfd_elf_allocate_object): New function.
87         * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object
88         and implement by calling bfd_elf_allocate_object.
89         (bfd_elf_allocate_object): New function: Allocates an
90         elf_obj_tdata structure, possibly with a target specific
91         extension.
92         * elfxx-target.h (bfd_elfNN_mkobject): Use
93         bfd_elf_make_generic_object as the default value.
94         * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata
95         for consistency with other, similar structures.
96         (is_arm_elf): New macro.  Checks a BFD to make sure that is an ARM
97         ELF bfd.
98         (elf32_arm_mkobject): Call bfd_elf_allocate_object.
99         (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check
100         the bfd being processed.
101         (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
102         (bfd_elf32_arm_set_target_relocs): Likewise.
103         (bfd_elf32_arm_final_link_relocate): Likewise.
104         (bfd_elf32_arm_copy_private_bfd_data): Likewise.
105         (bfd_elf32_arm_merge_eabi_attributes): Likewise.
106         (bfd_elf32_arm_merge_private_bfd_data): Likewise.
107         (bfd_elf32_arm_check_relocs): Likewise.
108         (bfd_elf32_arm_gc_mark_extra_sections): Likewise.
109         (bfd_elf32_arm_size_dynamic_sections): Likewise.
110         (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr.
111         (bfd_elf32_arm_init_maps): Likewise.
112         (bfd_elf32_arm_final_link_relocate): Likewise.
113         (bfd_elf32_arm_relocate_section): Likewise.
114         (bfd_elf32_arm_gc_sweep_hook): Likewise.
115         (bfd_elf32_arm_check_relocs): Likewise.
116         (bfd_elf32_arm_size_dynamic_sections): Likewise.
117         * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object.
118         (is_i386_elf): New macro.  Checks a BFD to make sure that is an x86
119         ELF bfd.
120         (elf_i386_check_relocs): Use is_i386_elf macro to check    the bfd
121         being processed.
122         (elf_i386_size_dynamic_sections): Likewise.
123         (elf_i386_relocate_section): Likewise.
124         (elf_i386_check_relocs): Use elf_symtab_hdr.
125         (elf_i386_gc_sweep_hook): Likewise.
126         (elf_i386_size_dynamic_sections): Likewise.
127         (elf_i386_relocate_section): Likewise.
128         * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object.
129         (elf_create_pointer_linker_section): Use is_ppc_elf_target to
130         verify that the bfd before accessing target specific fields.
131         (ppc_elf_check_relocs): Likewise.
132         (elf_finish_pointer_linker_section): Likewise.
133         (elf_create_pointer_linker_section): Use elf_symtab_hdr.
134         (ppc_elf_check_relocs): Likewise.
135         (ppc_elf_gc_sweep_hook): Likewise.
136         (ppc_elf_tls_optimize): Likewise.
137         (ppc_elf_size_dynamic_sections): Likewise.
138         (ppc_elf_relax_section): Likewise.
139         (ppc_elf_relocate_section): Likewise.
140         * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment
141         reminding programmers to keep this structure in sync with the one
142         defined in elf64-s390.c.
143         (elf_s390_mkobject): Call bfd_elf_allocate_object.
144         (is_s390_elf): New macro.  Checks a BFD to make sure that is an s390
145         ELF bfd.
146         (elf_s390_check_relocs): Use is_s390_elf macro to check    the bfd
147         being processed.
148         (elf_s390_size_dynamic_sections): Likewise.
149         (elf_s390_relocate_section): Likewise.
150         (elf_s390_check_relocs): Use elf_symtab_hdr.
151         (elf_s390_gc_sweep_hook): Likewise.
152         (elf_s390_size_dynamic_sections): Likewise.
153         (elf_s390_relocate_section): Likewise.   
154         * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object.
155         (is_sh_elf): New macro.  Checks a BFD to make sure that is an SH
156         ELF bfd.
157         (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the
158         bfd being processed.
159         (sh_elf_relocate_section): Likewise.
160         (sh_elf_check_relocs): Likewise.
161         (sh_elf_copy_private_data): Likewise.
162         (sh_elf_relax_section): Use elf_symtab_hdr.
163         (sh_elf_size_dynamic_sections): Likewise.
164         (sh_elf_relocate_section): Likewise.
165         (sh_elf_get_relocated_section_contents): Likewise.
166         (sh_elf_gc_sweep_hook): Likewise.
167         (sh_elf_check_relocs): Likewise.
168         * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object.
169         (is_alpha_elf): New macro.  Checks a BFD to make sure that is an
170         Alpha ELF bfd.
171         (elf64_alpha_create_got_section): Use is_alpha_elf macro to check
172         the bfd being processed.
173         (elf64_alpha_create_dynamic_section): Likewise.
174         (elf64_alpha_check_relocs): Likewise.
175         (elf64_alpha_size_got_sections): Likewise.
176         (elf64_alpha_relax_section): Likewise.
177         (elf64_alpha_relocate_section): Likewise.
178         (elf64_alpha_final_link): Likewise.
179         (elf64_alpha_check_relocs): Use elf_symtab_hdr.
180         (elf64_alpha_relax_section): Likewise.
181         (elf64_alpha_relocate_section_r): Likewise.
182         (elf64_alpha_relocate_section): Likewise.
183         * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object.
184         (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd
185         being processed.
186         (opd_entry_value): Likewise.
187         (allocate_dynrelocs): Likewise.
188         (ppc64_elf_relocate_section): Likewise.
189         (ppc64_elf_check_relocs): Use elf_symtab_hdr.
190         (opd_entry_value): Likewise.
191         (ppc64_elf_gc_sweep_hook): Likewise.
192         (get_sym_h): Likewise.
193         (ppc64_elf_edit_opd): Likewise.
194         (ppc64_elf_tls_optimize): Likewise.
195         (ppc64_elf_edit_toc): Likewise.
196         (ppc64_elf_size_dynamic_sections): Likewise.
197         (toc_adjusting_stub_needed): Likewise.
198         (ppc64_elf_size_stubs): Likewise.
199         (ppc64_elf_relocate_section): Likewise.
200         * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment
201         reminding programmers to keep this structure in sync with the one
202         defined in elf32-s390.c.
203         (elf_s390_mkobject): Call bfd_elf_allocate_object.
204         (is_s390_elf): New macro.  Checks a BFD to make sure that is an s390
205         ELF bfd.
206         (elf_s390_check_relocs): Use is_s390_elf macro to check    the bfd
207         being processed.
208         (elf_s390_size_dynamic_sections): Likewise.
209         (elf_s390_relocate_section): Likewise.   
210         (elf_s390_check_relocs): Use elf_symtab_hdr.
211         (elf_s390_gc_sweep_hook): Likewise.
212         (elf_s390_size_dynamic_sections): Likewise.
213         (elf_s390_relocate_section): Likewise.
214         * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object.
215         (is_x86_64_elf): New macro.  Checks a BFD to make sure that is an
216         x86_64 ELF bfd.
217         (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd
218         being processed.
219         (elf64_x86_64_size_dynamic_sections): Likewise.
220         (elf64_x86_64_relocate_section): Likewise.
221         (elf64_x86_64_check_relocs): Use elf_symtab_hdr.
222         (elf64_x86_64_gc_sweep_hook): Likewise.
223         (elf64_x86_64_size_dynamic_sections): Likewise.
224         (elf64_x86_64_relocate_section): Likewise.
225         * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object.
226         (is_sparc_elf): New macro.  Checks a BFD to make sure that is a Sparc
227         ELF bfd.
228         (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the
229         bfd being processed.
230         (_bfd_sparc_elf_gc_sweep_hook): Likewise.
231         (_bfd_sparc_elf_size_dynamic_sections): Likewise.
232         (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr.
233         (_bfd_sparc_elf_gc_sweep_hook): Likewise.
234         (_bfd_sparc_elf_size_dynamic_sections): Likewise.
235         (_bfd_sparc_elf_relocate_section): Likewise. 
236
237 2008-02-12  Alan Modra  <amodra@bigpond.net.au>
238
239         PR 5303, 5755
240         * arange-set.c: Delete.
241         * arange-set.h: Delete.
242         * dwarf2.c: Revert 2007-09-21 changes.
243         * Makefile.am: Likewise.
244         * Makefile.in: Regenerate.
245         * po/SRC-POTFILES.in: Regenerate.
246
247 2008-02-11  Bernd Schmidt  <bernd.schmidt@analog.com>
248
249         * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it
250         if necessary.
251         (elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type
252         mismatches are detected.
253
254         * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to
255         emit invalid relocs or rofixup entries for deleted .eh_frame entries.
256
257 2008-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
258
259         * cache.c (cache_bread): Set bfd_error_file_truncated if EOF
260         was reached.
261         * srec.c (srec_scan): Calculate the checksum.  Complain on mismatch.
262
263 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
264
265         * elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling
266         of _ovly_buf_table size.
267         (spu_elf_build_stubs): Use low bit of .size as "present" bit.
268         Adjust initialisations relating to _ovly_buf_table.
269
270 2008-02-04  Bob Wilson  <bob.wilson@acm.org>
271         
272         * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid
273         relocation, do not continue processing it.  Ignore R_XTENSA_ASM_EXPAND
274         relocations against dynamic symbols.
275         (elf_xtensa_finish_dynamic_sections): Do not fail if there is no
276         .xt.lit section.
277         
278 2008-02-04  Kai Tietz  <kai.tietz@onevision.com>
279             H.J. Lu  <hongjiu.lu@intel.com>
280
281         PR 5715
282         * warning.m4: Enable -Wno-format by default when using gcc on
283         mingw.
284         * configure: Regenerated.
285
286 2008-02-04  Adam Nemet  <anemet@caviumnetworks.com>
287
288         * archures.c: Update copyright.
289         (bfd_mach_mips_octeon): New macro.
290         * bfd-in2.h: Regenerate.
291         * elfxx-mips.c (_bfd_elf_mips_mach): Handle Octeon.
292         (mips_set_isa_flags): Likewise.
293         (mips_mach_extensions): Add Octeon.
294         * cpu-mips.c: Update copyright.
295         (I_mipsocteon): New enum constant.
296         (arch_info_struct): Add Octeon.
297
298 2008-02-04  Alan Modra  <amodra@bigpond.net.au>
299
300         * elf32-spu.c (spu_elf_relocate_section): Correct return type.
301         Return error status on unexpected relocation errors.
302
303 2008-02-04  Alan Modra  <amodra@bigpond.net.au>
304
305         PR ld/5692
306         * elf.c (bfd_elf_get_elf_syms): Revert 2008-01-31.  Instead abort
307         on non-ELF input.
308         * elf32-arm.c (elf32_arm_size_dynamic_sections): Skip glue
309         processing on non-ELF input.
310
311 2008-01-31  Marc Gauthier  <marc@tensilica.com>
312
313         * config.bfd (xtensa*-*-*): Recognize processor variants.
314
315 2008-01-31  Nick Clifton  <nickc@redhat.com>
316
317         PR ld/5692
318         * elf.c (bfd_elf_get_elf_syms): Check the return value of
319         get_elf_backend_data.
320
321 2008-01-28  Fabian Groffen  <grobian@gentoo.org>
322
323         * config.bfd (x86_64-*-solaris2): Add support for this target.
324
325 2008-01-28  Alan Modra  <amodra@bigpond.net.au>
326
327         Rewrite SPU overlay handling code.  Put overlay calls stubs in the
328         overlays where possible.  Use a faster call stub, or optionally at
329         compile time, a more compact stub.  Double size of _ovly_buf_table
330         so that low bit of _ovly_table.buf can be used as a "present" bit.
331         Reserve an extra _ovly_table entry for index zero.
332         * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields,
333         add new ones.
334         (struct got_entry): New.
335         (struct spu_stub_hash_entry): Delete.
336         (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete.
337         (spu_elf_link_hash_table_create): Adjust for struct changes.
338         (spu_stub_name): Delete.
339         (spu_elf_find_overlays): Don't track sections from overlay regions.
340         Instead set ovl_buf number in spu elf section data.  Error if
341         overlays in one region don't start at the same address.  Adjust
342         for struct _spu_elf_section_data changes.
343         (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete.
344         (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define.
345         (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes.
346         (enum _insn_type): New.
347         (count_stub, build_stub): New functions.
348         (allocate_spuear_stubs): Use count_stub.
349         (build_spuear_stubs): Use build_stub.
350         (populate_stubs, sort_stubs): Delete.
351         (process_stubs): New function.
352         (write_one_stub): Delete.
353         (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite.
354         (alloc_stack_info): Adjust for struct _spu_elf_section_data changes.
355         (maybe_insert_function, check_function_ranges): Likewise.
356         (find_function, pasted_function, build_call_tree): Likewise.
357         (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise.
358         (spu_elf_modify_program_headers): Likewise.
359         (interesting_section): Detect stub sections differently.  Delete
360         htab param, adjust all callers.
361         (spu_elf_relocate_section): Rewrite stub handling.
362         (spu_elf_output_symbol_hook): Likewise.
363         (bfd_elf32_bfd_link_hash_table_free): Delete.
364         * elf32-spu.h (struct _spu_elf_section_data): Move input-only and
365         output-only fields into a union.  Add ovl_buf.
366         (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes.
367
368 2008-01-25  DJ Delorie  <dj@redhat.com>
369
370         * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New.
371
372 2008-01-25  Kai Tietz  <kai.tietz@onevision.com>
373
374         * bfd-in.h: Add mingw I64 support.
375         * bfd-in2.h: Regenerated.
376         * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64.
377
378 2008-01-21  Alan Modra  <amodra@bigpond.net.au>
379
380         PR 4453
381         * format.c (bfd_check_format_matches): Don't accept archives as
382         fully matching unless they have a map.
383
384 2008-01-21  Alan Modra  <amodra@bigpond.net.au>
385
386         * elflink.c (_bfd_elf_link_output_relocs): Correct error return.
387
388 2008-01-21  Alan Modra  <amodra@bigpond.net.au>
389
390         * ecoff.c (_bfd_ecoff_archive_p): Delete.
391         * libecoff.h (_bfd_ecoff_archive_p): Delete.
392         * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p.
393         * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise.
394         (ecoff_biglittle_vec): Likewise.
395
396 2008-01-19  Alan Modra  <amodra@bigpond.net.au>
397
398         PR 5646
399         * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr
400         non-NULL before dereferencing.
401
402 2008-01-15  Alan Modra  <amodra@bigpond.net.au>
403
404         PR 5604
405         * elf-bfd.h (struct elf_backend_data): Add gc_keep.  Remove param
406         names from others.
407         (_bfd_elf_gc_keep): Declare.
408         * elfxx-target.h (elf_backend_gc_keep): Define.
409         (elfNN_bed): Init new field.
410         * elflink.c (_bfd_elf_gc_keep): New function.
411         (bfd_elf_gc_sections): Call gc_keep.
412         * elf64-ppc.c (elf_backend_gc_keep): Define.
413         (struct _ppc64_elf_section_data): Move .opd related fields to
414         a struct so they don't occupy the same storage.  Adjust accesses
415         throughout file.
416         (ppc64_elf_gc_keep): New function, split out from..
417         (ppc64_elf_gc_mark_hook): ..here.  Don't call _bfd_elf_gc_mark
418         to mark .opd section, just set gc_mark.
419         (ppc64_elf_edit_opd): Remove no_opd_opt parm.  Don't set opd->adjust
420         unless we are changing .opd.  Test non-NULL opd->adjust at all
421         accesses throughout file.
422         * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
423
424 2008-01-15  Alan Modra  <amodra@bigpond.net.au>
425
426         * bfd-in.h (BFD_HOST_LONG_LONG): Delete.
427         * bfd-in2.h: Regenerate.
428
429 2008-01-11  Tristan Gingold  <gingold@adacore.com>
430             Eric Botcazou  <ebotcazou@adacore.com>
431
432         * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a
433         relocatable.
434         * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
435         * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
436         * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
437         * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
438         * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
439         * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
440         * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
441         * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
442         * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
443         * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
444         * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
445         * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
446         * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise.
447         * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise.
448         * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise.
449         * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output
450         or executable output with relocations.
451
452 2008-01-09  Nick Clifton  <nickc@redhat.com>
453
454         PR gas/5552
455         * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field
456         to FALSE for all relocs.
457
458 2008-01-09  Richard Sandiford  <rsandifo@nildram.co.uk>
459
460         PR ld/5526
461         * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged
462         fields.  Rename u.cie.u.merged to u.cie.u.merged_with.
463         (eh_frame_sec_info): Add a cies field.
464         (eh_frame_hdr_info): Add a merge_cies field.
465         * elf-eh-frame.c (cie): Add a reloc_index member to the personality
466         union.
467         (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead
468         of hdr_info->cies.
469         (_bfd_elf_parse_eh_frame): Remove tmp_cie.  Ccreate an array of
470         cie structures in all cases and use it instead of extended_cies.
471         If merging, store the cie array in sec_info->cies and point each
472         CIE's eh_fde_cie at the associated element.  Do not try to
473         calculate the value of the personality routine here; record the
474         offset of the relocation instead.  Do not merge CIEs here.
475         (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here...
476         (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead.
477         (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE.
478         (find_merged_cie): New function.
479         (_bfd_elf_gc_mark_fdes): Use it.  Free sec_info->cies.
480
481 2008-01-07  Nick Clifton  <nickc@redhat.com>
482
483         PR binutils/5535
484         * vms.c (vms_close_and_cleanup): Check for the presence of a
485         vms_private_data_struct before examining any of its fields.
486
487 2008-01-07  H.J. Lu  <hongjiu.lu@intel.com>
488
489         PR ld/5522
490         * elflink.c (elf_link_input_bfd): Don't write out a section if
491         its output section is marked with SEC_NEVER_LOAD.
492
493 For older changes see ChangeLog-2007
494 \f
495 Local Variables:
496 mode: change-log
497 left-margin: 8
498 fill-column: 74
499 version-control: never
500 End: