oscar wrote:Hi Andy,
Could it be something related to the hardware of my computer? If I have the chance, I will try to boot the same image in another laptop to see if I have the same problem again or not.
By the way, you are telling me that you compiled Visopsys and after that you replaced its imgboot for the imgboot that I sent you, so I think it's also possible that, as you said at the beginning, something happens during the compilation in my laptop that produces the error in imgboot, but not because of imgboot per se, as you also have said

.
I will try to do some little experiments too
It's difficult to say, since I can't reproduce your problem. Yes, I took both of your binary imgboot executables and inserted them into my installations.
1. Does the binary distribution (built on my system) boot on your computer? Assuming yes.
2. Does the unmodified source distribution (built on your system) boot on your computer? Assuming no.
3. The problem
looks like the runtime loader has difficulty with binaries built and linked (especially linked) on your system, but when I take your binary and run it, that doesn't seem to be the case.
4. Perhaps you can attach an unmodified-source kernel built on your system (the file build/visopsys)? It might also be instructive for me to try inserting your shared libraries into my installation (the files build/system/libraries/*.so).
5. Is your hardware an 32-bit x86 processor, or a 64-bit x86_64? Can your compiler generate x86 binaries? It looks like it, since the ELF executable you uploaded seems to be 32-bit, and loads and runs in my 32-bit OS.