This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
[PATCH] bfd_target_xcoff_flavour
- To: binutils at sourceware dot cygnus dot com
- Subject: [PATCH] bfd_target_xcoff_flavour
- From: "Nick Duffek <Nick Duffek"<nsd at cygnus dot com>
- Date: Fri, 12 May 2000 19:28:03 GMT
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?
Nick Duffek
nsd@cygnus.com
Index: bfd/coffcode.h
===================================================================
RCS file: /cvs/src/src/bfd/coffcode.h,v
retrieving revision 1.41
diff -u -r1.41 coffcode.h
--- 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
xcoff->full_aouthdr = true;
xcoff->toc = internal_a->o_toc;
xcoff->sntoc = internal_a->o_sntoc;
Index: bfd/libcoff-in.h
===================================================================
RCS file: /cvs/src/src/bfd/libcoff-in.h,v
retrieving revision 1.5
diff -u -r1.5 libcoff-in.h
--- bfd/libcoff-in.h 1999/09/07 03:40:32 1.5
+++ bfd/libcoff-in.h 2000/05/09 19:11:54
@@ -126,6 +126,9 @@
/* Basic COFF information. */
coff_data_type coff;
+ /* True if this is an XCOFF64 file. */
+ boolean xcoff64;
+
/* True if a large a.out header should be generated. */
boolean full_aouthdr;
Index: bfd/libcoff.h
===================================================================
RCS file: /cvs/src/src/bfd/libcoff.h,v
retrieving revision 1.10
diff -u -r1.10 libcoff.h
--- bfd/libcoff.h 2000/04/29 02:45:34 1.10
+++ bfd/libcoff.h 2000/05/09 19:11:56
@@ -126,6 +126,9 @@
/* Basic COFF information. */
coff_data_type coff;
+ /* True if this is an XCOFF64 file. */
+ boolean xcoff64;
+
/* True if a large a.out header should be generated. */
boolean full_aouthdr;