'compressing a .sfx on a 64 bit machine, and uncompress on a 32 bit machine

I'm trying to create a .sfx archive on a 64 bit x86-64 ubuntu 20.04 system, and uncompress it on a 32 bit ARM EABI5 linux system, using p7zip. when i'm trying to uncompress the .sfx file (i.e. executing it: ./archive.sfx) on the 32 bit system an error occurs: cannot execute binary file: Exec format error.

running file on the archive.sfx file indeed shows ELF 64-bit

is it possible to create the sfx file according to the wanted hardware?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source