Home | History | Annotate | Download | only in libelf

Lines Matching defs:size

44 write_file (Elf *elf, off_t size, int change_bo, size_t shnum)
56 /* Adjust the size in any case. We do this even if we use `write'.
63 || (size_t) size > elf->maximum_size)
64 && unlikely (ftruncate (elf->fildes, size) != 0))
73 elf->map_address = mmap (NULL, size, PROT_READ | PROT_WRITE,
94 || (size_t) size > elf->maximum_size)
95 && unlikely (posix_fallocate (elf->fildes, 0, size) != 0))
107 size = -1;
116 size = -1;
119 /* Reduce the file size if necessary. */
120 if (size != -1
123 && (size_t) size < elf->maximum_size
124 && unlikely (ftruncate (elf->fildes, size) != 0))
127 size = -1;
133 if (size != -1
139 size = -1;
142 if (size != -1 && elf->parent == NULL)
143 elf->maximum_size = size;
145 return size;
153 off_t size;
179 size = -1;
189 will come right after the ELF header. The count the size of all
191 size = (elf->class == ELFCLASS32
194 if (likely (size != -1)
204 size = -1;
210 size = -1;
213 size = write_file (elf, size, change_bo, shnum);
219 return size;