Strange problem with binfmt-464c & kerlenel 2.4.19
I try execute the C-binary programm.
bash: ./programm: cannot execute binary file
I see in my log messages:
modprobe: modprobe: Can't locate module binfmt-464c
$ file programm
programm: ELF 32-bit LSB executable, mips-1 MIPS R3000_LE [bfd bug], version 1 MathCoPro/FPU/MAU Required (SYSV), statically linked, stripped
I compiled kernel with next options:
# CONFIG_BINFMT_AOUT is not set
CONFIG_BINFMT_MISC=y (may be this do not set?)
/sbin/modprobe: symbolic link to insmod
/sbin/insmod: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
I looked for in inet doc HOWTO & question-answer about this problem & I found that message "Can't locate module binfmt-464c" means that my programm do not is ELF format or
the kernel wants to run some ELF binary, so it tries to load the
ELF-binaries module. But this will fail, because modprobe is an ELF binary.
>From kernel's source :
sprintf(modname, "binfmt-%04x", *(unsigned short*) (&bprm->buf)); request_module(modname); where bprm->buf is read from the start of the executable and 46 is 'F' & 4c is 'L'.
What is this mean?