Lines Matching refs:sect
123 zend_elf_sectheader sect[GDBJIT_SECT__MAX]; member
169 .shofs = offsetof(zend_gdbjit_obj, sect),
226 zend_elf_sectheader *sect; in zend_gdbjit_secthdr() local
231 sect = &ctx->obj.sect[GDBJIT_SECT_##id]; \ in zend_gdbjit_secthdr()
232 sect->name = zend_gdbjit_strz(ctx, "." #id); \ in zend_gdbjit_secthdr()
233 sect->type = ELFSECT_TYPE_##tp; \ in zend_gdbjit_secthdr()
234 sect->align = (al) in zend_gdbjit_secthdr()
237 sect->flags = ELFSECT_FLAGS_ALLOC|ELFSECT_FLAGS_EXEC; in zend_gdbjit_secthdr()
238 sect->addr = ctx->mcaddr; in zend_gdbjit_secthdr()
239 sect->ofs = 0; in zend_gdbjit_secthdr()
240 sect->size = ctx->szmcode; in zend_gdbjit_secthdr()
243 sect->flags = ELFSECT_FLAGS_ALLOC; in zend_gdbjit_secthdr()
249 sect->ofs = offsetof(zend_gdbjit_obj, sym); in zend_gdbjit_secthdr()
250 sect->size = sizeof(ctx->obj.sym); in zend_gdbjit_secthdr()
251 sect->link = GDBJIT_SECT_strtab; in zend_gdbjit_secthdr()
252 sect->entsize = sizeof(zend_elf_symbol); in zend_gdbjit_secthdr()
253 sect->info = GDBJIT_SYM_FUNC; in zend_gdbjit_secthdr()
429 static void zend_gdbjit_initsect(zend_gdbjit_ctx *ctx, int sect, zend_gdbjit_initf initf) in zend_gdbjit_initsect() argument
432 ctx->obj.sect[sect].ofs = (uintptr_t)((char *)ctx->p - (char *)&ctx->obj); in zend_gdbjit_initsect()
434 ctx->obj.sect[sect].size = (uintptr_t)(ctx->p - ctx->startp); in zend_gdbjit_initsect()
443 memset(&obj->sect, 0, sizeof(zend_elf_sectheader) * GDBJIT_SECT__MAX); in zend_gdbjit_buildobj()