about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/tools/fileutils.c3
-rwxr-xr-xsystem/box64.conf.cmake2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/fileutils.c b/src/tools/fileutils.c
index af6634a0..bab4377c 100755
--- a/src/tools/fileutils.c
+++ b/src/tools/fileutils.c
@@ -79,6 +79,9 @@ int FileIsX64ELF(const char* filename)
         return 0;
     }
     head[7] = x64lib[7];   // this one changes
+    head[8] = x64lib[8];   // AppImage customized this
+    head[9] = x64lib[9];   // and this one too
+    head[10] = x64lib[10];   // and that last one too
     head[16]&=0xfe;
     if(!memcmp(head, x64lib, 20))
         return 1;
diff --git a/system/box64.conf.cmake b/system/box64.conf.cmake
index b448bbcc..7dbdc5d3 100755
--- a/system/box64.conf.cmake
+++ b/system/box64.conf.cmake
@@ -1,2 +1,2 @@
 # /etc/binfmt.d/box64.conf
-:x86_64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:${CMAKE_INSTALL_PREFIX}/bin/${BOX64}:
+:x86_64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00:\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff\xff\xff\xfe\xff\xff\xff:${CMAKE_INSTALL_PREFIX}/bin/${BOX64}: