Mercurial > hg-old > index.cgi
comparison src/lwasm.h @ 91:718998b673ee
Added incomplete references to object output and added support for section base terms in expression handler
author | lost |
---|---|
date | Sat, 17 Jan 2009 05:56:40 +0000 |
parents | 6097cb1486f8 |
children | 81fc353d4d69 |
comparison
equal
deleted
inserted
replaced
90:6097cb1486f8 | 91:718998b673ee |
---|---|
36 typedef struct section_reloc_list_s section_reloc_list_t; | 36 typedef struct section_reloc_list_s section_reloc_list_t; |
37 struct section_reloc_list_s | 37 struct section_reloc_list_s |
38 { | 38 { |
39 int offset; // offset into section | 39 int offset; // offset into section |
40 lwasm_expr_stack_t *expr; // value definition | 40 lwasm_expr_stack_t *expr; // value definition |
41 int context; // symbol context (for local syms) | |
41 section_reloc_list_t *next; // next relocation | 42 section_reloc_list_t *next; // next relocation |
42 }; | 43 }; |
43 | 44 |
44 typedef struct export_list_s export_list_t; | 45 typedef struct export_list_s export_list_t; |
45 struct export_list_s | 46 struct export_list_s |
104 int codeaddr; // address the code goes at | 105 int codeaddr; // address the code goes at |
105 int nocodelen; // for "RMB" type instructions | 106 int nocodelen; // for "RMB" type instructions |
106 int addrset; // set if this instruction sets the assembly address | 107 int addrset; // set if this instruction sets the assembly address |
107 int symaddr; // set if this instruction sets a symbol addr with EQU or the like | 108 int symaddr; // set if this instruction sets a symbol addr with EQU or the like |
108 int badop; // bad operation - ignore it | 109 int badop; // bad operation - ignore it |
110 int context; // the symbol context for this line | |
109 | 111 |
110 // the following are used for obj format - for external references, inter-section | 112 // the following are used for obj format - for external references, inter-section |
111 // references, and intrasection relocations | 113 // references, and intrasection relocations |
112 int relocoff; // offset into insn where relocation value goes | 114 int relocoff; // offset into insn where relocation value goes |
113 lwasm_expr_stack_t *exprs[4]; // non-constant expression values | 115 lwasm_expr_stack_t *exprs[4]; // non-constant expression values |