aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorNicholas Duffek <nsd@redhat.com>2000-06-16 20:40:50 +0000
committerNicholas Duffek <nsd@redhat.com>2000-06-16 20:40:50 +0000
commita2fdf27064805ed9e44e486fb20a4445e681cabe (patch)
tree99f315cf53c92229c29e2aa1105bd4eaf4a95960 /bfd/coffcode.h
parent9bd09e220fef247580c9736ab0d680c875c11f93 (diff)
downloadgdb-a2fdf27064805ed9e44e486fb20a4445e681cabe.zip
gdb-a2fdf27064805ed9e44e486fb20a4445e681cabe.tar.gz
gdb-a2fdf27064805ed9e44e486fb20a4445e681cabe.tar.bz2
* 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.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 26c8620..3f155b8 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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;