]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
authorNicholas Duffek <nsd@redhat.com>
Fri, 16 Jun 2000 20:40:50 +0000 (20:40 +0000)
committerNicholas Duffek <nsd@redhat.com>
Fri, 16 Jun 2000 20:40:50 +0000 (20:40 +0000)
* libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
* libcoff.h (struct xcoff_tdata): Define xcoff64 field.

bfd/ChangeLog
bfd/coffcode.h
bfd/libcoff-in.h
bfd/libcoff.h

index 1597354ae178f81813f2db2375a8986bd8f870e6..6d7737549412da665d1db768eeefe0d4c8a274a4 100644 (file)
@@ -1,3 +1,9 @@
+2000-06-16  Nicholas Duffek  <nsd@cygnus.com>
+
+       * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
+       * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
+       * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
+
 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
 
        * bfd-in.h (bfd_family_coff): Define.
index 26c86203c43de23e88bf48201ccd37cb54665098..3f155b85e094d3ef884e02bbfb9d1dc0a9227b75 100644 (file)
@@ -1731,6 +1731,11 @@ coff_mkobject_hook (abfd, filehdr, aouthdr)
       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 9b1a02684870b4ac0d31534607d65515901a5e05..3fae93cf866e9a93f2b7b4d3c2b4633a6c93a0a2 100644 (file)
@@ -126,6 +126,9 @@ struct xcoff_tdata
   /* 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 c72ffdbe103fdcae70707ee5e32be956182cff89..78a03e15b591bd3f302fa69caaf75dcfe04450da 100644 (file)
@@ -126,6 +126,9 @@ struct xcoff_tdata
   /* 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;