1 /* -----------------------------------------------------------------------------
2 * $Id: LinkerInternals.h,v 1.3 2001/02/28 10:03:42 sewardj Exp $
4 * (c) The GHC Team, 2000
8 * ---------------------------------------------------------------------------*/
10 typedef enum { OBJECT_LOADED, OBJECT_RESOLVED } OStatus;
12 /* Indication of section kinds for loaded objects. Needed by
13 the GC for deciding whether or not a pointer on the stack
16 typedef enum { SECTIONKIND_CODE_OR_RODATA,
19 SECTIONKIND_NOINFOAVAIL }
22 typedef struct { void* start; void* end; SectionKind kind; }
25 /* Top-level structure for an object module. One of these is allocated
26 * for each object file in use.
28 typedef struct _ObjectCode {
32 char* formatName; /* eg "ELF32", "DLL", "COFF", etc. */
34 /* An array containing ptrs to all the symbol names copied from
35 this object into the global symbol hash table. This is so that
36 we know which parts of the latter mapping to nuke when this
37 object is removed from the system. */
41 /* ptr to malloc'd lump of memory holding the obj file */
44 /* The section-kind entries for this object module. Dynamically expands. */
48 /* A private hash table for local symbols. */
51 /* Allow a chain of these things */
52 struct _ObjectCode * next;
55 extern ObjectCode *objects;