Process a loaded image found via the link map, either the main program or some shared library. The specified libraryFileName is the name of the file containing the image. The specified programHeaders is a pointer to an array of elf program headers and the specified numProgramHeaders is its length, it is a void * because the type ElfProgramHeader is local to the implementation file. Specify one of textSegPtr and baseAddress, and the other as 0, this method will infer the one specified as 0 from the other. Specify isMainExecutable, indicating whether the image is the main executable. Return 0 on success and a non-zero value otherwise. Note that this method is not to be called by external users of this component, it is only public so a static routine in the implementation file can call it. Also note that if isMainExecutable is set, libraryFileName is ignored and the argv[0] the program was called with is used in its place.
Declared in <balst_resolverimpl_elf.h>
int
processLoadedImage(
char const* libraryFileName,
void const* programHeaders,
int numProgramHeaders,
void* textSegPtr,
void* baseAddress,
bool isMainExecutable);