Lines Matching refs:ofs
62 int ofs; /* Byte offset into section. */ member
151 D->sections[i].ofs = 0; in dasm_setup()
223 int pos = sec->pos, ofs = sec->ofs; in dasm_put() local
241 ofs += 4; in dasm_put()
249 case DASM_ESC: p++; ofs += 4; break; in dasm_put()
251 case DASM_ALIGN: ofs += (ins & 255); b[pos++] = ofs; break; in dasm_put()
281 b[pos++] = ofs; /* Store pass1 offset estimate. */ in dasm_put()
328 sec->ofs = ofs; in dasm_put()
337 int ofs = 0; in dasm_link() local
374 case DASM_ALIGN: ofs -= (b[pos++] + ofs) & (ins & 255); break; in dasm_link()
376 case DASM_LABEL_LG: case DASM_LABEL_PC: b[pos++] += ofs; break; in dasm_link()
384 ofs += sec->ofs; /* Next section starts right after current section. */ in dasm_link()
387 D->codesize = ofs; /* Total size of all code sections */ in dasm_link()
388 *szp = ofs; in dasm_link()