diff options
Diffstat (limited to 'Kernel/ELFLoader.cpp')
-rw-r--r-- | Kernel/ELFLoader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/ELFLoader.cpp b/Kernel/ELFLoader.cpp index 35e11f0768..50d477df17 100644 --- a/Kernel/ELFLoader.cpp +++ b/Kernel/ELFLoader.cpp @@ -142,7 +142,7 @@ bool ELFLoader::perform_relocations() failed = true; return false; } - ptrdiff_t relativeOffset = (char*)target_ptr - ((char*)&patch_ptr + 4); + ptrdiff_t relative_offset = (char*)target_ptr - ((char*)&patch_ptr + 4); #ifdef ELFLOADER_DEBUG kprintf("ELFLoader: Relocate PC32: offset=%x, symbol=%u(%s) value=%x target=%p, offset=%d\n", relocation.offset(), @@ -150,10 +150,10 @@ bool ELFLoader::perform_relocations() symbol.name(), symbol.value(), target_ptr, - relativeOffset + relative_offset ); #endif - patch_ptr = relativeOffset; + patch_ptr = relative_offset; break; } case R_386_32: { |