Skip to content

Commit fc5a68f

Browse files
committed
Include symbol name in relocation error
1 parent d1f2385 commit fc5a68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flexdll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ static void relocate(resolver f, void *data, reloctbl *tbl, void **jmptbl) {
257257
void* trampoline;
258258
/* trampolines cannot be created for data */
259259
if (VirtualQuery(sym->addr, &info, sizeof(info)) && !(info.Protect & 0xf0)) {
260-
sprintf(error_buffer, "flexdll error: cannot relocate RELOC_REL32%s, target is too far, and not executable: %p %p", reloc_type, (void *)((UINT_PTR) s), (void *) ((UINT_PTR)(INT32) s));
260+
sprintf(error_buffer, "flexdll error: cannot relocate %s via RELOC_REL32%s, target is too far, and not executable: %p %p", ptr->name, reloc_type, (void *)((UINT_PTR) s), (void *) ((UINT_PTR)(INT32) s));
261261
error = 3;
262262
return;
263263
}

0 commit comments

Comments
 (0)