From a2fdf27064805ed9e44e486fb20a4445e681cabe Mon Sep 17 00:00:00 2001 From: Nicholas Duffek Date: Fri, 16 Jun 2000 20:40:50 +0000 Subject: * 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. --- bfd/ChangeLog | 6 ++++++ bfd/coffcode.h | 5 +++++ bfd/libcoff-in.h | 3 +++ bfd/libcoff.h | 3 +++ 4 files changed, 17 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1597354..6d77375 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2000-06-16 Nicholas Duffek + + * 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 * bfd-in.h (bfd_family_coff): Define. 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; diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h index 9b1a026..3fae93c 100644 --- a/bfd/libcoff-in.h +++ b/bfd/libcoff-in.h @@ -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; diff --git a/bfd/libcoff.h b/bfd/libcoff.h index c72ffdb..78a03e1 100644 --- a/bfd/libcoff.h +++ b/bfd/libcoff.h @@ -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; -- cgit v1.1