Lines Matching refs:elf32
289 assert (offsetof (struct Elf, state.elf32.scns) in file_read_elf()
291 elf->state.elf32.scns.cnt = scncnt; in file_read_elf()
292 elf->state.elf32.scns.max = scnmax; in file_read_elf()
312 elf->state.elf32.ehdr = ehdr; in file_read_elf()
317 elf->state.elf32.ehdr = memcpy (&elf->state.elf32.ehdr_mem, e_ident, in file_read_elf()
322 CONVERT (elf->state.elf32.ehdr_mem.e_type); in file_read_elf()
323 CONVERT (elf->state.elf32.ehdr_mem.e_machine); in file_read_elf()
324 CONVERT (elf->state.elf32.ehdr_mem.e_version); in file_read_elf()
325 CONVERT (elf->state.elf32.ehdr_mem.e_entry); in file_read_elf()
326 CONVERT (elf->state.elf32.ehdr_mem.e_phoff); in file_read_elf()
327 CONVERT (elf->state.elf32.ehdr_mem.e_shoff); in file_read_elf()
328 CONVERT (elf->state.elf32.ehdr_mem.e_flags); in file_read_elf()
329 CONVERT (elf->state.elf32.ehdr_mem.e_ehsize); in file_read_elf()
330 CONVERT (elf->state.elf32.ehdr_mem.e_phentsize); in file_read_elf()
331 CONVERT (elf->state.elf32.ehdr_mem.e_phnum); in file_read_elf()
332 CONVERT (elf->state.elf32.ehdr_mem.e_shentsize); in file_read_elf()
333 CONVERT (elf->state.elf32.ehdr_mem.e_shnum); in file_read_elf()
334 CONVERT (elf->state.elf32.ehdr_mem.e_shstrndx); in file_read_elf()
341 Elf32_Off e_shoff = elf->state.elf32.ehdr->e_shoff; in file_read_elf()
357 elf->state.elf32.shdr in file_read_elf()
362 elf->state.elf32.scns.data[cnt].index = cnt; in file_read_elf()
363 elf->state.elf32.scns.data[cnt].elf = elf; in file_read_elf()
364 elf->state.elf32.scns.data[cnt].shdr.e32 = in file_read_elf()
365 &elf->state.elf32.shdr[cnt]; in file_read_elf()
366 if (likely (elf->state.elf32.shdr[cnt].sh_offset < maxsize) in file_read_elf()
367 && likely (elf->state.elf32.shdr[cnt].sh_size in file_read_elf()
368 <= maxsize - elf->state.elf32.shdr[cnt].sh_offset)) in file_read_elf()
369 elf->state.elf32.scns.data[cnt].rawdata_base = in file_read_elf()
370 elf->state.elf32.scns.data[cnt].data_base = in file_read_elf()
372 + elf->state.elf32.shdr[cnt].sh_offset); in file_read_elf()
373 elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns; in file_read_elf()
378 if (elf->state.elf32.shdr[cnt].sh_type == SHT_SYMTAB_SHNDX in file_read_elf()
379 && elf->state.elf32.shdr[cnt].sh_link < scncnt) in file_read_elf()
380 elf->state.elf32.scns.data[elf->state.elf32.shdr[cnt].sh_link].shndx_index in file_read_elf()
385 if (elf->state.elf32.scns.data[cnt].shndx_index == 0) in file_read_elf()
386 elf->state.elf32.scns.data[cnt].shndx_index = -1; in file_read_elf()
393 elf->state.elf32.scns.data[cnt].index = cnt; in file_read_elf()
394 elf->state.elf32.scns.data[cnt].elf = elf; in file_read_elf()
395 elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns; in file_read_elf()
400 elf->state.elf32.scns_last = &elf->state.elf32.scns; in file_read_elf()
1035 assert (offsetof (struct Elf, state.elf32.scns) in write_file()
1037 result->state.elf.scns_last = &result->state.elf32.scns; in write_file()
1038 result->state.elf32.scns.max = NSCNSALLOC; in write_file()