This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] 64-bit corefile support for Irix


|> + #ifdef CORE_MAGIC64
|
|Where does the macro come from?  Should BFD provide it so that it can 
|always be used.
|
|enjoy,
|Andrew

It comes from IRIX /usr/include/core.out.h, the
header which defines the IRIX core file format.

The 3 defines are
#define CORE_MAGIC      0xdeadadb0
#define CORE_MAGIC64    0xdeadad40
#define CORE_MAGICN32   0xbabec0bb

The initial struct in the core has a field with one of
the above values (which one depends on which ABI
the executable that coredumped was, of course).

CORE_MAGIC is for o32
CORE_MAGICN32 is for n32
CORE_MAGIC64 is for -64 (some people call it n64).

CORE_MAGIC was first, followed by CORE_MAGIC64, and then by
CORE_MAGICN32 over time. All 3 existed starting in the 
mid 1990's.

Regards,
David B. Anderson davea@sgi.com http://reality.sgiweb.org/davea


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]