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