+2005-08-09 Rodney Brown <rbrown@bravurasolutions.com.au>
+ Nick Clifton <nickc@redhat.com>
+
+ * aix5ppc-core.c (xcoff64_core_p): Constify return_value
+ variable. Also, do not use core_hdr macro as it evaluates to a
+ cast of an lvalue which is no longer supported by GCC 4.0.
+
2005-08-08 Eric Dönges <Eric.Doenges@betty-tv.com>
* archures.c (bfd_mach_msp21): New MSP430 machine number.
/* IBM RS/6000 "XCOFF" back-end for BFD.
- Copyright 2001, 2002, 2003, 2004
+ Copyright 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
Written by Tom Rix
Contributed by Red Hat Inc.
bfd_vma ld_offset;
bfd_size_type i;
struct vm_infox vminfo;
- bfd_target *return_value = NULL;
+ const bfd_target *return_value = NULL;
/* Get the header. */
if (bfd_seek (abfd, 0, SEEK_SET) != 0)
return return_value;
memcpy (new_core_hdr, &core, sizeof (struct core_dumpxx));
- core_hdr(abfd) = (char *)new_core_hdr;
+ /* The core_hdr() macro is no longer used here because it would
+ expand to code relying on gcc's cast-as-lvalue extension,
+ which was removed in gcc 4.0. */
+ abfd->tdata.any = new_core_hdr;
/* .stack section. */
sec = bfd_make_section_anyway (abfd, ".stack");