Skip to content

Commit 4bd5a01

Browse files
committed
Documented a helper function
1 parent 9f0fb18 commit 4bd5a01

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/dlMapper/elf/dlMapper.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ static inline pair_address_t dlMapper_platform_loadELF(const void* baseAddress)
117117
return (pair_address_t) { NULL, NULL };
118118
}
119119

120+
/**
121+
* Loads the address the given runtime image can be found at.
122+
*
123+
* @param info the runtime image info
124+
* @return the address the runtime image starts at
125+
*/
120126
static inline void* dlMapper_platform_loadELFLoadedAddress(struct dl_phdr_info* info) {
121127
for (unsigned i = 0; i < info->dlpi_phnum; ++i) {
122128
if (info->dlpi_phdr[i].p_type == PT_LOAD) {

0 commit comments

Comments
 (0)