Fixed bad printing of missing symbol when applying R_386_TLS_DTPOFF32 or R_386_JMP_SLOT relocation

This commit is contained in:
ptitSeb committed 2019-03-02 15:58:24 +01:00
1 parent 3dd188dedd
commit 94de344d05
1 file changed
+2 -2
+2 -2
View File
@@ -206,7 +206,7 @@ int RelocateElfREL(lib_t *maplib, elfheader_t* head, int cnt, Elf32_Rel *rel)
case R_386_TLS_DTPOFF32:
case R_386_JMP_SLOT:
if (!offs) {
printf_log(LOG_NONE, "Error: Symbol %s not found, cannot apply %s @%p (%p)\n", (t==R_386_JMP_SLOT)?"R_386_JMP_SLOT":"R_386_TLS_DTPOFF32", symname, p, *(void**)p);
printf_log(LOG_NONE, "Error: Symbol %s not found, cannot apply %s @%p (%p)\n", symname, (t==R_386_JMP_SLOT)?"R_386_JMP_SLOT":"R_386_TLS_DTPOFF32", p, *(void**)p);
// return -1;
} else {
if(p) {
@@ -567,6 +567,6 @@ const char* FindNearestSymbolName(elfheader_t* h, void* p, uintptr_t* start, uin
*start = s;
if(sz)
*sz = size;
return ret;
}