1 /* -----------------------------------------------------------------------------
2 * $Id: LinkerInternals.h,v 1.7 2003/10/08 09:42:35 wolfgang 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
17 enum { SECTIONKIND_CODE_OR_RODATA,
20 SECTIONKIND_NOINFOAVAIL }
28 struct _Section* next;
33 struct _ProddableBlock {
36 struct _ProddableBlock* next;
40 /* Top-level structure for an object module. One of these is allocated
41 * for each object file in use.
43 typedef struct _ObjectCode {
47 char* formatName; /* eg "ELF32", "DLL", "COFF", etc. */
49 /* An array containing ptrs to all the symbol names copied from
50 this object into the global symbol hash table. This is so that
51 we know which parts of the latter mapping to nuke when this
52 object is removed from the system. */
56 /* ptr to malloc'd lump of memory holding the obj file */
59 /* The section-kind entries for this object module. Linked
63 /* A private hash table for local symbols. */
66 /* Allow a chain of these things */
67 struct _ObjectCode * next;
69 /* SANITY CHECK ONLY: a list of the only memory regions which may
70 safely be prodded during relocation. Any attempt to prod
71 outside one of these is an error in the linker. */
72 ProddableBlock* proddables;
74 #ifdef ia64_TARGET_ARCH
75 /* Procedure Linkage Table for this object */
77 unsigned int pltIndex;
80 #ifdef darwin_TARGET_OS
82 unsigned long island_start_symbol;
83 unsigned long n_islands;
88 extern ObjectCode *objects;