S
Sebastian 'lunar' Wiesner
Marc 'BlackJack' Rintsch said:There are other executable loaders for `a.out` and `COFF` in the
kernel, and with the `binfmt_misc` module you can make anything with a
"magic" header executable, including Python scripts/bytecode and even
JPEG images.
Yes, I know...
But ELF is actually the most common linker format on Linux systems.
a.out is a legacy format, that is afaik not used by any modern
distribution. Concerning COFF I'm not sure, if there is really a COFF
loader in the kernel. At least I did not find any information about
such a loader in the kernel configuration. It just lists elf, a.out and
binfmt_misc.
But basically you're right. One could even write a loader for JPEG
files.
But as long as such an loader is not part of a standard linux
distribution, nothing bad happens when you try to execute a JPEG file,
and that's what I wanted to point out.
Sebastian