We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f0fb18 commit 4bd5a01Copy full SHA for 4bd5a01
src/dlMapper/elf/dlMapper.c
@@ -117,6 +117,12 @@ static inline pair_address_t dlMapper_platform_loadELF(const void* baseAddress)
117
return (pair_address_t) { NULL, NULL };
118
}
119
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
+ */
126
static inline void* dlMapper_platform_loadELFLoadedAddress(struct dl_phdr_info* info) {
127
for (unsigned i = 0; i < info->dlpi_phnum; ++i) {
128
if (info->dlpi_phdr[i].p_type == PT_LOAD) {
0 commit comments