Skip to content
Snippets Groups Projects
Commit b02bbf43 authored by John Hodge's avatar John Hodge
Browse files

Usermode/ld-acess - COPY relocation (no clue what it should do, but this works)

parent b68b7642
Branches
Tags
No related merge requests found
...@@ -203,6 +203,8 @@ void *Elf64Relocate(void *Base, char **envp, const char *Filename) ...@@ -203,6 +203,8 @@ void *Elf64Relocate(void *Base, char **envp, const char *Filename)
case R_X86_64_64: case R_X86_64_64:
*(uint64_t*)ptr = (uint64_t)GetSymbol(symname) + addend; *(uint64_t*)ptr = (uint64_t)GetSymbol(symname) + addend;
break; break;
case R_X86_64_COPY:
break;
case R_X86_64_GLOB_DAT: case R_X86_64_GLOB_DAT:
*(uint64_t*)ptr = (uint64_t)GetSymbol(symname); *(uint64_t*)ptr = (uint64_t)GetSymbol(symname);
break; break;
......
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