comparison src/output.c @ 86:033a328a10ae

Checkpoint: object target output
author lost
date Fri, 16 Jan 2009 05:33:40 +0000
parents 918be0c02239
children 41ff4686b46b
comparison
equal deleted inserted replaced
85:918be0c02239 86:033a328a10ae
239 239
240 // do we have a "relocation"? If so, add a reference to the 240 // do we have a "relocation"? If so, add a reference to the
241 // relocation table 241 // relocation table
242 if (l -> relocoff >= 0) 242 if (l -> relocoff >= 0)
243 { 243 {
244 244 section_reloc_list_t *re;
245
246 // build the relocation reference for the linker
247 re = lwasm_alloc(sizeof(section_reloc_list_t));
248 re -> next = l -> sect -> rl;
249 l -> sect -> rl = re;
250
251 re -> offset = l -> codeaddr + l -> relocoff;
252 re -> expr = l -> exprs[0];
245 } 253 }
246 } 254 }
247 } 255 }
248 } 256 }