FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_relocate Namespace Reference

Binary relocation and extraction utilities. More...

Functions

Value< void > relocate (char **argv, int32_t offset)
 Calls the implementation of relocate.
 

Detailed Description

Binary relocation and extraction utilities.

Handles copying and executing the FlatImage binary from the embedded image to temporary storage. This relocation is necessary to free the main flatimage file for mounting filesystems. Extracts embedded binaries (bash, janitor, portal components, busybox, etc.)

Function Documentation

◆ relocate()

Value< void > ns_relocate::relocate ( char ** argv,
int32_t offset )
inlinenodiscard

Calls the implementation of relocate.

Parameters
argvArgument vector passed to the main program
offsetOffset to the reserved space, past the elf and appended binaries
Returns
Nothing on success, or the respective error

Definition at line 244 of file relocate.hpp.

Here is the call graph for this function:
Here is the caller graph for this function: