Lines Matching refs:elf32
329 assert (offsetof (struct Elf, state.elf32.scns) in file_read_elf()
331 elf->state.elf32.scns.cnt = scncnt; in file_read_elf()
332 elf->state.elf32.scns.max = scnmax; in file_read_elf()
352 elf->state.elf32.ehdr = ehdr; in file_read_elf()
357 elf->state.elf32.ehdr = memcpy (&elf->state.elf32.ehdr_mem, e_ident, in file_read_elf()
362 CONVERT (elf->state.elf32.ehdr_mem.e_type); in file_read_elf()
363 CONVERT (elf->state.elf32.ehdr_mem.e_machine); in file_read_elf()
364 CONVERT (elf->state.elf32.ehdr_mem.e_version); in file_read_elf()
365 CONVERT (elf->state.elf32.ehdr_mem.e_entry); in file_read_elf()
366 CONVERT (elf->state.elf32.ehdr_mem.e_phoff); in file_read_elf()
367 CONVERT (elf->state.elf32.ehdr_mem.e_shoff); in file_read_elf()
368 CONVERT (elf->state.elf32.ehdr_mem.e_flags); in file_read_elf()
369 CONVERT (elf->state.elf32.ehdr_mem.e_ehsize); in file_read_elf()
370 CONVERT (elf->state.elf32.ehdr_mem.e_phentsize); in file_read_elf()
371 CONVERT (elf->state.elf32.ehdr_mem.e_phnum); in file_read_elf()
372 CONVERT (elf->state.elf32.ehdr_mem.e_shentsize); in file_read_elf()
373 CONVERT (elf->state.elf32.ehdr_mem.e_shnum); in file_read_elf()
374 CONVERT (elf->state.elf32.ehdr_mem.e_shstrndx); in file_read_elf()
381 Elf32_Off e_shoff = elf->state.elf32.ehdr->e_shoff; in file_read_elf()
399 elf->state.elf32.shdr in file_read_elf()
404 elf->state.elf32.scns.data[cnt].index = cnt; in file_read_elf()
405 elf->state.elf32.scns.data[cnt].elf = elf; in file_read_elf()
406 elf->state.elf32.scns.data[cnt].shdr.e32 = in file_read_elf()
407 &elf->state.elf32.shdr[cnt]; in file_read_elf()
408 if (likely (elf->state.elf32.shdr[cnt].sh_offset < maxsize) in file_read_elf()
409 && likely (elf->state.elf32.shdr[cnt].sh_size in file_read_elf()
410 <= maxsize - elf->state.elf32.shdr[cnt].sh_offset)) in file_read_elf()
411 elf->state.elf32.scns.data[cnt].rawdata_base = in file_read_elf()
412 elf->state.elf32.scns.data[cnt].data_base = in file_read_elf()
414 + elf->state.elf32.shdr[cnt].sh_offset); in file_read_elf()
415 elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns; in file_read_elf()
420 if (elf->state.elf32.shdr[cnt].sh_type == SHT_SYMTAB_SHNDX in file_read_elf()
421 && elf->state.elf32.shdr[cnt].sh_link < scncnt) in file_read_elf()
422 elf->state.elf32.scns.data[elf->state.elf32.shdr[cnt].sh_link].shndx_index in file_read_elf()
427 if (elf->state.elf32.scns.data[cnt].shndx_index == 0) in file_read_elf()
428 elf->state.elf32.scns.data[cnt].shndx_index = -1; in file_read_elf()
435 elf->state.elf32.scns.data[cnt].index = cnt; in file_read_elf()
436 elf->state.elf32.scns.data[cnt].elf = elf; in file_read_elf()
437 elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns; in file_read_elf()
442 elf->state.elf32.scns_last = &elf->state.elf32.scns; in file_read_elf()
1124 assert (offsetof (struct Elf, state.elf32.scns) in write_file()
1126 result->state.elf.scns_last = &result->state.elf32.scns; in write_file()
1127 result->state.elf32.scns.max = NSCNSALLOC; in write_file()