On Monday 09 November 2009 14:55:52 Gautam Kalyanasundaram wrote:
>                             Thanks - but the second problem is more than
>  the GDB bug only. I created the elf file from the milkymist database and
>  ran this with the lm32-elf-gdb and this runs - though not to completion -
>  but it goes a longer way than just the error.
> 
> What is missing is the symbol "_fstack" - did you use a different linker LD
> file?

_fstack is the top of the stack. We did not tweak the Linux kernel linker 
script, and I am not really sure if a multi-tasking OS kernel should have this 
symbol since it manages several stacks (one per process) dynamically.
On the other hand, this symbol makes perfect sense for single-tasked 
applications such as the examples in the Milkymist core repository.

Anyway, I also do not see any valid reason for GDB to absolutely require this 
symbol, since it is always possible to read the CPU's stack pointer register 
to retrieve info about the stack.

In my opinion, fixing GDB is a more appropriate way to deal with the problem 
than hacking Linux's linker script.

Sébastien
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkym...@freenode
Webchat: www.milkymist.org/irc.html
Wiki: www.milkymist.org/wiki

Reply via email to