From 74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 21:39:35 +0000 Subject: 20060303 --- utils/libmach/obj.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 utils/libmach/obj.h (limited to 'utils/libmach/obj.h') diff --git a/utils/libmach/obj.h b/utils/libmach/obj.h new file mode 100644 index 00000000..2d2dfea6 --- /dev/null +++ b/utils/libmach/obj.h @@ -0,0 +1,24 @@ +/* + * obj.h -- defs for dealing with object files + */ + +typedef enum Kind /* variable defs and references in obj */ +{ + aNone, /* we don't care about this prog */ + aName, /* introduces a name */ + aText, /* starts a function */ + aData, /* references to a global object */ +} Kind; + +typedef struct Prog Prog; + +struct Prog /* info from .$O files */ +{ + Kind kind; /* what kind of symbol */ + char type; /* type of the symbol: ie, 'T', 'a', etc. */ + char sym; /* index of symbol's name */ + char *id; /* name for the symbol, if it introduces one */ +}; + +#define UNKNOWN '?' +void _offset(int, long); -- cgit v1.2.3