Lines Matching refs:contents_size
213 size_t contents_size = 0; in elf_from_remote_memory() local
236 if (segment_end > (GElf_Off) contents_size) in elf_from_remote_memory()
237 contents_size = segment_end; in elf_from_remote_memory()
281 if ((GElf_Off) contents_size > segments_end in elf_from_remote_memory()
282 && (GElf_Off) contents_size >= shdrs_end in elf_from_remote_memory()
285 contents_size = segments_end; in elf_from_remote_memory()
286 if ((GElf_Off) contents_size < shdrs_end) in elf_from_remote_memory()
287 contents_size = shdrs_end; in elf_from_remote_memory()
290 contents_size = segments_end; in elf_from_remote_memory()
295 buffer = calloc (1, contents_size); in elf_from_remote_memory()
311 if (end > (GElf_Off) contents_size) in elf_from_remote_memory()
312 end = contents_size; in elf_from_remote_memory()
328 if (contents_size < shdrs_end) in elf_from_remote_memory()
355 if (contents_size < shdrs_end) in elf_from_remote_memory()
383 Elf *elf = elf_memory ((char *) buffer, contents_size); in elf_from_remote_memory()