diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-03 17:32:24 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-03 17:32:24 +0100 |
| commit | be17349a5d8e2ea323a793384b43653e3e9c22a6 (patch) | |
| tree | 4b856b728da01c04f6d822887a2ce1e602730b1f /src/main.c | |
| parent | 9aabe9c97fecb77f70361e0e0df8380f1489fc81 (diff) | |
| download | box64-be17349a5d8e2ea323a793384b43653e3e9c22a6.tar.gz box64-be17349a5d8e2ea323a793384b43653e3e9c22a6.zip | |
Added some X86_64 RelocA and a few wrapped function (wrapper still not correct anyway)
Diffstat (limited to 'src/main.c')
| -rwxr-xr-x | src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index b67b9789..8495aca5 100755 --- a/src/main.c +++ b/src/main.c @@ -864,6 +864,13 @@ int main(int argc, const char **argv, const char **env) { FreeBox64Context(&my_context); return -1; } + // reloc... + printf_log(LOG_DEBUG, "And now export symbols / relocation for %s...\n", ElfName(elf_header)); + if(RelocateElf(my_context->maplib, NULL, elf_header)) { + printf_log(LOG_NONE, "Error: relocating symbols in elf %s\n", my_context->argv[0]); + FreeBox64Context(&my_context); + return -1; + } return 0; } |