Lines Matching refs:sect
242 struct SectInfo *sect; in finalizeAndWrite() local
260 app.sect = bin->sect; in finalizeAndWrite()
262 sect = &app.sect; in finalizeAndWrite()
267 size_t gotSz = sect->got_end - sect->data_start; in finalizeAndWrite()
268 size_t bssSz = sect->bss_end - sect->bss_start; in finalizeAndWrite()
364 flashDataOffset = app->bin->sect.data_data - FLASH_BASE; in fixupReloc()
408 struct SectInfo *sect; in handleApp() local
429 sect = &bin->sect; in handleApp()
432 …if (!IS_IN_FLASH(sect->rel_start) || !IS_IN_FLASH(sect->rel_end) || !IS_IN_FLASH(sect->data_data))… in handleApp()
436 if (!IS_IN_RAM(sect->data_start) || !IS_IN_RAM(sect->data_end) || !IS_IN_RAM(sect->bss_start) || in handleApp()
437 !IS_IN_RAM(sect->bss_end) || !IS_IN_RAM(sect->got_start) || !IS_IN_RAM(sect->got_end)) { in handleApp()
443 app.reloc = (struct RelocEntry*)(buf + sect->rel_start - FLASH_BASE); in handleApp()
444 app.symtab = (struct SymtabEntry*)(buf + sect->rel_end - FLASH_BASE); in handleApp()
445 app.relocSize = (sect->rel_end - sect->rel_start) / sizeof(struct RelocEntry); in handleApp()
451 app.codeAndRoDataSize = sect->data_data - FLASH_BASE - sizeof(*bin); in handleApp()
452 app.codeAndDataSize = sect->rel_start - FLASH_BASE - sizeof(*bin); in handleApp()
458 if (app.relocSize * sizeof(struct RelocEntry) + sect->rel_start != sect->rel_end) { in handleApp()
462 if (app.symtabSize * sizeof(struct SymtabEntry) + sect->rel_end != bufUsed + FLASH_BASE) { in handleApp()
494 if (IS_IN_RANGE_E(reloc->where, sect->bss_start, sect->bss_end)) in handleApp()
496 else if (IS_IN_RANGE_E(reloc->where, sect->data_start, sect->data_end)) in handleApp()
498 else if (IS_IN_RANGE_E(reloc->where, sect->got_start, sect->got_end)) in handleApp()
551 sect->rel_end = sect->rel_start + app.packedNanoRelocSize; in handleApp()
554 sect->data_start -= RAM_BASE; in handleApp()
555 sect->data_end -= RAM_BASE; in handleApp()
556 sect->bss_start -= RAM_BASE; in handleApp()
557 sect->bss_end -= RAM_BASE; in handleApp()
558 sect->got_start -= RAM_BASE; in handleApp()
559 sect->got_end -= RAM_BASE; in handleApp()
562 sect->data_data -= FLASH_BASE + BINARY_RELOC_OFFSET; in handleApp()
563 sect->rel_start -= FLASH_BASE + BINARY_RELOC_OFFSET; in handleApp()
564 sect->rel_end -= FLASH_BASE + BINARY_RELOC_OFFSET; in handleApp()