[RFA] 64-bit corefile support for Irix
David Anderson
davea@quasar.engr.sgi.com
Tue Sep 10 09:56:00 GMT 2002
|> + #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
More information about the Binutils
mailing list