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