1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 2000
7 * ---------------------------------------------------------------------------*/
9 typedef enum { OBJECT_LOADED, OBJECT_RESOLVED } OStatus;
11 /* Indication of section kinds for loaded objects. Needed by
12 the GC for deciding whether or not a pointer on the stack
16 enum { SECTIONKIND_CODE_OR_RODATA,
19 SECTIONKIND_NOINFOAVAIL }
27 struct _Section* next;
32 struct _ProddableBlock {
35 struct _ProddableBlock* next;
39 /* Top-level structure for an object module. One of these is allocated
40 * for each object file in use.
42 typedef struct _ObjectCode {
46 char* formatName; /* eg "ELF32", "DLL", "COFF", etc. */
48 /* An array containing ptrs to all the symbol names copied from
49 this object into the global symbol hash table. This is so that
50 we know which parts of the latter mapping to nuke when this
51 object is removed from the system. */
55 /* ptr to malloc'd lump of memory holding the obj file */
58 /* The section-kind entries for this object module. Linked
62 /* A private hash table for local symbols. */
65 /* Allow a chain of these things */
66 struct _ObjectCode * next;
68 /* SANITY CHECK ONLY: a list of the only memory regions which may
69 safely be prodded during relocation. Any attempt to prod
70 outside one of these is an error in the linker. */
71 ProddableBlock* proddables;
73 #ifdef ia64_TARGET_ARCH
74 /* Procedure Linkage Table for this object */
76 unsigned int pltIndex;
79 #ifdef darwin_TARGET_OS
81 unsigned long island_start_symbol;
82 unsigned long n_islands;
87 extern ObjectCode *objects;