• Home
  • Raw
  • Download

Lines Matching refs:sect

102     struct SectInfo *sect;  in handleApp()  local
125 sect = &bin->sect; in handleApp()
128 relocs = (struct RelocEntry*)(buf + sect->rel_start - FLASH_BASE); in handleApp()
129 syms = (struct SymtabEntry*)(buf + sect->rel_end - FLASH_BASE); in handleApp()
130 numRelocs = (sect->rel_end - sect->rel_start) / sizeof(struct RelocEntry); in handleApp()
131 numSyms = (bufUsed + FLASH_BASE - sect->rel_end) / sizeof(struct SymtabEntry); in handleApp()
134 if (numRelocs * sizeof(struct RelocEntry) + sect->rel_start != sect->rel_end) { in handleApp()
138 if (numSyms * sizeof(struct SymtabEntry) + sect->rel_end != bufUsed + FLASH_BASE) { in handleApp()
177 if (IS_IN_RANGE_E(relocs[i].where, sect->bss_start, sect->bss_end)) in handleApp()
179 else if (IS_IN_RANGE_E(relocs[i].where, sect->data_start, sect->data_end)) in handleApp()
181 else if (IS_IN_RANGE_E(relocs[i].where, sect->got_start, sect->got_end)) in handleApp()
233 valThereP = (uint32_t*)(buf + relocs[i].where + sect->data_data - RAM_BASE - FLASH_BASE); in handleApp()
399 sect->rel_end = sect->rel_start + packedNanoRelocSz; in handleApp()
402 if (sect->rel_end - FLASH_BASE != bufUsed) { in handleApp()
408 if (!IS_IN_RAM(sect->data_start) || !IS_IN_RAM(sect->data_end) || !IS_IN_RAM(sect->bss_start) || in handleApp()
409 !IS_IN_RAM(sect->bss_end) || !IS_IN_RAM(sect->got_start) || !IS_IN_RAM(sect->got_end)) { in handleApp()
413 sect->data_start -= RAM_BASE; in handleApp()
414 sect->data_end -= RAM_BASE; in handleApp()
415 sect->bss_start -= RAM_BASE; in handleApp()
416 sect->bss_end -= RAM_BASE; in handleApp()
417 sect->got_start -= RAM_BASE; in handleApp()
418 sect->got_end -= RAM_BASE; in handleApp()
421 …if (!IS_IN_FLASH(sect->data_data) || !IS_IN_FLASH(sect->rel_start) || !IS_IN_FLASH(sect->rel_end))… in handleApp()
425 sect->data_data -= FLASH_BASE + BINARY_RELOC_OFFSET; in handleApp()
426 sect->rel_start -= FLASH_BASE + BINARY_RELOC_OFFSET; in handleApp()
427 sect->rel_end -= FLASH_BASE + BINARY_RELOC_OFFSET; in handleApp()
446 app.sect = bin->sect; in handleApp()
455 sect = &app.sect; in handleApp()
459 uint32_t codeAndRoDataSz = sect->data_data; in handleApp()
460 uint32_t relocsSz = sect->rel_end - sect->rel_start; in handleApp()
461 uint32_t gotSz = sect->got_end - sect->data_start; in handleApp()
462 uint32_t bssSz = sect->bss_end - sect->bss_start; in handleApp()