|
From: Jeremy F. <je...@go...> - 2005-01-10 23:10:50
|
On Mon, 2005-01-10 at 09:44 -0800, Naveen Kumar wrote:
> Hello all,
> I am having a problem with stage2 execution.
> Basically the program core dumps and I dont know how
> to figure out why and where. I know that uptil the
> point ume_go to start executing stage2 it is ok. After
> that the debugger is unable to get any symbols. How
> can I debug this ?
With difficulty. I spent a fair amount of time grovelling around in
assembler to get everything just right, and having the glibc source
definitely helped.
Some things to look at are:
* Try linking stage2 as static
* If you're using gdb, use "symbol-file stage2" to load stage2's
symtab
* compare the contents of the AUVX the kernel hands a new process
with what you're passing to stage 2
* look at all the addresses in the stage2 AUVX to make sure they
look sane
* also check argv and the environment
* look at the faulting instruction and see if the address its
faulting on look similar to any of the AUXV ones
J
|