Commit e6a10972 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

pie: piegen -- Fix debug messages for relocs on x86-64

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 732aa040
...@@ -416,14 +416,14 @@ int handle_elf(void *mem, size_t size) ...@@ -416,14 +416,14 @@ int handle_elf(void *mem, size_t size)
(unsigned int)place, (long)addend64, (long)value64); (unsigned int)place, (long)addend64, (long)value64);
break; break;
case R_X86_64_PC32: /* Symbol + Addend - Place (4 bytes) */ case R_X86_64_PC32: /* Symbol + Addend - Place (4 bytes) */
pr_debug("\t\t\t\tR_386_PC32 at 0x%-4lx val 0x%x\n", place, value32 + addend32 - (s32)place); pr_debug("\t\t\t\tR_X86_64_PC32 at 0x%-4lx val 0x%x\n", place, value32 + addend32 - (s32)place);
/* /*
* R_X86_64_PC32 are relative, patch them inplace. * R_X86_64_PC32 are relative, patch them inplace.
*/ */
*((s32 *)where) = value32 + addend32 - place; *((s32 *)where) = value32 + addend32 - place;
break; break;
case R_X86_64_PLT32: /* ProcLinkage + Addend - Place (4 bytes) */ case R_X86_64_PLT32: /* ProcLinkage + Addend - Place (4 bytes) */
pr_debug("\t\t\t\tR_386_PLT32 at 0x%-4lx val 0x%x\n", place, value32 + addend32 - (s32)place); pr_debug("\t\t\t\tR_X86_64_PLT32 at 0x%-4lx val 0x%x\n", place, value32 + addend32 - (s32)place);
/* /*
* R_X86_64_PLT32 are relative, patch them inplace. * R_X86_64_PLT32 are relative, patch them inplace.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment