Searched refs:textpos (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/fs/ |
H A D | binfmt_flat.c | 537 if (!textpos || IS_ERR_VALUE(textpos)) { in load_flat_file() 538 ret = textpos; in load_flat_file() 539 if (!textpos) in load_flat_file() 557 vm_munmap(textpos, text_len); in load_flat_file() 581 vm_munmap(textpos, text_len); in load_flat_file() 595 textpos = vm_mmap(NULL, 0, len, in load_flat_file() 598 if (!textpos || IS_ERR_VALUE(textpos)) { in load_flat_file() 599 ret = textpos; in load_flat_file() 600 if (!textpos) in load_flat_file() 614 memp = textpos; in load_flat_file() [all …]
|
/openbmc/qemu/linux-user/ |
H A D | flatload.c | 196 abi_ulong textpos = 0, datapos = 0; in load_flat_file() local 277 textpos = target_mmap(0, text_len, PROT_READ|PROT_EXEC, in load_flat_file() 279 if (textpos == -1) { in load_flat_file() 313 if (textpos == -1 ) { in load_flat_file() 318 realdatastart = textpos + ntohl(hdr->data_start); in load_flat_file() 320 reloc = (textpos + ntohl(hdr->reloc_start) + indx_len); in load_flat_file() 322 result = target_pread(bprm->src.fd, textpos, in load_flat_file() 336 (int)textpos, 0x00ffffff&ntohl(hdr->entry), in load_flat_file() 340 start_code = textpos + sizeof (struct flat_hdr); in load_flat_file() 344 (int) start_code, (int) (textpos + text_len), in load_flat_file() [all …]
|