How to run aout on linux?

The question is how to execute the aout-format binary (I mean the old format, which, for example, was used in FreeBSD before it moved to ELF) on the Linux system. Is there any way to do this without additional coding (is there any existing solution)? It should probably be in the form of a kernel module or patch for the Linux kernel. Another solution could be a user space launcher (maybe even a runtime linker). I was looking for something similar, but could not find anything. I have not yet checked the difference in the system call interfaces, if you have some comments about this, you can provide them.

PS I know that writing a startup space for a static binary is pretty trivial, but the question is about some existing solution.

+3
source share
2 answers

Check the kernel configuration CONFIG_BINFMT_AOUT.

If your kernel has /proc/config.gz:

zgrep CONFIG_BINFMT_AOUT /proc/config.gz

In Ubuntu and the like:

grep CONFIG_BINFMT_AOUT /boot/config-$(uname -r)
+5
source

The kernel parameter was CONFIG_BINFMT_AOUT, not sure if it is still around or needed.

+2
source

Source: https://habr.com/ru/post/1789691/


All Articles