This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: [PATCH] bfd_target_xcoff_flavour
On Fri, May 12, 2000 at 02:47:28PM -0700, Geoff Keating wrote:
> > Date: Fri, 12 May 2000 19:28:03 GMT
> > From: "Nick Duffek <Nick Duffek"<nsd@cygnus.com>
> >
> > GDB needs to distinguish between XCOFF and XCOFF64 files.
> >
> > The appended patch accomplishes that by adding an xcoff64 flag to struct
> > xcoff_tdata.
> >
> > Okay to apply?
>
> > --- bfd/coffcode.h 2000/05/06 01:41:50 1.41
> > +++ bfd/coffcode.h 2000/05/09 19:11:53
> > @@ -1731,6 +1731,11 @@
> > struct xcoff_tdata *xcoff;
> >
> > xcoff = xcoff_data (abfd);
> > +# ifdef U803XTOCMAGIC
> > + xcoff->xcoff64 = internal_f->f_magic == U803XTOCMAGIC;
> > +# else
> > + xcoff->xcoff64 = 0;
> > +# endif
>
> How could U803XTOCMAGIC not be declared?
It's defined in rs6k64.h, which is only included by coff64-rs6000.c.
It should probably be moved to rs6000.h if it's going to be used in various
places.
-Clint