Home | History | Annotate | Download | only in perf

Lines Matching defs:file_offset

19219     int shnum, i, phnum, file_offset, offset, size, j, tmp, sh_order_index, k;
19464 file_offset = sizeof(Elf32_Ehdr) + phnum * sizeof(Elf32_Phdr);
19466 file_offset = 0;
19473 /* we ensure that (addr % ELF_PAGE_SIZE) == file_offset %
19476 p_offset = file_offset & (ELF_PAGE_SIZE - 1);
19479 file_offset += (a_offset - p_offset);
19486 addr += (file_offset & (ELF_PAGE_SIZE - 1));
19546 file_offset += addr - tmp;
19547 s->sh_offset = file_offset;
19552 ph->p_offset = file_offset;
19564 file_offset += s->sh_size;
19567 ph->p_filesz = file_offset - ph->p_offset;
19578 file_offset = (file_offset + ELF_PAGE_SIZE - 1) &
19688 file_offset = (file_offset + s->sh_addralign - 1) &
19690 s->sh_offset = file_offset;
19692 file_offset += s->sh_size;
19752 file_offset = (file_offset + 3) & -4;
19782 ehdr.e_shoff = file_offset;
19844 static void *load_data(int fd, unsigned long file_offset, unsigned long size)
19849 lseek(fd, file_offset, SEEK_SET);
19864 int fd, unsigned long file_offset)
19895 shdr = load_data(fd, file_offset + ehdr.e_shoff,
19901 strsec = load_data(fd, file_offset + sh->sh_offset, sh->sh_size);
19918 symtab = load_data(fd, file_offset + sh->sh_offset, sh->sh_size);
19923 strtab = load_data(fd, file_offset + sh->sh_offset, sh->sh_size);
19985 lseek(fd, file_offset + sh->sh_offset, SEEK_SET);
20166 unsigned long file_offset;
20189 file_offset = lseek(fd, 0, SEEK_CUR);
20202 if (tcc_load_object_file(s1, fd, file_offset) < 0)
20205 lseek(fd, file_offset + size, SEEK_SET);