Lines Matching refs:elf32
317 assert (offsetof (struct Elf, state.elf32.scns) in file_read_elf()
319 elf->state.elf32.scns.cnt = scncnt; in file_read_elf()
320 elf->state.elf32.scns.max = scnmax; in file_read_elf()
340 elf->state.elf32.ehdr = ehdr; in file_read_elf()
345 elf->state.elf32.ehdr = memcpy (&elf->state.elf32.ehdr_mem, e_ident, in file_read_elf()
350 CONVERT (elf->state.elf32.ehdr_mem.e_type); in file_read_elf()
351 CONVERT (elf->state.elf32.ehdr_mem.e_machine); in file_read_elf()
352 CONVERT (elf->state.elf32.ehdr_mem.e_version); in file_read_elf()
353 CONVERT (elf->state.elf32.ehdr_mem.e_entry); in file_read_elf()
354 CONVERT (elf->state.elf32.ehdr_mem.e_phoff); in file_read_elf()
355 CONVERT (elf->state.elf32.ehdr_mem.e_shoff); in file_read_elf()
356 CONVERT (elf->state.elf32.ehdr_mem.e_flags); in file_read_elf()
357 CONVERT (elf->state.elf32.ehdr_mem.e_ehsize); in file_read_elf()
358 CONVERT (elf->state.elf32.ehdr_mem.e_phentsize); in file_read_elf()
359 CONVERT (elf->state.elf32.ehdr_mem.e_phnum); in file_read_elf()
360 CONVERT (elf->state.elf32.ehdr_mem.e_shentsize); in file_read_elf()
361 CONVERT (elf->state.elf32.ehdr_mem.e_shnum); in file_read_elf()
362 CONVERT (elf->state.elf32.ehdr_mem.e_shstrndx); in file_read_elf()
369 Elf32_Off e_shoff = elf->state.elf32.ehdr->e_shoff; in file_read_elf()
385 elf->state.elf32.shdr in file_read_elf()
390 elf->state.elf32.scns.data[cnt].index = cnt; in file_read_elf()
391 elf->state.elf32.scns.data[cnt].elf = elf; in file_read_elf()
392 elf->state.elf32.scns.data[cnt].shdr.e32 = in file_read_elf()
393 &elf->state.elf32.shdr[cnt]; in file_read_elf()
394 if (likely (elf->state.elf32.shdr[cnt].sh_offset < maxsize) in file_read_elf()
395 && likely (elf->state.elf32.shdr[cnt].sh_size in file_read_elf()
396 <= maxsize - elf->state.elf32.shdr[cnt].sh_offset)) in file_read_elf()
397 elf->state.elf32.scns.data[cnt].rawdata_base = in file_read_elf()
398 elf->state.elf32.scns.data[cnt].data_base = in file_read_elf()
400 + elf->state.elf32.shdr[cnt].sh_offset); in file_read_elf()
401 elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns; in file_read_elf()
406 if (elf->state.elf32.shdr[cnt].sh_type == SHT_SYMTAB_SHNDX in file_read_elf()
407 && elf->state.elf32.shdr[cnt].sh_link < scncnt) in file_read_elf()
408 elf->state.elf32.scns.data[elf->state.elf32.shdr[cnt].sh_link].shndx_index in file_read_elf()
413 if (elf->state.elf32.scns.data[cnt].shndx_index == 0) in file_read_elf()
414 elf->state.elf32.scns.data[cnt].shndx_index = -1; in file_read_elf()
421 elf->state.elf32.scns.data[cnt].index = cnt; in file_read_elf()
422 elf->state.elf32.scns.data[cnt].elf = elf; in file_read_elf()
423 elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns; in file_read_elf()
428 elf->state.elf32.scns_last = &elf->state.elf32.scns; in file_read_elf()
1082 assert (offsetof (struct Elf, state.elf32.scns) in write_file()
1084 result->state.elf.scns_last = &result->state.elf32.scns; in write_file()
1085 result->state.elf32.scns.max = NSCNSALLOC; in write_file()