Re: arm-elf and mips-deb-linux gdb

Daniel Jacobowitz
2006-06-26T13:03:09Z

On Mon, Jun 26, 2006 at 06:28:53PM +0530, Niklaus wrote:
> On 6/26/06, Daniel Jacobowitz <drow@false.org> wrote:
> >Thanks. This is why I asked for a complete transcript - now it is
> >apparent what is wrong.
> >
> >On Mon, Jun 26, 2006 at 04:42:43PM +0600, Niklaus wrote:
> >> pro@deb:~/armenv/bin$ ./arm-elf-gdb first.o
> >
> >You have to run the simulator using fully linked executables, not just
> >object files. See the linker scripts that are part of newlib.
> >
> Can you tell why it fails . I would like to know the reason why it
> fails. Which linker script would you recommend.

I don't know anything about building for arm-elf; you'll have to ask
somewhere else.

It fails because your application has not been linked. It doesn't have
startup code, it doesn't have relocations applied. The simulator has
probably branched off into nowhere.