mirror of
https://github.com/ptitSeb/box86.git
synced 2026-11-09 17:43:18 -10:00
Fixed bad printing of missing symbol when applying R_386_TLS_DTPOFF32 or R_386_JMP_SLOT relocation
This commit is contained in:
1 parent
3dd188dedd
commit
94de344d05
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user