Fixed multi-archness of the `demo' script.
[libobjid.git] / objid.h
1 /* $Id$ */
2
3
4 #ifndef _OBJID_H
5 #define _OBJID_H 1
6
7
8 #include <link.h>
9
10
11 #define Elf32_Magic 0x0B11D032
12 #define Elf64_Magic 0x0B11D064
13
14 typedef struct
15   {
16     ElfW(Addr) filename;
17     ElfW(Word) checksum;
18   } ElfW(LibobjidObj);
19
20 typedef struct
21   {
22     ElfW(Word) magic;
23     ElfW(Addr) self;
24     ElfW(Addr) self_not;        /* == ~self */
25     /* Total size of all OBJs including this header.  */
26     ElfW(Word) size;
27     ElfW(Word) obj_count;
28     ElfW(LibobjidObj) obj[0];
29   } ElfW(LibobjidHdr);
30
31
32 #endif /* !_OBJID_H */