about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-03 17:32:24 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-03 17:32:24 +0100
commitbe17349a5d8e2ea323a793384b43653e3e9c22a6 (patch)
tree4b856b728da01c04f6d822887a2ce1e602730b1f /src/main.c
parent9aabe9c97fecb77f70361e0e0df8380f1489fc81 (diff)
downloadbox64-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-xsrc/main.c7
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;
 }