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