Index: bfd/aix5ppc-core.c =================================================================== RCS file: /cvs/src/src/bfd/aix5ppc-core.c,v retrieving revision 1.11 diff -c -3 -p -r1.11 aix5ppc-core.c *** bfd/aix5ppc-core.c 18 Jul 2005 14:13:33 -0000 1.11 --- bfd/aix5ppc-core.c 8 Aug 2005 12:24:45 -0000 *************** *** 1,5 **** /* IBM RS/6000 "XCOFF" back-end for BFD. ! Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc. Written by Tom Rix Contributed by Red Hat Inc. --- 1,5 ---- /* IBM RS/6000 "XCOFF" back-end for BFD. ! Copyright 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Written by Tom Rix Contributed by Red Hat Inc. *************** xcoff64_core_p (bfd *abfd) *** 55,61 **** bfd_vma ld_offset; bfd_size_type i; struct vm_infox vminfo; ! bfd_target *return_value = NULL; /* Get the header. */ if (bfd_seek (abfd, 0, SEEK_SET) != 0) --- 55,61 ---- bfd_vma ld_offset; bfd_size_type i; struct vm_infox vminfo; ! const bfd_target *return_value = NULL; /* Get the header. */ if (bfd_seek (abfd, 0, SEEK_SET) != 0) *************** xcoff64_core_p (bfd *abfd) *** 111,117 **** return return_value; memcpy (new_core_hdr, &core, sizeof (struct core_dumpxx)); ! core_hdr(abfd) = (char *)new_core_hdr; /* .stack section. */ sec = bfd_make_section_anyway (abfd, ".stack"); --- 111,120 ---- return return_value; memcpy (new_core_hdr, &core, sizeof (struct core_dumpxx)); ! /* The core_hdr() macro is not used here because it would be ! casting the LHS of an assignment and some versions of gcc ! will generate a warning for this. */ ! abfd->tdata.any = new_core_hdr; /* .stack section. */ sec = bfd_make_section_anyway (abfd, ".stack");