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()
316 elf->state.elf32.ehdr = ehdr; in file_read_elf()
327 elf->state.elf32.shdr in file_read_elf()
335 elf->state.elf32.scns.data[cnt].index = cnt; in file_read_elf()
336 elf->state.elf32.scns.data[cnt].elf = elf; in file_read_elf()
337 elf->state.elf32.scns.data[cnt].shdr.e32 = in file_read_elf()
338 &elf->state.elf32.shdr[cnt]; in file_read_elf()
339 if (likely (elf->state.elf32.shdr[cnt].sh_offset < maxsize) in file_read_elf()
340 && likely (elf->state.elf32.shdr[cnt].sh_size in file_read_elf()
341 <= maxsize - elf->state.elf32.shdr[cnt].sh_offset)) in file_read_elf()
342 elf->state.elf32.scns.data[cnt].rawdata_base = in file_read_elf()
343 elf->state.elf32.scns.data[cnt].data_base = in file_read_elf()
345 + elf->state.elf32.shdr[cnt].sh_offset); in file_read_elf()
346 elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns; in file_read_elf()
351 if (elf->state.elf32.shdr[cnt].sh_type == SHT_SYMTAB_SHNDX in file_read_elf()
352 && elf->state.elf32.shdr[cnt].sh_link < scncnt) in file_read_elf()
353 elf->state.elf32.scns.data[elf->state.elf32.shdr[cnt].sh_link].shndx_index in file_read_elf()
358 if (elf->state.elf32.scns.data[cnt].shndx_index == 0) in file_read_elf()
359 elf->state.elf32.scns.data[cnt].shndx_index = -1; in file_read_elf()
365 elf->state.elf32.ehdr = memcpy (&elf->state.elf32.ehdr_mem, e_ident, in file_read_elf()
370 CONVERT (elf->state.elf32.ehdr_mem.e_type); in file_read_elf()
371 CONVERT (elf->state.elf32.ehdr_mem.e_machine); in file_read_elf()
372 CONVERT (elf->state.elf32.ehdr_mem.e_version); in file_read_elf()
373 CONVERT (elf->state.elf32.ehdr_mem.e_entry); in file_read_elf()
374 CONVERT (elf->state.elf32.ehdr_mem.e_phoff); in file_read_elf()
375 CONVERT (elf->state.elf32.ehdr_mem.e_shoff); in file_read_elf()
376 CONVERT (elf->state.elf32.ehdr_mem.e_flags); in file_read_elf()
377 CONVERT (elf->state.elf32.ehdr_mem.e_ehsize); in file_read_elf()
378 CONVERT (elf->state.elf32.ehdr_mem.e_phentsize); in file_read_elf()
379 CONVERT (elf->state.elf32.ehdr_mem.e_phnum); in file_read_elf()
380 CONVERT (elf->state.elf32.ehdr_mem.e_shentsize); in file_read_elf()
381 CONVERT (elf->state.elf32.ehdr_mem.e_shnum); in file_read_elf()
382 CONVERT (elf->state.elf32.ehdr_mem.e_shstrndx); in file_read_elf()
387 elf->state.elf32.scns.data[cnt].index = cnt; in file_read_elf()
388 elf->state.elf32.scns.data[cnt].elf = elf; in file_read_elf()
389 elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns; in file_read_elf()
394 elf->state.elf32.scns_last = &elf->state.elf32.scns; in file_read_elf()
1020 assert (offsetof (struct Elf, state.elf32.scns) in write_file()
1022 result->state.elf.scns_last = &result->state.elf32.scns; in write_file()
1023 result->state.elf32.scns.max = NSCNSALLOC; in write_file()