Lines Matching refs:package
322 uint8_t* package, in apploader_relocate_package() argument
335 memmove(package, pkg_meta->elf_start, unaligned_elf_size); in apploader_relocate_package()
336 pkg_meta->elf_start = package; in apploader_relocate_package()
344 memset(package + unaligned_elf_size, 0, in apploader_relocate_package()
353 uint8_t* new_manifest_start = package + pkg_meta->elf_size; in apploader_relocate_package()
386 uint8_t* package; in apploader_handle_cmd_load_app() local
388 &package); in apploader_handle_cmd_load_app()
396 if (!apploader_parse_package_metadata(package, req->package_size, in apploader_handle_cmd_load_app()
458 if (!apploader_relocate_package(package, &pkg_meta)) { in apploader_handle_cmd_load_app()
481 ptrdiff_t elf_offset = pkg_meta.elf_start - package; in apploader_handle_cmd_load_app()
482 ptrdiff_t manifest_offset = pkg_meta.manifest_start - package; in apploader_handle_cmd_load_app()
483 munmap(package, aligned_size); in apploader_handle_cmd_load_app()
484 package = NULL; in apploader_handle_cmd_load_app()
504 if (package) { in apploader_handle_cmd_load_app()
505 munmap(package, aligned_size); in apploader_handle_cmd_load_app()