Re: Loading init and ld.so.1 for Coldfire V4e

From: Kent Borg (kentborg@borg.org)
Date: Wed Oct 09 2002 - 10:14:07 EST


In response to my question about how ld.so.1 is supposed to get an elf
file up and running Ben Collins and Erik Andersen suggested I write a
simple statically linked program. Thanks for your help. (My boss had
suggested the same thing earlier but I didn't listen to him, the
kernel list I listened to.)

Alas, it doesn't simplify matters. I wrote a tivial program (all it
does is a link instruction to make an empty stack frame, two moves, an
unlink to remove the empty stack frame, and a return--only 5
instructions long) but it is still an elf file. And, following
through the code, the kernel still wants to load ld.so.1, it seems to
interpret the elf (Linux can run different kinds of executables,
remember). And in the process something gets messed up.

So I am back to trying to figure out what is going wrong with loading
init and ld.so.1. I am suspicious that do_mmap_pgoff() calls are not
all happening right and will be comparing them with what mappings.
But I wish I knew more about what ld.so.1 does...

-kb, the Kent who is in new territory in about three ways.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:31 EST