[#BloombergLP-balst-ResolverImpl-0e-processLoadedImage]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/ResolverImpl-0e.adoc[ResolverImpl&lt;ObjectFileFormat::Elf&gt;]::processLoadedImage
:relfileprefix: ../../../
:mrdocs:

Process a loaded image found via the link map, either the main program or some shared library&period; The specified `libraryFileName` is the name of the file containing the image&period; The specified `programHeaders` is a pointer to an array of elf program headers and the specified `numProgramHeaders` is its length, it is a `void &ast;` because the type `ElfProgramHeader` is local to the implementation file&period; Specify one of `textSegPtr` and `baseAddress`, and the other as 0, this method will infer the one specified as 0 from the other&period; Specify `isMainExecutable`, indicating whether the image is the main executable&period; Return 0 on success and a non&hyphen;zero value otherwise&period; 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&period; Also note that if `isMainExecutable` is set, `libraryFileName` is ignored and the `argv&lsqb;0&rsqb;` the program was called with is used in its place&period;

== Synopsis

Declared in `&lt;balst&lowbar;resolverimpl&lowbar;elf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
processLoadedImage(
    char const* libraryFileName,
    void const* programHeaders,
    int numProgramHeaders,
    void* textSegPtr,
    void* baseAddress,
    bool isMainExecutable);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
