[PATCH] bfd_target_xcoff_flavour

Geoff Keating geoffk@cygnus.com
Fri May 12 14:47:00 GMT 2000


> 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?

Otherwise OK.

-- 
- Geoffrey Keating <geoffk@cygnus.com>


More information about the Binutils mailing list