Skip to content

Commit c8c8eaa

Browse files
try to fix musl
1 parent 63a00ed commit c8c8eaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

driver/euicc-driver-loader.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ static char *get_runpath() {
148148
} else if (dyn->d_tag == DT_RUNPATH) {
149149
runpath = dyn;
150150
} else if (dyn->d_tag == DT_STRTAB) {
151-
strtab = (const char *)dyn->d_un.d_ptr;
151+
strtab = (const char *)dyn->d_un.d_val;
152152
}
153153
}
154154
if (runpath != NULL && strtab != NULL) {
155-
return strdup(strtab + runpath->d_un.d_val);
155+
return strdup(linkmap->l_addr + strtab + runpath->d_un.d_val);
156156
} else {
157157
return NULL;
158158
}

0 commit comments

Comments
 (0)